var Wr=Object.defineProperty;var Vr=(Ot,dt,Mt)=>dt in Ot?Wr(Ot,dt,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Ot[dt]=Mt;var ye=(Ot,dt,Mt)=>(Vr(Ot,typeof dt!="symbol"?dt+"":dt,Mt),Mt),hi=(Ot,dt,Mt)=>{if(!dt.has(Ot))throw TypeError("Cannot "+Mt)};var ot=(Ot,dt,Mt)=>(hi(Ot,dt,"read from private field"),Mt?Mt.call(Ot):dt.get(Ot)),_t=(Ot,dt,Mt)=>{if(dt.has(Ot))throw TypeError("Cannot add the same private member more than once");dt instanceof WeakSet?dt.add(Ot):dt.set(Ot,Mt)},Ht=(Ot,dt,Mt,ft)=>(hi(Ot,dt,"write to private field"),ft?ft.call(Ot,Mt):dt.set(Ot,Mt),Mt);var an=(Ot,dt,Mt,ft)=>({set _(At){Ht(Ot,dt,At,Mt)},get _(){return ot(Ot,dt,ft)}}),Lt=(Ot,dt,Mt)=>(hi(Ot,dt,"access private method"),Mt);import{V as getAugmentedNamespace,p as getDefaultExportFromCjs$1,s as commonjsRequire,r as reactExports,R as React,Z as warning,$ as PropTypes,j as jsx,f as jsxs,Q as themeable,Y as __read,a0 as Spinner$1,I as Icon,a1 as Input}from"./index-5zY5TMAp.js";function _mergeNamespaces(Ot,dt){for(var Mt=0;Mtft[At]})}}}return Object.freeze(Object.defineProperty(Ot,Symbol.toStringTag,{value:"Module"}))}var pdf$1={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(__viteBrowserExternal$1);(function(module,exports){(function(dt,Mt){module.exports=dt.pdfjsLib=Mt()})(globalThis,()=>(()=>{var __webpack_modules__=[,(Ot,dt)=>{var Tt;Object.defineProperty(dt,"__esModule",{value:!0}),dt.VerbosityLevel=dt.Util=dt.UnknownErrorException=dt.UnexpectedResponseException=dt.TextRenderingMode=dt.RenderingIntentFlag=dt.PromiseCapability=dt.PermissionFlag=dt.PasswordResponses=dt.PasswordException=dt.PageActionEventType=dt.OPS=dt.MissingPDFException=dt.MAX_IMAGE_SIZE_TO_CACHE=dt.LINE_FACTOR=dt.LINE_DESCENT_FACTOR=dt.InvalidPDFException=dt.ImageKind=dt.IDENTITY_MATRIX=dt.FormatError=dt.FeatureTest=dt.FONT_IDENTITY_MATRIX=dt.DocumentActionEventType=dt.CMapCompressionType=dt.BaseException=dt.BASELINE_FACTOR=dt.AnnotationType=dt.AnnotationReplyType=dt.AnnotationPrefix=dt.AnnotationMode=dt.AnnotationFlag=dt.AnnotationFieldFlag=dt.AnnotationEditorType=dt.AnnotationEditorPrefix=dt.AnnotationEditorParamsType=dt.AnnotationBorderStyleType=dt.AnnotationActionEventType=dt.AbortException=void 0,dt.assert=E,dt.bytesToString=B,dt.createValidAbsoluteUrl=q,dt.getModificationDate=at,dt.getUuid=yt,dt.getVerbosityLevel=R,dt.info=o,dt.isArrayBuffer=et,dt.isArrayEqual=nt,dt.isNodeJS=void 0,dt.normalizeUnicode=pt,dt.objectFromMap=X,dt.objectSize=st,dt.setVerbosityLevel=P,dt.shadow=W,dt.string32=it,dt.stringToBytes=tt,dt.stringToPDFString=Y,dt.stringToUTF8String=G,dt.unreachable=x,dt.utf8StringToString=K,dt.warn=g;const Mt=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");dt.isNodeJS=Mt;const ft=[1,0,0,1,0,0];dt.IDENTITY_MATRIX=ft;const At=[.001,0,0,.001,0,0];dt.FONT_IDENTITY_MATRIX=At;const $t=1e7;dt.MAX_IMAGE_SIZE_TO_CACHE=$t;const vt=1.35;dt.LINE_FACTOR=vt;const M=.35;dt.LINE_DESCENT_FACTOR=M;const Z=M/vt;dt.BASELINE_FACTOR=Z;const n={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};dt.RenderingIntentFlag=n;const _={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};dt.AnnotationMode=_;const L="pdfjs_internal_editor_";dt.AnnotationEditorPrefix=L;const t={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15};dt.AnnotationEditorType=t;const e={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23};dt.AnnotationEditorParamsType=e;const a={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};dt.PermissionFlag=a;const v={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};dt.TextRenderingMode=v;const A={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};dt.ImageKind=A;const T={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};dt.AnnotationType=T;const d={GROUP:"Group",REPLY:"R"};dt.AnnotationReplyType=d;const i={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};dt.AnnotationFlag=i;const C={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};dt.AnnotationFieldFlag=C;const p={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};dt.AnnotationBorderStyleType=p;const b={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"};dt.AnnotationActionEventType=b;const F={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};dt.DocumentActionEventType=F;const u={O:"PageOpen",C:"PageClose"};dt.PageActionEventType=u;const l={ERRORS:0,WARNINGS:1,INFOS:5};dt.VerbosityLevel=l;const y={NONE:0,BINARY:1};dt.CMapCompressionType=y;const N={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};dt.OPS=N;const U={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};dt.PasswordResponses=U;let $=l.WARNINGS;function P(xt){Number.isInteger(xt)&&($=xt)}function R(){return $}function o(xt){$>=l.INFOS&&console.log(`Info: ${xt}`)}function g(xt){$>=l.WARNINGS&&console.log(`Warning: ${xt}`)}function x(xt){throw new Error(xt)}function E(xt,wt){xt||x(wt)}function D(xt){switch(xt==null?void 0:xt.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function q(xt,wt=null,St=null){if(!xt)return null;try{if(St&&typeof xt=="string"){if(St.addDefaultProtocol&&xt.startsWith("www.")){const Ct=xt.match(/\./g);(Ct==null?void 0:Ct.length)>=2&&(xt=`http://${xt}`)}if(St.tryConvertEncoding)try{xt=G(xt)}catch{}}const Rt=wt?new URL(xt,wt):new URL(xt);if(D(Rt))return Rt}catch{}return null}function W(xt,wt,St,Rt=!1){return Object.defineProperty(xt,wt,{value:St,enumerable:!Rt,configurable:!0,writable:!1}),St}const w=function(){function wt(St,Rt){this.constructor===wt&&x("Cannot initialize BaseException."),this.message=St,this.name=Rt}return wt.prototype=new Error,wt.constructor=wt,wt}();dt.BaseException=w;class s extends w{constructor(wt,St){super(wt,"PasswordException"),this.code=St}}dt.PasswordException=s;class c extends w{constructor(wt,St){super(wt,"UnknownErrorException"),this.details=St}}dt.UnknownErrorException=c;class S extends w{constructor(wt){super(wt,"InvalidPDFException")}}dt.InvalidPDFException=S;class h extends w{constructor(wt){super(wt,"MissingPDFException")}}dt.MissingPDFException=h;class m extends w{constructor(wt,St){super(wt,"UnexpectedResponseException"),this.status=St}}dt.UnexpectedResponseException=m;class k extends w{constructor(wt){super(wt,"FormatError")}}dt.FormatError=k;class I extends w{constructor(wt){super(wt,"AbortException")}}dt.AbortException=I;function B(xt){(typeof xt!="object"||(xt==null?void 0:xt.length)===void 0)&&x("Invalid argument for bytesToString");const wt=xt.length,St=8192;if(wt>24&255,xt>>16&255,xt>>8&255,xt&255)}function st(xt){return Object.keys(xt).length}function X(xt){const wt=Object.create(null);for(const[St,Rt]of xt)wt[St]=Rt;return wt}function J(){const xt=new Uint8Array(4);return xt[0]=1,new Uint32Array(xt.buffer,0,1)[0]===1}function j(){try{return new Function(""),!0}catch{return!1}}class O{static get isLittleEndian(){return W(this,"isLittleEndian",J())}static get isEvalSupported(){return W(this,"isEvalSupported",j())}static get isOffscreenCanvasSupported(){return W(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator>"u"?W(this,"platform",{isWin:!1,isMac:!1}):W(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){var wt,St;return W(this,"isCSSRoundSupported",(St=(wt=globalThis.CSS)==null?void 0:wt.supports)==null?void 0:St.call(wt,"width: round(1.5px, 1px)"))}}dt.FeatureTest=O;const H=[...Array(256).keys()].map(xt=>xt.toString(16).padStart(2,"0"));class V{static makeHexColor(wt,St,Rt){return`#${H[wt]}${H[St]}${H[Rt]}`}static scaleMinMax(wt,St){let Rt;wt[0]?(wt[0]<0&&(Rt=St[0],St[0]=St[1],St[1]=Rt),St[0]*=wt[0],St[1]*=wt[0],wt[3]<0&&(Rt=St[2],St[2]=St[3],St[3]=Rt),St[2]*=wt[3],St[3]*=wt[3]):(Rt=St[0],St[0]=St[2],St[2]=Rt,Rt=St[1],St[1]=St[3],St[3]=Rt,wt[1]<0&&(Rt=St[2],St[2]=St[3],St[3]=Rt),St[2]*=wt[1],St[3]*=wt[1],wt[2]<0&&(Rt=St[0],St[0]=St[1],St[1]=Rt),St[0]*=wt[2],St[1]*=wt[2]),St[0]+=wt[4],St[1]+=wt[4],St[2]+=wt[5],St[3]+=wt[5]}static transform(wt,St){return[wt[0]*St[0]+wt[2]*St[1],wt[1]*St[0]+wt[3]*St[1],wt[0]*St[2]+wt[2]*St[3],wt[1]*St[2]+wt[3]*St[3],wt[0]*St[4]+wt[2]*St[5]+wt[4],wt[1]*St[4]+wt[3]*St[5]+wt[5]]}static applyTransform(wt,St){const Rt=wt[0]*St[0]+wt[1]*St[2]+St[4],Ct=wt[0]*St[1]+wt[1]*St[3]+St[5];return[Rt,Ct]}static applyInverseTransform(wt,St){const Rt=St[0]*St[3]-St[1]*St[2],Ct=(wt[0]*St[3]-wt[1]*St[2]+St[2]*St[5]-St[4]*St[3])/Rt,Gt=(-wt[0]*St[1]+wt[1]*St[0]+St[4]*St[1]-St[5]*St[0])/Rt;return[Ct,Gt]}static getAxialAlignedBoundingBox(wt,St){const Rt=this.applyTransform(wt,St),Ct=this.applyTransform(wt.slice(2,4),St),Gt=this.applyTransform([wt[0],wt[3]],St),Zt=this.applyTransform([wt[2],wt[1]],St);return[Math.min(Rt[0],Ct[0],Gt[0],Zt[0]),Math.min(Rt[1],Ct[1],Gt[1],Zt[1]),Math.max(Rt[0],Ct[0],Gt[0],Zt[0]),Math.max(Rt[1],Ct[1],Gt[1],Zt[1])]}static inverseTransform(wt){const St=wt[0]*wt[3]-wt[1]*wt[2];return[wt[3]/St,-wt[1]/St,-wt[2]/St,wt[0]/St,(wt[2]*wt[5]-wt[4]*wt[3])/St,(wt[4]*wt[1]-wt[5]*wt[0])/St]}static singularValueDecompose2dScale(wt){const St=[wt[0],wt[2],wt[1],wt[3]],Rt=wt[0]*St[0]+wt[1]*St[2],Ct=wt[0]*St[1]+wt[1]*St[3],Gt=wt[2]*St[0]+wt[3]*St[2],Zt=wt[2]*St[1]+wt[3]*St[3],Ft=(Rt+Zt)/2,Ut=Math.sqrt((Rt+Zt)**2-4*(Rt*Zt-Gt*Ct))/2,Vt=Ft+Ut||1,Wt=Ft-Ut||1;return[Math.sqrt(Vt),Math.sqrt(Wt)]}static normalizeRect(wt){const St=wt.slice(0);return wt[0]>wt[2]&&(St[0]=wt[2],St[2]=wt[0]),wt[1]>wt[3]&&(St[1]=wt[3],St[3]=wt[1]),St}static intersect(wt,St){const Rt=Math.max(Math.min(wt[0],wt[2]),Math.min(St[0],St[2])),Ct=Math.min(Math.max(wt[0],wt[2]),Math.max(St[0],St[2]));if(Rt>Ct)return null;const Gt=Math.max(Math.min(wt[1],wt[3]),Math.min(St[1],St[3])),Zt=Math.min(Math.max(wt[1],wt[3]),Math.max(St[1],St[3]));return Gt>Zt?null:[Rt,Gt,Ct,Zt]}static bezierBoundingBox(wt,St,Rt,Ct,Gt,Zt,Ft,Ut){const Vt=[],Wt=[[],[]];let Yt,re,Jt,Bt,Xt,jt,mt,rt;for(let Pt=0;Pt<2;++Pt){if(Pt===0?(re=6*wt-12*Rt+6*Gt,Yt=-3*wt+9*Rt-9*Gt+3*Ft,Jt=3*Rt-3*wt):(re=6*St-12*Ct+6*Zt,Yt=-3*St+9*Ct-9*Zt+3*Ut,Jt=3*Ct-3*St),Math.abs(Yt)<1e-12){if(Math.abs(re)<1e-12)continue;Bt=-Jt/re,0="ï"){let St;if(xt[0]==="þ"&&xt[1]==="ÿ"?St="utf-16be":xt[0]==="ÿ"&&xt[1]==="þ"?St="utf-16le":xt[0]==="ï"&&xt[1]==="»"&&xt[2]==="¿"&&(St="utf-8"),St)try{const Rt=new TextDecoder(St,{fatal:!0}),Ct=tt(xt);return Rt.decode(Ct)}catch(Rt){g(`stringToPDFString: "${Rt}".`)}}const wt=[];for(let St=0,Rt=xt.length;St{this.resolve=Rt=>{Ht(this,Tt,!0),wt(Rt)},this.reject=Rt=>{Ht(this,Tt,!0),St(Rt)}})}get settled(){return ot(this,Tt)}}Tt=new WeakMap,dt.PromiseCapability=Q;let lt=null,ut=null;function pt(xt){return lt||(lt=/([\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,ut=new Map([["ſt","ſt"]])),xt.replaceAll(lt,(wt,St,Rt)=>St?St.normalize("NFKC"):ut.get(Rt))}function yt(){if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.randomUUID)=="function")return crypto.randomUUID();const xt=new Uint8Array(32);if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.getRandomValues)=="function")crypto.getRandomValues(xt);else for(let wt=0;wt<32;wt++)xt[wt]=Math.floor(Math.random()*255);return B(xt)}const Et="pdfjs_internal_id_";dt.AnnotationPrefix=Et},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{var Ot,Mt,ft,At,Ge,vt,wn,Z,n,_,L,t,e,a,v,A,Sn,d,i,ui,p,b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_displayNode_utils=__w_pdfjs_require__(10),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_displayFetch_stream=__w_pdfjs_require__(19),_displayNetwork=__w_pdfjs_require__(22),_displayNode_stream=__w_pdfjs_require__(23),_displaySvg=__w_pdfjs_require__(24),_xfa_text=__w_pdfjs_require__(25);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;const DefaultCMapReaderFactory=_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;const DefaultFilterFactory=_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory;exports.DefaultFilterFactory=DefaultFilterFactory;const DefaultStandardFontDataFactory=_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;function getDocument(u){if(typeof u=="string"||u instanceof URL?u={url:u}:(0,_util.isArrayBuffer)(u)&&(u={data:u}),typeof u!="object")throw new Error("Invalid parameter in getDocument, need parameter object.");if(!u.url&&!u.data&&!u.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const l=new PDFDocumentLoadingTask,{docId:y}=l,N=u.url?getUrlProp(u.url):null,U=u.data?getDataProp(u.data):null,$=u.httpHeaders||null,P=u.withCredentials===!0,R=u.password??null,o=u.range instanceof PDFDataRangeTransport?u.range:null,g=Number.isInteger(u.rangeChunkSize)&&u.rangeChunkSize>0?u.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE;let x=u.worker instanceof PDFWorker?u.worker:null;const E=u.verbosity,D=typeof u.docBaseUrl=="string"&&!(0,_display_utils.isDataScheme)(u.docBaseUrl)?u.docBaseUrl:null,q=typeof u.cMapUrl=="string"?u.cMapUrl:null,W=u.cMapPacked!==!1,w=u.CMapReaderFactory||DefaultCMapReaderFactory,s=typeof u.standardFontDataUrl=="string"?u.standardFontDataUrl:null,c=u.StandardFontDataFactory||DefaultStandardFontDataFactory,S=u.stopAtErrors!==!0,h=Number.isInteger(u.maxImageSize)&&u.maxImageSize>-1?u.maxImageSize:-1,m=u.isEvalSupported!==!1,k=typeof u.isOffscreenCanvasSupported=="boolean"?u.isOffscreenCanvasSupported:!_util.isNodeJS,I=Number.isInteger(u.canvasMaxAreaInBytes)?u.canvasMaxAreaInBytes:-1,B=typeof u.disableFontFace=="boolean"?u.disableFontFace:_util.isNodeJS,tt=u.fontExtraProperties===!0,it=u.enableXfa===!0,st=u.ownerDocument||globalThis.document,X=u.disableRange===!0,J=u.disableStream===!0,j=u.disableAutoFetch===!0,O=u.pdfBug===!0,H=o?o.length:u.length??NaN,V=typeof u.useSystemFonts=="boolean"?u.useSystemFonts:!_util.isNodeJS&&!B,z=typeof u.useWorkerFetch=="boolean"?u.useWorkerFetch:w===_display_utils.DOMCMapReaderFactory&&c===_display_utils.DOMStandardFontDataFactory&&q&&s&&(0,_display_utils.isValidFetchUrl)(q,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(s,document.baseURI),Y=u.canvasFactory||new DefaultCanvasFactory({ownerDocument:st}),G=u.filterFactory||new DefaultFilterFactory({docId:y,ownerDocument:st}),K=null;(0,_util.setVerbosityLevel)(E);const et={canvasFactory:Y,filterFactory:G};if(z||(et.cMapReaderFactory=new w({baseUrl:q,isCompressed:W}),et.standardFontDataFactory=new c({baseUrl:s})),!x){const Q={verbosity:E,port:_worker_options.GlobalWorkerOptions.workerPort};x=Q.port?PDFWorker.fromPort(Q):new PDFWorker(Q),l._worker=x}const nt={docId:y,apiVersion:"3.11.174",data:U,password:R,disableAutoFetch:j,rangeChunkSize:g,length:H,docBaseUrl:D,enableXfa:it,evaluatorOptions:{maxImageSize:h,disableFontFace:B,ignoreErrors:S,isEvalSupported:m,isOffscreenCanvasSupported:k,canvasMaxAreaInBytes:I,fontExtraProperties:tt,useSystemFonts:V,cMapUrl:z?q:null,standardFontDataUrl:z?s:null}},at={ignoreErrors:S,isEvalSupported:m,disableFontFace:B,fontExtraProperties:tt,enableXfa:it,ownerDocument:st,disableAutoFetch:j,pdfBug:O,styleElement:K};return x.promise.then(function(){if(l.destroyed)throw new Error("Loading aborted");const Q=_fetchDocument(x,nt),lt=new Promise(function(ut){let pt;o?pt=new _transport_stream.PDFDataTransportStream({length:H,initialData:o.initialData,progressiveDone:o.progressiveDone,contentDispositionFilename:o.contentDispositionFilename,disableRange:X,disableStream:J},o):U||(pt=(Et=>_util.isNodeJS?new _displayNode_stream.PDFNodeStream(Et):(0,_display_utils.isValidFetchUrl)(Et.url)?new _displayFetch_stream.PDFFetchStream(Et):new _displayNetwork.PDFNetworkStream(Et))({url:N,length:H,httpHeaders:$,withCredentials:P,rangeChunkSize:g,disableRange:X,disableStream:J})),ut(pt)});return Promise.all([Q,lt]).then(function([ut,pt]){if(l.destroyed)throw new Error("Loading aborted");const yt=new _message_handler.MessageHandler(y,ut,x.port),Et=new WorkerTransport(yt,l,pt,at,et);l._transport=Et,yt.send("Ready",null)})}).catch(l._capability.reject),l}async function _fetchDocument(u,l){if(u.destroyed)throw new Error("Worker was destroyed");const y=await u.messageHandler.sendWithPromise("GetDocRequest",l,l.data?[l.data.buffer]:null);if(u.destroyed)throw new Error("Worker was destroyed");return y}function getUrlProp(u){if(u instanceof URL)return u.href;try{return new URL(u,window.location).href}catch{if(_util.isNodeJS&&typeof u=="string")return u}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(u){if(_util.isNodeJS&&typeof Buffer<"u"&&u instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(u instanceof Uint8Array&&u.byteLength===u.buffer.byteLength)return u;if(typeof u=="string")return(0,_util.stringToBytes)(u);if(typeof u=="object"&&!isNaN(u==null?void 0:u.length)||(0,_util.isArrayBuffer)(u))return new Uint8Array(u);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}const dt=class dt{constructor(){this._capability=new _util.PromiseCapability,this._transport=null,this._worker=null,this.docId=`d${an(dt,Ot)._++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){var l,y,N;this.destroyed=!0;try{(l=this._worker)!=null&&l.port&&(this._worker._pendingDestroy=!0),await((y=this._transport)==null?void 0:y.destroy())}catch(U){throw(N=this._worker)!=null&&N.port&&delete this._worker._pendingDestroy,U}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}};Ot=new WeakMap,_t(dt,Ot,0);let PDFDocumentLoadingTask=dt;exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(l,y,N=!1,U=null){this.length=l,this.initialData=y,this.progressiveDone=N,this.contentDispositionFilename=U,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=new _util.PromiseCapability}addRangeListener(l){this._rangeListeners.push(l)}addProgressListener(l){this._progressListeners.push(l)}addProgressiveReadListener(l){this._progressiveReadListeners.push(l)}addProgressiveDoneListener(l){this._progressiveDoneListeners.push(l)}onDataRange(l,y){for(const N of this._rangeListeners)N(l,y)}onDataProgress(l,y){this._readyCapability.promise.then(()=>{for(const N of this._progressListeners)N(l,y)})}onDataProgressiveRead(l){this._readyCapability.promise.then(()=>{for(const y of this._progressiveReadListeners)y(l)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const l of this._progressiveDoneListeners)l()})}transportReady(){this._readyCapability.resolve()}requestDataRange(l,y){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(l,y){this._pdfInfo=l,this._transport=y,Object.defineProperty(this,"getJavaScript",{value:()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),this.getJSActions().then(N=>{if(!N)return N;const U=[];for(const $ in N)U.push(...N[$]);return U}))})}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(l){return this._transport.getPage(l)}getPageIndex(l){return this._transport.getPageIndex(l)}getDestinations(){return this._transport.getDestinations()}getDestination(l){return this._transport.getDestination(l)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(l=!1){return this._transport.startCleanup(l||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(l,y,N,U=!1){_t(this,At);_t(this,vt);_t(this,Mt,null);_t(this,ft,!1);this._pageIndex=l,this._pageInfo=y,this._transport=N,this._stats=U?new _display_utils.StatTimer:null,this._pdfBug=U,this.commonObjs=N.commonObjs,this.objs=new PDFObjects,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:l,rotation:y=this.rotate,offsetX:N=0,offsetY:U=0,dontFlip:$=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:l,rotation:y,offsetX:N,offsetY:U,dontFlip:$})}getAnnotations({intent:l="display"}={}){const y=this._transport.getRenderingIntent(l);return this._transport.getAnnotations(this._pageIndex,y.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var l;return((l=this._transport._htmlForXfa)==null?void 0:l.children[this._pageIndex])||null}render({canvasContext:l,viewport:y,intent:N="display",annotationMode:U=_util.AnnotationMode.ENABLE,transform:$=null,background:P=null,optionalContentConfigPromise:R=null,annotationCanvasMap:o=null,pageColors:g=null,printAnnotationStorage:x=null}){var c,S;(c=this._stats)==null||c.time("Overall");const E=this._transport.getRenderingIntent(N,U,x);Ht(this,ft,!1),Lt(this,vt,wn).call(this),R||(R=this._transport.getOptionalContentConfig());let D=this._intentStates.get(E.cacheKey);D||(D=Object.create(null),this._intentStates.set(E.cacheKey,D)),D.streamReaderCancelTimeout&&(clearTimeout(D.streamReaderCancelTimeout),D.streamReaderCancelTimeout=null);const q=!!(E.renderingIntent&_util.RenderingIntentFlag.PRINT);D.displayReadyCapability||(D.displayReadyCapability=new _util.PromiseCapability,D.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(S=this._stats)==null||S.time("Page Request"),this._pumpOperatorList(E));const W=h=>{var m,k;D.renderTasks.delete(w),(this._maybeCleanupAfterRender||q)&&Ht(this,ft,!0),Lt(this,At,Ge).call(this,!q),h?(w.capability.reject(h),this._abortOperatorList({intentState:D,reason:h instanceof Error?h:new Error(h)})):w.capability.resolve(),(m=this._stats)==null||m.timeEnd("Rendering"),(k=this._stats)==null||k.timeEnd("Overall")},w=new InternalRenderTask({callback:W,params:{canvasContext:l,viewport:y,transform:$,background:P},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:o,operatorList:D.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!q,pdfBug:this._pdfBug,pageColors:g});(D.renderTasks||(D.renderTasks=new Set)).add(w);const s=w.task;return Promise.all([D.displayReadyCapability.promise,R]).then(([h,m])=>{var k;if(this.destroyed){W();return}(k=this._stats)==null||k.time("Rendering"),w.initializeGraphics({transparency:h,optionalContentConfig:m}),w.operatorListChanged()}).catch(W),s}getOperatorList({intent:l="display",annotationMode:y=_util.AnnotationMode.ENABLE,printAnnotationStorage:N=null}={}){var o;function U(){P.operatorList.lastChunk&&(P.opListReadCapability.resolve(P.operatorList),P.renderTasks.delete(R))}const $=this._transport.getRenderingIntent(l,y,N,!0);let P=this._intentStates.get($.cacheKey);P||(P=Object.create(null),this._intentStates.set($.cacheKey,P));let R;return P.opListReadCapability||(R=Object.create(null),R.operatorListChanged=U,P.opListReadCapability=new _util.PromiseCapability,(P.renderTasks||(P.renderTasks=new Set)).add(R),P.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(o=this._stats)==null||o.time("Page Request"),this._pumpOperatorList($)),P.opListReadCapability.promise}streamTextContent({includeMarkedContent:l=!1,disableNormalization:y=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:l===!0,disableNormalization:y===!0},{highWaterMark:100,size(U){return U.items.length}})}getTextContent(l={}){if(this._transport._htmlForXfa)return this.getXfa().then(N=>_xfa_text.XfaText.textContent(N));const y=this.streamTextContent(l);return new Promise(function(N,U){function $(){P.read().then(function({value:o,done:g}){if(g){N(R);return}Object.assign(R.styles,o.styles),R.items.push(...o.items),$()},U)}const P=y.getReader(),R={items:[],styles:Object.create(null)};$()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const l=[];for(const y of this._intentStates.values())if(this._abortOperatorList({intentState:y,reason:new Error("Page was destroyed."),force:!0}),!y.opListReadCapability)for(const N of y.renderTasks)l.push(N.completed),N.cancel();return this.objs.clear(),Ht(this,ft,!1),Lt(this,vt,wn).call(this),Promise.all(l)}cleanup(l=!1){Ht(this,ft,!0);const y=Lt(this,At,Ge).call(this,!1);return l&&y&&this._stats&&(this._stats=new _display_utils.StatTimer),y}_startRenderPage(l,y){var U,$;const N=this._intentStates.get(y);N&&((U=this._stats)==null||U.timeEnd("Page Request"),($=N.displayReadyCapability)==null||$.resolve(l))}_renderPageChunk(l,y){for(let N=0,U=l.length;N{R.read().then(({value:x,done:E})=>{if(E){o.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(x,o),g())},x=>{if(o.streamReader=null,!this._transport.destroyed){if(o.operatorList){o.operatorList.lastChunk=!0;for(const E of o.renderTasks)E.operatorListChanged();Lt(this,At,Ge).call(this,!0)}if(o.displayReadyCapability)o.displayReadyCapability.reject(x);else if(o.opListReadCapability)o.opListReadCapability.reject(x);else throw x}})};g()}_abortOperatorList({intentState:l,reason:y,force:N=!1}){if(l.streamReader){if(l.streamReaderCancelTimeout&&(clearTimeout(l.streamReaderCancelTimeout),l.streamReaderCancelTimeout=null),!N){if(l.renderTasks.size>0)return;if(y instanceof _display_utils.RenderingCancelledException){let U=RENDERING_CANCELLED_TIMEOUT;y.extraDelay>0&&y.extraDelay<1e3&&(U+=y.extraDelay),l.streamReaderCancelTimeout=setTimeout(()=>{l.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:l,reason:y,force:!0})},U);return}}if(l.streamReader.cancel(new _util.AbortException(y.message)).catch(()=>{}),l.streamReader=null,!this._transport.destroyed){for(const[U,$]of this._intentStates)if($===l){this._intentStates.delete(U);break}this.cleanup()}}}get stats(){return this._stats}}Mt=new WeakMap,ft=new WeakMap,At=new WeakSet,Ge=function(l=!1){if(Lt(this,vt,wn).call(this),!ot(this,ft)||this.destroyed)return!1;if(l)return Ht(this,Mt,setTimeout(()=>{Ht(this,Mt,null),Lt(this,At,Ge).call(this,!1)},DELAYED_CLEANUP_TIMEOUT)),!1;for(const{renderTasks:y,operatorList:N}of this._intentStates.values())if(y.size>0||!N.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),Ht(this,ft,!1),!0},vt=new WeakSet,wn=function(){ot(this,Mt)&&(clearTimeout(ot(this,Mt)),Ht(this,Mt,null))},exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){_t(this,Z,new Set);_t(this,n,Promise.resolve())}postMessage(l,y){const N={data:structuredClone(l,y?{transfer:y}:null)};ot(this,n).then(()=>{for(const U of ot(this,Z))U.call(this,N)})}addEventListener(l,y){ot(this,Z).add(y)}removeEventListener(l,y){ot(this,Z).delete(y)}terminate(){ot(this,Z).clear()}}Z=new WeakMap,n=new WeakMap,exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};exports.PDFWorkerUtil=PDFWorkerUtil;{if(_util.isNodeJS&&typeof commonjsRequire=="function")PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if(typeof document=="object"){const u=(_=document==null?void 0:document.currentScript)==null?void 0:_.src;u&&(PDFWorkerUtil.fallbackWorkerSrc=u.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(u,l){let y;try{if(y=new URL(u),!y.origin||y.origin==="null")return!1}catch{return!1}const N=new URL(l,y);return y.origin===N.origin},PDFWorkerUtil.createCDNWrapper=function(u){const l=`importScripts("${u}");`;return URL.createObjectURL(new Blob([l]))}}const _PDFWorker=class _PDFWorker{constructor({name:u=null,port:l=null,verbosity:y=(0,_util.getVerbosityLevel)()}={}){var N;if(this.name=u,this.destroyed=!1,this.verbosity=y,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,l){if((N=ot(_PDFWorker,L))!=null&&N.has(l))throw new Error("Cannot use more than one PDFWorker per port.");(ot(_PDFWorker,L)||Ht(_PDFWorker,L,new WeakMap)).set(l,this),this._initializeFromPort(l);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(u){this._port=u,this._messageHandler=new _message_handler.MessageHandler("main","worker",u),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!_PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:u}=_PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,u)||(u=PDFWorkerUtil.createCDNWrapper(new URL(u,window.location).href));const l=new Worker(u),y=new _message_handler.MessageHandler("main","worker",l),N=()=>{l.removeEventListener("error",U),y.destroy(),l.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},U=()=>{this._webWorker||N()};l.addEventListener("error",U),y.on("test",P=>{if(l.removeEventListener("error",U),this.destroyed){N();return}P?(this._messageHandler=y,this._port=l,this._webWorker=l,this._readyCapability.resolve(),y.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),y.destroy(),l.terminate())}),y.on("ready",P=>{if(l.removeEventListener("error",U),this.destroyed){N();return}try{$()}catch{this._setupFakeWorker()}});const $=()=>{const P=new Uint8Array;y.send("test",P,[P.buffer])};$();return}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),_PDFWorker._setupFakeWorkerGlobal.then(u=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const l=new LoopbackPort;this._port=l;const y=`fake${PDFWorkerUtil.fakeWorkerId++}`,N=new _message_handler.MessageHandler(y+"_worker",y,l);u.setup(N,l);const U=new _message_handler.MessageHandler(y,y+"_worker",l);this._messageHandler=U,this._readyCapability.resolve(),U.send("configure",{verbosity:this.verbosity})}).catch(u=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${u.message}".`))})}destroy(){var u;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),(u=ot(_PDFWorker,L))==null||u.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(u){var y;if(!(u!=null&&u.port))throw new Error("PDFWorker.fromPort - invalid method signature.");const l=(y=ot(this,L))==null?void 0:y.get(u.port);if(l){if(l._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return l}return new _PDFWorker(u)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(PDFWorkerUtil.fallbackWorkerSrc!==null)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){var u;try{return((u=globalThis.pdfjsWorker)==null?void 0:u.WorkerMessageHandler)||null}catch{return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_util.isNodeJS&&typeof commonjsRequire=="function"){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}};L=new WeakMap,_t(_PDFWorker,L,void 0);let PDFWorker=_PDFWorker;exports.PDFWorker=PDFWorker;class WorkerTransport{constructor(l,y,N,U,$){_t(this,A);_t(this,t,new Map);_t(this,e,new Map);_t(this,a,new Map);_t(this,v,null);this.messageHandler=l,this.loadingTask=y,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:U.ownerDocument,styleElement:U.styleElement}),this._params=U,this.canvasFactory=$.canvasFactory,this.filterFactory=$.filterFactory,this.cMapReaderFactory=$.cMapReaderFactory,this.standardFontDataFactory=$.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=N,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(l,y=_util.AnnotationMode.ENABLE,N=null,U=!1){let $=_util.RenderingIntentFlag.DISPLAY,P=_annotation_storage.SerializableEmpty;switch(l){case"any":$=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":$=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${l}`)}switch(y){case _util.AnnotationMode.DISABLE:$+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:$+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:$+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,P=($&_util.RenderingIntentFlag.PRINT&&N instanceof _annotation_storage.PrintAnnotationStorage?N:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${y}`)}return U&&($+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:$,cacheKey:`${$}_${P.hash}`,annotationStorageSerializable:P}}destroy(){var N;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,(N=ot(this,v))==null||N.reject(new Error("Worker was destroyed during onPassword callback"));const l=[];for(const U of ot(this,e).values())l.push(U._destroy());ot(this,e).clear(),ot(this,a).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const y=this.messageHandler.sendWithPromise("Terminate",null);return l.push(y),Promise.all(l).then(()=>{var U;this.commonObjs.clear(),this.fontLoader.clear(),ot(this,t).clear(),this.filterFactory.destroy(),(U=this._networkStream)==null||U.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:l,loadingTask:y}=this;l.on("GetReader",(N,U)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=$=>{this._lastProgress={loaded:$.loaded,total:$.total}},U.onPull=()=>{this._fullReader.read().then(function({value:$,done:P}){if(P){U.close();return}(0,_util.assert)($ instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),U.enqueue(new Uint8Array($),1,[$])}).catch($=>{U.error($)})},U.onCancel=$=>{this._fullReader.cancel($),U.ready.catch(P=>{if(!this.destroyed)throw P})}}),l.on("ReaderHeadersReady",N=>{const U=new _util.PromiseCapability,$=this._fullReader;return $.headersReady.then(()=>{var P;(!$.isStreamingSupported||!$.isRangeSupported)&&(this._lastProgress&&((P=y.onProgress)==null||P.call(y,this._lastProgress)),$.onProgress=R=>{var o;(o=y.onProgress)==null||o.call(y,{loaded:R.loaded,total:R.total})}),U.resolve({isStreamingSupported:$.isStreamingSupported,isRangeSupported:$.isRangeSupported,contentLength:$.contentLength})},U.reject),U.promise}),l.on("GetRangeReader",(N,U)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const $=this._networkStream.getRangeReader(N.begin,N.end);if(!$){U.close();return}U.onPull=()=>{$.read().then(function({value:P,done:R}){if(R){U.close();return}(0,_util.assert)(P instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),U.enqueue(new Uint8Array(P),1,[P])}).catch(P=>{U.error(P)})},U.onCancel=P=>{$.cancel(P),U.ready.catch(R=>{if(!this.destroyed)throw R})}}),l.on("GetDoc",({pdfInfo:N})=>{this._numPages=N.numPages,this._htmlForXfa=N.htmlForXfa,delete N.htmlForXfa,y._capability.resolve(new PDFDocumentProxy(N,this))}),l.on("DocException",function(N){let U;switch(N.name){case"PasswordException":U=new _util.PasswordException(N.message,N.code);break;case"InvalidPDFException":U=new _util.InvalidPDFException(N.message);break;case"MissingPDFException":U=new _util.MissingPDFException(N.message);break;case"UnexpectedResponseException":U=new _util.UnexpectedResponseException(N.message,N.status);break;case"UnknownErrorException":U=new _util.UnknownErrorException(N.message,N.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}y._capability.reject(U)}),l.on("PasswordRequest",N=>{if(Ht(this,v,new _util.PromiseCapability),y.onPassword){const U=$=>{$ instanceof Error?ot(this,v).reject($):ot(this,v).resolve({password:$})};try{y.onPassword(U,N.code)}catch($){ot(this,v).reject($)}}else ot(this,v).reject(new _util.PasswordException(N.message,N.code));return ot(this,v).promise}),l.on("DataLoaded",N=>{var U;(U=y.onProgress)==null||U.call(y,{loaded:N.length,total:N.length}),this.downloadInfoCapability.resolve(N)}),l.on("StartRenderPage",N=>{if(this.destroyed)return;ot(this,e).get(N.pageIndex)._startRenderPage(N.transparency,N.cacheKey)}),l.on("commonobj",([N,U,$])=>{var P;if(!this.destroyed&&!this.commonObjs.has(N))switch(U){case"Font":const R=this._params;if("error"in $){const x=$.error;(0,_util.warn)(`Error during font loading: ${x}`),this.commonObjs.resolve(N,x);break}const o=R.pdfBug&&((P=globalThis.FontInspector)!=null&&P.enabled)?(x,E)=>globalThis.FontInspector.fontAdded(x,E):null,g=new _font_loader.FontFaceObject($,{isEvalSupported:R.isEvalSupported,disableFontFace:R.disableFontFace,ignoreErrors:R.ignoreErrors,inspectFont:o});this.fontLoader.bind(g).catch(x=>l.sendWithPromise("FontFallback",{id:N})).finally(()=>{!R.fontExtraProperties&&g.data&&(g.data=null),this.commonObjs.resolve(N,g)});break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(N,$);break;default:throw new Error(`Got unknown common object type ${U}`)}}),l.on("obj",([N,U,$,P])=>{var o;if(this.destroyed)return;const R=ot(this,e).get(U);if(!R.objs.has(N))switch($){case"Image":if(R.objs.resolve(N,P),P){let g;if(P.bitmap){const{width:x,height:E}=P;g=x*E*4}else g=((o=P.data)==null?void 0:o.length)||0;g>_util.MAX_IMAGE_SIZE_TO_CACHE&&(R._maybeCleanupAfterRender=!0)}break;case"Pattern":R.objs.resolve(N,P);break;default:throw new Error(`Got unknown object type ${$}`)}}),l.on("DocProgress",N=>{var U;this.destroyed||(U=y.onProgress)==null||U.call(y,{loaded:N.loaded,total:N.total})}),l.on("FetchBuiltInCMap",N=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(N):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),l.on("FetchStandardFontData",N=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(N):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var N;this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:l,transfers:y}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:l,filename:((N=this._fullReader)==null?void 0:N.filename)??null},y).finally(()=>{this.annotationStorage.resetModified()})}getPage(l){if(!Number.isInteger(l)||l<=0||l>this._numPages)return Promise.reject(new Error("Invalid page request."));const y=l-1,N=ot(this,a).get(y);if(N)return N;const U=this.messageHandler.sendWithPromise("GetPage",{pageIndex:y}).then($=>{if(this.destroyed)throw new Error("Transport destroyed");const P=new PDFPageProxy(y,$,this,this._params.pdfBug);return ot(this,e).set(y,P),P});return ot(this,a).set(y,U),U}getPageIndex(l){return typeof l!="object"||l===null||!Number.isInteger(l.num)||l.num<0||!Number.isInteger(l.gen)||l.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:l.num,gen:l.gen})}getAnnotations(l,y){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:l,intent:y})}getFieldObjects(){return Lt(this,A,Sn).call(this,"GetFieldObjects")}hasJSActions(){return Lt(this,A,Sn).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(l){return typeof l!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:l})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return Lt(this,A,Sn).call(this,"GetDocJSActions")}getPageJSActions(l){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:l})}getStructTree(l){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:l})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(l=>new _optional_content_config.OptionalContentConfig(l))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const l="GetMetadata",y=ot(this,t).get(l);if(y)return y;const N=this.messageHandler.sendWithPromise(l,null).then(U=>{var $,P;return{info:U[0],metadata:U[1]?new _metadata.Metadata(U[1]):null,contentDispositionFilename:(($=this._fullReader)==null?void 0:$.filename)??null,contentLength:((P=this._fullReader)==null?void 0:P.contentLength)??null}});return ot(this,t).set(l,N),N}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(l=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const y of ot(this,e).values())if(!y.cleanup())throw new Error(`startCleanup: Page ${y.pageNumber} is currently rendering.`);this.commonObjs.clear(),l||this.fontLoader.clear(),ot(this,t).clear(),this.filterFactory.destroy(!0)}}get loadingParams(){const{disableAutoFetch:l,enableXfa:y}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:l,enableXfa:y})}}t=new WeakMap,e=new WeakMap,a=new WeakMap,v=new WeakMap,A=new WeakSet,Sn=function(l,y=null){const N=ot(this,t).get(l);if(N)return N;const U=this.messageHandler.sendWithPromise(l,y);return ot(this,t).set(l,U),U};class PDFObjects{constructor(){_t(this,i);_t(this,d,Object.create(null))}get(l,y=null){if(y){const U=Lt(this,i,ui).call(this,l);return U.capability.promise.then(()=>y(U.data)),null}const N=ot(this,d)[l];if(!(N!=null&&N.capability.settled))throw new Error(`Requesting object that isn't resolved yet ${l}.`);return N.data}has(l){const y=ot(this,d)[l];return(y==null?void 0:y.capability.settled)||!1}resolve(l,y=null){const N=Lt(this,i,ui).call(this,l);N.data=y,N.capability.resolve()}clear(){var l;for(const y in ot(this,d)){const{data:N}=ot(this,d)[y];(l=N==null?void 0:N.bitmap)==null||l.close()}Ht(this,d,Object.create(null))}}d=new WeakMap,i=new WeakSet,ui=function(l){var y;return(y=ot(this,d))[l]||(y[l]={capability:new _util.PromiseCapability,data:null})};class RenderTask{constructor(l){_t(this,p,null);Ht(this,p,l),this.onContinue=null}get promise(){return ot(this,p).capability.promise}cancel(l=0){ot(this,p).cancel(null,l)}get separateAnnots(){const{separateAnnots:l}=ot(this,p).operatorList;if(!l)return!1;const{annotationCanvasMap:y}=ot(this,p);return l.form||l.canvas&&(y==null?void 0:y.size)>0}}p=new WeakMap,exports.RenderTask=RenderTask;const F=class F{constructor({callback:l,params:y,objs:N,commonObjs:U,annotationCanvasMap:$,operatorList:P,pageIndex:R,canvasFactory:o,filterFactory:g,useRequestAnimationFrame:x=!1,pdfBug:E=!1,pageColors:D=null}){this.callback=l,this.params=y,this.objs=N,this.commonObjs=U,this.annotationCanvasMap=$,this.operatorListIdx=null,this.operatorList=P,this._pageIndex=R,this.canvasFactory=o,this.filterFactory=g,this._pdfBug=E,this.pageColors=D,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=x===!0&&typeof window<"u",this.cancelled=!1,this.capability=new _util.PromiseCapability,this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=y.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:l=!1,optionalContentConfig:y}){var R,o;if(this.cancelled)return;if(this._canvas){if(ot(F,b).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");ot(F,b).add(this._canvas)}this._pdfBug&&((R=globalThis.StepperManager)!=null&&R.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:N,viewport:U,transform:$,background:P}=this.params;this.gfx=new _canvas.CanvasGraphics(N,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:y},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:$,viewport:U,transparency:l,background:P}),this.operatorListIdx=0,this.graphicsReady=!0,(o=this.graphicsReadyCallback)==null||o.call(this)}cancel(l=null,y=0){var N;this.running=!1,this.cancelled=!0,(N=this.gfx)==null||N.endDrawing(),ot(F,b).delete(this._canvas),this.callback(l||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,y))}operatorListChanged(){var l;if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}(l=this.stepper)==null||l.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),ot(F,b).delete(this._canvas),this.callback())))}};b=new WeakMap,_t(F,b,new WeakSet);let InternalRenderTask=F;const version="3.11.174";exports.version=version;const build="ce8716743";exports.build=build},(Ot,dt,Mt)=>{var n,_,L,tr,e;Object.defineProperty(dt,"__esModule",{value:!0}),dt.SerializableEmpty=dt.PrintAnnotationStorage=dt.AnnotationStorage=void 0;var ft=Mt(1),At=Mt(4),$t=Mt(8);const vt=Object.freeze({map:null,hash:"",transfers:void 0});dt.SerializableEmpty=vt;class M{constructor(){_t(this,L);_t(this,n,!1);_t(this,_,new Map);this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(v,A){const T=ot(this,_).get(v);return T===void 0?A:Object.assign(A,T)}getRawValue(v){return ot(this,_).get(v)}remove(v){if(ot(this,_).delete(v),ot(this,_).size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const A of ot(this,_).values())if(A instanceof At.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(v,A){const T=ot(this,_).get(v);let d=!1;if(T!==void 0)for(const[i,C]of Object.entries(A))T[i]!==C&&(d=!0,T[i]=C);else d=!0,ot(this,_).set(v,A);d&&Lt(this,L,tr).call(this),A instanceof At.AnnotationEditor&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(A.constructor._type)}has(v){return ot(this,_).has(v)}getAll(){return ot(this,_).size>0?(0,ft.objectFromMap)(ot(this,_)):null}setAll(v){for(const[A,T]of Object.entries(v))this.setValue(A,T)}get size(){return ot(this,_).size}resetModified(){ot(this,n)&&(Ht(this,n,!1),typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new Z(this)}get serializable(){if(ot(this,_).size===0)return vt;const v=new Map,A=new $t.MurmurHash3_64,T=[],d=Object.create(null);let i=!1;for(const[C,p]of ot(this,_)){const b=p instanceof At.AnnotationEditor?p.serialize(!1,d):p;b&&(v.set(C,b),A.update(`${C}:${JSON.stringify(b)}`),i||(i=!!b.bitmap))}if(i)for(const C of v.values())C.bitmap&&T.push(C.bitmap);return v.size>0?{map:v,hash:A.hexdigest(),transfers:T}:vt}}n=new WeakMap,_=new WeakMap,L=new WeakSet,tr=function(){ot(this,n)||(Ht(this,n,!0),typeof this.onSetModified=="function"&&this.onSetModified())},dt.AnnotationStorage=M;class Z extends M{constructor(A){super();_t(this,e,void 0);const{map:T,hash:d,transfers:i}=A.serializable,C=structuredClone(T,i?{transfer:i}:null);Ht(this,e,{map:C,hash:d,transfers:i})}get print(){(0,ft.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return ot(this,e)}}e=new WeakMap,dt.PrintAnnotationStorage=Z},(Ot,dt,Mt)=>{var Z,n,_,L,t,e,a,v,A,T,d,i,C,p,b,di,u,fi,y,pi,U,gi,P,er,o,nr,x,ir,D,mi,W,rr;Object.defineProperty(dt,"__esModule",{value:!0}),dt.AnnotationEditor=void 0;var ft=Mt(5),At=Mt(1),$t=Mt(6);const s=class s{constructor(S){_t(this,b);_t(this,u);_t(this,U);_t(this,P);_t(this,o);_t(this,x);_t(this,D);_t(this,W);_t(this,Z,"");_t(this,n,!1);_t(this,_,null);_t(this,L,null);_t(this,t,null);_t(this,e,!1);_t(this,a,null);_t(this,v,this.focusin.bind(this));_t(this,A,this.focusout.bind(this));_t(this,T,!1);_t(this,d,!1);_t(this,i,!1);ye(this,"_initialOptions",Object.create(null));ye(this,"_uiManager",null);ye(this,"_focusEventsAllowed",!0);ye(this,"_l10nPromise",null);_t(this,C,!1);_t(this,p,s._zIndex++);this.constructor===s&&(0,At.unreachable)("Cannot initialize AnnotationEditor."),this.parent=S.parent,this.id=S.id,this.width=this.height=null,this.pageIndex=S.parent.pageIndex,this.name=S.name,this.div=null,this._uiManager=S.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=S.isCentered,this._structTreeParentId=null;const{rotation:h,rawDims:{pageWidth:m,pageHeight:k,pageX:I,pageY:B}}=this.parent.viewport;this.rotation=h,this.pageRotation=(360+h-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[m,k],this.pageTranslation=[I,B];const[tt,it]=this.parentDimensions;this.x=S.x/tt,this.y=S.y/it,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,At.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(S){const h=new M({id:S.parent.getNextId(),parent:S.parent,uiManager:S._uiManager});h.annotationElementId=S.annotationElementId,h.deleted=!0,h._uiManager.addToAnnotationStorage(h)}static initialize(S,h=null){if(s._l10nPromise||(s._l10nPromise=new Map(["editor_alt_text_button_label","editor_alt_text_edit_button_label","editor_alt_text_decorative_tooltip"].map(k=>[k,S.get(k)]))),h!=null&&h.strings)for(const k of h.strings)s._l10nPromise.set(k,S.get(k));if(s._borderLineWidth!==-1)return;const m=getComputedStyle(document.documentElement);s._borderLineWidth=parseFloat(m.getPropertyValue("--outline-width"))||0}static updateDefaultParams(S,h){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(S){return!1}static paste(S,h){(0,At.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return ot(this,C)}set _isDraggable(S){var h;Ht(this,C,S),(h=this.div)==null||h.classList.toggle("draggable",S)}center(){const[S,h]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*h/(S*2),this.y+=this.width*S/(h*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*h/(S*2),this.y-=this.width*S/(h*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(S){this._uiManager.addCommands(S)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=ot(this,p)}setParent(S){S!==null&&(this.pageIndex=S.pageIndex,this.pageDimensions=S.pageDimensions),this.parent=S}focusin(S){this._focusEventsAllowed&&(ot(this,T)?Ht(this,T,!1):this.parent.setSelected(this))}focusout(S){var m;if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;const h=S.relatedTarget;h!=null&&h.closest(`#${this.id}`)||(S.preventDefault(),(m=this.parent)!=null&&m.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(S,h,m,k){const[I,B]=this.parentDimensions;[m,k]=this.screenToPageTranslation(m,k),this.x=(S+m)/I,this.y=(h+k)/B,this.fixAndSetPosition()}translate(S,h){Lt(this,b,di).call(this,this.parentDimensions,S,h)}translateInPage(S,h){Lt(this,b,di).call(this,this.pageDimensions,S,h),this.div.scrollIntoView({block:"nearest"})}drag(S,h){const[m,k]=this.parentDimensions;if(this.x+=S/m,this.y+=h/k,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:st,y:X}=this.div.getBoundingClientRect();this.parent.findNewParent(this,st,X)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:I,y:B}=this;const[tt,it]=Lt(this,u,fi).call(this);I+=tt,B+=it,this.div.style.left=`${(100*I).toFixed(2)}%`,this.div.style.top=`${(100*B).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}fixAndSetPosition(){const[S,h]=this.pageDimensions;let{x:m,y:k,width:I,height:B}=this;switch(I*=S,B*=h,m*=S,k*=h,this.rotation){case 0:m=Math.max(0,Math.min(S-I,m)),k=Math.max(0,Math.min(h-B,k));break;case 90:m=Math.max(0,Math.min(S-B,m)),k=Math.min(h,Math.max(I,k));break;case 180:m=Math.min(S,Math.max(I,m)),k=Math.min(h,Math.max(B,k));break;case 270:m=Math.min(S,Math.max(B,m)),k=Math.max(0,Math.min(h-I,k));break}this.x=m/=S,this.y=k/=h;const[tt,it]=Lt(this,u,fi).call(this);m+=tt,k+=it;const{style:st}=this.div;st.left=`${(100*m).toFixed(2)}%`,st.top=`${(100*k).toFixed(2)}%`,this.moveInDOM()}screenToPageTranslation(S,h){var m;return Lt(m=s,y,pi).call(m,S,h,this.parentRotation)}pageTranslationToScreen(S,h){var m;return Lt(m=s,y,pi).call(m,S,h,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:S,pageDimensions:[h,m]}=this,k=h*S,I=m*S;return At.FeatureTest.isCSSRoundSupported?[Math.round(k),Math.round(I)]:[k,I]}setDims(S,h){var I;const[m,k]=this.parentDimensions;this.div.style.width=`${(100*S/m).toFixed(2)}%`,ot(this,e)||(this.div.style.height=`${(100*h/k).toFixed(2)}%`),(I=ot(this,_))==null||I.classList.toggle("small",Sm.stopPropagation()),S.addEventListener("click",m=>{m.preventDefault(),this._uiManager.editAltText(this)},{capture:!0}),S.addEventListener("keydown",m=>{m.target===S&&m.key==="Enter"&&(m.preventDefault(),this._uiManager.editAltText(this))}),Lt(this,D,mi).call(this),this.div.append(S),s.SMALL_EDITOR_SIZE||(s.SMALL_EDITOR_SIZE=Math.min(128,Math.round(S.getBoundingClientRect().width*1.4)))}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:ot(this,Z),decorative:ot(this,n)}}set altTextData({altText:S,decorative:h}){ot(this,Z)===S&&ot(this,n)===h||(Ht(this,Z,S),Ht(this,n,h),Lt(this,D,mi).call(this))}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",ot(this,v)),this.div.addEventListener("focusout",ot(this,A));const[S,h]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*h/S).toFixed(2)}%`,this.div.style.maxHeight=`${(100*S/h).toFixed(2)}%`);const[m,k]=this.getInitialTranslation();return this.translate(m,k),(0,ft.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(S){const{isMac:h}=At.FeatureTest.platform;if(S.button!==0||S.ctrlKey&&h){S.preventDefault();return}Ht(this,T,!0),Lt(this,W,rr).call(this,S)}moveInDOM(){var S;(S=this.parent)==null||S.moveEditorInDOM(this)}_setParentAndPosition(S,h,m){S.changeParent(this),this.x=h,this.y=m,this.fixAndSetPosition()}getRect(S,h){const m=this.parentScale,[k,I]=this.pageDimensions,[B,tt]=this.pageTranslation,it=S/m,st=h/m,X=this.x*k,J=this.y*I,j=this.width*k,O=this.height*I;switch(this.rotation){case 0:return[X+it+B,I-J-st-O+tt,X+it+j+B,I-J-st+tt];case 90:return[X+st+B,I-J+it+tt,X+st+O+B,I-J+it+j+tt];case 180:return[X-it-j+B,I-J+st+tt,X-it+B,I-J+st+O+tt];case 270:return[X-st-O+B,I-J-it-j+tt,X-st+B,I-J-it+tt];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(S,h){const[m,k,I,B]=S,tt=I-m,it=B-k;switch(this.rotation){case 0:return[m,h-B,tt,it];case 90:return[m,h-k,it,tt];case 180:return[I,h-k,tt,it];case 270:return[I,h-B,it,tt];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){Ht(this,i,!0)}disableEditMode(){Ht(this,i,!1)}isInEditMode(){return ot(this,i)}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var S,h;(S=this.div)==null||S.addEventListener("focusin",ot(this,v)),(h=this.div)==null||h.addEventListener("focusout",ot(this,A))}serialize(S=!1,h=null){(0,At.unreachable)("An editor must be serializable")}static deserialize(S,h,m){const k=new this.prototype.constructor({parent:h,id:h.getNextId(),uiManager:m});k.rotation=S.rotation;const[I,B]=k.pageDimensions,[tt,it,st,X]=k.getRectInCurrentCoords(S.rect,B);return k.x=tt/I,k.y=it/B,k.width=st/I,k.height=X/B,k}remove(){var S;this.div.removeEventListener("focusin",ot(this,v)),this.div.removeEventListener("focusout",ot(this,A)),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),(S=ot(this,_))==null||S.remove(),Ht(this,_,null),Ht(this,L,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(Lt(this,P,er).call(this),ot(this,a).classList.remove("hidden"))}select(){var S;this.makeResizable(),(S=this.div)==null||S.classList.add("selectedEditor")}unselect(){var S,h,m;(S=ot(this,a))==null||S.classList.add("hidden"),(h=this.div)==null||h.classList.remove("selectedEditor"),(m=this.div)!=null&&m.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}updateParams(S,h){}disableEditing(){ot(this,_)&&(ot(this,_).hidden=!0)}enableEditing(){ot(this,_)&&(ot(this,_).hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return ot(this,d)}set isEditing(S){Ht(this,d,S),this.parent&&(S?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(S,h){Ht(this,e,!0);const m=S/h,{style:k}=this.div;k.aspectRatio=m,k.height="auto"}static get MIN_SIZE(){return 16}};Z=new WeakMap,n=new WeakMap,_=new WeakMap,L=new WeakMap,t=new WeakMap,e=new WeakMap,a=new WeakMap,v=new WeakMap,A=new WeakMap,T=new WeakMap,d=new WeakMap,i=new WeakMap,C=new WeakMap,p=new WeakMap,b=new WeakSet,di=function([S,h],m,k){[m,k]=this.screenToPageTranslation(m,k),this.x+=m/S,this.y+=k/h,this.fixAndSetPosition()},u=new WeakSet,fi=function(){const[S,h]=this.parentDimensions,{_borderLineWidth:m}=s,k=m/S,I=m/h;switch(this.rotation){case 90:return[-k,I];case 180:return[k,I];case 270:return[k,-I];default:return[-k,-I]}},y=new WeakSet,pi=function(S,h,m){switch(m){case 90:return[h,-S];case 180:return[-S,-h];case 270:return[-h,S];default:return[S,h]}},U=new WeakSet,gi=function(S){switch(S){case 90:{const[h,m]=this.pageDimensions;return[0,-h/m,m/h,0]}case 180:return[-1,0,0,-1];case 270:{const[h,m]=this.pageDimensions;return[0,h/m,-m/h,0]}default:return[1,0,0,1]}},P=new WeakSet,er=function(){if(ot(this,a))return;Ht(this,a,document.createElement("div")),ot(this,a).classList.add("resizers");const S=["topLeft","topRight","bottomRight","bottomLeft"];this._willKeepAspectRatio||S.push("topMiddle","middleRight","bottomMiddle","middleLeft");for(const h of S){const m=document.createElement("div");ot(this,a).append(m),m.classList.add("resizer",h),m.addEventListener("pointerdown",Lt(this,o,nr).bind(this,h)),m.addEventListener("contextmenu",$t.noContextMenu)}this.div.prepend(ot(this,a))},o=new WeakSet,nr=function(S,h){h.preventDefault();const{isMac:m}=At.FeatureTest.platform;if(h.button!==0||h.ctrlKey&&m)return;const k=Lt(this,x,ir).bind(this,S),I=this._isDraggable;this._isDraggable=!1;const B={passive:!0,capture:!0};window.addEventListener("pointermove",k,B);const tt=this.x,it=this.y,st=this.width,X=this.height,J=this.parent.div.style.cursor,j=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(h.target).cursor;const O=()=>{this._isDraggable=I,window.removeEventListener("pointerup",O),window.removeEventListener("blur",O),window.removeEventListener("pointermove",k,B),this.parent.div.style.cursor=J,this.div.style.cursor=j;const H=this.x,V=this.y,z=this.width,Y=this.height;H===tt&&V===it&&z===st&&Y===X||this.addCommands({cmd:()=>{this.width=z,this.height=Y,this.x=H,this.y=V;const[G,K]=this.parentDimensions;this.setDims(G*z,K*Y),this.fixAndSetPosition()},undo:()=>{this.width=st,this.height=X,this.x=tt,this.y=it;const[G,K]=this.parentDimensions;this.setDims(G*st,K*X),this.fixAndSetPosition()},mustExec:!0})};window.addEventListener("pointerup",O),window.addEventListener("blur",O)},x=new WeakSet,ir=function(S,h){const[m,k]=this.parentDimensions,I=this.x,B=this.y,tt=this.width,it=this.height,st=s.MIN_SIZE/m,X=s.MIN_SIZE/k,J=Rt=>Math.round(Rt*1e4)/1e4,j=Lt(this,U,gi).call(this,this.rotation),O=(Rt,Ct)=>[j[0]*Rt+j[2]*Ct,j[1]*Rt+j[3]*Ct],H=Lt(this,U,gi).call(this,360-this.rotation),V=(Rt,Ct)=>[H[0]*Rt+H[2]*Ct,H[1]*Rt+H[3]*Ct];let z,Y,G=!1,K=!1;switch(S){case"topLeft":G=!0,z=(Rt,Ct)=>[0,0],Y=(Rt,Ct)=>[Rt,Ct];break;case"topMiddle":z=(Rt,Ct)=>[Rt/2,0],Y=(Rt,Ct)=>[Rt/2,Ct];break;case"topRight":G=!0,z=(Rt,Ct)=>[Rt,0],Y=(Rt,Ct)=>[0,Ct];break;case"middleRight":K=!0,z=(Rt,Ct)=>[Rt,Ct/2],Y=(Rt,Ct)=>[0,Ct/2];break;case"bottomRight":G=!0,z=(Rt,Ct)=>[Rt,Ct],Y=(Rt,Ct)=>[0,0];break;case"bottomMiddle":z=(Rt,Ct)=>[Rt/2,Ct],Y=(Rt,Ct)=>[Rt/2,0];break;case"bottomLeft":G=!0,z=(Rt,Ct)=>[0,Ct],Y=(Rt,Ct)=>[Rt,0];break;case"middleLeft":K=!0,z=(Rt,Ct)=>[0,Ct/2],Y=(Rt,Ct)=>[Rt,Ct/2];break}const et=z(tt,it),nt=Y(tt,it);let at=O(...nt);const Q=J(I+at[0]),lt=J(B+at[1]);let ut=1,pt=1,[yt,Et]=this.screenToPageTranslation(h.movementX,h.movementY);if([yt,Et]=V(yt/m,Et/k),G){const Rt=Math.hypot(tt,it);ut=pt=Math.max(Math.min(Math.hypot(nt[0]-et[0]-yt,nt[1]-et[1]-Et)/Rt,1/tt,1/it),st/tt,X/it)}else K?ut=Math.max(st,Math.min(1,Math.abs(nt[0]-et[0]-yt)))/tt:pt=Math.max(X,Math.min(1,Math.abs(nt[1]-et[1]-Et)))/it;const Tt=J(tt*ut),xt=J(it*pt);at=O(...Y(Tt,xt));const wt=Q-at[0],St=lt-at[1];this.width=Tt,this.height=xt,this.x=wt,this.y=St,this.setDims(m*Tt,k*xt),this.fixAndSetPosition()},D=new WeakSet,mi=async function(){var m;const S=ot(this,_);if(!S)return;if(!ot(this,Z)&&!ot(this,n)){S.classList.remove("done"),(m=ot(this,L))==null||m.remove();return}s._l10nPromise.get("editor_alt_text_edit_button_label").then(k=>{S.setAttribute("aria-label",k)});let h=ot(this,L);if(!h){Ht(this,L,h=document.createElement("span")),h.className="tooltip",h.setAttribute("role","tooltip");const k=h.id=`alt-text-tooltip-${this.id}`;S.setAttribute("aria-describedby",k);const I=100;S.addEventListener("mouseenter",()=>{Ht(this,t,setTimeout(()=>{Ht(this,t,null),ot(this,L).classList.add("show"),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"alt_text_tooltip"}}})},I))}),S.addEventListener("mouseleave",()=>{var B;clearTimeout(ot(this,t)),Ht(this,t,null),(B=ot(this,L))==null||B.classList.remove("show")})}S.classList.add("done"),h.innerText=ot(this,n)?await s._l10nPromise.get("editor_alt_text_decorative_tooltip"):ot(this,Z),h.parentNode||S.append(h)},W=new WeakSet,rr=function(S){if(!this._isDraggable)return;const h=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let m,k;h&&(m={passive:!0,capture:!0},k=B=>{const[tt,it]=this.screenToPageTranslation(B.movementX,B.movementY);this._uiManager.dragSelectedEditors(tt,it)},window.addEventListener("pointermove",k,m));const I=()=>{if(window.removeEventListener("pointerup",I),window.removeEventListener("blur",I),h&&window.removeEventListener("pointermove",k,m),Ht(this,T,!1),!this._uiManager.endDragSession()){const{isMac:B}=At.FeatureTest.platform;S.ctrlKey&&!B||S.shiftKey||S.metaKey&&B?this.parent.toggleSelected(this):this.parent.setSelected(this)}};window.addEventListener("pointerup",I),window.addEventListener("blur",I)},_t(s,y),ye(s,"_borderLineWidth",-1),ye(s,"_colorManager",new ft.ColorManager),ye(s,"_zIndex",1),ye(s,"SMALL_EDITOR_SIZE",0);let vt=s;dt.AnnotationEditor=vt;class M extends vt{constructor(S){super(S),this.annotationElementId=S.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},(Ot,dt,Mt)=>{var e,a,v,A,T,bi,C,p,b,F,u,ar,N,U,$,P,R,o,g,x,E,D,q,W,w,s,c,S,h,m,k,I,B,tt,it,st,X,J,j,O,H,V,z,Y,G,K,et,sr,at,yi,lt,wi,pt,An,Et,Si,xt,Ai,St,Me,Ct,sn,Zt,or,Ut,cr,Wt,xi,re,on,Bt,vi;Object.defineProperty(dt,"__esModule",{value:!0}),dt.KeyboardManager=dt.CommandManager=dt.ColorManager=dt.AnnotationEditorUIManager=void 0,dt.bindEvents=$t,dt.opacityToHex=vt;var ft=Mt(1),At=Mt(6);function $t(mt,rt,ht){for(const gt of ht)rt.addEventListener(gt,mt[gt].bind(mt))}function vt(mt){return Math.round(Math.min(255,Math.max(1,255*mt))).toString(16).padStart(2,"0")}class M{constructor(){_t(this,e,0)}getId(){return`${ft.AnnotationEditorPrefix}${an(this,e)._++}`}}e=new WeakMap;const i=class i{constructor(){_t(this,T);_t(this,a,(0,ft.getUuid)());_t(this,v,0);_t(this,A,null)}static get _isSVGFittingCanvas(){const rt='data:image/svg+xml;charset=UTF-8,',gt=new OffscreenCanvas(1,3).getContext("2d"),bt=new Image;bt.src=rt;const Pt=bt.decode().then(()=>(gt.drawImage(bt,0,0,1,1,0,0,1,3),new Uint32Array(gt.getImageData(0,0,1,1).data.buffer)[0]===0));return(0,ft.shadow)(this,"_isSVGFittingCanvas",Pt)}async getFromFile(rt){const{lastModified:ht,name:gt,size:bt,type:Pt}=rt;return Lt(this,T,bi).call(this,`${ht}_${gt}_${bt}_${Pt}`,rt)}async getFromUrl(rt){return Lt(this,T,bi).call(this,rt,rt)}async getFromId(rt){ot(this,A)||Ht(this,A,new Map);const ht=ot(this,A).get(rt);return ht?ht.bitmap?(ht.refCounter+=1,ht):ht.file?this.getFromFile(ht.file):this.getFromUrl(ht.url):null}getSvgUrl(rt){const ht=ot(this,A).get(rt);return ht!=null&&ht.isSvg?ht.svgUrl:null}deleteId(rt){ot(this,A)||Ht(this,A,new Map);const ht=ot(this,A).get(rt);ht&&(ht.refCounter-=1,ht.refCounter===0&&(ht.bitmap=null))}isValidId(rt){return rt.startsWith(`image_${ot(this,a)}_`)}};a=new WeakMap,v=new WeakMap,A=new WeakMap,T=new WeakSet,bi=async function(rt,ht){ot(this,A)||Ht(this,A,new Map);let gt=ot(this,A).get(rt);if(gt===null)return null;if(gt!=null&>.bitmap)return gt.refCounter+=1,gt;try{gt||(gt={bitmap:null,id:`image_${ot(this,a)}_${an(this,v)._++}`,refCounter:0,isSvg:!1});let bt;if(typeof ht=="string"){gt.url=ht;const Pt=await fetch(ht);if(!Pt.ok)throw new Error(Pt.statusText);bt=await Pt.blob()}else bt=gt.file=ht;if(bt.type==="image/svg+xml"){const Pt=i._isSVGFittingCanvas,It=new FileReader,Nt=new Image,Kt=new Promise((Qt,ne)=>{Nt.onload=()=>{gt.bitmap=Nt,gt.isSvg=!0,Qt()},It.onload=async()=>{const ee=gt.svgUrl=It.result;Nt.src=await Pt?`${ee}#svgView(preserveAspectRatio(none))`:ee},Nt.onerror=It.onerror=ne});It.readAsDataURL(bt),await Kt}else gt.bitmap=await createImageBitmap(bt);gt.refCounter=1}catch(bt){console.error(bt),gt=null}return ot(this,A).set(rt,gt),gt&&ot(this,A).set(gt.id,gt),gt};let Z=i;class n{constructor(rt=128){_t(this,C,[]);_t(this,p,!1);_t(this,b,void 0);_t(this,F,-1);Ht(this,b,rt)}add({cmd:rt,undo:ht,mustExec:gt,type:bt=NaN,overwriteIfSameType:Pt=!1,keepUndo:It=!1}){if(gt&&rt(),ot(this,p))return;const Nt={cmd:rt,undo:ht,type:bt};if(ot(this,F)===-1){ot(this,C).length>0&&(ot(this,C).length=0),Ht(this,F,0),ot(this,C).push(Nt);return}if(Pt&&ot(this,C)[ot(this,F)].type===bt){It&&(Nt.undo=ot(this,C)[ot(this,F)].undo),ot(this,C)[ot(this,F)]=Nt;return}const Kt=ot(this,F)+1;Kt===ot(this,b)?ot(this,C).splice(0,1):(Ht(this,F,Kt),KtPt===ht[It]))return y._colorsMapping.get(gt);return ht}getHexCode(rt){const ht=this._colors.get(rt);return ht?ft.Util.makeHexColor(...ht):rt}};ye(y,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));let L=y;dt.ColorManager=L;const jt=class jt{constructor(rt,ht,gt,bt,Pt,It){_t(this,et);_t(this,at);_t(this,lt);_t(this,pt);_t(this,Et);_t(this,xt);_t(this,St);_t(this,Ct);_t(this,Zt);_t(this,Ut);_t(this,Wt);_t(this,re);_t(this,Bt);_t(this,N,null);_t(this,U,new Map);_t(this,$,new Map);_t(this,P,null);_t(this,R,null);_t(this,o,new n);_t(this,g,0);_t(this,x,new Set);_t(this,E,null);_t(this,D,null);_t(this,q,new Set);_t(this,W,null);_t(this,w,new M);_t(this,s,!1);_t(this,c,!1);_t(this,S,null);_t(this,h,ft.AnnotationEditorType.NONE);_t(this,m,new Set);_t(this,k,null);_t(this,I,this.blur.bind(this));_t(this,B,this.focus.bind(this));_t(this,tt,this.copy.bind(this));_t(this,it,this.cut.bind(this));_t(this,st,this.paste.bind(this));_t(this,X,this.keydown.bind(this));_t(this,J,this.onEditingAction.bind(this));_t(this,j,this.onPageChanging.bind(this));_t(this,O,this.onScaleChanging.bind(this));_t(this,H,this.onRotationChanging.bind(this));_t(this,V,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1});_t(this,z,[0,0]);_t(this,Y,null);_t(this,G,null);_t(this,K,null);Ht(this,G,rt),Ht(this,K,ht),Ht(this,P,gt),this._eventBus=bt,this._eventBus._on("editingaction",ot(this,J)),this._eventBus._on("pagechanging",ot(this,j)),this._eventBus._on("scalechanging",ot(this,O)),this._eventBus._on("rotationchanging",ot(this,H)),Ht(this,R,Pt.annotationStorage),Ht(this,W,Pt.filterFactory),Ht(this,k,It),this.viewParameters={realScale:At.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}static get _keyboardManager(){const rt=jt.prototype,ht=Pt=>{const{activeElement:It}=document;return It&&ot(Pt,G).contains(It)&&Pt.hasSomethingToControl()},gt=this.TRANSLATE_SMALL,bt=this.TRANSLATE_BIG;return(0,ft.shadow)(this,"_keyboardManager",new _([[["ctrl+a","mac+meta+a"],rt.selectAll],[["ctrl+z","mac+meta+z"],rt.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],rt.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],rt.delete],[["Escape","mac+Escape"],rt.unselectAll],[["ArrowLeft","mac+ArrowLeft"],rt.translateSelectedEditors,{args:[-gt,0],checker:ht}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],rt.translateSelectedEditors,{args:[-bt,0],checker:ht}],[["ArrowRight","mac+ArrowRight"],rt.translateSelectedEditors,{args:[gt,0],checker:ht}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],rt.translateSelectedEditors,{args:[bt,0],checker:ht}],[["ArrowUp","mac+ArrowUp"],rt.translateSelectedEditors,{args:[0,-gt],checker:ht}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],rt.translateSelectedEditors,{args:[0,-bt],checker:ht}],[["ArrowDown","mac+ArrowDown"],rt.translateSelectedEditors,{args:[0,gt],checker:ht}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],rt.translateSelectedEditors,{args:[0,bt],checker:ht}]]))}destroy(){Lt(this,pt,An).call(this),Lt(this,at,yi).call(this),this._eventBus._off("editingaction",ot(this,J)),this._eventBus._off("pagechanging",ot(this,j)),this._eventBus._off("scalechanging",ot(this,O)),this._eventBus._off("rotationchanging",ot(this,H));for(const rt of ot(this,$).values())rt.destroy();ot(this,$).clear(),ot(this,U).clear(),ot(this,q).clear(),Ht(this,N,null),ot(this,m).clear(),ot(this,o).destroy(),ot(this,P).destroy()}get hcmFilter(){return(0,ft.shadow)(this,"hcmFilter",ot(this,k)?ot(this,W).addHCMFilter(ot(this,k).foreground,ot(this,k).background):"none")}get direction(){return(0,ft.shadow)(this,"direction",getComputedStyle(ot(this,G)).direction)}editAltText(rt){var ht;(ht=ot(this,P))==null||ht.editAltText(this,rt)}onPageChanging({pageNumber:rt}){Ht(this,g,rt-1)}focusMainContainer(){ot(this,G).focus()}findParent(rt,ht){for(const gt of ot(this,$).values()){const{x:bt,y:Pt,width:It,height:Nt}=gt.div.getBoundingClientRect();if(rt>=bt&&rt<=bt+It&&ht>=Pt&&ht<=Pt+Nt)return gt}return null}disableUserSelect(rt=!1){ot(this,K).classList.toggle("noUserSelect",rt)}addShouldRescale(rt){ot(this,q).add(rt)}removeShouldRescale(rt){ot(this,q).delete(rt)}onScaleChanging({scale:rt}){this.commitOrRemove(),this.viewParameters.realScale=rt*At.PixelsPerInch.PDF_TO_CSS_UNITS;for(const ht of ot(this,q))ht.onScaleChanging()}onRotationChanging({pagesRotation:rt}){this.commitOrRemove(),this.viewParameters.rotation=rt}addToAnnotationStorage(rt){!rt.isEmpty()&&ot(this,R)&&!ot(this,R).has(rt.id)&&ot(this,R).setValue(rt.id,rt)}blur(){if(!this.hasSelection)return;const{activeElement:rt}=document;for(const ht of ot(this,m))if(ht.div.contains(rt)){Ht(this,S,[ht,rt]),ht._focusEventsAllowed=!1;break}}focus(){if(!ot(this,S))return;const[rt,ht]=ot(this,S);Ht(this,S,null),ht.addEventListener("focusin",()=>{rt._focusEventsAllowed=!0},{once:!0}),ht.focus()}addEditListeners(){Lt(this,lt,wi).call(this),Lt(this,Et,Si).call(this)}removeEditListeners(){Lt(this,pt,An).call(this),Lt(this,xt,Ai).call(this)}copy(rt){var gt;if(rt.preventDefault(),(gt=ot(this,N))==null||gt.commitOrRemove(),!this.hasSelection)return;const ht=[];for(const bt of ot(this,m)){const Pt=bt.serialize(!0);Pt&&ht.push(Pt)}ht.length!==0&&rt.clipboardData.setData("application/pdfjs",JSON.stringify(ht))}cut(rt){this.copy(rt),this.delete()}paste(rt){rt.preventDefault();const{clipboardData:ht}=rt;for(const Pt of ht.items)for(const It of ot(this,D))if(It.isHandlingMimeForPasting(Pt.type)){It.paste(Pt,this.currentLayer);return}let gt=ht.getData("application/pdfjs");if(!gt)return;try{gt=JSON.parse(gt)}catch(Pt){(0,ft.warn)(`paste: "${Pt.message}".`);return}if(!Array.isArray(gt))return;this.unselectAll();const bt=this.currentLayer;try{const Pt=[];for(const Kt of gt){const Qt=bt.deserialize(Kt);if(!Qt)return;Pt.push(Qt)}const It=()=>{for(const Kt of Pt)Lt(this,Wt,xi).call(this,Kt);Lt(this,Bt,vi).call(this,Pt)},Nt=()=>{for(const Kt of Pt)Kt.remove()};this.addCommands({cmd:It,undo:Nt,mustExec:!0})}catch(Pt){(0,ft.warn)(`paste: "${Pt.message}".`)}}keydown(rt){var ht;(ht=this.getActive())!=null&&ht.shouldGetKeyboardEvents()||jt._keyboardManager.exec(this,rt)}onEditingAction(rt){["undo","redo","delete","selectAll"].includes(rt.name)&&this[rt.name]()}setEditingState(rt){rt?(Lt(this,et,sr).call(this),Lt(this,lt,wi).call(this),Lt(this,Et,Si).call(this),Lt(this,St,Me).call(this,{isEditing:ot(this,h)!==ft.AnnotationEditorType.NONE,isEmpty:Lt(this,re,on).call(this),hasSomethingToUndo:ot(this,o).hasSomethingToUndo(),hasSomethingToRedo:ot(this,o).hasSomethingToRedo(),hasSelectedEditor:!1})):(Lt(this,at,yi).call(this),Lt(this,pt,An).call(this),Lt(this,xt,Ai).call(this),Lt(this,St,Me).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(rt){if(!ot(this,D)){Ht(this,D,rt);for(const ht of ot(this,D))Lt(this,Ct,sn).call(this,ht.defaultPropertiesToUpdate)}}getId(){return ot(this,w).getId()}get currentLayer(){return ot(this,$).get(ot(this,g))}getLayer(rt){return ot(this,$).get(rt)}get currentPageIndex(){return ot(this,g)}addLayer(rt){ot(this,$).set(rt.pageIndex,rt),ot(this,s)?rt.enable():rt.disable()}removeLayer(rt){ot(this,$).delete(rt.pageIndex)}updateMode(rt,ht=null){if(ot(this,h)!==rt){if(Ht(this,h,rt),rt===ft.AnnotationEditorType.NONE){this.setEditingState(!1),Lt(this,Ut,cr).call(this);return}this.setEditingState(!0),Lt(this,Zt,or).call(this),this.unselectAll();for(const gt of ot(this,$).values())gt.updateMode(rt);if(ht){for(const gt of ot(this,U).values())if(gt.annotationElementId===ht){this.setSelected(gt),gt.enterInEditMode();break}}}}updateToolbar(rt){rt!==ot(this,h)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:rt})}updateParams(rt,ht){if(ot(this,D)){if(rt===ft.AnnotationEditorParamsType.CREATE){this.currentLayer.addNewEditor(rt);return}for(const gt of ot(this,m))gt.updateParams(rt,ht);for(const gt of ot(this,D))gt.updateDefaultParams(rt,ht)}}enableWaiting(rt=!1){if(ot(this,c)!==rt){Ht(this,c,rt);for(const ht of ot(this,$).values())rt?ht.disableClick():ht.enableClick(),ht.div.classList.toggle("waiting",rt)}}getEditors(rt){const ht=[];for(const gt of ot(this,U).values())gt.pageIndex===rt&&ht.push(gt);return ht}getEditor(rt){return ot(this,U).get(rt)}addEditor(rt){ot(this,U).set(rt.id,rt)}removeEditor(rt){var ht;ot(this,U).delete(rt.id),this.unselect(rt),(!rt.annotationElementId||!ot(this,x).has(rt.annotationElementId))&&((ht=ot(this,R))==null||ht.remove(rt.id))}addDeletedAnnotationElement(rt){ot(this,x).add(rt.annotationElementId),rt.deleted=!0}isDeletedAnnotationElement(rt){return ot(this,x).has(rt)}removeDeletedAnnotationElement(rt){ot(this,x).delete(rt.annotationElementId),rt.deleted=!1}setActiveEditor(rt){ot(this,N)!==rt&&(Ht(this,N,rt),rt&&Lt(this,Ct,sn).call(this,rt.propertiesToUpdate))}toggleSelected(rt){if(ot(this,m).has(rt)){ot(this,m).delete(rt),rt.unselect(),Lt(this,St,Me).call(this,{hasSelectedEditor:this.hasSelection});return}ot(this,m).add(rt),rt.select(),Lt(this,Ct,sn).call(this,rt.propertiesToUpdate),Lt(this,St,Me).call(this,{hasSelectedEditor:!0})}setSelected(rt){for(const ht of ot(this,m))ht!==rt&&ht.unselect();ot(this,m).clear(),ot(this,m).add(rt),rt.select(),Lt(this,Ct,sn).call(this,rt.propertiesToUpdate),Lt(this,St,Me).call(this,{hasSelectedEditor:!0})}isSelected(rt){return ot(this,m).has(rt)}unselect(rt){rt.unselect(),ot(this,m).delete(rt),Lt(this,St,Me).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return ot(this,m).size!==0}undo(){ot(this,o).undo(),Lt(this,St,Me).call(this,{hasSomethingToUndo:ot(this,o).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:Lt(this,re,on).call(this)})}redo(){ot(this,o).redo(),Lt(this,St,Me).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:ot(this,o).hasSomethingToRedo(),isEmpty:Lt(this,re,on).call(this)})}addCommands(rt){ot(this,o).add(rt),Lt(this,St,Me).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:Lt(this,re,on).call(this)})}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const rt=[...ot(this,m)],ht=()=>{for(const bt of rt)bt.remove()},gt=()=>{for(const bt of rt)Lt(this,Wt,xi).call(this,bt)};this.addCommands({cmd:ht,undo:gt,mustExec:!0})}commitOrRemove(){var rt;(rt=ot(this,N))==null||rt.commitOrRemove()}hasSomethingToControl(){return ot(this,N)||this.hasSelection}selectAll(){for(const rt of ot(this,m))rt.commit();Lt(this,Bt,vi).call(this,ot(this,U).values())}unselectAll(){if(ot(this,N)){ot(this,N).commitOrRemove();return}if(this.hasSelection){for(const rt of ot(this,m))rt.unselect();ot(this,m).clear(),Lt(this,St,Me).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(rt,ht,gt=!1){if(gt||this.commitOrRemove(),!this.hasSelection)return;ot(this,z)[0]+=rt,ot(this,z)[1]+=ht;const[bt,Pt]=ot(this,z),It=[...ot(this,m)],Nt=1e3;ot(this,Y)&&clearTimeout(ot(this,Y)),Ht(this,Y,setTimeout(()=>{Ht(this,Y,null),ot(this,z)[0]=ot(this,z)[1]=0,this.addCommands({cmd:()=>{for(const Kt of It)ot(this,U).has(Kt.id)&&Kt.translateInPage(bt,Pt)},undo:()=>{for(const Kt of It)ot(this,U).has(Kt.id)&&Kt.translateInPage(-bt,-Pt)},mustExec:!1})},Nt));for(const Kt of It)Kt.translateInPage(rt,ht)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),Ht(this,E,new Map);for(const rt of ot(this,m))ot(this,E).set(rt,{savedX:rt.x,savedY:rt.y,savedPageIndex:rt.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!ot(this,E))return!1;this.disableUserSelect(!1);const rt=ot(this,E);Ht(this,E,null);let ht=!1;for(const[{x:bt,y:Pt,pageIndex:It},Nt]of rt)Nt.newX=bt,Nt.newY=Pt,Nt.newPageIndex=It,ht||(ht=bt!==Nt.savedX||Pt!==Nt.savedY||It!==Nt.savedPageIndex);if(!ht)return!1;const gt=(bt,Pt,It,Nt)=>{if(ot(this,U).has(bt.id)){const Kt=ot(this,$).get(Nt);Kt?bt._setParentAndPosition(Kt,Pt,It):(bt.pageIndex=Nt,bt.x=Pt,bt.y=It)}};return this.addCommands({cmd:()=>{for(const[bt,{newX:Pt,newY:It,newPageIndex:Nt}]of rt)gt(bt,Pt,It,Nt)},undo:()=>{for(const[bt,{savedX:Pt,savedY:It,savedPageIndex:Nt}]of rt)gt(bt,Pt,It,Nt)},mustExec:!0}),!0}dragSelectedEditors(rt,ht){if(ot(this,E))for(const gt of ot(this,E).keys())gt.drag(rt,ht)}rebuild(rt){if(rt.parent===null){const ht=this.getLayer(rt.pageIndex);ht?(ht.changeParent(rt),ht.addOrRebuild(rt)):(this.addEditor(rt),this.addToAnnotationStorage(rt),rt.rebuild())}else rt.parent.addOrRebuild(rt)}isActive(rt){return ot(this,N)===rt}getActive(){return ot(this,N)}getMode(){return ot(this,h)}get imageManager(){return(0,ft.shadow)(this,"imageManager",new Z)}};N=new WeakMap,U=new WeakMap,$=new WeakMap,P=new WeakMap,R=new WeakMap,o=new WeakMap,g=new WeakMap,x=new WeakMap,E=new WeakMap,D=new WeakMap,q=new WeakMap,W=new WeakMap,w=new WeakMap,s=new WeakMap,c=new WeakMap,S=new WeakMap,h=new WeakMap,m=new WeakMap,k=new WeakMap,I=new WeakMap,B=new WeakMap,tt=new WeakMap,it=new WeakMap,st=new WeakMap,X=new WeakMap,J=new WeakMap,j=new WeakMap,O=new WeakMap,H=new WeakMap,V=new WeakMap,z=new WeakMap,Y=new WeakMap,G=new WeakMap,K=new WeakMap,et=new WeakSet,sr=function(){window.addEventListener("focus",ot(this,B)),window.addEventListener("blur",ot(this,I))},at=new WeakSet,yi=function(){window.removeEventListener("focus",ot(this,B)),window.removeEventListener("blur",ot(this,I))},lt=new WeakSet,wi=function(){window.addEventListener("keydown",ot(this,X),{capture:!0})},pt=new WeakSet,An=function(){window.removeEventListener("keydown",ot(this,X),{capture:!0})},Et=new WeakSet,Si=function(){document.addEventListener("copy",ot(this,tt)),document.addEventListener("cut",ot(this,it)),document.addEventListener("paste",ot(this,st))},xt=new WeakSet,Ai=function(){document.removeEventListener("copy",ot(this,tt)),document.removeEventListener("cut",ot(this,it)),document.removeEventListener("paste",ot(this,st))},St=new WeakSet,Me=function(rt){Object.entries(rt).some(([gt,bt])=>ot(this,V)[gt]!==bt)&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(ot(this,V),rt)})},Ct=new WeakSet,sn=function(rt){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:rt})},Zt=new WeakSet,or=function(){if(!ot(this,s)){Ht(this,s,!0);for(const rt of ot(this,$).values())rt.enable()}},Ut=new WeakSet,cr=function(){if(this.unselectAll(),ot(this,s)){Ht(this,s,!1);for(const rt of ot(this,$).values())rt.disable()}},Wt=new WeakSet,xi=function(rt){const ht=ot(this,$).get(rt.pageIndex);ht?ht.addOrRebuild(rt):this.addEditor(rt)},re=new WeakSet,on=function(){if(ot(this,U).size===0)return!0;if(ot(this,U).size===1)for(const rt of ot(this,U).values())return rt.isEmpty();return!1},Bt=new WeakSet,vi=function(rt){ot(this,m).clear();for(const ht of rt)ht.isEmpty()||(ot(this,m).add(ht),ht.select());Lt(this,St,Me).call(this,{hasSelectedEditor:!0})},ye(jt,"TRANSLATE_SMALL",1),ye(jt,"TRANSLATE_BIG",10);let t=jt;dt.AnnotationEditorUIManager=t},(Ot,dt,Mt)=>{var g,x,E,D,q,W,w,s,c,S,h,m,We,I,Ve,tt,Ci,st,xn,J,vn,O,cn,V,ln;Object.defineProperty(dt,"__esModule",{value:!0}),dt.StatTimer=dt.RenderingCancelledException=dt.PixelsPerInch=dt.PageViewport=dt.PDFDateString=dt.DOMStandardFontDataFactory=dt.DOMSVGFactory=dt.DOMFilterFactory=dt.DOMCanvasFactory=dt.DOMCMapReaderFactory=void 0,dt.deprecated=F,dt.getColorValues=U,dt.getCurrentTransform=$,dt.getCurrentTransformInverse=P,dt.getFilenameFromUrl=T,dt.getPdfFilenameFromUrl=d,dt.getRGB=N,dt.getXfaPageViewport=y,dt.isDataScheme=v,dt.isPdfFile=A,dt.isValidFetchUrl=C,dt.loadScript=b,dt.noContextMenu=p,dt.setLayerDimensions=R;var ft=Mt(7),At=Mt(1);const $t="http://www.w3.org/2000/svg",o=class o{};ye(o,"CSS",96),ye(o,"PDF",72),ye(o,"PDF_TO_CSS_UNITS",o.CSS/o.PDF);let vt=o;dt.PixelsPerInch=vt;class M extends ft.BaseFilterFactory{constructor({docId:K,ownerDocument:et=globalThis.document}={}){super();_t(this,m);_t(this,I);_t(this,tt);_t(this,st);_t(this,J);_t(this,O);_t(this,V);_t(this,g,void 0);_t(this,x,void 0);_t(this,E,void 0);_t(this,D,void 0);_t(this,q,void 0);_t(this,W,void 0);_t(this,w,void 0);_t(this,s,void 0);_t(this,c,void 0);_t(this,S,void 0);_t(this,h,0);Ht(this,E,K),Ht(this,D,et)}addFilter(K){if(!K)return"none";let et=ot(this,m,We).get(K);if(et)return et;let nt,at,Q,lt;if(K.length===1){const Et=K[0],Tt=new Array(256);for(let xt=0;xt<256;xt++)Tt[xt]=Et[xt]/255;lt=nt=at=Q=Tt.join(",")}else{const[Et,Tt,xt]=K,wt=new Array(256),St=new Array(256),Rt=new Array(256);for(let Ct=0;Ct<256;Ct++)wt[Ct]=Et[Ct]/255,St[Ct]=Tt[Ct]/255,Rt[Ct]=xt[Ct]/255;nt=wt.join(","),at=St.join(","),Q=Rt.join(","),lt=`${nt}${at}${Q}`}if(et=ot(this,m,We).get(lt),et)return ot(this,m,We).set(K,et),et;const ut=`g_${ot(this,E)}_transfer_map_${an(this,h)._++}`,pt=`url(#${ut})`;ot(this,m,We).set(K,pt),ot(this,m,We).set(lt,pt);const yt=Lt(this,st,xn).call(this,ut);return Lt(this,O,cn).call(this,nt,at,Q,yt),pt}addHCMFilter(K,et){var Tt;const nt=`${K}-${et}`;if(ot(this,W)===nt)return ot(this,w);if(Ht(this,W,nt),Ht(this,w,"none"),(Tt=ot(this,q))==null||Tt.remove(),!K||!et)return ot(this,w);const at=Lt(this,V,ln).call(this,K);K=At.Util.makeHexColor(...at);const Q=Lt(this,V,ln).call(this,et);if(et=At.Util.makeHexColor(...Q),ot(this,I,Ve).style.color="",K==="#000000"&&et==="#ffffff"||K===et)return ot(this,w);const lt=new Array(256);for(let xt=0;xt<=255;xt++){const wt=xt/255;lt[xt]=wt<=.03928?wt/12.92:((wt+.055)/1.055)**2.4}const ut=lt.join(","),pt=`g_${ot(this,E)}_hcm_filter`,yt=Ht(this,s,Lt(this,st,xn).call(this,pt));Lt(this,O,cn).call(this,ut,ut,ut,yt),Lt(this,tt,Ci).call(this,yt);const Et=(xt,wt)=>{const St=at[xt]/255,Rt=Q[xt]/255,Ct=new Array(wt+1);for(let Gt=0;Gt<=wt;Gt++)Ct[Gt]=St+Gt/wt*(Rt-St);return Ct.join(",")};return Lt(this,O,cn).call(this,Et(0,5),Et(1,5),Et(2,5),yt),Ht(this,w,`url(#${pt})`),ot(this,w)}addHighlightHCMFilter(K,et,nt,at){var Rt;const Q=`${K}-${et}-${nt}-${at}`;if(ot(this,c)===Q)return ot(this,S);if(Ht(this,c,Q),Ht(this,S,"none"),(Rt=ot(this,s))==null||Rt.remove(),!K||!et)return ot(this,S);const[lt,ut]=[K,et].map(Lt(this,V,ln).bind(this));let pt=Math.round(.2126*lt[0]+.7152*lt[1]+.0722*lt[2]),yt=Math.round(.2126*ut[0]+.7152*ut[1]+.0722*ut[2]),[Et,Tt]=[nt,at].map(Lt(this,V,ln).bind(this));yt{const Ft=new Array(256),Ut=(yt-pt)/Zt,Vt=Ct/255,Wt=(Gt-Ct)/(255*Zt);let Yt=0;for(let re=0;re<=Zt;re++){const Jt=Math.round(pt+re*Ut),Bt=Vt+re*Wt;for(let Xt=Yt;Xt<=Jt;Xt++)Ft[Xt]=Bt;Yt=Jt+1}for(let re=Yt;re<256;re++)Ft[re]=Ft[Yt-1];return Ft.join(",")},wt=`g_${ot(this,E)}_hcm_highlight_filter`,St=Ht(this,s,Lt(this,st,xn).call(this,wt));return Lt(this,tt,Ci).call(this,St),Lt(this,O,cn).call(this,xt(Et[0],Tt[0],5),xt(Et[1],Tt[1],5),xt(Et[2],Tt[2],5),St),Ht(this,S,`url(#${wt})`),ot(this,S)}destroy(K=!1){K&&(ot(this,w)||ot(this,S))||(ot(this,x)&&(ot(this,x).parentNode.parentNode.remove(),Ht(this,x,null)),ot(this,g)&&(ot(this,g).clear(),Ht(this,g,null)),Ht(this,h,0))}}g=new WeakMap,x=new WeakMap,E=new WeakMap,D=new WeakMap,q=new WeakMap,W=new WeakMap,w=new WeakMap,s=new WeakMap,c=new WeakMap,S=new WeakMap,h=new WeakMap,m=new WeakSet,We=function(){return ot(this,g)||Ht(this,g,new Map)},I=new WeakSet,Ve=function(){if(!ot(this,x)){const K=ot(this,D).createElement("div"),{style:et}=K;et.visibility="hidden",et.contain="strict",et.width=et.height=0,et.position="absolute",et.top=et.left=0,et.zIndex=-1;const nt=ot(this,D).createElementNS($t,"svg");nt.setAttribute("width",0),nt.setAttribute("height",0),Ht(this,x,ot(this,D).createElementNS($t,"defs")),K.append(nt),nt.append(ot(this,x)),ot(this,D).body.append(K)}return ot(this,x)},tt=new WeakSet,Ci=function(K){const et=ot(this,D).createElementNS($t,"feColorMatrix");et.setAttribute("type","matrix"),et.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),K.append(et)},st=new WeakSet,xn=function(K){const et=ot(this,D).createElementNS($t,"filter");return et.setAttribute("color-interpolation-filters","sRGB"),et.setAttribute("id",K),ot(this,I,Ve).append(et),et},J=new WeakSet,vn=function(K,et,nt){const at=ot(this,D).createElementNS($t,et);at.setAttribute("type","discrete"),at.setAttribute("tableValues",nt),K.append(at)},O=new WeakSet,cn=function(K,et,nt,at){const Q=ot(this,D).createElementNS($t,"feComponentTransfer");at.append(Q),Lt(this,J,vn).call(this,Q,"feFuncR",K),Lt(this,J,vn).call(this,Q,"feFuncG",et),Lt(this,J,vn).call(this,Q,"feFuncB",nt)},V=new WeakSet,ln=function(K){return ot(this,I,Ve).style.color=K,N(getComputedStyle(ot(this,I,Ve)).getPropertyValue("color"))},dt.DOMFilterFactory=M;class Z extends ft.BaseCanvasFactory{constructor({ownerDocument:G=globalThis.document}={}){super(),this._document=G}_createCanvas(G,K){const et=this._document.createElement("canvas");return et.width=G,et.height=K,et}}dt.DOMCanvasFactory=Z;async function n(Y,G=!1){if(C(Y,document.baseURI)){const K=await fetch(Y);if(!K.ok)throw new Error(K.statusText);return G?new Uint8Array(await K.arrayBuffer()):(0,At.stringToBytes)(await K.text())}return new Promise((K,et)=>{const nt=new XMLHttpRequest;nt.open("GET",Y,!0),G&&(nt.responseType="arraybuffer"),nt.onreadystatechange=()=>{if(nt.readyState===XMLHttpRequest.DONE){if(nt.status===200||nt.status===0){let at;if(G&&nt.response?at=new Uint8Array(nt.response):!G&&nt.responseText&&(at=(0,At.stringToBytes)(nt.responseText)),at){K(at);return}}et(new Error(nt.statusText))}},nt.send(null)})}class _ extends ft.BaseCMapReaderFactory{_fetchData(G,K){return n(G,this.isCompressed).then(et=>({cMapData:et,compressionType:K}))}}dt.DOMCMapReaderFactory=_;class L extends ft.BaseStandardFontDataFactory{_fetchData(G){return n(G,!0)}}dt.DOMStandardFontDataFactory=L;class t extends ft.BaseSVGFactory{_createSVG(G){return document.createElementNS($t,G)}}dt.DOMSVGFactory=t;class e{constructor({viewBox:G,scale:K,rotation:et,offsetX:nt=0,offsetY:at=0,dontFlip:Q=!1}){this.viewBox=G,this.scale=K,this.rotation=et,this.offsetX=nt,this.offsetY=at;const lt=(G[2]+G[0])/2,ut=(G[3]+G[1])/2;let pt,yt,Et,Tt;switch(et%=360,et<0&&(et+=360),et){case 180:pt=-1,yt=0,Et=0,Tt=1;break;case 90:pt=0,yt=1,Et=1,Tt=0;break;case 270:pt=0,yt=-1,Et=-1,Tt=0;break;case 0:pt=1,yt=0,Et=0,Tt=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}Q&&(Et=-Et,Tt=-Tt);let xt,wt,St,Rt;pt===0?(xt=Math.abs(ut-G[1])*K+nt,wt=Math.abs(lt-G[0])*K+at,St=(G[3]-G[1])*K,Rt=(G[2]-G[0])*K):(xt=Math.abs(lt-G[0])*K+nt,wt=Math.abs(ut-G[1])*K+at,St=(G[2]-G[0])*K,Rt=(G[3]-G[1])*K),this.transform=[pt*K,yt*K,Et*K,Tt*K,xt-pt*K*lt-Et*K*ut,wt-yt*K*lt-Tt*K*ut],this.width=St,this.height=Rt}get rawDims(){const{viewBox:G}=this;return(0,At.shadow)(this,"rawDims",{pageWidth:G[2]-G[0],pageHeight:G[3]-G[1],pageX:G[0],pageY:G[1]})}clone({scale:G=this.scale,rotation:K=this.rotation,offsetX:et=this.offsetX,offsetY:nt=this.offsetY,dontFlip:at=!1}={}){return new e({viewBox:this.viewBox.slice(),scale:G,rotation:K,offsetX:et,offsetY:nt,dontFlip:at})}convertToViewportPoint(G,K){return At.Util.applyTransform([G,K],this.transform)}convertToViewportRectangle(G){const K=At.Util.applyTransform([G[0],G[1]],this.transform),et=At.Util.applyTransform([G[2],G[3]],this.transform);return[K[0],K[1],et[0],et[1]]}convertToPdfPoint(G,K){return At.Util.applyInverseTransform([G,K],this.transform)}}dt.PageViewport=e;class a extends At.BaseException{constructor(G,K=0){super(G,"RenderingCancelledException"),this.extraDelay=K}}dt.RenderingCancelledException=a;function v(Y){const G=Y.length;let K=0;for(;K{const nt=document.createElement("script");nt.src=Y,nt.onload=function(at){G&&nt.remove(),K(at)},nt.onerror=function(){et(new Error(`Cannot load script at: ${nt.src}`))},(document.head||document.documentElement).append(nt)})}function F(Y){console.log("Deprecated API usage: "+Y)}let u;class l{static toDateObject(G){if(!G||typeof G!="string")return null;u||(u=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const K=u.exec(G);if(!K)return null;const et=parseInt(K[1],10);let nt=parseInt(K[2],10);nt=nt>=1&&nt<=12?nt-1:0;let at=parseInt(K[3],10);at=at>=1&&at<=31?at:1;let Q=parseInt(K[4],10);Q=Q>=0&&Q<=23?Q:0;let lt=parseInt(K[5],10);lt=lt>=0&<<=59?lt:0;let ut=parseInt(K[6],10);ut=ut>=0&&ut<=59?ut:0;const pt=K[7]||"Z";let yt=parseInt(K[8],10);yt=yt>=0&&yt<=23?yt:0;let Et=parseInt(K[9],10)||0;return Et=Et>=0&&Et<=59?Et:0,pt==="-"?(Q+=yt,lt+=Et):pt==="+"&&(Q-=yt,lt-=Et),new Date(Date.UTC(et,nt,at,Q,lt,ut))}}dt.PDFDateString=l;function y(Y,{scale:G=1,rotation:K=0}){const{width:et,height:nt}=Y.attributes.style,at=[0,0,parseInt(et),parseInt(nt)];return new e({viewBox:at,scale:G,rotation:K})}function N(Y){if(Y.startsWith("#")){const G=parseInt(Y.slice(1),16);return[(G&16711680)>>16,(G&65280)>>8,G&255]}return Y.startsWith("rgb(")?Y.slice(4,-1).split(",").map(G=>parseInt(G)):Y.startsWith("rgba(")?Y.slice(5,-1).split(",").map(G=>parseInt(G)).slice(0,3):((0,At.warn)(`Not a valid color format: "${Y}"`),[0,0,0])}function U(Y){const G=document.createElement("span");G.style.visibility="hidden",document.body.append(G);for(const K of Y.keys()){G.style.color=K;const et=window.getComputedStyle(G).color;Y.set(K,N(et))}G.remove()}function $(Y){const{a:G,b:K,c:et,d:nt,e:at,f:Q}=Y.getTransform();return[G,K,et,nt,at,Q]}function P(Y){const{a:G,b:K,c:et,d:nt,e:at,f:Q}=Y.getTransform().invertSelf();return[G,K,et,nt,at,Q]}function R(Y,G,K=!1,et=!0){if(G instanceof e){const{pageWidth:nt,pageHeight:at}=G.rawDims,{style:Q}=Y,lt=At.FeatureTest.isCSSRoundSupported,ut=`var(--scale-factor) * ${nt}px`,pt=`var(--scale-factor) * ${at}px`,yt=lt?`round(${ut}, 1px)`:`calc(${ut})`,Et=lt?`round(${pt}, 1px)`:`calc(${pt})`;!K||G.rotation%180===0?(Q.width=yt,Q.height=Et):(Q.width=Et,Q.height=yt)}et&&Y.setAttribute("data-main-rotation",G.rotation)}},(Ot,dt,Mt)=>{Object.defineProperty(dt,"__esModule",{value:!0}),dt.BaseStandardFontDataFactory=dt.BaseSVGFactory=dt.BaseFilterFactory=dt.BaseCanvasFactory=dt.BaseCMapReaderFactory=void 0;var ft=Mt(1);class At{constructor(){this.constructor===At&&(0,ft.unreachable)("Cannot initialize BaseFilterFactory.")}addFilter(_){return"none"}addHCMFilter(_,L){return"none"}addHighlightHCMFilter(_,L,t,e){return"none"}destroy(_=!1){}}dt.BaseFilterFactory=At;class $t{constructor(){this.constructor===$t&&(0,ft.unreachable)("Cannot initialize BaseCanvasFactory.")}create(_,L){if(_<=0||L<=0)throw new Error("Invalid canvas size");const t=this._createCanvas(_,L);return{canvas:t,context:t.getContext("2d")}}reset(_,L,t){if(!_.canvas)throw new Error("Canvas is not specified");if(L<=0||t<=0)throw new Error("Invalid canvas size");_.canvas.width=L,_.canvas.height=t}destroy(_){if(!_.canvas)throw new Error("Canvas is not specified");_.canvas.width=0,_.canvas.height=0,_.canvas=null,_.context=null}_createCanvas(_,L){(0,ft.unreachable)("Abstract method `_createCanvas` called.")}}dt.BaseCanvasFactory=$t;class vt{constructor({baseUrl:_=null,isCompressed:L=!0}){this.constructor===vt&&(0,ft.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=_,this.isCompressed=L}async fetch({name:_}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!_)throw new Error("CMap name must be specified.");const L=this.baseUrl+_+(this.isCompressed?".bcmap":""),t=this.isCompressed?ft.CMapCompressionType.BINARY:ft.CMapCompressionType.NONE;return this._fetchData(L,t).catch(e=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${L}`)})}_fetchData(_,L){(0,ft.unreachable)("Abstract method `_fetchData` called.")}}dt.BaseCMapReaderFactory=vt;class M{constructor({baseUrl:_=null}){this.constructor===M&&(0,ft.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=_}async fetch({filename:_}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!_)throw new Error("Font filename must be specified.");const L=`${this.baseUrl}${_}`;return this._fetchData(L).catch(t=>{throw new Error(`Unable to load font data at: ${L}`)})}_fetchData(_){(0,ft.unreachable)("Abstract method `_fetchData` called.")}}dt.BaseStandardFontDataFactory=M;class Z{constructor(){this.constructor===Z&&(0,ft.unreachable)("Cannot initialize BaseSVGFactory.")}create(_,L,t=!1){if(_<=0||L<=0)throw new Error("Invalid SVG dimensions");const e=this._createSVG("svg:svg");return e.setAttribute("version","1.1"),t||(e.setAttribute("width",`${_}px`),e.setAttribute("height",`${L}px`)),e.setAttribute("preserveAspectRatio","none"),e.setAttribute("viewBox",`0 0 ${_} ${L}`),e}createElement(_){if(typeof _!="string")throw new Error("Invalid SVG element type");return this._createSVG(_)}_createSVG(_){(0,ft.unreachable)("Abstract method `_createSVG` called.")}}dt.BaseSVGFactory=Z},(Ot,dt,Mt)=>{Object.defineProperty(dt,"__esModule",{value:!0}),dt.MurmurHash3_64=void 0;var ft=Mt(1);const At=3285377520,$t=4294901760,vt=65535;class M{constructor(n){this.h1=n?n&4294967295:At,this.h2=n?n&4294967295:At}update(n){let _,L;if(typeof n=="string"){_=new Uint8Array(n.length*2),L=0;for(let F=0,u=n.length;F>>8,_[L++]=l&255)}}else if((0,ft.isArrayBuffer)(n))_=n.slice(),L=_.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");const t=L>>2,e=L-t*4,a=new Uint32Array(_.buffer,0,t);let v=0,A=0,T=this.h1,d=this.h2;const i=3432918353,C=461845907,p=i&vt,b=C&vt;for(let F=0;F>>17,v=v*C&$t|v*b&vt,T^=v,T=T<<13|T>>>19,T=T*5+3864292196):(A=a[F],A=A*i&$t|A*p&vt,A=A<<15|A>>>17,A=A*C&$t|A*b&vt,d^=A,d=d<<13|d>>>19,d=d*5+3864292196);switch(v=0,e){case 3:v^=_[t*4+2]<<16;case 2:v^=_[t*4+1]<<8;case 1:v^=_[t*4],v=v*i&$t|v*p&vt,v=v<<15|v>>>17,v=v*C&$t|v*b&vt,t&1?T^=v:d^=v}this.h1=T,this.h2=d}hexdigest(){let n=this.h1,_=this.h2;return n^=_>>>1,n=n*3981806797&$t|n*36045&vt,_=_*4283543511&$t|((_<<16|n>>>16)*2950163797&$t)>>>16,n^=_>>>1,n=n*444984403&$t|n*60499&vt,_=_*3301882366&$t|((_<<16|n>>>16)*3120437893&$t)>>>16,n^=_>>>1,(n>>>0).toString(16).padStart(8,"0")+(_>>>0).toString(16).padStart(8,"0")}}dt.MurmurHash3_64=M},(Ot,dt,Mt)=>{var vt;Object.defineProperty(dt,"__esModule",{value:!0}),dt.FontLoader=dt.FontFaceObject=void 0;var ft=Mt(1);class At{constructor({ownerDocument:Z=globalThis.document,styleElement:n=null}){_t(this,vt,new Set);this._document=Z,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(Z){this.nativeFontFaces.add(Z),this._document.fonts.add(Z)}removeNativeFontFace(Z){this.nativeFontFaces.delete(Z),this._document.fonts.delete(Z)}insertRule(Z){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const n=this.styleElement.sheet;n.insertRule(Z,n.cssRules.length)}clear(){for(const Z of this.nativeFontFaces)this._document.fonts.delete(Z);this.nativeFontFaces.clear(),ot(this,vt).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont(Z){if(!(!Z||ot(this,vt).has(Z.loadedName))){if((0,ft.assert)(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:n,src:_,style:L}=Z,t=new FontFace(n,_,L);this.addNativeFontFace(t);try{await t.load(),ot(this,vt).add(n)}catch{(0,ft.warn)(`Cannot load system font: ${Z.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(t)}return}(0,ft.unreachable)("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(Z){if(Z.attached||Z.missingFile&&!Z.systemFontInfo)return;if(Z.attached=!0,Z.systemFontInfo){await this.loadSystemFont(Z.systemFontInfo);return}if(this.isFontLoadingAPISupported){const _=Z.createNativeFontFace();if(_){this.addNativeFontFace(_);try{await _.loaded}catch(L){throw(0,ft.warn)(`Failed to load font '${_.family}': '${L}'.`),Z.disableFontFace=!0,L}}return}const n=Z.createFontFaceRule();if(n){if(this.insertRule(n),this.isSyncFontLoadingSupported)return;await new Promise(_=>{const L=this._queueLoadingCallback(_);this._prepareFontLoadEvent(Z,L)})}}get isFontLoadingAPISupported(){var n;const Z=!!((n=this._document)!=null&&n.fonts);return(0,ft.shadow)(this,"isFontLoadingAPISupported",Z)}get isSyncFontLoadingSupported(){let Z=!1;return(ft.isNodeJS||typeof navigator<"u"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(Z=!0),(0,ft.shadow)(this,"isSyncFontLoadingSupported",Z)}_queueLoadingCallback(Z){function n(){for((0,ft.assert)(!L.done,"completeRequest() cannot be called twice."),L.done=!0;_.length>0&&_[0].done;){const t=_.shift();setTimeout(t.callback,0)}}const{loadingRequests:_}=this,L={done:!1,complete:n,callback:Z};return _.push(L),L}get _loadTestFont(){const Z=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,ft.shadow)(this,"_loadTestFont",Z)}_prepareFontLoadEvent(Z,n){function _(N,U){return N.charCodeAt(U)<<24|N.charCodeAt(U+1)<<16|N.charCodeAt(U+2)<<8|N.charCodeAt(U+3)&255}function L(N,U,$,P){const R=N.substring(0,U),o=N.substring(U+$);return R+P+o}let t,e;const a=this._document.createElement("canvas");a.width=1,a.height=1;const v=a.getContext("2d");let A=0;function T(N,U){if(++A>30){(0,ft.warn)("Load test font never loaded."),U();return}if(v.font="30px "+N,v.fillText(".",0,20),v.getImageData(0,0,1,1).data[3]>0){U();return}setTimeout(T.bind(null,N,U))}const d=`lt${Date.now()}${this.loadTestFontId++}`;let i=this._loadTestFont;i=L(i,976,d.length,d);const p=16,b=1482184792;let F=_(i,p);for(t=0,e=d.length-3;t{y.remove(),n.complete()})}}vt=new WeakMap,dt.FontLoader=At;class $t{constructor(Z,{isEvalSupported:n=!0,disableFontFace:_=!1,ignoreErrors:L=!1,inspectFont:t=null}){this.compiledGlyphs=Object.create(null);for(const e in Z)this[e]=Z[e];this.isEvalSupported=n!==!1,this.disableFontFace=_===!0,this.ignoreErrors=L===!0,this._inspectFont=t}createNativeFontFace(){var n;if(!this.data||this.disableFontFace)return null;let Z;if(!this.cssFontInfo)Z=new FontFace(this.loadedName,this.data,{});else{const _={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(_.style=`oblique ${this.cssFontInfo.italicAngle}deg`),Z=new FontFace(this.cssFontInfo.fontFamily,this.data,_)}return(n=this._inspectFont)==null||n.call(this,this),Z}createFontFaceRule(){var L;if(!this.data||this.disableFontFace)return null;const Z=(0,ft.bytesToString)(this.data),n=`url(data:${this.mimetype};base64,${btoa(Z)});`;let _;if(!this.cssFontInfo)_=`@font-face {font-family:"${this.loadedName}";src:${n}}`;else{let t=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(t+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),_=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${t}src:${n}}`}return(L=this._inspectFont)==null||L.call(this,this,n),_}getPathGenerator(Z,n){if(this.compiledGlyphs[n]!==void 0)return this.compiledGlyphs[n];let _;try{_=Z.get(this.loadedName+"_path_"+n)}catch(L){if(!this.ignoreErrors)throw L;return(0,ft.warn)(`getPathGenerator - ignoring character: "${L}".`),this.compiledGlyphs[n]=function(t,e){}}if(this.isEvalSupported&&ft.FeatureTest.isEvalSupported){const L=[];for(const t of _){const e=t.args!==void 0?t.args.join(","):"";L.push("c.",t.cmd,"(",e,`); `)}return this.compiledGlyphs[n]=new Function("c","size",L.join(""))}return this.compiledGlyphs[n]=function(L,t){for(const e of _)e.cmd==="scale"&&(e.args=[t,-t]),L[e.cmd].apply(L,e.args)}}}dt.FontFaceObject=$t},(Ot,dt,Mt)=>{Object.defineProperty(dt,"__esModule",{value:!0}),dt.NodeStandardFontDataFactory=dt.NodeFilterFactory=dt.NodeCanvasFactory=dt.NodeCMapReaderFactory=void 0;var ft=Mt(7);Mt(1);const At=function(n){return new Promise((_,L)=>{require$$5.readFile(n,(e,a)=>{if(e||!a){L(new Error(e));return}_(new Uint8Array(a))})})};class $t extends ft.BaseFilterFactory{}dt.NodeFilterFactory=$t;class vt extends ft.BaseCanvasFactory{_createCanvas(_,L){return require$$5.createCanvas(_,L)}}dt.NodeCanvasFactory=vt;class M extends ft.BaseCMapReaderFactory{_fetchData(_,L){return At(_).then(t=>({cMapData:t,compressionType:L}))}}dt.NodeCMapReaderFactory=M;class Z extends ft.BaseStandardFontDataFactory{_fetchData(_){return At(_)}}dt.NodeStandardFontDataFactory=Z},(Ot,dt,Mt)=>{var x,ki,D,Ti;Object.defineProperty(dt,"__esModule",{value:!0}),dt.CanvasGraphics=void 0;var ft=Mt(1),At=Mt(6),$t=Mt(12),vt=Mt(13);const M=16,Z=100,n=4096,_=15,L=10,t=1e3,e=16;function a(w,s){if(w._removeMirroring)throw new Error("Context is already forwarding operations.");w.__originalSave=w.save,w.__originalRestore=w.restore,w.__originalRotate=w.rotate,w.__originalScale=w.scale,w.__originalTranslate=w.translate,w.__originalTransform=w.transform,w.__originalSetTransform=w.setTransform,w.__originalResetTransform=w.resetTransform,w.__originalClip=w.clip,w.__originalMoveTo=w.moveTo,w.__originalLineTo=w.lineTo,w.__originalBezierCurveTo=w.bezierCurveTo,w.__originalRect=w.rect,w.__originalClosePath=w.closePath,w.__originalBeginPath=w.beginPath,w._removeMirroring=()=>{w.save=w.__originalSave,w.restore=w.__originalRestore,w.rotate=w.__originalRotate,w.scale=w.__originalScale,w.translate=w.__originalTranslate,w.transform=w.__originalTransform,w.setTransform=w.__originalSetTransform,w.resetTransform=w.__originalResetTransform,w.clip=w.__originalClip,w.moveTo=w.__originalMoveTo,w.lineTo=w.__originalLineTo,w.bezierCurveTo=w.__originalBezierCurveTo,w.rect=w.__originalRect,w.closePath=w.__originalClosePath,w.beginPath=w.__originalBeginPath,delete w._removeMirroring},w.save=function(){s.save(),this.__originalSave()},w.restore=function(){s.restore(),this.__originalRestore()},w.translate=function(S,h){s.translate(S,h),this.__originalTranslate(S,h)},w.scale=function(S,h){s.scale(S,h),this.__originalScale(S,h)},w.transform=function(S,h,m,k,I,B){s.transform(S,h,m,k,I,B),this.__originalTransform(S,h,m,k,I,B)},w.setTransform=function(S,h,m,k,I,B){s.setTransform(S,h,m,k,I,B),this.__originalSetTransform(S,h,m,k,I,B)},w.resetTransform=function(){s.resetTransform(),this.__originalResetTransform()},w.rotate=function(S){s.rotate(S),this.__originalRotate(S)},w.clip=function(S){s.clip(S),this.__originalClip(S)},w.moveTo=function(c,S){s.moveTo(c,S),this.__originalMoveTo(c,S)},w.lineTo=function(c,S){s.lineTo(c,S),this.__originalLineTo(c,S)},w.bezierCurveTo=function(c,S,h,m,k,I){s.bezierCurveTo(c,S,h,m,k,I),this.__originalBezierCurveTo(c,S,h,m,k,I)},w.rect=function(c,S,h,m){s.rect(c,S,h,m),this.__originalRect(c,S,h,m)},w.closePath=function(){s.closePath(),this.__originalClosePath()},w.beginPath=function(){s.beginPath(),this.__originalBeginPath()}}class v{constructor(s){this.canvasFactory=s,this.cache=Object.create(null)}getCanvas(s,c,S){let h;return this.cache[s]!==void 0?(h=this.cache[s],this.canvasFactory.reset(h,c,S)):(h=this.canvasFactory.create(c,S),this.cache[s]=h),h}delete(s){delete this.cache[s]}clear(){for(const s in this.cache){const c=this.cache[s];this.canvasFactory.destroy(c),delete this.cache[s]}}}function A(w,s,c,S,h,m,k,I,B,tt){const[it,st,X,J,j,O]=(0,At.getCurrentTransform)(w);if(st===0&&X===0){const z=k*it+j,Y=Math.round(z),G=I*J+O,K=Math.round(G),et=(k+B)*it+j,nt=Math.abs(Math.round(et)-Y)||1,at=(I+tt)*J+O,Q=Math.abs(Math.round(at)-K)||1;return w.setTransform(Math.sign(it),0,0,Math.sign(J),Y,K),w.drawImage(s,c,S,h,m,0,0,nt,Q),w.setTransform(it,st,X,J,j,O),[nt,Q]}if(it===0&&J===0){const z=I*X+j,Y=Math.round(z),G=k*st+O,K=Math.round(G),et=(I+tt)*X+j,nt=Math.abs(Math.round(et)-Y)||1,at=(k+B)*st+O,Q=Math.abs(Math.round(at)-K)||1;return w.setTransform(0,Math.sign(st),Math.sign(X),0,Y,K),w.drawImage(s,c,S,h,m,0,0,Q,nt),w.setTransform(it,st,X,J,j,O),[Q,nt]}w.drawImage(s,c,S,h,m,k,I,B,tt);const H=Math.hypot(it,st),V=Math.hypot(X,J);return[H*B,V*tt]}function T(w){const{width:s,height:c}=w;if(s>t||c>t)return null;const S=1e3,h=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),m=s+1;let k=new Uint8Array(m*(c+1)),I,B,tt;const it=s+7&-8;let st=new Uint8Array(it*c),X=0;for(const V of w.data){let z=128;for(;z>0;)st[X++]=V&z?0:255,z>>=1}let J=0;for(X=0,st[X]!==0&&(k[0]=1,++J),B=1;B>2)+(st[X+1]?4:0)+(st[X-it+1]?8:0),h[V]&&(k[tt+B]=h[V],++J),X++;if(st[X-it]!==st[X]&&(k[tt+B]=st[X]?2:4,++J),J>S)return null}for(X=it*(c-1),tt=I*m,st[X]!==0&&(k[tt]=8,++J),B=1;BS)return null;const j=new Int32Array([0,m,-1,0,-m,0,0,0,1]),O=new Path2D;for(I=0;J&&I<=c;I++){let V=I*m;const z=V+s;for(;V>4,k[V]&=G>>2|G<<2),O.lineTo(V%m,V/m|0),k[V]||--J}while(Y!==V);--I}return st=null,k=null,function(V){V.save(),V.scale(1/s,-1/c),V.translate(0,-c),V.fill(O),V.beginPath(),V.restore()}}class d{constructor(s,c){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=ft.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=ft.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=ft.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,s,c])}clone(){const s=Object.create(this);return s.clipBox=this.clipBox.slice(),s}setCurrentPoint(s,c){this.x=s,this.y=c}updatePathMinMax(s,c,S){[c,S]=ft.Util.applyTransform([c,S],s),this.minX=Math.min(this.minX,c),this.minY=Math.min(this.minY,S),this.maxX=Math.max(this.maxX,c),this.maxY=Math.max(this.maxY,S)}updateRectMinMax(s,c){const S=ft.Util.applyTransform(c,s),h=ft.Util.applyTransform(c.slice(2),s);this.minX=Math.min(this.minX,S[0],h[0]),this.minY=Math.min(this.minY,S[1],h[1]),this.maxX=Math.max(this.maxX,S[0],h[0]),this.maxY=Math.max(this.maxY,S[1],h[1])}updateScalingPathMinMax(s,c){ft.Util.scaleMinMax(s,c),this.minX=Math.min(this.minX,c[0]),this.maxX=Math.max(this.maxX,c[1]),this.minY=Math.min(this.minY,c[2]),this.maxY=Math.max(this.maxY,c[3])}updateCurvePathMinMax(s,c,S,h,m,k,I,B,tt,it){const st=ft.Util.bezierBoundingBox(c,S,h,m,k,I,B,tt);if(it){it[0]=Math.min(it[0],st[0],st[2]),it[1]=Math.max(it[1],st[0],st[2]),it[2]=Math.min(it[2],st[1],st[3]),it[3]=Math.max(it[3],st[1],st[3]);return}this.updateRectMinMax(s,st)}getPathBoundingBox(s=$t.PathType.FILL,c=null){const S=[this.minX,this.minY,this.maxX,this.maxY];if(s===$t.PathType.STROKE){c||(0,ft.unreachable)("Stroke bounding box must include transform.");const h=ft.Util.singularValueDecompose2dScale(c),m=h[0]*this.lineWidth/2,k=h[1]*this.lineWidth/2;S[0]-=m,S[1]-=k,S[2]+=m,S[3]+=k}return S}updateClipFromPath(){const s=ft.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(s||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(s){this.clipBox=s,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(s=$t.PathType.FILL,c=null){return ft.Util.intersect(this.clipBox,this.getPathBoundingBox(s,c))}}function i(w,s){if(typeof ImageData<"u"&&s instanceof ImageData){w.putImageData(s,0,0);return}const c=s.height,S=s.width,h=c%e,m=(c-h)/e,k=h===0?m:m+1,I=w.createImageData(S,e);let B=0,tt;const it=s.data,st=I.data;let X,J,j,O;if(s.kind===ft.ImageKind.GRAYSCALE_1BPP){const H=it.byteLength,V=new Uint32Array(st.buffer,0,st.byteLength>>2),z=V.length,Y=S+7>>3,G=4294967295,K=ft.FeatureTest.isLittleEndian?4278190080:255;for(X=0;XY?S:et*8-7,Q=at&-8;let lt=0,ut=0;for(;nt>=1}for(;tt=m&&(j=h,O=S*j),tt=0,J=O;J--;)st[tt++]=it[B++],st[tt++]=it[B++],st[tt++]=it[B++],st[tt++]=255;w.putImageData(I,0,X*e)}else throw new Error(`bad image kind: ${s.kind}`)}function C(w,s){if(s.bitmap){w.drawImage(s.bitmap,0,0);return}const c=s.height,S=s.width,h=c%e,m=(c-h)/e,k=h===0?m:m+1,I=w.createImageData(S,e);let B=0;const tt=s.data,it=I.data;for(let st=0;st>8,w[m-2]=w[m-2]*k+c*I>>8,w[m-1]=w[m-1]*k+S*I>>8}}}function u(w,s,c){const S=w.length,h=1/255;for(let m=3;m>8]>>8:s[h]*m>>16}}function y(w,s,c,S,h,m,k,I,B,tt,it){const st=!!m,X=st?m[0]:0,J=st?m[1]:0,j=st?m[2]:0,O=h==="Luminosity"?l:u,V=Math.min(S,Math.ceil(1048576/c));for(let z=0;zL&&typeof S=="function",it=tt?Date.now()+_:0;let st=0;const X=this.commonObjs,J=this.objs;let j;for(;;){if(h!==void 0&&I===h.nextBreakPoint)return h.breakIt(I,S),I;if(j=k[I],j!==ft.OPS.dependency)this[j].apply(this,m[I]);else for(const O of m[I]){const H=O.startsWith("g_")?X:J;if(!H.has(O))return H.get(O,S),I}if(I++,I===B)return I;if(tt&&++st>L){if(Date.now()>it)return S(),I;st=0}}}endDrawing(){Lt(this,x,ki).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const s of this._cachedBitmapsMap.values()){for(const c of s.values())typeof HTMLCanvasElement<"u"&&c instanceof HTMLCanvasElement&&(c.width=c.height=0);s.clear()}this._cachedBitmapsMap.clear(),Lt(this,D,Ti).call(this)}_scaleImage(s,c){const S=s.width,h=s.height;let m=Math.max(Math.hypot(c[0],c[1]),1),k=Math.max(Math.hypot(c[2],c[3]),1),I=S,B=h,tt="prescale1",it,st;for(;m>2&&I>1||k>2&&B>1;){let X=I,J=B;m>2&&I>1&&(X=I>=16384?Math.floor(I/2)-1||1:Math.ceil(I/2),m/=I/X),k>2&&B>1&&(J=B>=16384?Math.floor(B/2)-1||1:Math.ceil(B)/2,k/=B/J),it=this.cachedCanvases.getCanvas(tt,X,J),st=it.context,st.clearRect(0,0,X,J),st.drawImage(s,0,0,I,B,0,0,X,J),s=it.canvas,I=X,B=J,tt=tt==="prescale1"?"prescale2":"prescale1"}return{img:s,paintWidth:I,paintHeight:B}}_createMaskCanvas(s){const c=this.ctx,{width:S,height:h}=s,m=this.current.fillColor,k=this.current.patternFill,I=(0,At.getCurrentTransform)(c);let B,tt,it,st;if((s.bitmap||s.data)&&s.count>1){const nt=s.bitmap||s.data.buffer;tt=JSON.stringify(k?I:[I.slice(0,4),m]),B=this._cachedBitmapsMap.get(nt),B||(B=new Map,this._cachedBitmapsMap.set(nt,B));const at=B.get(tt);if(at&&!k){const Q=Math.round(Math.min(I[0],I[2])+I[4]),lt=Math.round(Math.min(I[1],I[3])+I[5]);return{canvas:at,offsetX:Q,offsetY:lt}}it=at}it||(st=this.cachedCanvases.getCanvas("maskCanvas",S,h),C(st.context,s));let X=ft.Util.transform(I,[1/S,0,0,-1/h,0,0]);X=ft.Util.transform(X,[1,0,0,1,0,-h]);const J=ft.Util.applyTransform([0,0],X),j=ft.Util.applyTransform([S,h],X),O=ft.Util.normalizeRect([J[0],J[1],j[0],j[1]]),H=Math.round(O[2]-O[0])||1,V=Math.round(O[3]-O[1])||1,z=this.cachedCanvases.getCanvas("fillCanvas",H,V),Y=z.context,G=Math.min(J[0],j[0]),K=Math.min(J[1],j[1]);Y.translate(-G,-K),Y.transform(...X),it||(it=this._scaleImage(st.canvas,(0,At.getCurrentTransformInverse)(Y)),it=it.img,B&&k&&B.set(tt,it)),Y.imageSmoothingEnabled=U((0,At.getCurrentTransform)(Y),s.interpolate),A(Y,it,0,0,it.width,it.height,0,0,S,h),Y.globalCompositeOperation="source-in";const et=ft.Util.transform((0,At.getCurrentTransformInverse)(Y),[1,0,0,1,-G,-K]);return Y.fillStyle=k?m.getPattern(c,this,et,$t.PathType.FILL):m,Y.fillRect(0,0,S,h),B&&!k&&(this.cachedCanvases.delete("fillCanvas"),B.set(tt,z.canvas)),{canvas:z.canvas,offsetX:Math.round(G),offsetY:Math.round(K)}}setLineWidth(s){s!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=s,this.ctx.lineWidth=s}setLineCap(s){this.ctx.lineCap=$[s]}setLineJoin(s){this.ctx.lineJoin=P[s]}setMiterLimit(s){this.ctx.miterLimit=s}setDash(s,c){const S=this.ctx;S.setLineDash!==void 0&&(S.setLineDash(s),S.lineDashOffset=c)}setRenderingIntent(s){}setFlatness(s){}setGState(s){for(const[c,S]of s)switch(c){case"LW":this.setLineWidth(S);break;case"LC":this.setLineCap(S);break;case"LJ":this.setLineJoin(S);break;case"ML":this.setMiterLimit(S);break;case"D":this.setDash(S[0],S[1]);break;case"RI":this.setRenderingIntent(S);break;case"FL":this.setFlatness(S);break;case"Font":this.setFont(S[0],S[1]);break;case"CA":this.current.strokeAlpha=S;break;case"ca":this.current.fillAlpha=S,this.ctx.globalAlpha=S;break;case"BM":this.ctx.globalCompositeOperation=S;break;case"SMask":this.current.activeSMask=S?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(S);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const s=this.inSMaskMode;this.current.activeSMask&&!s?this.beginSMaskMode():!this.current.activeSMask&&s&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const s=this.ctx.canvas.width,c=this.ctx.canvas.height,S="smaskGroupAt"+this.groupLevel,h=this.cachedCanvases.getCanvas(S,s,c);this.suspendedCtx=this.ctx,this.ctx=h.context;const m=this.ctx;m.setTransform(...(0,At.getCurrentTransform)(this.suspendedCtx)),p(this.suspendedCtx,m),a(m,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),p(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(s){if(!this.current.activeSMask)return;s?(s[0]=Math.floor(s[0]),s[1]=Math.floor(s[1]),s[2]=Math.ceil(s[2]),s[3]=Math.ceil(s[3])):s=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const c=this.current.activeSMask,S=this.suspendedCtx;N(S,c,this.ctx,s),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}save(){this.inSMaskMode?(p(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const s=this.current;this.stateStack.push(s),this.current=s.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),p(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(s,c,S,h,m,k){this.ctx.transform(s,c,S,h,m,k),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(s,c,S){const h=this.ctx,m=this.current;let k=m.x,I=m.y,B,tt;const it=(0,At.getCurrentTransform)(h),st=it[0]===0&&it[3]===0||it[1]===0&&it[2]===0,X=st?S.slice(0):null;for(let J=0,j=0,O=s.length;JZ&&(tt=Z),this.current.fontSizeScale=c/tt,this.ctx.font=`${B} ${I} ${tt}px ${k}`}setTextRenderingMode(s){this.current.textRenderingMode=s}setTextRise(s){this.current.textRise=s}moveText(s,c){this.current.x=this.current.lineX+=s,this.current.y=this.current.lineY+=c}setLeadingMoveText(s,c){this.setLeading(-c),this.moveText(s,c)}setTextMatrix(s,c,S,h,m,k){this.current.textMatrix=[s,c,S,h,m,k],this.current.textMatrixScale=Math.hypot(s,c),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(s,c,S,h){const m=this.ctx,k=this.current,I=k.font,B=k.textRenderingMode,tt=k.fontSize/k.fontSizeScale,it=B&ft.TextRenderingMode.FILL_STROKE_MASK,st=!!(B&ft.TextRenderingMode.ADD_TO_PATH_FLAG),X=k.patternFill&&!I.missingFile;let J;(I.disableFontFace||st||X)&&(J=I.getPathGenerator(this.commonObjs,s)),I.disableFontFace||X?(m.save(),m.translate(c,S),m.beginPath(),J(m,tt),h&&m.setTransform(...h),(it===ft.TextRenderingMode.FILL||it===ft.TextRenderingMode.FILL_STROKE)&&m.fill(),(it===ft.TextRenderingMode.STROKE||it===ft.TextRenderingMode.FILL_STROKE)&&m.stroke(),m.restore()):((it===ft.TextRenderingMode.FILL||it===ft.TextRenderingMode.FILL_STROKE)&&m.fillText(s,c,S),(it===ft.TextRenderingMode.STROKE||it===ft.TextRenderingMode.FILL_STROKE)&&m.strokeText(s,c,S)),st&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,At.getCurrentTransform)(m),x:c,y:S,fontSize:tt,addToPath:J})}get isFontSubpixelAAEnabled(){const{context:s}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);s.scale(1.5,1),s.fillText("I",0,10);const c=s.getImageData(0,0,10,10).data;let S=!1;for(let h=3;h0&&c[h]<255){S=!0;break}return(0,ft.shadow)(this,"isFontSubpixelAAEnabled",S)}showText(s){const c=this.current,S=c.font;if(S.isType3Font)return this.showType3Text(s);const h=c.fontSize;if(h===0)return;const m=this.ctx,k=c.fontSizeScale,I=c.charSpacing,B=c.wordSpacing,tt=c.fontDirection,it=c.textHScale*tt,st=s.length,X=S.vertical,J=X?1:-1,j=S.defaultVMetrics,O=h*c.fontMatrix[0],H=c.textRenderingMode===ft.TextRenderingMode.FILL&&!S.disableFontFace&&!c.patternFill;m.save(),m.transform(...c.textMatrix),m.translate(c.x,c.y+c.textRise),tt>0?m.scale(it,-1):m.scale(it,1);let V;if(c.patternFill){m.save();const et=c.fillColor.getPattern(m,this,(0,At.getCurrentTransformInverse)(m),$t.PathType.FILL);V=(0,At.getCurrentTransform)(m),m.restore(),m.fillStyle=et}let z=c.lineWidth;const Y=c.textMatrixScale;if(Y===0||z===0){const et=c.textRenderingMode&ft.TextRenderingMode.FILL_STROKE_MASK;(et===ft.TextRenderingMode.STROKE||et===ft.TextRenderingMode.FILL_STROKE)&&(z=this.getSinglePixelWidth())}else z/=Y;if(k!==1&&(m.scale(k,k),z/=k),m.lineWidth=z,S.isInvalidPDFjsFont){const et=[];let nt=0;for(const at of s)et.push(at.unicode),nt+=at.width;m.fillText(et.join(""),0,0),c.x+=nt*O*it,m.restore(),this.compose();return}let G=0,K;for(K=0;K0){const Tt=m.measureText(Q).width*1e3/h*k;if(ytnew W(k,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};c=new $t.TilingPattern(s,S,this.ctx,m,h)}else c=this._getPattern(s[1],s[2]);return c}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(s,c,S){const h=ft.Util.makeHexColor(s,c,S);this.ctx.strokeStyle=h,this.current.strokeColor=h}setFillRGBColor(s,c,S){const h=ft.Util.makeHexColor(s,c,S);this.ctx.fillStyle=h,this.current.fillColor=h,this.current.patternFill=!1}_getPattern(s,c=null){let S;return this.cachedPatterns.has(s)?S=this.cachedPatterns.get(s):(S=(0,$t.getShadingPattern)(this.getObject(s)),this.cachedPatterns.set(s,S)),c&&(S.matrix=c),S}shadingFill(s){if(!this.contentVisible)return;const c=this.ctx;this.save();const S=this._getPattern(s);c.fillStyle=S.getPattern(c,this,(0,At.getCurrentTransformInverse)(c),$t.PathType.SHADING);const h=(0,At.getCurrentTransformInverse)(c);if(h){const{width:m,height:k}=c.canvas,[I,B,tt,it]=ft.Util.getAxialAlignedBoundingBox([0,0,m,k],h);this.ctx.fillRect(I,B,tt-I,it-B)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,ft.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,ft.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(s,c){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(s)&&s.length===6&&this.transform(...s),this.baseTransform=(0,At.getCurrentTransform)(this.ctx),c)){const S=c[2]-c[0],h=c[3]-c[1];this.ctx.rect(c[0],c[1],S,h),this.current.updateRectMinMax((0,At.getCurrentTransform)(this.ctx),c),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(s){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const c=this.ctx;s.isolated||(0,ft.info)("TODO: Support non-isolated groups."),s.knockout&&(0,ft.warn)("Knockout groups not supported.");const S=(0,At.getCurrentTransform)(c);if(s.matrix&&c.transform(...s.matrix),!s.bbox)throw new Error("Bounding box is required.");let h=ft.Util.getAxialAlignedBoundingBox(s.bbox,(0,At.getCurrentTransform)(c));const m=[0,0,c.canvas.width,c.canvas.height];h=ft.Util.intersect(h,m)||[0,0,0,0];const k=Math.floor(h[0]),I=Math.floor(h[1]);let B=Math.max(Math.ceil(h[2])-k,1),tt=Math.max(Math.ceil(h[3])-I,1),it=1,st=1;B>n&&(it=B/n,B=n),tt>n&&(st=tt/n,tt=n),this.current.startNewPathAndClipBox([0,0,B,tt]);let X="groupAt"+this.groupLevel;s.smask&&(X+="_smask_"+this.smaskCounter++%2);const J=this.cachedCanvases.getCanvas(X,B,tt),j=J.context;j.scale(1/it,1/st),j.translate(-k,-I),j.transform(...S),s.smask?this.smaskStack.push({canvas:J.canvas,context:j,offsetX:k,offsetY:I,scaleX:it,scaleY:st,subtype:s.smask.subtype,backdrop:s.smask.backdrop,transferMap:s.smask.transferMap||null,startTransformInverse:null}):(c.setTransform(1,0,0,1,0,0),c.translate(k,I),c.scale(it,st),c.save()),p(c,j),this.ctx=j,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(c),this.groupLevel++}endGroup(s){if(!this.contentVisible)return;this.groupLevel--;const c=this.ctx,S=this.groupStack.pop();if(this.ctx=S,this.ctx.imageSmoothingEnabled=!1,s.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const h=(0,At.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...h);const m=ft.Util.getAxialAlignedBoundingBox([0,0,c.canvas.width,c.canvas.height],h);this.ctx.drawImage(c.canvas,0,0),this.ctx.restore(),this.compose(m)}}beginAnnotation(s,c,S,h,m){if(Lt(this,x,ki).call(this),b(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(c)&&c.length===4){const k=c[2]-c[0],I=c[3]-c[1];if(m&&this.annotationCanvasMap){S=S.slice(),S[4]-=c[0],S[5]-=c[1],c=c.slice(),c[0]=c[1]=0,c[2]=k,c[3]=I;const[B,tt]=ft.Util.singularValueDecompose2dScale((0,At.getCurrentTransform)(this.ctx)),{viewportScale:it}=this,st=Math.ceil(k*this.outputScaleX*it),X=Math.ceil(I*this.outputScaleY*it);this.annotationCanvas=this.canvasFactory.create(st,X);const{canvas:J,context:j}=this.annotationCanvas;this.annotationCanvasMap.set(s,J),this.annotationCanvas.savedCtx=this.ctx,this.ctx=j,this.ctx.save(),this.ctx.setTransform(B,0,0,-tt,0,I*tt),b(this.ctx)}else b(this.ctx),this.ctx.rect(c[0],c[1],k,I),this.ctx.clip(),this.endPath()}this.current=new d(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...S),this.transform(...h)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),Lt(this,D,Ti).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(s){if(!this.contentVisible)return;const c=s.count;s=this.getObject(s.data,s),s.count=c;const S=this.ctx,h=this.processingType3;if(h&&(h.compiled===void 0&&(h.compiled=T(s)),h.compiled)){h.compiled(S);return}const m=this._createMaskCanvas(s),k=m.canvas;S.save(),S.setTransform(1,0,0,1,0,0),S.drawImage(k,m.offsetX,m.offsetY),S.restore(),this.compose()}paintImageMaskXObjectRepeat(s,c,S=0,h=0,m,k){if(!this.contentVisible)return;s=this.getObject(s.data,s);const I=this.ctx;I.save();const B=(0,At.getCurrentTransform)(I);I.transform(c,S,h,m,0,0);const tt=this._createMaskCanvas(s);I.setTransform(1,0,0,1,tt.offsetX-B[4],tt.offsetY-B[5]);for(let it=0,st=k.length;itst?it/st:1,I=tt>st?tt/st:1}}this._cachedScaleForStroking[0]=k,this._cachedScaleForStroking[1]=I}return this._cachedScaleForStroking}rescaleAndStroke(s){const{ctx:c}=this,{lineWidth:S}=this.current,[h,m]=this.getScaleForStroking();if(c.lineWidth=S||1,h===1&&m===1){c.stroke();return}const k=c.getLineDash();if(s&&c.save(),c.scale(h,m),k.length>0){const I=Math.max(h,m);c.setLineDash(k.map(B=>B/I)),c.lineDashOffset/=I}c.stroke(),s&&c.restore()}isContentVisible(){for(let s=this.markedContentStack.length-1;s>=0;s--)if(!this.markedContentStack[s].visible)return!1;return!0}};x=new WeakSet,ki=function(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)},D=new WeakSet,Ti=function(){if(this.pageColors){const s=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(s!=="none"){const c=this.ctx.filter;this.ctx.filter=s,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=c}}};let g=W;dt.CanvasGraphics=g;for(const w in ft.OPS)g.prototype[w]!==void 0&&(g.prototype[ft.OPS[w]]=g.prototype[w])},(Ot,dt,Mt)=>{Object.defineProperty(dt,"__esModule",{value:!0}),dt.TilingPattern=dt.PathType=void 0,dt.getShadingPattern=e;var ft=Mt(1),At=Mt(6);const $t={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};dt.PathType=$t;function vt(T,d){if(!d)return;const i=d[2]-d[0],C=d[3]-d[1],p=new Path2D;p.rect(d[0],d[1],i,C),T.clip(p)}class M{constructor(){this.constructor===M&&(0,ft.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,ft.unreachable)("Abstract method `getPattern` called.")}}class Z extends M{constructor(d){super(),this._type=d[1],this._bbox=d[2],this._colorStops=d[3],this._p0=d[4],this._p1=d[5],this._r0=d[6],this._r1=d[7],this.matrix=null}_createGradient(d){let i;this._type==="axial"?i=d.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(i=d.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const C of this._colorStops)i.addColorStop(C[0],C[1]);return i}getPattern(d,i,C,p){let b;if(p===$t.STROKE||p===$t.FILL){const F=i.current.getClippedPathBoundingBox(p,(0,At.getCurrentTransform)(d))||[0,0,0,0],u=Math.ceil(F[2]-F[0])||1,l=Math.ceil(F[3]-F[1])||1,y=i.cachedCanvases.getCanvas("pattern",u,l,!0),N=y.context;N.clearRect(0,0,N.canvas.width,N.canvas.height),N.beginPath(),N.rect(0,0,N.canvas.width,N.canvas.height),N.translate(-F[0],-F[1]),C=ft.Util.transform(C,[1,0,0,1,F[0],F[1]]),N.transform(...i.baseTransform),this.matrix&&N.transform(...this.matrix),vt(N,this._bbox),N.fillStyle=this._createGradient(N),N.fill(),b=d.createPattern(y.canvas,"no-repeat");const U=new DOMMatrix(C);b.setTransform(U)}else vt(d,this._bbox),b=this._createGradient(d);return b}}function n(T,d,i,C,p,b,F,u){const l=d.coords,y=d.colors,N=T.data,U=T.width*4;let $;l[i+1]>l[C+1]&&($=i,i=C,C=$,$=b,b=F,F=$),l[C+1]>l[p+1]&&($=C,C=p,p=$,$=F,F=u,u=$),l[i+1]>l[C+1]&&($=i,i=C,C=$,$=b,b=F,F=$);const P=(l[i]+d.offsetX)*d.scaleX,R=(l[i+1]+d.offsetY)*d.scaleY,o=(l[C]+d.offsetX)*d.scaleX,g=(l[C+1]+d.offsetY)*d.scaleY,x=(l[p]+d.offsetX)*d.scaleX,E=(l[p+1]+d.offsetY)*d.scaleY;if(R>=E)return;const D=y[b],q=y[b+1],W=y[b+2],w=y[F],s=y[F+1],c=y[F+2],S=y[u],h=y[u+1],m=y[u+2],k=Math.round(R),I=Math.round(E);let B,tt,it,st,X,J,j,O;for(let H=k;H<=I;H++){if(HE?K=1:g===E?K=0:K=(g-H)/(g-E),B=o-(o-x)*K,tt=w-(w-S)*K,it=s-(s-h)*K,st=c-(c-m)*K}let V;HE?V=1:V=(R-H)/(R-E),X=P-(P-x)*V,J=D-(D-S)*V,j=q-(q-h)*V,O=W-(W-m)*V;const z=Math.round(Math.min(B,X)),Y=Math.round(Math.max(B,X));let G=U*H+z*4;for(let K=z;K<=Y;K++)V=(B-K)/(B-X),V<0?V=0:V>1&&(V=1),N[G++]=tt-(tt-J)*V|0,N[G++]=it-(it-j)*V|0,N[G++]=st-(st-O)*V|0,N[G++]=255}}function _(T,d,i){const C=d.coords,p=d.colors;let b,F;switch(d.type){case"lattice":const u=d.verticesPerRow,l=Math.floor(C.length/u)-1,y=u-1;for(b=0;b=p?b=p:C=b/d,{scale:C,size:b}}clipBbox(d,i,C,p,b){const F=p-i,u=b-C;d.ctx.rect(i,C,F,u),d.current.updateRectMinMax((0,At.getCurrentTransform)(d.ctx),[i,C,p,b]),d.clip(),d.endPath()}setFillAndStrokeStyleToContext(d,i,C){const p=d.ctx,b=d.current;switch(i){case a.COLORED:const F=this.ctx;p.fillStyle=F.fillStyle,p.strokeStyle=F.strokeStyle,b.fillColor=F.fillStyle,b.strokeColor=F.strokeStyle;break;case a.UNCOLORED:const u=ft.Util.makeHexColor(C[0],C[1],C[2]);p.fillStyle=u,p.strokeStyle=u,b.fillColor=u,b.strokeColor=u;break;default:throw new ft.FormatError(`Unsupported paint type: ${i}`)}}getPattern(d,i,C,p){let b=C;p!==$t.SHADING&&(b=ft.Util.transform(b,i.baseTransform),this.matrix&&(b=ft.Util.transform(b,this.matrix)));const F=this.createPatternCanvas(i);let u=new DOMMatrix(b);u=u.translate(F.offsetX,F.offsetY),u=u.scale(1/F.scaleX,1/F.scaleY);const l=d.createPattern(F.canvas,"repeat");return l.setTransform(u),l}};ye(A,"MAX_PATTERN_SIZE",3e3);let v=A;dt.TilingPattern=v},(Ot,dt,Mt)=>{Object.defineProperty(dt,"__esModule",{value:!0}),dt.convertBlackAndWhiteToRGBA=$t,dt.convertToRGBA=At,dt.grayToRGBA=M;var ft=Mt(1);function At(Z){switch(Z.kind){case ft.ImageKind.GRAYSCALE_1BPP:return $t(Z);case ft.ImageKind.RGB_24BPP:return vt(Z)}return null}function $t({src:Z,srcPos:n=0,dest:_,width:L,height:t,nonBlackColor:e=4294967295,inverseDecode:a=!1}){const v=ft.FeatureTest.isLittleEndian?4278190080:255,[A,T]=a?[e,v]:[v,e],d=L>>3,i=L&7,C=Z.length;_=new Uint32Array(_.buffer);let p=0;for(let b=0;b>2,A=new Uint32Array(Z.buffer,n,v);if(ft.FeatureTest.isLittleEndian){for(;a>>24|d<<8|4278190080,_[L+2]=d>>>16|i<<16|4278190080,_[L+3]=i>>>8|4278190080}for(let T=a*4,d=Z.length;T>>8|255,_[L+2]=d<<16|i>>>16|255,_[L+3]=i<<8|255}for(let T=a*4,d=Z.length;T{Object.defineProperty(dt,"__esModule",{value:!0}),dt.GlobalWorkerOptions=void 0;const Mt=Object.create(null);dt.GlobalWorkerOptions=Mt,Mt.workerPort=null,Mt.workerSrc=""},(Ot,dt,Mt)=>{var Z,lr,_,hr,t,Cn;Object.defineProperty(dt,"__esModule",{value:!0}),dt.MessageHandler=void 0;var ft=Mt(1);const At={UNKNOWN:0,DATA:1,ERROR:2},$t={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function vt(a){switch(a instanceof Error||typeof a=="object"&&a!==null||(0,ft.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),a.name){case"AbortException":return new ft.AbortException(a.message);case"MissingPDFException":return new ft.MissingPDFException(a.message);case"PasswordException":return new ft.PasswordException(a.message,a.code);case"UnexpectedResponseException":return new ft.UnexpectedResponseException(a.message,a.status);case"UnknownErrorException":return new ft.UnknownErrorException(a.message,a.details);default:return new ft.UnknownErrorException(a.message,a.toString())}}class M{constructor(v,A,T){_t(this,Z);_t(this,_);_t(this,t);this.sourceName=v,this.targetName=A,this.comObj=T,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=d=>{const i=d.data;if(i.targetName!==this.sourceName)return;if(i.stream){Lt(this,_,hr).call(this,i);return}if(i.callback){const p=i.callbackId,b=this.callbackCapabilities[p];if(!b)throw new Error(`Cannot resolve callback ${p}`);if(delete this.callbackCapabilities[p],i.callback===At.DATA)b.resolve(i.data);else if(i.callback===At.ERROR)b.reject(vt(i.reason));else throw new Error("Unexpected callback case");return}const C=this.actionHandler[i.action];if(!C)throw new Error(`Unknown action from worker: ${i.action}`);if(i.callbackId){const p=this.sourceName,b=i.sourceName;new Promise(function(F){F(C(i.data))}).then(function(F){T.postMessage({sourceName:p,targetName:b,callback:At.DATA,callbackId:i.callbackId,data:F})},function(F){T.postMessage({sourceName:p,targetName:b,callback:At.ERROR,callbackId:i.callbackId,reason:vt(F)})});return}if(i.streamId){Lt(this,Z,lr).call(this,i);return}C(i.data)},T.addEventListener("message",this._onComObjOnMessage)}on(v,A){const T=this.actionHandler;if(T[v])throw new Error(`There is already an actionName called "${v}"`);T[v]=A}send(v,A,T){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:v,data:A},T)}sendWithPromise(v,A,T){const d=this.callbackId++,i=new ft.PromiseCapability;this.callbackCapabilities[d]=i;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:v,callbackId:d,data:A},T)}catch(C){i.reject(C)}return i.promise}sendWithStream(v,A,T,d){const i=this.streamId++,C=this.sourceName,p=this.targetName,b=this.comObj;return new ReadableStream({start:F=>{const u=new ft.PromiseCapability;return this.streamControllers[i]={controller:F,startCall:u,pullCall:null,cancelCall:null,isClosed:!1},b.postMessage({sourceName:C,targetName:p,action:v,streamId:i,data:A,desiredSize:F.desiredSize},d),u.promise},pull:F=>{const u=new ft.PromiseCapability;return this.streamControllers[i].pullCall=u,b.postMessage({sourceName:C,targetName:p,stream:$t.PULL,streamId:i,desiredSize:F.desiredSize}),u.promise},cancel:F=>{(0,ft.assert)(F instanceof Error,"cancel must have a valid reason");const u=new ft.PromiseCapability;return this.streamControllers[i].cancelCall=u,this.streamControllers[i].isClosed=!0,b.postMessage({sourceName:C,targetName:p,stream:$t.CANCEL,streamId:i,reason:vt(F)}),u.promise}},T)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}Z=new WeakSet,lr=function(v){const A=v.streamId,T=this.sourceName,d=v.sourceName,i=this.comObj,C=this,p=this.actionHandler[v.action],b={enqueue(F,u=1,l){if(this.isCancelled)return;const y=this.desiredSize;this.desiredSize-=u,y>0&&this.desiredSize<=0&&(this.sinkCapability=new ft.PromiseCapability,this.ready=this.sinkCapability.promise),i.postMessage({sourceName:T,targetName:d,stream:$t.ENQUEUE,streamId:A,chunk:F},l)},close(){this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:T,targetName:d,stream:$t.CLOSE,streamId:A}),delete C.streamSinks[A])},error(F){(0,ft.assert)(F instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,i.postMessage({sourceName:T,targetName:d,stream:$t.ERROR,streamId:A,reason:vt(F)}))},sinkCapability:new ft.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:v.desiredSize,ready:null};b.sinkCapability.resolve(),b.ready=b.sinkCapability.promise,this.streamSinks[A]=b,new Promise(function(F){F(p(v.data,b))}).then(function(){i.postMessage({sourceName:T,targetName:d,stream:$t.START_COMPLETE,streamId:A,success:!0})},function(F){i.postMessage({sourceName:T,targetName:d,stream:$t.START_COMPLETE,streamId:A,reason:vt(F)})})},_=new WeakSet,hr=function(v){const A=v.streamId,T=this.sourceName,d=v.sourceName,i=this.comObj,C=this.streamControllers[A],p=this.streamSinks[A];switch(v.stream){case $t.START_COMPLETE:v.success?C.startCall.resolve():C.startCall.reject(vt(v.reason));break;case $t.PULL_COMPLETE:v.success?C.pullCall.resolve():C.pullCall.reject(vt(v.reason));break;case $t.PULL:if(!p){i.postMessage({sourceName:T,targetName:d,stream:$t.PULL_COMPLETE,streamId:A,success:!0});break}p.desiredSize<=0&&v.desiredSize>0&&p.sinkCapability.resolve(),p.desiredSize=v.desiredSize,new Promise(function(b){var F;b((F=p.onPull)==null?void 0:F.call(p))}).then(function(){i.postMessage({sourceName:T,targetName:d,stream:$t.PULL_COMPLETE,streamId:A,success:!0})},function(b){i.postMessage({sourceName:T,targetName:d,stream:$t.PULL_COMPLETE,streamId:A,reason:vt(b)})});break;case $t.ENQUEUE:if((0,ft.assert)(C,"enqueue should have stream controller"),C.isClosed)break;C.controller.enqueue(v.chunk);break;case $t.CLOSE:if((0,ft.assert)(C,"close should have stream controller"),C.isClosed)break;C.isClosed=!0,C.controller.close(),Lt(this,t,Cn).call(this,C,A);break;case $t.ERROR:(0,ft.assert)(C,"error should have stream controller"),C.controller.error(vt(v.reason)),Lt(this,t,Cn).call(this,C,A);break;case $t.CANCEL_COMPLETE:v.success?C.cancelCall.resolve():C.cancelCall.reject(vt(v.reason)),Lt(this,t,Cn).call(this,C,A);break;case $t.CANCEL:if(!p)break;new Promise(function(b){var F;b((F=p.onCancel)==null?void 0:F.call(p,vt(v.reason)))}).then(function(){i.postMessage({sourceName:T,targetName:d,stream:$t.CANCEL_COMPLETE,streamId:A,success:!0})},function(b){i.postMessage({sourceName:T,targetName:d,stream:$t.CANCEL_COMPLETE,streamId:A,reason:vt(b)})}),p.sinkCapability.reject(vt(v.reason)),p.isCancelled=!0,delete this.streamSinks[A];break;default:throw new Error("Unexpected stream case")}},t=new WeakSet,Cn=async function(v,A){var T,d,i;await Promise.allSettled([(T=v.startCall)==null?void 0:T.promise,(d=v.pullCall)==null?void 0:d.promise,(i=v.cancelCall)==null?void 0:i.promise]),delete this.streamControllers[A]},dt.MessageHandler=M},(Ot,dt,Mt)=>{var $t,vt;Object.defineProperty(dt,"__esModule",{value:!0}),dt.Metadata=void 0;var ft=Mt(1);class At{constructor({parsedData:Z,rawData:n}){_t(this,$t,void 0);_t(this,vt,void 0);Ht(this,$t,Z),Ht(this,vt,n)}getRaw(){return ot(this,vt)}get(Z){return ot(this,$t).get(Z)??null}getAll(){return(0,ft.objectFromMap)(ot(this,$t))}has(Z){return ot(this,$t).has(Z)}}$t=new WeakMap,vt=new WeakMap,dt.Metadata=At},(Ot,dt,Mt)=>{var Z,n,_,L,t,e,Fi;Object.defineProperty(dt,"__esModule",{value:!0}),dt.OptionalContentConfig=void 0;var ft=Mt(1),At=Mt(8);const $t=Symbol("INTERNAL");class vt{constructor(A,T){_t(this,Z,!0);this.name=A,this.intent=T}get visible(){return ot(this,Z)}_setVisible(A,T){A!==$t&&(0,ft.unreachable)("Internal method `_setVisible` called."),Ht(this,Z,T)}}Z=new WeakMap;class M{constructor(A){_t(this,e);_t(this,n,null);_t(this,_,new Map);_t(this,L,null);_t(this,t,null);if(this.name=null,this.creator=null,A!==null){this.name=A.name,this.creator=A.creator,Ht(this,t,A.order);for(const T of A.groups)ot(this,_).set(T.id,new vt(T.name,T.intent));if(A.baseState==="OFF")for(const T of ot(this,_).values())T._setVisible($t,!1);for(const T of A.on)ot(this,_).get(T)._setVisible($t,!0);for(const T of A.off)ot(this,_).get(T)._setVisible($t,!1);Ht(this,L,this.getHash())}}isVisible(A){if(ot(this,_).size===0)return!0;if(!A)return(0,ft.warn)("Optional content group not defined."),!0;if(A.type==="OCG")return ot(this,_).has(A.id)?ot(this,_).get(A.id).visible:((0,ft.warn)(`Optional content group not found: ${A.id}`),!0);if(A.type==="OCMD"){if(A.expression)return Lt(this,e,Fi).call(this,A.expression);if(!A.policy||A.policy==="AnyOn"){for(const T of A.ids){if(!ot(this,_).has(T))return(0,ft.warn)(`Optional content group not found: ${T}`),!0;if(ot(this,_).get(T).visible)return!0}return!1}else if(A.policy==="AllOn"){for(const T of A.ids){if(!ot(this,_).has(T))return(0,ft.warn)(`Optional content group not found: ${T}`),!0;if(!ot(this,_).get(T).visible)return!1}return!0}else if(A.policy==="AnyOff"){for(const T of A.ids){if(!ot(this,_).has(T))return(0,ft.warn)(`Optional content group not found: ${T}`),!0;if(!ot(this,_).get(T).visible)return!0}return!1}else if(A.policy==="AllOff"){for(const T of A.ids){if(!ot(this,_).has(T))return(0,ft.warn)(`Optional content group not found: ${T}`),!0;if(ot(this,_).get(T).visible)return!1}return!0}return(0,ft.warn)(`Unknown optional content policy ${A.policy}.`),!0}return(0,ft.warn)(`Unknown group type ${A.type}.`),!0}setVisibility(A,T=!0){if(!ot(this,_).has(A)){(0,ft.warn)(`Optional content group not found: ${A}`);return}ot(this,_).get(A)._setVisible($t,!!T),Ht(this,n,null)}get hasInitialVisibility(){return ot(this,L)===null||this.getHash()===ot(this,L)}getOrder(){return ot(this,_).size?ot(this,t)?ot(this,t).slice():[...ot(this,_).keys()]:null}getGroups(){return ot(this,_).size>0?(0,ft.objectFromMap)(ot(this,_)):null}getGroup(A){return ot(this,_).get(A)||null}getHash(){if(ot(this,n)!==null)return ot(this,n);const A=new At.MurmurHash3_64;for(const[T,d]of ot(this,_))A.update(`${T}:${d.visible}`);return Ht(this,n,A.hexdigest())}}n=new WeakMap,_=new WeakMap,L=new WeakMap,t=new WeakMap,e=new WeakSet,Fi=function(A){const T=A.length;if(T<2)return!0;const d=A[0];for(let i=1;i{Object.defineProperty(dt,"__esModule",{value:!0}),dt.PDFDataTransportStream=void 0;var ft=Mt(1),At=Mt(6);class $t{constructor({length:n,initialData:_,progressiveDone:L=!1,contentDispositionFilename:t=null,disableRange:e=!1,disableStream:a=!1},v){if((0,ft.assert)(v,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=L,this._contentDispositionFilename=t,(_==null?void 0:_.length)>0){const A=_ instanceof Uint8Array&&_.byteLength===_.buffer.byteLength?_.buffer:new Uint8Array(_).buffer;this._queuedChunks.push(A)}this._pdfDataRangeTransport=v,this._isStreamingSupported=!a,this._isRangeSupported=!e,this._contentLength=n,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((A,T)=>{this._onReceiveData({begin:A,chunk:T})}),this._pdfDataRangeTransport.addProgressListener((A,T)=>{this._onProgress({loaded:A,total:T})}),this._pdfDataRangeTransport.addProgressiveReadListener(A=>{this._onReceiveData({chunk:A})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData({begin:n,chunk:_}){const L=_ instanceof Uint8Array&&_.byteLength===_.buffer.byteLength?_.buffer:new Uint8Array(_).buffer;if(n===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(L):this._queuedChunks.push(L);else{const t=this._rangeReaders.some(function(e){return e._begin!==n?!1:(e._enqueue(L),!0)});(0,ft.assert)(t,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var n;return((n=this._fullRequestReader)==null?void 0:n._loaded)??0}_onProgress(n){var _,L,t,e;n.total===void 0?(L=(_=this._rangeReaders[0])==null?void 0:_.onProgress)==null||L.call(_,{loaded:n.loaded}):(e=(t=this._fullRequestReader)==null?void 0:t.onProgress)==null||e.call(t,{loaded:n.loaded,total:n.total})}_onProgressiveDone(){var n;(n=this._fullRequestReader)==null||n.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(n){const _=this._rangeReaders.indexOf(n);_>=0&&this._rangeReaders.splice(_,1)}getFullReader(){(0,ft.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const n=this._queuedChunks;return this._queuedChunks=null,new vt(this,n,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(n,_){if(_<=this._progressiveDataLength)return null;const L=new M(this,n,_);return this._pdfDataRangeTransport.requestDataRange(n,_),this._rangeReaders.push(L),L}cancelAllRequests(n){var _;(_=this._fullRequestReader)==null||_.cancel(n);for(const L of this._rangeReaders.slice(0))L.cancel(n);this._pdfDataRangeTransport.abort()}}dt.PDFDataTransportStream=$t;class vt{constructor(n,_,L=!1,t=null){this._stream=n,this._done=L||!1,this._filename=(0,At.isPdfFile)(t)?t:null,this._queuedChunks=_||[],this._loaded=0;for(const e of this._queuedChunks)this._loaded+=e.byteLength;this._requests=[],this._headersReady=Promise.resolve(),n._fullRequestReader=this,this.onProgress=null}_enqueue(n){this._done||(this._requests.length>0?this._requests.shift().resolve({value:n,done:!1}):this._queuedChunks.push(n),this._loaded+=n.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const n=new ft.PromiseCapability;return this._requests.push(n),n.promise}cancel(n){this._done=!0;for(const _ of this._requests)_.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class M{constructor(n,_,L){this._stream=n,this._begin=_,this._end=L,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(n){if(!this._done){if(this._requests.length===0)this._queuedChunk=n;else{this._requests.shift().resolve({value:n,done:!1});for(const L of this._requests)L.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const _=this._queuedChunk;return this._queuedChunk=null,{value:_,done:!1}}if(this._done)return{value:void 0,done:!0};const n=new ft.PromiseCapability;return this._requests.push(n),n.promise}cancel(n){this._done=!0;for(const _ of this._requests)_.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(Ot,dt,Mt)=>{Object.defineProperty(dt,"__esModule",{value:!0}),dt.PDFFetchStream=void 0;var ft=Mt(1),At=Mt(20);function $t(L,t,e){return{method:"GET",headers:L,signal:e.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function vt(L){const t=new Headers;for(const e in L){const a=L[e];a!==void 0&&t.append(e,a)}return t}function M(L){return L instanceof Uint8Array?L.buffer:L instanceof ArrayBuffer?L:((0,ft.warn)(`getArrayBuffer - unexpected data format: ${L}`),new Uint8Array(L).buffer)}class Z{constructor(t){this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var t;return((t=this._fullRequestReader)==null?void 0:t._loaded)??0}getFullReader(){return(0,ft.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new n(this),this._fullRequestReader}getRangeReader(t,e){if(e<=this._progressiveDataLength)return null;const a=new _(this,t,e);return this._rangeRequestReaders.push(a),a}cancelAllRequests(t){var e;(e=this._fullRequestReader)==null||e.cancel(t);for(const a of this._rangeRequestReaders.slice(0))a.cancel(t)}}dt.PDFFetchStream=Z;class n{constructor(t){this._stream=t,this._reader=null,this._loaded=0,this._filename=null;const e=t.source;this._withCredentials=e.withCredentials||!1,this._contentLength=e.length,this._headersCapability=new ft.PromiseCapability,this._disableRange=e.disableRange||!1,this._rangeChunkSize=e.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._headers=vt(this._stream.httpHeaders);const a=e.url;fetch(a,$t(this._headers,this._withCredentials,this._abortController)).then(v=>{if(!(0,At.validateResponseStatus)(v.status))throw(0,At.createResponseStatusError)(v.status,a);this._reader=v.body.getReader(),this._headersCapability.resolve();const A=i=>v.headers.get(i),{allowRangeRequests:T,suggestedLength:d}=(0,At.validateRangeRequestCapabilities)({getResponseHeader:A,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=T,this._contentLength=d||this._contentLength,this._filename=(0,At.extractFilenameFromHeader)(A),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new ft.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var a;await this._headersCapability.promise;const{value:t,done:e}=await this._reader.read();return e?{value:t,done:e}:(this._loaded+=t.byteLength,(a=this.onProgress)==null||a.call(this,{loaded:this._loaded,total:this._contentLength}),{value:M(t),done:!1})}cancel(t){var e;(e=this._reader)==null||e.cancel(t),this._abortController.abort()}}class _{constructor(t,e,a){this._stream=t,this._reader=null,this._loaded=0;const v=t.source;this._withCredentials=v.withCredentials||!1,this._readCapability=new ft.PromiseCapability,this._isStreamingSupported=!v.disableStream,this._abortController=new AbortController,this._headers=vt(this._stream.httpHeaders),this._headers.append("Range",`bytes=${e}-${a-1}`);const A=v.url;fetch(A,$t(this._headers,this._withCredentials,this._abortController)).then(T=>{if(!(0,At.validateResponseStatus)(T.status))throw(0,At.createResponseStatusError)(T.status,A);this._readCapability.resolve(),this._reader=T.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var a;await this._readCapability.promise;const{value:t,done:e}=await this._reader.read();return e?{value:t,done:e}:(this._loaded+=t.byteLength,(a=this.onProgress)==null||a.call(this,{loaded:this._loaded}),{value:M(t),done:!1})}cancel(t){var e;(e=this._reader)==null||e.cancel(t),this._abortController.abort()}}},(Ot,dt,Mt)=>{Object.defineProperty(dt,"__esModule",{value:!0}),dt.createResponseStatusError=Z,dt.extractFilenameFromHeader=M,dt.validateRangeRequestCapabilities=vt,dt.validateResponseStatus=n;var ft=Mt(1),At=Mt(21),$t=Mt(6);function vt({getResponseHeader:_,isHttp:L,rangeChunkSize:t,disableRange:e}){const a={allowRangeRequests:!1,suggestedLength:void 0},v=parseInt(_("Content-Length"),10);return!Number.isInteger(v)||(a.suggestedLength=v,v<=2*t)||e||!L||_("Accept-Ranges")!=="bytes"||(_("Content-Encoding")||"identity")!=="identity"||(a.allowRangeRequests=!0),a}function M(_){const L=_("Content-Disposition");if(L){let t=(0,At.getFilenameFromContentDispositionHeader)(L);if(t.includes("%"))try{t=decodeURIComponent(t)}catch{}if((0,$t.isPdfFile)(t))return t}return null}function Z(_,L){return _===404||_===0&&L.startsWith("file:")?new ft.MissingPDFException('Missing PDF "'+L+'".'):new ft.UnexpectedResponseException(`Unexpected server response (${_}) while retrieving PDF "${L}".`,_)}function n(_){return _===200||_===206}},(Ot,dt,Mt)=>{Object.defineProperty(dt,"__esModule",{value:!0}),dt.getFilenameFromContentDispositionHeader=At;var ft=Mt(1);function At($t){let vt=!0,M=Z("filename\\*","i").exec($t);if(M){M=M[1];let v=t(M);return v=unescape(v),v=e(v),v=a(v),_(v)}if(M=L($t),M){const v=a(M);return _(v)}if(M=Z("filename","i").exec($t),M){M=M[1];let v=t(M);return v=a(v),_(v)}function Z(v,A){return new RegExp("(?:^|;)\\s*"+v+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',A)}function n(v,A){if(v){if(!/^[\x00-\xFF]+$/.test(A))return A;try{const T=new TextDecoder(v,{fatal:!0}),d=(0,ft.stringToBytes)(A);A=T.decode(d),vt=!1}catch{}}return A}function _(v){return vt&&/[\x80-\xff]/.test(v)&&(v=n("utf-8",v),vt&&(v=n("iso-8859-1",v))),v}function L(v){const A=[];let T;const d=Z("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(T=d.exec(v))!==null;){let[,C,p,b]=T;if(C=parseInt(C,10),C in A){if(C===0)break;continue}A[C]=[p,b]}const i=[];for(let C=0;C{Object.defineProperty(dt,"__esModule",{value:!0}),dt.PDFNetworkStream=void 0;var ft=Mt(1),At=Mt(20);const $t=200,vt=206;function M(t){const e=t.response;return typeof e!="string"?e:(0,ft.stringToBytes)(e).buffer}class Z{constructor(e,a={}){this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&a.httpHeaders||Object.create(null),this.withCredentials=a.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,a,v){const A={begin:e,end:a};for(const T in v)A[T]=v[T];return this.request(A)}requestFull(e){return this.request(e)}request(e){const a=new XMLHttpRequest,v=this.currXhrId++,A=this.pendingRequests[v]={xhr:a};a.open("GET",this.url),a.withCredentials=this.withCredentials;for(const T in this.httpHeaders){const d=this.httpHeaders[T];d!==void 0&&a.setRequestHeader(T,d)}return this.isHttp&&"begin"in e&&"end"in e?(a.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),A.expectedStatus=vt):A.expectedStatus=$t,a.responseType="arraybuffer",e.onError&&(a.onerror=function(T){e.onError(a.status)}),a.onreadystatechange=this.onStateChange.bind(this,v),a.onprogress=this.onProgress.bind(this,v),A.onHeadersReceived=e.onHeadersReceived,A.onDone=e.onDone,A.onError=e.onError,A.onProgress=e.onProgress,a.send(null),v}onProgress(e,a){var A;const v=this.pendingRequests[e];v&&((A=v.onProgress)==null||A.call(v,a))}onStateChange(e,a){var C,p,b;const v=this.pendingRequests[e];if(!v)return;const A=v.xhr;if(A.readyState>=2&&v.onHeadersReceived&&(v.onHeadersReceived(),delete v.onHeadersReceived),A.readyState!==4||!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],A.status===0&&this.isHttp){(C=v.onError)==null||C.call(v,A.status);return}const T=A.status||$t;if(!(T===$t&&v.expectedStatus===vt)&&T!==v.expectedStatus){(p=v.onError)==null||p.call(v,A.status);return}const i=M(A);if(T===vt){const F=A.getResponseHeader("Content-Range"),u=/bytes (\d+)-(\d+)\/(\d+)/.exec(F);v.onDone({begin:parseInt(u[1],10),chunk:i})}else i?v.onDone({begin:0,chunk:i}):(b=v.onError)==null||b.call(v,A.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const a=this.pendingRequests[e].xhr;delete this.pendingRequests[e],a.abort()}}class n{constructor(e){this._source=e,this._manager=new Z(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const a=this._rangeRequestReaders.indexOf(e);a>=0&&this._rangeRequestReaders.splice(a,1)}getFullReader(){return(0,ft.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new _(this._manager,this._source),this._fullRequestReader}getRangeReader(e,a){const v=new L(this._manager,e,a);return v.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(v),v}cancelAllRequests(e){var a;(a=this._fullRequestReader)==null||a.cancel(e);for(const v of this._rangeRequestReaders.slice(0))v.cancel(e)}}dt.PDFNetworkStream=n;class _{constructor(e,a){this._manager=e;const v={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=a.url,this._fullRequestId=e.requestFull(v),this._headersReceivedCapability=new ft.PromiseCapability,this._disableRange=a.disableRange||!1,this._contentLength=a.length,this._rangeChunkSize=a.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,a=this._manager.getRequestXhr(e),v=d=>a.getResponseHeader(d),{allowRangeRequests:A,suggestedLength:T}=(0,At.validateRangeRequestCapabilities)({getResponseHeader:v,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});A&&(this._isRangeSupported=!0),this._contentLength=T||this._contentLength,this._filename=(0,At.extractFilenameFromHeader)(v),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const a of this._requests)a.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=(0,At.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError);for(const a of this._requests)a.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){var a;(a=this.onProgress)==null||a.call(this,{loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=new ft.PromiseCapability;return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e);for(const a of this._requests)a.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class L{constructor(e,a,v){this._manager=e;const A={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(a,v,A),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var e;(e=this.onClosed)==null||e.call(this,this)}_onDone(e){const a=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:a,done:!1}):this._queuedChunk=a,this._done=!0;for(const v of this._requests)v.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError=(0,At.createResponseStatusError)(e,this._url);for(const a of this._requests)a.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){var a;this.isStreamingSupported||(a=this.onProgress)==null||a.call(this,{loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const a=this._queuedChunk;return this._queuedChunk=null,{value:a,done:!1}}if(this._done)return{value:void 0,done:!0};const e=new ft.PromiseCapability;return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const a of this._requests)a.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(Ot,dt,Mt)=>{Object.defineProperty(dt,"__esModule",{value:!0}),dt.PDFNodeStream=void 0;var ft=Mt(1),At=Mt(20);const $t=/^file:\/\/\/[a-zA-Z]:\//;function vt(v){const A=require$$5,T=A.parse(v);return T.protocol==="file:"||T.host?T:/^[a-z]:[/\\]/i.test(v)?A.parse(`file:///${v}`):(T.host||(T.protocol="file:"),T)}class M{constructor(A){this.source=A,this.url=vt(A.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&A.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var A;return((A=this._fullRequestReader)==null?void 0:A._loaded)??0}getFullReader(){return(0,ft.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new e(this):new L(this),this._fullRequestReader}getRangeReader(A,T){if(T<=this._progressiveDataLength)return null;const d=this.isFsUrl?new a(this,A,T):new t(this,A,T);return this._rangeRequestReaders.push(d),d}cancelAllRequests(A){var T;(T=this._fullRequestReader)==null||T.cancel(A);for(const d of this._rangeRequestReaders.slice(0))d.cancel(A)}}dt.PDFNodeStream=M;class Z{constructor(A){this._url=A.url,this._done=!1,this._storedError=null,this.onProgress=null;const T=A.source;this._contentLength=T.length,this._loaded=0,this._filename=null,this._disableRange=T.disableRange||!1,this._rangeChunkSize=T.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!T.disableStream,this._isRangeSupported=!T.disableRange,this._readableStream=null,this._readCapability=new ft.PromiseCapability,this._headersCapability=new ft.PromiseCapability}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var d;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const A=this._readableStream.read();return A===null?(this._readCapability=new ft.PromiseCapability,this.read()):(this._loaded+=A.length,(d=this.onProgress)==null||d.call(this,{loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(A).buffer,done:!1})}cancel(A){if(!this._readableStream){this._error(A);return}this._readableStream.destroy(A)}_error(A){this._storedError=A,this._readCapability.resolve()}_setReadableStream(A){this._readableStream=A,A.on("readable",()=>{this._readCapability.resolve()}),A.on("end",()=>{A.destroy(),this._done=!0,this._readCapability.resolve()}),A.on("error",T=>{this._error(T)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new ft.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class n{constructor(A){this._url=A.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=new ft.PromiseCapability;const T=A.source;this._isStreamingSupported=!T.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){var d;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const A=this._readableStream.read();return A===null?(this._readCapability=new ft.PromiseCapability,this.read()):(this._loaded+=A.length,(d=this.onProgress)==null||d.call(this,{loaded:this._loaded}),{value:new Uint8Array(A).buffer,done:!1})}cancel(A){if(!this._readableStream){this._error(A);return}this._readableStream.destroy(A)}_error(A){this._storedError=A,this._readCapability.resolve()}_setReadableStream(A){this._readableStream=A,A.on("readable",()=>{this._readCapability.resolve()}),A.on("end",()=>{A.destroy(),this._done=!0,this._readCapability.resolve()}),A.on("error",T=>{this._error(T)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function _(v,A){return{protocol:v.protocol,auth:v.auth,host:v.hostname,port:v.port,path:v.path,method:"GET",headers:A}}class L extends Z{constructor(A){super(A);const T=d=>{if(d.statusCode===404){const b=new ft.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=b,this._headersCapability.reject(b);return}this._headersCapability.resolve(),this._setReadableStream(d);const i=b=>this._readableStream.headers[b.toLowerCase()],{allowRangeRequests:C,suggestedLength:p}=(0,At.validateRangeRequestCapabilities)({getResponseHeader:i,isHttp:A.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=C,this._contentLength=p||this._contentLength,this._filename=(0,At.extractFilenameFromHeader)(i)};if(this._request=null,this._url.protocol==="http:"){const d=require$$5;this._request=d.request(_(this._url,A.httpHeaders),T)}else{const d=require$$5;this._request=d.request(_(this._url,A.httpHeaders),T)}this._request.on("error",d=>{this._storedError=d,this._headersCapability.reject(d)}),this._request.end()}}class t extends n{constructor(A,T,d){super(A),this._httpHeaders={};for(const C in A.httpHeaders){const p=A.httpHeaders[C];p!==void 0&&(this._httpHeaders[C]=p)}this._httpHeaders.Range=`bytes=${T}-${d-1}`;const i=C=>{if(C.statusCode===404){const p=new ft.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=p;return}this._setReadableStream(C)};if(this._request=null,this._url.protocol==="http:"){const C=require$$5;this._request=C.request(_(this._url,this._httpHeaders),i)}else{const C=require$$5;this._request=C.request(_(this._url,this._httpHeaders),i)}this._request.on("error",C=>{this._storedError=C}),this._request.end()}}class e extends Z{constructor(A){super(A);let T=decodeURIComponent(this._url.path);$t.test(this._url.href)&&(T=T.replace(/^\//,""));const d=require$$5;d.lstat(T,(i,C)=>{if(i){i.code==="ENOENT"&&(i=new ft.MissingPDFException(`Missing PDF "${T}".`)),this._storedError=i,this._headersCapability.reject(i);return}this._contentLength=C.size,this._setReadableStream(d.createReadStream(T)),this._headersCapability.resolve()})}}class a extends n{constructor(A,T,d){super(A);let i=decodeURIComponent(this._url.path);$t.test(this._url.href)&&(i=i.replace(/^\//,""));const C=require$$5;this._setReadableStream(C.createReadStream(i,{start:T,end:d-1}))}}},(Ot,dt,Mt)=>{Object.defineProperty(dt,"__esModule",{value:!0}),dt.SVGGraphics=void 0;var ft=Mt(6),At=Mt(1);const $t={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},vt="http://www.w3.org/XML/1998/namespace",M="http://www.w3.org/1999/xlink",Z=["butt","round","square"],n=["miter","round","bevel"],_=function(C,p="",b=!1){if(URL.createObjectURL&&typeof Blob<"u"&&!b)return URL.createObjectURL(new Blob([C],{type:p}));const F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let u=`data:${p};base64,`;for(let l=0,y=C.length;l>2,R=(N&3)<<4|U>>4,o=l+1>6:64,g=l+2>1&2147483647:P>>1&2147483647;b[$]=P}function F($,P,R){let o=-1;for(let g=P;g>>8^E}return o^-1}function u($,P,R,o){let g=o;const x=P.length;R[g]=x>>24&255,R[g+1]=x>>16&255,R[g+2]=x>>8&255,R[g+3]=x&255,g+=4,R[g]=$.charCodeAt(0)&255,R[g+1]=$.charCodeAt(1)&255,R[g+2]=$.charCodeAt(2)&255,R[g+3]=$.charCodeAt(3)&255,g+=4,R.set(P,g),g+=P.length;const E=F(R,o+4,g);R[g]=E>>24&255,R[g+1]=E>>16&255,R[g+2]=E>>8&255,R[g+3]=E&255}function l($,P,R){let o=1,g=0;for(let x=P;x=8?$:Buffer.from($),R=require$$5.deflateSync(P,{level:9});return R instanceof Uint8Array?R:new Uint8Array(R)}catch(P){(0,At.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+P)}return N($)}function N($){let P=$.length;const R=65535,o=Math.ceil(P/R),g=new Uint8Array(2+P+o*5+4);let x=0;g[x++]=120,g[x++]=156;let E=0;for(;P>R;)g[x++]=0,g[x++]=255,g[x++]=255,g[x++]=0,g[x++]=0,g.set($.subarray(E,E+R),x),x+=R,E+=R,P-=R;g[x++]=1,g[x++]=P&255,g[x++]=P>>8&255,g[x++]=~P&65535&255,g[x++]=(~P&65535)>>8&255,g.set($.subarray(E),x),x+=$.length-E;const D=l($,0,$.length);return g[x++]=D>>24&255,g[x++]=D>>16&255,g[x++]=D>>8&255,g[x++]=D&255,g}function U($,P,R,o){const g=$.width,x=$.height;let E,D,q;const W=$.data;switch(P){case At.ImageKind.GRAYSCALE_1BPP:D=0,E=1,q=g+7>>3;break;case At.ImageKind.RGB_24BPP:D=2,E=8,q=g*3;break;case At.ImageKind.RGBA_32BPP:D=6,E=8,q=g*4;break;default:throw new Error("invalid format")}const w=new Uint8Array((1+q)*x);let s=0,c=0;for(let B=0;B>24&255,g>>16&255,g>>8&255,g&255,x>>24&255,x>>16&255,x>>8&255,x&255,E,D,0,0,0]),h=y(w),m=C.length+p*3+S.length+h.length,k=new Uint8Array(m);let I=0;return k.set(C,I),I+=C.length,u("IHDR",S,k,I),I+=p+S.length,u("IDATA",h,k,I),I+=p+h.length,u("IEND",new Uint8Array(0),k,I),_(k,"image/png",R)}return function(P,R,o){const g=P.kind===void 0?At.ImageKind.GRAYSCALE_1BPP:P.kind;return U(P,g,R,o)}}();class t{constructor(){this.fontSizeScale=1,this.fontWeight=$t.fontWeight,this.fontSize=0,this.textMatrix=At.IDENTITY_MATRIX,this.fontMatrix=At.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=At.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=$t.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(p,b){this.x=p,this.y=b}}function e(C){let p=[];const b=[];for(const F of C){if(F.fn==="save"){p.push({fnId:92,fn:"group",items:[]}),b.push(p),p=p.at(-1).items;continue}F.fn==="restore"?p=b.pop():p.push(F)}return p}function a(C){if(Number.isInteger(C))return C.toString();const p=C.toFixed(10);let b=p.length-1;if(p[b]!=="0")return p;do b--;while(p[b]==="0");return p.substring(0,p[b]==="."?b:b+1)}function v(C){if(C[4]===0&&C[5]===0){if(C[1]===0&&C[2]===0)return C[0]===1&&C[3]===1?"":`scale(${a(C[0])} ${a(C[3])})`;if(C[0]===C[3]&&C[1]===-C[2]){const p=Math.acos(C[0])*180/Math.PI;return`rotate(${a(p)})`}}else if(C[0]===1&&C[1]===0&&C[2]===0&&C[3]===1)return`translate(${a(C[4])} ${a(C[5])})`;return`matrix(${a(C[0])} ${a(C[1])} ${a(C[2])} ${a(C[3])} ${a(C[4])} ${a(C[5])})`}let A=0,T=0,d=0;class i{constructor(p,b,F=!1){(0,ft.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new ft.DOMSVGFactory,this.current=new t,this.transformMatrix=At.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=p,this.objs=b,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!F,this._operatorIdMapping=[];for(const u in At.OPS)this._operatorIdMapping[At.OPS[u]]=u}getObject(p,b=null){return typeof p=="string"?p.startsWith("g_")?this.commonObjs.get(p):this.objs.get(p):b}save(){this.transformStack.push(this.transformMatrix);const p=this.current;this.extraStack.push(p),this.current=p.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(p){this.save(),this.executeOpTree(p),this.restore()}loadDependencies(p){const b=p.fnArray,F=p.argsArray;for(let u=0,l=b.length;u{N.get(y,$)});this.current.dependencies.push(U)}return Promise.all(this.current.dependencies)}transform(p,b,F,u,l,y){const N=[p,b,F,u,l,y];this.transformMatrix=At.Util.transform(this.transformMatrix,N),this.tgrp=null}getSVG(p,b){this.viewport=b;const F=this._initialize(b);return this.loadDependencies(p).then(()=>(this.transformMatrix=At.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(p)),F))}convertOpList(p){const b=this._operatorIdMapping,F=p.argsArray,u=p.fnArray,l=[];for(let y=0,N=u.length;y0&&(this.current.lineWidth=p)}setLineCap(p){this.current.lineCap=Z[p]}setLineJoin(p){this.current.lineJoin=n[p]}setMiterLimit(p){this.current.miterLimit=p}setStrokeAlpha(p){this.current.strokeAlpha=p}setStrokeRGBColor(p,b,F){this.current.strokeColor=At.Util.makeHexColor(p,b,F)}setFillAlpha(p){this.current.fillAlpha=p}setFillRGBColor(p,b,F){this.current.fillColor=At.Util.makeHexColor(p,b,F),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(p){this.current.strokeColor=this._makeColorN_Pattern(p)}setFillColorN(p){this.current.fillColor=this._makeColorN_Pattern(p)}shadingFill(p){const{width:b,height:F}=this.viewport,u=At.Util.inverseTransform(this.transformMatrix),[l,y,N,U]=At.Util.getAxialAlignedBoundingBox([0,0,b,F],u),$=this.svgFactory.createElement("svg:rect");$.setAttributeNS(null,"x",l),$.setAttributeNS(null,"y",y),$.setAttributeNS(null,"width",N-l),$.setAttributeNS(null,"height",U-y),$.setAttributeNS(null,"fill",this._makeShadingPattern(p)),this.current.fillAlpha<1&&$.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append($)}_makeColorN_Pattern(p){return p[0]==="TilingPattern"?this._makeTilingPattern(p):this._makeShadingPattern(p)}_makeTilingPattern(p){const b=p[1],F=p[2],u=p[3]||At.IDENTITY_MATRIX,[l,y,N,U]=p[4],$=p[5],P=p[6],R=p[7],o=`shading${d++}`,[g,x,E,D]=At.Util.normalizeRect([...At.Util.applyTransform([l,y],u),...At.Util.applyTransform([N,U],u)]),[q,W]=At.Util.singularValueDecompose2dScale(u),w=$*q,s=P*W,c=this.svgFactory.createElement("svg:pattern");c.setAttributeNS(null,"id",o),c.setAttributeNS(null,"patternUnits","userSpaceOnUse"),c.setAttributeNS(null,"width",w),c.setAttributeNS(null,"height",s),c.setAttributeNS(null,"x",`${g}`),c.setAttributeNS(null,"y",`${x}`);const S=this.svg,h=this.transformMatrix,m=this.current.fillColor,k=this.current.strokeColor,I=this.svgFactory.create(E-g,D-x);if(this.svg=I,this.transformMatrix=u,R===2){const B=At.Util.makeHexColor(...b);this.current.fillColor=B,this.current.strokeColor=B}return this.executeOpTree(this.convertOpList(F)),this.svg=S,this.transformMatrix=h,this.current.fillColor=m,this.current.strokeColor=k,c.append(I.childNodes[0]),this.defs.append(c),`url(#${o})`}_makeShadingPattern(p){switch(typeof p=="string"&&(p=this.objs.get(p)),p[0]){case"RadialAxial":const b=`shading${d++}`,F=p[3];let u;switch(p[1]){case"axial":const l=p[4],y=p[5];u=this.svgFactory.createElement("svg:linearGradient"),u.setAttributeNS(null,"id",b),u.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),u.setAttributeNS(null,"x1",l[0]),u.setAttributeNS(null,"y1",l[1]),u.setAttributeNS(null,"x2",y[0]),u.setAttributeNS(null,"y2",y[1]);break;case"radial":const N=p[4],U=p[5],$=p[6],P=p[7];u=this.svgFactory.createElement("svg:radialGradient"),u.setAttributeNS(null,"id",b),u.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),u.setAttributeNS(null,"cx",U[0]),u.setAttributeNS(null,"cy",U[1]),u.setAttributeNS(null,"r",P),u.setAttributeNS(null,"fx",N[0]),u.setAttributeNS(null,"fy",N[1]),u.setAttributeNS(null,"fr",$);break;default:throw new Error(`Unknown RadialAxial type: ${p[1]}`)}for(const l of F){const y=this.svgFactory.createElement("svg:stop");y.setAttributeNS(null,"offset",l[0]),y.setAttributeNS(null,"stop-color",l[1]),u.append(y)}return this.defs.append(u),`url(#${b})`;case"Mesh":return(0,At.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${p[0]}`)}}setDash(p,b){this.current.dashArray=p,this.current.dashPhase=b}constructPath(p,b){const F=this.current;let u=F.x,l=F.y,y=[],N=0;for(const U of p)switch(U|0){case At.OPS.rectangle:u=b[N++],l=b[N++];const $=b[N++],P=b[N++],R=u+$,o=l+P;y.push("M",a(u),a(l),"L",a(R),a(l),"L",a(R),a(o),"L",a(u),a(o),"Z");break;case At.OPS.moveTo:u=b[N++],l=b[N++],y.push("M",a(u),a(l));break;case At.OPS.lineTo:u=b[N++],l=b[N++],y.push("L",a(u),a(l));break;case At.OPS.curveTo:u=b[N+4],l=b[N+5],y.push("C",a(b[N]),a(b[N+1]),a(b[N+2]),a(b[N+3]),a(u),a(l)),N+=6;break;case At.OPS.curveTo2:y.push("C",a(u),a(l),a(b[N]),a(b[N+1]),a(b[N+2]),a(b[N+3])),u=b[N+2],l=b[N+3],N+=4;break;case At.OPS.curveTo3:u=b[N+2],l=b[N+3],y.push("C",a(b[N]),a(b[N+1]),a(u),a(l),a(u),a(l)),N+=4;break;case At.OPS.closePath:y.push("Z");break}y=y.join(" "),F.path&&p.length>0&&p[0]!==At.OPS.rectangle&&p[0]!==At.OPS.moveTo?y=F.path.getAttributeNS(null,"d")+y:(F.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(F.path)),F.path.setAttributeNS(null,"d",y),F.path.setAttributeNS(null,"fill","none"),F.element=F.path,F.setCurrentPoint(u,l)}endPath(){const p=this.current;if(p.path=null,!this.pendingClip)return;if(!p.element){this.pendingClip=null;return}const b=`clippath${A++}`,F=this.svgFactory.createElement("svg:clipPath");F.setAttributeNS(null,"id",b),F.setAttributeNS(null,"transform",v(this.transformMatrix));const u=p.element.cloneNode(!0);if(this.pendingClip==="evenodd"?u.setAttributeNS(null,"clip-rule","evenodd"):u.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,F.append(u),this.defs.append(F),p.activeClipUrl){p.clipGroup=null;for(const l of this.extraStack)l.clipGroup=null;F.setAttributeNS(null,"clip-path",p.activeClipUrl)}p.activeClipUrl=`url(#${b})`,this.tgrp=null}clip(p){this.pendingClip=p}closePath(){const p=this.current;if(p.path){const b=`${p.path.getAttributeNS(null,"d")}Z`;p.path.setAttributeNS(null,"d",b)}}setLeading(p){this.current.leading=-p}setTextRise(p){this.current.textRise=p}setTextRenderingMode(p){this.current.textRenderingMode=p}setHScale(p){this.current.textHScale=p/100}setRenderingIntent(p){}setFlatness(p){}setGState(p){for(const[b,F]of p)switch(b){case"LW":this.setLineWidth(F);break;case"LC":this.setLineCap(F);break;case"LJ":this.setLineJoin(F);break;case"ML":this.setMiterLimit(F);break;case"D":this.setDash(F[0],F[1]);break;case"RI":this.setRenderingIntent(F);break;case"FL":this.setFlatness(F);break;case"Font":this.setFont(F);break;case"CA":this.setStrokeAlpha(F);break;case"ca":this.setFillAlpha(F);break;default:(0,At.warn)(`Unimplemented graphic state operator ${b}`);break}}fill(){const p=this.current;p.element&&(p.element.setAttributeNS(null,"fill",p.fillColor),p.element.setAttributeNS(null,"fill-opacity",p.fillAlpha),this.endPath())}stroke(){const p=this.current;p.element&&(this._setStrokeAttributes(p.element),p.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(p,b=1){const F=this.current;let u=F.dashArray;b!==1&&u.length>0&&(u=u.map(function(l){return b*l})),p.setAttributeNS(null,"stroke",F.strokeColor),p.setAttributeNS(null,"stroke-opacity",F.strokeAlpha),p.setAttributeNS(null,"stroke-miterlimit",a(F.miterLimit)),p.setAttributeNS(null,"stroke-linecap",F.lineCap),p.setAttributeNS(null,"stroke-linejoin",F.lineJoin),p.setAttributeNS(null,"stroke-width",a(b*F.lineWidth)+"px"),p.setAttributeNS(null,"stroke-dasharray",u.map(a).join(" ")),p.setAttributeNS(null,"stroke-dashoffset",a(b*F.dashPhase)+"px")}eoFill(){var p;(p=this.current.element)==null||p.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){var p;(p=this.current.element)==null||p.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const p=this.svgFactory.createElement("svg:rect");p.setAttributeNS(null,"x","0"),p.setAttributeNS(null,"y","0"),p.setAttributeNS(null,"width","1px"),p.setAttributeNS(null,"height","1px"),p.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(p)}paintImageXObject(p){const b=this.getObject(p);if(!b){(0,At.warn)(`Dependent image with object ID ${p} is not ready yet`);return}this.paintInlineImageXObject(b)}paintInlineImageXObject(p,b){const F=p.width,u=p.height,l=L(p,this.forceDataSchema,!!b),y=this.svgFactory.createElement("svg:rect");y.setAttributeNS(null,"x","0"),y.setAttributeNS(null,"y","0"),y.setAttributeNS(null,"width",a(F)),y.setAttributeNS(null,"height",a(u)),this.current.element=y,this.clip("nonzero");const N=this.svgFactory.createElement("svg:image");N.setAttributeNS(M,"xlink:href",l),N.setAttributeNS(null,"x","0"),N.setAttributeNS(null,"y",a(-u)),N.setAttributeNS(null,"width",a(F)+"px"),N.setAttributeNS(null,"height",a(u)+"px"),N.setAttributeNS(null,"transform",`scale(${a(1/F)} ${a(-1/u)})`),b?b.append(N):this._ensureTransformGroup().append(N)}paintImageMaskXObject(p){const b=this.getObject(p.data,p);if(b.bitmap){(0,At.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");return}const F=this.current,u=b.width,l=b.height,y=F.fillColor;F.maskId=`mask${T++}`;const N=this.svgFactory.createElement("svg:mask");N.setAttributeNS(null,"id",F.maskId);const U=this.svgFactory.createElement("svg:rect");U.setAttributeNS(null,"x","0"),U.setAttributeNS(null,"y","0"),U.setAttributeNS(null,"width",a(u)),U.setAttributeNS(null,"height",a(l)),U.setAttributeNS(null,"fill",y),U.setAttributeNS(null,"mask",`url(#${F.maskId})`),this.defs.append(N),this._ensureTransformGroup().append(U),this.paintInlineImageXObject(b,N)}paintFormXObjectBegin(p,b){if(Array.isArray(p)&&p.length===6&&this.transform(p[0],p[1],p[2],p[3],p[4],p[5]),b){const F=b[2]-b[0],u=b[3]-b[1],l=this.svgFactory.createElement("svg:rect");l.setAttributeNS(null,"x",b[0]),l.setAttributeNS(null,"y",b[1]),l.setAttributeNS(null,"width",a(F)),l.setAttributeNS(null,"height",a(u)),this.current.element=l,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(p){const b=this.svgFactory.create(p.width,p.height),F=this.svgFactory.createElement("svg:defs");b.append(F),this.defs=F;const u=this.svgFactory.createElement("svg:g");return u.setAttributeNS(null,"transform",v(p.transform)),b.append(u),this.svg=u,b}_ensureClipGroup(){if(!this.current.clipGroup){const p=this.svgFactory.createElement("svg:g");p.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(p),this.current.clipGroup=p}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",v(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}dt.SVGGraphics=i},(Ot,dt)=>{Object.defineProperty(dt,"__esModule",{value:!0}),dt.XfaText=void 0;class Mt{static textContent(At){const $t=[],vt={items:$t,styles:Object.create(null)};function M(Z){var L;if(!Z)return;let n=null;const _=Z.name;if(_==="#text")n=Z.value;else if(Mt.shouldBuildText(_))(L=Z==null?void 0:Z.attributes)!=null&&L.textContent?n=Z.attributes.textContent:Z.value&&(n=Z.value);else return;if(n!==null&&$t.push({str:n}),!!Z.children)for(const t of Z.children)M(t)}return M(At),vt}static shouldBuildText(At){return!(At==="textarea"||At==="input"||At==="option"||At==="select")}}dt.XfaText=Mt},(Ot,dt,Mt)=>{Object.defineProperty(dt,"__esModule",{value:!0}),dt.TextLayerRenderTask=void 0,dt.renderTextLayer=v,dt.updateTextLayer=A;var ft=Mt(1),At=Mt(6);const $t=1e5,vt=30,M=.8,Z=new Map;function n(T,d){let i;if(d&&ft.FeatureTest.isOffscreenCanvasSupported)i=new OffscreenCanvas(T,T).getContext("2d",{alpha:!1});else{const C=document.createElement("canvas");C.width=C.height=T,i=C.getContext("2d",{alpha:!1})}return i}function _(T,d){const i=Z.get(T);if(i)return i;const C=n(vt,d);C.font=`${vt}px ${T}`;const p=C.measureText("");let b=p.fontBoundingBoxAscent,F=Math.abs(p.fontBoundingBoxDescent);if(b){const l=b/(b+F);return Z.set(T,l),C.canvas.width=C.canvas.height=0,l}C.strokeStyle="red",C.clearRect(0,0,vt,vt),C.strokeText("g",0,0);let u=C.getImageData(0,0,vt,vt).data;F=0;for(let l=u.length-1-3;l>=0;l-=4)if(u[l]>0){F=Math.ceil(l/4/vt);break}C.clearRect(0,0,vt,vt),C.strokeText("A",0,vt),u=C.getImageData(0,0,vt,vt).data,b=0;for(let l=0,y=u.length;l0){b=vt-Math.floor(l/4/vt);break}if(C.canvas.width=C.canvas.height=0,b){const l=b/(b+F);return Z.set(T,l),l}return Z.set(T,M),M}function L(T,d,i){const C=document.createElement("span"),p={angle:0,canvasWidth:0,hasText:d.str!=="",hasEOL:d.hasEOL,fontSize:0};T._textDivs.push(C);const b=ft.Util.transform(T._transform,d.transform);let F=Math.atan2(b[1],b[0]);const u=i[d.fontName];u.vertical&&(F+=Math.PI/2);const l=Math.hypot(b[2],b[3]),y=l*_(u.fontFamily,T._isOffscreenCanvasSupported);let N,U;F===0?(N=b[4],U=b[5]-y):(N=b[4]+y*Math.sin(F),U=b[5]-y*Math.cos(F));const $="calc(var(--scale-factor)*",P=C.style;T._container===T._rootContainer?(P.left=`${(100*N/T._pageWidth).toFixed(2)}%`,P.top=`${(100*U/T._pageHeight).toFixed(2)}%`):(P.left=`${$}${N.toFixed(2)}px)`,P.top=`${$}${U.toFixed(2)}px)`),P.fontSize=`${$}${l.toFixed(2)}px)`,P.fontFamily=u.fontFamily,p.fontSize=l,C.setAttribute("role","presentation"),C.textContent=d.str,C.dir=d.dir,T._fontInspectorEnabled&&(C.dataset.fontName=d.fontName),F!==0&&(p.angle=F*(180/Math.PI));let R=!1;if(d.str.length>1)R=!0;else if(d.str!==" "&&d.transform[0]!==d.transform[3]){const o=Math.abs(d.transform[0]),g=Math.abs(d.transform[3]);o!==g&&Math.max(o,g)/Math.min(o,g)>1.5&&(R=!0)}R&&(p.canvasWidth=u.vertical?d.height:d.width),T._textDivProperties.set(C,p),T._isReadableStream&&T._layoutText(C)}function t(T){const{div:d,scale:i,properties:C,ctx:p,prevFontSize:b,prevFontFamily:F}=T,{style:u}=d;let l="";if(C.canvasWidth!==0&&C.hasText){const{fontFamily:y}=u,{canvasWidth:N,fontSize:U}=C;(b!==U||F!==y)&&(p.font=`${U*i}px ${y}`,T.prevFontSize=U,T.prevFontFamily=y);const{width:$}=p.measureText(d.textContent);$>0&&(l=`scaleX(${N*i/$})`)}C.angle!==0&&(l=`rotate(${C.angle}deg) ${l}`),l.length>0&&(u.transform=l)}function e(T){if(T._canceled)return;const d=T._textDivs,i=T._capability;if(d.length>$t){i.resolve();return}if(!T._isReadableStream)for(const p of d)T._layoutText(p);i.resolve()}class a{constructor({textContentSource:d,container:i,viewport:C,textDivs:p,textDivProperties:b,textContentItemsStr:F,isOffscreenCanvasSupported:u}){var $;this._textContentSource=d,this._isReadableStream=d instanceof ReadableStream,this._container=this._rootContainer=i,this._textDivs=p||[],this._textContentItemsStr=F||[],this._isOffscreenCanvasSupported=u,this._fontInspectorEnabled=!!(($=globalThis.FontInspector)!=null&&$.enabled),this._reader=null,this._textDivProperties=b||new WeakMap,this._canceled=!1,this._capability=new ft.PromiseCapability,this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:C.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:n(0,u)};const{pageWidth:l,pageHeight:y,pageX:N,pageY:U}=C.rawDims;this._transform=[1,0,0,-1,-N,U+y],this._pageWidth=l,this._pageHeight=y,(0,At.setLayerDimensions)(i,C),this._capability.promise.finally(()=>{this._layoutTextParams=null}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new ft.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),this._capability.reject(new ft.AbortException("TextLayer task cancelled."))}_processItems(d,i){for(const C of d){if(C.str===void 0){if(C.type==="beginMarkedContentProps"||C.type==="beginMarkedContent"){const p=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),C.id!==null&&this._container.setAttribute("id",`${C.id}`),p.append(this._container)}else C.type==="endMarkedContent"&&(this._container=this._container.parentNode);continue}this._textContentItemsStr.push(C.str),L(this,C,i)}}_layoutText(d){const i=this._layoutTextParams.properties=this._textDivProperties.get(d);if(this._layoutTextParams.div=d,t(this._layoutTextParams),i.hasText&&this._container.append(d),i.hasEOL){const C=document.createElement("br");C.setAttribute("role","presentation"),this._container.append(C)}}_render(){const d=new ft.PromiseCapability;let i=Object.create(null);if(this._isReadableStream){const C=()=>{this._reader.read().then(({value:p,done:b})=>{if(b){d.resolve();return}Object.assign(i,p.styles),this._processItems(p.items,i),C()},d.reject)};this._reader=this._textContentSource.getReader(),C()}else if(this._textContentSource){const{items:C,styles:p}=this._textContentSource;this._processItems(C,p),d.resolve()}else throw new Error('No "textContentSource" parameter specified.');d.promise.then(()=>{i=null,e(this)},this._capability.reject)}}dt.TextLayerRenderTask=a;function v(T){!T.textContentSource&&(T.textContent||T.textContentStream)&&((0,At.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),T.textContentSource=T.textContent||T.textContentStream);const{container:d,viewport:i}=T,C=getComputedStyle(d),p=C.getPropertyValue("visibility"),b=parseFloat(C.getPropertyValue("--scale-factor"));p==="visible"&&(!b||Math.abs(b-i.scale)>1e-5)&&console.error("The `--scale-factor` CSS-variable must be set, to the same value as `viewport.scale`, either on the `container`-element itself or higher up in the DOM.");const F=new a(T);return F._render(),F}function A({container:T,viewport:d,textDivs:i,textDivProperties:C,isOffscreenCanvasSupported:p,mustRotate:b=!0,mustRescale:F=!0}){if(b&&(0,At.setLayerDimensions)(T,{rotation:d.rotation}),F){const u=n(0,p),y={prevFontSize:null,prevFontFamily:null,div:null,scale:d.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:u};for(const N of i)y.properties=C.get(N),y.div=N,t(y)}}},(Ot,dt,Mt)=>{var _,L,t,e,a,v,A,T,d,i,C,Ei,b,kn,u,Pi,y,Oi;Object.defineProperty(dt,"__esModule",{value:!0}),dt.AnnotationEditorLayer=void 0;var ft=Mt(1),At=Mt(4),$t=Mt(28),vt=Mt(33),M=Mt(6),Z=Mt(34);const U=class U{constructor({uiManager:P,pageIndex:R,div:o,accessibilityManager:g,annotationLayer:x,viewport:E,l10n:D}){_t(this,C);_t(this,b);_t(this,u);_t(this,y);_t(this,_,void 0);_t(this,L,!1);_t(this,t,null);_t(this,e,this.pointerup.bind(this));_t(this,a,this.pointerdown.bind(this));_t(this,v,new Map);_t(this,A,!1);_t(this,T,!1);_t(this,d,!1);_t(this,i,void 0);const q=[$t.FreeTextEditor,vt.InkEditor,Z.StampEditor];if(!U._initialized){U._initialized=!0;for(const W of q)W.initialize(D)}P.registerEditorTypes(q),Ht(this,i,P),this.pageIndex=R,this.div=o,Ht(this,_,g),Ht(this,t,x),this.viewport=E,ot(this,i).addLayer(this)}get isEmpty(){return ot(this,v).size===0}updateToolbar(P){ot(this,i).updateToolbar(P)}updateMode(P=ot(this,i).getMode()){Lt(this,y,Oi).call(this),P===ft.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),P!==ft.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",P===ft.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",P===ft.AnnotationEditorType.INK),this.div.classList.toggle("stampEditing",P===ft.AnnotationEditorType.STAMP),this.div.hidden=!1)}addInkEditorIfNeeded(P){if(!P&&ot(this,i).getMode()!==ft.AnnotationEditorType.INK)return;if(!P){for(const o of ot(this,v).values())if(o.isEmpty()){o.setInBackground();return}}Lt(this,b,kn).call(this,{offsetX:0,offsetY:0},!1).setInBackground()}setEditingState(P){ot(this,i).setEditingState(P)}addCommands(P){ot(this,i).addCommands(P)}enable(){this.div.style.pointerEvents="auto";const P=new Set;for(const o of ot(this,v).values())o.enableEditing(),o.annotationElementId&&P.add(o.annotationElementId);if(!ot(this,t))return;const R=ot(this,t).getEditableAnnotations();for(const o of R){if(o.hide(),ot(this,i).isDeletedAnnotationElement(o.data.id)||P.has(o.data.id))continue;const g=this.deserialize(o);g&&(this.addOrRebuild(g),g.enableEditing())}}disable(){var R;Ht(this,d,!0),this.div.style.pointerEvents="none";const P=new Set;for(const o of ot(this,v).values()){if(o.disableEditing(),!o.annotationElementId||o.serialize()!==null){P.add(o.annotationElementId);continue}(R=this.getEditableAnnotation(o.annotationElementId))==null||R.show(),o.remove()}if(ot(this,t)){const o=ot(this,t).getEditableAnnotations();for(const g of o){const{id:x}=g.data;P.has(x)||ot(this,i).isDeletedAnnotationElement(x)||g.show()}}Lt(this,y,Oi).call(this),this.isEmpty&&(this.div.hidden=!0),Ht(this,d,!1)}getEditableAnnotation(P){var R;return((R=ot(this,t))==null?void 0:R.getEditableAnnotation(P))||null}setActiveEditor(P){ot(this,i).getActive()!==P&&ot(this,i).setActiveEditor(P)}enableClick(){this.div.addEventListener("pointerdown",ot(this,a)),this.div.addEventListener("pointerup",ot(this,e))}disableClick(){this.div.removeEventListener("pointerdown",ot(this,a)),this.div.removeEventListener("pointerup",ot(this,e))}attach(P){ot(this,v).set(P.id,P);const{annotationElementId:R}=P;R&&ot(this,i).isDeletedAnnotationElement(R)&&ot(this,i).removeDeletedAnnotationElement(P)}detach(P){var R;ot(this,v).delete(P.id),(R=ot(this,_))==null||R.removePointerInTextLayer(P.contentDiv),!ot(this,d)&&P.annotationElementId&&ot(this,i).addDeletedAnnotationElement(P)}remove(P){this.detach(P),ot(this,i).removeEditor(P),P.div.contains(document.activeElement)&&setTimeout(()=>{ot(this,i).focusMainContainer()},0),P.div.remove(),P.isAttachedToDOM=!1,ot(this,T)||this.addInkEditorIfNeeded(!1)}changeParent(P){var R;P.parent!==this&&(P.annotationElementId&&(ot(this,i).addDeletedAnnotationElement(P.annotationElementId),At.AnnotationEditor.deleteAnnotationElement(P),P.annotationElementId=null),this.attach(P),(R=P.parent)==null||R.detach(P),P.setParent(this),P.div&&P.isAttachedToDOM&&(P.div.remove(),this.div.append(P.div)))}add(P){if(this.changeParent(P),ot(this,i).addEditor(P),this.attach(P),!P.isAttachedToDOM){const R=P.render();this.div.append(R),P.isAttachedToDOM=!0}P.fixAndSetPosition(),P.onceAdded(),ot(this,i).addToAnnotationStorage(P)}moveEditorInDOM(P){var o;if(!P.isAttachedToDOM)return;const{activeElement:R}=document;P.div.contains(R)&&(P._focusEventsAllowed=!1,setTimeout(()=>{P.div.contains(document.activeElement)?P._focusEventsAllowed=!0:(P.div.addEventListener("focusin",()=>{P._focusEventsAllowed=!0},{once:!0}),R.focus())},0)),P._structTreeParentId=(o=ot(this,_))==null?void 0:o.moveElementInDOM(this.div,P.div,P.contentDiv,!0)}addOrRebuild(P){P.needsToBeRebuilt()?P.rebuild():this.add(P)}addUndoableEditor(P){const R=()=>P._uiManager.rebuild(P),o=()=>{P.remove()};this.addCommands({cmd:R,undo:o,mustExec:!1})}getNextId(){return ot(this,i).getId()}pasteEditor(P,R){ot(this,i).updateToolbar(P),ot(this,i).updateMode(P);const{offsetX:o,offsetY:g}=Lt(this,u,Pi).call(this),x=this.getNextId(),E=Lt(this,C,Ei).call(this,{parent:this,id:x,x:o,y:g,uiManager:ot(this,i),isCentered:!0,...R});E&&this.add(E)}deserialize(P){switch(P.annotationType??P.annotationEditorType){case ft.AnnotationEditorType.FREETEXT:return $t.FreeTextEditor.deserialize(P,this,ot(this,i));case ft.AnnotationEditorType.INK:return vt.InkEditor.deserialize(P,this,ot(this,i));case ft.AnnotationEditorType.STAMP:return Z.StampEditor.deserialize(P,this,ot(this,i))}return null}addNewEditor(){Lt(this,b,kn).call(this,Lt(this,u,Pi).call(this),!0)}setSelected(P){ot(this,i).setSelected(P)}toggleSelected(P){ot(this,i).toggleSelected(P)}isSelected(P){return ot(this,i).isSelected(P)}unselect(P){ot(this,i).unselect(P)}pointerup(P){const{isMac:R}=ft.FeatureTest.platform;if(!(P.button!==0||P.ctrlKey&&R)&&P.target===this.div&&ot(this,A)){if(Ht(this,A,!1),!ot(this,L)){Ht(this,L,!0);return}if(ot(this,i).getMode()===ft.AnnotationEditorType.STAMP){ot(this,i).unselectAll();return}Lt(this,b,kn).call(this,P,!1)}}pointerdown(P){if(ot(this,A)){Ht(this,A,!1);return}const{isMac:R}=ft.FeatureTest.platform;if(P.button!==0||P.ctrlKey&&R||P.target!==this.div)return;Ht(this,A,!0);const o=ot(this,i).getActive();Ht(this,L,!o||o.isEmpty())}findNewParent(P,R,o){const g=ot(this,i).findParent(R,o);return g===null||g===this?!1:(g.changeParent(P),!0)}destroy(){var P,R;((P=ot(this,i).getActive())==null?void 0:P.parent)===this&&(ot(this,i).commitOrRemove(),ot(this,i).setActiveEditor(null));for(const o of ot(this,v).values())(R=ot(this,_))==null||R.removePointerInTextLayer(o.contentDiv),o.setParent(null),o.isAttachedToDOM=!1,o.div.remove();this.div=null,ot(this,v).clear(),ot(this,i).removeLayer(this)}render({viewport:P}){this.viewport=P,(0,M.setLayerDimensions)(this.div,P);for(const R of ot(this,i).getEditors(this.pageIndex))this.add(R);this.updateMode()}update({viewport:P}){ot(this,i).commitOrRemove(),this.viewport=P,(0,M.setLayerDimensions)(this.div,{rotation:P.rotation}),this.updateMode()}get pageDimensions(){const{pageWidth:P,pageHeight:R}=this.viewport.rawDims;return[P,R]}};_=new WeakMap,L=new WeakMap,t=new WeakMap,e=new WeakMap,a=new WeakMap,v=new WeakMap,A=new WeakMap,T=new WeakMap,d=new WeakMap,i=new WeakMap,C=new WeakSet,Ei=function(P){switch(ot(this,i).getMode()){case ft.AnnotationEditorType.FREETEXT:return new $t.FreeTextEditor(P);case ft.AnnotationEditorType.INK:return new vt.InkEditor(P);case ft.AnnotationEditorType.STAMP:return new Z.StampEditor(P)}return null},b=new WeakSet,kn=function(P,R){const o=this.getNextId(),g=Lt(this,C,Ei).call(this,{parent:this,id:o,x:P.offsetX,y:P.offsetY,uiManager:ot(this,i),isCentered:R});return g&&this.add(g),g},u=new WeakSet,Pi=function(){const{x:P,y:R,width:o,height:g}=this.div.getBoundingClientRect(),x=Math.max(0,P),E=Math.max(0,R),D=Math.min(window.innerWidth,P+o),q=Math.min(window.innerHeight,R+g),W=(x+D)/2-P,w=(E+q)/2-R,[s,c]=this.viewport.rotation%180===0?[W,w]:[w,W];return{offsetX:s,offsetY:c}},y=new WeakSet,Oi=function(){Ht(this,T,!0);for(const P of ot(this,v).values())P.isEmpty()&&P.remove();Ht(this,T,!1)},ye(U,"_initialized",!1);let n=U;dt.AnnotationEditorLayer=n},(Ot,dt,Mt)=>{var Z,n,_,L,t,e,a,v,A,T,ur,i,dr,p,fr,F,hn,l,_i,N,pr,$,Ii;Object.defineProperty(dt,"__esModule",{value:!0}),dt.FreeTextEditor=void 0;var ft=Mt(1),At=Mt(5),$t=Mt(4),vt=Mt(29);const R=class R extends $t.AnnotationEditor{constructor(x){super({...x,name:"freeTextEditor"});_t(this,T);_t(this,i);_t(this,p);_t(this,F);_t(this,l);_t(this,N);_t(this,$);_t(this,Z,this.editorDivBlur.bind(this));_t(this,n,this.editorDivFocus.bind(this));_t(this,_,this.editorDivInput.bind(this));_t(this,L,this.editorDivKeydown.bind(this));_t(this,t,void 0);_t(this,e,"");_t(this,a,`${this.id}-editor`);_t(this,v,void 0);_t(this,A,null);Ht(this,t,x.color||R._defaultColor||$t.AnnotationEditor._defaultLineColor),Ht(this,v,x.fontSize||R._defaultFontSize)}static get _keyboardManager(){const x=R.prototype,E=W=>W.isEmpty(),D=At.AnnotationEditorUIManager.TRANSLATE_SMALL,q=At.AnnotationEditorUIManager.TRANSLATE_BIG;return(0,ft.shadow)(this,"_keyboardManager",new At.KeyboardManager([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],x.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],x.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],x._translateEmpty,{args:[-D,0],checker:E}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],x._translateEmpty,{args:[-q,0],checker:E}],[["ArrowRight","mac+ArrowRight"],x._translateEmpty,{args:[D,0],checker:E}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],x._translateEmpty,{args:[q,0],checker:E}],[["ArrowUp","mac+ArrowUp"],x._translateEmpty,{args:[0,-D],checker:E}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],x._translateEmpty,{args:[0,-q],checker:E}],[["ArrowDown","mac+ArrowDown"],x._translateEmpty,{args:[0,D],checker:E}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],x._translateEmpty,{args:[0,q],checker:E}]]))}static initialize(x){$t.AnnotationEditor.initialize(x,{strings:["free_text2_default_content","editor_free_text2_aria_label"]});const E=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(E.getPropertyValue("--freetext-padding"))}static updateDefaultParams(x,E){switch(x){case ft.AnnotationEditorParamsType.FREETEXT_SIZE:R._defaultFontSize=E;break;case ft.AnnotationEditorParamsType.FREETEXT_COLOR:R._defaultColor=E;break}}updateParams(x,E){switch(x){case ft.AnnotationEditorParamsType.FREETEXT_SIZE:Lt(this,T,ur).call(this,E);break;case ft.AnnotationEditorParamsType.FREETEXT_COLOR:Lt(this,i,dr).call(this,E);break}}static get defaultPropertiesToUpdate(){return[[ft.AnnotationEditorParamsType.FREETEXT_SIZE,R._defaultFontSize],[ft.AnnotationEditorParamsType.FREETEXT_COLOR,R._defaultColor||$t.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[ft.AnnotationEditorParamsType.FREETEXT_SIZE,ot(this,v)],[ft.AnnotationEditorParamsType.FREETEXT_COLOR,ot(this,t)]]}_translateEmpty(x,E){this._uiManager.translateSelectedEditors(x,E,!0)}getInitialTranslation(){const x=this.parentScale;return[-R._internalPadding*x,-(R._internalPadding+ot(this,v))*x]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(ft.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",ot(this,L)),this.editorDiv.addEventListener("focus",ot(this,n)),this.editorDiv.addEventListener("blur",ot(this,Z)),this.editorDiv.addEventListener("input",ot(this,_)))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",ot(this,a)),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",ot(this,L)),this.editorDiv.removeEventListener("focus",ot(this,n)),this.editorDiv.removeEventListener("blur",ot(this,Z)),this.editorDiv.removeEventListener("input",ot(this,_)),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(x){this._focusEventsAllowed&&(super.focusin(x),x.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){var x;if(this.width){Lt(this,$,Ii).call(this);return}this.enableEditMode(),this.editorDiv.focus(),(x=this._initialOptions)!=null&&x.isCentered&&this.center(),this._initialOptions=null}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing")),super.remove()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const x=ot(this,e),E=Ht(this,e,Lt(this,p,fr).call(this).trimEnd());if(x===E)return;const D=q=>{if(Ht(this,e,q),!q){this.remove();return}Lt(this,l,_i).call(this),this._uiManager.rebuild(this),Lt(this,F,hn).call(this)};this.addCommands({cmd:()=>{D(E)},undo:()=>{D(x)},mustExec:!1}),Lt(this,F,hn).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(x){this.enterInEditMode()}keydown(x){x.target===this.div&&x.key==="Enter"&&(this.enterInEditMode(),x.preventDefault())}editorDivKeydown(x){R._keyboardManager.exec(this,x)}editorDivFocus(x){this.isEditing=!0}editorDivBlur(x){this.isEditing=!1}editorDivInput(x){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let x,E;this.width&&(x=this.x,E=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",ot(this,a)),this.enableEditing(),$t.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then(q=>{var W;return(W=this.editorDiv)==null?void 0:W.setAttribute("aria-label",q)}),$t.AnnotationEditor._l10nPromise.get("free_text2_default_content").then(q=>{var W;return(W=this.editorDiv)==null?void 0:W.setAttribute("default-content",q)}),this.editorDiv.contentEditable=!0;const{style:D}=this.editorDiv;if(D.fontSize=`calc(${ot(this,v)}px * var(--scale-factor))`,D.color=ot(this,t),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,At.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[q,W]=this.parentDimensions;if(this.annotationElementId){const{position:w}=ot(this,A);let[s,c]=this.getInitialTranslation();[s,c]=this.pageTranslationToScreen(s,c);const[S,h]=this.pageDimensions,[m,k]=this.pageTranslation;let I,B;switch(this.rotation){case 0:I=x+(w[0]-m)/S,B=E+this.height-(w[1]-k)/h;break;case 90:I=x+(w[0]-m)/S,B=E-(w[1]-k)/h,[s,c]=[c,-s];break;case 180:I=x-this.width+(w[0]-m)/S,B=E-(w[1]-k)/h,[s,c]=[-s,-c];break;case 270:I=x+(w[0]-m-this.height*h)/S,B=E+(w[1]-k-this.width*S)/h,[s,c]=[-c,s];break}this.setAt(I*q,B*W,s,c)}else this.setAt(x*q,E*W,this.width*q,this.height*W);Lt(this,l,_i).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(x,E,D){let q=null;if(x instanceof vt.FreeTextAnnotationElement){const{data:{defaultAppearanceData:{fontSize:w,fontColor:s},rect:c,rotation:S,id:h},textContent:m,textPosition:k,parent:{page:{pageNumber:I}}}=x;if(!m||m.length===0)return null;q=x={annotationType:ft.AnnotationEditorType.FREETEXT,color:Array.from(s),fontSize:w,value:m.join(` `),position:k,pageIndex:I-1,rect:c,rotation:S,id:h,deleted:!1}}const W=super.deserialize(x,E,D);return Ht(W,v,x.fontSize),Ht(W,t,ft.Util.makeHexColor(...x.color)),Ht(W,e,x.value),W.annotationElementId=x.id||null,Ht(W,A,q),W}serialize(x=!1){if(this.isEmpty())return null;if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0};const E=R._internalPadding*this.parentScale,D=this.getRect(E,E),q=$t.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:ot(this,t)),W={annotationType:ft.AnnotationEditorType.FREETEXT,color:q,fontSize:ot(this,v),value:ot(this,e),pageIndex:this.pageIndex,rect:D,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return x?W:this.annotationElementId&&!Lt(this,N,pr).call(this,W)?null:(W.id=this.annotationElementId,W)}};Z=new WeakMap,n=new WeakMap,_=new WeakMap,L=new WeakMap,t=new WeakMap,e=new WeakMap,a=new WeakMap,v=new WeakMap,A=new WeakMap,T=new WeakSet,ur=function(x){const E=q=>{this.editorDiv.style.fontSize=`calc(${q}px * var(--scale-factor))`,this.translate(0,-(q-ot(this,v))*this.parentScale),Ht(this,v,q),Lt(this,F,hn).call(this)},D=ot(this,v);this.addCommands({cmd:()=>{E(x)},undo:()=>{E(D)},mustExec:!0,type:ft.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},i=new WeakSet,dr=function(x){const E=ot(this,t);this.addCommands({cmd:()=>{Ht(this,t,this.editorDiv.style.color=x)},undo:()=>{Ht(this,t,this.editorDiv.style.color=E)},mustExec:!0,type:ft.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},p=new WeakSet,fr=function(){const x=this.editorDiv.getElementsByTagName("div");if(x.length===0)return this.editorDiv.innerText;const E=[];for(const D of x)E.push(D.innerText.replace(/\r\n?|\n/,""));return E.join(` `)},F=new WeakSet,hn=function(){const[x,E]=this.parentDimensions;let D;if(this.isAttachedToDOM)D=this.div.getBoundingClientRect();else{const{currentLayer:q,div:W}=this,w=W.style.display;W.style.display="hidden",q.div.append(this.div),D=W.getBoundingClientRect(),W.remove(),W.style.display=w}this.rotation%180===this.parentRotation%180?(this.width=D.width/x,this.height=D.height/E):(this.width=D.height/x,this.height=D.width/E),this.fixAndSetPosition()},l=new WeakSet,_i=function(){if(this.editorDiv.replaceChildren(),!!ot(this,e))for(const x of ot(this,e).split(` `)){const E=document.createElement("div");E.append(x?document.createTextNode(x):document.createElement("br")),this.editorDiv.append(E)}},N=new WeakSet,pr=function(x){const{value:E,fontSize:D,color:q,rect:W,pageIndex:w}=ot(this,A);return x.value!==E||x.fontSize!==D||x.rect.some((s,c)=>Math.abs(s-W[c])>=1)||x.color.some((s,c)=>s!==q[c])||x.pageIndex!==w},$=new WeakSet,Ii=function(x=!1){if(!this.annotationElementId)return;if(Lt(this,F,hn).call(this),!x&&(this.width===0||this.height===0)){setTimeout(()=>Lt(this,$,Ii).call(this,!0),0);return}const E=R._internalPadding*this.parentScale;ot(this,A).rect=this.getRect(E,E)},ye(R,"_freeTextDefaultContent",""),ye(R,"_internalPadding",0),ye(R,"_defaultColor",null),ye(R,"_defaultFontSize",10),ye(R,"_type","freetext");let M=R;dt.FreeTextEditor=M},(Ot,dt,Mt)=>{var c,h,He,k,gr,B,tt,it,st,X,J,j,O,H,V,z,Y,G,K,et,nt,at,Q,mr,ut,Tn,yt,Mi,Tt,Ri,wt,St,Rt,Ct,Gt,Zt,Ft,Di,Vt,Wt,Yt,re,br,Bt,Li;Object.defineProperty(dt,"__esModule",{value:!0}),dt.StampAnnotationElement=dt.InkAnnotationElement=dt.FreeTextAnnotationElement=dt.AnnotationLayer=void 0;var ft=Mt(1),At=Mt(6),$t=Mt(3),vt=Mt(30),M=Mt(31),Z=Mt(32);const n=1e3,_=9,L=new WeakSet;function t(jt){return{width:jt[2]-jt[0],height:jt[3]-jt[1]}}class e{static create(mt){switch(mt.data.annotationType){case ft.AnnotationType.LINK:return new v(mt);case ft.AnnotationType.TEXT:return new A(mt);case ft.AnnotationType.WIDGET:switch(mt.data.fieldType){case"Tx":return new d(mt);case"Btn":return mt.data.radioButton?new p(mt):mt.data.checkBox?new C(mt):new b(mt);case"Ch":return new F(mt);case"Sig":return new i(mt)}return new T(mt);case ft.AnnotationType.POPUP:return new u(mt);case ft.AnnotationType.FREETEXT:return new y(mt);case ft.AnnotationType.LINE:return new N(mt);case ft.AnnotationType.SQUARE:return new U(mt);case ft.AnnotationType.CIRCLE:return new $(mt);case ft.AnnotationType.POLYLINE:return new P(mt);case ft.AnnotationType.CARET:return new o(mt);case ft.AnnotationType.INK:return new g(mt);case ft.AnnotationType.POLYGON:return new R(mt);case ft.AnnotationType.HIGHLIGHT:return new x(mt);case ft.AnnotationType.UNDERLINE:return new E(mt);case ft.AnnotationType.SQUIGGLY:return new D(mt);case ft.AnnotationType.STRIKEOUT:return new q(mt);case ft.AnnotationType.STAMP:return new W(mt);case ft.AnnotationType.FILEATTACHMENT:return new w(mt);default:return new a(mt)}}}const S=class S{constructor(mt,{isRenderable:rt=!1,ignoreBorder:ht=!1,createQuadrilaterals:gt=!1}={}){_t(this,c,!1);this.isRenderable=rt,this.data=mt.data,this.layer=mt.layer,this.linkService=mt.linkService,this.downloadManager=mt.downloadManager,this.imageResourcesPath=mt.imageResourcesPath,this.renderForms=mt.renderForms,this.svgFactory=mt.svgFactory,this.annotationStorage=mt.annotationStorage,this.enableScripting=mt.enableScripting,this.hasJSActions=mt.hasJSActions,this._fieldObjects=mt.fieldObjects,this.parent=mt.parent,rt&&(this.container=this._createContainer(ht)),gt&&this._createQuadrilaterals()}static _hasPopupData({titleObj:mt,contentsObj:rt,richText:ht}){return!!(mt!=null&&mt.str||rt!=null&&rt.str||ht!=null&&ht.str)}get hasPopupData(){return S._hasPopupData(this.data)}_createContainer(mt){const{data:rt,parent:{page:ht,viewport:gt}}=this,bt=document.createElement("section");bt.setAttribute("data-annotation-id",rt.id),this instanceof T||(bt.tabIndex=n),bt.style.zIndex=this.parent.zIndex++,this.data.popupRef&&bt.setAttribute("aria-haspopup","dialog"),rt.noRotate&&bt.classList.add("norotate");const{pageWidth:Pt,pageHeight:It,pageX:Nt,pageY:Kt}=gt.rawDims;if(!rt.rect||this instanceof u){const{rotation:oe}=rt;return!rt.hasOwnCanvas&&oe!==0&&this.setRotation(oe,bt),bt}const{width:Qt,height:ne}=t(rt.rect),ee=ft.Util.normalizeRect([rt.rect[0],ht.view[3]-rt.rect[1]+ht.view[1],rt.rect[2],ht.view[3]-rt.rect[3]+ht.view[1]]);if(!mt&&rt.borderStyle.width>0){bt.style.borderWidth=`${rt.borderStyle.width}px`;const oe=rt.borderStyle.horizontalCornerRadius,le=rt.borderStyle.verticalCornerRadius;if(oe>0||le>0){const ce=`calc(${oe}px * var(--scale-factor)) / calc(${le}px * var(--scale-factor))`;bt.style.borderRadius=ce}else if(this instanceof p){const ce=`calc(${Qt}px * var(--scale-factor)) / calc(${ne}px * var(--scale-factor))`;bt.style.borderRadius=ce}switch(rt.borderStyle.style){case ft.AnnotationBorderStyleType.SOLID:bt.style.borderStyle="solid";break;case ft.AnnotationBorderStyleType.DASHED:bt.style.borderStyle="dashed";break;case ft.AnnotationBorderStyleType.BEVELED:(0,ft.warn)("Unimplemented border style: beveled");break;case ft.AnnotationBorderStyleType.INSET:(0,ft.warn)("Unimplemented border style: inset");break;case ft.AnnotationBorderStyleType.UNDERLINE:bt.style.borderBottomStyle="solid";break}const ie=rt.borderColor||null;ie?(Ht(this,c,!0),bt.style.borderColor=ft.Util.makeHexColor(ie[0]|0,ie[1]|0,ie[2]|0)):bt.style.borderWidth=0}bt.style.left=`${100*(ee[0]-Nt)/Pt}%`,bt.style.top=`${100*(ee[1]-Kt)/It}%`;const{rotation:te}=rt;return rt.hasOwnCanvas||te===0?(bt.style.width=`${100*Qt/Pt}%`,bt.style.height=`${100*ne/It}%`):this.setRotation(te,bt),bt}setRotation(mt,rt=this.container){if(!this.data.rect)return;const{pageWidth:ht,pageHeight:gt}=this.parent.viewport.rawDims,{width:bt,height:Pt}=t(this.data.rect);let It,Nt;mt%180===0?(It=100*bt/ht,Nt=100*Pt/gt):(It=100*Pt/ht,Nt=100*bt/gt),rt.style.width=`${It}%`,rt.style.height=`${Nt}%`,rt.setAttribute("data-main-rotation",(360-mt)%360)}get _commonActions(){const mt=(rt,ht,gt)=>{const bt=gt.detail[rt],Pt=bt[0],It=bt.slice(1);gt.target.style[ht]=vt.ColorConverters[`${Pt}_HTML`](It),this.annotationStorage.setValue(this.data.id,{[ht]:vt.ColorConverters[`${Pt}_rgb`](It)})};return(0,ft.shadow)(this,"_commonActions",{display:rt=>{const{display:ht}=rt.detail,gt=ht%2===1;this.container.style.visibility=gt?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:gt,noPrint:ht===1||ht===2})},print:rt=>{this.annotationStorage.setValue(this.data.id,{noPrint:!rt.detail.print})},hidden:rt=>{const{hidden:ht}=rt.detail;this.container.style.visibility=ht?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:ht,noView:ht})},focus:rt=>{setTimeout(()=>rt.target.focus({preventScroll:!1}),0)},userName:rt=>{rt.target.title=rt.detail.userName},readonly:rt=>{rt.target.disabled=rt.detail.readonly},required:rt=>{this._setRequired(rt.target,rt.detail.required)},bgColor:rt=>{mt("bgColor","backgroundColor",rt)},fillColor:rt=>{mt("fillColor","backgroundColor",rt)},fgColor:rt=>{mt("fgColor","color",rt)},textColor:rt=>{mt("textColor","color",rt)},borderColor:rt=>{mt("borderColor","borderColor",rt)},strokeColor:rt=>{mt("strokeColor","borderColor",rt)},rotation:rt=>{const ht=rt.detail.rotation;this.setRotation(ht),this.annotationStorage.setValue(this.data.id,{rotation:ht})}})}_dispatchEventFromSandbox(mt,rt){const ht=this._commonActions;for(const gt of Object.keys(rt.detail)){const bt=mt[gt]||ht[gt];bt==null||bt(rt)}}_setDefaultPropertiesFromJS(mt){if(!this.enableScripting)return;const rt=this.annotationStorage.getRawValue(this.data.id);if(!rt)return;const ht=this._commonActions;for(const[gt,bt]of Object.entries(rt)){const Pt=ht[gt];if(Pt){const It={detail:{[gt]:bt},target:mt};Pt(It),delete rt[gt]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:mt}=this.data;if(!mt)return;const[rt,ht,gt,bt]=this.data.rect;if(mt.length===1){const[,{x:le,y:ie},{x:ce,y:se}]=mt[0];if(gt===le&&bt===ie&&rt===ce&&ht===se)return}const{style:Pt}=this.container;let It;if(ot(this,c)){const{borderColor:le,borderWidth:ie}=Pt;Pt.borderWidth=0,It=["url('data:image/svg+xml;utf8,",'',``],this.container.classList.add("hasBorder")}const Nt=gt-rt,Kt=bt-ht,{svgFactory:Qt}=this,ne=Qt.createElement("svg");ne.classList.add("quadrilateralsContainer"),ne.setAttribute("width",0),ne.setAttribute("height",0);const ee=Qt.createElement("defs");ne.append(ee);const te=Qt.createElement("clipPath"),oe=`clippath_${this.data.id}`;te.setAttribute("id",oe),te.setAttribute("clipPathUnits","objectBoundingBox"),ee.append(te);for(const[,{x:le,y:ie},{x:ce,y:se}]of mt){const ue=Qt.createElement("rect"),he=(ce-rt)/Nt,de=(bt-ie)/Kt,ge=(le-ce)/Nt,Ae=(ie-se)/Kt;ue.setAttribute("x",he),ue.setAttribute("y",de),ue.setAttribute("width",ge),ue.setAttribute("height",Ae),te.append(ue),It==null||It.push(``)}ot(this,c)&&(It.push("')"),Pt.backgroundImage=It.join("")),this.container.append(ne),this.container.style.clipPath=`url(#${oe})`}_createPopup(){const{container:mt,data:rt}=this;mt.setAttribute("aria-haspopup","dialog");const ht=new u({data:{color:rt.color,titleObj:rt.titleObj,modificationDate:rt.modificationDate,contentsObj:rt.contentsObj,richText:rt.richText,parentRect:rt.rect,borderStyle:0,id:`popup_${rt.id}`,rotation:rt.rotation},parent:this.parent,elements:[this]});this.parent.div.append(ht.render())}render(){(0,ft.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(mt,rt=null){const ht=[];if(this._fieldObjects){const gt=this._fieldObjects[mt];if(gt)for(const{page:bt,id:Pt,exportValues:It}of gt){if(bt===-1||Pt===rt)continue;const Nt=typeof It=="string"?It:null,Kt=document.querySelector(`[data-element-id="${Pt}"]`);if(Kt&&!L.has(Kt)){(0,ft.warn)(`_getElementsByName - element not allowed: ${Pt}`);continue}ht.push({id:Pt,exportValue:Nt,domElement:Kt})}return ht}for(const gt of document.getElementsByName(mt)){const{exportValue:bt}=gt,Pt=gt.getAttribute("data-element-id");Pt!==rt&&L.has(gt)&&ht.push({id:Pt,exportValue:bt,domElement:gt})}return ht}show(){var mt;this.container&&(this.container.hidden=!1),(mt=this.popup)==null||mt.maybeShow()}hide(){var mt;this.container&&(this.container.hidden=!0),(mt=this.popup)==null||mt.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const mt=this.getElementsToTriggerPopup();if(Array.isArray(mt))for(const rt of mt)rt.classList.add("highlightArea");else mt.classList.add("highlightArea")}_editOnDoubleClick(){const{annotationEditorType:mt,data:{id:rt}}=this;this.container.addEventListener("dblclick",()=>{var ht;(ht=this.linkService.eventBus)==null||ht.dispatch("switchannotationeditormode",{source:this,mode:mt,editId:rt})})}};c=new WeakMap;let a=S;class v extends a{constructor(rt,ht=null){super(rt,{isRenderable:!0,ignoreBorder:!!(ht!=null&&ht.ignoreBorder),createQuadrilaterals:!0});_t(this,h);_t(this,k);this.isTooltipOnly=rt.data.isTooltipOnly}render(){const{data:rt,linkService:ht}=this,gt=document.createElement("a");gt.setAttribute("data-element-id",rt.id);let bt=!1;return rt.url?(ht.addLinkAttributes(gt,rt.url,rt.newWindow),bt=!0):rt.action?(this._bindNamedAction(gt,rt.action),bt=!0):rt.attachment?(this._bindAttachment(gt,rt.attachment),bt=!0):rt.setOCGState?(Lt(this,k,gr).call(this,gt,rt.setOCGState),bt=!0):rt.dest?(this._bindLink(gt,rt.dest),bt=!0):(rt.actions&&(rt.actions.Action||rt.actions["Mouse Up"]||rt.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(gt,rt),bt=!0),rt.resetForm?(this._bindResetFormAction(gt,rt.resetForm),bt=!0):this.isTooltipOnly&&!bt&&(this._bindLink(gt,""),bt=!0)),this.container.classList.add("linkAnnotation"),bt&&this.container.append(gt),this.container}_bindLink(rt,ht){rt.href=this.linkService.getDestinationHash(ht),rt.onclick=()=>(ht&&this.linkService.goToDestination(ht),!1),(ht||ht==="")&&Lt(this,h,He).call(this)}_bindNamedAction(rt,ht){rt.href=this.linkService.getAnchorUrl(""),rt.onclick=()=>(this.linkService.executeNamedAction(ht),!1),Lt(this,h,He).call(this)}_bindAttachment(rt,ht){rt.href=this.linkService.getAnchorUrl(""),rt.onclick=()=>{var gt;return(gt=this.downloadManager)==null||gt.openOrDownloadData(this.container,ht.content,ht.filename),!1},Lt(this,h,He).call(this)}_bindJSAction(rt,ht){rt.href=this.linkService.getAnchorUrl("");const gt=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const bt of Object.keys(ht.actions)){const Pt=gt.get(bt);Pt&&(rt[Pt]=()=>{var It;return(It=this.linkService.eventBus)==null||It.dispatch("dispatcheventinsandbox",{source:this,detail:{id:ht.id,name:bt}}),!1})}rt.onclick||(rt.onclick=()=>!1),Lt(this,h,He).call(this)}_bindResetFormAction(rt,ht){const gt=rt.onclick;if(gt||(rt.href=this.linkService.getAnchorUrl("")),Lt(this,h,He).call(this),!this._fieldObjects){(0,ft.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),gt||(rt.onclick=()=>!1);return}rt.onclick=()=>{var ne;gt==null||gt();const{fields:bt,refs:Pt,include:It}=ht,Nt=[];if(bt.length!==0||Pt.length!==0){const ee=new Set(Pt);for(const te of bt){const oe=this._fieldObjects[te]||[];for(const{id:le}of oe)ee.add(le)}for(const te of Object.values(this._fieldObjects))for(const oe of te)ee.has(oe.id)===It&&Nt.push(oe)}else for(const ee of Object.values(this._fieldObjects))Nt.push(...ee);const Kt=this.annotationStorage,Qt=[];for(const ee of Nt){const{id:te}=ee;switch(Qt.push(te),ee.type){case"text":{const le=ee.defaultValue||"";Kt.setValue(te,{value:le});break}case"checkbox":case"radiobutton":{const le=ee.defaultValue===ee.exportValues;Kt.setValue(te,{value:le});break}case"combobox":case"listbox":{const le=ee.defaultValue||"";Kt.setValue(te,{value:le});break}default:continue}const oe=document.querySelector(`[data-element-id="${te}"]`);if(oe){if(!L.has(oe)){(0,ft.warn)(`_bindResetFormAction - element not allowed: ${te}`);continue}}else continue;oe.dispatchEvent(new Event("resetform"))}return this.enableScripting&&((ne=this.linkService.eventBus)==null||ne.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:Qt,name:"ResetForm"}})),!1}}}h=new WeakSet,He=function(){this.container.setAttribute("data-internal-link","")},k=new WeakSet,gr=function(rt,ht){rt.href=this.linkService.getAnchorUrl(""),rt.onclick=()=>(this.linkService.executeSetOCGState(ht),!1),Lt(this,h,He).call(this)};class A extends a{constructor(mt){super(mt,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const mt=document.createElement("img");return mt.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",mt.alt="[{{type}} Annotation]",mt.dataset.l10nId="text_annotation_type",mt.dataset.l10nArgs=JSON.stringify({type:this.data.name}),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(mt),this.container}}class T extends a{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}showElementAndHideCanvas(mt){var rt;this.data.hasOwnCanvas&&(((rt=mt.previousSibling)==null?void 0:rt.nodeName)==="CANVAS"&&(mt.previousSibling.hidden=!0),mt.hidden=!1)}_getKeyModifier(mt){const{isWin:rt,isMac:ht}=ft.FeatureTest.platform;return rt&&mt.ctrlKey||ht&&mt.metaKey}_setEventListener(mt,rt,ht,gt,bt){ht.includes("mouse")?mt.addEventListener(ht,Pt=>{var It;(It=this.linkService.eventBus)==null||It.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:gt,value:bt(Pt),shift:Pt.shiftKey,modifier:this._getKeyModifier(Pt)}})}):mt.addEventListener(ht,Pt=>{var It;if(ht==="blur"){if(!rt.focused||!Pt.relatedTarget)return;rt.focused=!1}else if(ht==="focus"){if(rt.focused)return;rt.focused=!0}bt&&((It=this.linkService.eventBus)==null||It.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:gt,value:bt(Pt)}}))})}_setEventListeners(mt,rt,ht,gt){var bt,Pt,It;for(const[Nt,Kt]of ht)(Kt==="Action"||(bt=this.data.actions)!=null&&bt[Kt])&&((Kt==="Focus"||Kt==="Blur")&&(rt||(rt={focused:!1})),this._setEventListener(mt,rt,Nt,Kt,gt),Kt==="Focus"&&!((Pt=this.data.actions)!=null&&Pt.Blur)?this._setEventListener(mt,rt,"blur","Blur",null):Kt==="Blur"&&!((It=this.data.actions)!=null&&It.Focus)&&this._setEventListener(mt,rt,"focus","Focus",null))}_setBackgroundColor(mt){const rt=this.data.backgroundColor||null;mt.style.backgroundColor=rt===null?"transparent":ft.Util.makeHexColor(rt[0],rt[1],rt[2])}_setTextStyle(mt){const rt=["left","center","right"],{fontColor:ht}=this.data.defaultAppearanceData,gt=this.data.defaultAppearanceData.fontSize||_,bt=mt.style;let Pt;const It=2,Nt=Kt=>Math.round(10*Kt)/10;if(this.data.multiLine){const Kt=Math.abs(this.data.rect[3]-this.data.rect[1]-It),Qt=Math.round(Kt/(ft.LINE_FACTOR*gt))||1,ne=Kt/Qt;Pt=Math.min(gt,Nt(ne/ft.LINE_FACTOR))}else{const Kt=Math.abs(this.data.rect[3]-this.data.rect[1]-It);Pt=Math.min(gt,Nt(Kt/ft.LINE_FACTOR))}bt.fontSize=`calc(${Pt}px * var(--scale-factor))`,bt.color=ft.Util.makeHexColor(ht[0],ht[1],ht[2]),this.data.textAlignment!==null&&(bt.textAlign=rt[this.data.textAlignment])}_setRequired(mt,rt){rt?mt.setAttribute("required",!0):mt.removeAttribute("required"),mt.setAttribute("aria-required",rt)}}class d extends T{constructor(mt){const rt=mt.renderForms||!mt.data.hasAppearance&&!!mt.data.fieldValue;super(mt,{isRenderable:rt})}setPropertyOnSiblings(mt,rt,ht,gt){const bt=this.annotationStorage;for(const Pt of this._getElementsByName(mt.name,mt.id))Pt.domElement&&(Pt.domElement[rt]=ht),bt.setValue(Pt.id,{[gt]:ht})}render(){var gt,bt;const mt=this.annotationStorage,rt=this.data.id;this.container.classList.add("textWidgetAnnotation");let ht=null;if(this.renderForms){const Pt=mt.getValue(rt,{value:this.data.fieldValue});let It=Pt.value||"";const Nt=mt.getValue(rt,{charLimit:this.data.maxLen}).charLimit;Nt&&It.length>Nt&&(It=It.slice(0,Nt));let Kt=Pt.formattedValue||((gt=this.data.textContent)==null?void 0:gt.join(` `))||null;Kt&&this.data.comb&&(Kt=Kt.replaceAll(/\s+/g,""));const Qt={userValue:It,formattedValue:Kt,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(ht=document.createElement("textarea"),ht.textContent=Kt??It,this.data.doNotScroll&&(ht.style.overflowY="hidden")):(ht=document.createElement("input"),ht.type="text",ht.setAttribute("value",Kt??It),this.data.doNotScroll&&(ht.style.overflowX="hidden")),this.data.hasOwnCanvas&&(ht.hidden=!0),L.add(ht),ht.setAttribute("data-element-id",rt),ht.disabled=this.data.readOnly,ht.name=this.data.fieldName,ht.tabIndex=n,this._setRequired(ht,this.data.required),Nt&&(ht.maxLength=Nt),ht.addEventListener("input",ee=>{mt.setValue(rt,{value:ee.target.value}),this.setPropertyOnSiblings(ht,"value",ee.target.value,"value"),Qt.formattedValue=null}),ht.addEventListener("resetform",ee=>{const te=this.data.defaultFieldValue??"";ht.value=Qt.userValue=te,Qt.formattedValue=null});let ne=ee=>{const{formattedValue:te}=Qt;te!=null&&(ee.target.value=te),ee.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){ht.addEventListener("focus",te=>{if(Qt.focused)return;const{target:oe}=te;Qt.userValue&&(oe.value=Qt.userValue),Qt.lastCommittedValue=oe.value,Qt.commitKey=1,Qt.focused=!0}),ht.addEventListener("updatefromsandbox",te=>{this.showElementAndHideCanvas(te.target);const oe={value(le){Qt.userValue=le.detail.value??"",mt.setValue(rt,{value:Qt.userValue.toString()}),le.target.value=Qt.userValue},formattedValue(le){const{formattedValue:ie}=le.detail;Qt.formattedValue=ie,ie!=null&&le.target!==document.activeElement&&(le.target.value=ie),mt.setValue(rt,{formattedValue:ie})},selRange(le){le.target.setSelectionRange(...le.detail.selRange)},charLimit:le=>{var ue;const{charLimit:ie}=le.detail,{target:ce}=le;if(ie===0){ce.removeAttribute("maxLength");return}ce.setAttribute("maxLength",ie);let se=Qt.userValue;!se||se.length<=ie||(se=se.slice(0,ie),ce.value=Qt.userValue=se,mt.setValue(rt,{value:se}),(ue=this.linkService.eventBus)==null||ue.dispatch("dispatcheventinsandbox",{source:this,detail:{id:rt,name:"Keystroke",value:se,willCommit:!0,commitKey:1,selStart:ce.selectionStart,selEnd:ce.selectionEnd}}))}};this._dispatchEventFromSandbox(oe,te)}),ht.addEventListener("keydown",te=>{var ie;Qt.commitKey=1;let oe=-1;if(te.key==="Escape"?oe=0:te.key==="Enter"&&!this.data.multiLine?oe=2:te.key==="Tab"&&(Qt.commitKey=3),oe===-1)return;const{value:le}=te.target;Qt.lastCommittedValue!==le&&(Qt.lastCommittedValue=le,Qt.userValue=le,(ie=this.linkService.eventBus)==null||ie.dispatch("dispatcheventinsandbox",{source:this,detail:{id:rt,name:"Keystroke",value:le,willCommit:!0,commitKey:oe,selStart:te.target.selectionStart,selEnd:te.target.selectionEnd}}))});const ee=ne;ne=null,ht.addEventListener("blur",te=>{var le;if(!Qt.focused||!te.relatedTarget)return;Qt.focused=!1;const{value:oe}=te.target;Qt.userValue=oe,Qt.lastCommittedValue!==oe&&((le=this.linkService.eventBus)==null||le.dispatch("dispatcheventinsandbox",{source:this,detail:{id:rt,name:"Keystroke",value:oe,willCommit:!0,commitKey:Qt.commitKey,selStart:te.target.selectionStart,selEnd:te.target.selectionEnd}})),ee(te)}),(bt=this.data.actions)!=null&&bt.Keystroke&&ht.addEventListener("beforeinput",te=>{var de;Qt.lastCommittedValue=null;const{data:oe,target:le}=te,{value:ie,selectionStart:ce,selectionEnd:se}=le;let ue=ce,he=se;switch(te.inputType){case"deleteWordBackward":{const ge=ie.substring(0,ce).match(/\w*[^\w]*$/);ge&&(ue-=ge[0].length);break}case"deleteWordForward":{const ge=ie.substring(ce).match(/^[^\w]*\w*/);ge&&(he+=ge[0].length);break}case"deleteContentBackward":ce===se&&(ue-=1);break;case"deleteContentForward":ce===se&&(he+=1);break}te.preventDefault(),(de=this.linkService.eventBus)==null||de.dispatch("dispatcheventinsandbox",{source:this,detail:{id:rt,name:"Keystroke",value:ie,change:oe||"",willCommit:!1,selStart:ue,selEnd:he}})}),this._setEventListeners(ht,Qt,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],te=>te.target.value)}if(ne&&ht.addEventListener("blur",ne),this.data.comb){const te=(this.data.rect[2]-this.data.rect[0])/Nt;ht.classList.add("comb"),ht.style.letterSpacing=`calc(${te}px * var(--scale-factor) - 1ch)`}}else ht=document.createElement("div"),ht.textContent=this.data.fieldValue,ht.style.verticalAlign="middle",ht.style.display="table-cell";return this._setTextStyle(ht),this._setBackgroundColor(ht),this._setDefaultPropertiesFromJS(ht),this.container.append(ht),this.container}}class i extends T{constructor(mt){super(mt,{isRenderable:!!mt.data.hasOwnCanvas})}}class C extends T{constructor(mt){super(mt,{isRenderable:mt.renderForms})}render(){const mt=this.annotationStorage,rt=this.data,ht=rt.id;let gt=mt.getValue(ht,{value:rt.exportValue===rt.fieldValue}).value;typeof gt=="string"&&(gt=gt!=="Off",mt.setValue(ht,{value:gt})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const bt=document.createElement("input");return L.add(bt),bt.setAttribute("data-element-id",ht),bt.disabled=rt.readOnly,this._setRequired(bt,this.data.required),bt.type="checkbox",bt.name=rt.fieldName,gt&&bt.setAttribute("checked",!0),bt.setAttribute("exportValue",rt.exportValue),bt.tabIndex=n,bt.addEventListener("change",Pt=>{const{name:It,checked:Nt}=Pt.target;for(const Kt of this._getElementsByName(It,ht)){const Qt=Nt&&Kt.exportValue===rt.exportValue;Kt.domElement&&(Kt.domElement.checked=Qt),mt.setValue(Kt.id,{value:Qt})}mt.setValue(ht,{value:Nt})}),bt.addEventListener("resetform",Pt=>{const It=rt.defaultFieldValue||"Off";Pt.target.checked=It===rt.exportValue}),this.enableScripting&&this.hasJSActions&&(bt.addEventListener("updatefromsandbox",Pt=>{const It={value(Nt){Nt.target.checked=Nt.detail.value!=="Off",mt.setValue(ht,{value:Nt.target.checked})}};this._dispatchEventFromSandbox(It,Pt)}),this._setEventListeners(bt,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],Pt=>Pt.target.checked)),this._setBackgroundColor(bt),this._setDefaultPropertiesFromJS(bt),this.container.append(bt),this.container}}class p extends T{constructor(mt){super(mt,{isRenderable:mt.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const mt=this.annotationStorage,rt=this.data,ht=rt.id;let gt=mt.getValue(ht,{value:rt.fieldValue===rt.buttonValue}).value;typeof gt=="string"&&(gt=gt!==rt.buttonValue,mt.setValue(ht,{value:gt}));const bt=document.createElement("input");if(L.add(bt),bt.setAttribute("data-element-id",ht),bt.disabled=rt.readOnly,this._setRequired(bt,this.data.required),bt.type="radio",bt.name=rt.fieldName,gt&&bt.setAttribute("checked",!0),bt.tabIndex=n,bt.addEventListener("change",Pt=>{const{name:It,checked:Nt}=Pt.target;for(const Kt of this._getElementsByName(It,ht))mt.setValue(Kt.id,{value:!1});mt.setValue(ht,{value:Nt})}),bt.addEventListener("resetform",Pt=>{const It=rt.defaultFieldValue;Pt.target.checked=It!=null&&It===rt.buttonValue}),this.enableScripting&&this.hasJSActions){const Pt=rt.buttonValue;bt.addEventListener("updatefromsandbox",It=>{const Nt={value:Kt=>{const Qt=Pt===Kt.detail.value;for(const ne of this._getElementsByName(Kt.target.name)){const ee=Qt&&ne.id===ht;ne.domElement&&(ne.domElement.checked=ee),mt.setValue(ne.id,{value:ee})}}};this._dispatchEventFromSandbox(Nt,It)}),this._setEventListeners(bt,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],It=>It.target.checked)}return this._setBackgroundColor(bt),this._setDefaultPropertiesFromJS(bt),this.container.append(bt),this.container}}class b extends v{constructor(mt){super(mt,{ignoreBorder:mt.data.hasAppearance})}render(){const mt=super.render();mt.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(mt.title=this.data.alternativeText);const rt=mt.lastChild;return this.enableScripting&&this.hasJSActions&&rt&&(this._setDefaultPropertiesFromJS(rt),rt.addEventListener("updatefromsandbox",ht=>{this._dispatchEventFromSandbox({},ht)})),mt}}class F extends T{constructor(mt){super(mt,{isRenderable:mt.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const mt=this.annotationStorage,rt=this.data.id,ht=mt.getValue(rt,{value:this.data.fieldValue}),gt=document.createElement("select");L.add(gt),gt.setAttribute("data-element-id",rt),gt.disabled=this.data.readOnly,this._setRequired(gt,this.data.required),gt.name=this.data.fieldName,gt.tabIndex=n;let bt=this.data.combo&&this.data.options.length>0;this.data.combo||(gt.size=this.data.options.length,this.data.multiSelect&&(gt.multiple=!0)),gt.addEventListener("resetform",Qt=>{const ne=this.data.defaultFieldValue;for(const ee of gt.options)ee.selected=ee.value===ne});for(const Qt of this.data.options){const ne=document.createElement("option");ne.textContent=Qt.displayValue,ne.value=Qt.exportValue,ht.value.includes(Qt.exportValue)&&(ne.setAttribute("selected",!0),bt=!1),gt.append(ne)}let Pt=null;if(bt){const Qt=document.createElement("option");Qt.value=" ",Qt.setAttribute("hidden",!0),Qt.setAttribute("selected",!0),gt.prepend(Qt),Pt=()=>{Qt.remove(),gt.removeEventListener("input",Pt),Pt=null},gt.addEventListener("input",Pt)}const It=Qt=>{const ne=Qt?"value":"textContent",{options:ee,multiple:te}=gt;return te?Array.prototype.filter.call(ee,oe=>oe.selected).map(oe=>oe[ne]):ee.selectedIndex===-1?null:ee[ee.selectedIndex][ne]};let Nt=It(!1);const Kt=Qt=>{const ne=Qt.target.options;return Array.prototype.map.call(ne,ee=>({displayValue:ee.textContent,exportValue:ee.value}))};return this.enableScripting&&this.hasJSActions?(gt.addEventListener("updatefromsandbox",Qt=>{const ne={value(ee){Pt==null||Pt();const te=ee.detail.value,oe=new Set(Array.isArray(te)?te:[te]);for(const le of gt.options)le.selected=oe.has(le.value);mt.setValue(rt,{value:It(!0)}),Nt=It(!1)},multipleSelection(ee){gt.multiple=!0},remove(ee){const te=gt.options,oe=ee.detail.remove;te[oe].selected=!1,gt.remove(oe),te.length>0&&Array.prototype.findIndex.call(te,ie=>ie.selected)===-1&&(te[0].selected=!0),mt.setValue(rt,{value:It(!0),items:Kt(ee)}),Nt=It(!1)},clear(ee){for(;gt.length!==0;)gt.remove(0);mt.setValue(rt,{value:null,items:[]}),Nt=It(!1)},insert(ee){const{index:te,displayValue:oe,exportValue:le}=ee.detail.insert,ie=gt.children[te],ce=document.createElement("option");ce.textContent=oe,ce.value=le,ie?ie.before(ce):gt.append(ce),mt.setValue(rt,{value:It(!0),items:Kt(ee)}),Nt=It(!1)},items(ee){const{items:te}=ee.detail;for(;gt.length!==0;)gt.remove(0);for(const oe of te){const{displayValue:le,exportValue:ie}=oe,ce=document.createElement("option");ce.textContent=le,ce.value=ie,gt.append(ce)}gt.options.length>0&&(gt.options[0].selected=!0),mt.setValue(rt,{value:It(!0),items:Kt(ee)}),Nt=It(!1)},indices(ee){const te=new Set(ee.detail.indices);for(const oe of ee.target.options)oe.selected=te.has(oe.index);mt.setValue(rt,{value:It(!0)}),Nt=It(!1)},editable(ee){ee.target.disabled=!ee.detail.editable}};this._dispatchEventFromSandbox(ne,Qt)}),gt.addEventListener("input",Qt=>{var ee;const ne=It(!0);mt.setValue(rt,{value:ne}),Qt.preventDefault(),(ee=this.linkService.eventBus)==null||ee.dispatch("dispatcheventinsandbox",{source:this,detail:{id:rt,name:"Keystroke",value:Nt,changeEx:ne,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(gt,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],Qt=>Qt.target.value)):gt.addEventListener("input",function(Qt){mt.setValue(rt,{value:It(!0)})}),this.data.combo&&this._setTextStyle(gt),this._setBackgroundColor(gt),this._setDefaultPropertiesFromJS(gt),this.container.append(gt),this.container}}class u extends a{constructor(mt){const{data:rt,elements:ht}=mt;super(mt,{isRenderable:a._hasPopupData(rt)}),this.elements=ht}render(){this.container.classList.add("popupAnnotation");const mt=new l({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),rt=[];for(const ht of this.elements)ht.popup=mt,rt.push(ht.data.id),ht.addHighlightArea();return this.container.setAttribute("aria-controls",rt.map(ht=>`${ft.AnnotationPrefix}${ht}`).join(",")),this.container}}class l{constructor({container:mt,color:rt,elements:ht,titleObj:gt,modificationDate:bt,contentsObj:Pt,richText:It,parent:Nt,rect:Kt,parentRect:Qt,open:ne}){_t(this,Q);_t(this,ut);_t(this,yt);_t(this,Tt);_t(this,B,null);_t(this,tt,Lt(this,Q,mr).bind(this));_t(this,it,Lt(this,Tt,Ri).bind(this));_t(this,st,Lt(this,yt,Mi).bind(this));_t(this,X,Lt(this,ut,Tn).bind(this));_t(this,J,null);_t(this,j,null);_t(this,O,null);_t(this,H,null);_t(this,V,null);_t(this,z,null);_t(this,Y,!1);_t(this,G,null);_t(this,K,null);_t(this,et,null);_t(this,nt,null);_t(this,at,!1);var te;Ht(this,j,mt),Ht(this,nt,gt),Ht(this,O,Pt),Ht(this,et,It),Ht(this,V,Nt),Ht(this,J,rt),Ht(this,K,Kt),Ht(this,z,Qt),Ht(this,H,ht);const ee=At.PDFDateString.toDateObject(bt);ee&&Ht(this,B,Nt.l10n.get("annotation_date_string",{date:ee.toLocaleDateString(),time:ee.toLocaleTimeString()})),this.trigger=ht.flatMap(oe=>oe.getElementsToTriggerPopup());for(const oe of this.trigger)oe.addEventListener("click",ot(this,X)),oe.addEventListener("mouseenter",ot(this,st)),oe.addEventListener("mouseleave",ot(this,it)),oe.classList.add("popupTriggerArea");for(const oe of ht)(te=oe.container)==null||te.addEventListener("keydown",ot(this,tt));ot(this,j).hidden=!0,ne&&Lt(this,ut,Tn).call(this)}render(){if(ot(this,G))return;const{page:{view:mt},viewport:{rawDims:{pageWidth:rt,pageHeight:ht,pageX:gt,pageY:bt}}}=ot(this,V),Pt=Ht(this,G,document.createElement("div"));if(Pt.className="popup",ot(this,J)){const ue=Pt.style.outlineColor=ft.Util.makeHexColor(...ot(this,J));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?Pt.style.backgroundColor=`color-mix(in srgb, ${ue} 30%, white)`:Pt.style.backgroundColor=ft.Util.makeHexColor(...ot(this,J).map(de=>Math.floor(.7*(255-de)+de)))}const It=document.createElement("span");It.className="header";const Nt=document.createElement("h1");if(It.append(Nt),{dir:Nt.dir,str:Nt.textContent}=ot(this,nt),Pt.append(It),ot(this,B)){const ue=document.createElement("span");ue.classList.add("popupDate"),ot(this,B).then(he=>{ue.textContent=he}),It.append(ue)}const Kt=ot(this,O),Qt=ot(this,et);if(Qt!=null&&Qt.str&&(!(Kt!=null&&Kt.str)||Kt.str===Qt.str))Z.XfaLayer.render({xfaHtml:Qt.html,intent:"richText",div:Pt}),Pt.lastChild.classList.add("richText","popupContent");else{const ue=this._formatContents(Kt);Pt.append(ue)}let ne=!!ot(this,z),ee=ne?ot(this,z):ot(this,K);for(const ue of ot(this,H))if(!ee||ft.Util.intersect(ue.data.rect,ee)!==null){ee=ue.data.rect,ne=!0;break}const te=ft.Util.normalizeRect([ee[0],mt[3]-ee[1]+mt[1],ee[2],mt[3]-ee[3]+mt[1]]),le=ne?ee[2]-ee[0]+5:0,ie=te[0]+le,ce=te[1],{style:se}=ot(this,j);se.left=`${100*(ie-gt)/rt}%`,se.top=`${100*(ce-bt)/ht}%`,ot(this,j).append(Pt)}_formatContents({str:mt,dir:rt}){const ht=document.createElement("p");ht.classList.add("popupContent"),ht.dir=rt;const gt=mt.split(/(?:\r\n?|\n)/);for(let bt=0,Pt=gt.length;bt{Pt.key==="Enter"&&(bt?Pt.metaKey:Pt.ctrlKey)&&Lt(this,Ft,Di).call(this)}),!ht.popupRef&&this.hasPopupData?this._createPopup():gt.classList.add("popupTriggerArea"),rt.append(gt),rt}getElementsToTriggerPopup(){return ot(this,Zt)}addHighlightArea(){this.container.classList.add("highlightArea")}}Zt=new WeakMap,Ft=new WeakSet,Di=function(){var rt;(rt=this.downloadManager)==null||rt.openOrDownloadData(this.container,this.content,this.filename)};class s{constructor({div:mt,accessibilityManager:rt,annotationCanvasMap:ht,l10n:gt,page:bt,viewport:Pt}){_t(this,re);_t(this,Bt);_t(this,Vt,null);_t(this,Wt,null);_t(this,Yt,new Map);this.div=mt,Ht(this,Vt,rt),Ht(this,Wt,ht),this.l10n=gt,this.page=bt,this.viewport=Pt,this.zIndex=0,this.l10n||(this.l10n=M.NullL10n)}async render(mt){const{annotations:rt}=mt,ht=this.div;(0,At.setLayerDimensions)(ht,this.viewport);const gt=new Map,bt={data:null,layer:ht,linkService:mt.linkService,downloadManager:mt.downloadManager,imageResourcesPath:mt.imageResourcesPath||"",renderForms:mt.renderForms!==!1,svgFactory:new At.DOMSVGFactory,annotationStorage:mt.annotationStorage||new $t.AnnotationStorage,enableScripting:mt.enableScripting===!0,hasJSActions:mt.hasJSActions,fieldObjects:mt.fieldObjects,parent:this,elements:null};for(const Pt of rt){if(Pt.noHTML)continue;const It=Pt.annotationType===ft.AnnotationType.POPUP;if(It){const Qt=gt.get(Pt.id);if(!Qt)continue;bt.elements=Qt}else{const{width:Qt,height:ne}=t(Pt.rect);if(Qt<=0||ne<=0)continue}bt.data=Pt;const Nt=e.create(bt);if(!Nt.isRenderable)continue;if(!It&&Pt.popupRef){const Qt=gt.get(Pt.popupRef);Qt?Qt.push(Nt):gt.set(Pt.popupRef,[Nt])}Nt.annotationEditorType>0&&ot(this,Yt).set(Nt.data.id,Nt);const Kt=Nt.render();Pt.hidden&&(Kt.style.visibility="hidden"),Lt(this,re,br).call(this,Kt,Pt.id)}Lt(this,Bt,Li).call(this),await this.l10n.translate(ht)}update({viewport:mt}){const rt=this.div;this.viewport=mt,(0,At.setLayerDimensions)(rt,{rotation:mt.rotation}),Lt(this,Bt,Li).call(this),rt.hidden=!1}getEditableAnnotations(){return Array.from(ot(this,Yt).values())}getEditableAnnotation(mt){return ot(this,Yt).get(mt)}}Vt=new WeakMap,Wt=new WeakMap,Yt=new WeakMap,re=new WeakSet,br=function(mt,rt){var gt;const ht=mt.firstChild||mt;ht.id=`${ft.AnnotationPrefix}${rt}`,this.div.append(mt),(gt=ot(this,Vt))==null||gt.moveElementInDOM(this.div,mt,ht,!1)},Bt=new WeakSet,Li=function(){if(!ot(this,Wt))return;const mt=this.div;for(const[rt,ht]of ot(this,Wt)){const gt=mt.querySelector(`[data-annotation-id="${rt}"]`);if(!gt)continue;const{firstChild:bt}=gt;bt?bt.nodeName==="CANVAS"?bt.replaceWith(ht):bt.before(ht):gt.append(ht)}ot(this,Wt).clear()},dt.AnnotationLayer=s},(Ot,dt)=>{Object.defineProperty(dt,"__esModule",{value:!0}),dt.ColorConverters=void 0;function Mt($t){return Math.floor(Math.max(0,Math.min(1,$t))*255).toString(16).padStart(2,"0")}function ft($t){return Math.max(0,Math.min(255,255*$t))}class At{static CMYK_G([vt,M,Z,n]){return["G",1-Math.min(1,.3*vt+.59*Z+.11*M+n)]}static G_CMYK([vt]){return["CMYK",0,0,0,1-vt]}static G_RGB([vt]){return["RGB",vt,vt,vt]}static G_rgb([vt]){return vt=ft(vt),[vt,vt,vt]}static G_HTML([vt]){const M=Mt(vt);return`#${M}${M}${M}`}static RGB_G([vt,M,Z]){return["G",.3*vt+.59*M+.11*Z]}static RGB_rgb(vt){return vt.map(ft)}static RGB_HTML(vt){return`#${vt.map(Mt).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([vt,M,Z,n]){return["RGB",1-Math.min(1,vt+n),1-Math.min(1,Z+n),1-Math.min(1,M+n)]}static CMYK_rgb([vt,M,Z,n]){return[ft(1-Math.min(1,vt+n)),ft(1-Math.min(1,Z+n)),ft(1-Math.min(1,M+n))]}static CMYK_HTML(vt){const M=this.CMYK_RGB(vt).slice(1);return this.RGB_HTML(M)}static RGB_CMYK([vt,M,Z]){const n=1-vt,_=1-M,L=1-Z,t=Math.min(n,_,L);return["CMYK",n,_,L,t]}}dt.ColorConverters=At},(Ot,dt)=>{Object.defineProperty(dt,"__esModule",{value:!0}),dt.NullL10n=void 0,dt.getL10nFallback=ft;const Mt={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing…",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image",editor_alt_text_button_label:"Alt text",editor_alt_text_edit_button_label:"Edit alt text",editor_alt_text_decorative_tooltip:"Marked as decorative"};Mt.print_progress_percent="{{progress}}%";function ft(vt,M){switch(vt){case"find_match_count":vt=`find_match_count[${M.total===1?"one":"other"}]`;break;case"find_match_count_limit":vt=`find_match_count_limit[${M.limit===1?"one":"other"}]`;break}return Mt[vt]||""}function At(vt,M){return M?vt.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,(Z,n)=>n in M?M[n]:"{{"+n+"}}"):vt}const $t={async getLanguage(){return"en-us"},async getDirection(){return"ltr"},async get(vt,M=null,Z=ft(vt,M)){return At(Z,M)},async translate(vt){}};dt.NullL10n=$t},(Ot,dt,Mt)=>{Object.defineProperty(dt,"__esModule",{value:!0}),dt.XfaLayer=void 0;var ft=Mt(25);class At{static setupStorage(vt,M,Z,n,_){const L=n.getValue(M,{value:null});switch(Z.name){case"textarea":if(L.value!==null&&(vt.textContent=L.value),_==="print")break;vt.addEventListener("input",t=>{n.setValue(M,{value:t.target.value})});break;case"input":if(Z.attributes.type==="radio"||Z.attributes.type==="checkbox"){if(L.value===Z.attributes.xfaOn?vt.setAttribute("checked",!0):L.value===Z.attributes.xfaOff&&vt.removeAttribute("checked"),_==="print")break;vt.addEventListener("change",t=>{n.setValue(M,{value:t.target.checked?t.target.getAttribute("xfaOn"):t.target.getAttribute("xfaOff")})})}else{if(L.value!==null&&vt.setAttribute("value",L.value),_==="print")break;vt.addEventListener("input",t=>{n.setValue(M,{value:t.target.value})})}break;case"select":if(L.value!==null){vt.setAttribute("value",L.value);for(const t of Z.children)t.attributes.value===L.value?t.attributes.selected=!0:t.attributes.hasOwnProperty("selected")&&delete t.attributes.selected}vt.addEventListener("input",t=>{const e=t.target.options,a=e.selectedIndex===-1?"":e[e.selectedIndex].value;n.setValue(M,{value:a})});break}}static setAttributes({html:vt,element:M,storage:Z=null,intent:n,linkService:_}){const{attributes:L}=M,t=vt instanceof HTMLAnchorElement;L.type==="radio"&&(L.name=`${L.name}-${n}`);for(const[e,a]of Object.entries(L))if(a!=null)switch(e){case"class":a.length&&vt.setAttribute(e,a.join(" "));break;case"dataId":break;case"id":vt.setAttribute("data-element-id",a);break;case"style":Object.assign(vt.style,a);break;case"textContent":vt.textContent=a;break;default:(!t||e!=="href"&&e!=="newWindow")&&vt.setAttribute(e,a)}t&&_.addLinkAttributes(vt,L.href,L.newWindow),Z&&L.dataId&&this.setupStorage(vt,L.dataId,M,Z)}static render(vt){var v;const M=vt.annotationStorage,Z=vt.linkService,n=vt.xfaHtml,_=vt.intent||"display",L=document.createElement(n.name);n.attributes&&this.setAttributes({html:L,element:n,intent:_,linkService:Z});const t=[[n,-1,L]],e=vt.div;if(e.append(L),vt.viewport){const A=`matrix(${vt.viewport.transform.join(",")})`;e.style.transform=A}_!=="richText"&&e.setAttribute("class","xfaLayer xfaFont");const a=[];for(;t.length>0;){const[A,T,d]=t.at(-1);if(T+1===A.children.length){t.pop();continue}const i=A.children[++t.at(-1)[1]];if(i===null)continue;const{name:C}=i;if(C==="#text"){const b=document.createTextNode(i.value);a.push(b),d.append(b);continue}const p=(v=i==null?void 0:i.attributes)!=null&&v.xmlns?document.createElementNS(i.attributes.xmlns,C):document.createElement(C);if(d.append(p),i.attributes&&this.setAttributes({html:p,element:i,storage:M,intent:_,linkService:Z}),i.children&&i.children.length>0)t.push([i,-1,p]);else if(i.value){const b=document.createTextNode(i.value);ft.XfaText.shouldBuildText(C)&&a.push(b),p.append(b)}}for(const A of e.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))A.setAttribute("readOnly",!0);return{textDivs:a}}static update(vt){const M=`matrix(${vt.viewport.transform.join(",")})`;vt.div.style.transform=M,vt.div.hidden=!1}}dt.XfaLayer=At},(Ot,dt,Mt)=>{var n,_,L,t,e,a,v,A,T,d,i,C,p,b,F,yr,l,wr,N,Sr,$,Ar,R,Ni,g,xr,E,Bi,q,vr,w,Cr,c,kr,h,Tr,k,Fr,B,Ne,it,$i,X,Fn,j,En,H,Ke,z,ji,G,Pn,et,Er,at,Ui,lt,Pr,pt,Or,Et,Hi,xt,On,St,Ye;Object.defineProperty(dt,"__esModule",{value:!0}),dt.InkEditor=void 0;var ft=Mt(1),At=Mt(4),$t=Mt(29),vt=Mt(6),M=Mt(5);const Ct=class Ct extends At.AnnotationEditor{constructor(Ft){super({...Ft,name:"inkEditor"});_t(this,F);_t(this,l);_t(this,N);_t(this,$);_t(this,R);_t(this,g);_t(this,E);_t(this,q);_t(this,w);_t(this,c);_t(this,h);_t(this,k);_t(this,B);_t(this,it);_t(this,X);_t(this,j);_t(this,H);_t(this,z);_t(this,G);_t(this,pt);_t(this,Et);_t(this,xt);_t(this,St);_t(this,n,0);_t(this,_,0);_t(this,L,this.canvasPointermove.bind(this));_t(this,t,this.canvasPointerleave.bind(this));_t(this,e,this.canvasPointerup.bind(this));_t(this,a,this.canvasPointerdown.bind(this));_t(this,v,new Path2D);_t(this,A,!1);_t(this,T,!1);_t(this,d,!1);_t(this,i,null);_t(this,C,0);_t(this,p,0);_t(this,b,null);this.color=Ft.color||null,this.thickness=Ft.thickness||null,this.opacity=Ft.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(Ft){At.AnnotationEditor.initialize(Ft,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}static updateDefaultParams(Ft,Ut){switch(Ft){case ft.AnnotationEditorParamsType.INK_THICKNESS:Ct._defaultThickness=Ut;break;case ft.AnnotationEditorParamsType.INK_COLOR:Ct._defaultColor=Ut;break;case ft.AnnotationEditorParamsType.INK_OPACITY:Ct._defaultOpacity=Ut/100;break}}updateParams(Ft,Ut){switch(Ft){case ft.AnnotationEditorParamsType.INK_THICKNESS:Lt(this,F,yr).call(this,Ut);break;case ft.AnnotationEditorParamsType.INK_COLOR:Lt(this,l,wr).call(this,Ut);break;case ft.AnnotationEditorParamsType.INK_OPACITY:Lt(this,N,Sr).call(this,Ut);break}}static get defaultPropertiesToUpdate(){return[[ft.AnnotationEditorParamsType.INK_THICKNESS,Ct._defaultThickness],[ft.AnnotationEditorParamsType.INK_COLOR,Ct._defaultColor||At.AnnotationEditor._defaultLineColor],[ft.AnnotationEditorParamsType.INK_OPACITY,Math.round(Ct._defaultOpacity*100)]]}get propertiesToUpdate(){return[[ft.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||Ct._defaultThickness],[ft.AnnotationEditorParamsType.INK_COLOR,this.color||Ct._defaultColor||At.AnnotationEditor._defaultLineColor],[ft.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??Ct._defaultOpacity))]]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.canvas||(Lt(this,X,Fn).call(this),Lt(this,j,En).call(this)),this.isAttachedToDOM||(this.parent.add(this),Lt(this,H,Ke).call(this)),Lt(this,St,Ye).call(this)))}remove(){this.canvas!==null&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,ot(this,i).disconnect(),Ht(this,i,null),super.remove())}setParent(Ft){!this.parent&&Ft?this._uiManager.removeShouldRescale(this):this.parent&&Ft===null&&this._uiManager.addShouldRescale(this),super.setParent(Ft)}onScaleChanging(){const[Ft,Ut]=this.parentDimensions,Vt=this.width*Ft,Wt=this.height*Ut;this.setDimensions(Vt,Wt)}enableEditMode(){ot(this,A)||this.canvas===null||(super.enableEditMode(),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",ot(this,a)))}disableEditMode(){!this.isInEditMode()||this.canvas===null||(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",ot(this,a)))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0}commit(){ot(this,A)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),Ht(this,A,!0),this.div.classList.add("disabled"),Lt(this,St,Ye).call(this,!0),this.makeResizable(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}focusin(Ft){this._focusEventsAllowed&&(super.focusin(Ft),this.enableEditMode())}canvasPointerdown(Ft){Ft.button!==0||!this.isInEditMode()||ot(this,A)||(this.setInForeground(),Ft.preventDefault(),Ft.type!=="mouse"&&this.div.focus(),Lt(this,g,xr).call(this,Ft.offsetX,Ft.offsetY))}canvasPointermove(Ft){Ft.preventDefault(),Lt(this,E,Bi).call(this,Ft.offsetX,Ft.offsetY)}canvasPointerup(Ft){Ft.preventDefault(),Lt(this,it,$i).call(this,Ft)}canvasPointerleave(Ft){Lt(this,it,$i).call(this,Ft)}get isResizable(){return!this.isEmpty()&&ot(this,A)}render(){if(this.div)return this.div;let Ft,Ut;this.width&&(Ft=this.x,Ut=this.y),super.render(),At.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then(Jt=>{var Bt;return(Bt=this.div)==null?void 0:Bt.setAttribute("aria-label",Jt)});const[Vt,Wt,Yt,re]=Lt(this,$,Ar).call(this);if(this.setAt(Vt,Wt,0,0),this.setDims(Yt,re),Lt(this,X,Fn).call(this),this.width){const[Jt,Bt]=this.parentDimensions;this.setAspectRatio(this.width*Jt,this.height*Bt),this.setAt(Ft*Jt,Ut*Bt,this.width*Jt,this.height*Bt),Ht(this,d,!0),Lt(this,H,Ke).call(this),this.setDims(this.width*Jt,this.height*Bt),Lt(this,B,Ne).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return Lt(this,j,En).call(this),this.div}setDimensions(Ft,Ut){const Vt=Math.round(Ft),Wt=Math.round(Ut);if(ot(this,C)===Vt&&ot(this,p)===Wt)return;Ht(this,C,Vt),Ht(this,p,Wt),this.canvas.style.visibility="hidden";const[Yt,re]=this.parentDimensions;this.width=Ft/Yt,this.height=Ut/re,this.fixAndSetPosition(),ot(this,A)&&Lt(this,z,ji).call(this,Ft,Ut),Lt(this,H,Ke).call(this),Lt(this,B,Ne).call(this),this.canvas.style.visibility="visible",this.fixDims()}static deserialize(Ft,Ut,Vt){var bt,Pt,It;if(Ft instanceof $t.InkAnnotationElement)return null;const Wt=super.deserialize(Ft,Ut,Vt);Wt.thickness=Ft.thickness,Wt.color=ft.Util.makeHexColor(...Ft.color),Wt.opacity=Ft.opacity;const[Yt,re]=Wt.pageDimensions,Jt=Wt.width*Yt,Bt=Wt.height*re,Xt=Wt.parentScale,jt=Ft.thickness/2;Ht(Wt,A,!0),Ht(Wt,C,Math.round(Jt)),Ht(Wt,p,Math.round(Bt));const{paths:mt,rect:rt,rotation:ht}=Ft;for(let{bezier:Nt}of mt){Nt=Lt(bt=Ct,lt,Pr).call(bt,Nt,rt,ht);const Kt=[];Wt.paths.push(Kt);let Qt=Xt*(Nt[0]-jt),ne=Xt*(Nt[1]-jt);for(let te=2,oe=Nt.length;te{this.thickness=Ft,Lt(this,St,Ye).call(this)},undo:()=>{this.thickness=Ut,Lt(this,St,Ye).call(this)},mustExec:!0,type:ft.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})},l=new WeakSet,wr=function(Ft){const Ut=this.color;this.addCommands({cmd:()=>{this.color=Ft,Lt(this,B,Ne).call(this)},undo:()=>{this.color=Ut,Lt(this,B,Ne).call(this)},mustExec:!0,type:ft.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})},N=new WeakSet,Sr=function(Ft){Ft/=100;const Ut=this.opacity;this.addCommands({cmd:()=>{this.opacity=Ft,Lt(this,B,Ne).call(this)},undo:()=>{this.opacity=Ut,Lt(this,B,Ne).call(this)},mustExec:!0,type:ft.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})},$=new WeakSet,Ar=function(){const{parentRotation:Ft,parentDimensions:[Ut,Vt]}=this;switch(Ft){case 90:return[0,Vt,Vt,Ut];case 180:return[Ut,Vt,Ut,Vt];case 270:return[Ut,0,Vt,Ut];default:return[0,0,Ut,Vt]}},R=new WeakSet,Ni=function(){const{ctx:Ft,color:Ut,opacity:Vt,thickness:Wt,parentScale:Yt,scaleFactor:re}=this;Ft.lineWidth=Wt*Yt/re,Ft.lineCap="round",Ft.lineJoin="round",Ft.miterLimit=10,Ft.strokeStyle=`${Ut}${(0,M.opacityToHex)(Vt)}`},g=new WeakSet,xr=function(Ft,Ut){this.canvas.addEventListener("contextmenu",vt.noContextMenu),this.canvas.addEventListener("pointerleave",ot(this,t)),this.canvas.addEventListener("pointermove",ot(this,L)),this.canvas.addEventListener("pointerup",ot(this,e)),this.canvas.removeEventListener("pointerdown",ot(this,a)),this.isEditing=!0,ot(this,d)||(Ht(this,d,!0),Lt(this,H,Ke).call(this),this.thickness||(this.thickness=Ct._defaultThickness),this.color||(this.color=Ct._defaultColor||At.AnnotationEditor._defaultLineColor),this.opacity??(this.opacity=Ct._defaultOpacity)),this.currentPath.push([Ft,Ut]),Ht(this,T,!1),Lt(this,R,Ni).call(this),Ht(this,b,()=>{Lt(this,c,kr).call(this),ot(this,b)&&window.requestAnimationFrame(ot(this,b))}),window.requestAnimationFrame(ot(this,b))},E=new WeakSet,Bi=function(Ft,Ut){const[Vt,Wt]=this.currentPath.at(-1);if(this.currentPath.length>1&&Ft===Vt&&Ut===Wt)return;const Yt=this.currentPath;let re=ot(this,v);if(Yt.push([Ft,Ut]),Ht(this,T,!0),Yt.length<=2){re.moveTo(...Yt[0]),re.lineTo(Ft,Ut);return}Yt.length===3&&(Ht(this,v,re=new Path2D),re.moveTo(...Yt[0])),Lt(this,h,Tr).call(this,re,...Yt.at(-3),...Yt.at(-2),Ft,Ut)},q=new WeakSet,vr=function(){if(this.currentPath.length===0)return;const Ft=this.currentPath.at(-1);ot(this,v).lineTo(...Ft)},w=new WeakSet,Cr=function(Ft,Ut){Ht(this,b,null),Ft=Math.min(Math.max(Ft,0),this.canvas.width),Ut=Math.min(Math.max(Ut,0),this.canvas.height),Lt(this,E,Bi).call(this,Ft,Ut),Lt(this,q,vr).call(this);let Vt;if(this.currentPath.length!==1)Vt=Lt(this,k,Fr).call(this);else{const Bt=[Ft,Ut];Vt=[[Bt,Bt.slice(),Bt.slice(),Bt]]}const Wt=ot(this,v),Yt=this.currentPath;this.currentPath=[],Ht(this,v,new Path2D);const re=()=>{this.allRawPaths.push(Yt),this.paths.push(Vt),this.bezierPath2D.push(Wt),this.rebuild()},Jt=()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),this.paths.length===0?this.remove():(this.canvas||(Lt(this,X,Fn).call(this),Lt(this,j,En).call(this)),Lt(this,St,Ye).call(this))};this.addCommands({cmd:re,undo:Jt,mustExec:!0})},c=new WeakSet,kr=function(){if(!ot(this,T))return;Ht(this,T,!1);const Ft=Math.ceil(this.thickness*this.parentScale),Ut=this.currentPath.slice(-3),Vt=Ut.map(re=>re[0]),Wt=Ut.map(re=>re[1]);Math.min(...Vt)-Ft,Math.max(...Vt)+Ft,Math.min(...Wt)-Ft,Math.max(...Wt)+Ft;const{ctx:Yt}=this;Yt.save(),Yt.clearRect(0,0,this.canvas.width,this.canvas.height);for(const re of this.bezierPath2D)Yt.stroke(re);Yt.stroke(ot(this,v)),Yt.restore()},h=new WeakSet,Tr=function(Ft,Ut,Vt,Wt,Yt,re,Jt){const Bt=(Ut+Wt)/2,Xt=(Vt+Yt)/2,jt=(Wt+re)/2,mt=(Yt+Jt)/2;Ft.bezierCurveTo(Bt+2*(Wt-Bt)/3,Xt+2*(Yt-Xt)/3,jt+2*(Wt-jt)/3,mt+2*(Yt-mt)/3,jt,mt)},k=new WeakSet,Fr=function(){const Ft=this.currentPath;if(Ft.length<=2)return[[Ft[0],Ft[0],Ft.at(-1),Ft.at(-1)]];const Ut=[];let Vt,[Wt,Yt]=Ft[0];for(Vt=1;Vt{this.canvas.removeEventListener("contextmenu",vt.noContextMenu)},10),Lt(this,w,Cr).call(this,Ft.offsetX,Ft.offsetY),this.addToAnnotationStorage(),this.setInBackground()},X=new WeakSet,Fn=function(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",At.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then(Ft=>{var Ut;return(Ut=this.canvas)==null?void 0:Ut.setAttribute("aria-label",Ft)}),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")},j=new WeakSet,En=function(){Ht(this,i,new ResizeObserver(Ft=>{const Ut=Ft[0].contentRect;Ut.width&&Ut.height&&this.setDimensions(Ut.width,Ut.height)})),ot(this,i).observe(this.div)},H=new WeakSet,Ke=function(){if(!ot(this,d))return;const[Ft,Ut]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*Ft),this.canvas.height=Math.ceil(this.height*Ut),Lt(this,G,Pn).call(this)},z=new WeakSet,ji=function(Ft,Ut){const Vt=Lt(this,xt,On).call(this),Wt=(Ft-Vt)/ot(this,_),Yt=(Ut-Vt)/ot(this,n);this.scaleFactor=Math.min(Wt,Yt)},G=new WeakSet,Pn=function(){const Ft=Lt(this,xt,On).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+Ft,this.translationY*this.scaleFactor+Ft)},et=new WeakSet,Er=function(Ft){const Ut=new Path2D;for(let Vt=0,Wt=Ft.length;Vt{var Z,n,_,L,t,e,a,v,A,T,d,un,C,dn,b,_n,u,Xi,y,_r,U,Ir,P,qi,o,In,x,Mr;Object.defineProperty(dt,"__esModule",{value:!0}),dt.StampEditor=void 0;var ft=Mt(1),At=Mt(4),$t=Mt(6),vt=Mt(29);const D=class D extends At.AnnotationEditor{constructor(w){super({...w,name:"stampEditor"});_t(this,d);_t(this,C);_t(this,b);_t(this,u);_t(this,y);_t(this,U);_t(this,P);_t(this,o);_t(this,x);_t(this,Z,null);_t(this,n,null);_t(this,_,null);_t(this,L,null);_t(this,t,null);_t(this,e,null);_t(this,a,null);_t(this,v,null);_t(this,A,!1);_t(this,T,!1);Ht(this,L,w.bitmapUrl),Ht(this,t,w.bitmapFile)}static initialize(w){At.AnnotationEditor.initialize(w)}static get supportedTypes(){const w=["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"];return(0,ft.shadow)(this,"supportedTypes",w.map(s=>`image/${s}`))}static get supportedTypesStr(){return(0,ft.shadow)(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(w){return this.supportedTypes.includes(w)}static paste(w,s){s.pasteEditor(ft.AnnotationEditorType.STAMP,{bitmapFile:w.getAsFile()})}remove(){var w,s;ot(this,n)&&(Ht(this,Z,null),this._uiManager.imageManager.deleteId(ot(this,n)),(w=ot(this,e))==null||w.remove(),Ht(this,e,null),(s=ot(this,a))==null||s.disconnect(),Ht(this,a,null)),super.remove()}rebuild(){if(!this.parent){ot(this,n)&&Lt(this,b,_n).call(this);return}super.rebuild(),this.div!==null&&(ot(this,n)&&Lt(this,b,_n).call(this),this.isAttachedToDOM||this.parent.add(this))}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(ot(this,_)||ot(this,Z)||ot(this,L)||ot(this,t))}get isResizable(){return!0}render(){if(this.div)return this.div;let w,s;if(this.width&&(w=this.x,s=this.y),super.render(),this.div.hidden=!0,ot(this,Z)?Lt(this,u,Xi).call(this):Lt(this,b,_n).call(this),this.width){const[c,S]=this.parentDimensions;this.setAt(w*c,s*S,this.width*c,this.height*S)}return this.div}static deserialize(w,s,c){if(w instanceof vt.StampAnnotationElement)return null;const S=super.deserialize(w,s,c),{rect:h,bitmapUrl:m,bitmapId:k,isSvg:I,accessibilityData:B}=w;k&&c.imageManager.isValidId(k)?Ht(S,n,k):Ht(S,L,m),Ht(S,A,I);const[tt,it]=S.pageDimensions;return S.width=(h[2]-h[0])/tt,S.height=(h[3]-h[1])/it,B&&(S.altTextData=B),S}serialize(w=!1,s=null){if(this.isEmpty())return null;const c={annotationType:ft.AnnotationEditorType.STAMP,bitmapId:ot(this,n),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:ot(this,A),structTreeParentId:this._structTreeParentId};if(w)return c.bitmapUrl=Lt(this,o,In).call(this,!0),c.accessibilityData=this.altTextData,c;const{decorative:S,altText:h}=this.altTextData;if(!S&&h&&(c.accessibilityData={type:"Figure",alt:h}),s===null)return c;s.stamps||(s.stamps=new Map);const m=ot(this,A)?(c.rect[2]-c.rect[0])*(c.rect[3]-c.rect[1]):null;if(!s.stamps.has(ot(this,n)))s.stamps.set(ot(this,n),{area:m,serialized:c}),c.bitmap=Lt(this,o,In).call(this,!1);else if(ot(this,A)){const k=s.stamps.get(ot(this,n));m>k.area&&(k.area=m,k.serialized.bitmap.close(),k.serialized.bitmap=Lt(this,o,In).call(this,!1))}return c}};Z=new WeakMap,n=new WeakMap,_=new WeakMap,L=new WeakMap,t=new WeakMap,e=new WeakMap,a=new WeakMap,v=new WeakMap,A=new WeakMap,T=new WeakMap,d=new WeakSet,un=function(w,s=!1){if(!w){this.remove();return}Ht(this,Z,w.bitmap),s||(Ht(this,n,w.id),Ht(this,A,w.isSvg)),Lt(this,u,Xi).call(this)},C=new WeakSet,dn=function(){Ht(this,_,null),this._uiManager.enableWaiting(!1),ot(this,e)&&this.div.focus()},b=new WeakSet,_n=function(){if(ot(this,n)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(ot(this,n)).then(s=>Lt(this,d,un).call(this,s,!0)).finally(()=>Lt(this,C,dn).call(this));return}if(ot(this,L)){const s=ot(this,L);Ht(this,L,null),this._uiManager.enableWaiting(!0),Ht(this,_,this._uiManager.imageManager.getFromUrl(s).then(c=>Lt(this,d,un).call(this,c)).finally(()=>Lt(this,C,dn).call(this)));return}if(ot(this,t)){const s=ot(this,t);Ht(this,t,null),this._uiManager.enableWaiting(!0),Ht(this,_,this._uiManager.imageManager.getFromFile(s).then(c=>Lt(this,d,un).call(this,c)).finally(()=>Lt(this,C,dn).call(this)));return}const w=document.createElement("input");w.type="file",w.accept=D.supportedTypesStr,Ht(this,_,new Promise(s=>{w.addEventListener("change",async()=>{if(!w.files||w.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const c=await this._uiManager.imageManager.getFromFile(w.files[0]);Lt(this,d,un).call(this,c)}s()}),w.addEventListener("cancel",()=>{this.remove(),s()})}).finally(()=>Lt(this,C,dn).call(this))),w.click()},u=new WeakSet,Xi=function(){const{div:w}=this;let{width:s,height:c}=ot(this,Z);const[S,h]=this.pageDimensions,m=.75;if(this.width)s=this.width*S,c=this.height*h;else if(s>m*S||c>m*h){const tt=Math.min(m*S/s,m*h/c);s*=tt,c*=tt}const[k,I]=this.parentDimensions;this.setDims(s*k/S,c*I/h),this._uiManager.enableWaiting(!1);const B=Ht(this,e,document.createElement("canvas"));w.append(B),w.hidden=!1,Lt(this,P,qi).call(this,s,c),Lt(this,x,Mr).call(this),ot(this,T)||(this.parent.addUndoableEditor(this),Ht(this,T,!0)),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()},y=new WeakSet,_r=function(w,s){var m;const[c,S]=this.parentDimensions;this.width=w/c,this.height=s/S,this.setDims(w,s),(m=this._initialOptions)!=null&&m.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,ot(this,v)!==null&&clearTimeout(ot(this,v)),Ht(this,v,setTimeout(()=>{Ht(this,v,null),Lt(this,P,qi).call(this,w,s)},200))},U=new WeakSet,Ir=function(w,s){const{width:c,height:S}=ot(this,Z);let h=c,m=S,k=ot(this,Z);for(;h>2*w||m>2*s;){const I=h,B=m;h>2*w&&(h=h>=16384?Math.floor(h/2)-1:Math.ceil(h/2)),m>2*s&&(m=m>=16384?Math.floor(m/2)-1:Math.ceil(m/2));const tt=new OffscreenCanvas(h,m);tt.getContext("2d").drawImage(k,0,0,I,B,0,0,h,m),k=tt.transferToImageBitmap()}return k},P=new WeakSet,qi=function(w,s){w=Math.ceil(w),s=Math.ceil(s);const c=ot(this,e);if(!c||c.width===w&&c.height===s)return;c.width=w,c.height=s;const S=ot(this,A)?ot(this,Z):Lt(this,U,Ir).call(this,w,s),h=c.getContext("2d");h.filter=this._uiManager.hcmFilter,h.drawImage(S,0,0,S.width,S.height,0,0,w,s)},o=new WeakSet,In=function(w){if(w){if(ot(this,A)){const S=this._uiManager.imageManager.getSvgUrl(ot(this,n));if(S)return S}const s=document.createElement("canvas");return{width:s.width,height:s.height}=ot(this,Z),s.getContext("2d").drawImage(ot(this,Z),0,0),s.toDataURL()}if(ot(this,A)){const[s,c]=this.pageDimensions,S=Math.round(this.width*s*$t.PixelsPerInch.PDF_TO_CSS_UNITS),h=Math.round(this.height*c*$t.PixelsPerInch.PDF_TO_CSS_UNITS),m=new OffscreenCanvas(S,h);return m.getContext("2d").drawImage(ot(this,Z),0,0,ot(this,Z).width,ot(this,Z).height,0,0,S,h),m.transferToImageBitmap()}return structuredClone(ot(this,Z))},x=new WeakSet,Mr=function(){Ht(this,a,new ResizeObserver(w=>{const s=w[0].contentRect;s.width&&s.height&&Lt(this,y,_r).call(this,s.width,s.height)})),ot(this,a).observe(this.div)},ye(D,"_type","stamp");let M=D;dt.StampEditor=M}],__webpack_module_cache__={};function __w_pdfjs_require__(Ot){var dt=__webpack_module_cache__[Ot];if(dt!==void 0)return dt.exports;var Mt=__webpack_module_cache__[Ot]={exports:{}};return __webpack_modules__[Ot](Mt,Mt.exports,__w_pdfjs_require__),Mt.exports}var __webpack_exports__={};return(()=>{var Ot=__webpack_exports__;Object.defineProperty(Ot,"__esModule",{value:!0}),Object.defineProperty(Ot,"AbortException",{enumerable:!0,get:function(){return dt.AbortException}}),Object.defineProperty(Ot,"AnnotationEditorLayer",{enumerable:!0,get:function(){return $t.AnnotationEditorLayer}}),Object.defineProperty(Ot,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return dt.AnnotationEditorParamsType}}),Object.defineProperty(Ot,"AnnotationEditorType",{enumerable:!0,get:function(){return dt.AnnotationEditorType}}),Object.defineProperty(Ot,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return vt.AnnotationEditorUIManager}}),Object.defineProperty(Ot,"AnnotationLayer",{enumerable:!0,get:function(){return M.AnnotationLayer}}),Object.defineProperty(Ot,"AnnotationMode",{enumerable:!0,get:function(){return dt.AnnotationMode}}),Object.defineProperty(Ot,"CMapCompressionType",{enumerable:!0,get:function(){return dt.CMapCompressionType}}),Object.defineProperty(Ot,"DOMSVGFactory",{enumerable:!0,get:function(){return ft.DOMSVGFactory}}),Object.defineProperty(Ot,"FeatureTest",{enumerable:!0,get:function(){return dt.FeatureTest}}),Object.defineProperty(Ot,"GlobalWorkerOptions",{enumerable:!0,get:function(){return Z.GlobalWorkerOptions}}),Object.defineProperty(Ot,"ImageKind",{enumerable:!0,get:function(){return dt.ImageKind}}),Object.defineProperty(Ot,"InvalidPDFException",{enumerable:!0,get:function(){return dt.InvalidPDFException}}),Object.defineProperty(Ot,"MissingPDFException",{enumerable:!0,get:function(){return dt.MissingPDFException}}),Object.defineProperty(Ot,"OPS",{enumerable:!0,get:function(){return dt.OPS}}),Object.defineProperty(Ot,"PDFDataRangeTransport",{enumerable:!0,get:function(){return Mt.PDFDataRangeTransport}}),Object.defineProperty(Ot,"PDFDateString",{enumerable:!0,get:function(){return ft.PDFDateString}}),Object.defineProperty(Ot,"PDFWorker",{enumerable:!0,get:function(){return Mt.PDFWorker}}),Object.defineProperty(Ot,"PasswordResponses",{enumerable:!0,get:function(){return dt.PasswordResponses}}),Object.defineProperty(Ot,"PermissionFlag",{enumerable:!0,get:function(){return dt.PermissionFlag}}),Object.defineProperty(Ot,"PixelsPerInch",{enumerable:!0,get:function(){return ft.PixelsPerInch}}),Object.defineProperty(Ot,"PromiseCapability",{enumerable:!0,get:function(){return dt.PromiseCapability}}),Object.defineProperty(Ot,"RenderingCancelledException",{enumerable:!0,get:function(){return ft.RenderingCancelledException}}),Object.defineProperty(Ot,"SVGGraphics",{enumerable:!0,get:function(){return Mt.SVGGraphics}}),Object.defineProperty(Ot,"UnexpectedResponseException",{enumerable:!0,get:function(){return dt.UnexpectedResponseException}}),Object.defineProperty(Ot,"Util",{enumerable:!0,get:function(){return dt.Util}}),Object.defineProperty(Ot,"VerbosityLevel",{enumerable:!0,get:function(){return dt.VerbosityLevel}}),Object.defineProperty(Ot,"XfaLayer",{enumerable:!0,get:function(){return n.XfaLayer}}),Object.defineProperty(Ot,"build",{enumerable:!0,get:function(){return Mt.build}}),Object.defineProperty(Ot,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return dt.createValidAbsoluteUrl}}),Object.defineProperty(Ot,"getDocument",{enumerable:!0,get:function(){return Mt.getDocument}}),Object.defineProperty(Ot,"getFilenameFromUrl",{enumerable:!0,get:function(){return ft.getFilenameFromUrl}}),Object.defineProperty(Ot,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return ft.getPdfFilenameFromUrl}}),Object.defineProperty(Ot,"getXfaPageViewport",{enumerable:!0,get:function(){return ft.getXfaPageViewport}}),Object.defineProperty(Ot,"isDataScheme",{enumerable:!0,get:function(){return ft.isDataScheme}}),Object.defineProperty(Ot,"isPdfFile",{enumerable:!0,get:function(){return ft.isPdfFile}}),Object.defineProperty(Ot,"loadScript",{enumerable:!0,get:function(){return ft.loadScript}}),Object.defineProperty(Ot,"noContextMenu",{enumerable:!0,get:function(){return ft.noContextMenu}}),Object.defineProperty(Ot,"normalizeUnicode",{enumerable:!0,get:function(){return dt.normalizeUnicode}}),Object.defineProperty(Ot,"renderTextLayer",{enumerable:!0,get:function(){return At.renderTextLayer}}),Object.defineProperty(Ot,"setLayerDimensions",{enumerable:!0,get:function(){return ft.setLayerDimensions}}),Object.defineProperty(Ot,"shadow",{enumerable:!0,get:function(){return dt.shadow}}),Object.defineProperty(Ot,"updateTextLayer",{enumerable:!0,get:function(){return At.updateTextLayer}}),Object.defineProperty(Ot,"version",{enumerable:!0,get:function(){return Mt.version}});var dt=__w_pdfjs_require__(1),Mt=__w_pdfjs_require__(2),ft=__w_pdfjs_require__(6),At=__w_pdfjs_require__(26),$t=__w_pdfjs_require__(27),vt=__w_pdfjs_require__(5),M=__w_pdfjs_require__(29),Z=__w_pdfjs_require__(14),n=__w_pdfjs_require__(32)})(),__webpack_exports__})())})(pdf$1);var pdfExports=pdf$1.exports;const pdf=getDefaultExportFromCjs$1(pdfExports),pdfjsModule=_mergeNamespaces({__proto__:null,default:pdf},[pdfExports]),pdfjs="default"in pdfjsModule?pdf:pdfjsModule;var __spreadArray=function(Ot,dt,Mt){if(Mt||arguments.length===2)for(var ft=0,At=dt.length,$t;ft{invariant(this.pdfDocument,"PDF document not loaded."),invariant(dt,"Destination is not specified."),typeof dt=="string"?this.pdfDocument.getDestination(dt).then(Mt):Array.isArray(dt)?Mt(dt):dt.then(Mt)}).then(Mt=>{invariant(Array.isArray(Mt),`"${Mt}" is not a valid destination array.`);const ft=Mt[0];new Promise(At=>{invariant(this.pdfDocument,"PDF document not loaded."),ft instanceof Object?this.pdfDocument.getPageIndex(ft).then($t=>{At($t)}).catch(()=>{invariant(!1,`"${ft}" is not a valid page reference.`)}):typeof ft=="number"?At(ft):invariant(!1,`"${ft}" is not a valid destination reference.`)}).then(At=>{const $t=At+1;invariant(this.pdfViewer,"PDF viewer is not initialized."),invariant($t>=1&&$t<=this.pagesCount,`"${$t}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({dest:Mt,pageIndex:At,pageNumber:$t})})})}navigateTo(dt){this.goToDestination(dt)}goToPage(dt){const Mt=dt-1;invariant(this.pdfViewer,"PDF viewer is not initialized."),invariant(dt>=1&&dt<=this.pagesCount,`"${dt}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({pageIndex:Mt,pageNumber:dt})}addLinkAttributes(dt,Mt,ft){dt.href=Mt,dt.rel=this.externalLinkRel||DEFAULT_LINK_REL,dt.target=ft?"_blank":this.externalLinkTarget||""}getDestinationHash(){return"#"}getAnchorUrl(){return"#"}setHash(){}executeNamedAction(){}cachePageRef(){}isPageVisible(){return!0}isPageCached(){return!0}executeSetOCGState(){}}const PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},isBrowser=typeof document<"u",isLocalFileSystem=isBrowser&&window.location.protocol==="file:";function isDefined(Ot){return typeof Ot<"u"}function isProvided(Ot){return isDefined(Ot)&&Ot!==null}function isString(Ot){return typeof Ot=="string"}function isArrayBuffer(Ot){return Ot instanceof ArrayBuffer}function isBlob(Ot){return invariant(isBrowser,"isBlob can only be used in a browser environment"),Ot instanceof Blob}function isDataURI(Ot){return isString(Ot)&&/^data:/.test(Ot)}function dataURItoByteString(Ot){invariant(isDataURI(Ot),"Invalid data URI.");const[dt="",Mt=""]=Ot.split(",");return dt.split(";").indexOf("base64")!==-1?atob(Mt):unescape(Mt)}function getDevicePixelRatio(){return isBrowser&&window.devicePixelRatio||1}const allowFileAccessFromFilesTip="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function displayCORSWarning(){warning(!isLocalFileSystem,`Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ${allowFileAccessFromFilesTip}`)}function displayWorkerWarning(){warning(!isLocalFileSystem,`Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ${allowFileAccessFromFilesTip}`)}function cancelRunningTask(Ot){Ot&&Ot.cancel&&Ot.cancel()}function makePageCallback(Ot,dt){return Object.defineProperty(Ot,"width",{get(){return this.view[2]*dt},configurable:!0}),Object.defineProperty(Ot,"height",{get(){return this.view[3]*dt},configurable:!0}),Object.defineProperty(Ot,"originalWidth",{get(){return this.view[2]},configurable:!0}),Object.defineProperty(Ot,"originalHeight",{get(){return this.view[3]},configurable:!0}),Ot}function isCancelException(Ot){return Ot.name==="RenderingCancelledException"}function loadFromFile(Ot){return new Promise((dt,Mt)=>{const ft=new FileReader;ft.onload=()=>{if(!ft.result)return Mt(new Error("Error while reading a file."));dt(ft.result)},ft.onerror=At=>{if(!At.target)return Mt(new Error("Error while reading a file."));const{error:$t}=At.target;if(!$t)return Mt(new Error("Error while reading a file."));switch($t.code){case $t.NOT_FOUND_ERR:return Mt(new Error("Error while reading a file: File not found."));case $t.SECURITY_ERR:return Mt(new Error("Error while reading a file: Security error."));case $t.ABORT_ERR:return Mt(new Error("Error while reading a file: Aborted."));default:return Mt(new Error("Error while reading a file."))}},ft.readAsArrayBuffer(Ot)})}function reducer(Ot,dt){switch(dt.type){case"RESOLVE":return{value:dt.value,error:void 0};case"REJECT":return{value:!1,error:dt.error};case"RESET":return{value:void 0,error:void 0};default:return Ot}}function useResolver(){return reactExports.useReducer(reducer,{value:void 0,error:void 0})}const{PDFDataRangeTransport:PDFDataRangeTransport$1}=pdfjs,eventProps=(()=>{const Ot={};return allEvents.forEach(dt=>{Ot[dt]=PropTypes.func}),Ot})(),isTypedArray=PropTypes.oneOfType([PropTypes.instanceOf(Int8Array),PropTypes.instanceOf(Uint8Array),PropTypes.instanceOf(Uint8ClampedArray),PropTypes.instanceOf(Int16Array),PropTypes.instanceOf(Uint16Array),PropTypes.instanceOf(Int32Array),PropTypes.instanceOf(Uint32Array),PropTypes.instanceOf(Float32Array),PropTypes.instanceOf(Float64Array)]),fileTypes=[PropTypes.string,PropTypes.instanceOf(ArrayBuffer),PropTypes.shape({data:PropTypes.oneOfType([PropTypes.string,PropTypes.instanceOf(ArrayBuffer),PropTypes.arrayOf(PropTypes.number.isRequired),isTypedArray]).isRequired}),PropTypes.shape({range:PropTypes.instanceOf(PDFDataRangeTransport$1).isRequired}),PropTypes.shape({url:PropTypes.string.isRequired})];typeof Blob<"u"&&fileTypes.push(PropTypes.instanceOf(Blob));const isClassName=PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.string)]),isFile=PropTypes.oneOfType(fileTypes);PropTypes.instanceOf(LinkService);PropTypes.oneOf(["_self","_blank","_parent","_top"]);PropTypes.shape({commonObjs:PropTypes.shape({}).isRequired,getAnnotations:PropTypes.func.isRequired,getTextContent:PropTypes.func.isRequired,getViewport:PropTypes.func.isRequired,render:PropTypes.func.isRequired});const isPageIndex=function Ot(dt,Mt,ft){const{[Mt]:At,pageNumber:$t,pdf:vt}=dt;if(!isDefined(vt))return null;if(isDefined(At)){if(typeof At!="number")return new Error(`\`${Mt}\` of type \`${typeof At}\` supplied to \`${ft}\`, expected \`number\`.`);if(At<0)return new Error(`Expected \`${Mt}\` to be greater or equal to 0.`);const{numPages:M}=vt;if(At+1>M)return new Error(`Expected \`${Mt}\` to be less or equal to ${M-1}.`)}else if(!isDefined($t))return new Error(`\`${Mt}\` not supplied. Either pageIndex or pageNumber must be supplied to \`${ft}\`.`);return null},isPageNumber=function Ot(dt,Mt,ft){const{[Mt]:At,pageIndex:$t,pdf:vt}=dt;if(!isDefined(vt))return null;if(isDefined(At)){if(typeof At!="number")return new Error(`\`${Mt}\` of type \`${typeof At}\` supplied to \`${ft}\`, expected \`number\`.`);if(At<1)return new Error(`Expected \`${Mt}\` to be greater or equal to 1.`);const{numPages:M}=vt;if(At>M)return new Error(`Expected \`${Mt}\` to be less or equal to ${M}.`)}else if(!isDefined($t))return new Error(`\`${Mt}\` not supplied. Either pageIndex or pageNumber must be supplied to \`${ft}\`.`);return null},isPdf=PropTypes.oneOfType([PropTypes.any,PropTypes.oneOf([!1])]),isRef=PropTypes.oneOfType([PropTypes.func,PropTypes.exact({current:PropTypes.any})]),isRenderMode=PropTypes.oneOf(["canvas","custom","none","svg"]),isRotate=PropTypes.oneOf([0,90,180,270]);var __awaiter=function(Ot,dt,Mt,ft){function At($t){return $t instanceof Mt?$t:new Mt(function(vt){vt($t)})}return new(Mt||(Mt=Promise))(function($t,vt){function M(_){try{n(ft.next(_))}catch(L){vt(L)}}function Z(_){try{n(ft.throw(_))}catch(L){vt(L)}}function n(_){_.done?$t(_.value):At(_.value).then(M,Z)}n((ft=ft.apply(Ot,dt||[])).next())})},__rest$1=function(Ot,dt){var Mt={};for(var ft in Ot)Object.prototype.hasOwnProperty.call(Ot,ft)&&dt.indexOf(ft)<0&&(Mt[ft]=Ot[ft]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,ft=Object.getOwnPropertySymbols(Ot);At{switch(dt){case PasswordResponses.NEED_PASSWORD:{const Mt=prompt("Enter the password to open this PDF file.");Ot(Mt);break}case PasswordResponses.INCORRECT_PASSWORD:{const Mt=prompt("Invalid password. Please try again.");Ot(Mt);break}}};function isParameterObject(Ot){return typeof Ot=="object"&&Ot!==null&&("data"in Ot||"range"in Ot||"url"in Ot)}const Document=reactExports.forwardRef(function Ot(dt,Mt){var{children:ft,className:At,error:$t="Failed to load PDF file.",externalLinkRel:vt,externalLinkTarget:M,file:Z,inputRef:n,imageResourcesPath:_,loading:L="Loading PDF…",noData:t="No PDF file specified.",onItemClick:e,onLoadError:a,onLoadProgress:v,onLoadSuccess:A,onPassword:T=defaultOnPassword,onSourceError:d,onSourceSuccess:i,options:C,renderMode:p,rotate:b}=dt,F=__rest$1(dt,["children","className","error","externalLinkRel","externalLinkTarget","file","inputRef","imageResourcesPath","loading","noData","onItemClick","onLoadError","onLoadProgress","onLoadSuccess","onPassword","onSourceError","onSourceSuccess","options","renderMode","rotate"]);const[u,l]=useResolver(),{value:y,error:N}=u,[U,$]=useResolver(),{value:P,error:R}=U,o=reactExports.useRef(new LinkService),g=reactExports.useRef([]),x=reactExports.useRef(),E=reactExports.useRef();reactExports.useEffect(()=>{Z&&Z!==x.current&&isParameterObject(Z)&&(warning(!dequal(Z,x.current),`File prop passed to changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.`),x.current=Z)},[Z]),reactExports.useEffect(()=>{C&&C!==E.current&&(warning(!dequal(C,E.current),`Options prop passed to changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.`),E.current=C)},[C]);const D=reactExports.useRef({scrollPageIntoView:J=>{const{dest:j,pageNumber:O,pageIndex:H=O-1}=J;if(e){e({dest:j,pageIndex:H,pageNumber:O});return}const V=g.current[H];if(V){V.scrollIntoView();return}warning(!1,`An internal link leading to page ${O} was clicked, but neither was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to and handle navigating by yourself or ensure that all pages are rendered within .`)}});reactExports.useImperativeHandle(Mt,()=>({linkService:o,pages:g,viewer:D}),[]);function q(){i&&i()}function W(){N&&(warning(!1,N.toString()),d&&d(N))}function w(){l({type:"RESET"})}reactExports.useEffect(w,[Z,l]);const s=reactExports.useCallback(()=>__awaiter(this,void 0,void 0,function*(){if(!Z)return null;if(typeof Z=="string")return isDataURI(Z)?{data:dataURItoByteString(Z)}:(displayCORSWarning(),{url:Z});if(Z instanceof PDFDataRangeTransport)return{range:Z};if(isArrayBuffer(Z))return{data:Z};if(isBrowser&&isBlob(Z))return{data:yield loadFromFile(Z)};if(invariant(typeof Z=="object","Invalid parameter in file, need either Uint8Array, string or a parameter object"),invariant(isParameterObject(Z),"Invalid parameter object: need either .data, .range or .url"),"url"in Z&&typeof Z.url=="string"){if(isDataURI(Z.url)){const{url:J}=Z,j=__rest$1(Z,["url"]),O=dataURItoByteString(J);return Object.assign({data:O},j)}displayCORSWarning()}return Z}),[Z]);reactExports.useEffect(()=>{const J=makeCancellablePromise(s());return J.promise.then(j=>{l({type:"RESOLVE",value:j})}).catch(j=>{l({type:"REJECT",error:j})}),()=>{cancelRunningTask(J)}},[s,l]),reactExports.useEffect(()=>{if(!(typeof y>"u")){if(y===!1){W();return}q()}},[y]);function c(){P&&(A&&A(P),g.current=new Array(P.numPages),o.current.setDocument(P))}function S(){R&&(warning(!1,R.toString()),a&&a(R))}function h(){$({type:"RESET"})}reactExports.useEffect(h,[$,y]);function m(){if(!y)return;const J=C?Object.assign(Object.assign({},y),C):y,j=pdfjs.getDocument(J);v&&(j.onProgress=v),T&&(j.onPassword=T);const O=j;return O.promise.then(H=>{$({type:"RESOLVE",value:H})}).catch(H=>{O.destroyed||$({type:"REJECT",error:H})}),()=>{O.destroy()}}reactExports.useEffect(m,[C,$,y]),reactExports.useEffect(()=>{if(!(typeof P>"u")){if(P===!1){S();return}c()}},[P]);function k(){o.current.setViewer(D.current),o.current.setExternalLinkRel(vt),o.current.setExternalLinkTarget(M)}reactExports.useEffect(k,[vt,M]);function I(J,j){g.current[J]=j}function B(J){delete g.current[J]}const tt=reactExports.useMemo(()=>({imageResourcesPath:_,linkService:o.current,onItemClick:e,pdf:P,registerPage:I,renderMode:p,rotate:b,unregisterPage:B}),[_,e,P,p,b]),it=reactExports.useMemo(()=>makeEventProps(F,()=>P),[F,P]);function st(){return jsx(DocumentContext.Provider,{value:tt,children:ft})}function X(){return Z?P==null?jsx(Message,{type:"loading",children:typeof L=="function"?L():L}):P===!1?jsx(Message,{type:"error",children:typeof $t=="function"?$t():$t}):st():jsx(Message,{type:"no-data",children:typeof t=="function"?t():t})}return jsx("div",{...Object.assign({className:clsx("react-pdf__Document",At),ref:n,style:{"--scale-factor":"1"}},it),children:X()})}),isFunctionOrNode$1=PropTypes.oneOfType([PropTypes.func,PropTypes.node]);Document.propTypes=Object.assign(Object.assign({},eventProps),{children:PropTypes.node,className:isClassName,error:isFunctionOrNode$1,externalLinkRel:PropTypes.string,externalLinkTarget:PropTypes.oneOf(["_self","_blank","_parent","_top"]),file:isFile,imageResourcesPath:PropTypes.string,inputRef:isRef,loading:isFunctionOrNode$1,noData:isFunctionOrNode$1,onItemClick:PropTypes.func,onLoadError:PropTypes.func,onLoadProgress:PropTypes.func,onLoadSuccess:PropTypes.func,onPassword:PropTypes.func,onSourceError:PropTypes.func,onSourceSuccess:PropTypes.func,options:PropTypes.shape({canvasFactory:PropTypes.any,canvasMaxAreaInBytes:PropTypes.number,cMapPacked:PropTypes.bool,CMapReaderFactory:PropTypes.any,cMapUrl:PropTypes.string,disableAutoFetch:PropTypes.bool,disableFontFace:PropTypes.bool,disableRange:PropTypes.bool,disableStream:PropTypes.bool,docBaseUrl:PropTypes.string,enableXfa:PropTypes.bool,filterFactory:PropTypes.any,fontExtraProperties:PropTypes.bool,httpHeaders:PropTypes.object,isEvalSupported:PropTypes.bool,isOffscreenCanvasSupported:PropTypes.bool,length:PropTypes.number,maxImageSize:PropTypes.number,ownerDocument:PropTypes.any,password:PropTypes.string,pdfBug:PropTypes.bool,rangeChunkSize:PropTypes.number,StandardFontDataFactory:PropTypes.any,standardFontDataUrl:PropTypes.string,stopAtErrors:PropTypes.bool,useSystemFonts:PropTypes.bool,useWorkerFetch:PropTypes.bool,verbosity:PropTypes.number,withCredentials:PropTypes.bool,worker:PropTypes.any}),rotate:PropTypes.number});const Document$1=Document;function useDocumentContext(){return reactExports.useContext(DocumentContext)}function mergeRefs(){for(var Ot=[],dt=0;dtgetAttributes(dt),[dt]),ft=reactExports.useMemo(()=>!isStructTreeNode(dt)||isStructTreeNodeWithOnlyContentChild(dt)?null:dt.children.map((At,$t)=>jsx(StructTreeItem,{node:At},$t)),[dt]);return jsx("span",{...Object.assign({className:Ot},Mt),children:ft})}function usePageContext(){return reactExports.useContext(PageContext)}function StructTree(){const Ot=usePageContext();invariant(Ot,"Unable to find Page context.");const{onGetStructTreeError:dt,onGetStructTreeSuccess:Mt}=Ot,[ft,At]=useResolver(),{value:$t,error:vt}=ft,{customTextRenderer:M,page:Z}=Ot;function n(){$t&&Mt&&Mt($t)}function _(){vt&&(warning(!1,vt.toString()),dt&&dt(vt))}function L(){At({type:"RESET"})}reactExports.useEffect(L,[At,Z]);function t(){if(M||!Z)return;const e=makeCancellablePromise(Z.getStructTree()),a=e;return e.promise.then(v=>{At({type:"RESOLVE",value:v})}).catch(v=>{At({type:"REJECT",error:v})}),()=>cancelRunningTask(a)}return reactExports.useEffect(t,[M,Z,At]),reactExports.useEffect(()=>{if($t!==void 0){if($t===!1){_();return}n()}},[$t]),$t?jsx(StructTreeItem,{className:"react-pdf__Page__structTree structTree",node:$t}):null}const ANNOTATION_MODE=pdfjs.AnnotationMode;function PageCanvas(Ot){const dt=usePageContext();invariant(dt,"Unable to find Page context.");const Mt=Object.assign(Object.assign({},dt),Ot),{_className:ft,canvasBackground:At,devicePixelRatio:$t=getDevicePixelRatio(),onRenderError:vt,onRenderSuccess:M,page:Z,renderForms:n,renderTextLayer:_,rotate:L,scale:t}=Mt,{canvasRef:e}=Ot;invariant(Z,"Attempted to render page canvas, but no page was specified.");const a=reactExports.useRef(null);function v(){Z&&M&&M(makePageCallback(Z,t))}function A(p){isCancelException(p)||(warning(!1,p.toString()),vt&&vt(p))}const T=reactExports.useMemo(()=>Z.getViewport({scale:t*$t,rotation:L}),[$t,Z,L,t]),d=reactExports.useMemo(()=>Z.getViewport({scale:t,rotation:L}),[Z,L,t]);function i(){if(!Z)return;Z.cleanup();const{current:p}=a;if(!p)return;p.width=T.width,p.height=T.height,p.style.width=`${Math.floor(d.width)}px`,p.style.height=`${Math.floor(d.height)}px`,p.style.visibility="hidden";const b={annotationMode:n?ANNOTATION_MODE.ENABLE_FORMS:ANNOTATION_MODE.ENABLE,canvasContext:p.getContext("2d",{alpha:!1}),viewport:T};At&&(b.background=At);const F=Z.render(b),u=F;return F.promise.then(()=>{p.style.visibility="",v()}).catch(A),()=>cancelRunningTask(u)}reactExports.useEffect(i,[At,a,$t,Z,n,T,d]);const C=reactExports.useCallback(()=>{const{current:p}=a;p&&(p.width=0,p.height=0)},[a]);return reactExports.useEffect(()=>C,[C]),jsx("canvas",{className:`${ft}__canvas`,dir:"ltr",ref:mergeRefs(e,a),style:{display:"block",userSelect:"none"},children:_?jsx(StructTree,{}):null})}function PageSVG(){const Ot=usePageContext();invariant(Ot,"Unable to find Page context.");const{_className:dt,onRenderSuccess:Mt,onRenderError:ft,page:At,rotate:$t,scale:vt}=Ot;invariant(At,"Attempted to render page SVG, but no page was specified.");const[M,Z]=useResolver(),{value:n,error:_}=M;function L(){At&&Mt&&Mt(makePageCallback(At,vt))}function t(){_&&(isCancelException(_)||(warning(!1,_.toString()),ft&&ft(_)))}const e=reactExports.useMemo(()=>At.getViewport({scale:vt,rotation:$t}),[At,$t,vt]);function a(){Z({type:"RESET"})}reactExports.useEffect(a,[At,Z,e]);function v(){if(!At)return;const i=makeCancellablePromise(At.getOperatorList());return i.promise.then(C=>{new pdfjs.SVGGraphics(At.commonObjs,At.objs).getSVG(C,e).then(b=>{if(!(b instanceof SVGElement))throw new Error("getSVG returned unexpected result.");Z({type:"RESOLVE",value:b})}).catch(b=>{Z({type:"REJECT",error:b})})}).catch(C=>{Z({type:"REJECT",error:C})}),()=>cancelRunningTask(i)}reactExports.useEffect(v,[At,Z,e]),reactExports.useEffect(()=>{if(n!==void 0){if(n===!1){t();return}L()}},[n]);function A(i){if(!i||!n)return;i.firstElementChild||i.appendChild(n);const{width:C,height:p}=e;n.setAttribute("width",`${C}`),n.setAttribute("height",`${p}`)}const{width:T,height:d}=e;return jsx("div",{className:`${dt}__svg`,ref:i=>A(i),style:{display:"block",backgroundColor:"white",overflow:"hidden",width:T,height:d,userSelect:"none"}})}function isTextItem(Ot){return"str"in Ot}function TextLayer(){const Ot=usePageContext();invariant(Ot,"Unable to find Page context.");const{customTextRenderer:dt,onGetTextError:Mt,onGetTextSuccess:ft,onRenderTextLayerError:At,onRenderTextLayerSuccess:$t,page:vt,pageIndex:M,pageNumber:Z,rotate:n,scale:_}=Ot;invariant(vt,"Attempted to load page text content, but no page was specified.");const[L,t]=useResolver(),{value:e,error:a}=L,v=reactExports.useRef(null),A=reactExports.useRef();warning(parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10)===1,"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer");function T(){e&&ft&&ft(e)}function d(){a&&(warning(!1,a.toString()),Mt&&Mt(a))}function i(){t({type:"RESET"})}reactExports.useEffect(i,[vt,t]);function C(){if(!vt)return;const N=makeCancellablePromise(vt.getTextContent()),U=N;return N.promise.then($=>{t({type:"RESOLVE",value:$})}).catch($=>{t({type:"REJECT",error:$})}),()=>cancelRunningTask(U)}reactExports.useEffect(C,[vt,t]),reactExports.useEffect(()=>{if(e!==void 0){if(e===!1){d();return}T()}},[e]);const p=reactExports.useCallback(()=>{$t&&$t()},[$t]),b=reactExports.useCallback(N=>{warning(!1,N.toString()),At&&At(N)},[At]);function F(){const N=A.current;N&&N.classList.add("active")}function u(){const N=A.current;N&&N.classList.remove("active")}const l=reactExports.useMemo(()=>vt.getViewport({scale:_,rotation:n}),[vt,n,_]);function y(){if(!vt||!e)return;const{current:N}=v;if(!N)return;N.innerHTML="";const U=vt.streamTextContent({includeMarkedContent:!0}),$={container:N,textContentSource:U,viewport:l},P=pdfjs.renderTextLayer($),R=P;return P.promise.then(()=>{const o=document.createElement("div");o.className="endOfContent",N.append(o),A.current=o;const g=N.querySelectorAll('[role="presentation"]');if(dt){let x=0;e.items.forEach((E,D)=>{if(!isTextItem(E))return;const q=g[x];if(!q)return;const W=dt(Object.assign({pageIndex:M,pageNumber:Z,itemIndex:D},E));q.innerHTML=W,x+=E.str&&E.hasEOL?2:1})}p()}).catch(b),()=>cancelRunningTask(R)}return reactExports.useLayoutEffect(y,[dt,b,p,vt,M,Z,e,l]),jsx("div",{className:clsx("react-pdf__Page__textContent","textLayer"),onMouseUp:u,onMouseDown:F,ref:v})}function AnnotationLayer(){const Ot=useDocumentContext(),dt=usePageContext();invariant(dt,"Unable to find Page context.");const Mt=Object.assign(Object.assign({},Ot),dt),{imageResourcesPath:ft,linkService:At,onGetAnnotationsError:$t,onGetAnnotationsSuccess:vt,onRenderAnnotationLayerError:M,onRenderAnnotationLayerSuccess:Z,page:n,pdf:_,renderForms:L,rotate:t,scale:e=1}=Mt;invariant(_,"Attempted to load page annotations, but no document was specified. Wrap in a or pass explicit `pdf` prop."),invariant(n,"Attempted to load page annotations, but no page was specified."),invariant(At,"Attempted to load page annotations, but no linkService was specified.");const[a,v]=useResolver(),{value:A,error:T}=a,d=reactExports.useRef(null);warning(parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10)===1,"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations");function i(){A&&vt&&vt(A)}function C(){T&&(warning(!1,T.toString()),$t&&$t(T))}function p(){v({type:"RESET"})}reactExports.useEffect(p,[v,n]);function b(){if(!n)return;const N=makeCancellablePromise(n.getAnnotations()),U=N;return N.promise.then($=>{v({type:"RESOLVE",value:$})}).catch($=>{v({type:"REJECT",error:$})}),()=>{cancelRunningTask(U)}}reactExports.useEffect(b,[v,n,L]),reactExports.useEffect(()=>{if(A!==void 0){if(A===!1){C();return}i()}},[A]);function F(){Z&&Z()}function u(N){warning(!1,`${N}`),M&&M(N)}const l=reactExports.useMemo(()=>n.getViewport({scale:e,rotation:t}),[n,t,e]);function y(){if(!_||!n||!At||!A)return;const{current:N}=d;if(!N)return;const U=l.clone({dontFlip:!0}),$={accessibilityManager:null,annotationCanvasMap:null,div:N,l10n:null,page:n,viewport:U},P={annotations:A,annotationStorage:_.annotationStorage,div:N,downloadManager:null,imageResourcesPath:ft,linkService:At,page:n,renderForms:L,viewport:U};N.innerHTML="";try{new pdfjs.AnnotationLayer($).render(P),F()}catch(R){u(R)}return()=>{}}return reactExports.useEffect(y,[A,ft,At,n,L,l]),jsx("div",{className:clsx("react-pdf__Page__annotations","annotationLayer"),ref:d})}var __rest=function(Ot,dt){var Mt={};for(var ft in Ot)Object.prototype.hasOwnProperty.call(Ot,ft)&&dt.indexOf(ft)<0&&(Mt[ft]=Ot[ft]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,ft=Object.getOwnPropertySymbols(Ot);At in a or pass explicit `pdf` prop.");const st=isProvided(g)?g-1:o??null,X=g??(isProvided(o)?o+1:null),J=s??(B?B.rotate:null),j=reactExports.useMemo(()=>{if(!B)return null;let yt=1;const Et=c??defaultScale;if(h||a){const Tt=B.getViewport({scale:1,rotation:J});h?yt=h/Tt.width:a&&(yt=a/Tt.height)}return Et*yt},[a,B,J,c,h]);function O(){return()=>{isProvided(st)&&$t&&S&&S(st)}}reactExports.useEffect(O,[$t,x,st,S]);function H(){if(l){if(!B||!j)return;l(makePageCallback(B,j))}if($t&&E){if(!isProvided(st)||!it.current)return;E(st,it.current)}}function V(){tt&&(warning(!1,tt.toString()),u&&u(tt))}function z(){I({type:"RESET"})}reactExports.useEffect(z,[I,x,st]);function Y(){if(!x||!X)return;const yt=makeCancellablePromise(x.getPage(X)),Et=yt;return yt.promise.then(Tt=>{I({type:"RESOLVE",value:Tt})}).catch(Tt=>{I({type:"REJECT",error:Tt})}),()=>cancelRunningTask(Et)}reactExports.useEffect(Y,[I,x,st,X,E]),reactExports.useEffect(()=>{if(B!==void 0){if(B===!1){V();return}H()}},[B,j]);const G=reactExports.useMemo(()=>B&&isProvided(st)&&X&&isProvided(J)&&isProvided(j)?{_className:At,canvasBackground:vt,customTextRenderer:L,devicePixelRatio:t,onGetAnnotationsError:d,onGetAnnotationsSuccess:i,onGetStructTreeError:C,onGetStructTreeSuccess:p,onGetTextError:b,onGetTextSuccess:F,onRenderAnnotationLayerError:y,onRenderAnnotationLayerSuccess:N,onRenderError:U,onRenderSuccess:$,onRenderTextLayerError:P,onRenderTextLayerSuccess:R,page:B,pageIndex:st,pageNumber:X,renderForms:q,renderTextLayer:w,rotate:J,scale:j}:null,[At,vt,L,t,d,i,C,p,b,F,y,N,U,$,P,R,B,st,X,q,w,J,j]),K=reactExports.useMemo(()=>makeEventProps(m,()=>B&&(j?makePageCallback(B,j):void 0)),[m,B,j]),et=`${st}@${j}/${J}`,nt=`${st}/${J}`;function at(){switch(W){case"custom":return invariant(_,'renderMode was set to "custom", but no customRenderer was passed.'),jsx(_,{},`${et}_custom`);case"none":return null;case"svg":return jsx(PageSVG,{},`${nt}_svg`);case"canvas":default:return jsx(PageCanvas,{canvasRef:M},`${et}_canvas`)}}function Q(){return w?jsx(TextLayer,{},`${et}_text`):null}function lt(){return D?jsx(AnnotationLayer,{},`${et}_annotations`):null}function ut(){return jsxs(PageContext.Provider,{value:G,children:[at(),Q(),lt(),Z]})}function pt(){return X?x===null||B===void 0||B===null?jsx(Message,{type:"loading",children:typeof A=="function"?A():A}):x===!1||B===!1?jsx(Message,{type:"error",children:typeof e=="function"?e():e}):ut():jsx(Message,{type:"no-data",children:typeof T=="function"?T():T})}return jsx("div",{...Object.assign({className:clsx(At,n),"data-page-number":X,ref:mergeRefs(v,it),style:{"--scale-factor":`${j}`,backgroundColor:vt||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"}},K),children:pt()})},isFunctionOrNode=PropTypes.oneOfType([PropTypes.func,PropTypes.node]);Page.propTypes=Object.assign(Object.assign({},eventProps),{canvasBackground:PropTypes.string,canvasRef:isRef,children:PropTypes.node,className:isClassName,customRenderer:PropTypes.func,customTextRenderer:PropTypes.func,devicePixelRatio:PropTypes.number,error:isFunctionOrNode,height:PropTypes.number,imageResourcesPath:PropTypes.string,inputRef:isRef,loading:isFunctionOrNode,noData:isFunctionOrNode,onGetTextError:PropTypes.func,onGetTextSuccess:PropTypes.func,onLoadError:PropTypes.func,onLoadSuccess:PropTypes.func,onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,onRenderTextLayerError:PropTypes.func,onRenderTextLayerSuccess:PropTypes.func,pageIndex:isPageIndex,pageNumber:isPageNumber,pdf:isPdf,renderAnnotationLayer:PropTypes.bool,renderForms:PropTypes.bool,renderMode:isRenderMode,renderTextLayer:PropTypes.bool,rotate:isRotate,scale:PropTypes.number,width:PropTypes.number});const Page$1=Page;displayWorkerWarning();pdfjs.GlobalWorkerOptions.workerSrc="pdf.worker.js";function getDefaultExportFromCjs(Ot){return Ot&&Ot.__esModule&&Object.prototype.hasOwnProperty.call(Ot,"default")?Ot.default:Ot}var pdf_worker_min={exports:{}};(function(Ot,dt){(function(ft,At){Ot.exports=ft.pdfjsWorker=At()})(globalThis,()=>(()=>{var Mt=[,(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.WorkerTask=M.WorkerMessageHandler=void 0;var n=Z(2),_=Z(3),L=Z(4),t=Z(6),e=Z(10),a=Z(68),v=Z(73),A=Z(104),T=Z(105),d=Z(72);class i{constructor(b){this.name=b,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")}}M.WorkerTask=i;class C{static setup(b,F){let u=!1;b.on("test",function(l){u||(u=!0,b.send("test",l instanceof Uint8Array))}),b.on("configure",function(l){(0,n.setVerbosityLevel)(l.verbosity)}),b.on("GetDocRequest",function(l){return C.createDocumentHandler(l,F)})}static createDocumentHandler(b,F){let u,l=!1,y=null;const N=new Set,U=(0,n.getVerbosityLevel)(),{docId:$,apiVersion:P}=b,R="3.11.174";if(P!==R)throw new Error(`The API version "${P}" does not match the Worker version "${R}".`);const o=[];for(const s in[])o.push(s);if(o.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+o.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");const g=$+"_worker";let x=new A.MessageHandler(g,$,F);function E(){if(l)throw new Error("Worker was terminated")}function D(s){N.add(s)}function q(s){s.finish(),N.delete(s)}async function W(s){await u.ensureDoc("checkHeader"),await u.ensureDoc("parseStartXRef"),await u.ensureDoc("parse",[s]),await u.ensureDoc("checkFirstPage",[s]),await u.ensureDoc("checkLastPage",[s]);const c=await u.ensureDoc("isPureXfa");if(c){const m=new i("loadXfaFonts");D(m),await Promise.all([u.loadXfaFonts(x,m).catch(k=>{}).then(()=>q(m)),u.loadXfaImages()])}const[S,h]=await Promise.all([u.ensureDoc("numPages"),u.ensureDoc("fingerprints")]);return{numPages:S,fingerprints:h,htmlForXfa:c?await u.ensureDoc("htmlForXfa"):null}}function w({data:s,password:c,disableAutoFetch:S,rangeChunkSize:h,length:m,docBaseUrl:k,enableXfa:I,evaluatorOptions:B}){const tt={source:null,disableAutoFetch:S,docBaseUrl:k,docId:$,enableXfa:I,evaluatorOptions:B,handler:x,length:m,password:c,rangeChunkSize:h},it=new n.PromiseCapability;let st;if(s){try{tt.source=s,st=new t.LocalPdfManager(tt),it.resolve(st)}catch(H){it.reject(H)}return it.promise}let X,J=[];try{X=new T.PDFWorkerStream(x)}catch(H){return it.reject(H),it.promise}const j=X.getFullReader();j.headersReady.then(function(){if(j.isRangeSupported){tt.source=X,tt.length=j.contentLength,tt.disableAutoFetch||(tt.disableAutoFetch=j.isStreamingSupported),st=new t.NetworkPdfManager(tt);for(const H of J)st.sendProgressiveData(H);J=[],it.resolve(st),y=null}}).catch(function(H){it.reject(H),y=null});let O=0;return new Promise(function(H,V){const z=function({value:Y,done:G}){try{if(E(),G){st||function(){const K=(0,_.arrayBuffersToBytes)(J);m&&K.length!==m&&(0,n.warn)("reported HTTP length is different from actual");try{tt.source=K,st=new t.LocalPdfManager(tt),it.resolve(st)}catch(et){it.reject(et)}J=[]}(),y=null;return}O+=Y.byteLength,j.isStreamingSupported||x.send("DocProgress",{loaded:O,total:Math.max(O,j.contentLength||0)}),st?st.sendProgressiveData(Y):J.push(Y),j.read().then(z,V)}catch(K){V(K)}};j.read().then(z,V)}).catch(function(H){it.reject(H),y=null}),y=function(H){X.cancelAllRequests(H)},it.promise}return x.on("GetPage",function(s){return u.getPage(s.pageIndex).then(function(c){return Promise.all([u.ensure(c,"rotate"),u.ensure(c,"ref"),u.ensure(c,"userUnit"),u.ensure(c,"view")]).then(function([S,h,m,k]){return{rotate:S,ref:h,userUnit:m,view:k}})})}),x.on("GetPageIndex",function(s){const c=L.Ref.get(s.num,s.gen);return u.ensureCatalog("getPageIndex",[c])}),x.on("GetDestinations",function(s){return u.ensureCatalog("destinations")}),x.on("GetDestination",function(s){return u.ensureCatalog("getDestination",[s.id])}),x.on("GetPageLabels",function(s){return u.ensureCatalog("pageLabels")}),x.on("GetPageLayout",function(s){return u.ensureCatalog("pageLayout")}),x.on("GetPageMode",function(s){return u.ensureCatalog("pageMode")}),x.on("GetViewerPreferences",function(s){return u.ensureCatalog("viewerPreferences")}),x.on("GetOpenAction",function(s){return u.ensureCatalog("openAction")}),x.on("GetAttachments",function(s){return u.ensureCatalog("attachments")}),x.on("GetDocJSActions",function(s){return u.ensureCatalog("jsActions")}),x.on("GetPageJSActions",function({pageIndex:s}){return u.getPage(s).then(function(c){return u.ensure(c,"jsActions")})}),x.on("GetOutline",function(s){return u.ensureCatalog("documentOutline")}),x.on("GetOptionalContentConfig",function(s){return u.ensureCatalog("optionalContentConfig")}),x.on("GetPermissions",function(s){return u.ensureCatalog("permissions")}),x.on("GetMetadata",function(s){return Promise.all([u.ensureDoc("documentInfo"),u.ensureCatalog("metadata")])}),x.on("GetMarkInfo",function(s){return u.ensureCatalog("markInfo")}),x.on("GetData",function(s){return u.requestLoadedStream().then(function(c){return c.bytes})}),x.on("GetAnnotations",function({pageIndex:s,intent:c}){return u.getPage(s).then(function(S){const h=new i(`GetAnnotations: page ${s}`);return D(h),S.getAnnotationsData(x,h,c).then(m=>(q(h),m),m=>{throw q(h),m})})}),x.on("GetFieldObjects",function(s){return u.ensureDoc("fieldObjects")}),x.on("HasJSActions",function(s){return u.ensureDoc("hasJSActions")}),x.on("GetCalculationOrderIds",function(s){return u.ensureDoc("calculationOrderIds")}),x.on("SaveDocument",async function({isPureXfa:s,numPages:c,annotationStorage:S,filename:h}){const m=[u.requestLoadedStream(),u.ensureCatalog("acroForm"),u.ensureCatalog("acroFormRef"),u.ensureDoc("startXRef"),u.ensureDoc("xref"),u.ensureDoc("linearization"),u.ensureCatalog("structTreeRoot")],k=[],I=s?null:(0,_.getNewAnnotationsMap)(S),[B,tt,it,st,X,J,j]=await Promise.all(m),O=X.trailer.getRaw("Root")||null;let H;if(I){j?await j.canUpdateStructTree({pdfManager:u,newAnnotationsByPage:I})&&(H=j):await d.StructTreeRoot.canCreateStructureTree({catalogRef:O,pdfManager:u,newAnnotationsByPage:I})&&(H=null);const Q=e.AnnotationFactory.generateImages(S.values(),X,u.evaluatorOptions.isOffscreenCanvasSupported),lt=H===void 0?k:[];for(const[ut,pt]of I)lt.push(u.getPage(ut).then(yt=>{const Et=new i(`Save (editor): page ${ut}`);return yt.saveNewAnnotations(x,Et,pt,Q).finally(function(){q(Et)})}));H===null?k.push(Promise.all(lt).then(async ut=>(await d.StructTreeRoot.createStructureTree({newAnnotationsByPage:I,xref:X,catalogRef:O,pdfManager:u,newRefs:ut}),ut))):H&&k.push(Promise.all(lt).then(async ut=>(await H.updateStructureTree({newAnnotationsByPage:I,pdfManager:u,newRefs:ut}),ut)))}if(s)k.push(u.serializeXfaData(S));else for(let Q=0;QQ.needAppearances),K=tt instanceof L.Dict&&tt.get("XFA")||null;let et=null,nt=!1;if(Array.isArray(K)){for(let Q=0,lt=K.length;Q{typeof pt=="string"&&(Q[ut]=(0,n.stringToPDFString)(pt))}),at={rootRef:O,encryptRef:X.trailer.getRaw("Encrypt")||null,newRef:X.getNewTemporaryRef(),infoRef:X.trailer.getRaw("Info")||null,info:Q,fileIds:X.trailer.get("ID")||null,startXRef:J?st:X.lastXRefStreamPos??st,filename:h}}return(0,v.incrementalUpdate)({originalData:B.bytes,xrefInfo:at,newRefs:z,xref:X,hasXfa:!!K,xfaDatasetsRef:et,hasXfaDatasetsEntry:nt,needAppearances:G,acroFormRef:it,acroForm:tt,xfaData:Y}).finally(()=>{X.resetNewTemporaryRef()})}),x.on("GetOperatorList",function(s,c){const S=s.pageIndex;u.getPage(S).then(function(h){const m=new i(`GetOperatorList: page ${S}`);D(m);const k=U>=n.VerbosityLevel.INFOS?Date.now():0;h.getOperatorList({handler:x,sink:c,task:m,intent:s.intent,cacheKey:s.cacheKey,annotationStorage:s.annotationStorage}).then(function(I){q(m),k&&(0,n.info)(`page=${S+1} - getOperatorList: time=${Date.now()-k}ms, len=${I.length}`),c.close()},function(I){q(m),m.terminated||c.error(I)})})}),x.on("GetTextContent",function(s,c){const{pageIndex:S,includeMarkedContent:h,disableNormalization:m}=s;u.getPage(S).then(function(k){const I=new i("GetTextContent: page "+S);D(I);const B=U>=n.VerbosityLevel.INFOS?Date.now():0;k.extractTextContent({handler:x,task:I,sink:c,includeMarkedContent:h,disableNormalization:m}).then(function(){q(I),B&&(0,n.info)(`page=${S+1} - getTextContent: time=`+(Date.now()-B)+"ms"),c.close()},function(tt){q(I),I.terminated||c.error(tt)})})}),x.on("GetStructTree",function(s){return u.getPage(s.pageIndex).then(function(c){return u.ensure(c,"getStructTree")})}),x.on("FontFallback",function(s){return u.fontFallback(s.id,x)}),x.on("Cleanup",function(s){return u.cleanup(!0)}),x.on("Terminate",function(s){l=!0;const c=[];if(u){u.terminate(new n.AbortException("Worker was terminated."));const S=u.cleanup();c.push(S),u=null}else(0,a.clearGlobalCaches)();y&&y(new n.AbortException("Worker was terminated."));for(const S of N)c.push(S.finished),S.terminate();return Promise.all(c).then(function(){x.destroy(),x=null})}),x.on("Ready",function(s){(function(S){function h(I){E(),x.send("GetDoc",{pdfInfo:I})}function m(I){if(E(),I instanceof n.PasswordException){const B=new i(`PasswordException: response ${I.code}`);D(B),x.sendWithPromise("PasswordRequest",I).then(function({password:tt}){q(B),u.updatePassword(tt),k()}).catch(function(){q(B),x.send("DocException",I)})}else I instanceof n.InvalidPDFException||I instanceof n.MissingPDFException||I instanceof n.UnexpectedResponseException||I instanceof n.UnknownErrorException?x.send("DocException",I):x.send("DocException",new n.UnknownErrorException(I.message,I.toString()))}function k(){E(),W(!1).then(h,function(I){E(),I instanceof _.XRefParseException?u.requestLoadedStream().then(function(){E(),W(!0).then(h,m)}):m(I)})}E(),w(S).then(function(I){if(l)throw I.terminate(new n.AbortException("Worker was terminated.")),new Error("Worker was terminated");u=I,u.requestLoadedStream(!0).then(B=>{x.send("DataLoaded",{length:B.bytes.byteLength})})}).then(k,m)})(b),b=null}),g}static initializeFromPort(b){const F=new A.MessageHandler("worker","main",b);C.setup(F,b),F.send("ready",null)}}M.WorkerMessageHandler=C,typeof window>"u"&&!n.isNodeJS&&typeof self<"u"&&function(b){return typeof b.postMessage=="function"&&"onmessage"in b}(self)&&C.initializeFromPort(self)},(vt,M)=>{var b,F;Object.defineProperty(M,"__esModule",{value:!0}),M.VerbosityLevel=M.Util=M.UnknownErrorException=M.UnexpectedResponseException=M.TextRenderingMode=M.RenderingIntentFlag=M.PromiseCapability=M.PermissionFlag=M.PasswordResponses=M.PasswordException=M.PageActionEventType=M.OPS=M.MissingPDFException=M.MAX_IMAGE_SIZE_TO_CACHE=M.LINE_FACTOR=M.LINE_DESCENT_FACTOR=M.InvalidPDFException=M.ImageKind=M.IDENTITY_MATRIX=M.FormatError=M.FeatureTest=M.FONT_IDENTITY_MATRIX=M.DocumentActionEventType=M.CMapCompressionType=M.BaseException=M.BASELINE_FACTOR=M.AnnotationType=M.AnnotationReplyType=M.AnnotationPrefix=M.AnnotationMode=M.AnnotationFlag=M.AnnotationFieldFlag=M.AnnotationEditorType=M.AnnotationEditorPrefix=M.AnnotationEditorParamsType=M.AnnotationBorderStyleType=M.AnnotationActionEventType=M.AbortException=void 0,M.assert=function(l,y){l||t(y)},M.bytesToString=v,M.createValidAbsoluteUrl=function(l,y=null,N=null){if(!l)return null;try{if(N&&typeof l=="string"){if(N.addDefaultProtocol&&l.startsWith("www.")){const $=l.match(/\./g);($==null?void 0:$.length)>=2&&(l=`http://${l}`)}if(N.tryConvertEncoding)try{l=i(l)}catch{}}const U=y?new URL(l,y):new URL(l);if(function(P){switch(P==null?void 0:P.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(U))return U}catch{}return null},M.getModificationDate=function(l=new Date){return[l.getUTCFullYear().toString(),(l.getUTCMonth()+1).toString().padStart(2,"0"),l.getUTCDate().toString().padStart(2,"0"),l.getUTCHours().toString().padStart(2,"0"),l.getUTCMinutes().toString().padStart(2,"0"),l.getUTCSeconds().toString().padStart(2,"0")].join("")},M.getUuid=function(){if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.randomUUID)=="function")return crypto.randomUUID();const l=new Uint8Array(32);if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.getRandomValues)=="function")crypto.getRandomValues(l);else for(let y=0;y<32;y++)l[y]=Math.floor(255*Math.random());return v(l)},M.getVerbosityLevel=function(){return _},M.info=function(l){_>=n.INFOS&&console.log(`Info: ${l}`)},M.isArrayBuffer=function(l){return typeof l=="object"&&(l==null?void 0:l.byteLength)!==void 0},M.isArrayEqual=function(l,y){if(l.length!==y.length)return!1;for(let N=0,U=l.length;NN?N.normalize("NFKC"):p.get(U))},M.objectFromMap=function(l){const y=Object.create(null);for(const[N,U]of l)y[N]=U;return y},M.objectSize=function(l){return Object.keys(l).length},M.setVerbosityLevel=function(l){Number.isInteger(l)&&(_=l)},M.shadow=e,M.string32=function(l){return String.fromCharCode(l>>24&255,l>>16&255,l>>8&255,255&l)},M.stringToBytes=A,M.stringToPDFString=function(l){if(l[0]>="ï"){let N;if(l[0]==="þ"&&l[1]==="ÿ"?N="utf-16be":l[0]==="ÿ"&&l[1]==="þ"?N="utf-16le":l[0]==="ï"&&l[1]==="»"&&l[2]==="¿"&&(N="utf-8"),N)try{const U=new TextDecoder(N,{fatal:!0}),$=A(l);return U.decode($)}catch(U){L(`stringToPDFString: "${U}".`)}}const y=[];for(let N=0,U=l.length;N=n.WARNINGS&&console.log(`Warning: ${u}`)}function t(u){throw new Error(u)}function e(u,l,y,N=!1){return Object.defineProperty(u,l,{value:y,enumerable:!N,configurable:!0,writable:!1}),y}const a=function(){function l(y,N){this.constructor===l&&t("Cannot initialize BaseException."),this.message=y,this.name=N}return l.prototype=new Error,l.constructor=l,l}();M.BaseException=a,M.PasswordException=class extends a{constructor(l,y){super(l,"PasswordException"),this.code=y}},M.UnknownErrorException=class extends a{constructor(l,y){super(l,"UnknownErrorException"),this.details=y}},M.InvalidPDFException=class extends a{constructor(l){super(l,"InvalidPDFException")}},M.MissingPDFException=class extends a{constructor(l){super(l,"MissingPDFException")}},M.UnexpectedResponseException=class extends a{constructor(l,y){super(l,"UnexpectedResponseException"),this.status=y}},M.FormatError=class extends a{constructor(l){super(l,"FormatError")}},M.AbortException=class extends a{constructor(l){super(l,"AbortException")}};function v(u){typeof u=="object"&&(u==null?void 0:u.length)!==void 0||t("Invalid argument for bytesToString");const l=u.length,y=8192;if(l"u"?e(this,"platform",{isWin:!1,isMac:!1}):e(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){var l,y;return e(this,"isCSSRoundSupported",(y=(l=globalThis.CSS)==null?void 0:l.supports)==null?void 0:y.call(l,"width: round(1.5px, 1px)"))}};const T=[...Array(256).keys()].map(u=>u.toString(16).padStart(2,"0"));M.Util=class{static makeHexColor(l,y,N){return`#${T[l]}${T[y]}${T[N]}`}static scaleMinMax(l,y){let N;l[0]?(l[0]<0&&(N=y[0],y[0]=y[1],y[1]=N),y[0]*=l[0],y[1]*=l[0],l[3]<0&&(N=y[2],y[2]=y[3],y[3]=N),y[2]*=l[3],y[3]*=l[3]):(N=y[0],y[0]=y[2],y[2]=N,N=y[1],y[1]=y[3],y[3]=N,l[1]<0&&(N=y[2],y[2]=y[3],y[3]=N),y[2]*=l[1],y[3]*=l[1],l[2]<0&&(N=y[0],y[0]=y[1],y[1]=N),y[0]*=l[2],y[1]*=l[2]),y[0]+=l[4],y[1]+=l[4],y[2]+=l[5],y[3]+=l[5]}static transform(l,y){return[l[0]*y[0]+l[2]*y[1],l[1]*y[0]+l[3]*y[1],l[0]*y[2]+l[2]*y[3],l[1]*y[2]+l[3]*y[3],l[0]*y[4]+l[2]*y[5]+l[4],l[1]*y[4]+l[3]*y[5]+l[5]]}static applyTransform(l,y){return[l[0]*y[0]+l[1]*y[2]+y[4],l[0]*y[1]+l[1]*y[3]+y[5]]}static applyInverseTransform(l,y){const N=y[0]*y[3]-y[1]*y[2];return[(l[0]*y[3]-l[1]*y[2]+y[2]*y[5]-y[4]*y[3])/N,(-l[0]*y[1]+l[1]*y[0]+y[4]*y[1]-y[5]*y[0])/N]}static getAxialAlignedBoundingBox(l,y){const N=this.applyTransform(l,y),U=this.applyTransform(l.slice(2,4),y),$=this.applyTransform([l[0],l[3]],y),P=this.applyTransform([l[2],l[1]],y);return[Math.min(N[0],U[0],$[0],P[0]),Math.min(N[1],U[1],$[1],P[1]),Math.max(N[0],U[0],$[0],P[0]),Math.max(N[1],U[1],$[1],P[1])]}static inverseTransform(l){const y=l[0]*l[3]-l[1]*l[2];return[l[3]/y,-l[1]/y,-l[2]/y,l[0]/y,(l[2]*l[5]-l[4]*l[3])/y,(l[4]*l[1]-l[5]*l[0])/y]}static singularValueDecompose2dScale(l){const y=[l[0],l[2],l[1],l[3]],N=l[0]*y[0]+l[1]*y[2],U=l[0]*y[1]+l[1]*y[3],$=l[2]*y[0]+l[3]*y[2],P=l[2]*y[1]+l[3]*y[3],R=(N+P)/2,o=Math.sqrt((N+P)**2-4*(N*P-$*U))/2,g=R+o||1,x=R-o||1;return[Math.sqrt(g),Math.sqrt(x)]}static normalizeRect(l){const y=l.slice(0);return l[0]>l[2]&&(y[0]=l[2],y[2]=l[0]),l[1]>l[3]&&(y[1]=l[3],y[3]=l[1]),y}static intersect(l,y){const N=Math.max(Math.min(l[0],l[2]),Math.min(y[0],y[2])),U=Math.min(Math.max(l[0],l[2]),Math.max(y[0],y[2]));if(N>U)return null;const $=Math.max(Math.min(l[1],l[3]),Math.min(y[1],y[3])),P=Math.min(Math.max(l[1],l[3]),Math.max(y[1],y[3]));return $>P?null:[N,$,U,P]}static bezierBoundingBox(l,y,N,U,$,P,R,o){const g=[],x=[[],[]];let E,D,q,W,w,s,c,S;for(let I=0;I<2;++I)if(I===0?(D=6*l-12*N+6*$,E=-3*l+9*N-9*$+3*R,q=3*N-3*l):(D=6*y-12*U+6*P,E=-3*y+9*U-9*P+3*o,q=3*U-3*y),Math.abs(E)<1e-12){if(Math.abs(D)<1e-12)continue;W=-q/D,0{this.resolve=N=>{Ht(this,b,!0),l(N)},this.reject=N=>{Ht(this,b,!0),y(N)}})}get settled(){return ot(this,b)}},b=new WeakMap,F);let C=null,p=null;M.AnnotationPrefix="pdfjs_internal_id_"},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.XRefParseException=M.XRefEntryException=M.ParserEOFException=M.PDF_VERSION_REGEXP=M.MissingDataException=void 0,M.arrayBuffersToBytes=function(b){const F=b.length;if(F===0)return new Uint8Array(0);if(F===1)return new Uint8Array(b[0]);let u=0;for(let N=0;N=0;N--){const U=y[N];if(U instanceof _.Dict)for(const $ of U.getKeys()){const P=u[$];if(!P)continue;const R=[];d(U.getRaw($),b,R,new _.RefSet),R.length>0&&(l[P]=R)}}if(F.has("A")){const N=[];d(F.get("A"),b,N,new _.RefSet),N.length>0&&(l.Action=N)}return(0,n.objectSize)(l)>0?l:null},M.encodeToXmlString=function(b){const F=[];let u=0;for(let l=0,y=b.length;l55295&&(N<57344||N>65533)&&l++,u=l+1}return F.length===0?b:(u126||N===35||N===40||N===41||N===60||N===62||N===91||N===93||N===123||N===125||N===47||N===37)&&(uF===` `?"\\n":F==="\r"?"\\r":`\\${F}`)},M.getInheritableProperty=A,M.getLookupTableFactory=function(b){let F;return function(){return b&&(F=Object.create(null),b(F),b=null),F}},M.getNewAnnotationsMap=function(b){if(!b)return null;const F=new Map;for(const[u,l]of b){if(!u.startsWith(n.AnnotationEditorPrefix))continue;let y=F.get(l.pageIndex);y||(y=[],F.set(l.pageIndex,y)),y.push(l)}return F.size>0?F:null},M.getRotationMatrix=function(b,F,u){switch(b){case 90:return[0,1,-1,0,F,0];case 180:return[-1,0,0,-1,F,u];case 270:return[0,-1,1,0,0,u];default:throw new Error("Invalid rotation")}},M.isAscii=function(b){return/^[\x00-\x7F]*$/.test(b)},M.isWhiteSpace=function(b){return b===32||b===9||b===13||b===10},M.log2=function(b){return b<=0?0:Math.ceil(Math.log2(b))},M.numberToString=function(b){if(Number.isInteger(b))return b.toString();const F=Math.round(100*b);return F%100==0?(F/100).toString():F%10==0?b.toFixed(1):b.toFixed(2)},M.parseXFAPath=function(b){const F=/(.+)\[(\d+)\]$/;return b.split(".").map(u=>{const l=u.match(F);return l?{name:l[1],pos:parseInt(l[2],10)}:{name:u,pos:0}})},M.readInt8=function(b,F){return b[F]<<24>>24},M.readUint16=function(b,F){return b[F]<<8|b[F+1]},M.readUint32=function(b,F){return(b[F]<<24|b[F+1]<<16|b[F+2]<<8|b[F+3])>>>0},M.recoverJsURL=function(b){const F=new RegExp("^\\s*("+["app.launchURL","window.open","xfa.host.gotoURL"].join("|").replaceAll(".","\\.")+`)\\((?:'|")([^'"]*)(?:'|")(?:,\\s*(\\w+)\\)|\\))`,"i").exec(b);if(F!=null&&F[2]){const u=F[2];let l=!1;return F[3]==="true"&&F[1]==="app.launchURL"&&(l=!0),{url:u,newWindow:l}}return null},M.stringToUTF16HexString=function(b){const F=[];for(let u=0,l=b.length;u>8&255).toString(16).padStart(2,"0"),(255&y).toString(16).padStart(2,"0"))}return F.join("")},M.stringToUTF16String=function(b,F=!1){const u=[];F&&u.push("þÿ");for(let l=0,y=b.length;l>8&255),String.fromCharCode(255&N))}return u.join("")},M.toRomanNumerals=function(b,F=!1){(0,n.assert)(Number.isInteger(b)&&b>0,"The number should be a positive integer.");const u=[];let l;for(;b>=1e3;)b-=1e3,u.push("M");l=b/100|0,b%=100,u.push(T[l]),l=b/10|0,b%=10,u.push(T[10+l]),u.push(T[20+b]);const y=u.join("");return F?y.toLowerCase():y},M.validateCSSFont=function(b){const F=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),{fontFamily:u,fontWeight:l,italicAngle:y}=b;if(!C(u,!0))return!1;const N=l?l.toString():"";b.fontWeight=F.has(N)?N:"400";const U=parseFloat(y);return b.italicAngle=isNaN(U)||U<-90||U>90?"14":y.toString(),!0},M.validateFontName=C;var n=Z(2),_=Z(4),L=Z(5);M.PDF_VERSION_REGEXP=/^[1-9]\.\d$/;class t extends n.BaseException{constructor(b,F){super(`Missing data [${b}, ${F})`,"MissingDataException"),this.begin=b,this.end=F}}M.MissingDataException=t;class e extends n.BaseException{constructor(b){super(b,"ParserEOFException")}}M.ParserEOFException=e;class a extends n.BaseException{constructor(b){super(b,"XRefEntryException")}}M.XRefEntryException=a;class v extends n.BaseException{constructor(b){super(b,"XRefParseException")}}M.XRefParseException=v;function A({dict:p,key:b,getArray:F=!1,stopWhenFound:u=!0}){let l;const y=new _.RefSet;for(;p instanceof _.Dict&&(!p.objId||!y.has(p.objId));){p.objId&&y.put(p.objId);const N=F?p.getArray(b):p.get(b);if(N!==void 0){if(u)return N;(l||(l=[])).push(N)}p=p.get("Parent")}return l}const T=["","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 d(p,b,F,u){if(!p)return;let l=null;if(p instanceof _.Ref){if(u.has(p))return;l=p,u.put(l),p=b.fetch(p)}if(Array.isArray(p))for(const y of p)d(y,b,F,u);else if(p instanceof _.Dict){if((0,_.isName)(p.get("S"),"JavaScript")){const y=p.get("JS");let N;y instanceof L.BaseStream?N=y.getString():typeof y=="string"&&(N=y),N&&(N=(0,n.stringToPDFString)(N).replaceAll("\0","")),N&&F.push(N)}d(p.getRaw("Next"),b,F,u)}l&&u.remove(l)}const i={60:"<",62:">",38:"&",34:""",39:"'"};function C(p,b=!1){const F=/^("|').*("|')$/.exec(p);if(F&&F[1]===F[2]){if(new RegExp(`[^\\\\]${F[1]}`).test(p.slice(1,-1)))return b&&(0,n.warn)(`FontFamily contains unescaped ${F[1]}: ${p}.`),!1}else for(const u of p.split(/[ \t]+/))if(/^(\d|(-(\d|-)))/.test(u)||!/^[\w-\\]+$/.test(u))return b&&(0,n.warn)(`FontFamily contains invalid : ${p}.`),!1;return!0}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.RefSetCache=M.RefSet=M.Ref=M.Name=M.EOF=M.Dict=M.Cmd=M.CIRCULAR_REF=void 0,M.clearPrimitiveCaches=function(){t=Object.create(null),e=Object.create(null),a=Object.create(null)},M.isCmd=function(u,l){return u instanceof A&&(l===void 0||u.cmd===l)},M.isDict=function(u,l){return u instanceof d&&(l===void 0||b(u.get("Type"),l))},M.isName=b,M.isRefsEqual=function(u,l){return u.num===l.num&&u.gen===l.gen};var n=Z(2);const _=Symbol("CIRCULAR_REF");M.CIRCULAR_REF=_;const L=Symbol("EOF");M.EOF=L;let t=Object.create(null),e=Object.create(null),a=Object.create(null);class v{constructor(u){this.name=u}static get(u){return e[u]||(e[u]=new v(u))}}M.Name=v;class A{constructor(u){this.cmd=u}static get(u){return t[u]||(t[u]=new A(u))}}M.Cmd=A;const T=function(){return T};class d{constructor(u=null){this._map=Object.create(null),this.xref=u,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=T}assignXref(u){this.xref=u}get size(){return Object.keys(this._map).length}get(u,l,y){let N=this._map[u];return N===void 0&&l!==void 0&&(N=this._map[l],N===void 0&&y!==void 0&&(N=this._map[y])),N instanceof i&&this.xref?this.xref.fetch(N,this.suppressEncryption):N}async getAsync(u,l,y){let N=this._map[u];return N===void 0&&l!==void 0&&(N=this._map[l],N===void 0&&y!==void 0&&(N=this._map[y])),N instanceof i&&this.xref?this.xref.fetchAsync(N,this.suppressEncryption):N}getArray(u,l,y){let N=this._map[u];if(N===void 0&&l!==void 0&&(N=this._map[l],N===void 0&&y!==void 0&&(N=this._map[y])),N instanceof i&&this.xref&&(N=this.xref.fetch(N,this.suppressEncryption)),Array.isArray(N)){N=N.slice();for(let U=0,$=N.length;U<$;U++)N[U]instanceof i&&this.xref&&(N[U]=this.xref.fetch(N[U],this.suppressEncryption))}return N}getRaw(u){return this._map[u]}getKeys(){return Object.keys(this._map)}getRawValues(){return Object.values(this._map)}set(u,l){this._map[u]=l}has(u){return this._map[u]!==void 0}forEach(u){for(const l in this._map)u(l,this.get(l))}static get empty(){const u=new d(null);return u.set=(l,y)=>{(0,n.unreachable)("Should not call `set` on the empty dictionary.")},(0,n.shadow)(this,"empty",u)}static merge({xref:u,dictArray:l,mergeSubDicts:y=!1}){const N=new d(u),U=new Map;for(const $ of l)if($ instanceof d)for(const[P,R]of Object.entries($._map)){let o=U.get(P);if(o===void 0)o=[],U.set(P,o);else if(!(y&&R instanceof d))continue;o.push(R)}for(const[$,P]of U){if(P.length===1||!(P[0]instanceof d)){N._map[$]=P[0];continue}const R=new d(u);for(const o of P)for(const[g,x]of Object.entries(o._map))R._map[g]===void 0&&(R._map[g]=x);R.size>0&&(N._map[$]=R)}return U.clear(),N.size>0?N:d.empty}clone(){const u=new d(this.xref);for(const l of this.getKeys())u.set(l,this.getRaw(l));return u}}M.Dict=d;class i{constructor(u,l){this.num=u,this.gen=l}toString(){return this.gen===0?`${this.num}R`:`${this.num}R${this.gen}`}static fromString(u){const l=a[u];if(l)return l;const y=/^(\d+)R(\d*)$/.exec(u);return y&&y[1]!=="0"?a[u]=new i(parseInt(y[1]),y[2]?parseInt(y[2]):0):null}static get(u,l){const y=l===0?`${u}R`:`${u}R${l}`;return a[y]||(a[y]=new i(u,l))}}M.Ref=i;class C{constructor(u=null){this._set=new Set(u==null?void 0:u._set)}has(u){return this._set.has(u.toString())}put(u){this._set.add(u.toString())}remove(u){this._set.delete(u.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}}M.RefSet=C;class p{constructor(){this._map=new Map}get size(){return this._map.size}get(u){return this._map.get(u.toString())}has(u){return this._map.has(u.toString())}put(u,l){this._map.set(u.toString(),l)}putAlias(u,l){this._map.set(u.toString(),this.get(l))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}}M.RefSetCache=p;function b(F,u){return F instanceof v&&(u===void 0||F.name===u)}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.BaseStream=void 0;var n=Z(2);class _{constructor(){this.constructor===_&&(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(t){(0,n.unreachable)("Abstract method `getBytes` called")}peekByte(){const t=this.getByte();return t!==-1&&this.pos--,t}peekBytes(t){const e=this.getBytes(t);return this.pos-=e.length,e}getUint16(){const t=this.getByte(),e=this.getByte();return t===-1||e===-1?-1:(t<<8)+e}getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}getByteRange(t,e){(0,n.unreachable)("Abstract method `getByteRange` called")}getString(t){return(0,n.bytesToString)(this.getBytes(t))}skip(t){this.pos+=t||1}reset(){(0,n.unreachable)("Abstract method `reset` called")}moveStart(){(0,n.unreachable)("Abstract method `moveStart` called")}makeSubStream(t,e,a=null){(0,n.unreachable)("Abstract method `makeSubStream` called")}getBaseStreams(){return null}}M.BaseStream=_},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.NetworkPdfManager=M.LocalPdfManager=void 0;var n=Z(2),_=Z(7),L=Z(3),t=Z(9),e=Z(8);class a{constructor(A){var T;this.constructor===a&&(0,n.unreachable)("Cannot initialize BasePdfManager."),this._docBaseUrl=function(i){if(i){const C=(0,n.createValidAbsoluteUrl)(i);if(C)return C.href;(0,n.warn)(`Invalid absolute docBaseUrl: "${i}".`)}return null}(A.docBaseUrl),this._docId=A.docId,this._password=A.password,this.enableXfa=A.enableXfa,(T=A.evaluatorOptions).isOffscreenCanvasSupported&&(T.isOffscreenCanvasSupported=n.FeatureTest.isOffscreenCanvasSupported),this.evaluatorOptions=A.evaluatorOptions}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){return this._docBaseUrl}get catalog(){return this.pdfDocument.catalog}ensureDoc(A,T){return this.ensure(this.pdfDocument,A,T)}ensureXRef(A,T){return this.ensure(this.pdfDocument.xref,A,T)}ensureCatalog(A,T){return this.ensure(this.pdfDocument.catalog,A,T)}getPage(A){return this.pdfDocument.getPage(A)}fontFallback(A,T){return this.pdfDocument.fontFallback(A,T)}loadXfaFonts(A,T){return this.pdfDocument.loadXfaFonts(A,T)}loadXfaImages(){return this.pdfDocument.loadXfaImages()}serializeXfaData(A){return this.pdfDocument.serializeXfaData(A)}cleanup(A=!1){return this.pdfDocument.cleanup(A)}async ensure(A,T,d){(0,n.unreachable)("Abstract method `ensure` called")}requestRange(A,T){(0,n.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(A=!1){(0,n.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(A){(0,n.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(A){this._password=A}terminate(A){(0,n.unreachable)("Abstract method `terminate` called")}}M.LocalPdfManager=class extends a{constructor(A){super(A);const T=new e.Stream(A.source);this.pdfDocument=new t.PDFDocument(this,T),this._loadedStreamPromise=Promise.resolve(T)}async ensure(A,T,d){const i=A[T];return typeof i=="function"?i.apply(A,d):i}requestRange(A,T){return Promise.resolve()}requestLoadedStream(A=!1){return this._loadedStreamPromise}terminate(A){}},M.NetworkPdfManager=class extends a{constructor(A){super(A),this.streamManager=new _.ChunkedStreamManager(A.source,{msgHandler:A.handler,length:A.length,disableAutoFetch:A.disableAutoFetch,rangeChunkSize:A.rangeChunkSize}),this.pdfDocument=new t.PDFDocument(this,this.streamManager.getStream())}async ensure(A,T,d){try{const i=A[T];return typeof i=="function"?i.apply(A,d):i}catch(i){if(!(i instanceof L.MissingDataException))throw i;return await this.requestRange(i.begin,i.end),this.ensure(A,T,d)}}requestRange(A,T){return this.streamManager.requestRange(A,T)}requestLoadedStream(A=!1){return this.streamManager.requestAllChunks(A)}sendProgressiveData(A){this.streamManager.onReceiveData({chunk:A})}terminate(A){this.streamManager.abort(A)}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.ChunkedStreamManager=M.ChunkedStream=void 0;var n=Z(3),_=Z(2),L=Z(8);class t extends L.Stream{constructor(a,v,A){super(new Uint8Array(a),0,a,null),this.chunkSize=v,this._loadedChunks=new Set,this.numChunks=Math.ceil(a/v),this.manager=A,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){const a=[];for(let v=0,A=this.numChunks;v=this.end?this.numChunks:Math.floor(v/this.chunkSize);for(let d=A;dthis.numChunks)&&v!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(v))throw new n.MissingDataException(a,a+1);this.lastSuccessfulEnsureByteChunk=v}}ensureRange(a,v){if(a>=v||v<=this.progressiveDataLength)return;const A=Math.floor(a/this.chunkSize);if(A>this.numChunks)return;const T=Math.min(Math.floor((v-1)/this.chunkSize)+1,this.numChunks);for(let d=A;d=this.end?-1:(a>=this.progressiveDataLength&&this.ensureByte(a),this.bytes[this.pos++])}getBytes(a){const v=this.bytes,A=this.pos,T=this.end;if(!a)return T>this.progressiveDataLength&&this.ensureRange(A,T),v.subarray(A,T);let d=A+a;return d>T&&(d=T),d>this.progressiveDataLength&&this.ensureRange(A,d),this.pos=d,v.subarray(A,d)}getByteRange(a,v){return a<0&&(a=0),v>this.end&&(v=this.end),v>this.progressiveDataLength&&this.ensureRange(a,v),this.bytes.subarray(a,v)}makeSubStream(a,v,A=null){v?a+v>this.progressiveDataLength&&this.ensureRange(a,a+v):a>=this.progressiveDataLength&&this.ensureByte(a);function T(){}T.prototype=Object.create(this),T.prototype.getMissingChunks=function(){const i=this.chunkSize,C=Math.floor(this.start/i),p=Math.floor((this.end-1)/i)+1,b=[];for(let F=C;F{const p=({value:b,done:F})=>{try{if(F){const u=(0,n.arrayBuffersToBytes)(T);T=null,i(u);return}d+=b.byteLength,A.isStreamingSupported&&this.onProgress({loaded:d}),T.push(b),A.read().then(p,C)}catch(u){C(u)}};A.read().then(p,C)}).then(i=>{this.aborted||this.onReceiveData({chunk:i,begin:a})})}requestAllChunks(a=!1){if(!a){const v=this.stream.getMissingChunks();this._requestChunks(v)}return this._loadedStreamCapability.promise}_requestChunks(a){const v=this.currRequestId++,A=new Set;this._chunksNeededByRequest.set(v,A);for(const i of a)this.stream.hasChunk(i)||A.add(i);if(A.size===0)return Promise.resolve();const T=new _.PromiseCapability;this._promisesByRequest.set(v,T);const d=[];for(const i of A){let C=this._requestsByChunk.get(i);C||(C=[],this._requestsByChunk.set(i,C),d.push(i)),C.push(v)}if(d.length>0){const i=this.groupChunks(d);for(const C of i){const p=C.beginChunk*this.chunkSize,b=Math.min(C.endChunk*this.chunkSize,this.length);this.sendRequest(p,b).catch(T.reject)}}return T.promise.catch(i=>{if(!this.aborted)throw i})}getStream(){return this.stream}requestRange(a,v){v=Math.min(v,this.length);const A=this.getBeginChunk(a),T=this.getEndChunk(v),d=[];for(let i=A;i=0&&T+1!==C&&(v.push({beginChunk:A,endChunk:T+1}),A=C),d+1===a.length&&v.push({beginChunk:A,endChunk:C+1}),T=C}return v}onProgress(a){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+a.loaded,total:this.length})}onReceiveData(a){const v=a.chunk,A=a.begin===void 0,T=A?this.progressiveDataLength:a.begin,d=T+v.byteLength,i=Math.floor(T/this.chunkSize),C=d0||p.push(u)}}}if(!this.disableAutoFetch&&this._requestsByChunk.size===0){let b;if(this.stream.numChunksLoaded===1){const F=this.stream.numChunks-1;this.stream.hasChunk(F)||(b=F)}else b=this.stream.nextEmptyChunk(C);Number.isInteger(b)&&this._requestChunks([b])}for(const b of p){const F=this._promisesByRequest.get(b);this._promisesByRequest.delete(b),F.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(a){this._loadedStreamCapability.reject(a)}getBeginChunk(a){return Math.floor(a/this.chunkSize)}getEndChunk(a){return Math.floor((a-1)/this.chunkSize)+1}abort(a){var v;this.aborted=!0,(v=this.pdfNetworkStream)==null||v.cancelAllRequests(a);for(const A of this._promisesByRequest.values())A.reject(a)}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.StringStream=M.Stream=M.NullStream=void 0;var n=Z(5),_=Z(2);class L extends n.BaseStream{constructor(e,a,v,A){super(),this.bytes=e instanceof Uint8Array?e:new Uint8Array(e),this.start=a||0,this.pos=this.start,this.end=a+v||this.bytes.length,this.dict=A}get length(){return this.end-this.start}get isEmpty(){return this.length===0}getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}getBytes(e){const a=this.bytes,v=this.pos,A=this.end;if(!e)return a.subarray(v,A);let T=v+e;return T>A&&(T=A),this.pos=T,a.subarray(v,T)}getByteRange(e,a){return e<0&&(e=0),a>this.end&&(a=this.end),this.bytes.subarray(e,a)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(e,a,v=null){return new L(this.bytes.buffer,e,a,v)}}M.Stream=L,M.StringStream=class extends L{constructor(e){super((0,_.stringToBytes)(e))}},M.NullStream=class extends L{constructor(){super(new Uint8Array(0))}}},(vt,M,Z)=>{var E,zi,q,Gi,w;Object.defineProperty(M,"__esModule",{value:!0}),M.Page=M.PDFDocument=void 0;var n=Z(2),_=Z(10),L=Z(3),t=Z(4),e=Z(51),a=Z(5),v=Z(74),A=Z(66),T=Z(68),d=Z(102),i=Z(16),C=Z(8),p=Z(76),b=Z(64),F=Z(13),u=Z(18),l=Z(72),y=Z(73),N=Z(77),U=Z(103);const $=[0,0,612,792];class P{constructor({pdfManager:c,xref:S,pageIndex:h,pageDict:m,ref:k,globalIdFactory:I,fontCache:B,builtInCMapCache:tt,standardFontDataCache:it,globalImageCache:st,systemFontCache:X,nonBlendModesSet:J,xfaFactory:j}){_t(this,E);this.pdfManager=c,this.pageIndex=h,this.pageDict=m,this.xref=S,this.ref=k,this.fontCache=B,this.builtInCMapCache=tt,this.standardFontDataCache=it,this.globalImageCache=st,this.systemFontCache=X,this.nonBlendModesSet=J,this.evaluatorOptions=c.evaluatorOptions,this.resourcesPromise=null,this.xfaFactory=j;const O={obj:0};this._localIdFactory=class extends I{static createObjId(){return`p${h}_${++O.obj}`}static getPageObjId(){return`p${k.toString()}`}}}_getInheritableProperty(c,S=!1){const h=(0,L.getInheritableProperty)({dict:this.pageDict,key:c,getArray:S,stopWhenFound:!1});return Array.isArray(h)?h.length!==1&&h[0]instanceof t.Dict?t.Dict.merge({xref:this.xref,dictArray:h}):h[0]:h}get content(){return this.pageDict.getArray("Contents")}get resources(){const c=this._getInheritableProperty("Resources");return(0,n.shadow)(this,"resources",c instanceof t.Dict?c:t.Dict.empty)}_getBoundingBox(c){if(this.xfaData)return this.xfaData.bbox;let S=this._getInheritableProperty(c,!0);if(Array.isArray(S)&&S.length===4){if(S=n.Util.normalizeRect(S),S[2]-S[0]>0&&S[3]-S[1]>0)return S;(0,n.warn)(`Empty, or invalid, /${c} entry.`)}return null}get mediaBox(){return(0,n.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||$)}get cropBox(){return(0,n.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let c=this.pageDict.get("UserUnit");return(typeof c!="number"||c<=0)&&(c=1),(0,n.shadow)(this,"userUnit",c)}get view(){const{cropBox:c,mediaBox:S}=this;if(c!==S&&!(0,n.isArrayEqual)(c,S)){const h=n.Util.intersect(c,S);if(h&&h[2]-h[0]>0&&h[3]-h[1]>0)return(0,n.shadow)(this,"view",h);(0,n.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,n.shadow)(this,"view",S)}get rotate(){let c=this._getInheritableProperty("Rotate")||0;return c%90!=0?c=0:c>=360?c%=360:c<0&&(c=(c%360+360)%360),(0,n.shadow)(this,"rotate",c)}_onSubStreamError(c,S){if(!this.evaluatorOptions.ignoreErrors)throw c;(0,n.warn)(`getContentStream - ignoring sub-stream (${S}): "${c}".`)}getContentStream(){return this.pdfManager.ensure(this,"content").then(c=>c instanceof a.BaseStream?c:Array.isArray(c)?new u.StreamsSequenceStream(c,this._onSubStreamError.bind(this)):new C.NullStream)}get xfaData(){return(0,n.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}async saveNewAnnotations(c,S,h,m){if(this.xfaFactory)throw new Error("XFA: Cannot save new annotations.");const k=new F.PartialEvaluator({xref:this.xref,handler:c,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),I=new t.RefSet,B=new t.RefSet;Lt(this,E,zi).call(this,h,I,B);const tt=this.pageDict,it=this.annotations.filter(O=>!(O instanceof t.Ref&&I.has(O))),st=await _.AnnotationFactory.saveNewAnnotations(k,S,h,m);for(const{ref:O}of st.annotations)O instanceof t.Ref&&!B.has(O)&&it.push(O);const X=tt.get("Annots");tt.set("Annots",it);const J=[];await(0,y.writeObject)(this.ref,tt,J,this.xref),X&&tt.set("Annots",X);const j=st.dependencies;return j.push({ref:this.ref,data:J.join("")},...st.annotations),j}save(c,S,h){const m=new F.PartialEvaluator({xref:this.xref,handler:c,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(k){const I=[];for(const B of k)B.mustBePrinted(h)&&I.push(B.save(m,S,h).catch(function(tt){return(0,n.warn)(`save - ignoring annotation data during "${S.name}" task: "${tt}".`),null}));return Promise.all(I).then(function(B){return B.filter(tt=>!!tt)})})}loadResources(c){return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then(()=>new p.ObjectLoader(this.resources,c,this.xref).load())}getOperatorList({handler:c,sink:S,task:h,intent:m,cacheKey:k,annotationStorage:I=null}){const B=this.getContentStream(),tt=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),it=new F.PartialEvaluator({xref:this.xref,handler:c,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),st=this.xfaFactory?null:(0,L.getNewAnnotationsMap)(I);let X=null,J=Promise.resolve(null);if(st){const O=st.get(this.pageIndex);if(O){const H=this.pdfManager.ensureDoc("annotationGlobals");let V;const z=new Set;for(const{bitmapId:G,bitmap:K}of O)!G||K||z.has(G)||z.add(G);const{isOffscreenCanvasSupported:Y}=this.evaluatorOptions;if(z.size>0){const G=O.slice();for(const[K,et]of I)K.startsWith(n.AnnotationEditorPrefix)&&et.bitmap&&z.has(et.bitmapId)&&G.push(et);V=_.AnnotationFactory.generateImages(G,this.xref,Y)}else V=_.AnnotationFactory.generateImages(O,this.xref,Y);X=new t.RefSet,Lt(this,E,zi).call(this,O,X,null),J=H.then(G=>G?_.AnnotationFactory.printNewAnnotations(G,it,h,O,V):null)}}const j=Promise.all([B,tt]).then(([O])=>{const H=new b.OperatorList(m,S);return c.send("StartRenderPage",{transparency:it.hasBlendModes(this.resources,this.nonBlendModesSet),pageIndex:this.pageIndex,cacheKey:k}),it.getOperatorList({stream:O,task:h,resources:this.resources,operatorList:H}).then(function(){return H})});return Promise.all([j,this._parsedAnnotations,J]).then(function([O,H,V]){if(V){H=H.filter(nt=>!(nt.ref&&X.has(nt.ref)));for(let nt=0,at=V.length;ntut.ref&&(0,t.isRefsEqual)(ut.ref,Q.refToReplace));lt>=0&&(H.splice(lt,1,Q),V.splice(nt--,1),at--)}}H=H.concat(V)}if(H.length===0||m&n.RenderingIntentFlag.ANNOTATIONS_DISABLE)return O.flush(!0),{length:O.totalLength};const z=!!(m&n.RenderingIntentFlag.ANNOTATIONS_FORMS),Y=!!(m&n.RenderingIntentFlag.ANY),G=!!(m&n.RenderingIntentFlag.DISPLAY),K=!!(m&n.RenderingIntentFlag.PRINT),et=[];for(const nt of H)(Y||G&&nt.mustBeViewed(I,z)||K&&nt.mustBePrinted(I))&&et.push(nt.getOperatorList(it,h,m,z,I).catch(function(at){return(0,n.warn)(`getOperatorList - ignoring annotation data during "${h.name}" task: "${at}".`),{opList:null,separateForm:!1,separateCanvas:!1}}));return Promise.all(et).then(function(nt){let at=!1,Q=!1;for(const{opList:lt,separateForm:ut,separateCanvas:pt}of nt)O.addOpList(lt),at||(at=ut),Q||(Q=pt);return O.flush(!0,{form:at,canvas:Q}),{length:O.totalLength}})})}extractTextContent({handler:c,task:S,includeMarkedContent:h,disableNormalization:m,sink:k}){const I=this.getContentStream(),B=this.loadResources(["ExtGState","Font","Properties","XObject"]);return Promise.all([I,B]).then(([tt])=>new F.PartialEvaluator({xref:this.xref,handler:c,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:tt,task:S,resources:this.resources,includeMarkedContent:h,disableNormalization:m,sink:k,viewBox:this.view}))}async getStructTree(){const c=await this.pdfManager.ensureCatalog("structTreeRoot");return c?(await this._parsedAnnotations,(await this.pdfManager.ensure(this,"_parseStructTree",[c])).serializable):null}_parseStructTree(c){const S=new l.StructTreePage(c,this.pageDict);return S.parse(this.ref),S}async getAnnotationsData(c,S,h){const m=await this._parsedAnnotations;if(m.length===0)return m;const k=[],I=[];let B;const tt=!!(h&n.RenderingIntentFlag.ANY),it=!!(h&n.RenderingIntentFlag.DISPLAY),st=!!(h&n.RenderingIntentFlag.PRINT);for(const X of m){const J=tt||it&&X.viewable;(J||st&&X.printable)&&k.push(X.data),X.hasTextContent&&J&&(B||(B=new F.PartialEvaluator({xref:this.xref,handler:c,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions})),I.push(X.extractTextContent(B,S,[-1/0,-1/0,1/0,1/0]).catch(function(j){(0,n.warn)(`getAnnotationsData - ignoring textContent during "${S.name}" task: "${j}".`)})))}return await Promise.all(I),k}get annotations(){const c=this._getInheritableProperty("Annots");return(0,n.shadow)(this,"annotations",Array.isArray(c)?c:[])}get _parsedAnnotations(){const c=this.pdfManager.ensure(this,"annotations").then(async S=>{if(S.length===0)return S;const h=await this.pdfManager.ensureDoc("annotationGlobals");if(!h)return[];const m=[];for(const B of S)m.push(_.AnnotationFactory.create(this.xref,B,h,this._localIdFactory,!1,this.ref).catch(function(tt){return(0,n.warn)(`_parsedAnnotations: "${tt}".`),null}));const k=[];let I;for(const B of await Promise.all(m))B&&(B instanceof _.PopupAnnotation?(I||(I=[])).push(B):k.push(B));return I&&k.push(...I),k});return(0,n.shadow)(this,"_parsedAnnotations",c)}get jsActions(){const c=(0,L.collectActions)(this.xref,this.pageDict,n.PageActionEventType);return(0,n.shadow)(this,"jsActions",c)}}E=new WeakSet,zi=function(c,S,h){for(const m of c)if(m.id){const k=t.Ref.fromString(m.id);if(!k){(0,n.warn)(`A non-linked annotation cannot be modified: ${m.id}`);continue}if(m.deleted){S.put(k);continue}h==null||h.put(k),m.ref=k,delete m.id}},M.Page=P;const R=new Uint8Array([37,80,68,70,45]),o=new Uint8Array([115,116,97,114,116,120,114,101,102]),g=new Uint8Array([101,110,100,111,98,106]);function x(s,c,S=1024,h=!1){const m=c.length,k=s.peekBytes(S),I=k.length-m;if(I<=0)return!1;if(h){const B=m-1;let tt=k.length-1;for(;tt>=B;){let it=0;for(;it=m)return s.pos+=tt-B,!0;tt--}}else{let B=0;for(;B<=I;){let tt=0;for(;tt=m)return s.pos+=B,!0;B++}}return!1}M.PDFDocument=(w=class{constructor(c,S){_t(this,q);if(S.length<=0)throw new n.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=c,this.stream=S,this.xref=new U.XRef(S,c),this._pagePromises=new Map,this._version=null;const h={font:0};this._globalIdFactory=class{static getDocId(){return`g_${c.docId}`}static createFontId(){return"f"+ ++h.font}static createObjId(){(0,n.unreachable)("Abstract method `createObjId` called.")}static getPageObjId(){(0,n.unreachable)("Abstract method `getPageObjId` called.")}}}parse(c){this.xref.parse(c),this.catalog=new A.Catalog(this.pdfManager,this.xref)}get linearization(){let c=null;try{c=i.Linearization.create(this.stream)}catch(S){if(S instanceof L.MissingDataException)throw S;(0,n.info)(S)}return(0,n.shadow)(this,"linearization",c)}get startXRef(){const c=this.stream;let S=0;if(this.linearization)c.reset(),x(c,g)&&(S=c.pos+6-c.start);else{const m=o.length;let k=!1,I=c.end;for(;!k&&I>0;)I-=1024-m,I<0&&(I=0),c.pos=I,k=x(c,o,1024,!0);if(k){c.skip(9);let B;do B=c.getByte();while((0,L.isWhiteSpace)(B));let tt="";for(;B>=32&&B<=57;)tt+=String.fromCharCode(B),B=c.getByte();S=parseInt(tt,10),isNaN(S)&&(S=0)}}return(0,n.shadow)(this,"startXRef",S)}checkHeader(){const c=this.stream;if(c.reset(),!x(c,R))return;c.moveStart(),c.skip(R.length);let S,h="";for(;(S=c.getByte())>32&&h.length<7;)h+=String.fromCharCode(S);L.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 c=0;return c=this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages,(0,n.shadow)(this,"numPages",c)}_hasOnlyDocumentSignatures(c,S=0){return!!Array.isArray(c)&&c.every(h=>{if(!((h=this.xref.fetchIfRef(h))instanceof t.Dict))return!1;if(h.has("Kids"))return++S>10?((0,n.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):this._hasOnlyDocumentSignatures(h.get("Kids"),S);const m=(0,t.isName)(h.get("FT"),"Sig"),k=h.get("Rect"),I=Array.isArray(k)&&k.every(B=>B===0);return m&&I})}get _xfaStreams(){const c=this.catalog.acroForm;if(!c)return null;const S=c.get("XFA"),h={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if(S instanceof a.BaseStream&&!S.isEmpty)return h["xdp:xdp"]=S,h;if(!Array.isArray(S)||S.length===0)return null;for(let m=0,k=S.length;m{J.set(V,z)});const j=[];for(const[V,z]of J){const Y=z.get("FontDescriptor");if(!(Y instanceof t.Dict))continue;let G=Y.get("FontFamily");G=G.replaceAll(/[ ]+(\d)/g,"$1");const K={fontFamily:G,fontWeight:Y.get("FontWeight"),italicAngle:-Y.get("ItalicAngle")};(0,L.validateCSSFont)(K)&&j.push(tt.handleSetFont(m,[t.Name.get(V),1],null,it,S,X,null,K).catch(function(et){return(0,n.warn)(`loadXfaFonts: "${et}".`),null}))}await Promise.all(j);const O=this.xfaFactory.setFonts(st);if(!O)return;B.ignoreErrors=!0,j.length=0,st.length=0;const H=new Set;for(const V of O)(0,e.getXfaFontName)(`${V}-Regular`)||H.add(V);H.size&&O.push("PdfJS-Fallback");for(const V of O)if(!H.has(V))for(const z 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 Y=`${V}-${z.name}`,G=(0,e.getXfaFontDict)(Y);j.push(tt.handleSetFont(m,[t.Name.get(Y),1],null,it,S,X,G,{fontFamily:V,fontWeight:z.fontWeight,italicAngle:z.italicAngle}).catch(function(K){return(0,n.warn)(`loadXfaFonts: "${K}".`),null}))}await Promise.all(j),this.xfaFactory.appendFonts(st,H)}async serializeXfaData(c){return this.xfaFactory?this.xfaFactory.serializeData(c):null}get version(){return this.catalog.version||this._version}get formInfo(){const c={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},S=this.catalog.acroForm;if(!S)return(0,n.shadow)(this,"formInfo",c);try{const h=S.get("Fields"),m=Array.isArray(h)&&h.length>0;c.hasFields=m;const k=S.get("XFA");c.hasXfa=Array.isArray(k)&&k.length>0||k instanceof a.BaseStream&&!k.isEmpty;const I=!!(1&S.get("SigFlags")),B=I&&this._hasOnlyDocumentSignatures(h);c.hasAcroForm=m&&!B,c.hasSignatures=I}catch(h){if(h instanceof L.MissingDataException)throw h;(0,n.warn)(`Cannot fetch form information: "${h}".`)}return(0,n.shadow)(this,"formInfo",c)}get documentInfo(){const c={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 S;try{S=this.xref.trailer.get("Info")}catch(h){if(h instanceof L.MissingDataException)throw h;(0,n.info)("The document information dictionary is invalid.")}if(!(S instanceof t.Dict))return(0,n.shadow)(this,"documentInfo",c);for(const h of S.getKeys()){const m=S.get(h);switch(h){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if(typeof m=="string"){c[h]=(0,n.stringToPDFString)(m);continue}break;case"Trapped":if(m instanceof t.Name){c[h]=m;continue}break;default:let k;switch(typeof m){case"string":k=(0,n.stringToPDFString)(m);break;case"number":case"boolean":k=m;break;default:m instanceof t.Name&&(k=m)}if(k===void 0){(0,n.warn)(`Bad value, for custom key "${h}", in Info: ${m}.`);continue}c.Custom||(c.Custom=Object.create(null)),c.Custom[h]=k;continue}(0,n.warn)(`Bad value, for key "${h}", in Info: ${m}.`)}return(0,n.shadow)(this,"documentInfo",c)}get fingerprints(){function c(I){return typeof I=="string"&&I.length>0&&I!=="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function S(I){const B=[];for(const tt of I){const it=tt.toString(16);B.push(it.padStart(2,"0"))}return B.join("")}const h=this.xref.trailer.get("ID");let m,k;return Array.isArray(h)&&c(h[0])?(m=(0,n.stringToBytes)(h[0]),h[1]!==h[0]&&c(h[1])&&(k=(0,n.stringToBytes)(h[1]))):m=(0,v.calculateMD5)(this.stream.getByteRange(0,1024),0,1024),(0,n.shadow)(this,"fingerprints",[S(m),k?S(k):null])}async _getLinearizationPage(c){const{catalog:S,linearization:h,xref:m}=this,k=t.Ref.get(h.objectNumberFirst,0);try{const I=await m.fetchAsync(k);if(I instanceof t.Dict){let B=I.getRaw("Type");if(B instanceof t.Ref&&(B=await m.fetchAsync(B)),(0,t.isName)(B,"Page")||!I.has("Type")&&!I.has("Kids"))return S.pageKidsCountCache.has(k)||S.pageKidsCountCache.put(k,1),S.pageIndexCache.has(k)||S.pageIndexCache.put(k,0),[I,k]}throw new n.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")}catch(I){return(0,n.warn)(`_getLinearizationPage: "${I.message}".`),S.getPageDict(c)}}getPage(c){const S=this._pagePromises.get(c);if(S)return S;const{catalog:h,linearization:m,xfaFactory:k}=this;let I;return I=k?Promise.resolve([t.Dict.empty,null]):(m==null?void 0:m.pageFirst)===c?this._getLinearizationPage(c):h.getPageDict(c),I=I.then(([B,tt])=>new P({pdfManager:this.pdfManager,xref:this.xref,pageIndex:c,pageDict:B,ref:tt,globalIdFactory:this._globalIdFactory,fontCache:h.fontCache,builtInCMapCache:h.builtInCMapCache,standardFontDataCache:h.standardFontDataCache,globalImageCache:h.globalImageCache,systemFontCache:h.systemFontCache,nonBlendModesSet:h.nonBlendModesSet,xfaFactory:k})),this._pagePromises.set(c,I),I}async checkFirstPage(c=!1){if(!c)try{await this.getPage(0)}catch(S){if(S instanceof L.XRefEntryException)throw this._pagePromises.delete(0),await this.cleanup(),new L.XRefParseException}}async checkLastPage(c=!1){const{catalog:S,pdfManager:h}=this;S.setActualNumPages();let m;try{if(await Promise.all([h.ensureDoc("xfaFactory"),h.ensureDoc("linearization"),h.ensureCatalog("numPages")]),this.xfaFactory)return;if(m=this.linearization?this.linearization.numPages:S.numPages,!Number.isInteger(m))throw new n.FormatError("Page count is not an integer.");if(m<=1)return;await this.getPage(m-1)}catch(k){if(this._pagePromises.delete(m-1),await this.cleanup(),k instanceof L.XRefEntryException&&!c)throw new L.XRefParseException;(0,n.warn)(`checkLastPage - invalid /Pages tree /Count: ${m}.`);let I;try{I=await S.getAllPageDicts(c)}catch(B){if(B instanceof L.XRefEntryException&&!c)throw new L.XRefParseException;S.setActualNumPages(1);return}for(const[B,[tt,it]]of I){let st;tt instanceof Error?(st=Promise.reject(tt),st.catch(()=>{})):st=Promise.resolve(new P({pdfManager:h,xref:this.xref,pageIndex:B,pageDict:tt,ref:it,globalIdFactory:this._globalIdFactory,fontCache:S.fontCache,builtInCMapCache:S.builtInCMapCache,standardFontDataCache:S.standardFontDataCache,globalImageCache:S.globalImageCache,systemFontCache:S.systemFontCache,nonBlendModesSet:S.nonBlendModesSet,xfaFactory:null})),this._pagePromises.set(B,st)}S.setActualNumPages(I.size)}}fontFallback(c,S){return this.catalog.fontFallback(c,S)}async cleanup(c=!1){return this.catalog?this.catalog.cleanup(c):(0,T.clearGlobalCaches)()}get fieldObjects(){if(!this.formInfo.hasFields)return(0,n.shadow)(this,"fieldObjects",Promise.resolve(null));const c=this.pdfManager.ensureDoc("annotationGlobals").then(async S=>{if(!S)return null;const h=Object.create(null),m=new Map;for(const I of this.catalog.acroForm.get("Fields"))Lt(this,q,Gi).call(this,"",I,m,S);const k=[];for(const[I,B]of m)k.push(Promise.all(B).then(tt=>{(tt=tt.filter(it=>!!it)).length>0&&(h[I]=tt)}));return await Promise.all(k),h});return(0,n.shadow)(this,"fieldObjects",c)}get hasJSActions(){const c=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,n.shadow)(this,"hasJSActions",c)}async _parseHasJSActions(){const[c,S]=await Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);return!!c||!!S&&Object.values(S).some(h=>h.some(m=>m.actions!==null))}get calculationOrderIds(){const c=this.catalog.acroForm;if(!(c!=null&&c.has("CO")))return(0,n.shadow)(this,"calculationOrderIds",null);const S=c.get("CO");if(!Array.isArray(S)||S.length===0)return(0,n.shadow)(this,"calculationOrderIds",null);const h=[];for(const m of S)m instanceof t.Ref&&h.push(m.toString());return h.length===0?(0,n.shadow)(this,"calculationOrderIds",null):(0,n.shadow)(this,"calculationOrderIds",h)}get annotationGlobals(){return(0,n.shadow)(this,"annotationGlobals",_.AnnotationFactory.createGlobals(this.pdfManager))}},q=new WeakSet,Gi=function(c,S,h,m){const k=this.xref.fetchIfRef(S);if(k.has("T")){const I=(0,n.stringToPDFString)(k.get("T"));c=c===""?I:`${c}.${I}`}if(h.has(c)||h.set(c,[]),h.get(c).push(_.AnnotationFactory.create(this.xref,S,m,this._localIdFactory,!0,null).then(I=>I==null?void 0:I.getFieldObject()).catch(function(I){return(0,n.warn)(`#collectFieldObjects: "${I}".`),null})),k.has("Kids"))for(const I of k.get("Kids"))Lt(this,q,Gi).call(this,c,I,h,m)},w)},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.PopupAnnotation=M.MarkupAnnotation=M.AnnotationFactory=M.AnnotationBorderStyle=M.Annotation=void 0,M.getQuadPoints=y;var n=Z(2),_=Z(3),L=Z(11),t=Z(4),e=Z(8),a=Z(5),v=Z(60),A=Z(66),T=Z(12),d=Z(69),i=Z(26),C=Z(76),p=Z(64),b=Z(73),F=Z(77);M.AnnotationFactory=class{static createGlobals(O){return Promise.all([O.ensureCatalog("acroForm"),O.ensureDoc("xfaDatasets"),O.ensureCatalog("structTreeRoot"),O.ensureCatalog("baseUrl"),O.ensureCatalog("attachments")]).then(([H,V,z,Y,G])=>({pdfManager:O,acroForm:H instanceof t.Dict?H:t.Dict.empty,xfaDatasets:V,structTreeRoot:z,baseUrl:Y,attachments:G}),H=>((0,n.warn)(`createGlobals: "${H}".`),null))}static async create(O,H,V,z,Y,G){const K=Y?await this._getPageIndex(O,H,V.pdfManager):null;return V.pdfManager.ensure(this,"_create",[O,H,V,z,Y,K,G])}static _create(O,H,V,z,Y=!1,G=null,K=null){const et=O.fetchIfRef(H);if(!(et instanceof t.Dict))return;const{acroForm:nt,pdfManager:at}=V,Q=H instanceof t.Ref?H.toString():`annot_${z.createObjId()}`;let lt=et.get("Subtype");lt=lt instanceof t.Name?lt.name:null;const ut={xref:O,ref:H,dict:et,subtype:lt,id:Q,annotationGlobals:V,collectFields:Y,needAppearances:!Y&&nt.get("NeedAppearances")===!0,pageIndex:G,evaluatorOptions:at.evaluatorOptions,pageRef:K};switch(lt){case"Link":return new q(ut);case"Text":return new D(ut);case"Widget":let pt=(0,_.getInheritableProperty)({dict:et,key:"FT"});switch(pt=pt instanceof t.Name?pt.name:null,pt){case"Tx":return new o(ut);case"Btn":return new g(ut);case"Ch":return new x(ut);case"Sig":return new E(ut)}return(0,n.warn)(`Unimplemented widget field type "${pt}", falling back to base field type.`),new R(ut);case"Popup":return new W(ut);case"FreeText":return new w(ut);case"Line":return new s(ut);case"Square":return new c(ut);case"Circle":return new S(ut);case"PolyLine":return new h(ut);case"Polygon":return new m(ut);case"Caret":return new k(ut);case"Ink":return new I(ut);case"Highlight":return new B(ut);case"Underline":return new tt(ut);case"Squiggly":return new it(ut);case"StrikeOut":return new st(ut);case"Stamp":return new X(ut);case"FileAttachment":return new J(ut);default:return Y||(lt?(0,n.warn)(`Unimplemented annotation type "${lt}", falling back to base annotation.`):(0,n.warn)("Annotation is missing the required /Subtype.")),new U(ut)}}static async _getPageIndex(O,H,V){try{const z=await O.fetchIfRefAsync(H);if(!(z instanceof t.Dict))return-1;const Y=z.getRaw("P");if(Y instanceof t.Ref)try{return await V.ensureCatalog("getPageIndex",[Y])}catch(K){(0,n.info)(`_getPageIndex -- not a valid page reference: "${K}".`)}if(z.has("Kids"))return-1;const G=await V.ensureDoc("numPages");for(let K=0;KO/255)}function y(j,O){const H=j.getArray("QuadPoints");if(!Array.isArray(H)||H.length===0||H.length%8>0)return null;const V=[];for(let z=0,Y=H.length/8;zO[2]||etO[3]))return null;V.push([{x:G,y:nt},{x:K,y:nt},{x:G,y:et},{x:K,y:et}])}return V}function N(j,O,H){const[V,z,Y,G]=n.Util.getAxialAlignedBoundingBox(O,H);if(V===Y||z===G)return[1,0,0,1,j[0],j[1]];const K=(j[2]-j[0])/(Y-V),et=(j[3]-j[1])/(G-z);return[K,0,0,et,j[0]-V*K,j[1]-z*et]}class U{constructor(O){const{dict:H,xref:V,annotationGlobals:z}=O;this.setTitle(H.get("T")),this.setContents(H.get("Contents")),this.setModificationDate(H.get("M")),this.setFlags(H.get("F")),this.setRectangle(H.getArray("Rect")),this.setColor(H.getArray("C")),this.setBorderStyle(H),this.setAppearance(H),this.setOptionalContent(H);const Y=H.get("MK");this.setBorderAndBackgroundColors(Y),this.setRotation(Y,H),this.ref=O.ref instanceof t.Ref?O.ref:null,this._streams=[],this.appearance&&this._streams.push(this.appearance);const G=!!(this.flags&n.AnnotationFlag.LOCKED),K=!!(this.flags&n.AnnotationFlag.LOCKEDCONTENTS);if(z.structTreeRoot){let et=H.get("StructParent");et=Number.isInteger(et)&&et>=0?et:-1,z.structTreeRoot.addAnnotationIdToPage(O.pageRef,et)}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:O.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:O.subtype,hasOwnCanvas:!1,noRotate:!!(this.flags&n.AnnotationFlag.NOROTATE),noHTML:G&&K},O.collectFields){const et=H.get("Kids");if(Array.isArray(et)){const nt=[];for(const at of et)at instanceof t.Ref&&nt.push(at.toString());nt.length!==0&&(this.data.kidIds=nt)}this.data.actions=(0,_.collectActions)(V,H,n.AnnotationActionEventType),this.data.fieldName=this._constructFieldName(H),this.data.pageIndex=O.pageIndex}this._isOffscreenCanvasSupported=O.evaluatorOptions.isOffscreenCanvasSupported,this._fallbackFontDict=null,this._needAppearances=!1}_hasFlag(O,H){return!!(O&H)}_isViewable(O){return!this._hasFlag(O,n.AnnotationFlag.INVISIBLE)&&!this._hasFlag(O,n.AnnotationFlag.NOVIEW)}_isPrintable(O){return this._hasFlag(O,n.AnnotationFlag.PRINT)&&!this._hasFlag(O,n.AnnotationFlag.HIDDEN)&&!this._hasFlag(O,n.AnnotationFlag.INVISIBLE)}mustBeViewed(O,H){var z;const V=(z=O==null?void 0:O.get(this.data.id))==null?void 0:z.noView;return V!==void 0?!V:this.viewable&&!this._hasFlag(this.flags,n.AnnotationFlag.HIDDEN)}mustBePrinted(O){var V;const H=(V=O==null?void 0:O.get(this.data.id))==null?void 0:V.noPrint;return H!==void 0?!H:this.printable}get viewable(){return this.data.quadPoints!==null&&(this.flags===0||this._isViewable(this.flags))}get printable(){return this.data.quadPoints!==null&&this.flags!==0&&this._isPrintable(this.flags)}_parseStringHelper(O){const H=typeof O=="string"?(0,n.stringToPDFString)(O):"";return{str:H,dir:H&&(0,v.bidi)(H).dir==="rtl"?"rtl":"ltr"}}setDefaultAppearance(O){const{dict:H,annotationGlobals:V}=O,z=(0,_.getInheritableProperty)({dict:H,key:"DA"})||V.acroForm.get("DA");this._defaultAppearance=typeof z=="string"?z:"",this.data.defaultAppearanceData=(0,L.parseDefaultAppearance)(this._defaultAppearance)}setTitle(O){this._title=this._parseStringHelper(O)}setContents(O){this._contents=this._parseStringHelper(O)}setModificationDate(O){this.modificationDate=typeof O=="string"?O:null}setFlags(O){this.flags=Number.isInteger(O)&&O>0?O:0}hasFlag(O){return this._hasFlag(this.flags,O)}setRectangle(O){this.rectangle=Array.isArray(O)&&O.length===4?n.Util.normalizeRect(O):[0,0,0,0]}setColor(O){this.color=u(O)}setLineEndings(O){if(this.lineEndings=["None","None"],Array.isArray(O)&&O.length===2)for(let H=0;H<2;H++){const V=O[H];if(V instanceof t.Name)switch(V.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[H]=V.name;continue}(0,n.warn)(`Ignoring invalid lineEnding: ${V}`)}}setRotation(O,H){this.rotation=0;let V=O instanceof t.Dict?O.get("R")||0:H.get("Rotate")||0;Number.isInteger(V)&&V!==0&&(V%=360,V<0&&(V+=360),V%90==0&&(this.rotation=V))}setBorderAndBackgroundColors(O){O instanceof t.Dict?(this.borderColor=u(O.getArray("BC"),null),this.backgroundColor=u(O.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}setBorderStyle(O){if(this.borderStyle=new $,O instanceof t.Dict)if(O.has("BS")){const H=O.get("BS"),V=H.get("Type");(!V||(0,t.isName)(V,"Border"))&&(this.borderStyle.setWidth(H.get("W"),this.rectangle),this.borderStyle.setStyle(H.get("S")),this.borderStyle.setDashArray(H.getArray("D")))}else if(O.has("Border")){const H=O.getArray("Border");Array.isArray(H)&&H.length>=3&&(this.borderStyle.setHorizontalCornerRadius(H[0]),this.borderStyle.setVerticalCornerRadius(H[1]),this.borderStyle.setWidth(H[2],this.rectangle),H.length===4&&this.borderStyle.setDashArray(H[3],!0))}else this.borderStyle.setWidth(0)}setAppearance(O){this.appearance=null;const H=O.get("AP");if(!(H instanceof t.Dict))return;const V=H.get("N");if(V instanceof a.BaseStream){this.appearance=V;return}if(!(V instanceof t.Dict))return;const z=O.get("AS");if(!(z instanceof t.Name&&V.has(z.name)))return;const Y=V.get(z.name);Y instanceof a.BaseStream&&(this.appearance=Y)}setOptionalContent(O){this.oc=null;const H=O.get("OC");H instanceof t.Name?(0,n.warn)("setOptionalContent: Support for /Name-entry is not implemented."):H instanceof t.Dict&&(this.oc=H)}loadResources(O,H){return H.dict.getAsync("Resources").then(V=>{if(V)return new C.ObjectLoader(V,O,V.xref).load().then(function(){return V})})}async getOperatorList(O,H,V,z,Y){const G=this.data;let K=this.appearance;const et=!!(this.data.hasOwnCanvas&&V&n.RenderingIntentFlag.DISPLAY);if(!K){if(!et)return{opList:new p.OperatorList,separateForm:!1,separateCanvas:!1};K=new e.StringStream(""),K.dict=new t.Dict}const nt=K.dict,at=await this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],K),Q=nt.getArray("BBox")||[0,0,1,1],lt=nt.getArray("Matrix")||[1,0,0,1,0,0],ut=N(G.rect,Q,lt),pt=new p.OperatorList;let yt;return this.oc&&(yt=await O.parseMarkedContentProps(this.oc,null)),yt!==void 0&&pt.addOp(n.OPS.beginMarkedContentProps,["OC",yt]),pt.addOp(n.OPS.beginAnnotation,[G.id,G.rect,ut,lt,et]),await O.getOperatorList({stream:K,task:H,resources:at,operatorList:pt,fallbackFontDict:this._fallbackFontDict}),pt.addOp(n.OPS.endAnnotation,[]),yt!==void 0&&pt.addOp(n.OPS.endMarkedContent,[]),this.reset(),{opList:pt,separateForm:!1,separateCanvas:et}}async save(O,H,V){return null}get hasTextContent(){return!1}async extractTextContent(O,H,V){if(!this.appearance)return;const z=await this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance),Y=[],G=[];let K=null;const et={desiredSize:Math.Infinity,ready:!0,enqueue(nt,at){for(const Q of nt.items)Q.str!==void 0&&(K||(K=Q.transform.slice(-2)),G.push(Q.str),Q.hasEOL&&(Y.push(G.join("")),G.length=0))}};if(await O.getTextContent({stream:this.appearance,task:H,resources:z,includeMarkedContent:!0,sink:et,viewBox:V}),this.reset(),G.length&&Y.push(G.join("")),Y.length>1||Y[0]){const nt=this.appearance.dict,at=nt.getArray("BBox")||[0,0,1,1],Q=nt.getArray("Matrix")||[1,0,0,1,0,0],lt=this.data.rect,ut=N(lt,at,Q);ut[4]-=lt[0],ut[5]-=lt[1],K=n.Util.applyTransform(K,ut),K=n.Util.applyTransform(K,Q),this.data.textPosition=K,this.data.textContent=Y}}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 O of this._streams)O.reset()}_constructFieldName(O){if(!O.has("T")&&!O.has("Parent"))return(0,n.warn)("Unknown field name, falling back to empty field name."),"";if(!O.has("Parent"))return(0,n.stringToPDFString)(O.get("T"));const H=[];O.has("T")&&H.unshift((0,n.stringToPDFString)(O.get("T")));let V=O;const z=new t.RefSet;for(O.objId&&z.put(O.objId);V.has("Parent")&&(V=V.get("Parent"),!(!(V instanceof t.Dict)||V.objId&&z.has(V.objId)));)V.objId&&z.put(V.objId),V.has("T")&&H.unshift((0,n.stringToPDFString)(V.get("T")));return H.join(".")}}M.Annotation=U;class ${constructor(){this.width=1,this.style=n.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}setWidth(O,H=[0,0,0,0]){if(O instanceof t.Name)this.width=0;else if(typeof O=="number"){if(O>0){const V=(H[2]-H[0])/2,z=(H[3]-H[1])/2;V>0&&z>0&&(O>V||O>z)&&((0,n.warn)(`AnnotationBorderStyle.setWidth - ignoring width: ${O}`),O=1)}this.width=O}}setStyle(O){if(O instanceof t.Name)switch(O.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}}setDashArray(O,H=!1){if(Array.isArray(O)&&O.length>0){let V=!0,z=!0;for(const Y of O){if(!(+Y>=0)){V=!1;break}Y>0&&(z=!1)}V&&!z?(this.dashArray=O,H&&this.setStyle(t.Name.get("D"))):this.width=0}else O&&(this.width=0)}setHorizontalCornerRadius(O){Number.isInteger(O)&&(this.horizontalCornerRadius=O)}setVerticalCornerRadius(O){Number.isInteger(O)&&(this.verticalCornerRadius=O)}}M.AnnotationBorderStyle=$;class P extends U{constructor(O){super(O);const{dict:H}=O;if(H.has("IRT")){const z=H.getRaw("IRT");this.data.inReplyTo=z instanceof t.Ref?z.toString():null;const Y=H.get("RT");this.data.replyType=Y instanceof t.Name?Y.name:n.AnnotationReplyType.REPLY}let V=null;if(this.data.replyType===n.AnnotationReplyType.GROUP){const z=H.get("IRT");this.setTitle(z.get("T")),this.data.titleObj=this._title,this.setContents(z.get("Contents")),this.data.contentsObj=this._contents,z.has("CreationDate")?(this.setCreationDate(z.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,z.has("M")?(this.setModificationDate(z.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,V=z.getRaw("Popup"),z.has("C")?(this.setColor(z.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.titleObj=this._title,this.setCreationDate(H.get("CreationDate")),this.data.creationDate=this.creationDate,V=H.getRaw("Popup"),H.has("C")||(this.data.color=null);this.data.popupRef=V instanceof t.Ref?V.toString():null,H.has("RC")&&(this.data.richText=F.XFAFactory.getRichTextAsHtml(H.get("RC")))}setCreationDate(O){this.creationDate=typeof O=="string"?O:null}_setDefaultAppearance({xref:O,extra:H,strokeColor:V,fillColor:z,blendMode:Y,strokeAlpha:G,fillAlpha:K,pointsCallback:et}){let nt=Number.MAX_VALUE,at=Number.MAX_VALUE,Q=Number.MIN_VALUE,lt=Number.MIN_VALUE;const ut=["q"];H&&ut.push(H),V&&ut.push(`${V[0]} ${V[1]} ${V[2]} RG`),z&&ut.push(`${z[0]} ${z[1]} ${z[2]} rg`);let pt=this.data.quadPoints;pt||(pt=[[{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 Gt of pt){const[Zt,Ft,Ut,Vt]=et(ut,Gt);nt=Math.min(nt,Zt),Q=Math.max(Q,Ft),at=Math.min(at,Ut),lt=Math.max(lt,Vt)}ut.push("Q");const yt=new t.Dict(O),Et=new t.Dict(O);Et.set("Subtype",t.Name.get("Form"));const Tt=new e.StringStream(ut.join(" "));Tt.dict=Et,yt.set("Fm0",Tt);const xt=new t.Dict(O);Y&&xt.set("BM",t.Name.get(Y)),typeof G=="number"&&xt.set("CA",G),typeof K=="number"&&xt.set("ca",K);const wt=new t.Dict(O);wt.set("GS0",xt);const St=new t.Dict(O);St.set("ExtGState",wt),St.set("XObject",yt);const Rt=new t.Dict(O);Rt.set("Resources",St);const Ct=this.data.rect=[nt,at,Q,lt];Rt.set("BBox",Ct),this.appearance=new e.StringStream("/GS0 gs /Fm0 Do"),this.appearance.dict=Rt,this._streams.push(this.appearance,Tt)}static async createNewAnnotation(O,H,V,z){const Y=H.ref||(H.ref=O.getNewTemporaryRef()),G=await this.createNewAppearanceStream(H,O,z),K=[];let et;if(G){const nt=O.getNewTemporaryRef();et=this.createNewDict(H,O,{apRef:nt}),await(0,b.writeObject)(nt,G,K,O),V.push({ref:nt,data:K.join("")})}else et=this.createNewDict(H,O,{});return Number.isInteger(H.parentTreeId)&&et.set("StructParent",H.parentTreeId),K.length=0,await(0,b.writeObject)(Y,et,K,O),{ref:Y,data:K.join("")}}static async createNewPrintAnnotation(O,H,V,z){const Y=await this.createNewAppearanceStream(V,H,z),G=this.createNewDict(V,H,{ap:Y}),K=new this.prototype.constructor({dict:G,xref:H,annotationGlobals:O,evaluatorOptions:z.evaluatorOptions});return V.ref&&(K.ref=K.refToReplace=V.ref),K}}M.MarkupAnnotation=P;class R extends U{constructor(O){var lt;super(O);const{dict:H,xref:V,annotationGlobals:z}=O,Y=this.data;this._needAppearances=O.needAppearances,Y.annotationType=n.AnnotationType.WIDGET,Y.fieldName===void 0&&(Y.fieldName=this._constructFieldName(H)),Y.actions===void 0&&(Y.actions=(0,_.collectActions)(V,H,n.AnnotationActionEventType));let G=(0,_.getInheritableProperty)({dict:H,key:"V",getArray:!0});Y.fieldValue=this._decodeFormValue(G);const K=(0,_.getInheritableProperty)({dict:H,key:"DV",getArray:!0});if(Y.defaultFieldValue=this._decodeFormValue(K),G===void 0&&z.xfaDatasets){const ut=this._title.str;ut&&(this._hasValueFromXFA=!0,Y.fieldValue=G=z.xfaDatasets.getValue(ut))}G===void 0&&Y.defaultFieldValue!==null&&(Y.fieldValue=Y.defaultFieldValue),Y.alternativeText=(0,n.stringToPDFString)(H.get("TU")||""),this.setDefaultAppearance(O),Y.hasAppearance||(Y.hasAppearance=this._needAppearances&&Y.fieldValue!==void 0&&Y.fieldValue!==null);const et=(0,_.getInheritableProperty)({dict:H,key:"FT"});Y.fieldType=et instanceof t.Name?et.name:null;const nt=(0,_.getInheritableProperty)({dict:H,key:"DR"}),at=z.acroForm.get("DR"),Q=(lt=this.appearance)==null?void 0:lt.dict.get("Resources");this._fieldResources={localResources:nt,acroFormResources:at,appearanceResources:Q,mergedResources:t.Dict.merge({xref:V,dictArray:[nt,Q,at],mergeSubDicts:!0})},Y.fieldFlags=(0,_.getInheritableProperty)({dict:H,key:"Ff"}),(!Number.isInteger(Y.fieldFlags)||Y.fieldFlags<0)&&(Y.fieldFlags=0),Y.readOnly=this.hasFieldFlag(n.AnnotationFieldFlag.READONLY),Y.required=this.hasFieldFlag(n.AnnotationFieldFlag.REQUIRED),Y.hidden=this._hasFlag(Y.annotationFlags,n.AnnotationFlag.HIDDEN)||this._hasFlag(Y.annotationFlags,n.AnnotationFlag.NOVIEW)}_decodeFormValue(O){return Array.isArray(O)?O.filter(H=>typeof H=="string").map(H=>(0,n.stringToPDFString)(H)):O instanceof t.Name?(0,n.stringToPDFString)(O.name):typeof O=="string"?(0,n.stringToPDFString)(O):null}hasFieldFlag(O){return!!(this.data.fieldFlags&O)}_isViewable(O){return!this._hasFlag(O,n.AnnotationFlag.INVISIBLE)}mustBeViewed(O,H){return H?this.viewable:super.mustBeViewed(O,H)&&!this._hasFlag(this.flags,n.AnnotationFlag.NOVIEW)}getRotationMatrix(O){var Y;let H=(Y=O==null?void 0:O.get(this.data.id))==null?void 0:Y.rotation;if(H===void 0&&(H=this.rotation),H===0)return n.IDENTITY_MATRIX;const V=this.data.rect[2]-this.data.rect[0],z=this.data.rect[3]-this.data.rect[1];return(0,_.getRotationMatrix)(H,V,z)}getBorderAndBackgroundAppearances(O){var K;let H=(K=O==null?void 0:O.get(this.data.id))==null?void 0:K.rotation;if(H===void 0&&(H=this.rotation),!this.backgroundColor&&!this.borderColor)return"";const V=this.data.rect[2]-this.data.rect[0],z=this.data.rect[3]-this.data.rect[1],Y=H===0||H===180?`0 0 ${V} ${z} re`:`0 0 ${z} ${V} re`;let G="";return this.backgroundColor&&(G=`${(0,L.getPdfColor)(this.backgroundColor,!0)} ${Y} f `),this.borderColor&&(G+=`${this.borderStyle.width||1} w ${(0,L.getPdfColor)(this.borderColor,!1)} ${Y} S `),G}async getOperatorList(O,H,V,z,Y){if(z&&!(this instanceof E)&&!this.data.noHTML&&!this.data.hasOwnCanvas)return{opList:new p.OperatorList,separateForm:!0,separateCanvas:!1};if(!this._hasText)return super.getOperatorList(O,H,V,z,Y);const G=await this._getAppearance(O,H,V,Y);if(this.appearance&&G===null)return super.getOperatorList(O,H,V,z,Y);const K=new p.OperatorList;if(!this._defaultAppearance||G===null)return{opList:K,separateForm:!1,separateCanvas:!1};const et=!!(this.data.hasOwnCanvas&&V&n.RenderingIntentFlag.DISPLAY),nt=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],at=N(this.data.rect,nt,[1,0,0,1,0,0]);let Q;this.oc&&(Q=await O.parseMarkedContentProps(this.oc,null)),Q!==void 0&&K.addOp(n.OPS.beginMarkedContentProps,["OC",Q]),K.addOp(n.OPS.beginAnnotation,[this.data.id,this.data.rect,at,this.getRotationMatrix(Y),et]);const lt=new e.StringStream(G);return await O.getOperatorList({stream:lt,task:H,resources:this._fieldResources.mergedResources,operatorList:K}),K.addOp(n.OPS.endAnnotation,[]),Q!==void 0&&K.addOp(n.OPS.endMarkedContent,[]),{opList:K,separateForm:!1,separateCanvas:et}}_getMKDict(O){const H=new t.Dict(null);return O&&H.set("R",O),this.borderColor&&H.set("BC",l(this.borderColor)),this.backgroundColor&&H.set("BG",l(this.backgroundColor)),H.size>0?H:null}amendSavedDict(O,H){}async save(O,H,V){const z=V==null?void 0:V.get(this.data.id);let Y=z==null?void 0:z.value,G=z==null?void 0:z.rotation;if(Y===this.data.fieldValue||Y===void 0){if(!this._hasValueFromXFA&&G===void 0)return null;Y||(Y=this.data.fieldValue)}if(G===void 0&&!this._hasValueFromXFA&&Array.isArray(Y)&&Array.isArray(this.data.fieldValue)&&Y.length===this.data.fieldValue.length&&Y.every((Tt,xt)=>Tt===this.data.fieldValue[xt]))return null;G===void 0&&(G=this.rotation);let K=null;if(!this._needAppearances&&(K=await this._getAppearance(O,H,n.RenderingIntentFlag.SAVE,V),K===null))return null;let et=!1;K!=null&&K.needAppearances&&(et=!0,K=null);const{xref:nt}=O,at=nt.fetchIfRef(this.ref);if(!(at instanceof t.Dict))return null;const Q=new t.Dict(nt);for(const Tt of at.getKeys())Tt!=="AP"&&Q.set(Tt,at.getRaw(Tt));const lt={path:this.data.fieldName,value:Y},ut=Tt=>(0,_.isAscii)(Tt)?Tt:(0,_.stringToUTF16String)(Tt,!0);Q.set("V",Array.isArray(Y)?Y.map(ut):ut(Y)),this.amendSavedDict(V,Q);const pt=this._getMKDict(G);pt&&Q.set("MK",pt);const yt=[],Et=[{ref:this.ref,data:"",xfa:lt,needAppearances:et}];if(K!==null){const Tt=nt.getNewTemporaryRef(),xt=new t.Dict(nt);Q.set("AP",xt),xt.set("N",Tt);const wt=this._getSaveFieldResources(nt),St=new e.StringStream(K),Rt=St.dict=new t.Dict(nt);Rt.set("Subtype",t.Name.get("Form")),Rt.set("Resources",wt),Rt.set("BBox",[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]]);const Ct=this.getRotationMatrix(V);Ct!==n.IDENTITY_MATRIX&&Rt.set("Matrix",Ct),await(0,b.writeObject)(Tt,St,yt,nt),Et.push({ref:Tt,data:yt.join(""),xfa:null,needAppearances:!1}),yt.length=0}return Q.set("M",`D:${(0,n.getModificationDate)()}`),await(0,b.writeObject)(this.ref,Q,yt,nt),Et[0].data=yt.join(""),Et}async _getAppearance(O,H,V,z){if(this.hasFieldFlag(n.AnnotationFieldFlag.PASSWORD))return null;const Y=z==null?void 0:z.get(this.data.id);let G,K;if(Y&&(G=Y.formattedValue||Y.value,K=Y.rotation),K===void 0&&G===void 0&&!this._needAppearances&&(!this._hasValueFromXFA||this.appearance))return null;const et=this.getBorderAndBackgroundAppearances(z);if(G===void 0&&(G=this.data.fieldValue,!G))return`/Tx BMC q ${et}Q EMC`;if(Array.isArray(G)&&G.length===1&&(G=G[0]),(0,n.assert)(typeof G=="string","Expected `value` to be a string."),G=G.trim(),this.data.combo){const Gt=this.data.options.find(({exportValue:Zt})=>G===Zt);G=(Gt==null?void 0:Gt.displayValue)||G}if(G==="")return`/Tx BMC q ${et}Q EMC`;K===void 0&&(K=this.rotation);let nt,at=-1;this.data.multiLine?(nt=G.split(/\r\n?|\n/).map(Gt=>Gt.normalize("NFC")),at=nt.length):nt=[G.replace(/\r\n?|\n/,"").normalize("NFC")];let Q=this.data.rect[3]-this.data.rect[1],lt=this.data.rect[2]-this.data.rect[0];K!==90&&K!==270||([lt,Q]=[Q,lt]),this._defaultAppearance||(this.data.defaultAppearanceData=(0,L.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));let ut,pt,yt,Et=await R._getFontData(O,H,this.data.defaultAppearanceData,this._fieldResources.mergedResources);const Tt=[];let xt=!1;for(const Gt of nt){const Zt=Et.encodeString(Gt);Zt.length>1&&(xt=!0),Tt.push(Zt.join(""))}if(xt&&V&n.RenderingIntentFlag.SAVE)return{needAppearances:!0};if(xt&&this._isOffscreenCanvasSupported){const Gt=this.data.comb?"monospace":"sans-serif",Zt=new L.FakeUnicodeFont(O.xref,Gt),Ft=Zt.createFontResources(nt.join("")),Ut=Ft.getRaw("Font");if(this._fieldResources.mergedResources.has("Font")){const Yt=this._fieldResources.mergedResources.get("Font");for(const re of Ut.getKeys())Yt.set(re,Ut.getRaw(re))}else this._fieldResources.mergedResources.set("Font",Ut);const Vt=Zt.fontName.name;Et=await R._getFontData(O,H,{fontName:Vt,fontSize:0},Ft);for(let Yt=0,re=Tt.length;Yt2?`/Tx BMC q ${et}BT `+ut+` 1 0 0 1 ${(0,_.numberToString)(2)} ${(0,_.numberToString)(Ct)} Tm (${(0,_.escapeString)(Tt[0])}) Tj ET Q EMC`:`/Tx BMC q ${et}BT `+ut+` 1 0 0 1 0 0 Tm ${this._renderText(Tt[0],Et,pt,lt,Rt,{shift:0},2,Ct)} ET Q EMC`}static async _getFontData(O,H,V,z){const Y=new p.OperatorList,G={font:null,clone(){return this}},{fontName:K,fontSize:et}=V;return await O.handleSetFont(z,[K&&t.Name.get(K),et],null,Y,H,G,null),G.font}_getTextWidth(O,H){return H.charsToGlyphs(O).reduce((V,z)=>V+z.width,0)/1e3}_computeFontSize(O,H,V,z,Y){let{fontSize:G}=this.data.defaultAppearanceData,K=(G||12)*n.LINE_FACTOR,et=Math.round(O/K);if(!G){const nt=lt=>Math.floor(100*lt)/100;if(Y===-1){const lt=this._getTextWidth(V,z);G=nt(Math.min(O/n.LINE_FACTOR,lt>H?H/lt:1/0)),et=1}else{const lt=V.split(/\r\n?|\n/),ut=[];for(const yt of lt){const Et=z.encodeString(yt).join(""),Tt=z.charsToGlyphs(Et),xt=z.getCharPositions(Et);ut.push({line:Et,glyphs:Tt,positions:xt})}const pt=yt=>{let Et=0;for(const Tt of ut)if(Et+=this._splitLine(null,z,yt,H,Tt).length*yt,Et>O)return!0;return!1};for(et=Math.max(et,Y);K=O/et,G=nt(K/n.LINE_FACTOR),!!pt(G);)et++}const{fontName:at,fontColor:Q}=this.data.defaultAppearanceData;this._defaultAppearance=(0,L.createDefaultAppearance)({fontSize:G,fontName:at,fontColor:Q})}return[this._defaultAppearance,G,O/et]}_renderText(O,H,V,z,Y,G,K,et){let nt;Y===1?nt=(z-this._getTextWidth(O,H)*V)/2:Y===2?nt=z-this._getTextWidth(O,H)*V-K:nt=K;const at=(0,_.numberToString)(nt-G.shift);return G.shift=nt,`${at} ${et=(0,_.numberToString)(et)} Td (${(0,_.escapeString)(O)}) Tj`}_getSaveFieldResources(O){var G;const{localResources:H,appearanceResources:V,acroFormResources:z}=this._fieldResources,Y=(G=this.data.defaultAppearanceData)==null?void 0:G.fontName;if(!Y)return H||t.Dict.empty;for(const K of[H,V])if(K instanceof t.Dict){const et=K.get("Font");if(et instanceof t.Dict&&et.has(Y))return K}if(z instanceof t.Dict){const K=z.get("Font");if(K instanceof t.Dict&&K.has(Y)){const et=new t.Dict(O);et.set(Y,K.getRaw(Y));const nt=new t.Dict(O);return nt.set("Font",et),t.Dict.merge({xref:O,dictArray:[nt,H],mergeSubDicts:!0})}}return H||t.Dict.empty}getFieldObject(){return null}}class o extends R{constructor(O){super(O),this.data.hasOwnCanvas=this.data.readOnly&&!this.data.noHTML,this._hasText=!0;const H=O.dict;typeof this.data.fieldValue!="string"&&(this.data.fieldValue="");let V=(0,_.getInheritableProperty)({dict:H,key:"Q"});(!Number.isInteger(V)||V<0||V>2)&&(V=null),this.data.textAlignment=V;let z=(0,_.getInheritableProperty)({dict:H,key:"MaxLen"});(!Number.isInteger(z)||z<0)&&(z=0),this.data.maxLen=z,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(O,H,V,z,Y,G,K,et,nt,at,Q){const lt=Y/this.data.maxLen,ut=this.getBorderAndBackgroundAppearances(Q),pt=[],yt=H.getCharPositions(V);for(const[Tt,xt]of yt)pt.push(`(${(0,_.escapeString)(V.substring(Tt,xt))}) Tj`);const Et=pt.join(` ${(0,_.numberToString)(lt)} 0 Td `);return`/Tx BMC q ${ut}BT `+O+` 1 0 0 1 ${(0,_.numberToString)(K)} ${(0,_.numberToString)(et+nt)} Tm ${Et} ET Q EMC`}_getMultilineAppearance(O,H,V,z,Y,G,K,et,nt,at,Q,lt){const ut=[],pt=Y-2*et,yt={shift:0};for(let xt=0,wt=H.length;xtz?(nt.push(O.substring(ut,Tt)),ut=Tt,pt=St,at=-1,lt=-1):(pt+=St,at=Tt,Q=xt,lt=yt):pt+St>z?at!==-1?(nt.push(O.substring(ut,Q)),ut=Q,yt=lt+1,at=-1,pt=0):(nt.push(O.substring(ut,Tt)),ut=Tt,pt=St):pt+=St}return utat!=="Off");G.length=0,G.push("Off",nt)}G.includes(this.data.fieldValue)||(this.data.fieldValue="Off"),this.data.exportValue=G[1];const K=V.get(this.data.exportValue);this.checkedAppearance=K instanceof a.BaseStream?K:null;const et=V.get("Off");this.uncheckedAppearance=et instanceof a.BaseStream?et:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(O,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,this.data.defaultFieldValue===null&&(this.data.defaultFieldValue="Off")}_processRadioButton(O){this.data.fieldValue=this.data.buttonValue=null;const H=O.dict.get("Parent");if(H instanceof t.Dict){this.parent=O.dict.getRaw("Parent");const K=H.get("V");K instanceof t.Name&&(this.data.fieldValue=this._decodeFormValue(K))}const V=O.dict.get("AP");if(!(V instanceof t.Dict))return;const z=V.get("N");if(!(z instanceof t.Dict))return;for(const K of z.getKeys())if(K!=="Off"){this.data.buttonValue=this._decodeFormValue(K);break}const Y=z.get(this.data.buttonValue);this.checkedAppearance=Y instanceof a.BaseStream?Y:null;const G=z.get("Off");this.uncheckedAppearance=G instanceof a.BaseStream?G:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(O,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,this.data.defaultFieldValue===null&&(this.data.defaultFieldValue="Off")}_processPushButton(O){const{dict:H,annotationGlobals:V}=O;H.has("A")||H.has("AA")||this.data.alternativeText?(this.data.isTooltipOnly=!H.has("A")&&!H.has("AA"),A.Catalog.parseDestDictionary({destDict:H,resultObj:this.data,docBaseUrl:V.baseUrl,docAttachments:V.attachments})):(0,n.warn)("Push buttons without action dictionaries are not supported")}getFieldObject(){let O,H="button";return this.data.checkBox?(H="checkbox",O=this.data.exportValue):this.data.radioButton&&(H="radiobutton",O=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:O,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:H}}get fallbackFontDict(){const O=new t.Dict;return O.set("BaseFont",t.Name.get("ZapfDingbats")),O.set("Type",t.Name.get("FallbackType")),O.set("Subtype",t.Name.get("FallbackType")),O.set("Encoding",t.Name.get("ZapfDingbatsEncoding")),(0,n.shadow)(this,"fallbackFontDict",O)}}class x extends R{constructor(O){super(O);const{dict:H,xref:V}=O;this.indices=H.getArray("I"),this.hasIndices=Array.isArray(this.indices)&&this.indices.length>0,this.data.options=[];const z=(0,_.getInheritableProperty)({dict:H,key:"Opt"});if(Array.isArray(z))for(let Y=0,G=z.length;Y=0&&G0?this.data.fieldValue[0]:null;return{id:this.data.id,value:H,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:O}}amendSavedDict(O,H){var G;if(!this.hasIndices)return;let V=(G=O==null?void 0:O.get(this.data.id))==null?void 0:G.value;Array.isArray(V)||(V=[V]);const z=[],{options:Y}=this.data;for(let K=0,et=0,nt=Y.length;KZt&&(Zt=Ut,Gt=Ft)}[ut,pt]=this._computeFontSize(Ct,nt-4,Gt,lt,-1)}const yt=pt*n.LINE_FACTOR,Et=(yt-pt)/2,Tt=Math.floor(et/yt);let xt=0;if(Q.length>0){const Ct=Math.min(...Q),Gt=Math.max(...Q);xt=Math.max(0,Gt-Tt+1),xt>Ct&&(xt=Ct)}const wt=Math.min(xt+Tt+1,at),St=["/Tx BMC q",`1 1 ${nt} ${et} re W n`];if(Q.length){St.push("0.600006 0.756866 0.854904 rg");for(const Ct of Q)xt<=Ct&&Ct1)return null;bt=Pt.join(""),Zt.push(bt);let It=0;const Nt=pt.charsToGlyphs(bt);for(const Kt of Nt)It+=Kt.width*Ct;Gt=Math.max(Gt,It)}let Ft=1;Gt>wt&&(Ft=wt/Gt);let Ut=1;const Vt=n.LINE_FACTOR*et,Wt=(n.LINE_FACTOR-n.LINE_DESCENT_FACTOR)*et,Yt=Vt*Rt.length;Yt>St&&(Ut=St/Yt);const re=et*Math.min(Ft,Ut);let Jt,Bt,Xt;switch(at){case 0:Xt=[1,0,0,1],Bt=[nt[0],nt[1],wt,St],Jt=[nt[0],nt[3]-Wt];break;case 90:Xt=[0,1,-1,0],Bt=[nt[1],-nt[2],wt,St],Jt=[nt[1],-nt[0]-Wt];break;case 180:Xt=[-1,0,0,-1],Bt=[-nt[2],-nt[3],wt,St],Jt=[-nt[2],-nt[1]-Wt];break;case 270:Xt=[0,-1,1,0],Bt=[-nt[3],nt[0],wt,St],Jt=[-nt[3],nt[2]-Wt]}const jt=["q",`${Xt.join(" ")} 0 0 cm`,`${Bt.join(" ")} re W n`,"BT",`${(0,L.getPdfColor)(K,!0)}`,`0 Tc /Helv ${(0,_.numberToString)(re)} Tf`];jt.push(`${Jt.join(" ")} Td (${(0,_.escapeString)(Zt[0])}) Tj`);const mt=(0,_.numberToString)(Vt);for(let bt=1,Pt=Zt.length;bt(ut.push(`${z[0]} ${z[1]} m`,`${z[2]} ${z[3]} l`,"S"),[pt[0].x-at,pt[1].x+at,pt[3].y-at,pt[1].y+at])})}}}class c extends P{constructor(O){super(O);const{dict:H,xref:V}=O;if(this.data.annotationType=n.AnnotationType.SQUARE,this.data.hasOwnCanvas=this.data.noRotate,!this.appearance){const z=this.color?l(this.color):[0,0,0],Y=H.get("CA"),G=u(H.getArray("IC"),null),K=G?l(G):null,et=K?Y:null;if(this.borderStyle.width===0&&!K)return;this._setDefaultAppearance({xref:V,extra:`${this.borderStyle.width} w`,strokeColor:z,fillColor:K,strokeAlpha:Y,fillAlpha:et,pointsCallback:(nt,at)=>{const Q=at[2].x+this.borderStyle.width/2,lt=at[2].y+this.borderStyle.width/2,ut=at[3].x-at[2].x-this.borderStyle.width,pt=at[1].y-at[3].y-this.borderStyle.width;return nt.push(`${Q} ${lt} ${ut} ${pt} re`),K?nt.push("B"):nt.push("S"),[at[0].x,at[1].x,at[3].y,at[1].y]}})}}}class S extends P{constructor(O){super(O);const{dict:H,xref:V}=O;if(this.data.annotationType=n.AnnotationType.CIRCLE,!this.appearance){const z=this.color?l(this.color):[0,0,0],Y=H.get("CA"),G=u(H.getArray("IC"),null),K=G?l(G):null,et=K?Y:null;if(this.borderStyle.width===0&&!K)return;const nt=4/3*Math.tan(Math.PI/8);this._setDefaultAppearance({xref:V,extra:`${this.borderStyle.width} w`,strokeColor:z,fillColor:K,strokeAlpha:Y,fillAlpha:et,pointsCallback:(at,Q)=>{const lt=Q[0].x+this.borderStyle.width/2,ut=Q[0].y-this.borderStyle.width/2,pt=Q[3].x-this.borderStyle.width/2,yt=Q[3].y+this.borderStyle.width/2,Et=lt+(pt-lt)/2,Tt=ut+(yt-ut)/2,xt=(pt-lt)/2*nt,wt=(yt-ut)/2*nt;return at.push(`${Et} ${yt} m`,`${Et+xt} ${yt} ${pt} ${Tt+wt} ${pt} ${Tt} c`,`${pt} ${Tt-wt} ${Et+xt} ${ut} ${Et} ${ut} c`,`${Et-xt} ${ut} ${lt} ${Tt-wt} ${lt} ${Tt} c`,`${lt} ${Tt+wt} ${Et-xt} ${yt} ${Et} ${yt} c`,"h"),K?at.push("B"):at.push("S"),[Q[0].x,Q[1].x,Q[3].y,Q[1].y]}})}}}class h extends P{constructor(O){super(O);const{dict:H,xref:V}=O;this.data.annotationType=n.AnnotationType.POLYLINE,this.data.hasOwnCanvas=this.data.noRotate,this.data.vertices=[],this instanceof m||(this.setLineEndings(H.getArray("LE")),this.data.lineEndings=this.lineEndings);const z=H.getArray("Vertices");if(Array.isArray(z)){for(let Y=0,G=z.length;Y{const lt=this.data.vertices;for(let ut=0,pt=lt.length;ut{for(const lt of this.data.inkLists){for(let ut=0,pt=lt.length;utpt.points)),Q.set("F",4),Q.set("Rotate",nt);const lt=new t.Dict(H);Q.set("BS",lt),lt.set("W",at),Q.set("C",Array.from(Y,pt=>pt/255)),Q.set("CA",G);const ut=new t.Dict(H);return Q.set("AP",ut),V?ut.set("N",V):ut.set("N",z),Q}static async createNewAppearanceStream(O,H,V){const{color:z,rect:Y,paths:G,thickness:K,opacity:et}=O,nt=[`${K} w 1 J 1 j`,`${(0,L.getPdfColor)(z,!1)}`];et!==1&&nt.push("/R0 gs");const at=[];for(const{bezier:pt}of G){at.length=0,at.push(`${(0,_.numberToString)(pt[0])} ${(0,_.numberToString)(pt[1])} m`);for(let yt=2,Et=pt.length;yt(et.push(`${nt[0].x} ${nt[0].y} m`,`${nt[1].x} ${nt[1].y} l`,`${nt[3].x} ${nt[3].y} l`,`${nt[2].x} ${nt[2].y} l`,"f"),[nt[0].x,nt[1].x,nt[3].y,nt[1].y])})}}else this.data.popupRef=null}}class tt extends P{constructor(O){super(O);const{dict:H,xref:V}=O;if(this.data.annotationType=n.AnnotationType.UNDERLINE,this.data.quadPoints=y(H,null)){if(!this.appearance){const z=this.color?l(this.color):[0,0,0],Y=H.get("CA");this._setDefaultAppearance({xref:V,extra:"[] 0 d 0.571 w",strokeColor:z,strokeAlpha:Y,pointsCallback:(G,K)=>(G.push(`${K[2].x} ${K[2].y+1.3} m`,`${K[3].x} ${K[3].y+1.3} l`,"S"),[K[0].x,K[1].x,K[3].y,K[1].y])})}}else this.data.popupRef=null}}class it extends P{constructor(O){super(O);const{dict:H,xref:V}=O;if(this.data.annotationType=n.AnnotationType.SQUIGGLY,this.data.quadPoints=y(H,null)){if(!this.appearance){const z=this.color?l(this.color):[0,0,0],Y=H.get("CA");this._setDefaultAppearance({xref:V,extra:"[] 0 d 1 w",strokeColor:z,strokeAlpha:Y,pointsCallback:(G,K)=>{const et=(K[0].y-K[2].y)/6;let nt=et,at=K[2].x;const Q=K[2].y,lt=K[3].x;G.push(`${at} ${Q+nt} m`);do at+=2,nt=nt===0?et:0,G.push(`${at} ${Q+nt} l`);while(at(G.push((K[0].x+K[2].x)/2+" "+(K[0].y+K[2].y)/2+" m",(K[1].x+K[3].x)/2+" "+(K[1].y+K[3].y)/2+" l","S"),[K[0].x,K[1].x,K[3].y,K[1].y])})}}else this.data.popupRef=null}}class X extends P{constructor(O){super(O),this.data.annotationType=n.AnnotationType.STAMP,this.data.hasOwnCanvas=this.data.noRotate}static async createImage(O,H){const{width:V,height:z}=O,Y=new OffscreenCanvas(V,z),G=Y.getContext("2d",{alpha:!0});G.drawImage(O,0,0);const K=G.getImageData(0,0,V,z).data,et=new Uint32Array(K.buffer),nt=et.some(n.FeatureTest.isLittleEndian?yt=>yt>>>24!=255:yt=>(255&yt)!=255);nt&&(G.fillStyle="white",G.fillRect(0,0,V,z),G.drawImage(O,0,0));const at=Y.convertToBlob({type:"image/jpeg",quality:1}).then(yt=>yt.arrayBuffer()),Q=t.Name.get("XObject"),lt=t.Name.get("Image"),ut=new t.Dict(H);ut.set("Type",Q),ut.set("Subtype",lt),ut.set("BitsPerComponent",8),ut.set("ColorSpace",t.Name.get("DeviceRGB")),ut.set("Filter",t.Name.get("DCTDecode")),ut.set("BBox",[0,0,V,z]),ut.set("Width",V),ut.set("Height",z);let pt=null;if(nt){const yt=new Uint8Array(et.length);if(n.FeatureTest.isLittleEndian)for(let Tt=0,xt=et.length;Tt>>24;else for(let Tt=0,xt=et.length;Tt=0&&G<=1?G:null}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.FakeUnicodeFont=void 0,M.createDefaultAppearance=function({fontSize:b,fontName:F,fontColor:u}){return`/${(0,_.escapePDFName)(F)} ${b} Tf ${i(u,!0)}`},M.getPdfColor=i,M.parseAppearanceStream=function(b,F,u){return new d(b,F,u).parse()},M.parseDefaultAppearance=function(b){return new T(b).parse()};var n=Z(4),_=Z(3),L=Z(2),t=Z(12),e=Z(13),a=Z(59),v=Z(57),A=Z(8);class T extends e.EvaluatorPreprocessor{constructor(b){super(new A.StringStream(b))}parse(){const b={fn:0,args:[]},F={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;b.args.length=0,!!this.read(b);){if(this.savedStatesDepth!==0)continue;const{fn:u,args:l}=b;switch(0|u){case L.OPS.setFont:const[y,N]=l;y instanceof n.Name&&(F.fontName=y.name),typeof N=="number"&&N>0&&(F.fontSize=N);break;case L.OPS.setFillRGBColor:t.ColorSpace.singletons.rgb.getRgbItem(l,0,F.fontColor,0);break;case L.OPS.setFillGray:t.ColorSpace.singletons.gray.getRgbItem(l,0,F.fontColor,0);break;case L.OPS.setFillCMYKColor:t.ColorSpace.singletons.cmyk.getRgbItem(l,0,F.fontColor,0)}}}catch(u){(0,L.warn)(`parseDefaultAppearance - ignoring errors: "${u}".`)}return F}}class d extends e.EvaluatorPreprocessor{constructor(b,F,u){var l;super(b),this.stream=b,this.evaluatorOptions=F,this.xref=u,this.resources=(l=b.dict)==null?void 0:l.get("Resources")}parse(){const b={fn:0,args:[]};let F={scaleFactor:1,fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3),fillColorSpace:t.ColorSpace.singletons.gray},u=!1;const l=[];try{for(;b.args.length=0,!(u||!this.read(b));){const{fn:y,args:N}=b;switch(0|y){case L.OPS.save:l.push({scaleFactor:F.scaleFactor,fontSize:F.fontSize,fontName:F.fontName,fontColor:F.fontColor.slice(),fillColorSpace:F.fillColorSpace});break;case L.OPS.restore:F=l.pop()||F;break;case L.OPS.setTextMatrix:F.scaleFactor*=Math.hypot(N[0],N[1]);break;case L.OPS.setFont:const[U,$]=N;U instanceof n.Name&&(F.fontName=U.name),typeof $=="number"&&$>0&&(F.fontSize=$*F.scaleFactor);break;case L.OPS.setFillColorSpace:F.fillColorSpace=t.ColorSpace.parse({cs:N[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:this._localColorSpaceCache});break;case L.OPS.setFillColor:F.fillColorSpace.getRgbItem(N,0,F.fontColor,0);break;case L.OPS.setFillRGBColor:t.ColorSpace.singletons.rgb.getRgbItem(N,0,F.fontColor,0);break;case L.OPS.setFillGray:t.ColorSpace.singletons.gray.getRgbItem(N,0,F.fontColor,0);break;case L.OPS.setFillCMYKColor:t.ColorSpace.singletons.cmyk.getRgbItem(N,0,F.fontColor,0);break;case L.OPS.showText:case L.OPS.showSpacedText:case L.OPS.nextLineShowText:case L.OPS.nextLineSetSpacingShowText:u=!0}}}catch(y){(0,L.warn)(`parseAppearanceStream - ignoring errors: "${y}".`)}return this.stream.reset(),delete F.scaleFactor,delete F.fillColorSpace,F}get _localColorSpaceCache(){return(0,L.shadow)(this,"_localColorSpaceCache",new a.LocalColorSpaceCache)}get _pdfFunctionFactory(){const b=new v.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.evaluatorOptions.isEvalSupported});return(0,L.shadow)(this,"_pdfFunctionFactory",b)}}function i(p,b){if(p[0]===p[1]&&p[1]===p[2]){const F=p[0]/255;return`${(0,_.numberToString)(F)} ${b?"g":"G"}`}return Array.from(p,F=>(0,_.numberToString)(F/255)).join(" ")+" "+(b?"rg":"RG")}class C{constructor(b,F){this.xref=b,this.widths=null,this.firstChar=1/0,this.lastChar=-1/0,this.fontFamily=F;const u=new OffscreenCanvas(1,1);this.ctxMeasure=u.getContext("2d"),C._fontNameId||(C._fontNameId=1),this.fontName=n.Name.get(`InvalidPDFjsFont_${F}_${C._fontNameId++}`)}get toUnicodeRef(){if(!C._toUnicodeRef){const b=`/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> endcodespacerange 1 beginbfrange <0000> <0000> endbfrange endcmap CMapName currentdict /CMap defineresource pop end end`,F=C.toUnicodeStream=new A.StringStream(b),u=new n.Dict(this.xref);F.dict=u,u.set("Length",b.length),C._toUnicodeRef=this.xref.getNewPersistentRef(F)}return C._toUnicodeRef}get fontDescriptorRef(){if(!C._fontDescriptorRef){const b=new n.Dict(this.xref);b.set("Type",n.Name.get("FontDescriptor")),b.set("FontName",this.fontName),b.set("FontFamily","MyriadPro Regular"),b.set("FontBBox",[0,0,0,0]),b.set("FontStretch",n.Name.get("Normal")),b.set("FontWeight",400),b.set("ItalicAngle",0),C._fontDescriptorRef=this.xref.getNewPersistentRef(b)}return C._fontDescriptorRef}get descendantFontRef(){const b=new n.Dict(this.xref);b.set("BaseFont",this.fontName),b.set("Type",n.Name.get("Font")),b.set("Subtype",n.Name.get("CIDFontType0")),b.set("CIDToGIDMap",n.Name.get("Identity")),b.set("FirstChar",this.firstChar),b.set("LastChar",this.lastChar),b.set("FontDescriptor",this.fontDescriptorRef),b.set("DW",1e3);const F=[],u=[...this.widths.entries()].sort();let l=null,y=null;for(const[U,$]of u)l?U===l+y.length?y.push($):(F.push(l,y),l=U,y=[$]):(l=U,y=[$]);l&&F.push(l,y),b.set("W",F);const N=new n.Dict(this.xref);return N.set("Ordering","Identity"),N.set("Registry","Adobe"),N.set("Supplement",0),b.set("CIDSystemInfo",N),this.xref.getNewPersistentRef(b)}get baseFontRef(){const b=new n.Dict(this.xref);return b.set("BaseFont",this.fontName),b.set("Type",n.Name.get("Font")),b.set("Subtype",n.Name.get("Type0")),b.set("Encoding",n.Name.get("Identity-H")),b.set("DescendantFonts",[this.descendantFontRef]),b.set("ToUnicode",this.toUnicodeRef),this.xref.getNewPersistentRef(b)}get resources(){const b=new n.Dict(this.xref),F=new n.Dict(this.xref);return F.set(this.fontName.name,this.baseFontRef),b.set("Font",F),b}_createContext(){return this.widths=new Map,this.ctxMeasure.font=`1000px ${this.fontFamily}`,this.ctxMeasure}createFontResources(b){const F=this._createContext();for(const u of b.split(/\r\n?|\n/))for(const l of u.split("")){const y=l.charCodeAt(0);if(this.widths.has(y))continue;const N=F.measureText(l),U=Math.ceil(N.width);this.widths.set(y,U),this.firstChar=Math.min(y,this.firstChar),this.lastChar=Math.max(y,this.lastChar)}return this.resources}createAppearance(b,F,u,l,y,N){const U=this._createContext(),$=[];let P=-1/0;for(const it of b.split(/\r\n?|\n/)){$.push(it);const st=U.measureText(it).width;P=Math.max(P,st);for(const X of it.split("")){const J=X.charCodeAt(0);let j=this.widths.get(J);if(j===void 0){const O=U.measureText(X);j=Math.ceil(O.width),this.widths.set(J,j),this.firstChar=Math.min(J,this.firstChar),this.lastChar=Math.max(J,this.lastChar)}}}P*=l/1e3;const[R,o,g,x]=F;let E=g-R,D=x-o;u%180!=0&&([E,D]=[D,E]);let q=1;P>E&&(q=E/P);let W=1;const w=L.LINE_FACTOR*l,s=L.LINE_DESCENT_FACTOR*l,c=w*$.length;c>D&&(W=D/c);const S=l*Math.min(q,W),h=["q",`0 0 ${(0,_.numberToString)(E)} ${(0,_.numberToString)(D)} re W n`,"BT",`1 0 0 1 0 ${(0,_.numberToString)(D+s)} Tm 0 Tc ${i(y,!0)}`,`/${this.fontName.name} ${(0,_.numberToString)(S)} Tf`],{resources:m}=this;if((N=typeof N=="number"&&N>=0&&N<=1?N:1)!==1){h.push("/R0 gs");const it=new n.Dict(this.xref),st=new n.Dict(this.xref);st.set("ca",N),st.set("CA",N),st.set("Type",n.Name.get("ExtGState")),it.set("R0",st),m.set("ExtGState",it)}const k=(0,_.numberToString)(w);for(const it of $)h.push(`0 -${k} Td <${(0,_.stringToUTF16HexString)(it)}> Tj`);h.push("ET","Q");const I=h.join(` `),B=new n.Dict(this.xref);if(B.set("Subtype",n.Name.get("Form")),B.set("Type",n.Name.get("XObject")),B.set("BBox",[0,0,E,D]),B.set("Length",I.length),B.set("Resources",m),u){const it=(0,_.getRotationMatrix)(u,E,D);B.set("Matrix",it)}const tt=new A.StringStream(I);return tt.dict=B,tt}}M.FakeUnicodeFont=C},(vt,M,Z)=>{var F,Wi,l,Vi,N,U,$,P,R,o,g,x,E,Je,q,Rr,w,Dr,c,Mn,h,Ze,k,Qe,B,Lr,it,Nr,X,Br,j,Ki,V,Rn,Y,Dn,K,Yi;Object.defineProperty(M,"__esModule",{value:!0}),M.ColorSpace=void 0;var n=Z(2),_=Z(4),L=Z(5),t=Z(3);class e{constructor(at,Q){this.constructor===e&&(0,n.unreachable)("Cannot initialize ColorSpace."),this.name=at,this.numComps=Q}getRgb(at,Q){const lt=new Uint8ClampedArray(3);return this.getRgbItem(at,Q,lt,0),lt}getRgbItem(at,Q,lt,ut){(0,n.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(at,Q,lt,ut,pt,yt,Et){(0,n.unreachable)("Should not call ColorSpace.getRgbBuffer")}getOutputLength(at,Q){(0,n.unreachable)("Should not call ColorSpace.getOutputLength")}isPassthrough(at){return!1}isDefaultDecode(at,Q){return e.isDefaultDecode(at,this.numComps)}fillRgb(at,Q,lt,ut,pt,yt,Et,Tt,xt){const wt=Q*lt;let St=null;const Rt=1<Rt&&this.name!=="DeviceGray"&&this.name!=="DeviceRGB"){const Gt=Et<=8?new Uint8Array(Rt):new Uint16Array(Rt);for(let Ft=0;Ft=.99554525?1:Lt(this,h,Ze).call(this,0,1,1.055*Q**.4166666666666667-.055)},h=new WeakSet,Ze=function(Q,lt,ut){return Math.max(Q,Math.min(lt,ut))},k=new WeakSet,Qe=function(Q){return Q<0?-Lt(this,k,Qe).call(this,-Q):Q>8?((Q+16)/116)**3:Q*ot(H,x)},B=new WeakSet,Lr=function(Q,lt,ut){if(Q[0]===0&&Q[1]===0&&Q[2]===0){ut[0]=lt[0],ut[1]=lt[1],ut[2]=lt[2];return}const pt=Lt(this,k,Qe).call(this,0),yt=(1-pt)/(1-Lt(this,k,Qe).call(this,Q[0])),Et=1-yt,Tt=(1-pt)/(1-Lt(this,k,Qe).call(this,Q[1])),xt=1-Tt,wt=(1-pt)/(1-Lt(this,k,Qe).call(this,Q[2])),St=1-wt;ut[0]=lt[0]*yt+Et,ut[1]=lt[1]*Tt+xt,ut[2]=lt[2]*wt+St},it=new WeakSet,Nr=function(Q,lt,ut){if(Q[0]===1&&Q[2]===1){ut[0]=lt[0],ut[1]=lt[1],ut[2]=lt[2];return}const pt=ut;Lt(this,E,Je).call(this,ot(H,N),lt,pt);const yt=ot(H,R);Lt(this,q,Rr).call(this,Q,pt,yt),Lt(this,E,Je).call(this,ot(H,U),yt,ut)},X=new WeakSet,Br=function(Q,lt,ut){const pt=ut;Lt(this,E,Je).call(this,ot(H,N),lt,pt);const yt=ot(H,R);Lt(this,w,Dr).call(this,Q,pt,yt),Lt(this,E,Je).call(this,ot(H,U),yt,ut)},j=new WeakSet,Ki=function(Q,lt,ut,pt,yt){const Et=Lt(this,h,Ze).call(this,0,1,Q[lt]*yt),Tt=Lt(this,h,Ze).call(this,0,1,Q[lt+1]*yt),xt=Lt(this,h,Ze).call(this,0,1,Q[lt+2]*yt),wt=Et===1?1:Et**this.GR,St=Tt===1?1:Tt**this.GG,Rt=xt===1?1:xt**this.GB,Ct=this.MXA*wt+this.MXB*St+this.MXC*Rt,Gt=this.MYA*wt+this.MYB*St+this.MYC*Rt,Zt=this.MZA*wt+this.MZB*St+this.MZC*Rt,Ft=ot(H,o);Ft[0]=Ct,Ft[1]=Gt,Ft[2]=Zt;const Ut=ot(H,g);Lt(this,it,Nr).call(this,this.whitePoint,Ft,Ut);const Vt=ot(H,o);Lt(this,B,Lr).call(this,this.blackPoint,Ut,Vt);const Wt=ot(H,g);Lt(this,X,Br).call(this,ot(H,P),Vt,Wt);const Yt=ot(H,o);Lt(this,E,Je).call(this,ot(H,$),Wt,Yt),ut[pt]=255*Lt(this,c,Mn).call(this,Yt[0]),ut[pt+1]=255*Lt(this,c,Mn).call(this,Yt[1]),ut[pt+2]=255*Lt(this,c,Mn).call(this,Yt[2])},_t(H,N,new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296])),_t(H,U,new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867])),_t(H,$,new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252])),_t(H,P,new Float32Array([1,1,1])),_t(H,R,new Float32Array(3)),_t(H,o,new Float32Array(3)),_t(H,g,new Float32Array(3)),_t(H,x,.0011070564598794539);let p=H;class b extends e{constructor(Q,lt,ut){super("Lab",3);_t(this,V);_t(this,Y);_t(this,K);if(!Q)throw new n.FormatError("WhitePoint missing - required for color space Lab");if([this.XW,this.YW,this.ZW]=Q,[this.amin,this.amax,this.bmin,this.bmax]=ut||[-100,100,-100,100],[this.XB,this.YB,this.ZB]=lt||[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(Q,lt,ut,pt){Lt(this,K,Yi).call(this,Q,lt,!1,ut,pt)}getRgbBuffer(Q,lt,ut,pt,yt,Et,Tt){const xt=(1<=.20689655172413793?Q**3:.12841854934601665*(Q-.13793103448275862)},Y=new WeakSet,Dn=function(Q,lt,ut,pt){return ut+Q*(pt-ut)/lt},K=new WeakSet,Yi=function(Q,lt,ut,pt,yt){let Et=Q[lt],Tt=Q[lt+1],xt=Q[lt+2];ut!==!1&&(Et=Lt(this,Y,Dn).call(this,Et,ut,0,100),Tt=Lt(this,Y,Dn).call(this,Tt,ut,this.amin,this.amax),xt=Lt(this,Y,Dn).call(this,xt,ut,this.bmin,this.bmax)),Tt>this.amax?Tt=this.amax:Ttthis.bmax?xt=this.bmax:xt{Object.defineProperty(M,"__esModule",{value:!0}),M.PartialEvaluator=M.EvaluatorPreprocessor=void 0;var n=Z(2),_=Z(14),L=Z(4),t=Z(34),e=Z(37),a=Z(41),v=Z(50),A=Z(51),T=Z(42),d=Z(57),i=Z(16),C=Z(59),p=Z(8),b=Z(5),F=Z(60),u=Z(12),l=Z(18),y=Z(38),N=Z(61),U=Z(39),$=Z(45),P=Z(40),R=Z(62),o=Z(63),g=Z(64),x=Z(65);const E=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,isOffscreenCanvasSupported:!1,canvasMaxAreaInBytes:-1,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),D=1,q=2,W=Promise.resolve();function w(st,X=!1){if(Array.isArray(st)){for(const J of st){const j=w(J,!0);if(j)return j}return(0,n.warn)(`Unsupported blend mode Array: ${st}`),"source-over"}if(!(st instanceof L.Name))return X?null:"source-over";switch(st.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 X?null:((0,n.warn)(`Unsupported blend mode: ${st.name}`),"source-over")}function s(st){var X;st.fn===n.OPS.paintImageMaskXObject&&((X=st.args[0])==null?void 0:X.count)>0&&st.args[0].count++}const tt=class tt{constructor(){this.reset()}check(){return++this.checkednt){const yt="Image exceeded maximum allowed size and was removed.";if(this.options.ignoreErrors){(0,n.warn)(yt);return}throw new Error(yt)}let at;Y.has("OC")&&(at=await this.parseMarkedContentProps(Y.get("OC"),X));let Q,lt;if(Y.get("IM","ImageMask")){const yt=Y.get("I","Interpolate"),Et=K+7>>3,Tt=J.getBytes(Et*et),xt=Y.getArray("D","Decode");if(this.parsingType3Font){if(Q=x.PDFImage.createRawMask({imgArray:Tt,width:K,height:et,imageIsFromDecodeStream:J instanceof l.DecodeStream,inverseDecode:(xt==null?void 0:xt[0])>0,interpolate:yt}),Q.cached=!!H,lt=[Q],O.addImageOps(n.OPS.paintImageMaskXObject,lt,at),H){const St={fn:n.OPS.paintImageMaskXObject,args:lt,optionalContent:at};V.set(H,G,St),G&&this._regionalImageCache.set(null,G,St)}return}if(Q=await x.PDFImage.createMask({imgArray:Tt,width:K,height:et,imageIsFromDecodeStream:J instanceof l.DecodeStream,inverseDecode:(xt==null?void 0:xt[0])>0,interpolate:yt,isOffscreenCanvasSupported:this.options.isOffscreenCanvasSupported}),Q.isSingleOpaquePixel){if(O.addImageOps(n.OPS.paintSolidColorImageMask,[],at),H){const St={fn:n.OPS.paintSolidColorImageMask,args:[],optionalContent:at};V.set(H,G,St),G&&this._regionalImageCache.set(null,G,St)}return}const wt=`mask_${this.idFactory.createObjId()}`;if(O.addDependency(wt),this._sendImgData(wt,Q),lt=[{data:wt,width:Q.width,height:Q.height,interpolate:Q.interpolate,count:1}],O.addImageOps(n.OPS.paintImageMaskXObject,lt,at),H){const St={fn:n.OPS.paintImageMaskXObject,args:lt,optionalContent:at};V.set(H,G,St),G&&this._regionalImageCache.set(null,G,St)}return}if(j&&!Y.has("SMask")&&!Y.has("Mask")&&K+et<200){Q=await new x.PDFImage({xref:this.xref,res:X,image:J,isInline:j,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:z}).createImageData(!0,!1),O.isOffscreenCanvasSupported=this.options.isOffscreenCanvasSupported,O.addImageOps(n.OPS.paintInlineImageXObject,[Q],at);return}let ut=`img_${this.idFactory.createObjId()}`,pt=!1;if(this.parsingType3Font?ut=`${this.idFactory.getDocId()}_type3_${ut}`:G&&(pt=this.globalImageCache.shouldCache(G,this.pageIndex),pt&&(ut=`${this.idFactory.getDocId()}_${ut}`)),O.addDependency(ut),lt=[ut,K,et],x.PDFImage.buildImage({xref:this.xref,res:X,image:J,isInline:j,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:z}).then(async yt=>{if(Q=await yt.createImageData(!1,this.options.isOffscreenCanvasSupported),H&&G&&pt){const Et=Q.bitmap?Q.width*Q.height*4:Q.data.length;this.globalImageCache.addByteSize(G,Et)}return this._sendImgData(ut,Q,pt)}).catch(yt=>((0,n.warn)(`Unable to decode image "${ut}": "${yt}".`),this._sendImgData(ut,null,pt))),O.addImageOps(n.OPS.paintImageXObject,lt,at),H){const yt={fn:n.OPS.paintImageXObject,args:lt,optionalContent:at};V.set(H,G,yt),G&&(this._regionalImageCache.set(null,G,yt),pt&&((0,n.assert)(!j,"Cannot cache an inline image globally."),this.globalImageCache.setData(G,{objId:ut,fn:n.OPS.paintImageXObject,args:lt,optionalContent:at,byteSize:0})))}}handleSMask(X,J,j,O,H,V){const z=X.get("G"),Y={subtype:X.get("S").name,backdrop:X.get("BC")},G=X.get("TR");if((0,d.isPDFFunction)(G)){const K=this._pdfFunctionFactory.create(G),et=new Uint8Array(256),nt=new Float32Array(1);for(let at=0;at<256;at++)nt[0]=at/255,K(nt,0,nt,0),et[at]=255*nt[0]|0;Y.transferMap=et}return this.buildFormXObject(J,z,Y,j,O,H.state.clone(),V)}handleTransferFunction(X){let J;if(Array.isArray(X))J=X;else{if(!(0,d.isPDFFunction)(X))return null;J=[X]}const j=[];let O=0,H=0;for(const V of J){const z=this.xref.fetchIfRef(V);if(O++,(0,L.isName)(z,"Identity")){j.push(null);continue}if(!(0,d.isPDFFunction)(z))return null;const Y=this._pdfFunctionFactory.create(z),G=new Uint8Array(256),K=new Float32Array(1);for(let et=0;et<256;et++)K[0]=et/255,Y(K,0,K,0),G[et]=255*K[0]|0;j.push(G),H++}return O!==1&&O!==4||H===0?null:j}handleTilingType(X,J,j,O,H,V,z,Y){const G=new g.OperatorList,K=L.Dict.merge({xref:this.xref,dictArray:[H.get("Resources"),j]});return this.getOperatorList({stream:O,task:z,resources:K,operatorList:G}).then(function(){const et=G.getIR(),nt=(0,v.getTilingPatternIR)(et,H,J);V.addDependencies(G.dependencies),V.addOp(X,nt),H.objId&&Y.set(null,H.objId,{operatorListIR:et,dict:H})}).catch(et=>{if(!(et instanceof n.AbortException)){if(!this.options.ignoreErrors)throw et;(0,n.warn)(`handleTilingType - ignoring pattern: "${et}".`)}})}handleSetFont(X,J,j,O,H,V,z=null,Y=null){const G=(J==null?void 0:J[0])instanceof L.Name?J[0].name:null;return this.loadFont(G,j,X,z,Y).then(K=>K.font.isType3Font?K.loadType3Data(this,X,H).then(function(){return O.addDependencies(K.type3Dependencies),K}).catch(et=>new h({loadedName:"g_font_error",font:new t.ErrorFont(`Type3 font load error: ${et}`),dict:K.font,evaluatorOptions:this.options})):K).then(K=>(V.font=K.font,K.send(this.handler),K.loadedName))}handleText(X,J){const j=J.font,O=j.charsToGlyphs(X);return j.data&&(J.textRenderingMode&n.TextRenderingMode.ADD_TO_PATH_FLAG||J.fillColorSpace.name==="Pattern"||j.disableFontFace||this.options.disableFontFace)&&S.buildFontPaths(j,O,this.handler,this.options),O}ensureStateFont(X){if(X.font)return;const J=new n.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(!this.options.ignoreErrors)throw J;(0,n.warn)(`ensureStateFont: "${J}".`)}async setGState({resources:X,gState:J,operatorList:j,cacheKey:O,task:H,stateManager:V,localGStateCache:z,localColorSpaceCache:Y}){const G=J.objId;let K=!0;const et=[];let nt=Promise.resolve();for(const at of J.getKeys()){const Q=J.get(at);switch(at){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":et.push([at,Q]);break;case"Font":K=!1,nt=nt.then(()=>this.handleSetFont(X,null,Q[0],j,H,V.state).then(function(ut){j.addDependency(ut),et.push([at,[ut,Q[1]]])}));break;case"BM":et.push([at,w(Q)]);break;case"SMask":if((0,L.isName)(Q,"None")){et.push([at,!1]);break}Q instanceof L.Dict?(K=!1,nt=nt.then(()=>this.handleSMask(Q,X,j,H,V,Y)),et.push([at,!0])):(0,n.warn)("Unsupported SMask type");break;case"TR":const lt=this.handleTransferFunction(Q);et.push([at,lt]);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 "+at);break;default:(0,n.info)("Unknown graphic state operator "+at)}}return nt.then(function(){et.length>0&&j.addOp(n.OPS.setGState,[et]),K&&z.set(O,G,et)})}loadFont(X,J,j,O=null,H=null){const V=async()=>new h({loadedName:"g_font_error",font:new t.ErrorFont(`Font "${X}" is not available.`),dict:J,evaluatorOptions:this.options});let z;if(J)J instanceof L.Ref&&(z=J);else{const Q=j.get("Font");Q&&(z=Q.getRaw(X))}if(z){if(this.parsingType3Font&&this.type3FontRefs.has(z))return V();if(this.fontCache.has(z))return this.fontCache.get(z);J=this.xref.fetchIfRef(z)}if(!(J instanceof L.Dict)){if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,n.warn)(`Font "${X}" is not available.`),V();(0,n.warn)(`Font "${X}" is not available -- attempting to fallback to a default font.`),J=O||S.fallbackFontDict}if(J.cacheKey&&this.fontCache.has(J.cacheKey))return this.fontCache.get(J.cacheKey);const Y=new n.PromiseCapability;let G;try{G=this.preEvaluateFont(J),G.cssFontInfo=H}catch(Q){return(0,n.warn)(`loadFont - preEvaluateFont failed: "${Q}".`),V()}const{descriptor:K,hash:et}=G,nt=z instanceof L.Ref;let at;if(et&&K instanceof L.Dict){const Q=K.fontAliases||(K.fontAliases=Object.create(null));if(Q[et]){const lt=Q[et].aliasRef;if(nt&<&&this.fontCache.has(lt))return this.fontCache.putAlias(z,lt),this.fontCache.get(z)}else Q[et]={fontID:this.idFactory.createFontId()};nt&&(Q[et].aliasRef=z),at=Q[et].fontID}else at=this.idFactory.createFontId();return(0,n.assert)(at==null?void 0:at.startsWith("f"),'The "fontID" must be (correctly) defined.'),nt?this.fontCache.put(z,Y.promise):(J.cacheKey=`cacheKey_${at}`,this.fontCache.put(J.cacheKey,Y.promise)),J.loadedName=`${this.idFactory.getDocId()}_${at}`,this.translateFont(G).then(Q=>{Y.resolve(new h({loadedName:J.loadedName,font:Q,dict:J,evaluatorOptions:this.options}))}).catch(Q=>{(0,n.warn)(`loadFont - translateFont failed: "${Q}".`),Y.resolve(new h({loadedName:J.loadedName,font:new t.ErrorFont(Q instanceof Error?Q.message:Q),dict:J,evaluatorOptions:this.options}))}),Y.promise}buildPath(X,J,j,O=!1){const H=X.length-1;if(j||(j=[]),H<0||X.fnArray[H]!==n.OPS.constructPath){O&&((0,n.warn)(`Encountered path operator "${J}" inside of a text object.`),X.addOp(n.OPS.save,null));let V;switch(J){case n.OPS.rectangle:const z=j[0]+j[2],Y=j[1]+j[3];V=[Math.min(j[0],z),Math.max(j[0],z),Math.min(j[1],Y),Math.max(j[1],Y)];break;case n.OPS.moveTo:case n.OPS.lineTo:V=[j[0],j[0],j[1],j[1]];break;default:V=[1/0,-1/0,1/0,-1/0]}X.addOp(n.OPS.constructPath,[[J],j,V]),O&&X.addOp(n.OPS.restore,null)}else{const V=X.argsArray[H];V[0].push(J),V[1].push(...j);const z=V[2];switch(J){case n.OPS.rectangle:const Y=j[0]+j[2],G=j[1]+j[3];z[0]=Math.min(z[0],j[0],Y),z[1]=Math.max(z[1],j[0],Y),z[2]=Math.min(z[2],j[1],G),z[3]=Math.max(z[3],j[1],G);break;case n.OPS.moveTo:case n.OPS.lineTo:z[0]=Math.min(z[0],j[0]),z[1]=Math.max(z[1],j[0]),z[2]=Math.min(z[2],j[1]),z[3]=Math.max(z[3],j[1])}}}parseColorSpace({cs:X,resources:J,localColorSpaceCache:j}){return u.ColorSpace.parseAsync({cs:X,xref:this.xref,resources:J,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:j}).catch(O=>{if(O instanceof n.AbortException)return null;if(this.options.ignoreErrors)return(0,n.warn)(`parseColorSpace - ignoring ColorSpace: "${O}".`),null;throw O})}parseShading({shading:X,resources:J,localColorSpaceCache:j,localShadingPatternCache:O}){let H=O.get(X);if(!H){const V=v.Pattern.parseShading(X,this.xref,J,this._pdfFunctionFactory,j).getIR();H=`pattern_${this.idFactory.createObjId()}`,this.parsingType3Font&&(H=`${this.idFactory.getDocId()}_type3_${H}`),O.set(X,H),this.parsingType3Font?this.handler.send("commonobj",[H,"Pattern",V]):this.handler.send("obj",[H,this.pageIndex,"Pattern",V])}return H}handleColorN(X,J,j,O,H,V,z,Y,G,K){const et=j.pop();if(et instanceof L.Name){const nt=H.getRaw(et.name),at=nt instanceof L.Ref&&G.getByRef(nt);if(at)try{const lt=O.base?O.base.getRgb(j,0):null,ut=(0,v.getTilingPatternIR)(at.operatorListIR,at.dict,lt);X.addOp(J,ut);return}catch{}const Q=this.xref.fetchIfRef(nt);if(Q){const lt=Q instanceof b.BaseStream?Q.dict:Q,ut=lt.get("PatternType");if(ut===D){const pt=O.base?O.base.getRgb(j,0):null;return this.handleTilingType(J,pt,V,Q,lt,X,z,G)}if(ut===q){const pt=lt.get("Shading"),yt=lt.getArray("Matrix"),Et=this.parseShading({shading:pt,resources:V,localColorSpaceCache:Y,localShadingPatternCache:K});X.addOp(J,["Shading",Et,yt]);return}throw new n.FormatError(`Unknown PatternType: ${ut}`)}}throw new n.FormatError(`Unknown PatternName: ${et}`)}_parseVisibilityExpression(X,J,j){if(++J>10){(0,n.warn)("Visibility expression is too deeply nested");return}const O=X.length,H=this.xref.fetchIfRef(X[0]);if(!(O<2)&&H instanceof L.Name){switch(H.name){case"And":case"Or":case"Not":j.push(H.name);break;default:(0,n.warn)(`Invalid operator ${H.name} in visibility expression`);return}for(let V=1;V0)return{type:"OCMD",expression:Y}}const z=j.get("OCGs");if(Array.isArray(z)||z instanceof L.Dict){const Y=[];if(Array.isArray(z))for(const G of z)Y.push(G.toString());else Y.push(z.objId);return{type:O,ids:Y,policy:j.get("P")instanceof L.Name?j.get("P").name:null,expression:null}}if(z instanceof L.Ref)return{type:O,id:z.toString()}}return null}getOperatorList({stream:X,task:J,resources:j,operatorList:O,initialState:H=null,fallbackFontDict:V=null}){if(j||(j=L.Dict.empty),H||(H=new I),!O)throw new Error('getOperatorList: missing "operatorList" parameter');const z=this,Y=this.xref;let G=!1;const K=new C.LocalImageCache,et=new C.LocalColorSpaceCache,nt=new C.LocalGStateCache,at=new C.LocalTilingPatternCache,Q=new Map,lt=j.get("XObject")||L.Dict.empty,ut=j.get("Pattern")||L.Dict.empty,pt=new m(H),yt=new B(X,Y,pt),Et=new c;function Tt(xt){for(let wt=0,St=yt.savedStatesDepth;wt0&&O.addOp(n.OPS.setGState,[ht]),mt=null;continue}}Rt(new Promise(function(ht,gt){if(!Wt)throw new n.FormatError("GState must be referred to by name.");const bt=j.get("ExtGState");if(!(bt instanceof L.Dict))throw new n.FormatError("ExtGState should be a dictionary.");const Pt=bt.get(Vt);if(!(Pt instanceof L.Dict))throw new n.FormatError("GState should be a dictionary.");z.setGState({resources:j,gState:Pt,operatorList:O,cacheKey:Vt,task:J,stateManager:pt,localGStateCache:nt,localColorSpaceCache:et}).then(ht,gt)}).catch(function(ht){if(!(ht instanceof n.AbortException)){if(!z.options.ignoreErrors)throw ht;(0,n.warn)(`getOperatorList - ignoring ExtGState: "${ht}".`)}}));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:z.buildPath(O,rt,mt,G);continue;case n.OPS.markPoint:case n.OPS.markPointProps:case n.OPS.beginCompat:case n.OPS.endCompat:continue;case n.OPS.beginMarkedContentProps:if(!(mt[0]instanceof L.Name)){(0,n.warn)(`Expected name for beginMarkedContentProps arg0=${mt[0]}`);continue}if(mt[0].name==="OC"){Rt(z.parseMarkedContentProps(mt[1],j).then(ht=>{O.addOp(n.OPS.beginMarkedContentProps,["OC",ht])}).catch(ht=>{if(!(ht instanceof n.AbortException)){if(!z.options.ignoreErrors)throw ht;(0,n.warn)(`getOperatorList - ignoring beginMarkedContentProps: "${ht}".`)}}));return}mt=[mt[0].name,mt[1]instanceof L.Dict?mt[1].get("MCID"):null];break;case n.OPS.beginMarkedContent:case n.OPS.endMarkedContent:default:if(mt!==null){for(Zt=0,Ft=mt.length;Zt{if(!(xt instanceof n.AbortException)){if(!this.options.ignoreErrors)throw xt;(0,n.warn)(`getOperatorList - ignoring errors during "${J.name}" task: "${xt}".`),Tt()}})}getTextContent({stream:X,task:J,resources:j,stateManager:O=null,includeMarkedContent:H=!1,sink:V,seenStyles:z=new Set,viewBox:Y,markedContentData:G=null,disableNormalization:K=!1}){j||(j=L.Dict.empty),O||(O=new m(new k)),H&&(G||(G={level:0}));const et={items:[],styles:Object.create(null)},nt={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},at=[" "," "];let Q=0;function lt(rt){const ht=(Q+1)%2,gt=at[Q]!==" "&&at[ht]===" ";return at[Q]=rt,Q=ht,gt}function ut(){return at[Q]!==" "&&at[(Q+1)%2]===" "}function pt(){at[0]=at[1]=" ",Q=0}const yt=this,Et=this.xref,Tt=[];let xt=null;const wt=new C.LocalImageCache,St=new C.LocalGStateCache,Rt=new B(X,Et,O);let Ct;function Gt({width:rt=0,height:ht=0,transform:gt=nt.prevTransform,fontName:bt=nt.fontName}){et.items.push({str:" ",dir:"ltr",width:rt,height:ht,transform:gt,fontName:bt,hasEOL:!1})}function Zt(){const rt=Ct.font,ht=[Ct.fontSize*Ct.textHScale,0,0,Ct.fontSize,0,Ct.textRise];if(rt.isType3Font&&(Ct.fontSize<=1||rt.isCharBBox)&&!(0,n.isArrayEqual)(Ct.fontMatrix,n.FONT_IDENTITY_MATRIX)){const gt=rt.bbox[3]-rt.bbox[1];gt>0&&(ht[3]*=gt*Ct.fontMatrix[3])}return n.Util.transform(Ct.ctm,n.Util.transform(Ct.textMatrix,ht))}function Ft(){if(nt.initialized)return nt;const{font:rt,loadedName:ht}=Ct;z.has(ht)||(z.add(ht),et.styles[ht]={fontFamily:rt.fallbackName,ascent:rt.ascent,descent:rt.descent,vertical:rt.vertical}),nt.fontName=ht;const gt=nt.transform=Zt();rt.vertical?(nt.width=nt.totalWidth=Math.hypot(gt[0],gt[1]),nt.height=nt.totalHeight=0,nt.vertical=!0):(nt.width=nt.totalWidth=0,nt.height=nt.totalHeight=Math.hypot(gt[2],gt[3]),nt.vertical=!1);const bt=Math.hypot(Ct.textLineMatrix[0],Ct.textLineMatrix[1]),Pt=Math.hypot(Ct.ctm[0],Ct.ctm[1]);nt.textAdvanceScale=Pt*bt;const{fontSize:It}=Ct;return nt.trackingSpaceMin=.102*It,nt.notASpace=.03*It,nt.negativeSpaceMax=-.2*It,nt.spaceInFlowMin=.102*It,nt.spaceInFlowMax=.6*It,nt.hasEOL=!1,nt.initialized=!0,nt}function Ut(){if(!nt.initialized)return;const rt=Math.hypot(Ct.textLineMatrix[0],Ct.textLineMatrix[1]),ht=Math.hypot(Ct.ctm[0],Ct.ctm[1])*rt;ht!==nt.textAdvanceScale&&(nt.vertical?(nt.totalHeight+=nt.height*nt.textAdvanceScale,nt.height=0):(nt.totalWidth+=nt.width*nt.textAdvanceScale,nt.width=0),nt.textAdvanceScale=ht)}function Vt(rt,ht){return yt.loadFont(rt,ht,j).then(function(gt){return gt.font.isType3Font?gt.loadType3Data(yt,j,J).catch(function(){}).then(function(){return gt}):gt}).then(function(gt){Ct.loadedName=gt.loadedName,Ct.font=gt.font,Ct.fontMatrix=gt.font.fontMatrix||n.FONT_IDENTITY_MATRIX})}function Wt(rt,ht,gt){const bt=Math.hypot(gt[0],gt[1]);return[(gt[0]*rt+gt[1]*ht)/bt,(gt[2]*rt+gt[3]*ht)/bt]}function Yt(rt){var ee;const ht=Zt();let gt=ht[4],bt=ht[5];if((ee=Ct.font)!=null&&ee.vertical){if(gtY[2]||bt+rtY[3])return!1}else if(gt+rtY[2]||btY[3])return!1;if(!Ct.font||!nt.prevTransform)return!0;let Pt=nt.prevTransform[4],It=nt.prevTransform[5];if(Pt===gt&&It===bt)return!0;let Nt=-1;switch(ht[0]&&ht[1]===0&&ht[2]===0?Nt=ht[0]>0?0:180:ht[1]&&ht[0]===0&&ht[3]===0&&(Nt=ht[1]>0?90:270),Nt){case 0:break;case 90:[gt,bt]=[bt,gt],[Pt,It]=[It,Pt];break;case 180:[gt,bt,Pt,It]=[-gt,-bt,-Pt,-It];break;case 270:[gt,bt]=[-bt,-gt],[Pt,It]=[-It,-Pt];break;default:[gt,bt]=Wt(gt,bt,ht),[Pt,It]=Wt(Pt,It,nt.prevTransform)}if(Ct.font.vertical){const te=(It-bt)/nt.textAdvanceScale,oe=gt-Pt,le=Math.sign(nt.height);return te.5*nt.width?(Jt(),!0):(pt(),Xt(),!0):Math.abs(oe)>nt.width?(Jt(),!0):(te<=le*nt.notASpace&&pt(),te<=le*nt.trackingSpaceMin?ut()?(pt(),Xt(),Gt({height:Math.abs(te)})):nt.height+=te:Bt(te,nt.prevTransform,le)||(nt.str.length===0?(pt(),Gt({height:Math.abs(te)})):nt.height+=te),Math.abs(oe)>.25*nt.width&&Xt(),!0)}const Kt=(gt-Pt)/nt.textAdvanceScale,Qt=bt-It,ne=Math.sign(nt.width);return Kt.5*nt.height?(Jt(),!0):(pt(),Xt(),!0):Math.abs(Qt)>nt.height?(Jt(),!0):(Kt<=ne*nt.notASpace&&pt(),Kt<=ne*nt.trackingSpaceMin?ut()?(pt(),Xt(),Gt({width:Math.abs(Kt)})):nt.width+=Kt:Bt(Kt,nt.prevTransform,ne)||(nt.str.length===0?(pt(),Gt({width:Math.abs(Kt)})):nt.width+=Kt),Math.abs(Qt)>.25*nt.height&&Xt(),!0)}function re({chars:rt,extraSpacing:ht}){const gt=Ct.font;if(!rt){const It=Ct.charSpacing+ht;It&&(gt.vertical?Ct.translateTextMatrix(0,-It):Ct.translateTextMatrix(It*Ct.textHScale,0));return}const bt=gt.charsToGlyphs(rt),Pt=Ct.fontMatrix[0]*Ct.fontSize;for(let It=0,Nt=bt.length;It0){const ie=Tt.join("");Tt.length=0,re({chars:ie,extraSpacing:0})}break;case n.OPS.showText:if(!O.state.font){yt.ensureStateFont(O.state);continue}re({chars:Nt[0],extraSpacing:0});break;case n.OPS.nextLineShowText:if(!O.state.font){yt.ensureStateFont(O.state);continue}Ct.carriageReturn(),re({chars:Nt[0],extraSpacing:0});break;case n.OPS.nextLineSetSpacingShowText:if(!O.state.font){yt.ensureStateFont(O.state);continue}Ct.wordSpacing=Nt[0],Ct.charSpacing=Nt[1],Ct.carriageReturn(),re({chars:Nt[2],extraSpacing:0});break;case n.OPS.paintXObject:Xt(),xt||(xt=j.get("XObject")||L.Dict.empty);var ne=Nt[0]instanceof L.Name,ee=Nt[0].name;if(ne&&wt.getByName(ee))break;bt(new Promise(function(ie,ce){if(!ne)throw new n.FormatError("XObject must be referred to by name.");let se=xt.getRaw(ee);if(se instanceof L.Ref){if(wt.getByRef(se)){ie();return}if(yt.globalImageCache.getData(se,yt.pageIndex)){ie();return}se=Et.fetch(se)}if(!(se instanceof b.BaseStream))throw new n.FormatError("XObject should be a stream");const ue=se.dict.get("Subtype");if(!(ue instanceof L.Name))throw new n.FormatError("XObject should have a Name subtype");if(ue.name!=="Form"){wt.set(ee,se.dict.objId,!0),ie();return}const he=O.state.clone(),de=new m(he),ge=se.dict.getArray("Matrix");Array.isArray(ge)&&ge.length===6&&de.transform(ge),jt();const Ae={enqueueInvoked:!1,enqueue(Ee,Be){this.enqueueInvoked=!0,V.enqueue(Ee,Be)},get desiredSize(){return V.desiredSize},get ready(){return V.ready}};yt.getTextContent({stream:se,task:J,resources:se.dict.get("Resources")||j,stateManager:de,includeMarkedContent:H,sink:Ae,seenStyles:z,viewBox:Y,markedContentData:G,disableNormalization:K}).then(function(){Ae.enqueueInvoked||wt.set(ee,se.dict.objId,!0),ie()},ce)}).catch(function(ie){if(!(ie instanceof n.AbortException)){if(!yt.options.ignoreErrors)throw ie;(0,n.warn)(`getTextContent - ignoring XObject: "${ie}".`)}}));return;case n.OPS.setGState:if(ne=Nt[0]instanceof L.Name,ee=Nt[0].name,ne&&St.getByName(ee))break;bt(new Promise(function(ie,ce){if(!ne)throw new n.FormatError("GState must be referred to by name.");const se=j.get("ExtGState");if(!(se instanceof L.Dict))throw new n.FormatError("ExtGState should be a dictionary.");const ue=se.get(ee);if(!(ue instanceof L.Dict))throw new n.FormatError("GState should be a dictionary.");const he=ue.get("Font");he?(Xt(),Ct.fontName=null,Ct.fontSize=he[1],Vt(null,he[0]).then(ie,ce)):(St.set(ee,ue.objId,!0),ie())}).catch(function(ie){if(!(ie instanceof n.AbortException)){if(!yt.options.ignoreErrors)throw ie;(0,n.warn)(`getTextContent - ignoring ExtGState: "${ie}".`)}}));return;case n.OPS.beginMarkedContent:Xt(),H&&(G.level++,et.items.push({type:"beginMarkedContent",tag:Nt[0]instanceof L.Name?Nt[0].name:null}));break;case n.OPS.beginMarkedContentProps:if(Xt(),H){G.level++;let ie=null;Nt[1]instanceof L.Dict&&(ie=Nt[1].get("MCID")),et.items.push({type:"beginMarkedContentProps",id:Number.isInteger(ie)?`${yt.idFactory.getPageObjId()}_mc${ie}`:null,tag:Nt[0]instanceof L.Name?Nt[0].name:null})}break;case n.OPS.endMarkedContent:if(Xt(),H){if(G.level===0)break;G.level--,et.items.push({type:"endMarkedContent"})}break;case n.OPS.restore:!te||te.font===Ct.font&&te.fontSize===Ct.fontSize&&te.fontName===Ct.fontName||Xt()}if(et.items.length>=V.desiredSize){It=!0;break}}It?bt(W):(Xt(),jt(),ht())}).catch(rt=>{if(!(rt instanceof n.AbortException)){if(!this.options.ignoreErrors)throw rt;(0,n.warn)(`getTextContent - ignoring errors during "${J.name}" task: "${rt}".`),Xt(),jt()}})}extractDataStructures(X,J,j){const O=this.xref;let H;const V=this.readToUnicode(j.toUnicode||X.get("ToUnicode")||J.get("ToUnicode"));if(j.composite){const nt=X.get("CIDSystemInfo");nt instanceof L.Dict&&(j.cidSystemInfo={registry:(0,n.stringToPDFString)(nt.get("Registry")),ordering:(0,n.stringToPDFString)(nt.get("Ordering")),supplement:nt.get("Supplement")});try{const at=X.get("CIDToGIDMap");at instanceof b.BaseStream&&(H=at.getBytes())}catch(at){if(!this.options.ignoreErrors)throw at;(0,n.warn)(`extractDataStructures - ignoring CIDToGIDMap data: "${at}".`)}}const z=[];let Y,G=null;if(X.has("Encoding")){if(Y=X.get("Encoding"),Y instanceof L.Dict){if(G=Y.get("BaseEncoding"),G=G instanceof L.Name?G.name:null,Y.has("Differences")){const nt=Y.get("Differences");let at=0;for(const Q of nt){const lt=O.fetchIfRef(Q);if(typeof lt=="number")at=lt;else{if(!(lt instanceof L.Name))throw new n.FormatError(`Invalid entry in 'Differences' array: ${lt}`);z[at++]=lt.name}}}}else if(Y instanceof L.Name)G=Y.name;else{const nt="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new n.FormatError(nt);(0,n.warn)(nt)}G!=="MacRomanEncoding"&&G!=="MacExpertEncoding"&&G!=="WinAnsiEncoding"&&(G=null)}const K=!j.file||j.isInternalFont,et=(0,a.getSymbolsFonts)()[j.name];if(G&&K&&et&&(G=null),G)j.defaultEncoding=(0,e.getEncoding)(G);else{const nt=!!(j.flags&y.FontFlags.Symbolic),at=!!(j.flags&y.FontFlags.Nonsymbolic);Y=e.StandardEncoding,j.type!=="TrueType"||at||(Y=e.WinAnsiEncoding),(nt||et)&&(Y=e.MacRomanEncoding,K&&(/Symbol/i.test(j.name)?Y=e.SymbolSetEncoding:/Dingbats/i.test(j.name)?Y=e.ZapfDingbatsEncoding:/Wingdings/i.test(j.name)&&(Y=e.WinAnsiEncoding))),j.defaultEncoding=Y}return j.differences=z,j.baseEncodingName=G,j.hasEncoding=!!G||z.length>0,j.dict=X,V.then(nt=>(j.toUnicode=nt,this.buildToUnicode(j))).then(nt=>(j.toUnicode=nt,H&&(j.cidToGidMap=this.readCidToGidMap(H,nt)),j))}_simpleFontToUnicode(X,J=!1){(0,n.assert)(!X.composite,"Must be a simple font.");const j=[],O=X.defaultEncoding.slice(),H=X.baseEncodingName,V=X.differences;for(const Y in V){const G=V[Y];G!==".notdef"&&(O[Y]=G)}const z=(0,U.getGlyphsUnicode)();for(const Y in O){let G=O[Y];if(G==="")continue;let K=z[G];if(K!==void 0){j[Y]=String.fromCharCode(K);continue}let et=0;switch(G[0]){case"G":G.length===3&&(et=parseInt(G.substring(1),16));break;case"g":G.length===5&&(et=parseInt(G.substring(1),16));break;case"C":case"c":if(G.length>=3&&G.length<=4){const nt=G.substring(1);if(J){et=parseInt(nt,16);break}if(et=+nt,Number.isNaN(et)&&Number.isInteger(parseInt(nt,16)))return this._simpleFontToUnicode(X,!0)}break;case"u":K=(0,P.getUnicodeForGlyph)(G,z),K!==-1&&(et=K);break;default:switch(G){case"f_h":case"f_t":case"T_h":j[Y]=G.replaceAll("_","");continue}}if(et>0&&et<=1114111&&Number.isInteger(et)){if(H&&et===+Y){const nt=(0,e.getEncoding)(H);if(nt&&(G=nt[Y])){j[Y]=String.fromCharCode(z[G]);continue}}j[Y]=String.fromCodePoint(et)}}return j}async buildToUnicode(X){var J;if(X.hasIncludedToUnicodeMap=((J=X.toUnicode)==null?void 0:J.length)>0,X.hasIncludedToUnicodeMap)return!X.composite&&X.hasEncoding&&(X.fallbackToUnicode=this._simpleFontToUnicode(X)),X.toUnicode;if(!X.composite)return new T.ToUnicodeMap(this._simpleFontToUnicode(X));if(X.composite&&(X.cMap.builtInCMap&&!(X.cMap instanceof _.IdentityCMap)||X.cidSystemInfo.registry==="Adobe"&&(X.cidSystemInfo.ordering==="GB1"||X.cidSystemInfo.ordering==="CNS1"||X.cidSystemInfo.ordering==="Japan1"||X.cidSystemInfo.ordering==="Korea1"))){const{registry:j,ordering:O}=X.cidSystemInfo,H=L.Name.get(`${j}-${O}-UCS2`),V=await _.CMapFactory.create({encoding:H,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),z=[],Y=[];return X.cMap.forEach(function(G,K){if(K>65535)throw new n.FormatError("Max size of CID is 65,535");const et=V.lookup(K);if(et){Y.length=0;for(let nt=0,at=et.length;nt{if(J instanceof n.AbortException)return null;if(this.options.ignoreErrors)return(0,n.warn)(`readToUnicode - ignoring ToUnicode data: "${J}".`),null;throw J}):Promise.resolve(null):Promise.resolve(null)}readCidToGidMap(X,J){const j=[];for(let O=0,H=X.length;O>1;(V!==0||J.has(z))&&(j[z]=V)}return j}extractWidths(X,J,j){const O=this.xref;let H=[],V=0;const z=[];let Y,G,K,et,nt,at,Q,lt;if(j.composite){if(V=X.has("DW")?X.get("DW"):1e3,lt=X.get("W"),lt)for(G=0,K=lt.length;G{if(Ft){const Yt=[];let re=V;for(const Jt of Ft)Yt[re++]=this.xref.fetchIfRef(Jt);Wt.widths=Yt}else Wt.widths=this.buildCharCodeToWidth(Ct.widths,Wt);return new t.Font(Rt,Vt,Wt)})}(X=new L.Dict(null)).set("FontName",L.Name.get(H)),X.set("FontBBox",J.getArray("FontBBox")||[0,0,0,0])}let nt=X.get("FontName"),at=J.get("BaseFont");typeof nt=="string"&&(nt=L.Name.get(nt)),typeof at=="string"&&(at=L.Name.get(at));const Q=nt==null?void 0:nt.name,lt=at==null?void 0:at.name;if(!K&&Q!==lt&&((0,n.info)(`The FontDescriptor's FontName is "${Q}" but should be the same as the Font's BaseFont "${lt}".`),Q&<&&(lt.startsWith(Q)||!(0,a.isKnownFontName)(Q)&&(0,a.isKnownFontName)(lt))&&(nt=null)),nt||(nt=at),!(nt instanceof L.Name))throw new n.FormatError("invalid font name");let ut,pt,yt,Et,Tt;try{ut=X.get("FontFile","FontFile2","FontFile3")}catch(Rt){if(!this.options.ignoreErrors)throw Rt;(0,n.warn)(`translateFont - fetching "${nt.name}" font file: "${Rt}".`),ut=new p.NullStream}let xt=!1,wt=null,St=null;if(ut){if(ut.dict){const Rt=ut.dict.get("Subtype");Rt instanceof L.Name&&(pt=Rt.name),yt=ut.dict.get("Length1"),Et=ut.dict.get("Length2"),Tt=ut.dict.get("Length3")}}else if(G){const Rt=(0,A.getXfaFontName)(nt.name);Rt&&(G.fontFamily=`${G.fontFamily}-PdfJS-XFA`,G.metrics=Rt.metrics||null,wt=Rt.factors||null,ut=await this.fetchStandardFontData(Rt.name),xt=!!ut,j=J=(0,A.getXfaFontDict)(nt.name),O=!0)}else if(!K){const Rt=(0,a.getStandardFontName)(nt.name);Rt&&(ut=await this.fetchStandardFontData(Rt),xt=!!ut),!xt&&this.options.useSystemFonts&&(St=(0,N.getFontSubstitution)(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,nt.name,Rt))}if(et={type:H,name:nt.name,subtype:pt,file:ut,length1:yt,length2:Et,length3:Tt,isInternalFont:xt,loadedName:j.loadedName,composite:O,fixedPitch:!1,fontMatrix:J.getArray("FontMatrix")||n.FONT_IDENTITY_MATRIX,firstChar:V,lastChar:z,toUnicode:Y,bbox:X.getArray("FontBBox")||J.getArray("FontBBox"),ascent:X.get("Ascent"),descent:X.get("Descent"),xHeight:X.get("XHeight")||0,capHeight:X.get("CapHeight")||0,flags:X.get("Flags"),italicAngle:X.get("ItalicAngle")||0,isType3Font:K,cssFontInfo:G,scaleFactors:wt,systemFontInfo:St},O){const Rt=j.get("Encoding");Rt instanceof L.Name&&(et.cidEncoding=Rt.name);const Ct=await _.CMapFactory.create({encoding:Rt,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});et.cMap=Ct,et.vertical=et.cMap.vertical}return this.extractDataStructures(J,j,et).then(Rt=>(this.extractWidths(J,X,Rt),new t.Font(nt.name,ut,Rt)))}static buildFontPaths(X,J,j,O){function H(V){const z=`${X.loadedName}_path_${V}`;try{if(X.renderer.hasBuiltPath(V))return;j.send("commonobj",[z,"FontPath",X.renderer.getPathJs(V)])}catch(Y){if(O.ignoreErrors){(0,n.warn)(`buildFontPaths - ignoring ${z} glyph: "${Y}".`);return}throw Y}}for(const V of J){H(V.fontChar);const z=V.accent;z!=null&&z.fontChar&&H(z.fontChar)}}static get fallbackFontDict(){const X=new L.Dict;return X.set("BaseFont",L.Name.get("Helvetica")),X.set("Type",L.Name.get("FallbackType")),X.set("Subtype",L.Name.get("FallbackType")),X.set("Encoding",L.Name.get("WinAnsiEncoding")),(0,n.shadow)(this,"fallbackFontDict",X)}}M.PartialEvaluator=S;class h{constructor({loadedName:X,font:J,dict:j,evaluatorOptions:O}){this.loadedName=X,this.font=J,this.dict=j,this._evaluatorOptions=O||E,this.type3Loaded=null,this.type3Dependencies=J.isType3Font?new Set:null,this.sent=!1}send(X){this.sent||(this.sent=!0,X.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)]))}fallback(X){this.font.data&&(this.font.disableFontFace=!0,S.buildFontPaths(this.font,this.font.glyphCacheValues,X,this._evaluatorOptions))}loadType3Data(X,J,j){if(this.type3Loaded)return this.type3Loaded;if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");const O=X.clone({ignoreErrors:!1});O.parsingType3Font=!0;const H=new L.RefSet(X.type3FontRefs);this.dict.objId&&!H.has(this.dict.objId)&&H.put(this.dict.objId),O.type3FontRefs=H;const V=this.font,z=this.type3Dependencies;let Y=Promise.resolve();const G=this.dict.get("CharProcs"),K=this.dict.get("Resources")||J,et=Object.create(null),nt=n.Util.normalizeRect(V.bbox||[0,0,0,0]),at=nt[2]-nt[0],Q=nt[3]-nt[1],lt=Math.hypot(at,Q);for(const ut of G.getKeys())Y=Y.then(()=>{const pt=G.get(ut),yt=new g.OperatorList;return O.getOperatorList({stream:pt,task:j,resources:K,operatorList:yt}).then(()=>{yt.fnArray[0]===n.OPS.setCharWidthAndBounds&&this._removeType3ColorOperators(yt,lt),et[ut]=yt.getIR();for(const Et of yt.dependencies)z.add(Et)}).catch(function(Et){(0,n.warn)(`Type3 font resource "${ut}" is not available.`);const Tt=new g.OperatorList;et[ut]=Tt.getIR()})});return this.type3Loaded=Y.then(()=>{V.charProcOperatorList=et,this._bbox&&(V.isCharBBox=!0,V.bbox=this._bbox)}),this.type3Loaded}_removeType3ColorOperators(X,J=NaN){const j=n.Util.normalizeRect(X.argsArray[0].slice(2)),O=j[2]-j[0],H=j[3]-j[1],V=Math.hypot(O,H);O===0||H===0?(X.fnArray.splice(0,1),X.argsArray.splice(0,1)):(J===0||Math.round(V/J)>=10)&&(this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]),this._bbox[0]=Math.min(this._bbox[0],j[0]),this._bbox[1]=Math.min(this._bbox[1],j[1]),this._bbox[2]=Math.max(this._bbox[2],j[2]),this._bbox[3]=Math.max(this._bbox[3],j[3]));let z=0,Y=X.length;for(;z=n.OPS.moveTo&&V<=n.OPS.endPath,H.variableArgs)Y>z&&(0,n.info)(`Command ${O}: expected [0, ${z}] args, but received ${Y} args.`);else{if(Y!==z){const G=this.nonProcessedArgs;for(;Y>z;)G.push(J.shift()),Y--;for(;Yit.MAX_INVALID_PATH_OPS)throw new n.FormatError(`Invalid ${G}`);(0,n.warn)(`Skipping ${G}`),J!==null&&(J.length=0);continue}}return this.preprocessCommand(V,J),X.fn=V,X.args=J,!0}if(j===L.EOF)return!1;if(j!==null&&(J===null&&(J=[]),J.push(j),J.length>33))throw new n.FormatError("Too many arguments")}}preprocessCommand(X,J){switch(0|X){case n.OPS.save:this.stateManager.save();break;case n.OPS.restore:this.stateManager.restore();break;case n.OPS.transform:this.stateManager.transform(J)}}};ye(it,"MAX_INVALID_PATH_OPS",10);let B=it;M.EvaluatorPreprocessor=B},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.IdentityCMap=M.CMapFactory=M.CMap=void 0;var n=Z(2),_=Z(4),L=Z(5),t=Z(15),e=Z(16),a=Z(3),v=Z(8);const A=["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"],T=2**24-1;class d{constructor(x=!1){this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=x}addCodespaceRange(x,E,D){this.codespaceRanges[x-1].push(E,D),this.numCodespaceRanges++}mapCidRange(x,E,D){if(E-x>T)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;x<=E;)this._map[x++]=D++}mapBfRange(x,E,D){if(E-x>T)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");const q=D.length-1;for(;x<=E;){this._map[x++]=D;const W=D.charCodeAt(q)+1;W>255?D=D.substring(0,q-1)+String.fromCharCode(D.charCodeAt(q-1)+1)+"\0":D=D.substring(0,q)+String.fromCharCode(W)}}mapBfRangeToArray(x,E,D){if(E-x>T)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");const q=D.length;let W=0;for(;x<=E&&W>>0;const c=W[w];for(let S=0,h=c.length;S=m&&q<=k){D.charcode=q,D.length=w+1;return}}}D.charcode=0,D.length=1}getCharCodeLength(x){const E=this.codespaceRanges;for(let D=0,q=E.length;D=c&&x<=S)return D+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 x=0;x<65536;x++)if(this._map[x]!==x)return!1;return!0}}M.CMap=d;class i extends d{constructor(x,E){super(),this.vertical=x,this.addCodespaceRange(E,0,65535)}mapCidRange(x,E,D){(0,n.unreachable)("should not call mapCidRange")}mapBfRange(x,E,D){(0,n.unreachable)("should not call mapBfRange")}mapBfRangeToArray(x,E,D){(0,n.unreachable)("should not call mapBfRangeToArray")}mapOne(x,E){(0,n.unreachable)("should not call mapCidOne")}lookup(x){return Number.isInteger(x)&&x<=65535?x:void 0}contains(x){return Number.isInteger(x)&&x<=65535}forEach(x){for(let E=0;E<=65535;E++)x(E,E)}charCodeOf(x){return Number.isInteger(x)&&x<=65535?x:-1}getMap(){const x=new Array(65536);for(let E=0;E<=65535;E++)x[E]=E;return x}get length(){return 65536}get isIdentityCMap(){(0,n.unreachable)("should not access .isIdentityCMap")}}M.IdentityCMap=i;function C(g){let x=0;for(let E=0;E>>0}function p(g){if(typeof g!="string")throw new n.FormatError("Malformed CMap: expected string.")}function b(g){if(!Number.isInteger(g))throw new n.FormatError("Malformed CMap: expected int.")}function F(g,x){for(;;){let E=x.getObj();if(E===_.EOF)break;if((0,_.isCmd)(E,"endbfchar"))return;p(E);const D=C(E);E=x.getObj(),p(E);const q=E;g.mapOne(D,q)}}function u(g,x){for(;;){let E=x.getObj();if(E===_.EOF)break;if((0,_.isCmd)(E,"endbfrange"))return;p(E);const D=C(E);E=x.getObj(),p(E);const q=C(E);if(E=x.getObj(),Number.isInteger(E)||typeof E=="string"){const W=Number.isInteger(E)?String.fromCharCode(E):E;g.mapBfRange(D,q,W)}else{if(!(0,_.isCmd)(E,"["))break;{E=x.getObj();const W=[];for(;!(0,_.isCmd)(E,"]")&&E!==_.EOF;)W.push(E),E=x.getObj();g.mapBfRangeToArray(D,q,W)}}}throw new n.FormatError("Invalid bf range.")}function l(g,x){for(;;){let E=x.getObj();if(E===_.EOF)break;if((0,_.isCmd)(E,"endcidchar"))return;p(E);const D=C(E);E=x.getObj(),b(E);const q=E;g.mapOne(D,q)}}function y(g,x){for(;;){let E=x.getObj();if(E===_.EOF)break;if((0,_.isCmd)(E,"endcidrange"))return;p(E);const D=C(E);E=x.getObj(),p(E);const q=C(E);E=x.getObj(),b(E);const W=E;g.mapCidRange(D,q,W)}}function N(g,x){for(;;){let E=x.getObj();if(E===_.EOF)break;if((0,_.isCmd)(E,"endcodespacerange"))return;if(typeof E!="string")break;const D=C(E);if(E=x.getObj(),typeof E!="string")break;const q=C(E);g.addCodespaceRange(E.length,D,q)}throw new n.FormatError("Invalid codespace range.")}function U(g,x){const E=x.getObj();Number.isInteger(E)&&(g.vertical=!!E)}function $(g,x){const E=x.getObj();E instanceof _.Name&&(g.name=E.name)}async function P(g,x,E,D){let q,W;t:for(;;)try{const w=x.getObj();if(w===_.EOF)break;if(w instanceof _.Name)w.name==="WMode"?U(g,x):w.name==="CMapName"&&$(g,x),q=w;else if(w instanceof _.Cmd)switch(w.cmd){case"endcmap":break t;case"usecmap":q instanceof _.Name&&(W=q.name);break;case"begincodespacerange":N(g,x);break;case"beginbfchar":F(g,x);break;case"begincidchar":l(g,x);break;case"beginbfrange":u(g,x);break;case"begincidrange":y(g,x)}}catch(w){if(w instanceof a.MissingDataException)throw w;(0,n.warn)("Invalid cMap data: "+w);continue}return!D&&W&&(D=W),D?R(g,E,D):g}async function R(g,x,E){if(g.useCMap=await o(E,x),g.numCodespaceRanges===0){const D=g.useCMap.codespaceRanges;for(let q=0;qR(q,x,W));if(D===n.CMapCompressionType.NONE){const W=new e.Lexer(new v.Stream(E));return P(q,W,x,null)}throw new Error(`Invalid CMap "compressionType" value: ${D}`)}M.CMapFactory=class{static async create({encoding:x,fetchBuiltInCMap:E,useCMap:D}){if(x instanceof _.Name)return o(x.name,E);if(x instanceof L.BaseStream){const q=await P(new d,new e.Lexer(x),E,D);return q.isIdentityCMap?o(q.name,E):q}throw new Error("Encoding required.")}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.BinaryCMapReader=void 0;var n=Z(2);function _(A,T){let d=0;for(let i=0;i<=T;i++)d=d<<8|A[i];return d>>>0}function L(A,T){return T===1?String.fromCharCode(A[0],A[1]):T===3?String.fromCharCode(A[0],A[1],A[2],A[3]):String.fromCharCode(...A.subarray(0,T+1))}function t(A,T,d){let i=0;for(let C=d;C>=0;C--)i+=A[C]+T[C],A[C]=255&i,i>>=8}function e(A,T){let d=1;for(let i=T;i>=0&&d>0;i--)d+=A[i],A[i]=255&d,d>>=8}const a=16;class v{constructor(T){this.buffer=T,this.pos=0,this.end=T.length,this.tmpBuf=new Uint8Array(19)}readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}readNumber(){let T,d=0;do{const i=this.readByte();if(i<0)throw new n.FormatError("unexpected EOF in bcmap");T=!(128&i),d=d<<7|127&i}while(!T);return d}readSigned(){const T=this.readNumber();return 1&T?~(T>>>1):T>>>1}readHex(T,d){T.set(this.buffer.subarray(this.pos,this.pos+d+1)),this.pos+=d+1}readHexNumber(T,d){let i;const C=this.tmpBuf;let p=0;do{const l=this.readByte();if(l<0)throw new n.FormatError("unexpected EOF in bcmap");i=!(128&l),C[p++]=127&l}while(!i);let b=d,F=0,u=0;for(;b>=0;){for(;u<8&&C.length>0;)F|=C[--p]<>=8,u-=8}}readHexSigned(T,d){this.readHexNumber(T,d);const i=1&T[d]?255:0;let C=0;for(let p=0;p<=d;p++)C=(1&C)<<8|T[p],T[p]=C>>1^i}readString(){const T=this.readNumber(),d=new Array(T);for(let i=0;i=0;){const P=$>>5;if(P===7){switch(31&$){case 0:C.readString();break;case 1:b=C.readString()}continue}const R=!!(16&$),o=15&$;if(o+1>a)throw new Error("BinaryCMapReader.process: Invalid dataSize.");const g=1,x=C.readNumber();switch(P){case 0:C.readHex(F,o),C.readHexNumber(u,o),t(u,F,o),d.addCodespaceRange(o+1,_(F,o),_(u,o));for(let E=1;E{Object.defineProperty(M,"__esModule",{value:!0}),M.Parser=M.Linearization=M.Lexer=void 0;var n=Z(2),_=Z(4),L=Z(3),t=Z(8),e=Z(17),a=Z(19),v=Z(20),A=Z(22),T=Z(23),d=Z(26),i=Z(29),C=Z(31),p=Z(32),b=Z(33);class F{constructor({lexer:U,xref:$,allowStreams:P=!1,recoveryMode:R=!1}){this.lexer=U,this.xref=$,this.allowStreams=P,this.recoveryMode=R,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 _.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(U){if(U instanceof L.MissingDataException)throw U;return!1}}getObj(U=null){const $=this.buf1;if(this.shift(),$ instanceof _.Cmd)switch($.cmd){case"BI":return this.makeInlineImage(U);case"[":const P=[];for(;!(0,_.isCmd)(this.buf1,"]")&&this.buf1!==_.EOF;)P.push(this.getObj(U));if(this.buf1===_.EOF){if(this.recoveryMode)return P;throw new L.ParserEOFException("End of file inside array.")}return this.shift(),P;case"<<":const R=new _.Dict(this.xref);for(;!(0,_.isCmd)(this.buf1,">>")&&this.buf1!==_.EOF;){if(!(this.buf1 instanceof _.Name)){(0,n.info)("Malformed dictionary: key must be a name object"),this.shift();continue}const o=this.buf1.name;if(this.shift(),this.buf1===_.EOF)break;R.set(o,this.getObj(U))}if(this.buf1===_.EOF){if(this.recoveryMode)return R;throw new L.ParserEOFException("End of file inside dictionary.")}return(0,_.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(R,U):R:(this.shift(),R);default:return $}if(Number.isInteger($)){if(Number.isInteger(this.buf1)&&(0,_.isCmd)(this.buf2,"R")){const P=_.Ref.get($,this.buf1);return this.shift(),this.shift(),P}return $}return typeof $=="string"&&U?U.decryptString($):$}findDefaultInlineStreamEnd(U){const{knownCommands:$}=this.lexer,P=U.pos;let R,o,g=0;for(;(R=U.getByte())!==-1;)if(g===0)g=R===69?1:0;else if(g===1)g=R===73?2:0;else if(R===32||R===10||R===13){o=U.pos;const E=U.peekBytes(15),D=E.length;if(D===0)break;for(let w=0;w127)){g=0;break}if(g!==2)continue;if(!$){(0,n.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}const q=new y(new t.Stream(E.slice()),$);q._hexStringWarn=()=>{};let W=0;for(;;){const w=q.getObj();if(w===_.EOF){g=0;break}if(w instanceof _.Cmd){const s=$[w.cmd];if(!s){g=0;break}if(s.variableArgs?W<=s.numArgs:W===s.numArgs)break;W=0}else W++}if(g===2)break}else g=0;R===-1&&((0,n.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),o&&((0,n.warn)('... trying to recover by using the last "EI" occurrence.'),U.skip(-(U.pos-o))));let x=4;return U.skip(-x),R=U.peekByte(),U.skip(x),(0,L.isWhiteSpace)(R)||x--,U.pos-x-P}findDCTDecodeInlineStreamEnd(U){const $=U.pos;let P,R,o=!1;for(;(P=U.getByte())!==-1;)if(P===255){switch(U.getByte()){case 0:break;case 255:U.skip(-1);break;case 217:o=!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=U.getUint16(),R>2?U.skip(R-2):U.skip(-2)}if(o)break}const g=U.pos-$;return P===-1?((0,n.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),U.skip(-g),this.findDefaultInlineStreamEnd(U)):(this.inlineStreamSkipEI(U),g)}findASCII85DecodeInlineStreamEnd(U){const $=U.pos;let P;for(;(P=U.getByte())!==-1;)if(P===126){const o=U.pos;for(P=U.peekByte();(0,L.isWhiteSpace)(P);)U.skip(),P=U.peekByte();if(P===62){U.skip();break}if(U.pos>o){const g=U.peekBytes(2);if(g[0]===69&&g[1]===73)break}}const R=U.pos-$;return P===-1?((0,n.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),U.skip(-R),this.findDefaultInlineStreamEnd(U)):(this.inlineStreamSkipEI(U),R)}findASCIIHexDecodeInlineStreamEnd(U){const $=U.pos;let P;for(;(P=U.getByte())!==-1&&P!==62;);const R=U.pos-$;return P===-1?((0,n.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),U.skip(-R),this.findDefaultInlineStreamEnd(U)):(this.inlineStreamSkipEI(U),R)}inlineStreamSkipEI(U){let $,P=0;for(;($=U.getByte())!==-1;)if(P===0)P=$===69?1:0;else if(P===1)P=$===73?2:0;else if(P===2)break}makeInlineImage(U){const $=this.lexer,P=$.stream,R=Object.create(null);let o;for(;!(0,_.isCmd)(this.buf1,"ID")&&this.buf1!==_.EOF;){if(!(this.buf1 instanceof _.Name))throw new n.FormatError("Dictionary key must be a name object");const s=this.buf1.name;if(this.shift(),this.buf1===_.EOF)break;R[s]=this.getObj(U)}$.beginInlineImagePos!==-1&&(o=P.pos-$.beginInlineImagePos);const g=this.xref.fetchIfRef(R.F||R.Filter);let x;if(g instanceof _.Name)x=g.name;else if(Array.isArray(g)){const s=this.xref.fetchIfRef(g[0]);s instanceof _.Name&&(x=s.name)}const E=P.pos;let D,q;switch(x){case"DCT":case"DCTDecode":D=this.findDCTDecodeInlineStreamEnd(P);break;case"A85":case"ASCII85Decode":D=this.findASCII85DecodeInlineStreamEnd(P);break;case"AHx":case"ASCIIHexDecode":D=this.findASCIIHexDecodeInlineStreamEnd(P);break;default:D=this.findDefaultInlineStreamEnd(P)}if(D<1e3&&o>0){const s=P.pos;P.pos=$.beginInlineImagePos,q=function(h){const m=[],k=h.length;let I=0;for(;I=R)return P.pos+=x,P.pos-U;x++}P.pos+=g}return-1}makeStream(U,$){const P=this.lexer;let R=P.stream;P.skipToNextLine();const o=R.pos-1;let g=U.get("Length");if(Number.isInteger(g)||((0,n.info)(`Bad length "${g&&g.toString()}" in stream.`),g=0),R.pos=o+g,P.nextChar(),this.tryShift()&&(0,_.isCmd)(this.buf2,"endstream"))this.shift();else{const x=new Uint8Array([101,110,100,115,116,114,101,97,109]);let E=this._findStreamLength(o,x);if(E<0){for(let q=1;q<=1;q++){const W=x.length-q,w=x.slice(0,W),s=this._findStreamLength(o,w);if(s>=0){const c=R.peekBytes(W+1)[W];if(!(0,L.isWhiteSpace)(c))break;(0,n.info)(`Found "${(0,n.bytesToString)(w)}" when searching for endstream command.`),E=s;break}}if(E<0)throw new n.FormatError("Missing endstream command.")}g=E,P.nextChar(),this.shift(),this.shift()}return this.shift(),R=R.makeSubStream(o,g,U),$&&(R=$.createStream(R,g)),R=this.filter(R,U,g),R.dict=U,R}filter(U,$,P){let R=$.get("F","Filter"),o=$.get("DP","DecodeParms");if(R instanceof _.Name)return Array.isArray(o)&&(0,n.warn)("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(U,R.name,P,o);let g=P;if(Array.isArray(R)){const x=R,E=o;for(let D=0,q=x.length;D=48&&N<=57?15&N:N>=65&&N<=70||N>=97&&N<=102?9+(15&N):-1}class y{constructor(U,$=null){this.stream=U,this.nextChar(),this.strBuf=[],this.knownCommands=$,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let U=this.currentChar,$=!1,P=0,R=1;if(U===45?(R=-1,U=this.nextChar(),U===45&&(U=this.nextChar())):U===43&&(U=this.nextChar()),U===10||U===13)do U=this.nextChar();while(U===10||U===13);if(U===46&&(P=10,U=this.nextChar()),U<48||U>57){const E=`Invalid number: ${String.fromCharCode(U)} (charCode ${U})`;if((0,L.isWhiteSpace)(U)||U===-1)return(0,n.info)(`Lexer.getNumber - "${E}".`),0;throw new n.FormatError(E)}let o=U-48,g=0,x=1;for(;(U=this.nextChar())>=0;)if(U>=48&&U<=57){const E=U-48;$?g=10*g+E:(P!==0&&(P*=10),o=10*o+E)}else if(U===46){if(P!==0)break;P=1}else if(U===45)(0,n.warn)("Badly formatted number: minus sign in the middle");else{if(U!==69&&U!==101)break;if(U=this.peekChar(),U===43||U===45)x=U===45?-1:1,this.nextChar();else if(U<48||U>57)break;$=!0}return P!==0&&(o/=P),$&&(o*=10**(x*g)),R*o}getString(){let U=1,$=!1;const P=this.strBuf;P.length=0;let R=this.nextChar();for(;;){let o=!1;switch(0|R){case-1:(0,n.warn)("Unterminated string"),$=!0;break;case 40:++U,P.push("(");break;case 41:--U==0?(this.nextChar(),$=!0):P.push(")");break;case 92:switch(R=this.nextChar(),R){case-1:(0,n.warn)("Unterminated string"),$=!0;break;case 110:P.push(` `);break;case 114:P.push("\r");break;case 116:P.push(" ");break;case 98:P.push("\b");break;case 102:P.push("\f");break;case 92:case 40:case 41:P.push(String.fromCharCode(R));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let g=15&R;R=this.nextChar(),o=!0,R>=48&&R<=55&&(g=(g<<3)+(15&R),R=this.nextChar(),R>=48&&R<=55&&(o=!1,g=(g<<3)+(15&R))),P.push(String.fromCharCode(g));break;case 13:this.peekChar()===10&&this.nextChar();break;case 10:break;default:P.push(String.fromCharCode(R))}break;default:P.push(String.fromCharCode(R))}if($)break;o||(R=this.nextChar())}return P.join("")}getName(){let U,$;const P=this.strBuf;for(P.length=0;(U=this.nextChar())>=0&&!u[U];)if(U===35){if(U=this.nextChar(),u[U]){(0,n.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),P.push("#");break}const R=l(U);if(R!==-1){$=U,U=this.nextChar();const o=l(U);if(o===-1){if((0,n.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(U)}) in hexadecimal number.`),P.push("#",String.fromCharCode($)),u[U])break;P.push(String.fromCharCode(U));continue}P.push(String.fromCharCode(R<<4|o))}else P.push("#",String.fromCharCode(U))}else P.push(String.fromCharCode(U));return P.length>127&&(0,n.warn)(`Name token is longer than allowed by the spec: ${P.length}`),_.Name.get(P.join(""))}_hexStringWarn(U){this._hexStringNumWarn++!=5?this._hexStringNumWarn>5||(0,n.warn)(`getHexString - ignoring invalid character: ${U}`):(0,n.warn)("getHexString - ignoring additional invalid characters.")}getHexString(){const U=this.strBuf;U.length=0;let $,P,R=this.currentChar,o=!0;for(this._hexStringNumWarn=0;;){if(R<0){(0,n.warn)("Unterminated hex string");break}if(R===62){this.nextChar();break}if(u[R]!==1){if(o){if($=l(R),$===-1){this._hexStringWarn(R),R=this.nextChar();continue}}else{if(P=l(R),P===-1){this._hexStringWarn(R),R=this.nextChar();continue}U.push(String.fromCharCode($<<4|P))}o=!o,R=this.nextChar()}else R=this.nextChar()}return U.join("")}getObj(){let U=!1,$=this.currentChar;for(;;){if($<0)return _.EOF;if(U)$!==10&&$!==13||(U=!1);else if($===37)U=!0;else if(u[$]!==1)break;$=this.nextChar()}switch(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(),_.Cmd.get("[");case 93:return this.nextChar(),_.Cmd.get("]");case 60:return $=this.nextChar(),$===60?(this.nextChar(),_.Cmd.get("<<")):this.getHexString();case 62:return $=this.nextChar(),$===62?(this.nextChar(),_.Cmd.get(">>")):_.Cmd.get(">");case 123:return this.nextChar(),_.Cmd.get("{");case 125:return this.nextChar(),_.Cmd.get("}");case 41:throw this.nextChar(),new n.FormatError(`Illegal character: ${$}`)}let P=String.fromCharCode($);if($<32||$>127){const g=this.peekChar();if(g>=32&&g<=127)return this.nextChar(),_.Cmd.get(P)}const R=this.knownCommands;let o=(R==null?void 0:R[P])!==void 0;for(;($=this.nextChar())>=0&&!u[$];){const g=P+String.fromCharCode($);if(o&&R[g]===void 0)break;if(P.length===128)throw new n.FormatError(`Command token too long: ${P.length}`);P=g,o=(R==null?void 0:R[P])!==void 0}return P==="true"?!0:P==="false"?!1:P==="null"?null:(P==="BI"&&(this.beginInlineImagePos=this.stream.pos),_.Cmd.get(P))}skipToNextLine(){let U=this.currentChar;for(;U>=0;){if(U===13){U=this.nextChar(),U===10&&this.nextChar();break}if(U===10){this.nextChar();break}U=this.nextChar()}}}M.Lexer=y,M.Linearization=class{static create(U){function $(q,W,w=!1){const s=q.get(W);if(Number.isInteger(s)&&(w?s>=0:s>0))return s;throw new Error(`The "${W}" parameter in the linearization dictionary is invalid.`)}const P=new F({lexer:new y(U),xref:null}),R=P.getObj(),o=P.getObj(),g=P.getObj(),x=P.getObj();let E,D;if(!(Number.isInteger(R)&&Number.isInteger(o)&&(0,_.isCmd)(g,"obj")&&x instanceof _.Dict&&typeof(E=x.get("Linearized"))=="number"&&E>0))return null;if((D=$(x,"L"))!==U.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:D,hints:function(W){const w=W.get("H");let s;if(Array.isArray(w)&&((s=w.length)===2||s===4)){for(let c=0;c0))throw new Error(`Hint (${c}) in the linearization dictionary is invalid.`)}return w}throw new Error("Hint array in the linearization dictionary is invalid.")}(x),objectNumberFirst:$(x,"O"),endFirst:$(x,"E"),numPages:$(x,"N"),mainXRefEntriesOffset:$(x,"T"),pageFirst:x.has("P")?$(x,"P",!0):0}}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.Ascii85Stream=void 0;var n=Z(18),_=Z(3);class L extends n.DecodeStream{constructor(e,a){a&&(a*=.8),super(a),this.str=e,this.dict=e.dict,this.input=new Uint8Array(5)}readBlock(){const e=this.str;let a=e.getByte();for(;(0,_.isWhiteSpace)(a);)a=e.getByte();if(a===-1||a===126){this.eof=!0;return}const v=this.bufferLength;let A,T;if(a===122){for(A=this.ensureBuffer(v+4),T=0;T<4;++T)A[v+T]=0;this.bufferLength+=4}else{const d=this.input;for(d[0]=a,T=1;T<5;++T){for(a=e.getByte();(0,_.isWhiteSpace)(a);)a=e.getByte();if(d[T]=a,a===-1||a===126)break}if(A=this.ensureBuffer(v+T-1),this.bufferLength+=T-1,T<5){for(;T<5;++T)d[T]=117;this.eof=!0}let i=0;for(T=0;T<5;++T)i=85*i+(d[T]-33);for(T=3;T>=0;--T)A[v+T]=255&i,i>>=8}}}M.Ascii85Stream=L},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.StreamsSequenceStream=M.DecodeStream=void 0;var n=Z(5),_=Z(8);const L=new Uint8Array(0);class t extends n.BaseStream{constructor(a){if(super(),this._rawMinBufferLength=a||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=L,this.minBufferLength=512,a)for(;this.minBufferLengthT&&(A=T)}else{for(;!this.eof;)this.readBlock();A=this.bufferLength}return this.pos=A,this.buffer.subarray(v,A)}reset(){this.pos=0}makeSubStream(a,v,A=null){if(v===void 0)for(;!this.eof;)this.readBlock();else{const T=a+v;for(;this.bufferLength<=T&&!this.eof;)this.readBlock()}return new _.Stream(this.buffer,a,v,A)}getBaseStreams(){return this.str?this.str.getBaseStreams():null}}M.DecodeStream=t,M.StreamsSequenceStream=class extends t{constructor(a,v=null){let A=0;for(const T of a)A+=T instanceof t?T._rawMinBufferLength:T.length;super(A),this.streams=a,this._onError=v}readBlock(){var i;const a=this.streams;if(a.length===0){this.eof=!0;return}const v=a.shift();let A;try{A=v.getBytes()}catch(C){if(this._onError){this._onError(C,(i=v.dict)==null?void 0:i.objId);return}throw C}const T=this.bufferLength,d=T+A.length;this.ensureBuffer(d).set(A,T),this.bufferLength=d}getBaseStreams(){const a=[];for(const v of this.streams){const A=v.getBaseStreams();A&&a.push(...A)}return a.length>0?a:null}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.AsciiHexStream=void 0;var n=Z(18);class _ extends n.DecodeStream{constructor(t,e){e&&(e*=.5),super(e),this.str=t,this.dict=t.dict,this.firstDigit=-1}readBlock(){const t=this.str.getBytes(8e3);if(!t.length){this.eof=!0;return}const e=t.length+1>>1,a=this.ensureBuffer(this.bufferLength+e);let v=this.bufferLength,A=this.firstDigit;for(const T of t){let d;if(T>=48&&T<=57)d=15&T;else{if(!(T>=65&&T<=70||T>=97&&T<=102)){if(T===62){this.eof=!0;break}continue}d=9+(15&T)}A<0?A=d:(a[v++]=A<<4|d,A=-1)}A>=0&&this.eof&&(a[v++]=A<<4,A=-1),this.firstDigit=A,this.bufferLength=v}}M.AsciiHexStream=_},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.CCITTFaxStream=void 0;var n=Z(21),_=Z(18),L=Z(4);class t extends _.DecodeStream{constructor(a,v,A){super(v),this.str=a,this.dict=a.dict,A instanceof L.Dict||(A=L.Dict.empty);const T={next:()=>a.getByte()};this.ccittFaxDecoder=new n.CCITTFaxDecoder(T,{K:A.get("K"),EndOfLine:A.get("EndOfLine"),EncodedByteAlign:A.get("EncodedByteAlign"),Columns:A.get("Columns"),Rows:A.get("Rows"),EndOfBlock:A.get("EndOfBlock"),BlackIs1:A.get("BlackIs1")})}readBlock(){for(;!this.eof;){const a=this.ccittFaxDecoder.readNextChar();if(a===-1){this.eof=!0;return}this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=a}}}M.CCITTFaxStream=t},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.CCITTFaxDecoder=void 0;var n=Z(2);const _=-1,L=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[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],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],t=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-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]],e=[[-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]],a=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-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]],v=[[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]],A=[[-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]];M.CCITTFaxDecoder=class{constructor(d,i={}){if(!d||typeof d.next!="function")throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=d,this.eof=!1,this.encoding=i.K||0,this.eoline=i.EndOfLine||!1,this.byteAlign=i.EncodedByteAlign||!1,this.columns=i.Columns||1728,this.rows=i.Rows||0,this.eoblock=i.EndOfBlock??!0,this.black=i.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 C;for(;(C=this._lookBits(12))===0;)this._eatBits(1);C===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,i=this.codingLine,C=this.columns;let p,b,F,u,l;if(this.outputBits===0){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;this.err=!1;let y,N,U;if(this.nextLine2D){for(u=0;i[u]=64);do N+=U=this._getWhiteCode();while(U>=64)}else{do y+=U=this._getWhiteCode();while(U>=64);do N+=U=this._getBlackCode();while(U>=64)}for(this._addPixels(i[this.codingPos]+y,b),i[this.codingPos]0?--p:++p;d[p]<=i[this.codingPos]&&d[p]0?--p:++p;d[p]<=i[this.codingPos]&&d[p]0?--p:++p;d[p]<=i[this.codingPos]&&d[p]=64);else do y+=U=this._getWhiteCode();while(U>=64);this._addPixels(i[this.codingPos]+y,b),b^=1}let $=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(y=this._lookBits(12),this.eoline)for(;y!==_&&y!==1;)this._eatBits(1),y=this._lookBits(12);else for(;y===0;)this._eatBits(1),y=this._lookBits(12);y===1?(this._eatBits(12),$=!0):y===_&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&$&&this.byteAlign){if(y=this._lookBits(12),y===1){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(u=0;u<4;++u)y=this._lookBits(12),y!==1&&(0,n.info)("bad rtc code: "+y),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(y=this._lookBits(13),y===_)return this.eof=!0,-1;if(y>>1==1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&y))}this.outputBits=i[0]>0?i[this.codingPos=0]:i[this.codingPos=1],this.row++}if(this.outputBits>=8)l=1&this.codingPos?0:255,this.outputBits-=8,this.outputBits===0&&i[this.codingPos]F?(l<<=F,1&this.codingPos||(l|=255>>8-F),this.outputBits-=F,F=0):(l<<=this.outputBits,1&this.codingPos||(l|=255>>8-this.outputBits),F-=this.outputBits,this.outputBits=0,i[this.codingPos]0&&(l<<=F,F=0))}while(F)}return this.black&&(l^=255),l}_addPixels(d,i){const C=this.codingLine;let p=this.codingPos;d>C[p]&&(d>this.columns&&((0,n.info)("row is wrong length"),this.err=!0,d=this.columns),1&p^i&&++p,C[p]=d),this.codingPos=p}_addPixelsNeg(d,i){const C=this.codingLine;let p=this.codingPos;if(d>C[p])d>this.columns&&((0,n.info)("row is wrong length"),this.err=!0,d=this.columns),1&p^i&&++p,C[p]=d;else if(d0&&d=b){const l=C[u-b];if(l[0]===F)return this._eatBits(F),[!0,l[1],!0]}}return[!1,0,!1]}_getTwoDimCode(){let d,i=0;if(this.eoblock){if(i=this._lookBits(7),d=L[i],(d==null?void 0:d[0])>0)return this._eatBits(d[0]),d[1]}else{const C=this._findTableCode(1,7,L);if(C[0]&&C[2])return C[1]}return(0,n.info)("Bad two dim code"),_}_getWhiteCode(){let d,i=0;if(this.eoblock){if(i=this._lookBits(12),i===_)return 1;if(d=i>>5?e[i>>3]:t[i],d[0]>0)return this._eatBits(d[0]),d[1]}else{let C=this._findTableCode(1,9,e);if(C[0]||(C=this._findTableCode(11,12,t),C[0]))return C[1]}return(0,n.info)("bad white code"),this._eatBits(1),1}_getBlackCode(){let d,i;if(this.eoblock){if(d=this._lookBits(13),d===_)return 1;if(i=d>>7?!(d>>9)&&d>>7?v[(d>>1)-64]:A[d>>7]:a[d],i[0]>0)return this._eatBits(i[0]),i[1]}else{let C=this._findTableCode(2,6,A);if(C[0]||(C=this._findTableCode(7,12,v,64),C[0])||(C=this._findTableCode(10,13,a),C[0]))return C[1]}return(0,n.info)("bad black code"),this._eatBits(1),1}_lookBits(d){let i;for(;this.inputBits>16-d;this.inputBuf=this.inputBuf<<8|i,this.inputBits+=8}return this.inputBuf>>this.inputBits-d&65535>>16-d}_eatBits(d){(this.inputBits-=d)<0&&(this.inputBits=0)}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.FlateStream=void 0;var n=Z(18),_=Z(2);const L=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),t=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]),e=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]),a=[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],v=[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 A extends n.DecodeStream{constructor(d,i){super(i),this.str=d,this.dict=d.dict;const C=d.getByte(),p=d.getByte();if(C===-1||p===-1)throw new _.FormatError(`Invalid header in flate stream: ${C}, ${p}`);if((15&C)!=8)throw new _.FormatError(`Unknown compression method in flate stream: ${C}, ${p}`);if(((C<<8)+p)%31!=0)throw new _.FormatError(`Bad FCHECK in flate stream: ${C}, ${p}`);if(32&p)throw new _.FormatError(`FDICT bit set in flate stream: ${C}, ${p}`);this.codeSize=0,this.codeBuf=0}getBits(d){const i=this.str;let C,p=this.codeSize,b=this.codeBuf;for(;p>d,this.codeSize=p-=d,C}getCode(d){const i=this.str,C=d[0],p=d[1];let b,F=this.codeSize,u=this.codeBuf;for(;F>16,N=65535&l;if(y<1||F>y,this.codeSize=F-y,N}generateHuffmanTable(d){const i=d.length;let C,p=0;for(C=0;Cp&&(p=d[C]);const b=1<>=1;for(C=U;C>=1,F===0){let y;if((y=C.getByte())===-1)throw new _.FormatError("Bad block header in flate stream");let N=y;if((y=C.getByte())===-1)throw new _.FormatError("Bad block header in flate stream");if(N|=y<<8,(y=C.getByte())===-1)throw new _.FormatError("Bad block header in flate stream");let U=y;if((y=C.getByte())===-1)throw new _.FormatError("Bad block header in flate stream");if(U|=y<<8,U!==(65535&~N)&&(N!==0||U!==0))throw new _.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;const $=this.bufferLength,P=$+N;if(d=this.ensureBuffer(P),this.bufferLength=P,N===0)C.peekByte()===-1&&(this.eof=!0);else{const R=C.getBytes(N);d.set(R,$),R.length0;)g[P++]=D}p=this.generateHuffmanTable(g.subarray(0,y)),b=this.generateHuffmanTable(g.subarray(y,o))}}d=this.buffer;let u=d?d.length:0,l=this.bufferLength;for(;;){let y=this.getCode(p);if(y<256){l+1>=u&&(d=this.ensureBuffer(l+1),u=d.length),d[l++]=y;continue}if(y===256){this.bufferLength=l;return}y-=257,y=t[y];let N=y>>16;N>0&&(N=this.getBits(N)),i=(65535&y)+N,y=this.getCode(b),y=e[y],N=y>>16,N>0&&(N=this.getBits(N));const U=(65535&y)+N;l+i>=u&&(d=this.ensureBuffer(l+i),u=d.length);for(let $=0;${Object.defineProperty(M,"__esModule",{value:!0}),M.Jbig2Stream=void 0;var n=Z(5),_=Z(18),L=Z(4),t=Z(24),e=Z(2);class a extends _.DecodeStream{constructor(A,T,d){super(T),this.stream=A,this.dict=A.dict,this.maybeLength=T,this.params=d}get bytes(){return(0,e.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(A){}readBlock(){if(this.eof)return;const A=new t.Jbig2Image,T=[];if(this.params instanceof L.Dict){const C=this.params.get("JBIG2Globals");if(C instanceof n.BaseStream){const p=C.getBytes();T.push({data:p,start:0,end:p.length})}}T.push({data:this.bytes,start:0,end:this.bytes.length});const d=A.parseChunks(T),i=d.length;for(let C=0;C{Object.defineProperty(M,"__esModule",{value:!0}),M.Jbig2Image=void 0;var n=Z(2),_=Z(3),L=Z(25),t=Z(21);class e extends n.BaseException{constructor(k){super(`JBIG2 error: ${k}`,"Jbig2Error")}}class a{getContexts(k){return k in this?this[k]:this[k]=new Int8Array(65536)}}class v{constructor(k,I,B){this.data=k,this.start=I,this.end=B}get decoder(){const k=new L.ArithmeticDecoder(this.data,this.start,this.end);return(0,n.shadow)(this,"decoder",k)}get contextCache(){const k=new a;return(0,n.shadow)(this,"contextCache",k)}}const A=2**31-1,T=-(2**31);function d(m,k,I){const B=m.getContexts(k);let tt=1;function it(j){let O=0;for(let H=0;H>>0}const st=it(1),X=it(1)?it(1)?it(1)?it(1)?it(1)?it(32)+4436:it(12)+340:it(8)+84:it(6)+20:it(4)+4:it(2);let J;return st===0?J=X:X>0&&(J=-X),J>=T&&J<=A?J:null}function i(m,k,I){const B=m.getContexts("IAID");let tt=1;for(let it=0;it=yt&&Gt=Et)for(Yt=Yt<<1&K,G=0;G=0&&Ft=0&&(Ut=St[Zt][Ft],Ut&&(Yt|=Ut<=m?Rt<<=1:Rt=Rt<<1|lt[wt][St];for(z=0;z=at||St<0||St>=nt?Rt<<=1:Rt=Rt<<1|B[wt][St];const Ct=ut.readBit(pt,Rt);Tt[xt]=Ct}}return lt}function N(m,k,I,B,tt,it,st,X,J,j,O,H,V,z,Y,G,K,et,nt){if(m&&k)throw new e("refinement with Huffman is not supported");const at=[];let Q,lt;for(Q=0;Q1&&(xt=m?nt.readBits(et):d(pt,"IAIT",ut));const wt=st*yt+xt,St=m?z.symbolIDTable.decode(nt):i(pt,ut,J),Rt=k&&(m?nt.readBit():d(pt,"IARI",ut));let Ct=X[St],Gt=Ct[0].length,Zt=Ct.length;if(Rt){const Jt=d(pt,"IARDW",ut),Bt=d(pt,"IARDH",ut);Gt+=Jt,Zt+=Bt,Ct=y(Gt,Zt,Y,Ct,(Jt>>1)+d(pt,"IARDX",ut),(Bt>>1)+d(pt,"IARDY",ut),!1,G,K)}const Ft=wt-(1&H?0:Zt-1),Ut=Tt-(2&H?Gt-1:0);let Vt,Wt,Yt;if(j){for(Vt=0;Vt>5&7;const J=[31&st];let j=k+6;if(st===7){X=536870911&(0,_.readUint32)(m,j-1),j+=3;let Y=X+7>>3;for(J[0]=m[j++];--Y>0;)J.push(m[j++])}else if(st===5||st===6)throw new e("invalid referred-to flags");I.retainBits=J;let O=4;I.number<=256?O=1:I.number<=65536&&(O=2);const H=[];let V,z;for(V=0;V>>24&255,et[3]=Y.height>>16&255,et[4]=Y.height>>8&255,et[5]=255&Y.height,V=j,z=m.length;V>2&3,H.huffmanDWSelector=V>>4&3,H.bitmapSizeSelector=V>>6&1,H.aggregationInstancesSelector=V>>7&1,H.bitmapCodingContextUsed=!!(256&V),H.bitmapCodingContextRetained=!!(512&V),H.template=V>>10&3,H.refinementTemplate=V>>12&1,j+=2,!H.huffman){for(J=H.template===0?4:1,st=[],X=0;X>2&3,z.stripSize=1<>4&3,z.transposed=!!(64&Y),z.combinationOperator=Y>>7&3,z.defaultPixelValue=Y>>9&1,z.dsOffset=Y<<17>>27,z.refinementTemplate=Y>>15&1,z.huffman){const pt=(0,_.readUint16)(B,j);j+=2,z.huffmanFS=3&pt,z.huffmanDS=pt>>2&3,z.huffmanDT=pt>>4&3,z.huffmanRefinementDW=pt>>6&3,z.huffmanRefinementDH=pt>>8&3,z.huffmanRefinementDX=pt>>10&3,z.huffmanRefinementDY=pt>>12&3,z.huffmanRefinementSizeSelector=!!(16384&pt)}if(z.refinement&&!z.refinementTemplate){for(st=[],X=0;X<2;X++)st.push({x:(0,_.readInt8)(B,j),y:(0,_.readInt8)(B,j+1)}),j+=2;z.refinementAt=st}z.numberOfSymbolInstances=(0,_.readUint32)(B,j),j+=4,it=[z,I.referredTo,B,j,tt];break;case 16:const G={},K=B[j++];G.mmr=!!(1&K),G.template=K>>1&3,G.patternWidth=B[j++],G.patternHeight=B[j++],G.maxPatternIndex=(0,_.readUint32)(B,j),j+=4,it=[G,I.number,B,j,tt];break;case 22:case 23:const et={};et.info=P(B,j),j+=R;const nt=B[j++];et.mmr=!!(1&nt),et.template=nt>>1&3,et.enableSkip=!!(8&nt),et.combinationOperator=nt>>4&7,et.defaultPixelValue=nt>>7&1,et.gridWidth=(0,_.readUint32)(B,j),j+=4,et.gridHeight=(0,_.readUint32)(B,j),j+=4,et.gridOffsetX=4294967295&(0,_.readUint32)(B,j),j+=4,et.gridOffsetY=4294967295&(0,_.readUint32)(B,j),j+=4,et.gridVectorX=(0,_.readUint16)(B,j),j+=2,et.gridVectorY=(0,_.readUint16)(B,j),j+=2,it=[et,I.referredTo,B,j,tt];break;case 38:case 39:const at={};at.info=P(B,j),j+=R;const Q=B[j++];if(at.mmr=!!(1&Q),at.template=Q>>1&3,at.prediction=!!(8&Q),!at.mmr){for(J=at.template===0?4:1,st=[],X=0;X>2&1,lt.combinationOperator=ut>>3&3,lt.requiresBuffer=!!(32&ut),lt.combinationOperatorOverride=!!(64&ut),it=[lt];break;case 49:case 50:case 51:case 62:break;case 53:it=[I.number,B,j,tt];break;default:throw new e(`segment type ${I.typeName}(${I.type}) is not implemented`)}const O="on"+I.typeName;O in k&&k[O].apply(k,it)}function g(m,k){for(let I=0,B=m.length;I>3,B=new Uint8ClampedArray(I*k.height);k.defaultPixelValue&&B.fill(255),this.buffer=B}drawBitmap(k,I){const B=this.currentPageInfo,tt=k.width,it=k.height,st=B.width+7>>3,X=B.combinationOperatorOverride?k.combinationOperator:B.combinationOperator,J=this.buffer,j=128>>(7&k.x);let O,H,V,z,Y=k.y*st+(k.x>>3);switch(X){case 0:for(O=0;O>=1,V||(V=128,z++);Y+=st}break;case 2:for(O=0;O>=1,V||(V=128,z++);Y+=st}break;default:throw new e(`operator ${X} is not supported`)}}onImmediateGenericRegion(k,I,B,tt){const it=k.info,st=new v(I,B,tt),X=l(k.mmr,it.width,it.height,k.template,k.prediction,null,k.at,st);this.drawBitmap(it,X)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(k,I,B,tt,it,st){let X,J;k.huffman&&(X=function(z,Y,G){let K,et,nt,at,Q=0;switch(z.huffmanDHSelector){case 0:case 1:K=w(z.huffmanDHSelector+4);break;case 3:K=c(Q,Y,G),Q++;break;default:throw new e("invalid Huffman DH selector")}switch(z.huffmanDWSelector){case 0:case 1:et=w(z.huffmanDWSelector+2);break;case 3:et=c(Q,Y,G),Q++;break;default:throw new e("invalid Huffman DW selector")}return z.bitmapSizeSelector?(nt=c(Q,Y,G),Q++):nt=w(1),at=z.aggregationInstancesSelector?c(Q,Y,G):w(1),{tableDeltaHeight:K,tableDeltaWidth:et,tableBitmapSize:nt,tableAggregateInstances:at}}(k,B,this.customTables),J=new s(tt,it,st));let j=this.symbols;j||(this.symbols=j={});const O=[];for(const V of B){const z=j[V];z&&O.push(...z)}const H=new v(tt,it,st);j[I]=function(z,Y,G,K,et,nt,at,Q,lt,ut,pt,yt){if(z&&Y)throw new e("symbol refinement with Huffman is not supported");const Et=[];let Tt=0,xt=(0,_.log2)(G.length+K);const wt=pt.decoder,St=pt.contextCache;let Rt,Ct;for(z&&(Rt=w(1),Ct=[],xt=Math.max(xt,1));Et.length1)Xt=N(z,Y,Yt,Tt,0,jt,1,G.concat(Et),xt,0,0,1,0,nt,lt,ut,pt,0,yt);else{const mt=i(St,wt,xt),rt=d(St,"IARDX",wt),ht=d(St,"IARDY",wt);Xt=y(Yt,Tt,lt,mt=32){let St,Rt,Ct;switch(wt){case 32:if(xt===0)throw new e("no previous value in symbol ID table");Rt=at.readBits(2)+3,St=Q[xt-1].prefixLength;break;case 33:Rt=at.readBits(3)+3,St=0;break;case 34:Rt=at.readBits(7)+11,St=0;break;default:throw new e("invalid code length in symbol ID table")}for(Ct=0;Ct=0;xt--)Yt=H?h(Wt,at,Q,!0):l(!1,at,Q,z,!1,null,Ut,Et),Vt[xt]=Yt;for(re=0;re=0;wt--)Bt^=Vt[wt][re][Jt],Xt|=Bt<>8,rt=ut+re*pt-Jt*yt>>8,mt>=0&&mt+Gt<=Y&&rt>=0&&rt+Zt<=G)for(xt=0;xt=G))for(gt=Tt[Pt],ht=jt[xt],wt=0;wt=0&&bt>1&7),G=1+(O>>4&7),K=[];let et,nt,at=H;do et=z.readBits(Y),nt=z.readBits(G),K.push(new E([at,et,nt,0])),at+=1<>I&1;if(I<=0)this.children[B]=new D(k);else{let tt=this.children[B];tt||(this.children[B]=tt=new D(null)),tt.buildTree(k,I-1)}}decodeNode(k){if(this.isLeaf){if(this.isOOB)return null;const B=k.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-B:B)}const I=this.children[k.readBit()];if(!I)throw new e("invalid Huffman data");return I.decodeNode(k)}}class q{constructor(k,I){I||this.assignPrefixCodes(k),this.rootNode=new D(null);for(let B=0,tt=k.length;B0&&this.rootNode.buildTree(it,it.prefixLength-1)}}decode(k){return this.rootNode.decodeNode(k)}assignPrefixCodes(k){const I=k.length;let B=0;for(let O=0;O=this.end)throw new e("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 I,B=0;for(I=k-1;I>=0;I--)B|=this.readBit()<=this.end?-1:this.data[this.position++]}}function c(m,k,I){let B=0;for(let tt=0,it=k.length;tt>H&1,H--}if(B&&!J)for(let O=0;O<5&&it.readNextChar()!==-1;O++);return st}M.Jbig2Image=class{parseChunks(k){return function(B){const tt=new x;for(let it=0,st=B.length;it{Object.defineProperty(M,"__esModule",{value:!0}),M.ArithmeticDecoder=void 0;const Z=[{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}];M.ArithmeticDecoder=class{constructor(_,L,t){this.data=_,this.bp=L,this.dataEnd=t,this.chigh=_[L],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 _=this.data;let L=this.bp;_[L]===255?_[L+1]>143?(this.clow+=65280,this.ct=8):(L++,this.clow+=_[L]<<9,this.ct=7,this.bp=L):(L++,this.clow+=L65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(_,L){let t=_[L]>>1,e=1&_[L];const a=Z[t],v=a.qe;let A,T=this.a-v;if(this.chigh>15&1,this.clow=this.clow<<1&65535,this.ct--;while(!(32768&T));return this.a=T,_[L]=t<<1|e,A}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.JpegStream=void 0;var n=Z(18),_=Z(4),L=Z(27),t=Z(2);class e extends n.DecodeStream{constructor(v,A,T){let d;for(;(d=v.getByte())!==-1;)if(d===255){v.skip(-1);break}super(A),this.stream=v,this.dict=v.dict,this.maybeLength=A,this.params=T}get bytes(){return(0,t.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(v){}readBlock(){if(this.eof)return;const v={decodeTransform:void 0,colorTransform:void 0},A=this.dict.getArray("D","Decode");if((this.forceRGBA||this.forceRGB)&&Array.isArray(A)){const i=this.dict.get("BPC","BitsPerComponent")||8,C=A.length,p=new Int32Array(C);let b=!1;const F=(1<{Object.defineProperty(M,"__esModule",{value:!0}),M.JpegImage=void 0;var n=Z(2),_=Z(28),L=Z(3);class t extends n.BaseException{constructor(R){super(`JPEG error: ${R}`,"JpegError")}}class e extends n.BaseException{constructor(R,o){super(R,"DNLMarkerError"),this.scanLines=o}}class a extends n.BaseException{constructor(R){super(R,"EOIMarkerError")}}const v=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]),A=4017,T=799,d=3406,i=2276,C=1567,p=3784,b=5793,F=2896;function u(P,R){let o,g,x=0,E=16;for(;E>0&&!P[E-1];)E--;const D=[{children:[],index:0}];let q,W=D[0];for(o=0;o0;)W=D.pop();for(W.index++,D.push(W);D.length<=o;)D.push(q={children:[],index:0}),W.children[W.index]=q.children,W=q;x++}o+10)return m--,h>>m&1;if(h=P[R++],h===255){const pt=P[R++];if(pt){if(pt===220&&w){R+=2;const yt=(0,L.readUint16)(P,R);if(R+=2,yt>0&&yt!==o.scanLines)throw new e("Found DNL marker (0xFFDC) while parsing scan data",yt)}else if(pt===217){if(w){const yt=J*(o.precision===8?8:0);if(yt>0&&Math.round(o.scanLines/yt)>=5)throw new e("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",yt)}throw new a("Found EOI marker (0xFFD9) while parsing scan data")}throw new t(`unexpected marker ${(h<<8|pt).toString(16)}`)}}return m=7,h>>>7}function I(pt){let yt=pt;for(;;){switch(yt=yt[k()],typeof yt){case"number":return yt;case"object":continue}throw new t("invalid huffman sequence")}}function B(pt){let yt=0;for(;pt>0;)yt=yt<<1|k(),pt--;return yt}function tt(pt){if(pt===1)return k()===1?1:-1;const yt=B(pt);return yt>=1<0){it--;return}let Tt=E;const xt=D;for(;Tt<=xt;){const wt=I(yt.huffmanTableAC),St=15&wt,Rt=wt>>4;if(St===0){if(Rt<15){it=B(Rt)+(1<>4,wt===0)Rt<15?(it=B(Rt)+(1<>4;if(Rt===0){if(Ct<15)break;wt+=16;continue}wt+=Ct;const Gt=v[wt];yt.blockData[Et+Gt]=tt(Rt),wt++}};let nt,at=0;const Q=H===1?g[0].blocksPerLine*g[0].blocksPerColumn:s*o.mcusPerColumn;let lt,ut;for(;at<=Q;){const pt=x?Math.min(Q-at,x):Q;if(pt>0){for(z=0;z0?"unexpected":"excessive";(0,n.warn)(`decodeScan - ${yt} MCU data, current marker is: ${nt.invalid}`),R=nt.offset}if(!(nt.marker>=65488&&nt.marker<=65495))break;R+=2}return R-S}function N(P,R,o){const g=P.quantizationTable,x=P.blockData;let E,D,q,W,w,s,c,S,h,m,k,I,B,tt,it,st,X;if(!g)throw new t("missing required Quantization Table.");for(let J=0;J<64;J+=8)h=x[R+J],m=x[R+J+1],k=x[R+J+2],I=x[R+J+3],B=x[R+J+4],tt=x[R+J+5],it=x[R+J+6],st=x[R+J+7],h*=g[J],m|k|I|B|tt|it|st?(m*=g[J+1],k*=g[J+2],I*=g[J+3],B*=g[J+4],tt*=g[J+5],it*=g[J+6],st*=g[J+7],E=b*h+128>>8,D=b*B+128>>8,q=k,W=it,w=F*(m-st)+128>>8,S=F*(m+st)+128>>8,s=I<<4,c=tt<<4,E=E+D+1>>1,D=E-D,X=q*p+W*C+128>>8,q=q*C-W*p+128>>8,W=X,w=w+c+1>>1,c=w-c,S=S+s+1>>1,s=S-s,E=E+W+1>>1,W=E-W,D=D+q+1>>1,q=D-q,X=w*i+S*d+2048>>12,w=w*d-S*i+2048>>12,S=X,X=s*T+c*A+2048>>12,s=s*A-c*T+2048>>12,c=X,o[J]=E+S,o[J+7]=E-S,o[J+1]=D+c,o[J+6]=D-c,o[J+2]=q+s,o[J+5]=q-s,o[J+3]=W+w,o[J+4]=W-w):(X=b*h+512>>10,o[J]=X,o[J+1]=X,o[J+2]=X,o[J+3]=X,o[J+4]=X,o[J+5]=X,o[J+6]=X,o[J+7]=X);for(let J=0;J<8;++J)h=o[J],m=o[J+8],k=o[J+16],I=o[J+24],B=o[J+32],tt=o[J+40],it=o[J+48],st=o[J+56],m|k|I|B|tt|it|st?(E=b*h+2048>>12,D=b*B+2048>>12,q=k,W=it,w=F*(m-st)+2048>>12,S=F*(m+st)+2048>>12,s=I,c=tt,E=4112+(E+D+1>>1),D=E-D,X=q*p+W*C+2048>>12,q=q*C-W*p+2048>>12,W=X,w=w+c+1>>1,c=w-c,S=S+s+1>>1,s=S-s,E=E+W+1>>1,W=E-W,D=D+q+1>>1,q=D-q,X=w*i+S*d+2048>>12,w=w*d-S*i+2048>>12,S=X,X=s*T+c*A+2048>>12,s=s*A-c*T+2048>>12,c=X,h=E+S,st=E-S,m=D+c,it=D-c,k=q+s,tt=q-s,I=W+w,B=W-w,h<16?h=0:h>=4080?h=255:h>>=4,m<16?m=0:m>=4080?m=255:m>>=4,k<16?k=0:k>=4080?k=255:k>>=4,I<16?I=0:I>=4080?I=255:I>>=4,B<16?B=0:B>=4080?B=255:B>>=4,tt<16?tt=0:tt>=4080?tt=255:tt>>=4,it<16?it=0:it>=4080?it=255:it>>=4,st<16?st=0:st>=4080?st=255:st>>=4,x[R+J]=h,x[R+J+8]=m,x[R+J+16]=k,x[R+J+24]=I,x[R+J+32]=B,x[R+J+40]=tt,x[R+J+48]=it,x[R+J+56]=st):(X=b*h+8192>>14,X=X<-2040?0:X>=2024?255:X+2056>>4,x[R+J]=X,x[R+J+8]=X,x[R+J+16]=X,x[R+J+24]=X,x[R+J+32]=X,x[R+J+40]=X,x[R+J+48]=X,x[R+J+56]=X)}function U(P,R){const o=R.blocksPerLine,g=R.blocksPerColumn,x=new Int16Array(64);for(let E=0;E=g)return null;const E=(0,L.readUint16)(P,R);if(E>=65472&&E<=65534)return{invalid:null,marker:E,offset:R};let D=(0,L.readUint16)(P,x);for(;!(D>=65472&&D<=65534);){if(++x>=g)return null;D=(0,L.readUint16)(P,x)}return{invalid:E.toString(16),marker:D,offset:x}}M.JpegImage=class{constructor({decodeTransform:R=null,colorTransform:o=-1}={}){this._decodeTransform=R,this._colorTransform=o}parse(R,{dnlScanLines:o=null}={}){function g(){const k=(0,L.readUint16)(R,q);q+=2;let I=q+k-2;const B=$(R,I,q);B!=null&&B.invalid&&((0,n.warn)("readDataBlock - incorrect length, current marker is: "+B.invalid),I=B.offset);const tt=R.subarray(q,I);return q+=tt.length,tt}function x(k){const I=Math.ceil(k.samplesPerLine/8/k.maxH),B=Math.ceil(k.scanLines/8/k.maxV);for(const tt of k.components){const it=Math.ceil(Math.ceil(k.samplesPerLine/8)*tt.h/k.maxH),st=Math.ceil(Math.ceil(k.scanLines/8)*tt.v/k.maxV),X=I*tt.h,J=64*(B*tt.v)*(X+1);tt.blockData=new Int16Array(J),tt.blocksPerLine=it,tt.blocksPerColumn=st}k.mcusPerLine=I,k.mcusPerColumn=B}let E,D,q=0,W=null,w=null,s=0;const c=[],S=[],h=[];let m=(0,L.readUint16)(R,q);if(q+=2,m!==65496)throw new t("SOI not found");m=(0,L.readUint16)(R,q),q+=2;t:for(;m!==65497;){let k,I,B;switch(m){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 tt=g();m===65504&&tt[0]===74&&tt[1]===70&&tt[2]===73&&tt[3]===70&&tt[4]===0&&(W={version:{major:tt[5],minor:tt[6]},densityUnits:tt[7],xDensity:tt[8]<<8|tt[9],yDensity:tt[10]<<8|tt[11],thumbWidth:tt[12],thumbHeight:tt[13],thumbData:tt.subarray(14,14+3*tt[12]*tt[13])}),m===65518&&tt[0]===65&&tt[1]===100&&tt[2]===111&&tt[3]===98&&tt[4]===101&&(w={version:tt[5]<<8|tt[6],flags0:tt[7]<<8|tt[8],flags1:tt[9]<<8|tt[10],transformCode:tt[11]});break;case 65499:const it=(0,L.readUint16)(R,q);q+=2;const st=it+q-2;let X;for(;q>4){if(Q>>4!=1)throw new t("DQT - invalid table spec");for(I=0;I<64;I++)X=v[I],lt[X]=(0,L.readUint16)(R,q),q+=2}else for(I=0;I<64;I++)X=v[I],lt[X]=R[q++];c[15&Q]=lt}break;case 65472:case 65473:case 65474:if(E)throw new t("Only single frame JPEGs supported");q+=2,E={},E.extended=m===65473,E.progressive=m===65474,E.precision=R[q++];const J=(0,L.readUint16)(R,q);q+=2,E.scanLines=o||J,E.samplesPerLine=(0,L.readUint16)(R,q),q+=2,E.components=[],E.componentIds={};const j=R[q++];let O=0,H=0;for(k=0;k>4,ut=15&R[q+1];O>4?S:h)[15&Q]=u(lt,pt)}break;case 65501:q+=2,D=(0,L.readUint16)(R,q),q+=2;break;case 65498:const z=++s==1&&!o;q+=2;const Y=R[q++],G=[];for(k=0;k>4],ut.huffmanTableAC=S[15&pt],G.push(ut)}const K=R[q++],et=R[q++],nt=R[q++];try{const Q=y(R,q,E,G,D,K,et,nt>>4,15&nt,z);q+=Q}catch(Q){if(Q instanceof e)return(0,n.warn)(`${Q.message} -- attempting to re-parse the JPEG image.`),this.parse(R,{dnlScanLines:Q.scanLines});if(Q instanceof a){(0,n.warn)(`${Q.message} -- ignoring the rest of the image data.`);break t}throw Q}break;case 65500:q+=4;break;case 65535:R[q]!==255&&q--;break;default:const at=$(R,q-2,q-3);if(at!=null&&at.invalid){(0,n.warn)("JpegImage.parse - unexpected data, current marker is: "+at.invalid),q=at.offset;break}if(!at||q>=R.length-1){(0,n.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break t}throw new t("JpegImage.parse - unknown marker: "+m.toString(16))}m=(0,L.readUint16)(R,q),q+=2}this.width=E.samplesPerLine,this.height=E.scanLines,this.jfif=W,this.adobe=w,this.components=[];for(const k of E.components){const I=c[k.quantizationId];I&&(k.quantizationTable=I),this.components.push({index:k.index,output:U(0,k),scaleX:k.h/E.maxH,scaleY:k.v/E.maxV,blocksPerLine:k.blocksPerLine,blocksPerColumn:k.blocksPerColumn})}this.numComponents=this.components.length}_getLinearizedBlockData(R,o,g=!1){const x=this.width/R,E=this.height/o;let D,q,W,w,s,c,S,h,m,k,I,B=0;const tt=this.components.length,it=R*o*tt,st=new Uint8ClampedArray(it),X=new Uint32Array(R),J=4294967288;let j;for(S=0;S>8)+O[m+1];return st}get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:this.numComponents===3?this._colorTransform!==0&&(this.components[0].index!==82||this.components[1].index!==71||this.components[2].index!==66):this._colorTransform===1}_convertYccToRgb(R){let o,g,x;for(let E=0,D=R.length;E4)throw new t("Unsupported color mode");const D=this._getLinearizedBlockData(R,o,E);if(this.numComponents===1&&(g||x)){const q=D.length*(g?4:3),W=new Uint8ClampedArray(q);let w=0;if(g)(0,_.grayToRGBA)(D,new Uint32Array(W.buffer));else for(const s of D)W[w++]=s,W[w++]=s,W[w++]=s;return W}if(this.numComponents===3&&this._isColorConversionNeeded){if(g){const q=new Uint8ClampedArray(D.length/3*4);return this._convertYccToRgba(D,q)}return this._convertYccToRgb(D)}if(this.numComponents===4){if(this._isColorConversionNeeded)return g?this._convertYcckToRgba(D):x?this._convertYcckToRgb(D):this._convertYcckToCmyk(D);if(g)return this._convertCmykToRgba(D);if(x)return this._convertCmykToRgb(D)}return D}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.convertBlackAndWhiteToRGBA=_,M.convertToRGBA=function(t){switch(t.kind){case n.ImageKind.GRAYSCALE_1BPP:return _(t);case n.ImageKind.RGB_24BPP:return function({src:a,srcPos:v=0,dest:A,destPos:T=0,width:d,height:i}){let C=0;const p=a.length>>2,b=new Uint32Array(a.buffer,v,p);if(n.FeatureTest.isLittleEndian){for(;C>>24|u<<8|4278190080,A[T+2]=u>>>16|l<<16|4278190080,A[T+3]=l>>>8|4278190080}for(let F=4*C,u=a.length;F>>8|255,A[T+2]=u<<16|l>>>16|255,A[T+3]=l<<8|255}for(let F=4*C,u=a.length;F>3,b=7&a,F=L.length;e=new Uint32Array(e.buffer);let u=0;for(let l=0;l{Object.defineProperty(M,"__esModule",{value:!0}),M.JpxStream=void 0;var n=Z(18),_=Z(30),L=Z(2);class t extends n.DecodeStream{constructor(a,v,A){super(v),this.stream=a,this.dict=a.dict,this.maybeLength=v,this.params=A}get bytes(){return(0,L.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(a){}readBlock(){if(this.eof)return;const a=new _.JpxImage;a.parse(this.bytes);const v=a.width,A=a.height,T=a.componentsCount,d=a.tiles.length;if(d===1)this.buffer=a.tiles[0].items;else{const i=new Uint8ClampedArray(v*A*T);for(let C=0;C{Object.defineProperty(M,"__esModule",{value:!0}),M.JpxImage=void 0;var n=Z(2),_=Z(3),L=Z(25);class t extends n.BaseException{constructor(s){super(`JPX error: ${s}`,"JpxError")}}const e={LL:0,LH:1,HL:1,HH:2};M.JpxImage=class{constructor(){this.failOnCorruptedImage=!1}parse(s){if((0,_.readUint16)(s,0)===65359){this.parseCodestream(s,0,s.length);return}const c=s.length;let S=0;for(;S>24&255,k>>16&255,k>>8&255,255&k);(0,n.warn)(`Unsupported header type ${k} (${it}).`)}B&&(S+=I)}}parseImageProperties(s){let c=s.getByte();for(;c>=0;){const S=c;if(c=s.getByte(),(S<<8|c)===65361){s.skip(4);const h=s.getInt32()>>>0,m=s.getInt32()>>>0,k=s.getInt32()>>>0,I=s.getInt32()>>>0;s.skip(16);const B=s.getUint16();this.width=h-k,this.height=m-I,this.componentsCount=B,this.bitsPerComponent=8;return}}throw new t("No size marker found in JPX stream")}parseCodestream(s,c,S){const h={};let m=!1;try{let k=c;for(;k+1>5,it=[];B>3,Q.mu=0):(Q.epsilon=s[B]>>3,Q.mu=(7&s[B])<<8|s[B+1],B+=2),it.push(Q)}z.SPqcds=it,h.mainHeader?h.QCD=z:(h.currentTile.QCD=z,h.currentTile.QCC=[]);break;case 65373:j=(0,_.readUint16)(s,k);const Y={};B=k+2;let G;switch(h.SIZ.Csiz<257?G=s[B++]:(G=(0,_.readUint16)(s,B),B+=2),tt=s[B++],31&tt){case 0:st=8,X=!0;break;case 1:st=16,X=!1;break;case 2:st=16,X=!0;break;default:throw new Error("Invalid SQcd value "+tt)}for(Y.noQuantization=st===8,Y.scalarExpounded=X,Y.guardBits=tt>>5,it=[];B>3,Q.mu=0):(Q.epsilon=s[B]>>3,Q.mu=(7&s[B])<<8|s[B+1],B+=2),it.push(Q)}Y.SPqcds=it,h.mainHeader?h.QCC[G]=Y:h.currentTile.QCC[G]=Y;break;case 65362:j=(0,_.readUint16)(s,k);const K={};B=k+2;const et=s[B++];K.entropyCoderWithCustomPrecincts=!!(1&et),K.sopMarkerUsed=!!(2&et),K.ephMarkerUsed=!!(4&et),K.progressionOrder=s[B++],K.layersCount=(0,_.readUint16)(s,B),B+=2,K.multipleComponentTransform=s[B++],K.decompositionLevelsCount=s[B++],K.xcb=2+(15&s[B++]),K.ycb=2+(15&s[B++]);const nt=s[B++];if(K.selectiveArithmeticCodingBypass=!!(1&nt),K.resetContextProbabilities=!!(2&nt),K.terminationOnEachCodingPass=!!(4&nt),K.verticallyStripe=!!(8&nt),K.predictableTermination=!!(16&nt),K.segmentationSymbolUsed=!!(32&nt),K.reversibleTransformation=s[B++],K.entropyCoderWithCustomPrecincts){const Q=[];for(;B>4})}K.precinctsSizes=Q}const at=[];K.selectiveArithmeticCodingBypass&&at.push("selectiveArithmeticCodingBypass"),K.terminationOnEachCodingPass&&at.push("terminationOnEachCodingPass"),K.verticallyStripe&&at.push("verticallyStripe"),K.predictableTermination&&at.push("predictableTermination"),at.length>0&&(m=!0,(0,n.warn)(`JPX: Unsupported COD options (${at.join(", ")}).`)),h.mainHeader?h.COD=K:(h.currentTile.COD=K,h.currentTile.COC=[]);break;case 65424:j=(0,_.readUint16)(s,k),J={},J.index=(0,_.readUint16)(s,k+2),J.length=(0,_.readUint32)(s,k+4),J.dataEnd=J.length+k-2,J.partIndex=s[k+8],J.partsCount=s[k+9],h.mainHeader=!1,J.partIndex===0&&(J.COD=h.COD,J.COC=h.COC.slice(0),J.QCD=h.QCD,J.QCC=h.QCC.slice(0)),h.currentTile=J;break;case 65427:J=h.currentTile,J.partIndex===0&&(R(h,J.index),N(h)),j=J.dataEnd-k,U(h,s,k,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,_.readUint16)(s,k);break;default:throw new Error("Unknown codestream code: "+I.toString(16))}k+=j}}catch(k){if(m||this.failOnCorruptedImage)throw new t(k.message);(0,n.warn)(`JPX: Trying to recover from: "${k.message}".`)}this.tiles=function(I){const B=I.SIZ,tt=I.components,it=B.Csiz,st=[];for(let X=0,J=I.tiles.length;X>2);V[lt++]=St+Q>>Y,V[lt++]=St>>Y,V[lt++]=St+at>>Y}else for(K=0;K>Y,V[lt++]=nt-.34413*at-.71414*Q>>Y,V[lt++]=nt+1.772*at>>Y;if(ut)for(K=0,lt=3;K>Y}else for(let ut=0;ut>Y,lt+=it}st.push(z)}return st}(h),this.width=h.SIZ.Xsiz-h.SIZ.XOsiz,this.height=h.SIZ.Ysiz-h.SIZ.YOsiz,this.componentsCount=h.SIZ.Csiz}};function a(w,s){w.x0=Math.ceil(s.XOsiz/w.XRsiz),w.x1=Math.ceil(s.Xsiz/w.XRsiz),w.y0=Math.ceil(s.YOsiz/w.YRsiz),w.y1=Math.ceil(s.Ysiz/w.YRsiz),w.width=w.x1-w.x0,w.height=w.y1-w.y0}function v(w,s){const c=w.SIZ,S=[];let h;const m=Math.ceil((c.Xsiz-c.XTOsiz)/c.XTsiz),k=Math.ceil((c.Ysiz-c.YTOsiz)/c.YTsiz);for(let I=0;I0?Math.min(S.xcb,h.PPx-1):Math.min(S.xcb,h.PPx),h.ycb_=c>0?Math.min(S.ycb,h.PPy-1):Math.min(S.ycb,h.PPy),h}function T(w,s,c){const S=1<s.trx0?Math.ceil(s.trx1/S)-Math.floor(s.trx0/S):0,tt=s.try1>s.try0?Math.ceil(s.try1/h)-Math.floor(s.try0/h):0,it=B*tt;s.precinctParameters={precinctWidth:S,precinctHeight:h,numprecinctswide:B,numprecinctshigh:tt,numprecincts:it,precinctWidthInSubband:k,precinctHeightInSubband:I}}function d(w,s,c){const S=c.xcb_,h=c.ycb_,m=1<>S,B=s.tby0>>h,tt=s.tbx1+m-1>>S,it=s.tby1+k-1>>h,st=s.resolution.precinctParameters,X=[],J=[];let j,O,H,V;for(O=B;Oz.cbxMax&&(z.cbxMax=j),Oz.cbyMax&&(z.cbyMax=O)):J[V]=z={cbxMin:j,cbyMin:O,cbxMax:j,cbyMax:O},H.precinct=z}s.codeblockParameters={codeblockWidth:S,codeblockHeight:h,numcodeblockwide:tt-I+1,numcodeblockhigh:it-B+1},s.codeblocks=X,s.precincts=J}function i(w,s,c){const S=[],h=w.subbands;for(let m=0,k=h.length;mX.codingStyleParameters.decompositionLevelsCount)continue;const J=X.resolutions[B],j=J.precinctParameters.numprecincts;for(;itX.codingStyleParameters.decompositionLevelsCount)continue;const J=X.resolutions[I],j=J.precinctParameters.numprecincts;for(;itJ.codingStyleParameters.decompositionLevelsCount)continue;const j=J.resolutions[I],O=j.precinctParameters.numprecincts;if(!(tt>=O)){for(;k=0;--H){const V=B.resolutions[H],z=O*V.precinctParameters.precinctWidth,Y=O*V.precinctParameters.precinctHeight;st=Math.min(st,z),X=Math.min(X,Y),J=Math.max(J,V.precinctParameters.numprecinctswide),j=Math.max(j,V.precinctParameters.numprecinctshigh),it[H]={width:z,height:Y},O<<=1}c=Math.min(c,st),S=Math.min(S,X),h=Math.max(h,J),m=Math.max(m,j),k[I]={resolutions:it,minWidth:st,minHeight:X,maxNumWide:J,maxNumHigh:j}}return{components:k,minWidth:c,minHeight:S,maxNumWide:h,maxNumHigh:m}}function N(w){const s=w.SIZ,c=w.currentTile.index,S=w.tiles[c],h=s.Csiz;for(let k=0;k>>k&(1<0;){const et=G.shift();K=et.codeblock,K.data===void 0&&(K.data=[]),K.data.push({data:s,start:c+m,end:c+m+et.dataLength,codingpasses:et.codingpasses}),m+=et.dataLength}}return m}function $(w,s,c,S,h,m,k,I,B){const tt=S.tbx0,it=S.tby0,st=S.tbx1-S.tbx0,X=S.codeblocks,J=S.type.charAt(0)==="H"?1:0,j=S.type.charAt(1)==="H"?s:0;for(let O=0,H=X.length;O=m?Gt:Gt*(1<0?1-z:0));const ut=Y.subbands[nt],pt=e[ut.type];$(et,G,0,ut,J?1:2**(X+pt-lt)*(1+Q/2048),tt+lt-1,J,it,st)}O.push({width:G,height:K,items:et})}const V=j.calculate(O,S.tcx0,S.tcy0);return{left:S.tcx0,top:S.tcy0,width:V.width,height:V.height,items:V.items}}function R(w,s){const c=w.SIZ.Csiz,S=w.tiles[s];for(let h=0;h>=1,c>>=1,h++}h--,S=this.levels[h],S.items[S.index]=m,this.currentLevel=h,delete this.value}incrementValue(){const s=this.levels[this.currentLevel];s.items[s.index]++}nextLevel(){let s=this.currentLevel,c=this.levels[s];const S=c.items[c.index];return s--,s<0?(this.value=S,!1):(this.currentLevel=s,c=this.levels[s],c.items[c.index]=S,!0)}}class g{constructor(s,c,S){const h=(0,_.log2)(Math.max(s,c))+1;this.levels=[];for(let m=0;mS)return this.currentLevel=h,this.propagateValues(),!1;s>>=1,c>>=1,h++}return this.currentLevel=h-1,!0}incrementValue(s){const c=this.levels[this.currentLevel];c.items[c.index]=s+1,this.propagateValues()}propagateValues(){let s=this.currentLevel,c=this.levels[s];const S=c.items[c.index];for(;--s>=0;)c=this.levels[s],c.items[c.index]=S}nextLevel(){let s=this.currentLevel,c=this.levels[s];const S=c.items[c.index];return c.items[c.index]=255,s--,s<0?!1:(this.currentLevel=s,c=this.levels[s],c.items[c.index]=S,!0)}}const W=class W{constructor(s,c,S,h,m){this.width=s,this.height=c;let k;k=S==="HH"?W.HHContextLabel:S==="HL"?W.HLContextLabel:W.LLAndLHContextsLabel,this.contextLabelTable=k;const I=s*c;this.neighborsSignificance=new Uint8Array(I),this.coefficentsSign=new Uint8Array(I);let B;B=m>14?new Uint32Array(I):m>6?new Uint16Array(I):new Uint8Array(I),this.coefficentsMagnitude=B,this.processingFlags=new Uint8Array(I);const tt=new Uint8Array(I);if(h!==0)for(let it=0;it0,B=c+10&&(tt=S-m,I&&(h[tt-1]+=16),B&&(h[tt+1]+=16),h[tt]+=4),s+1=S)break;if(I[J]&=-2,h[J]||!k[J])continue;const H=tt[k[J]];if(s.readBit(B,H)){const V=this.decodeSignBit(O,X,J);m[J]=V,h[J]=1,this.setNeighborsSignificance(O,X,J),I[J]|=2}it[J]++,I[J]|=1}}}decodeSignBit(s,c,S){const h=this.width,m=this.height,k=this.coefficentsMagnitude,I=this.coefficentsSign;let B,tt,it,st,X,J;st=c>0&&k[S-1]!==0,c+10&&k[S-h]!==0,s+1=0?(X=9+B,J=this.decoder.readBit(this.contexts,X)):(X=9-B,J=1^this.decoder.readBit(this.contexts,X)),J}runMagnitudeRefinementPass(){const s=this.decoder,c=this.width,S=this.height,h=this.coefficentsMagnitude,m=this.neighborsSignificance,k=this.contexts,I=this.bitsDecoded,B=this.processingFlags,tt=c*S,it=4*c;for(let st,X=0;X>1;let m,k,I,B;const tt=-1.586134342059924,it=-.052980118572961,st=.882911075530934,X=.443506852043971,J=1.230174104914001;for(m=(c|=0)-3,k=h+4;k--;m+=2)s[m]*=.8128930661159609;for(m=c-2,I=X*s[m-1],k=h+3;k--&&(B=X*s[m+1],s[m]=J*s[m]-I-B,!!k--);m+=2)m+=2,I=X*s[m+1],s[m]=J*s[m]-I-B;for(m=c-1,I=st*s[m-1],k=h+2;k--&&(B=st*s[m+1],s[m]-=I+B,!!k--);m+=2)m+=2,I=st*s[m+1],s[m]-=I+B;for(m=c,I=it*s[m-1],k=h+1;k--&&(B=it*s[m+1],s[m]-=I+B,!!k--);m+=2)m+=2,I=it*s[m+1],s[m]-=I+B;if(h!==0)for(m=c+1,I=tt*s[m-1],k=h;k--&&(B=tt*s[m+1],s[m]-=I+B,!!k--);m+=2)m+=2,I=tt*s[m+1],s[m]-=I+B}}class q extends E{filter(s,c,S){const h=S>>1;let m,k;for(m=c|=0,k=h+1;k--;m+=2)s[m]-=s[m-1]+s[m+1]+2>>2;for(m=c+1,k=h;k--;m+=2)s[m]+=s[m-1]+s[m+1]>>1}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.LZWStream=void 0;var n=Z(18);class _ extends n.DecodeStream{constructor(t,e,a){super(e),this.str=t,this.dict=t.dict,this.cachedData=0,this.bitsCached=0;const v=4096,A={earlyChange:a,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(v),dictionaryLengths:new Uint16Array(v),dictionaryPrevCodes:new Uint16Array(v),currentSequence:new Uint8Array(v),currentSequenceLength:0};for(let T=0;T<256;++T)A.dictionaryValues[T]=T,A.dictionaryLengths[T]=1;this.lzwState=A}readBits(t){let e=this.bitsCached,a=this.cachedData;for(;e>>e&(1<0;if($<256)u[0]=$,l=1;else{if(!($>=258)){if($===256){b=9,d=258,l=0;continue}this.eof=!0,delete this.lzwState;break}if($=0;e--)u[e]=i[a],a=p[a];else u[l++]=u[0]}if(P&&(p[d]=F,C[d]=C[F]+1,i[d]=u[0],d++,b=d+T&d+T-1?b:0|Math.min(Math.log(d+T)/.6931471805599453+1,12)),F=$,y+=l,v{Object.defineProperty(M,"__esModule",{value:!0}),M.PredictorStream=void 0;var n=Z(18),_=Z(4),L=Z(2);class t extends n.DecodeStream{constructor(a,v,A){if(super(v),!(A instanceof _.Dict))return a;const T=this.predictor=A.get("Predictor")||1;if(T<=1)return a;if(T!==2&&(T<10||T>15))throw new L.FormatError(`Unsupported predictor: ${T}`);this.readBlock=T===2?this.readBlockTiff:this.readBlockPng,this.str=a,this.dict=a.dict;const d=this.colors=A.get("Colors")||1,i=this.bits=A.get("BPC","BitsPerComponent")||8,C=this.columns=A.get("Columns")||1;return this.pixBytes=d*i+7>>3,this.rowBytes=C*d*i+7>>3,this}readBlockTiff(){const a=this.rowBytes,v=this.bufferLength,A=this.ensureBuffer(v+a),T=this.bits,d=this.colors,i=this.str.getBytes(a);if(this.eof=!i.length,this.eof)return;let C,p=0,b=0,F=0,u=0,l=v;if(T===1&&d===1)for(C=0;C>1,y^=y>>2,y^=y>>4,p=(1&y)<<7,A[l++]=y}else if(T===8){for(C=0;C>8&255,A[l++]=255&N}}else{const y=new Uint8Array(d+1),N=(1<>F-T)&N,F-=T,b=b<=8&&(A[$++]=b>>u-8&255,u-=8);u>0&&(A[$++]=(b<<8-u)+(p&(1<<8-u)-1))}this.bufferLength+=a}readBlockPng(){const a=this.rowBytes,v=this.pixBytes,A=this.str.getByte(),T=this.str.getBytes(a);if(this.eof=!T.length,this.eof)return;const d=this.bufferLength,i=this.ensureBuffer(d+a);let C=i.subarray(d-a,d);C.length===0&&(C=new Uint8Array(a));let p,b,F,u=d;switch(A){case 0:for(p=0;p>1)+T[p];for(;p>1)+T[p]&255,u++;break;case 4:for(p=0;p{Object.defineProperty(M,"__esModule",{value:!0}),M.RunLengthStream=void 0;var n=Z(18);class _ extends n.DecodeStream{constructor(t,e){super(e),this.str=t,this.dict=t.dict}readBlock(){const t=this.str.getBytes(2);if(!t||t.length<2||t[0]===128){this.eof=!0;return}let e,a=this.bufferLength,v=t[0];if(v<128){if(e=this.ensureBuffer(a+v+1),e[a++]=t[1],v>0){const A=this.str.getBytes(v);e.set(A,a),a+=v}}else{v=257-v;const A=t[1];e=this.ensureBuffer(a+v+1);for(let T=0;T{Object.defineProperty(M,"__esModule",{value:!0}),M.Font=M.ErrorFont=void 0;var n=Z(2),_=Z(35),L=Z(38),t=Z(40),e=Z(39),a=Z(37),v=Z(41),A=Z(42),T=Z(43),d=Z(44),i=Z(45),C=Z(46),p=Z(14),b=Z(47),F=Z(3),u=Z(8),l=Z(48);const y=[[57344,63743],[1048576,1114109]],N=1e3,U=["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"],$=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function P(X){if(!X.fontMatrix||X.fontMatrix[0]===n.FONT_IDENTITY_MATRIX[0])return;const J=.001/X.fontMatrix[0],j=X.widths;for(const O in j)j[O]*=J;X.defaultWidth*=J}function R(X){if(!X.fallbackToUnicode||X.toUnicode instanceof A.IdentityToUnicodeMap)return;const J=[];for(const j in X.fallbackToUnicode)X.toUnicode.has(j)||(J[j]=X.fallbackToUnicode[j]);J.length>0&&X.toUnicode.amend(J)}class o{constructor(J,j,O,H,V,z,Y,G,K){this.originalCharCode=J,this.fontChar=j,this.unicode=O,this.accent=H,this.width=V,this.vmetric=z,this.operatorListId=Y,this.isSpace=G,this.isInFont=K}get category(){return(0,n.shadow)(this,"category",(0,t.getCharUnicodeCategory)(this.unicode),!0)}}function g(X,J){return(X<<8)+J}function x(X,J,j){X[J+1]=j,X[J]=j>>>8}function E(X,J){const j=(X<<8)+J;return 32768&j?j-65536:j}function D(X){return String.fromCharCode(X>>8&255,255&X)}function q(X){return X>32767?X=32767:X<-32768&&(X=-32768),String.fromCharCode(X>>8&255,255&X)}function W(X){const J=X.peekBytes(4);return(0,n.bytesToString)(J)==="ttcf"}function w(X,{type:J,subtype:j,composite:O}){let H,V;return function(Y){const G=Y.peekBytes(4);return(0,F.readUint32)(G,0)===65536||(0,n.bytesToString)(G)==="true"}(X)||W(X)?H=O?"CIDFontType2":"TrueType":function(Y){const G=Y.peekBytes(4);return(0,n.bytesToString)(G)==="OTTO"}(X)?H=O?"CIDFontType2":"OpenType":function(Y){const G=Y.peekBytes(2);return G[0]===37&&G[1]===33||G[0]===128&&G[1]===1}(X)?H=O?"CIDFontType0":J==="MMType1"?"MMType1":"Type1":function(Y){const G=Y.peekBytes(4);return G[0]>=1&&G[3]>=1&&G[3]<=4}(X)?O?(H="CIDFontType0",V="CIDFontType0C"):(H=J==="MMType1"?"MMType1":"Type1",V="Type1C"):((0,n.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),H=J,V=j),[H,V]}function s(X,J){for(const j in J)X[+j]=J[j]}function c(X,J,j){const O=[];let H;for(let V=0,z=X.length;Vet){if(G++,G>=y.length){(0,n.warn)("Ran out of space in font private use area.");break}K=y[G][0],et=y[G][1]}const lt=K++;Q===0&&(Q=j);let ut=O.get(at);typeof ut=="string"&&(ut=ut.codePointAt(0)),ut&&(nt=ut,!(y[0][0]<=nt&&nt<=y[0][1]||y[1][0]<=nt&&nt<=y[1][1]))&&!Y.has(Q)&&(V.set(ut,Q),Y.add(Q)),H[lt]=Q,z[at]=lt}var nt;return{toFontChar:z,charCodeToGlyphId:H,toUnicodeExtraMap:V,nextAvailableFontCharCode:K}}function I(X,J,j){const O=function(Ut,Vt,Wt){const Yt=[];for(const Bt in Ut)Ut[Bt]>=Wt||Yt.push({fontCharCode:0|Bt,glyphId:Ut[Bt]});if(Vt)for(const[Bt,Xt]of Vt)Xt>=Wt||Yt.push({fontCharCode:Bt,glyphId:Xt});Yt.length===0&&Yt.push({fontCharCode:0,glyphId:0}),Yt.sort(function(Xt,jt){return Xt.fontCharCode-jt.fontCharCode});const re=[],Jt=Yt.length;for(let Bt=0;Bt65535?2:1;let V,z,Y,G,K="\0\0"+D(H)+"\0\0"+(0,n.string32)(4+8*H);for(V=O.length-1;V>=0&&!(O[V][0]<=65535);--V);const et=V+1;O[V][0]<65535&&O[V][1]===65535&&(O[V][1]=65534);const nt=O[V][1]<65535?1:0,at=et+nt,Q=b.OpenTypeFileBuilder.getSearchParams(at,2);let lt,ut,pt,yt,Et="",Tt="",xt="",wt="",St="",Rt=0;for(V=0,z=et;V0&&(Tt+="ÿÿ",Et+="ÿÿ",xt+="\0",wt+="\0\0");const Ct="\0\0"+D(2*at)+D(Q.range)+D(Q.entry)+D(Q.rangeShift)+Tt+"\0\0"+Et+xt+wt+St;let Gt="",Zt="";if(H>1){for(K+=`\0\0 `+(0,n.string32)(4+8*H+4+Ct.length),Gt="",V=0,z=O.length;Vyt||!Y)&&(Y=yt),G 123 are reserved for internal usage");z|=1<65535&&(G=65535)}else Y=0,G=255;const et=X.bbox||[0,0,0,0],nt=j.unitsPerEm||1/(X.fontMatrix||n.FONT_IDENTITY_MATRIX)[0],at=X.ascentScaled?1:nt/N,Q=j.ascent||Math.round(at*(X.ascent||et[3]));let lt=j.descent||Math.round(at*(X.descent||et[1]));lt>0&&X.descent>0&&et[1]<0&&(lt=-lt);const ut=j.yMax||Q,pt=-j.yMin||-lt;return"\0$ô\0\0\0Š»\0\0\0ŒŠ»\0\0ß\x001\0\0\0\0"+String.fromCharCode(X.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,n.string32)(O)+(0,n.string32)(H)+(0,n.string32)(V)+(0,n.string32)(z)+"*21*"+D(X.italicAngle?1:0)+D(Y||X.firstChar)+D(G||X.lastChar)+D(Q)+D(lt)+"\0d"+D(ut)+D(pt)+"\0\0\0\0\0\0\0\0"+D(X.xHeight)+D(X.capHeight)+D(0)+D(Y||X.firstChar)+"\0"}function tt(X){const J=Math.floor(65536*X.italicAngle);return"\0\0\0"+(0,n.string32)(J)+"\0\0\0\0"+(0,n.string32)(X.fixedPitch?1:0)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function it(X){return X.replaceAll(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function st(X,J){J||(J=[[],[]]);const j=[J[0][0]||"Original licence",J[0][1]||X,J[0][2]||"Unknown",J[0][3]||"uniqueID",J[0][4]||X,J[0][5]||"Version 0.11",J[0][6]||it(X),J[0][7]||"Unknown",J[0][8]||"Unknown",J[0][9]||"Unknown"],O=[];let H,V,z,Y,G;for(H=0,V=j.length;H0,(Y||G)&&O==="CIDFontType2"&&this.cidEncoding.startsWith("Identity-")){const nt=J.cidToGidMap,at=[];if(s(at,(0,v.getGlyphMapForStandardFonts)()),/Arial-?Black/i.test(j)?s(at,(0,v.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(j)&&s(at,(0,v.getSupplementalGlyphMapForCalibri)()),nt){for(const Q in at){const lt=at[Q];nt[lt]!==void 0&&(at[+Q]=nt[lt])}nt.length!==this.toUnicode.length&&J.hasIncludedToUnicodeMap&&this.toUnicode instanceof A.IdentityToUnicodeMap&&this.toUnicode.forEach(function(Q,lt){const ut=at[Q];nt[ut]===void 0&&(at[+Q]=lt)})}this.toUnicode instanceof A.IdentityToUnicodeMap||this.toUnicode.forEach(function(Q,lt){at[+Q]=lt}),this.toFontChar=at,this.toUnicode=new A.ToUnicodeMap(at)}else if(/Symbol/i.test(H))this.toFontChar=c(a.SymbolSetEncoding,(0,e.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(H))this.toFontChar=c(a.ZapfDingbatsEncoding,(0,e.getDingbatsGlyphsUnicode)(),this.differences);else if(Y){const nt=c(this.defaultEncoding,(0,e.getGlyphsUnicode)(),this.differences);O!=="CIDFontType2"||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof A.IdentityToUnicodeMap||this.toUnicode.forEach(function(at,Q){nt[+at]=Q}),this.toFontChar=nt}else{const nt=(0,e.getGlyphsUnicode)(),at=[];this.toUnicode.forEach((Q,lt)=>{if(!this.composite){const ut=this.differences[Q]||this.defaultEncoding[Q],pt=(0,t.getUnicodeForGlyph)(ut,nt);pt!==-1&&(lt=pt)}at[+Q]=lt}),this.composite&&this.toUnicode instanceof A.IdentityToUnicodeMap&&/Tahoma|Verdana/i.test(j)&&s(at,(0,v.getGlyphMapForStandardFonts)()),this.toFontChar=at}R(J),this.loadedName=H.split("-")[0]}checkAndRepair(J,j,O){var Wt,Yt,re;const H=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function V(Jt,Bt){const Xt=Object.create(null);Xt["OS/2"]=null,Xt.cmap=null,Xt.head=null,Xt.hhea=null,Xt.hmtx=null,Xt.maxp=null,Xt.name=null,Xt.post=null;for(let jt=0;jt>>0,jt=Jt.getInt32()>>>0,mt=Jt.getInt32()>>>0,rt=Jt.pos;Jt.pos=Jt.start||0,Jt.skip(jt);const ht=Jt.getBytes(mt);return Jt.pos=rt,Bt==="head"&&(ht[8]=ht[9]=ht[10]=ht[11]=0,ht[17]|=32),{tag:Bt,checksum:Xt,length:mt,offset:jt,data:ht}}function Y(Jt){return{version:Jt.getString(4),numTables:Jt.getUint16(),searchRange:Jt.getUint16(),entrySelector:Jt.getUint16(),rangeShift:Jt.getUint16()}}function G(Jt,Bt,Xt,jt,mt,rt){const ht={length:0,sizeOfInstructions:0};if(Bt<0||Bt>=Jt.length||Xt>Jt.length||Xt-Bt<=12)return ht;const gt=Jt.subarray(Bt,Xt),bt=E(gt[2],gt[3]),Pt=E(gt[4],gt[5]),It=E(gt[6],gt[7]),Nt=E(gt[8],gt[9]);bt>It&&(x(gt,2,It),x(gt,6,bt)),Pt>Nt&&(x(gt,4,Nt),x(gt,8,Pt));const Kt=E(gt[0],gt[1]);if(Kt<0)return Kt<-1||(jt.set(gt,mt),ht.length=gt.length),ht;let Qt,ne=10,ee=0;for(Qt=0;Qtgt.length?ht:!rt&&oe>0?(jt.set(gt.subarray(0,te),mt),jt.set([0,0],mt+te),jt.set(gt.subarray(le,ce),mt+te+2),ce-=oe,gt.length-ce>3&&(ce=ce+3&-4),ht.length=ce,ht):gt.length-ce>3?(ce=ce+3&-4,jt.set(gt.subarray(0,ce),mt),ht.length=ce,ht):(jt.set(gt,mt),ht.length=gt.length,ht)}function K(Jt){const Bt=(j.start||0)+Jt.offset;j.pos=Bt;const Xt=[[],[]],jt=[],mt=Jt.length,rt=Bt+mt;if(j.getUint16()!==0||mt<6)return[Xt,jt];const ht=j.getUint16(),gt=j.getUint16();let bt,Pt;for(bt=0;btrt)continue;j.pos=Nt;const Kt=It.name;if(It.encoding){let Qt="";for(let ne=0,ee=It.length;ne0&&(bt+=se-1)}}else(ee||oe)&&((0,n.warn)("TT: nested FDEFs not allowed"),ne=!0),ee=!0,It=bt,rt=Nt.pop(),Bt.functionsDefined[rt]={data:gt,i:bt};else if(!ee&&!oe){if(rt=Nt.at(-1),isNaN(rt))(0,n.info)("TT: CALL empty stack (or invalid entry).");else if(Bt.functionsUsed[rt]=!0,rt in Bt.functionsStackDeltas){const se=Nt.length+Bt.functionsStackDeltas[rt];if(se<0){(0,n.warn)("TT: CALL invalid functions stack delta."),Bt.hintsValid=!1;return}Nt.length=se}else if(rt in Bt.functionsDefined&&!Qt.includes(rt)){if(Kt.push({data:gt,i:bt,stackTop:Nt.length-1}),Qt.push(rt),ht=Bt.functionsDefined[rt],!ht){(0,n.warn)("TT: CALL non-existent function"),Bt.hintsValid=!1;return}gt=ht.data,bt=ht.i}}if(!ee&&!oe){let se=0;for(ce<=142?se=et[ce]:ce>=192&&ce<=223?se=-1:ce>=224&&(se=-2),ce>=113&&ce<=117&&(jt=Nt.pop(),isNaN(jt)||(se=2*-jt));se<0&&Nt.length>0;)Nt.pop(),se++;for(;se>0;)Nt.push(NaN),se--}}Bt.tooComplexToFollowFunctions=ne;const le=[gt];bt>gt.length&&le.push(new Uint8Array(bt-gt.length)),It>Pt&&((0,n.warn)("TT: complementing a missing function tail"),le.push(new Uint8Array([34,45]))),function(ce,se){if(se.length>1){let ue,he,de=0;for(ue=0,he=se.length;ue>>0,ee=[];for(let oe=0;oe>>0);const te={ttcTag:Nt,majorVersion:Kt,minorVersion:Qt,numFonts:ne,offsetTable:ee};switch(Kt){case 1:return te;case 2:return te.dsigTag=It.getInt32()>>>0,te.dsigLength=It.getInt32()>>>0,te.dsigOffset=It.getInt32()>>>0,te}throw new n.FormatError(`Invalid TrueType Collection majorVersion: ${Kt}.`)}(Xt),ht=jt.split("+");let gt;for(let Pt=0;Pt0||!(O.cMap instanceof p.IdentityCMap));if(at.version==="OTTO"&&!Jt||!Q.head||!Q.hhea||!Q.maxp||!Q.post)return ut=new u.Stream(Q["CFF "].data),lt=new T.CFFFont(ut,O),P(O),this.convert(J,lt,O);delete Q.glyf,delete Q.loca,delete Q.fpgm,delete Q.prep,delete Q["cvt "],this.isOpenType=!0}if(!Q.maxp)throw new n.FormatError('Required "maxp" table is not found');j.pos=(j.start||0)+Q.maxp.offset;const yt=j.getInt32(),Et=j.getUint16();if(((Yt=O.scaleFactors)==null?void 0:Yt.length)===Et&&pt){const{scaleFactors:Jt}=O,Bt=g(Q.head.data[50],Q.head.data[51]),Xt=new C.GlyfTable({glyfTable:Q.glyf.data,isGlyphLocationsLong:Bt,locaTable:Q.loca.data,numGlyphs:Et});Xt.scale(Jt);const{glyf:jt,loca:mt,isLocationLong:rt}=Xt.write();Q.glyf.data=jt,Q.loca.data=mt,rt!==!!Bt&&(Q.head.data[50]=0,Q.head.data[51]=rt?1:0);const ht=Q.hmtx.data;for(let gt=0;gt>8&255,ht[bt+1]=255&Pt,x(ht,bt+2,Math.round(Jt[gt]*E(ht[bt+2],ht[bt+3])))}}let Tt=Et+1,xt=!0;Tt>65535&&(xt=!1,Tt=Et,(0,n.warn)("Not enough space in glyfs to duplicate first glyph."));let wt=0,St=0;yt>=65536&&Q.maxp.length>=22&&(j.pos+=8,j.getUint16()>2&&(Q.maxp.data[14]=0,Q.maxp.data[15]=2),j.pos+=4,wt=j.getUint16(),j.pos+=4,St=j.getUint16()),Q.maxp.data[4]=Tt>>8,Q.maxp.data[5]=255&Tt;const Rt=function(Bt,Xt,jt,mt){const rt={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(Bt&&nt(Bt,rt),Xt&&nt(Xt,rt),Bt&&function(gt,bt){if(!gt.tooComplexToFollowFunctions)if(gt.functionsDefined.length>bt)(0,n.warn)("TT: more functions defined than expected"),gt.hintsValid=!1;else for(let Pt=0,It=gt.functionsUsed.length;Ptbt){(0,n.warn)("TT: invalid function id: "+Pt),gt.hintsValid=!1;return}if(gt.functionsUsed[Pt]&&!gt.functionsDefined[Pt]){(0,n.warn)("TT: undefined function: "+Pt),gt.hintsValid=!1;return}}}(rt,mt),jt&&1&jt.length){const ht=new Uint8Array(jt.length+1);ht.set(jt.data),jt.data=ht}return rt.hintsValid}(Q.fpgm,Q.prep,Q["cvt "],wt);if(Rt||(delete Q.fpgm,delete Q.prep,delete Q["cvt "]),function(Bt,Xt,jt,mt,rt,ht){if(!Xt){jt&&(jt.data=null);return}Bt.pos=(Bt.start||0)+Xt.offset,Bt.pos+=4,Bt.pos+=2,Bt.pos+=2,Bt.pos+=2,Bt.pos+=2,Bt.pos+=2,Bt.pos+=2,Bt.pos+=2,Bt.pos+=2,Bt.pos+=2;const gt=Bt.getUint16();Bt.pos+=8,Bt.pos+=2;let bt=Bt.getUint16();gt!==0&&(2&g(mt.data[44],mt.data[45])||(Xt.data[22]=0,Xt.data[23]=0)),bt>rt&&((0,n.info)(`The numOfMetrics (${bt}) should not be greater than the numGlyphs (${rt}).`),bt=rt,Xt.data[34]=(65280&bt)>>8,Xt.data[35]=255&bt);const Pt=rt-bt-(jt.length-4*bt>>1);if(Pt>0){const It=new Uint8Array(jt.length+2*Pt);It.set(jt.data),ht&&(It[jt.length]=jt.data[2],It[jt.length+1]=jt.data[3]),jt.data=It}}(j,Q.hhea,Q.hmtx,Q.head,Tt,xt),!Q.head)throw new n.FormatError('Required "head" table is not found');(function(Bt,Xt,jt){const mt=Bt.data,rt=function(bt,Pt,It,Nt){return(bt<<24)+(Pt<<16)+(It<<8)+Nt}(mt[0],mt[1],mt[2],mt[3]);rt>>16!=1&&((0,n.info)("Attempting to fix invalid version in head table: "+rt),mt[0]=0,mt[1]=1,mt[2]=0,mt[3]=0);const ht=g(mt[50],mt[51]);if(ht<0||ht>1){(0,n.info)("Attempting to fix invalid indexToLocFormat in head table: "+ht);const gt=Xt+1;if(jt===gt<<1)mt[50]=0,mt[51]=0;else{if(jt!==gt<<2)throw new n.FormatError("Could not fix indexToLocFormat: "+ht);mt[50]=0,mt[51]=1}}})(Q.head,Et,pt?Q.loca.length:0);let Ct=Object.create(null);if(pt){const Jt=g(Q.head.data[50],Q.head.data[51]),Bt=function(jt,mt,rt,ht,gt,bt,Pt){let It,Nt,Kt;ht?(It=4,Nt=function(ge,Ae){return ge[Ae]<<24|ge[Ae+1]<<16|ge[Ae+2]<<8|ge[Ae+3]},Kt=function(ge,Ae,Ee){ge[Ae]=Ee>>>24&255,ge[Ae+1]=Ee>>16&255,ge[Ae+2]=Ee>>8&255,ge[Ae+3]=255&Ee}):(It=2,Nt=function(ge,Ae){return ge[Ae]<<9|ge[Ae+1]<<1},Kt=function(ge,Ae,Ee){ge[Ae]=Ee>>9&255,ge[Ae+1]=Ee>>1&255});const Qt=bt?rt+1:rt,ne=It*(1+Qt),ee=new Uint8Array(ne);ee.set(jt.data.subarray(0,ne)),jt.data=ee;const te=mt.data,oe=te.length,le=new Uint8Array(oe);let ie,ce;const se=[];for(ie=0,ce=0;ieoe&&(de=oe),se.push({index:ie,offset:de,endOffset:0})}for(se.sort((de,ge)=>de.offset-ge.offset),ie=0;iede.index-ge.index),ie=0;iePt&&(Pt=de.sizeOfInstructions),he+=ge,Kt(ee,ce,he)}if(he===0){const de=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(ie=0,ce=It;iede+he?mt.data=le.subarray(0,de+he):(mt.data=new Uint8Array(de+he),mt.data.set(le.subarray(0,he))),mt.data.set(le.subarray(0,de),he),Kt(jt.data,ee.length-It,he+de)}else mt.data=le.subarray(0,he);return{missingGlyphs:ue,maxSizeOfInstructions:Pt}}(Q.loca,Q.glyf,Et,Jt,Rt,xt,St);Ct=Bt.missingGlyphs,yt>=65536&&Q.maxp.length>=22&&(Q.maxp.data[26]=Bt.maxSizeOfInstructions>>8,Q.maxp.data[27]=255&Bt.maxSizeOfInstructions)}if(!Q.hhea)throw new n.FormatError('Required "hhea" table is not found');Q.hhea.data[10]===0&&Q.hhea.data[11]===0&&(Q.hhea.data[10]=255,Q.hhea.data[11]=255);const Gt={unitsPerEm:g(Q.head.data[18],Q.head.data[19]),yMax:E(Q.head.data[42],Q.head.data[43]),yMin:E(Q.head.data[38],Q.head.data[39]),ascent:E(Q.hhea.data[4],Q.hhea.data[5]),descent:E(Q.hhea.data[6],Q.hhea.data[7]),lineGap:E(Q.hhea.data[8],Q.hhea.data[9])};this.ascent=Gt.ascent/Gt.unitsPerEm,this.descent=Gt.descent/Gt.unitsPerEm,this.lineGap=Gt.lineGap/Gt.unitsPerEm,(re=this.cssFontInfo)!=null&&re.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,Q.post&&function(Bt,Xt,jt){const mt=(j.start||0)+Bt.offset;j.pos=mt;const rt=mt+Bt.length,ht=j.getInt32();j.skip(28);let gt,bt,Pt=!0;switch(ht){case 65536:gt=L.MacStandardGlyphOrdering;break;case 131072:const It=j.getUint16();if(It!==jt){Pt=!1;break}const Nt=[];for(bt=0;bt=32768){Pt=!1;break}Nt.push(ne)}if(!Pt)break;const Kt=[],Qt=[];for(;j.pos65535)throw new n.FormatError("Max size of CID is 65,535");let mt=-1;Bt?mt=jt:Jt[jt]!==void 0&&(mt=Jt[jt]),mt>=0&&mt>>0;let ge=!1;if((ne==null?void 0:ne.platformId)!==ue||(ne==null?void 0:ne.encodingId)!==he){if(ue!==0||he!==0&&he!==1&&he!==3)if(ue===1&&he===0)ge=!0;else if(ue!==3||he!==1||!It&&ne){if(Pt&&ue===3&&he===0){ge=!0;let Ae=!0;if(se>3;se.push(ge),ue=Math.max(ge,ue)}const he=[];for(let de=0;de<=ue;de++)he.push({firstCode:bt.getUint16(),entryCount:bt.getUint16(),idDelta:E(bt.getByte(),bt.getByte()),idRangePos:bt.pos+bt.getUint16()});for(let de=0;de<256;de++)if(se[de]===0)bt.pos=he[0].idRangePos+2*de,ce=bt.getUint16(),le.push({charCode:de,glyphId:ce});else{const ge=he[se[de]];for(ie=0;ie>1;bt.skip(6);const ue=[];let he;for(he=0;he>1)-(se-he),Nt.offsetIndex=de,ge=Math.max(ge,de+Nt.end-Nt.start+1)):Nt.offsetIndex=-1}const Ae=[];for(ie=0;ie>>0;for(ie=0;ie>>0,he=bt.getInt32()>>>0;let de=bt.getInt32()>>>0;for(let ge=ue;ge<=he;ge++)le.push({charCode:ge,glyphId:de++})}}}le.sort(function(se,ue){return se.charCode-ue.charCode});for(let se=1;se=61440&><=61695&&(gt&=255),Zt[gt]=ht.glyphId}if(O.glyphNames&&(mt.length||this.differences.length))for(let ht=0;ht<256;++ht){if(!rt&&Zt[ht]!==void 0)continue;const gt=this.differences[ht]||mt[ht];if(!gt)continue;const bt=O.glyphNames.indexOf(gt);bt>0&&Ft(bt)&&(Zt[ht]=bt)}}Zt.length===0&&(Zt[0]=0);let Ut=Tt-1;if(xt||(Ut=0),!O.cssFontInfo){const Jt=k(Zt,Ft,Ut,this.toUnicode);this.toFontChar=Jt.toFontChar,Q.cmap={tag:"cmap",data:I(Jt.charCodeToGlyphId,Jt.toUnicodeExtraMap,Tt)},Q["OS/2"]&&function(Xt,jt){jt.pos=(jt.start||0)+Xt.offset;const mt=jt.getUint16();jt.skip(60);const rt=jt.getUint16();return mt<4&&768&rt||jt.getUint16()>jt.getUint16()||(jt.skip(6),jt.getUint16()===0)?!1:(Xt.data[8]=Xt.data[9]=0,!0)}(Q["OS/2"],j)||(Q["OS/2"]={tag:"OS/2",data:B(O,Jt.charCodeToGlyphId,Gt)})}if(!pt)try{ut=new u.Stream(Q["CFF "].data),lt=new _.CFFParser(ut,O,L.SEAC_ANALYSIS_ENABLED).parse(),lt.duplicateFirstGlyph();const Jt=new _.CFFCompiler(lt);Q["CFF "].data=Jt.compile()}catch{(0,n.warn)("Failed to compile font "+O.loadedName)}if(Q.name){const[Jt,Bt]=K(Q.name);Q.name.data=st(J,Jt),this.psName=Jt[0][6]||null,O.composite||function(jt,mt,rt){if(jt.isInternalFont||jt.hasIncludedToUnicodeMap||jt.hasEncoding||jt.toUnicode instanceof A.IdentityToUnicodeMap||!mt||rt.length===0||jt.defaultEncoding===a.WinAnsiEncoding)return;for(const Pt of rt)if(!h(Pt))return;const ht=a.WinAnsiEncoding,gt=[],bt=(0,e.getGlyphsUnicode)();for(const Pt in ht){const It=ht[Pt];if(It==="")continue;const Nt=bt[It];Nt!==void 0&&(gt[Pt]=String.fromCharCode(Nt))}gt.length>0&&jt.toUnicode.amend(gt)}(O,this.isSymbolicFont,Bt)}else Q.name={tag:"name",data:st(this.name)};const Vt=new b.OpenTypeFileBuilder(at.version);for(const Jt in Q)Vt.addTable(Jt,Q[Jt].data);return Vt.toArray()}convert(J,j,O){O.fixedPitch=!1,O.builtInEncoding&&function(pt,yt){if(pt.isInternalFont||pt.hasIncludedToUnicodeMap||yt===pt.defaultEncoding||pt.toUnicode instanceof A.IdentityToUnicodeMap)return;const Et=[],Tt=(0,e.getGlyphsUnicode)();for(const xt in yt){if(pt.hasEncoding&&(pt.baseEncodingName||pt.differences[xt]!==void 0))continue;const wt=yt[xt],St=(0,t.getUnicodeForGlyph)(wt,Tt);St!==-1&&(Et[xt]=String.fromCharCode(St))}Et.length>0&&pt.toUnicode.amend(Et)}(O,O.builtInEncoding);let H=1;j instanceof T.CFFFont&&(H=j.numGlyphs-1);const V=j.getGlyphMapping(O);let z=null,Y=V,G=null;O.cssFontInfo||(z=k(V,j.hasGlyphId.bind(j),H,this.toUnicode),this.toFontChar=z.toFontChar,Y=z.charCodeToGlyphId,G=z.toUnicodeExtraMap);const K=j.numGlyphs;function et(ut,pt){let yt=null;for(const Et in ut)pt===ut[Et]&&(yt||(yt=[])).push(0|Et);return yt}function nt(ut,pt){for(const yt in ut)if(pt===ut[yt])return 0|yt;return z.charCodeToGlyphId[z.nextAvailableFontCharCode]=pt,z.nextAvailableFontCharCode++}const at=j.seacs;if(z&&L.SEAC_ANALYSIS_ENABLED&&(at!=null&&at.length)){const ut=O.fontMatrix||n.FONT_IDENTITY_MATRIX,pt=j.getCharset(),yt=Object.create(null);for(let Et in at){Et|=0;const Tt=at[Et],xt=a.StandardEncoding[Tt[2]],wt=a.StandardEncoding[Tt[3]],St=pt.indexOf(xt),Rt=pt.indexOf(wt);if(St<0||Rt<0)continue;const Ct={x:Tt[0]*ut[0]+Tt[1]*ut[2]+ut[4],y:Tt[0]*ut[1]+Tt[1]*ut[3]+ut[5]},Gt=et(V,Et);if(Gt)for(const Zt of Gt){const Ft=z.charCodeToGlyphId,Ut=nt(Ft,St),Vt=nt(Ft,Rt);yt[Zt]={baseFontCharCode:Ut,accentFontCharCode:Vt,accentOffset:Ct}}}O.seacMap=yt}const Q=1/(O.fontMatrix||n.FONT_IDENTITY_MATRIX)[0],lt=new b.OpenTypeFileBuilder("OTTO");return lt.addTable("CFF ",j.data),lt.addTable("OS/2",B(O,Y)),lt.addTable("cmap",I(Y,G,K)),lt.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+q(Q)+"\0\0\0\0ž\v~'\0\0\0\0ž\v~'\0\0"+q(O.descent)+"ÿ"+q(O.ascent)+D(O.italicAngle?2:0)+"\0\0\0\0\0\0\0"),lt.addTable("hhea","\0\0\0"+q(O.ascent)+q(O.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+q(O.capHeight)+q(Math.tan(O.italicAngle)*O.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+D(K)),lt.addTable("hmtx",function(){const pt=j.charstrings,yt=j.cff?j.cff.widths:null;let Et="\0\0\0\0";for(let Tt=1,xt=K;Ttj.length%2==1,V=this.toUnicode instanceof A.IdentityToUnicodeMap?z=>this.toUnicode.charCodeOf(z):z=>this.toUnicode.charCodeOf(String.fromCodePoint(z));for(let z=0,Y=J.length;z55295&&(G<57344||G>65533)&&z++,this.toUnicode){const K=V(G);if(K!==-1){H()&&(j.push(O.join("")),O.length=0);for(let et=(this.cMap?this.cMap.getCharCodeLength(K):1)-1;et>=0;et--)O.push(String.fromCharCode(K>>8*et&255));continue}}H()||(j.push(O.join("")),O.length=0),O.push(String.fromCodePoint(G))}return j.push(O.join("")),j}},M.ErrorFont=class{constructor(J){this.error=J,this.loadedName="g_font_error",this.missingFile=!0}charsToGlyphs(){return[]}encodeString(J){return[J]}exportData(J=!1){return{error:this.error}}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.CFFTopDict=M.CFFStrings=M.CFFStandardStrings=M.CFFPrivateDict=M.CFFParser=M.CFFIndex=M.CFFHeader=M.CFFFDSelect=M.CFFCompiler=M.CFFCharset=M.CFF=void 0;var n=Z(2),_=Z(36),L=Z(37);const 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"];M.CFFStandardStrings=t;const e=391,a=[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}],v=[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(R,o){R[o-2]=R[o-2]+R[o-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(R,o){R[o-2]=R[o-2]-R[o-1]}},{id:"div",min:2,stackDelta:-1,stackFn(R,o){R[o-2]=R[o-2]/R[o-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(R,o){R[o-1]=-R[o-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(R,o){R[o-2]=R[o-2]*R[o-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}];M.CFFParser=class{constructor(o,g,x){this.bytes=o.getBytes(),this.properties=g,this.seacAnalysisEnabled=!!x}parse(){const o=this.properties,g=new A;this.cff=g;const x=this.parseHeader(),E=this.parseIndex(x.endPos),D=this.parseIndex(E.endPos),q=this.parseIndex(D.endPos),W=this.parseIndex(q.endPos),w=this.parseDict(D.obj.get(0)),s=this.createDict(b,w,g.strings);g.header=x.obj,g.names=this.parseNameIndex(E.obj),g.strings=this.parseStringIndex(q.obj),g.topDict=s,g.globalSubrIndex=W.obj,this.parsePrivateDict(g.topDict),g.isCIDFont=s.hasName("ROS");const c=s.getByName("CharStrings"),S=this.parseIndex(c).obj,h=s.getByName("FontMatrix");h&&(o.fontMatrix=h);const m=s.getByName("FontBBox");m&&(o.ascent=Math.max(m[3],m[1]),o.descent=Math.min(m[1],m[3]),o.ascentScaled=!0);let k,I;if(g.isCIDFont){const tt=this.parseIndex(s.getByName("FDArray")).obj;for(let it=0,st=tt.count;it=g)throw new n.FormatError("Invalid CFF header");x!==0&&((0,n.info)("cff data is shifted"),o=o.subarray(x),this.bytes=o);const E=o[0],D=o[1],q=o[2],W=o[3];return{obj:new T(E,D,q,W),endPos:q}}parseDict(o){let g=0;function x(){let W=o[g++];return W===30?function(){let s="";const S=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],h=o.length;for(;g>4,I=15&m;if(k===15||(s+=S[k],I===15))break;s+=S[I]}return parseFloat(s)}():W===28?(W=o[g++],W=(W<<24|o[g++]<<16)>>16,W):W===29?(W=o[g++],W=W<<8|o[g++],W=W<<8|o[g++],W=W<<8|o[g++],W):W>=32&&W<=246?W-139:W>=247&&W<=250?256*(W-247)+o[g++]+108:W>=251&&W<=254?-256*(W-251)-o[g++]-108:((0,n.warn)('CFFParser_parseDict: "'+W+'" is a reserved command.'),NaN)}let E=[];const D=[];g=0;const q=o.length;for(;g10)return!1;let D=o.stackSize;const q=o.stack;let W=g.length;for(let w=0;w>16,w+=2,D++;else if(s===14){if(D>=4&&(D-=4,this.seacAnalysisEnabled))return o.seac=q.slice(D,D+4),!1;c=a[s]}else if(s>=32&&s<=246)q[D]=s-139,D++;else if(s>=247&&s<=254)q[D]=s<251?(s-247<<8)+g[w]+108:-(s-251<<8)-g[w]-108,w++,D++;else if(s===255)q[D]=(g[w]<<24|g[w+1]<<16|g[w+2]<<8|g[w+3])/65536,w+=4,D++;else if(s===19||s===20){if(o.hints+=D>>1,o.hints===0){g.copyWithin(w-1,w,-1),w-=1,W-=1;continue}w+=o.hints+7>>3,D%=2,c=a[s]}else{if(s===10||s===29){const S=s===10?x:E;if(!S)return c=a[s],(0,n.warn)("Missing subrsIndex for "+c.id),!1;let h=32768;S.count<1240?h=107:S.count<33900&&(h=1131);const m=q[--D]+h;if(m<0||m>=S.count||isNaN(m))return c=a[s],(0,n.warn)("Out of bounds subrIndex for "+c.id),!1;if(o.stackSize=D,o.callDepth++,!this.parseCharString(o,S.get(m),x,E))return!1;o.callDepth--,D=o.stackSize;continue}if(s===11)return o.stackSize=D,!0;if(s===0&&w===g.length)g[w-1]=14,c=a[14];else{if(s===9){g.copyWithin(w-1,w,-1),w-=1,W-=1;continue}c=a[s]}}if(c){if(c.stem&&(o.hints+=D>>1,s===3||s===23?o.hasVStems=!0:o.hasVStems&&(s===1||s===18)&&((0,n.warn)("CFF stem hints are in wrong order"),g[w-1]=s===1?3:23)),"min"in c&&!o.undefStack&&D=2&&c.stem?D%=2:D>1&&(0,n.warn)("Found too many parameters for stack-clearing command"),D>0&&(o.width=q[D-1])),"stackDelta"in c?("stackFn"in c&&c.stackFn(q,D),D+=c.stackDelta):c.stackClearing?D=0:c.resetStack?(D=0,o.undefStack=!1):c.undefStack&&(D=0,o.undefStack=!0,o.firstStackClearing=!1)}}return W=D.length&&((0,n.warn)("Invalid fd index for glyph index."),m=!1),m&&(I=D[B].privateDict,k=I.subrsIndex)}else g&&(k=g);if(m&&(m=this.parseCharString(h,S,k,x)),h.width!==null){const B=I.getByName("nominalWidthX");w[c]=B+h.width}else{const B=I.getByName("defaultWidthX");w[c]=B}h.seac!==null&&(W[c]=h.seac),m||o.set(c,new Uint8Array([14]))}return{charStrings:o,seacs:W,widths:w}}emptyPrivateDictionary(o){const g=this.createDict(u,[],o.strings);o.setByKey(18,[0,0]),o.privateDict=g}parsePrivateDict(o){if(!o.hasName("Private")){this.emptyPrivateDictionary(o);return}const g=o.getByName("Private");if(!Array.isArray(g)||g.length!==2){o.removeByName("Private");return}const x=g[0],E=g[1];if(x===0||E>=this.bytes.length){this.emptyPrivateDictionary(o);return}const D=E+x,q=this.bytes.subarray(E,D),W=this.parseDict(q),w=this.createDict(u,W,o.strings);if(o.privateDict=w,w.getByName("ExpansionFactor")===0&&w.setByName("ExpansionFactor",.06),!w.getByName("Subrs"))return;const s=w.getByName("Subrs"),c=E+s;if(s===0||c>=this.bytes.length){this.emptyPrivateDictionary(o);return}const S=this.parseIndex(c);w.subrsIndex=S.obj}parseCharsets(o,g,x,E){if(o===0)return new y(!0,l.ISO_ADOBE,_.ISOAdobeCharset);if(o===1)return new y(!0,l.EXPERT,_.ExpertCharset);if(o===2)return new y(!0,l.EXPERT_SUBSET,_.ExpertSubsetCharset);const D=this.bytes,q=o,W=D[o++],w=[E?0:".notdef"];let s,c,S;switch(g-=1,W){case 0:for(S=0;S=65535){(0,n.warn)("Not enough space in charstrings to duplicate first glyph.");return}const o=this.charStrings.get(0);this.charStrings.add(o),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}hasGlyphId(o){return o<0||o>=this.charStrings.count?!1:this.charStrings.get(o).length>0}}M.CFF=A;class T{constructor(o,g,x,E){this.major=o,this.minor=g,this.hdrSize=x,this.offSize=E}}M.CFFHeader=T;class d{constructor(){this.strings=[]}get(o){return o>=0&&o<=390?t[o]:o-e<=this.strings.length?this.strings[o-e]:t[0]}getSID(o){let g=t.indexOf(o);return g!==-1?g:(g=this.strings.indexOf(o),g!==-1?g+e:-1)}add(o){this.strings.push(o)}get count(){return this.strings.length}}M.CFFStrings=d;class i{constructor(){this.objects=[],this.length=0}add(o){this.length+=o.length,this.objects.push(o)}set(o,g){this.length+=g.length-this.objects[o].length,this.objects[o]=g}get(o){return this.objects[o]}get count(){return this.objects.length}}M.CFFIndex=i;class C{constructor(o,g){this.keyToNameMap=o.keyToNameMap,this.nameToKeyMap=o.nameToKeyMap,this.defaults=o.defaults,this.types=o.types,this.opcodes=o.opcodes,this.order=o.order,this.strings=g,this.values=Object.create(null)}setByKey(o,g){if(!(o in this.keyToNameMap))return!1;if(g.length===0)return!0;for(const E of g)if(isNaN(E))return(0,n.warn)(`Invalid CFFDict value: "${g}" for key "${o}".`),!0;const x=this.types[o];return x!=="num"&&x!=="sid"&&x!=="offset"||(g=g[0]),this.values[o]=g,!0}setByName(o,g){if(!(o in this.nameToKeyMap))throw new n.FormatError(`Invalid dictionary name "${o}"`);this.values[this.nameToKeyMap[o]]=g}hasName(o){return this.nameToKeyMap[o]in this.values}getByName(o){if(!(o in this.nameToKeyMap))throw new n.FormatError(`Invalid dictionary name ${o}"`);const g=this.nameToKeyMap[o];return g in this.values?this.values[g]:this.defaults[g]}removeByName(o){delete this.values[this.nameToKeyMap[o]]}static createTables(o){const g={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(const x of o){const E=Array.isArray(x[0])?(x[0][0]<<8)+x[0][1]:x[0];g.keyToNameMap[E]=x[1],g.nameToKeyMap[x[1]]=E,g.types[E]=x[2],g.defaults[E]=x[3],g.opcodes[E]=Array.isArray(x[0])?x[0]:[x[0]],g.order.push(E)}return g}}const p=[[[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 b extends C{static get tables(){return(0,n.shadow)(this,"tables",this.createTables(p))}constructor(o){super(b.tables,o),this.privateDict=null}}M.CFFTopDict=b;const F=[[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 u extends C{static get tables(){return(0,n.shadow)(this,"tables",this.createTables(F))}constructor(o){super(u.tables,o),this.subrsIndex=null}}M.CFFPrivateDict=u;const l={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};class y{constructor(o,g,x,E){this.predefined=o,this.format=g,this.charset=x,this.raw=E}}M.CFFCharset=y;class N{constructor(o,g,x,E){this.predefined=o,this.format=g,this.encoding=x,this.raw=E}}class U{constructor(o,g){this.format=o,this.fdSelect=g}getFDIndex(o){return o<0||o>=this.fdSelect.length?-1:this.fdSelect[o]}}M.CFFFDSelect=U;class ${constructor(){this.offsets=Object.create(null)}isTracking(o){return o in this.offsets}track(o,g){if(o in this.offsets)throw new n.FormatError(`Already tracking location of ${o}`);this.offsets[o]=g}offset(o){for(const g in this.offsets)this.offsets[g]+=o}setEntryLocation(o,g,x){if(!(o in this.offsets))throw new n.FormatError(`Not tracking location of ${o}`);const E=x.data,D=this.offsets[o];for(let q=0,W=g.length;q>24&255,E[c]=m>>16&255,E[S]=m>>8&255,E[h]=255&m}}}class P{constructor(o){this.cff=o}compile(){const o=this.cff,g={data:[],length:0,add(h){try{this.data.push(...h)}catch{this.data=this.data.concat(h)}this.length=this.data.length}},x=this.compileHeader(o.header);g.add(x);const E=this.compileNameIndex(o.names);if(g.add(E),o.isCIDFont&&o.topDict.hasName("FontMatrix")){const h=o.topDict.getByName("FontMatrix");o.topDict.removeByName("FontMatrix");for(const m of o.fdArray){let k=h.slice(0);m.hasName("FontMatrix")&&(k=n.Util.transform(k,m.getByName("FontMatrix"))),m.setByName("FontMatrix",k)}}const D=o.topDict.getByName("XUID");(D==null?void 0:D.length)>16&&o.topDict.removeByName("XUID"),o.topDict.setByName("charset",0);let q=this.compileTopDicts([o.topDict],g.length,o.isCIDFont);g.add(q.output);const W=q.trackers[0],w=this.compileStringIndex(o.strings.strings);g.add(w);const s=this.compileIndex(o.globalSubrIndex);if(g.add(s),o.encoding&&o.topDict.hasName("Encoding"))if(o.encoding.predefined)W.setEntryLocation("Encoding",[o.encoding.format],g);else{const h=this.compileEncoding(o.encoding);W.setEntryLocation("Encoding",[g.length],g),g.add(h)}const c=this.compileCharset(o.charset,o.charStrings.count,o.strings,o.isCIDFont);W.setEntryLocation("charset",[g.length],g),g.add(c);const S=this.compileCharStrings(o.charStrings);if(W.setEntryLocation("CharStrings",[g.length],g),g.add(S),o.isCIDFont){W.setEntryLocation("FDSelect",[g.length],g);const h=this.compileFDSelect(o.fdSelect);g.add(h),q=this.compileTopDicts(o.fdArray,g.length,!0),W.setEntryLocation("FDArray",[g.length],g),g.add(q.output);const m=q.trackers;this.compilePrivateDicts(o.fdArray,m,g)}return this.compilePrivateDicts([o.topDict],[W],g),g.add([0]),g.data}encodeNumber(o){return Number.isInteger(o)?this.encodeInteger(o):this.encodeFloat(o)}static get EncodeFloatRegExp(){return(0,n.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(o){let g=o.toString();const x=P.EncodeFloatRegExp.exec(g);if(x){const w=parseFloat("1e"+((x[2]?+x[2]:0)+x[1].length));g=(Math.round(o*w)/w).toString()}let E,D,q="";for(E=0,D=g.length;E=-107&&o<=107?[o+139]:o>=108&&o<=1131?[247+((o-=108)>>8),255&o]:o>=-1131&&o<=-108?[251+((o=-o-108)>>8),255&o]:o>=-32768&&o<=32767?[28,o>>8&255,255&o]:[29,o>>24&255,o>>16&255,o>>8&255,255&o],g}compileHeader(o){return[o.major,o.minor,4,o.offSize]}compileNameIndex(o){const g=new i;for(const x of o){const E=Math.min(x.length,127);let D=new Array(E);for(let q=0;q"~"||W==="["||W==="]"||W==="("||W===")"||W==="{"||W==="}"||W==="<"||W===">"||W==="/"||W==="%")&&(W="_"),D[q]=W}D=D.join(""),D===""&&(D="Bad_Font_Name"),g.add((0,n.stringToBytes)(D))}return this.compileIndex(g)}compileTopDicts(o,g,x){const E=[];let D=new i;for(const q of o){x&&(q.removeByName("CIDFontVersion"),q.removeByName("CIDFontRevision"),q.removeByName("CIDFontType"),q.removeByName("CIDCount"),q.removeByName("UIDBase"));const W=new $,w=this.compileDict(q,W);E.push(W),D.add(w),W.offset(g)}return D=this.compileIndex(D,E),{trackers:E,output:D}}compilePrivateDicts(o,g,x){for(let E=0,D=o.length;E>8&255,255&q]);else{D=new Uint8Array(1+2*q),D[0]=0;let W=0;const w=o.charset.length;let s=!1;for(let c=1;c>8&255,D[c+1]=255&S}}return this.compileTypedArray(D)}compileEncoding(o){return this.compileTypedArray(o.raw)}compileFDSelect(o){const g=o.format;let x,E;switch(g){case 0:for(x=new Uint8Array(1+o.fdSelect.length),x[0]=g,E=0;E>8&255,255&D,q];for(E=1;E>8&255,255&E,s),q=s)}const w=(W.length-3)/3;W[1]=w>>8&255,W[2]=255&w,W.push(E>>8&255,255&E),x=new Uint8Array(W)}return this.compileTypedArray(x)}compileTypedArray(o){return Array.from(o)}compileIndex(o,g=[]){const x=o.objects,E=x.length;if(E===0)return[0,0];const D=[E>>8&255,255&E];let q,W,w=1;for(q=0;q>8&255,255&s):W===3?D.push(s>>16&255,s>>8&255,255&s):D.push(s>>>24&255,s>>16&255,s>>8&255,255&s),x[q]&&(s+=x[q].length);for(q=0;q{Object.defineProperty(M,"__esModule",{value:!0}),M.ISOAdobeCharset=M.ExpertSubsetCharset=M.ExpertCharset=void 0,M.ISOAdobeCharset=[".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"],M.ExpertCharset=[".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"],M.ExpertSubsetCharset=[".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"]},(vt,M)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.ZapfDingbatsEncoding=M.WinAnsiEncoding=M.SymbolSetEncoding=M.StandardEncoding=M.MacRomanEncoding=M.ExpertEncoding=void 0,M.getEncoding=function(A){switch(A){case"WinAnsiEncoding":return t;case"StandardEncoding":return L;case"MacRomanEncoding":return _;case"SymbolSetEncoding":return e;case"ZapfDingbatsEncoding":return a;case"ExpertEncoding":return Z;case"MacExpertEncoding":return n;default:return null}};const Z=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];M.ExpertEncoding=Z;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","","","",""],_=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];M.MacRomanEncoding=_;const L=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""];M.StandardEncoding=L;const t=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];M.WinAnsiEncoding=t;const e=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];M.SymbolSetEncoding=e;const a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];M.ZapfDingbatsEncoding=a},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.SEAC_ANALYSIS_ENABLED=M.MacStandardGlyphOrdering=M.FontFlags=void 0,M.normalizeFontName=function(A){return A.replaceAll(/[,_]/g,"-").replaceAll(/\s/g,"")},M.recoverGlyphName=a,M.type1FontGlyphMapping=function(A,T,d){const i=Object.create(null);let C,p,b;const F=!!(A.flags&e.Symbolic);if(A.isInternalFont)for(b=T,p=0;p=0?C:0;else if(A.baseEncodingName)for(b=(0,n.getEncoding)(A.baseEncodingName),p=0;p=0?C:0;else if(F)for(p in T)i[p]=T[p];else for(b=n.StandardEncoding,p=0;p=0?C:0;const u=A.differences;let l;if(u)for(p in u){const y=u[p];if(C=d.indexOf(y),C===-1){l||(l=(0,_.getGlyphsUnicode)());const N=a(y,l);N!==y&&(C=d.indexOf(N))}i[p]=C>=0?C:0}return i};var n=Z(37),_=Z(39),L=Z(40),t=Z(2);M.SEAC_ANALYSIS_ENABLED=!0;const e={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};M.FontFlags=e,M.MacStandardGlyphOrdering=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function a(v,A){if(A[v]!==void 0)return v;const T=(0,L.getUnicodeForGlyph)(v,A);if(T!==-1){for(const d in A)if(A[d]===T)return d}return(0,t.info)("Unable to recover a standard glyph name for: "+v),v}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.getGlyphsUnicode=M.getDingbatsGlyphsUnicode=void 0;var n=Z(3);const _=(0,n.getLookupTableFactory)(function(t){t.A=65,t.AE=198,t.AEacute=508,t.AEmacron=482,t.AEsmall=63462,t.Aacute=193,t.Aacutesmall=63457,t.Abreve=258,t.Abreveacute=7854,t.Abrevecyrillic=1232,t.Abrevedotbelow=7862,t.Abrevegrave=7856,t.Abrevehookabove=7858,t.Abrevetilde=7860,t.Acaron=461,t.Acircle=9398,t.Acircumflex=194,t.Acircumflexacute=7844,t.Acircumflexdotbelow=7852,t.Acircumflexgrave=7846,t.Acircumflexhookabove=7848,t.Acircumflexsmall=63458,t.Acircumflextilde=7850,t.Acute=63177,t.Acutesmall=63412,t.Acyrillic=1040,t.Adblgrave=512,t.Adieresis=196,t.Adieresiscyrillic=1234,t.Adieresismacron=478,t.Adieresissmall=63460,t.Adotbelow=7840,t.Adotmacron=480,t.Agrave=192,t.Agravesmall=63456,t.Ahookabove=7842,t.Aiecyrillic=1236,t.Ainvertedbreve=514,t.Alpha=913,t.Alphatonos=902,t.Amacron=256,t.Amonospace=65313,t.Aogonek=260,t.Aring=197,t.Aringacute=506,t.Aringbelow=7680,t.Aringsmall=63461,t.Asmall=63329,t.Atilde=195,t.Atildesmall=63459,t.Aybarmenian=1329,t.B=66,t.Bcircle=9399,t.Bdotaccent=7682,t.Bdotbelow=7684,t.Becyrillic=1041,t.Benarmenian=1330,t.Beta=914,t.Bhook=385,t.Blinebelow=7686,t.Bmonospace=65314,t.Brevesmall=63220,t.Bsmall=63330,t.Btopbar=386,t.C=67,t.Caarmenian=1342,t.Cacute=262,t.Caron=63178,t.Caronsmall=63221,t.Ccaron=268,t.Ccedilla=199,t.Ccedillaacute=7688,t.Ccedillasmall=63463,t.Ccircle=9400,t.Ccircumflex=264,t.Cdot=266,t.Cdotaccent=266,t.Cedillasmall=63416,t.Chaarmenian=1353,t.Cheabkhasiancyrillic=1212,t.Checyrillic=1063,t.Chedescenderabkhasiancyrillic=1214,t.Chedescendercyrillic=1206,t.Chedieresiscyrillic=1268,t.Cheharmenian=1347,t.Chekhakassiancyrillic=1227,t.Cheverticalstrokecyrillic=1208,t.Chi=935,t.Chook=391,t.Circumflexsmall=63222,t.Cmonospace=65315,t.Coarmenian=1361,t.Csmall=63331,t.D=68,t.DZ=497,t.DZcaron=452,t.Daarmenian=1332,t.Dafrican=393,t.Dcaron=270,t.Dcedilla=7696,t.Dcircle=9401,t.Dcircumflexbelow=7698,t.Dcroat=272,t.Ddotaccent=7690,t.Ddotbelow=7692,t.Decyrillic=1044,t.Deicoptic=1006,t.Delta=8710,t.Deltagreek=916,t.Dhook=394,t.Dieresis=63179,t.DieresisAcute=63180,t.DieresisGrave=63181,t.Dieresissmall=63400,t.Digammagreek=988,t.Djecyrillic=1026,t.Dlinebelow=7694,t.Dmonospace=65316,t.Dotaccentsmall=63223,t.Dslash=272,t.Dsmall=63332,t.Dtopbar=395,t.Dz=498,t.Dzcaron=453,t.Dzeabkhasiancyrillic=1248,t.Dzecyrillic=1029,t.Dzhecyrillic=1039,t.E=69,t.Eacute=201,t.Eacutesmall=63465,t.Ebreve=276,t.Ecaron=282,t.Ecedillabreve=7708,t.Echarmenian=1333,t.Ecircle=9402,t.Ecircumflex=202,t.Ecircumflexacute=7870,t.Ecircumflexbelow=7704,t.Ecircumflexdotbelow=7878,t.Ecircumflexgrave=7872,t.Ecircumflexhookabove=7874,t.Ecircumflexsmall=63466,t.Ecircumflextilde=7876,t.Ecyrillic=1028,t.Edblgrave=516,t.Edieresis=203,t.Edieresissmall=63467,t.Edot=278,t.Edotaccent=278,t.Edotbelow=7864,t.Efcyrillic=1060,t.Egrave=200,t.Egravesmall=63464,t.Eharmenian=1335,t.Ehookabove=7866,t.Eightroman=8551,t.Einvertedbreve=518,t.Eiotifiedcyrillic=1124,t.Elcyrillic=1051,t.Elevenroman=8554,t.Emacron=274,t.Emacronacute=7702,t.Emacrongrave=7700,t.Emcyrillic=1052,t.Emonospace=65317,t.Encyrillic=1053,t.Endescendercyrillic=1186,t.Eng=330,t.Enghecyrillic=1188,t.Enhookcyrillic=1223,t.Eogonek=280,t.Eopen=400,t.Epsilon=917,t.Epsilontonos=904,t.Ercyrillic=1056,t.Ereversed=398,t.Ereversedcyrillic=1069,t.Escyrillic=1057,t.Esdescendercyrillic=1194,t.Esh=425,t.Esmall=63333,t.Eta=919,t.Etarmenian=1336,t.Etatonos=905,t.Eth=208,t.Ethsmall=63472,t.Etilde=7868,t.Etildebelow=7706,t.Euro=8364,t.Ezh=439,t.Ezhcaron=494,t.Ezhreversed=440,t.F=70,t.Fcircle=9403,t.Fdotaccent=7710,t.Feharmenian=1366,t.Feicoptic=996,t.Fhook=401,t.Fitacyrillic=1138,t.Fiveroman=8548,t.Fmonospace=65318,t.Fourroman=8547,t.Fsmall=63334,t.G=71,t.GBsquare=13191,t.Gacute=500,t.Gamma=915,t.Gammaafrican=404,t.Gangiacoptic=1002,t.Gbreve=286,t.Gcaron=486,t.Gcedilla=290,t.Gcircle=9404,t.Gcircumflex=284,t.Gcommaaccent=290,t.Gdot=288,t.Gdotaccent=288,t.Gecyrillic=1043,t.Ghadarmenian=1346,t.Ghemiddlehookcyrillic=1172,t.Ghestrokecyrillic=1170,t.Gheupturncyrillic=1168,t.Ghook=403,t.Gimarmenian=1331,t.Gjecyrillic=1027,t.Gmacron=7712,t.Gmonospace=65319,t.Grave=63182,t.Gravesmall=63328,t.Gsmall=63335,t.Gsmallhook=667,t.Gstroke=484,t.H=72,t.H18533=9679,t.H18543=9642,t.H18551=9643,t.H22073=9633,t.HPsquare=13259,t.Haabkhasiancyrillic=1192,t.Hadescendercyrillic=1202,t.Hardsigncyrillic=1066,t.Hbar=294,t.Hbrevebelow=7722,t.Hcedilla=7720,t.Hcircle=9405,t.Hcircumflex=292,t.Hdieresis=7718,t.Hdotaccent=7714,t.Hdotbelow=7716,t.Hmonospace=65320,t.Hoarmenian=1344,t.Horicoptic=1e3,t.Hsmall=63336,t.Hungarumlaut=63183,t.Hungarumlautsmall=63224,t.Hzsquare=13200,t.I=73,t.IAcyrillic=1071,t.IJ=306,t.IUcyrillic=1070,t.Iacute=205,t.Iacutesmall=63469,t.Ibreve=300,t.Icaron=463,t.Icircle=9406,t.Icircumflex=206,t.Icircumflexsmall=63470,t.Icyrillic=1030,t.Idblgrave=520,t.Idieresis=207,t.Idieresisacute=7726,t.Idieresiscyrillic=1252,t.Idieresissmall=63471,t.Idot=304,t.Idotaccent=304,t.Idotbelow=7882,t.Iebrevecyrillic=1238,t.Iecyrillic=1045,t.Ifraktur=8465,t.Igrave=204,t.Igravesmall=63468,t.Ihookabove=7880,t.Iicyrillic=1048,t.Iinvertedbreve=522,t.Iishortcyrillic=1049,t.Imacron=298,t.Imacroncyrillic=1250,t.Imonospace=65321,t.Iniarmenian=1339,t.Iocyrillic=1025,t.Iogonek=302,t.Iota=921,t.Iotaafrican=406,t.Iotadieresis=938,t.Iotatonos=906,t.Ismall=63337,t.Istroke=407,t.Itilde=296,t.Itildebelow=7724,t.Izhitsacyrillic=1140,t.Izhitsadblgravecyrillic=1142,t.J=74,t.Jaarmenian=1345,t.Jcircle=9407,t.Jcircumflex=308,t.Jecyrillic=1032,t.Jheharmenian=1355,t.Jmonospace=65322,t.Jsmall=63338,t.K=75,t.KBsquare=13189,t.KKsquare=13261,t.Kabashkircyrillic=1184,t.Kacute=7728,t.Kacyrillic=1050,t.Kadescendercyrillic=1178,t.Kahookcyrillic=1219,t.Kappa=922,t.Kastrokecyrillic=1182,t.Kaverticalstrokecyrillic=1180,t.Kcaron=488,t.Kcedilla=310,t.Kcircle=9408,t.Kcommaaccent=310,t.Kdotbelow=7730,t.Keharmenian=1364,t.Kenarmenian=1343,t.Khacyrillic=1061,t.Kheicoptic=998,t.Khook=408,t.Kjecyrillic=1036,t.Klinebelow=7732,t.Kmonospace=65323,t.Koppacyrillic=1152,t.Koppagreek=990,t.Ksicyrillic=1134,t.Ksmall=63339,t.L=76,t.LJ=455,t.LL=63167,t.Lacute=313,t.Lambda=923,t.Lcaron=317,t.Lcedilla=315,t.Lcircle=9409,t.Lcircumflexbelow=7740,t.Lcommaaccent=315,t.Ldot=319,t.Ldotaccent=319,t.Ldotbelow=7734,t.Ldotbelowmacron=7736,t.Liwnarmenian=1340,t.Lj=456,t.Ljecyrillic=1033,t.Llinebelow=7738,t.Lmonospace=65324,t.Lslash=321,t.Lslashsmall=63225,t.Lsmall=63340,t.M=77,t.MBsquare=13190,t.Macron=63184,t.Macronsmall=63407,t.Macute=7742,t.Mcircle=9410,t.Mdotaccent=7744,t.Mdotbelow=7746,t.Menarmenian=1348,t.Mmonospace=65325,t.Msmall=63341,t.Mturned=412,t.Mu=924,t.N=78,t.NJ=458,t.Nacute=323,t.Ncaron=327,t.Ncedilla=325,t.Ncircle=9411,t.Ncircumflexbelow=7754,t.Ncommaaccent=325,t.Ndotaccent=7748,t.Ndotbelow=7750,t.Nhookleft=413,t.Nineroman=8552,t.Nj=459,t.Njecyrillic=1034,t.Nlinebelow=7752,t.Nmonospace=65326,t.Nowarmenian=1350,t.Nsmall=63342,t.Ntilde=209,t.Ntildesmall=63473,t.Nu=925,t.O=79,t.OE=338,t.OEsmall=63226,t.Oacute=211,t.Oacutesmall=63475,t.Obarredcyrillic=1256,t.Obarreddieresiscyrillic=1258,t.Obreve=334,t.Ocaron=465,t.Ocenteredtilde=415,t.Ocircle=9412,t.Ocircumflex=212,t.Ocircumflexacute=7888,t.Ocircumflexdotbelow=7896,t.Ocircumflexgrave=7890,t.Ocircumflexhookabove=7892,t.Ocircumflexsmall=63476,t.Ocircumflextilde=7894,t.Ocyrillic=1054,t.Odblacute=336,t.Odblgrave=524,t.Odieresis=214,t.Odieresiscyrillic=1254,t.Odieresissmall=63478,t.Odotbelow=7884,t.Ogoneksmall=63227,t.Ograve=210,t.Ogravesmall=63474,t.Oharmenian=1365,t.Ohm=8486,t.Ohookabove=7886,t.Ohorn=416,t.Ohornacute=7898,t.Ohorndotbelow=7906,t.Ohorngrave=7900,t.Ohornhookabove=7902,t.Ohorntilde=7904,t.Ohungarumlaut=336,t.Oi=418,t.Oinvertedbreve=526,t.Omacron=332,t.Omacronacute=7762,t.Omacrongrave=7760,t.Omega=8486,t.Omegacyrillic=1120,t.Omegagreek=937,t.Omegaroundcyrillic=1146,t.Omegatitlocyrillic=1148,t.Omegatonos=911,t.Omicron=927,t.Omicrontonos=908,t.Omonospace=65327,t.Oneroman=8544,t.Oogonek=490,t.Oogonekmacron=492,t.Oopen=390,t.Oslash=216,t.Oslashacute=510,t.Oslashsmall=63480,t.Osmall=63343,t.Ostrokeacute=510,t.Otcyrillic=1150,t.Otilde=213,t.Otildeacute=7756,t.Otildedieresis=7758,t.Otildesmall=63477,t.P=80,t.Pacute=7764,t.Pcircle=9413,t.Pdotaccent=7766,t.Pecyrillic=1055,t.Peharmenian=1354,t.Pemiddlehookcyrillic=1190,t.Phi=934,t.Phook=420,t.Pi=928,t.Piwrarmenian=1363,t.Pmonospace=65328,t.Psi=936,t.Psicyrillic=1136,t.Psmall=63344,t.Q=81,t.Qcircle=9414,t.Qmonospace=65329,t.Qsmall=63345,t.R=82,t.Raarmenian=1356,t.Racute=340,t.Rcaron=344,t.Rcedilla=342,t.Rcircle=9415,t.Rcommaaccent=342,t.Rdblgrave=528,t.Rdotaccent=7768,t.Rdotbelow=7770,t.Rdotbelowmacron=7772,t.Reharmenian=1360,t.Rfraktur=8476,t.Rho=929,t.Ringsmall=63228,t.Rinvertedbreve=530,t.Rlinebelow=7774,t.Rmonospace=65330,t.Rsmall=63346,t.Rsmallinverted=641,t.Rsmallinvertedsuperior=694,t.S=83,t.SF010000=9484,t.SF020000=9492,t.SF030000=9488,t.SF040000=9496,t.SF050000=9532,t.SF060000=9516,t.SF070000=9524,t.SF080000=9500,t.SF090000=9508,t.SF100000=9472,t.SF110000=9474,t.SF190000=9569,t.SF200000=9570,t.SF210000=9558,t.SF220000=9557,t.SF230000=9571,t.SF240000=9553,t.SF250000=9559,t.SF260000=9565,t.SF270000=9564,t.SF280000=9563,t.SF360000=9566,t.SF370000=9567,t.SF380000=9562,t.SF390000=9556,t.SF400000=9577,t.SF410000=9574,t.SF420000=9568,t.SF430000=9552,t.SF440000=9580,t.SF450000=9575,t.SF460000=9576,t.SF470000=9572,t.SF480000=9573,t.SF490000=9561,t.SF500000=9560,t.SF510000=9554,t.SF520000=9555,t.SF530000=9579,t.SF540000=9578,t.Sacute=346,t.Sacutedotaccent=7780,t.Sampigreek=992,t.Scaron=352,t.Scarondotaccent=7782,t.Scaronsmall=63229,t.Scedilla=350,t.Schwa=399,t.Schwacyrillic=1240,t.Schwadieresiscyrillic=1242,t.Scircle=9416,t.Scircumflex=348,t.Scommaaccent=536,t.Sdotaccent=7776,t.Sdotbelow=7778,t.Sdotbelowdotaccent=7784,t.Seharmenian=1357,t.Sevenroman=8550,t.Shaarmenian=1351,t.Shacyrillic=1064,t.Shchacyrillic=1065,t.Sheicoptic=994,t.Shhacyrillic=1210,t.Shimacoptic=1004,t.Sigma=931,t.Sixroman=8549,t.Smonospace=65331,t.Softsigncyrillic=1068,t.Ssmall=63347,t.Stigmagreek=986,t.T=84,t.Tau=932,t.Tbar=358,t.Tcaron=356,t.Tcedilla=354,t.Tcircle=9417,t.Tcircumflexbelow=7792,t.Tcommaaccent=354,t.Tdotaccent=7786,t.Tdotbelow=7788,t.Tecyrillic=1058,t.Tedescendercyrillic=1196,t.Tenroman=8553,t.Tetsecyrillic=1204,t.Theta=920,t.Thook=428,t.Thorn=222,t.Thornsmall=63486,t.Threeroman=8546,t.Tildesmall=63230,t.Tiwnarmenian=1359,t.Tlinebelow=7790,t.Tmonospace=65332,t.Toarmenian=1337,t.Tonefive=444,t.Tonesix=388,t.Tonetwo=423,t.Tretroflexhook=430,t.Tsecyrillic=1062,t.Tshecyrillic=1035,t.Tsmall=63348,t.Twelveroman=8555,t.Tworoman=8545,t.U=85,t.Uacute=218,t.Uacutesmall=63482,t.Ubreve=364,t.Ucaron=467,t.Ucircle=9418,t.Ucircumflex=219,t.Ucircumflexbelow=7798,t.Ucircumflexsmall=63483,t.Ucyrillic=1059,t.Udblacute=368,t.Udblgrave=532,t.Udieresis=220,t.Udieresisacute=471,t.Udieresisbelow=7794,t.Udieresiscaron=473,t.Udieresiscyrillic=1264,t.Udieresisgrave=475,t.Udieresismacron=469,t.Udieresissmall=63484,t.Udotbelow=7908,t.Ugrave=217,t.Ugravesmall=63481,t.Uhookabove=7910,t.Uhorn=431,t.Uhornacute=7912,t.Uhorndotbelow=7920,t.Uhorngrave=7914,t.Uhornhookabove=7916,t.Uhorntilde=7918,t.Uhungarumlaut=368,t.Uhungarumlautcyrillic=1266,t.Uinvertedbreve=534,t.Ukcyrillic=1144,t.Umacron=362,t.Umacroncyrillic=1262,t.Umacrondieresis=7802,t.Umonospace=65333,t.Uogonek=370,t.Upsilon=933,t.Upsilon1=978,t.Upsilonacutehooksymbolgreek=979,t.Upsilonafrican=433,t.Upsilondieresis=939,t.Upsilondieresishooksymbolgreek=980,t.Upsilonhooksymbol=978,t.Upsilontonos=910,t.Uring=366,t.Ushortcyrillic=1038,t.Usmall=63349,t.Ustraightcyrillic=1198,t.Ustraightstrokecyrillic=1200,t.Utilde=360,t.Utildeacute=7800,t.Utildebelow=7796,t.V=86,t.Vcircle=9419,t.Vdotbelow=7806,t.Vecyrillic=1042,t.Vewarmenian=1358,t.Vhook=434,t.Vmonospace=65334,t.Voarmenian=1352,t.Vsmall=63350,t.Vtilde=7804,t.W=87,t.Wacute=7810,t.Wcircle=9420,t.Wcircumflex=372,t.Wdieresis=7812,t.Wdotaccent=7814,t.Wdotbelow=7816,t.Wgrave=7808,t.Wmonospace=65335,t.Wsmall=63351,t.X=88,t.Xcircle=9421,t.Xdieresis=7820,t.Xdotaccent=7818,t.Xeharmenian=1341,t.Xi=926,t.Xmonospace=65336,t.Xsmall=63352,t.Y=89,t.Yacute=221,t.Yacutesmall=63485,t.Yatcyrillic=1122,t.Ycircle=9422,t.Ycircumflex=374,t.Ydieresis=376,t.Ydieresissmall=63487,t.Ydotaccent=7822,t.Ydotbelow=7924,t.Yericyrillic=1067,t.Yerudieresiscyrillic=1272,t.Ygrave=7922,t.Yhook=435,t.Yhookabove=7926,t.Yiarmenian=1349,t.Yicyrillic=1031,t.Yiwnarmenian=1362,t.Ymonospace=65337,t.Ysmall=63353,t.Ytilde=7928,t.Yusbigcyrillic=1130,t.Yusbigiotifiedcyrillic=1132,t.Yuslittlecyrillic=1126,t.Yuslittleiotifiedcyrillic=1128,t.Z=90,t.Zaarmenian=1334,t.Zacute=377,t.Zcaron=381,t.Zcaronsmall=63231,t.Zcircle=9423,t.Zcircumflex=7824,t.Zdot=379,t.Zdotaccent=379,t.Zdotbelow=7826,t.Zecyrillic=1047,t.Zedescendercyrillic=1176,t.Zedieresiscyrillic=1246,t.Zeta=918,t.Zhearmenian=1338,t.Zhebrevecyrillic=1217,t.Zhecyrillic=1046,t.Zhedescendercyrillic=1174,t.Zhedieresiscyrillic=1244,t.Zlinebelow=7828,t.Zmonospace=65338,t.Zsmall=63354,t.Zstroke=437,t.a=97,t.aabengali=2438,t.aacute=225,t.aadeva=2310,t.aagujarati=2694,t.aagurmukhi=2566,t.aamatragurmukhi=2622,t.aarusquare=13059,t.aavowelsignbengali=2494,t.aavowelsigndeva=2366,t.aavowelsigngujarati=2750,t.abbreviationmarkarmenian=1375,t.abbreviationsigndeva=2416,t.abengali=2437,t.abopomofo=12570,t.abreve=259,t.abreveacute=7855,t.abrevecyrillic=1233,t.abrevedotbelow=7863,t.abrevegrave=7857,t.abrevehookabove=7859,t.abrevetilde=7861,t.acaron=462,t.acircle=9424,t.acircumflex=226,t.acircumflexacute=7845,t.acircumflexdotbelow=7853,t.acircumflexgrave=7847,t.acircumflexhookabove=7849,t.acircumflextilde=7851,t.acute=180,t.acutebelowcmb=791,t.acutecmb=769,t.acutecomb=769,t.acutedeva=2388,t.acutelowmod=719,t.acutetonecmb=833,t.acyrillic=1072,t.adblgrave=513,t.addakgurmukhi=2673,t.adeva=2309,t.adieresis=228,t.adieresiscyrillic=1235,t.adieresismacron=479,t.adotbelow=7841,t.adotmacron=481,t.ae=230,t.aeacute=509,t.aekorean=12624,t.aemacron=483,t.afii00208=8213,t.afii08941=8356,t.afii10017=1040,t.afii10018=1041,t.afii10019=1042,t.afii10020=1043,t.afii10021=1044,t.afii10022=1045,t.afii10023=1025,t.afii10024=1046,t.afii10025=1047,t.afii10026=1048,t.afii10027=1049,t.afii10028=1050,t.afii10029=1051,t.afii10030=1052,t.afii10031=1053,t.afii10032=1054,t.afii10033=1055,t.afii10034=1056,t.afii10035=1057,t.afii10036=1058,t.afii10037=1059,t.afii10038=1060,t.afii10039=1061,t.afii10040=1062,t.afii10041=1063,t.afii10042=1064,t.afii10043=1065,t.afii10044=1066,t.afii10045=1067,t.afii10046=1068,t.afii10047=1069,t.afii10048=1070,t.afii10049=1071,t.afii10050=1168,t.afii10051=1026,t.afii10052=1027,t.afii10053=1028,t.afii10054=1029,t.afii10055=1030,t.afii10056=1031,t.afii10057=1032,t.afii10058=1033,t.afii10059=1034,t.afii10060=1035,t.afii10061=1036,t.afii10062=1038,t.afii10063=63172,t.afii10064=63173,t.afii10065=1072,t.afii10066=1073,t.afii10067=1074,t.afii10068=1075,t.afii10069=1076,t.afii10070=1077,t.afii10071=1105,t.afii10072=1078,t.afii10073=1079,t.afii10074=1080,t.afii10075=1081,t.afii10076=1082,t.afii10077=1083,t.afii10078=1084,t.afii10079=1085,t.afii10080=1086,t.afii10081=1087,t.afii10082=1088,t.afii10083=1089,t.afii10084=1090,t.afii10085=1091,t.afii10086=1092,t.afii10087=1093,t.afii10088=1094,t.afii10089=1095,t.afii10090=1096,t.afii10091=1097,t.afii10092=1098,t.afii10093=1099,t.afii10094=1100,t.afii10095=1101,t.afii10096=1102,t.afii10097=1103,t.afii10098=1169,t.afii10099=1106,t.afii10100=1107,t.afii10101=1108,t.afii10102=1109,t.afii10103=1110,t.afii10104=1111,t.afii10105=1112,t.afii10106=1113,t.afii10107=1114,t.afii10108=1115,t.afii10109=1116,t.afii10110=1118,t.afii10145=1039,t.afii10146=1122,t.afii10147=1138,t.afii10148=1140,t.afii10192=63174,t.afii10193=1119,t.afii10194=1123,t.afii10195=1139,t.afii10196=1141,t.afii10831=63175,t.afii10832=63176,t.afii10846=1241,t.afii299=8206,t.afii300=8207,t.afii301=8205,t.afii57381=1642,t.afii57388=1548,t.afii57392=1632,t.afii57393=1633,t.afii57394=1634,t.afii57395=1635,t.afii57396=1636,t.afii57397=1637,t.afii57398=1638,t.afii57399=1639,t.afii57400=1640,t.afii57401=1641,t.afii57403=1563,t.afii57407=1567,t.afii57409=1569,t.afii57410=1570,t.afii57411=1571,t.afii57412=1572,t.afii57413=1573,t.afii57414=1574,t.afii57415=1575,t.afii57416=1576,t.afii57417=1577,t.afii57418=1578,t.afii57419=1579,t.afii57420=1580,t.afii57421=1581,t.afii57422=1582,t.afii57423=1583,t.afii57424=1584,t.afii57425=1585,t.afii57426=1586,t.afii57427=1587,t.afii57428=1588,t.afii57429=1589,t.afii57430=1590,t.afii57431=1591,t.afii57432=1592,t.afii57433=1593,t.afii57434=1594,t.afii57440=1600,t.afii57441=1601,t.afii57442=1602,t.afii57443=1603,t.afii57444=1604,t.afii57445=1605,t.afii57446=1606,t.afii57448=1608,t.afii57449=1609,t.afii57450=1610,t.afii57451=1611,t.afii57452=1612,t.afii57453=1613,t.afii57454=1614,t.afii57455=1615,t.afii57456=1616,t.afii57457=1617,t.afii57458=1618,t.afii57470=1607,t.afii57505=1700,t.afii57506=1662,t.afii57507=1670,t.afii57508=1688,t.afii57509=1711,t.afii57511=1657,t.afii57512=1672,t.afii57513=1681,t.afii57514=1722,t.afii57519=1746,t.afii57534=1749,t.afii57636=8362,t.afii57645=1470,t.afii57658=1475,t.afii57664=1488,t.afii57665=1489,t.afii57666=1490,t.afii57667=1491,t.afii57668=1492,t.afii57669=1493,t.afii57670=1494,t.afii57671=1495,t.afii57672=1496,t.afii57673=1497,t.afii57674=1498,t.afii57675=1499,t.afii57676=1500,t.afii57677=1501,t.afii57678=1502,t.afii57679=1503,t.afii57680=1504,t.afii57681=1505,t.afii57682=1506,t.afii57683=1507,t.afii57684=1508,t.afii57685=1509,t.afii57686=1510,t.afii57687=1511,t.afii57688=1512,t.afii57689=1513,t.afii57690=1514,t.afii57694=64298,t.afii57695=64299,t.afii57700=64331,t.afii57705=64287,t.afii57716=1520,t.afii57717=1521,t.afii57718=1522,t.afii57723=64309,t.afii57793=1460,t.afii57794=1461,t.afii57795=1462,t.afii57796=1467,t.afii57797=1464,t.afii57798=1463,t.afii57799=1456,t.afii57800=1458,t.afii57801=1457,t.afii57802=1459,t.afii57803=1474,t.afii57804=1473,t.afii57806=1465,t.afii57807=1468,t.afii57839=1469,t.afii57841=1471,t.afii57842=1472,t.afii57929=700,t.afii61248=8453,t.afii61289=8467,t.afii61352=8470,t.afii61573=8236,t.afii61574=8237,t.afii61575=8238,t.afii61664=8204,t.afii63167=1645,t.afii64937=701,t.agrave=224,t.agujarati=2693,t.agurmukhi=2565,t.ahiragana=12354,t.ahookabove=7843,t.aibengali=2448,t.aibopomofo=12574,t.aideva=2320,t.aiecyrillic=1237,t.aigujarati=2704,t.aigurmukhi=2576,t.aimatragurmukhi=2632,t.ainarabic=1593,t.ainfinalarabic=65226,t.aininitialarabic=65227,t.ainmedialarabic=65228,t.ainvertedbreve=515,t.aivowelsignbengali=2504,t.aivowelsigndeva=2376,t.aivowelsigngujarati=2760,t.akatakana=12450,t.akatakanahalfwidth=65393,t.akorean=12623,t.alef=1488,t.alefarabic=1575,t.alefdageshhebrew=64304,t.aleffinalarabic=65166,t.alefhamzaabovearabic=1571,t.alefhamzaabovefinalarabic=65156,t.alefhamzabelowarabic=1573,t.alefhamzabelowfinalarabic=65160,t.alefhebrew=1488,t.aleflamedhebrew=64335,t.alefmaddaabovearabic=1570,t.alefmaddaabovefinalarabic=65154,t.alefmaksuraarabic=1609,t.alefmaksurafinalarabic=65264,t.alefmaksurainitialarabic=65267,t.alefmaksuramedialarabic=65268,t.alefpatahhebrew=64302,t.alefqamatshebrew=64303,t.aleph=8501,t.allequal=8780,t.alpha=945,t.alphatonos=940,t.amacron=257,t.amonospace=65345,t.ampersand=38,t.ampersandmonospace=65286,t.ampersandsmall=63270,t.amsquare=13250,t.anbopomofo=12578,t.angbopomofo=12580,t.angbracketleft=12296,t.angbracketright=12297,t.angkhankhuthai=3674,t.angle=8736,t.anglebracketleft=12296,t.anglebracketleftvertical=65087,t.anglebracketright=12297,t.anglebracketrightvertical=65088,t.angleleft=9001,t.angleright=9002,t.angstrom=8491,t.anoteleia=903,t.anudattadeva=2386,t.anusvarabengali=2434,t.anusvaradeva=2306,t.anusvaragujarati=2690,t.aogonek=261,t.apaatosquare=13056,t.aparen=9372,t.apostrophearmenian=1370,t.apostrophemod=700,t.apple=63743,t.approaches=8784,t.approxequal=8776,t.approxequalorimage=8786,t.approximatelyequal=8773,t.araeaekorean=12686,t.araeakorean=12685,t.arc=8978,t.arighthalfring=7834,t.aring=229,t.aringacute=507,t.aringbelow=7681,t.arrowboth=8596,t.arrowdashdown=8675,t.arrowdashleft=8672,t.arrowdashright=8674,t.arrowdashup=8673,t.arrowdblboth=8660,t.arrowdbldown=8659,t.arrowdblleft=8656,t.arrowdblright=8658,t.arrowdblup=8657,t.arrowdown=8595,t.arrowdownleft=8601,t.arrowdownright=8600,t.arrowdownwhite=8681,t.arrowheaddownmod=709,t.arrowheadleftmod=706,t.arrowheadrightmod=707,t.arrowheadupmod=708,t.arrowhorizex=63719,t.arrowleft=8592,t.arrowleftdbl=8656,t.arrowleftdblstroke=8653,t.arrowleftoverright=8646,t.arrowleftwhite=8678,t.arrowright=8594,t.arrowrightdblstroke=8655,t.arrowrightheavy=10142,t.arrowrightoverleft=8644,t.arrowrightwhite=8680,t.arrowtableft=8676,t.arrowtabright=8677,t.arrowup=8593,t.arrowupdn=8597,t.arrowupdnbse=8616,t.arrowupdownbase=8616,t.arrowupleft=8598,t.arrowupleftofdown=8645,t.arrowupright=8599,t.arrowupwhite=8679,t.arrowvertex=63718,t.asciicircum=94,t.asciicircummonospace=65342,t.asciitilde=126,t.asciitildemonospace=65374,t.ascript=593,t.ascriptturned=594,t.asmallhiragana=12353,t.asmallkatakana=12449,t.asmallkatakanahalfwidth=65383,t.asterisk=42,t.asteriskaltonearabic=1645,t.asteriskarabic=1645,t.asteriskmath=8727,t.asteriskmonospace=65290,t.asterisksmall=65121,t.asterism=8258,t.asuperior=63209,t.asymptoticallyequal=8771,t.at=64,t.atilde=227,t.atmonospace=65312,t.atsmall=65131,t.aturned=592,t.aubengali=2452,t.aubopomofo=12576,t.audeva=2324,t.augujarati=2708,t.augurmukhi=2580,t.aulengthmarkbengali=2519,t.aumatragurmukhi=2636,t.auvowelsignbengali=2508,t.auvowelsigndeva=2380,t.auvowelsigngujarati=2764,t.avagrahadeva=2365,t.aybarmenian=1377,t.ayin=1506,t.ayinaltonehebrew=64288,t.ayinhebrew=1506,t.b=98,t.babengali=2476,t.backslash=92,t.backslashmonospace=65340,t.badeva=2348,t.bagujarati=2732,t.bagurmukhi=2604,t.bahiragana=12400,t.bahtthai=3647,t.bakatakana=12496,t.bar=124,t.barmonospace=65372,t.bbopomofo=12549,t.bcircle=9425,t.bdotaccent=7683,t.bdotbelow=7685,t.beamedsixteenthnotes=9836,t.because=8757,t.becyrillic=1073,t.beharabic=1576,t.behfinalarabic=65168,t.behinitialarabic=65169,t.behiragana=12409,t.behmedialarabic=65170,t.behmeeminitialarabic=64671,t.behmeemisolatedarabic=64520,t.behnoonfinalarabic=64621,t.bekatakana=12505,t.benarmenian=1378,t.bet=1489,t.beta=946,t.betasymbolgreek=976,t.betdagesh=64305,t.betdageshhebrew=64305,t.bethebrew=1489,t.betrafehebrew=64332,t.bhabengali=2477,t.bhadeva=2349,t.bhagujarati=2733,t.bhagurmukhi=2605,t.bhook=595,t.bihiragana=12403,t.bikatakana=12499,t.bilabialclick=664,t.bindigurmukhi=2562,t.birusquare=13105,t.blackcircle=9679,t.blackdiamond=9670,t.blackdownpointingtriangle=9660,t.blackleftpointingpointer=9668,t.blackleftpointingtriangle=9664,t.blacklenticularbracketleft=12304,t.blacklenticularbracketleftvertical=65083,t.blacklenticularbracketright=12305,t.blacklenticularbracketrightvertical=65084,t.blacklowerlefttriangle=9699,t.blacklowerrighttriangle=9698,t.blackrectangle=9644,t.blackrightpointingpointer=9658,t.blackrightpointingtriangle=9654,t.blacksmallsquare=9642,t.blacksmilingface=9787,t.blacksquare=9632,t.blackstar=9733,t.blackupperlefttriangle=9700,t.blackupperrighttriangle=9701,t.blackuppointingsmalltriangle=9652,t.blackuppointingtriangle=9650,t.blank=9251,t.blinebelow=7687,t.block=9608,t.bmonospace=65346,t.bobaimaithai=3610,t.bohiragana=12412,t.bokatakana=12508,t.bparen=9373,t.bqsquare=13251,t.braceex=63732,t.braceleft=123,t.braceleftbt=63731,t.braceleftmid=63730,t.braceleftmonospace=65371,t.braceleftsmall=65115,t.bracelefttp=63729,t.braceleftvertical=65079,t.braceright=125,t.bracerightbt=63742,t.bracerightmid=63741,t.bracerightmonospace=65373,t.bracerightsmall=65116,t.bracerighttp=63740,t.bracerightvertical=65080,t.bracketleft=91,t.bracketleftbt=63728,t.bracketleftex=63727,t.bracketleftmonospace=65339,t.bracketlefttp=63726,t.bracketright=93,t.bracketrightbt=63739,t.bracketrightex=63738,t.bracketrightmonospace=65341,t.bracketrighttp=63737,t.breve=728,t.brevebelowcmb=814,t.brevecmb=774,t.breveinvertedbelowcmb=815,t.breveinvertedcmb=785,t.breveinverteddoublecmb=865,t.bridgebelowcmb=810,t.bridgeinvertedbelowcmb=826,t.brokenbar=166,t.bstroke=384,t.bsuperior=63210,t.btopbar=387,t.buhiragana=12406,t.bukatakana=12502,t.bullet=8226,t.bulletinverse=9688,t.bulletoperator=8729,t.bullseye=9678,t.c=99,t.caarmenian=1390,t.cabengali=2458,t.cacute=263,t.cadeva=2330,t.cagujarati=2714,t.cagurmukhi=2586,t.calsquare=13192,t.candrabindubengali=2433,t.candrabinducmb=784,t.candrabindudeva=2305,t.candrabindugujarati=2689,t.capslock=8682,t.careof=8453,t.caron=711,t.caronbelowcmb=812,t.caroncmb=780,t.carriagereturn=8629,t.cbopomofo=12568,t.ccaron=269,t.ccedilla=231,t.ccedillaacute=7689,t.ccircle=9426,t.ccircumflex=265,t.ccurl=597,t.cdot=267,t.cdotaccent=267,t.cdsquare=13253,t.cedilla=184,t.cedillacmb=807,t.cent=162,t.centigrade=8451,t.centinferior=63199,t.centmonospace=65504,t.centoldstyle=63394,t.centsuperior=63200,t.chaarmenian=1401,t.chabengali=2459,t.chadeva=2331,t.chagujarati=2715,t.chagurmukhi=2587,t.chbopomofo=12564,t.cheabkhasiancyrillic=1213,t.checkmark=10003,t.checyrillic=1095,t.chedescenderabkhasiancyrillic=1215,t.chedescendercyrillic=1207,t.chedieresiscyrillic=1269,t.cheharmenian=1395,t.chekhakassiancyrillic=1228,t.cheverticalstrokecyrillic=1209,t.chi=967,t.chieuchacirclekorean=12919,t.chieuchaparenkorean=12823,t.chieuchcirclekorean=12905,t.chieuchkorean=12618,t.chieuchparenkorean=12809,t.chochangthai=3594,t.chochanthai=3592,t.chochingthai=3593,t.chochoethai=3596,t.chook=392,t.cieucacirclekorean=12918,t.cieucaparenkorean=12822,t.cieuccirclekorean=12904,t.cieuckorean=12616,t.cieucparenkorean=12808,t.cieucuparenkorean=12828,t.circle=9675,t.circlecopyrt=169,t.circlemultiply=8855,t.circleot=8857,t.circleplus=8853,t.circlepostalmark=12342,t.circlewithlefthalfblack=9680,t.circlewithrighthalfblack=9681,t.circumflex=710,t.circumflexbelowcmb=813,t.circumflexcmb=770,t.clear=8999,t.clickalveolar=450,t.clickdental=448,t.clicklateral=449,t.clickretroflex=451,t.club=9827,t.clubsuitblack=9827,t.clubsuitwhite=9831,t.cmcubedsquare=13220,t.cmonospace=65347,t.cmsquaredsquare=13216,t.coarmenian=1409,t.colon=58,t.colonmonetary=8353,t.colonmonospace=65306,t.colonsign=8353,t.colonsmall=65109,t.colontriangularhalfmod=721,t.colontriangularmod=720,t.comma=44,t.commaabovecmb=787,t.commaaboverightcmb=789,t.commaaccent=63171,t.commaarabic=1548,t.commaarmenian=1373,t.commainferior=63201,t.commamonospace=65292,t.commareversedabovecmb=788,t.commareversedmod=701,t.commasmall=65104,t.commasuperior=63202,t.commaturnedabovecmb=786,t.commaturnedmod=699,t.compass=9788,t.congruent=8773,t.contourintegral=8750,t.control=8963,t.controlACK=6,t.controlBEL=7,t.controlBS=8,t.controlCAN=24,t.controlCR=13,t.controlDC1=17,t.controlDC2=18,t.controlDC3=19,t.controlDC4=20,t.controlDEL=127,t.controlDLE=16,t.controlEM=25,t.controlENQ=5,t.controlEOT=4,t.controlESC=27,t.controlETB=23,t.controlETX=3,t.controlFF=12,t.controlFS=28,t.controlGS=29,t.controlHT=9,t.controlLF=10,t.controlNAK=21,t.controlNULL=0,t.controlRS=30,t.controlSI=15,t.controlSO=14,t.controlSOT=2,t.controlSTX=1,t.controlSUB=26,t.controlSYN=22,t.controlUS=31,t.controlVT=11,t.copyright=169,t.copyrightsans=63721,t.copyrightserif=63193,t.cornerbracketleft=12300,t.cornerbracketlefthalfwidth=65378,t.cornerbracketleftvertical=65089,t.cornerbracketright=12301,t.cornerbracketrighthalfwidth=65379,t.cornerbracketrightvertical=65090,t.corporationsquare=13183,t.cosquare=13255,t.coverkgsquare=13254,t.cparen=9374,t.cruzeiro=8354,t.cstretched=663,t.curlyand=8911,t.curlyor=8910,t.currency=164,t.cyrBreve=63185,t.cyrFlex=63186,t.cyrbreve=63188,t.cyrflex=63189,t.d=100,t.daarmenian=1380,t.dabengali=2470,t.dadarabic=1590,t.dadeva=2342,t.dadfinalarabic=65214,t.dadinitialarabic=65215,t.dadmedialarabic=65216,t.dagesh=1468,t.dageshhebrew=1468,t.dagger=8224,t.daggerdbl=8225,t.dagujarati=2726,t.dagurmukhi=2598,t.dahiragana=12384,t.dakatakana=12480,t.dalarabic=1583,t.dalet=1491,t.daletdagesh=64307,t.daletdageshhebrew=64307,t.dalethebrew=1491,t.dalfinalarabic=65194,t.dammaarabic=1615,t.dammalowarabic=1615,t.dammatanaltonearabic=1612,t.dammatanarabic=1612,t.danda=2404,t.dargahebrew=1447,t.dargalefthebrew=1447,t.dasiapneumatacyrilliccmb=1157,t.dblGrave=63187,t.dblanglebracketleft=12298,t.dblanglebracketleftvertical=65085,t.dblanglebracketright=12299,t.dblanglebracketrightvertical=65086,t.dblarchinvertedbelowcmb=811,t.dblarrowleft=8660,t.dblarrowright=8658,t.dbldanda=2405,t.dblgrave=63190,t.dblgravecmb=783,t.dblintegral=8748,t.dbllowline=8215,t.dbllowlinecmb=819,t.dbloverlinecmb=831,t.dblprimemod=698,t.dblverticalbar=8214,t.dblverticallineabovecmb=782,t.dbopomofo=12553,t.dbsquare=13256,t.dcaron=271,t.dcedilla=7697,t.dcircle=9427,t.dcircumflexbelow=7699,t.dcroat=273,t.ddabengali=2465,t.ddadeva=2337,t.ddagujarati=2721,t.ddagurmukhi=2593,t.ddalarabic=1672,t.ddalfinalarabic=64393,t.dddhadeva=2396,t.ddhabengali=2466,t.ddhadeva=2338,t.ddhagujarati=2722,t.ddhagurmukhi=2594,t.ddotaccent=7691,t.ddotbelow=7693,t.decimalseparatorarabic=1643,t.decimalseparatorpersian=1643,t.decyrillic=1076,t.degree=176,t.dehihebrew=1453,t.dehiragana=12391,t.deicoptic=1007,t.dekatakana=12487,t.deleteleft=9003,t.deleteright=8998,t.delta=948,t.deltaturned=397,t.denominatorminusonenumeratorbengali=2552,t.dezh=676,t.dhabengali=2471,t.dhadeva=2343,t.dhagujarati=2727,t.dhagurmukhi=2599,t.dhook=599,t.dialytikatonos=901,t.dialytikatonoscmb=836,t.diamond=9830,t.diamondsuitwhite=9826,t.dieresis=168,t.dieresisacute=63191,t.dieresisbelowcmb=804,t.dieresiscmb=776,t.dieresisgrave=63192,t.dieresistonos=901,t.dihiragana=12386,t.dikatakana=12482,t.dittomark=12291,t.divide=247,t.divides=8739,t.divisionslash=8725,t.djecyrillic=1106,t.dkshade=9619,t.dlinebelow=7695,t.dlsquare=13207,t.dmacron=273,t.dmonospace=65348,t.dnblock=9604,t.dochadathai=3598,t.dodekthai=3604,t.dohiragana=12393,t.dokatakana=12489,t.dollar=36,t.dollarinferior=63203,t.dollarmonospace=65284,t.dollaroldstyle=63268,t.dollarsmall=65129,t.dollarsuperior=63204,t.dong=8363,t.dorusquare=13094,t.dotaccent=729,t.dotaccentcmb=775,t.dotbelowcmb=803,t.dotbelowcomb=803,t.dotkatakana=12539,t.dotlessi=305,t.dotlessj=63166,t.dotlessjstrokehook=644,t.dotmath=8901,t.dottedcircle=9676,t.doubleyodpatah=64287,t.doubleyodpatahhebrew=64287,t.downtackbelowcmb=798,t.downtackmod=725,t.dparen=9375,t.dsuperior=63211,t.dtail=598,t.dtopbar=396,t.duhiragana=12389,t.dukatakana=12485,t.dz=499,t.dzaltone=675,t.dzcaron=454,t.dzcurl=677,t.dzeabkhasiancyrillic=1249,t.dzecyrillic=1109,t.dzhecyrillic=1119,t.e=101,t.eacute=233,t.earth=9793,t.ebengali=2447,t.ebopomofo=12572,t.ebreve=277,t.ecandradeva=2317,t.ecandragujarati=2701,t.ecandravowelsigndeva=2373,t.ecandravowelsigngujarati=2757,t.ecaron=283,t.ecedillabreve=7709,t.echarmenian=1381,t.echyiwnarmenian=1415,t.ecircle=9428,t.ecircumflex=234,t.ecircumflexacute=7871,t.ecircumflexbelow=7705,t.ecircumflexdotbelow=7879,t.ecircumflexgrave=7873,t.ecircumflexhookabove=7875,t.ecircumflextilde=7877,t.ecyrillic=1108,t.edblgrave=517,t.edeva=2319,t.edieresis=235,t.edot=279,t.edotaccent=279,t.edotbelow=7865,t.eegurmukhi=2575,t.eematragurmukhi=2631,t.efcyrillic=1092,t.egrave=232,t.egujarati=2703,t.eharmenian=1383,t.ehbopomofo=12573,t.ehiragana=12360,t.ehookabove=7867,t.eibopomofo=12575,t.eight=56,t.eightarabic=1640,t.eightbengali=2542,t.eightcircle=9319,t.eightcircleinversesansserif=10129,t.eightdeva=2414,t.eighteencircle=9329,t.eighteenparen=9349,t.eighteenperiod=9369,t.eightgujarati=2798,t.eightgurmukhi=2670,t.eighthackarabic=1640,t.eighthangzhou=12328,t.eighthnotebeamed=9835,t.eightideographicparen=12839,t.eightinferior=8328,t.eightmonospace=65304,t.eightoldstyle=63288,t.eightparen=9339,t.eightperiod=9359,t.eightpersian=1784,t.eightroman=8567,t.eightsuperior=8312,t.eightthai=3672,t.einvertedbreve=519,t.eiotifiedcyrillic=1125,t.ekatakana=12456,t.ekatakanahalfwidth=65396,t.ekonkargurmukhi=2676,t.ekorean=12628,t.elcyrillic=1083,t.element=8712,t.elevencircle=9322,t.elevenparen=9342,t.elevenperiod=9362,t.elevenroman=8570,t.ellipsis=8230,t.ellipsisvertical=8942,t.emacron=275,t.emacronacute=7703,t.emacrongrave=7701,t.emcyrillic=1084,t.emdash=8212,t.emdashvertical=65073,t.emonospace=65349,t.emphasismarkarmenian=1371,t.emptyset=8709,t.enbopomofo=12579,t.encyrillic=1085,t.endash=8211,t.endashvertical=65074,t.endescendercyrillic=1187,t.eng=331,t.engbopomofo=12581,t.enghecyrillic=1189,t.enhookcyrillic=1224,t.enspace=8194,t.eogonek=281,t.eokorean=12627,t.eopen=603,t.eopenclosed=666,t.eopenreversed=604,t.eopenreversedclosed=606,t.eopenreversedhook=605,t.eparen=9376,t.epsilon=949,t.epsilontonos=941,t.equal=61,t.equalmonospace=65309,t.equalsmall=65126,t.equalsuperior=8316,t.equivalence=8801,t.erbopomofo=12582,t.ercyrillic=1088,t.ereversed=600,t.ereversedcyrillic=1101,t.escyrillic=1089,t.esdescendercyrillic=1195,t.esh=643,t.eshcurl=646,t.eshortdeva=2318,t.eshortvowelsigndeva=2374,t.eshreversedloop=426,t.eshsquatreversed=645,t.esmallhiragana=12359,t.esmallkatakana=12455,t.esmallkatakanahalfwidth=65386,t.estimated=8494,t.esuperior=63212,t.eta=951,t.etarmenian=1384,t.etatonos=942,t.eth=240,t.etilde=7869,t.etildebelow=7707,t.etnahtafoukhhebrew=1425,t.etnahtafoukhlefthebrew=1425,t.etnahtahebrew=1425,t.etnahtalefthebrew=1425,t.eturned=477,t.eukorean=12641,t.euro=8364,t.evowelsignbengali=2503,t.evowelsigndeva=2375,t.evowelsigngujarati=2759,t.exclam=33,t.exclamarmenian=1372,t.exclamdbl=8252,t.exclamdown=161,t.exclamdownsmall=63393,t.exclammonospace=65281,t.exclamsmall=63265,t.existential=8707,t.ezh=658,t.ezhcaron=495,t.ezhcurl=659,t.ezhreversed=441,t.ezhtail=442,t.f=102,t.fadeva=2398,t.fagurmukhi=2654,t.fahrenheit=8457,t.fathaarabic=1614,t.fathalowarabic=1614,t.fathatanarabic=1611,t.fbopomofo=12552,t.fcircle=9429,t.fdotaccent=7711,t.feharabic=1601,t.feharmenian=1414,t.fehfinalarabic=65234,t.fehinitialarabic=65235,t.fehmedialarabic=65236,t.feicoptic=997,t.female=9792,t.ff=64256,t.f_f=64256,t.ffi=64259,t.f_f_i=64259,t.ffl=64260,t.f_f_l=64260,t.fi=64257,t.f_i=64257,t.fifteencircle=9326,t.fifteenparen=9346,t.fifteenperiod=9366,t.figuredash=8210,t.filledbox=9632,t.filledrect=9644,t.finalkaf=1498,t.finalkafdagesh=64314,t.finalkafdageshhebrew=64314,t.finalkafhebrew=1498,t.finalmem=1501,t.finalmemhebrew=1501,t.finalnun=1503,t.finalnunhebrew=1503,t.finalpe=1507,t.finalpehebrew=1507,t.finaltsadi=1509,t.finaltsadihebrew=1509,t.firsttonechinese=713,t.fisheye=9673,t.fitacyrillic=1139,t.five=53,t.fivearabic=1637,t.fivebengali=2539,t.fivecircle=9316,t.fivecircleinversesansserif=10126,t.fivedeva=2411,t.fiveeighths=8541,t.fivegujarati=2795,t.fivegurmukhi=2667,t.fivehackarabic=1637,t.fivehangzhou=12325,t.fiveideographicparen=12836,t.fiveinferior=8325,t.fivemonospace=65301,t.fiveoldstyle=63285,t.fiveparen=9336,t.fiveperiod=9356,t.fivepersian=1781,t.fiveroman=8564,t.fivesuperior=8309,t.fivethai=3669,t.fl=64258,t.f_l=64258,t.florin=402,t.fmonospace=65350,t.fmsquare=13209,t.fofanthai=3615,t.fofathai=3613,t.fongmanthai=3663,t.forall=8704,t.four=52,t.fourarabic=1636,t.fourbengali=2538,t.fourcircle=9315,t.fourcircleinversesansserif=10125,t.fourdeva=2410,t.fourgujarati=2794,t.fourgurmukhi=2666,t.fourhackarabic=1636,t.fourhangzhou=12324,t.fourideographicparen=12835,t.fourinferior=8324,t.fourmonospace=65300,t.fournumeratorbengali=2551,t.fouroldstyle=63284,t.fourparen=9335,t.fourperiod=9355,t.fourpersian=1780,t.fourroman=8563,t.foursuperior=8308,t.fourteencircle=9325,t.fourteenparen=9345,t.fourteenperiod=9365,t.fourthai=3668,t.fourthtonechinese=715,t.fparen=9377,t.fraction=8260,t.franc=8355,t.g=103,t.gabengali=2455,t.gacute=501,t.gadeva=2327,t.gafarabic=1711,t.gaffinalarabic=64403,t.gafinitialarabic=64404,t.gafmedialarabic=64405,t.gagujarati=2711,t.gagurmukhi=2583,t.gahiragana=12364,t.gakatakana=12460,t.gamma=947,t.gammalatinsmall=611,t.gammasuperior=736,t.gangiacoptic=1003,t.gbopomofo=12557,t.gbreve=287,t.gcaron=487,t.gcedilla=291,t.gcircle=9430,t.gcircumflex=285,t.gcommaaccent=291,t.gdot=289,t.gdotaccent=289,t.gecyrillic=1075,t.gehiragana=12370,t.gekatakana=12466,t.geometricallyequal=8785,t.gereshaccenthebrew=1436,t.gereshhebrew=1523,t.gereshmuqdamhebrew=1437,t.germandbls=223,t.gershayimaccenthebrew=1438,t.gershayimhebrew=1524,t.getamark=12307,t.ghabengali=2456,t.ghadarmenian=1394,t.ghadeva=2328,t.ghagujarati=2712,t.ghagurmukhi=2584,t.ghainarabic=1594,t.ghainfinalarabic=65230,t.ghaininitialarabic=65231,t.ghainmedialarabic=65232,t.ghemiddlehookcyrillic=1173,t.ghestrokecyrillic=1171,t.gheupturncyrillic=1169,t.ghhadeva=2394,t.ghhagurmukhi=2650,t.ghook=608,t.ghzsquare=13203,t.gihiragana=12366,t.gikatakana=12462,t.gimarmenian=1379,t.gimel=1490,t.gimeldagesh=64306,t.gimeldageshhebrew=64306,t.gimelhebrew=1490,t.gjecyrillic=1107,t.glottalinvertedstroke=446,t.glottalstop=660,t.glottalstopinverted=662,t.glottalstopmod=704,t.glottalstopreversed=661,t.glottalstopreversedmod=705,t.glottalstopreversedsuperior=740,t.glottalstopstroke=673,t.glottalstopstrokereversed=674,t.gmacron=7713,t.gmonospace=65351,t.gohiragana=12372,t.gokatakana=12468,t.gparen=9378,t.gpasquare=13228,t.gradient=8711,t.grave=96,t.gravebelowcmb=790,t.gravecmb=768,t.gravecomb=768,t.gravedeva=2387,t.gravelowmod=718,t.gravemonospace=65344,t.gravetonecmb=832,t.greater=62,t.greaterequal=8805,t.greaterequalorless=8923,t.greatermonospace=65310,t.greaterorequivalent=8819,t.greaterorless=8823,t.greateroverequal=8807,t.greatersmall=65125,t.gscript=609,t.gstroke=485,t.guhiragana=12368,t.guillemotleft=171,t.guillemotright=187,t.guilsinglleft=8249,t.guilsinglright=8250,t.gukatakana=12464,t.guramusquare=13080,t.gysquare=13257,t.h=104,t.haabkhasiancyrillic=1193,t.haaltonearabic=1729,t.habengali=2489,t.hadescendercyrillic=1203,t.hadeva=2361,t.hagujarati=2745,t.hagurmukhi=2617,t.haharabic=1581,t.hahfinalarabic=65186,t.hahinitialarabic=65187,t.hahiragana=12399,t.hahmedialarabic=65188,t.haitusquare=13098,t.hakatakana=12495,t.hakatakanahalfwidth=65418,t.halantgurmukhi=2637,t.hamzaarabic=1569,t.hamzalowarabic=1569,t.hangulfiller=12644,t.hardsigncyrillic=1098,t.harpoonleftbarbup=8636,t.harpoonrightbarbup=8640,t.hasquare=13258,t.hatafpatah=1458,t.hatafpatah16=1458,t.hatafpatah23=1458,t.hatafpatah2f=1458,t.hatafpatahhebrew=1458,t.hatafpatahnarrowhebrew=1458,t.hatafpatahquarterhebrew=1458,t.hatafpatahwidehebrew=1458,t.hatafqamats=1459,t.hatafqamats1b=1459,t.hatafqamats28=1459,t.hatafqamats34=1459,t.hatafqamatshebrew=1459,t.hatafqamatsnarrowhebrew=1459,t.hatafqamatsquarterhebrew=1459,t.hatafqamatswidehebrew=1459,t.hatafsegol=1457,t.hatafsegol17=1457,t.hatafsegol24=1457,t.hatafsegol30=1457,t.hatafsegolhebrew=1457,t.hatafsegolnarrowhebrew=1457,t.hatafsegolquarterhebrew=1457,t.hatafsegolwidehebrew=1457,t.hbar=295,t.hbopomofo=12559,t.hbrevebelow=7723,t.hcedilla=7721,t.hcircle=9431,t.hcircumflex=293,t.hdieresis=7719,t.hdotaccent=7715,t.hdotbelow=7717,t.he=1492,t.heart=9829,t.heartsuitblack=9829,t.heartsuitwhite=9825,t.hedagesh=64308,t.hedageshhebrew=64308,t.hehaltonearabic=1729,t.heharabic=1607,t.hehebrew=1492,t.hehfinalaltonearabic=64423,t.hehfinalalttwoarabic=65258,t.hehfinalarabic=65258,t.hehhamzaabovefinalarabic=64421,t.hehhamzaaboveisolatedarabic=64420,t.hehinitialaltonearabic=64424,t.hehinitialarabic=65259,t.hehiragana=12408,t.hehmedialaltonearabic=64425,t.hehmedialarabic=65260,t.heiseierasquare=13179,t.hekatakana=12504,t.hekatakanahalfwidth=65421,t.hekutaarusquare=13110,t.henghook=615,t.herutusquare=13113,t.het=1495,t.hethebrew=1495,t.hhook=614,t.hhooksuperior=689,t.hieuhacirclekorean=12923,t.hieuhaparenkorean=12827,t.hieuhcirclekorean=12909,t.hieuhkorean=12622,t.hieuhparenkorean=12813,t.hihiragana=12402,t.hikatakana=12498,t.hikatakanahalfwidth=65419,t.hiriq=1460,t.hiriq14=1460,t.hiriq21=1460,t.hiriq2d=1460,t.hiriqhebrew=1460,t.hiriqnarrowhebrew=1460,t.hiriqquarterhebrew=1460,t.hiriqwidehebrew=1460,t.hlinebelow=7830,t.hmonospace=65352,t.hoarmenian=1392,t.hohipthai=3627,t.hohiragana=12411,t.hokatakana=12507,t.hokatakanahalfwidth=65422,t.holam=1465,t.holam19=1465,t.holam26=1465,t.holam32=1465,t.holamhebrew=1465,t.holamnarrowhebrew=1465,t.holamquarterhebrew=1465,t.holamwidehebrew=1465,t.honokhukthai=3630,t.hookabovecomb=777,t.hookcmb=777,t.hookpalatalizedbelowcmb=801,t.hookretroflexbelowcmb=802,t.hoonsquare=13122,t.horicoptic=1001,t.horizontalbar=8213,t.horncmb=795,t.hotsprings=9832,t.house=8962,t.hparen=9379,t.hsuperior=688,t.hturned=613,t.huhiragana=12405,t.huiitosquare=13107,t.hukatakana=12501,t.hukatakanahalfwidth=65420,t.hungarumlaut=733,t.hungarumlautcmb=779,t.hv=405,t.hyphen=45,t.hypheninferior=63205,t.hyphenmonospace=65293,t.hyphensmall=65123,t.hyphensuperior=63206,t.hyphentwo=8208,t.i=105,t.iacute=237,t.iacyrillic=1103,t.ibengali=2439,t.ibopomofo=12583,t.ibreve=301,t.icaron=464,t.icircle=9432,t.icircumflex=238,t.icyrillic=1110,t.idblgrave=521,t.ideographearthcircle=12943,t.ideographfirecircle=12939,t.ideographicallianceparen=12863,t.ideographiccallparen=12858,t.ideographiccentrecircle=12965,t.ideographicclose=12294,t.ideographiccomma=12289,t.ideographiccommaleft=65380,t.ideographiccongratulationparen=12855,t.ideographiccorrectcircle=12963,t.ideographicearthparen=12847,t.ideographicenterpriseparen=12861,t.ideographicexcellentcircle=12957,t.ideographicfestivalparen=12864,t.ideographicfinancialcircle=12950,t.ideographicfinancialparen=12854,t.ideographicfireparen=12843,t.ideographichaveparen=12850,t.ideographichighcircle=12964,t.ideographiciterationmark=12293,t.ideographiclaborcircle=12952,t.ideographiclaborparen=12856,t.ideographicleftcircle=12967,t.ideographiclowcircle=12966,t.ideographicmedicinecircle=12969,t.ideographicmetalparen=12846,t.ideographicmoonparen=12842,t.ideographicnameparen=12852,t.ideographicperiod=12290,t.ideographicprintcircle=12958,t.ideographicreachparen=12867,t.ideographicrepresentparen=12857,t.ideographicresourceparen=12862,t.ideographicrightcircle=12968,t.ideographicsecretcircle=12953,t.ideographicselfparen=12866,t.ideographicsocietyparen=12851,t.ideographicspace=12288,t.ideographicspecialparen=12853,t.ideographicstockparen=12849,t.ideographicstudyparen=12859,t.ideographicsunparen=12848,t.ideographicsuperviseparen=12860,t.ideographicwaterparen=12844,t.ideographicwoodparen=12845,t.ideographiczero=12295,t.ideographmetalcircle=12942,t.ideographmooncircle=12938,t.ideographnamecircle=12948,t.ideographsuncircle=12944,t.ideographwatercircle=12940,t.ideographwoodcircle=12941,t.ideva=2311,t.idieresis=239,t.idieresisacute=7727,t.idieresiscyrillic=1253,t.idotbelow=7883,t.iebrevecyrillic=1239,t.iecyrillic=1077,t.ieungacirclekorean=12917,t.ieungaparenkorean=12821,t.ieungcirclekorean=12903,t.ieungkorean=12615,t.ieungparenkorean=12807,t.igrave=236,t.igujarati=2695,t.igurmukhi=2567,t.ihiragana=12356,t.ihookabove=7881,t.iibengali=2440,t.iicyrillic=1080,t.iideva=2312,t.iigujarati=2696,t.iigurmukhi=2568,t.iimatragurmukhi=2624,t.iinvertedbreve=523,t.iishortcyrillic=1081,t.iivowelsignbengali=2496,t.iivowelsigndeva=2368,t.iivowelsigngujarati=2752,t.ij=307,t.ikatakana=12452,t.ikatakanahalfwidth=65394,t.ikorean=12643,t.ilde=732,t.iluyhebrew=1452,t.imacron=299,t.imacroncyrillic=1251,t.imageorapproximatelyequal=8787,t.imatragurmukhi=2623,t.imonospace=65353,t.increment=8710,t.infinity=8734,t.iniarmenian=1387,t.integral=8747,t.integralbottom=8993,t.integralbt=8993,t.integralex=63733,t.integraltop=8992,t.integraltp=8992,t.intersection=8745,t.intisquare=13061,t.invbullet=9688,t.invcircle=9689,t.invsmileface=9787,t.iocyrillic=1105,t.iogonek=303,t.iota=953,t.iotadieresis=970,t.iotadieresistonos=912,t.iotalatin=617,t.iotatonos=943,t.iparen=9380,t.irigurmukhi=2674,t.ismallhiragana=12355,t.ismallkatakana=12451,t.ismallkatakanahalfwidth=65384,t.issharbengali=2554,t.istroke=616,t.isuperior=63213,t.iterationhiragana=12445,t.iterationkatakana=12541,t.itilde=297,t.itildebelow=7725,t.iubopomofo=12585,t.iucyrillic=1102,t.ivowelsignbengali=2495,t.ivowelsigndeva=2367,t.ivowelsigngujarati=2751,t.izhitsacyrillic=1141,t.izhitsadblgravecyrillic=1143,t.j=106,t.jaarmenian=1393,t.jabengali=2460,t.jadeva=2332,t.jagujarati=2716,t.jagurmukhi=2588,t.jbopomofo=12560,t.jcaron=496,t.jcircle=9433,t.jcircumflex=309,t.jcrossedtail=669,t.jdotlessstroke=607,t.jecyrillic=1112,t.jeemarabic=1580,t.jeemfinalarabic=65182,t.jeeminitialarabic=65183,t.jeemmedialarabic=65184,t.jeharabic=1688,t.jehfinalarabic=64395,t.jhabengali=2461,t.jhadeva=2333,t.jhagujarati=2717,t.jhagurmukhi=2589,t.jheharmenian=1403,t.jis=12292,t.jmonospace=65354,t.jparen=9381,t.jsuperior=690,t.k=107,t.kabashkircyrillic=1185,t.kabengali=2453,t.kacute=7729,t.kacyrillic=1082,t.kadescendercyrillic=1179,t.kadeva=2325,t.kaf=1499,t.kafarabic=1603,t.kafdagesh=64315,t.kafdageshhebrew=64315,t.kaffinalarabic=65242,t.kafhebrew=1499,t.kafinitialarabic=65243,t.kafmedialarabic=65244,t.kafrafehebrew=64333,t.kagujarati=2709,t.kagurmukhi=2581,t.kahiragana=12363,t.kahookcyrillic=1220,t.kakatakana=12459,t.kakatakanahalfwidth=65398,t.kappa=954,t.kappasymbolgreek=1008,t.kapyeounmieumkorean=12657,t.kapyeounphieuphkorean=12676,t.kapyeounpieupkorean=12664,t.kapyeounssangpieupkorean=12665,t.karoriisquare=13069,t.kashidaautoarabic=1600,t.kashidaautonosidebearingarabic=1600,t.kasmallkatakana=12533,t.kasquare=13188,t.kasraarabic=1616,t.kasratanarabic=1613,t.kastrokecyrillic=1183,t.katahiraprolongmarkhalfwidth=65392,t.kaverticalstrokecyrillic=1181,t.kbopomofo=12558,t.kcalsquare=13193,t.kcaron=489,t.kcedilla=311,t.kcircle=9434,t.kcommaaccent=311,t.kdotbelow=7731,t.keharmenian=1412,t.kehiragana=12369,t.kekatakana=12465,t.kekatakanahalfwidth=65401,t.kenarmenian=1391,t.kesmallkatakana=12534,t.kgreenlandic=312,t.khabengali=2454,t.khacyrillic=1093,t.khadeva=2326,t.khagujarati=2710,t.khagurmukhi=2582,t.khaharabic=1582,t.khahfinalarabic=65190,t.khahinitialarabic=65191,t.khahmedialarabic=65192,t.kheicoptic=999,t.khhadeva=2393,t.khhagurmukhi=2649,t.khieukhacirclekorean=12920,t.khieukhaparenkorean=12824,t.khieukhcirclekorean=12906,t.khieukhkorean=12619,t.khieukhparenkorean=12810,t.khokhaithai=3586,t.khokhonthai=3589,t.khokhuatthai=3587,t.khokhwaithai=3588,t.khomutthai=3675,t.khook=409,t.khorakhangthai=3590,t.khzsquare=13201,t.kihiragana=12365,t.kikatakana=12461,t.kikatakanahalfwidth=65399,t.kiroguramusquare=13077,t.kiromeetorusquare=13078,t.kirosquare=13076,t.kiyeokacirclekorean=12910,t.kiyeokaparenkorean=12814,t.kiyeokcirclekorean=12896,t.kiyeokkorean=12593,t.kiyeokparenkorean=12800,t.kiyeoksioskorean=12595,t.kjecyrillic=1116,t.klinebelow=7733,t.klsquare=13208,t.kmcubedsquare=13222,t.kmonospace=65355,t.kmsquaredsquare=13218,t.kohiragana=12371,t.kohmsquare=13248,t.kokaithai=3585,t.kokatakana=12467,t.kokatakanahalfwidth=65402,t.kooposquare=13086,t.koppacyrillic=1153,t.koreanstandardsymbol=12927,t.koroniscmb=835,t.kparen=9382,t.kpasquare=13226,t.ksicyrillic=1135,t.ktsquare=13263,t.kturned=670,t.kuhiragana=12367,t.kukatakana=12463,t.kukatakanahalfwidth=65400,t.kvsquare=13240,t.kwsquare=13246,t.l=108,t.labengali=2482,t.lacute=314,t.ladeva=2354,t.lagujarati=2738,t.lagurmukhi=2610,t.lakkhangyaothai=3653,t.lamaleffinalarabic=65276,t.lamalefhamzaabovefinalarabic=65272,t.lamalefhamzaaboveisolatedarabic=65271,t.lamalefhamzabelowfinalarabic=65274,t.lamalefhamzabelowisolatedarabic=65273,t.lamalefisolatedarabic=65275,t.lamalefmaddaabovefinalarabic=65270,t.lamalefmaddaaboveisolatedarabic=65269,t.lamarabic=1604,t.lambda=955,t.lambdastroke=411,t.lamed=1500,t.lameddagesh=64316,t.lameddageshhebrew=64316,t.lamedhebrew=1500,t.lamfinalarabic=65246,t.lamhahinitialarabic=64714,t.laminitialarabic=65247,t.lamjeeminitialarabic=64713,t.lamkhahinitialarabic=64715,t.lamlamhehisolatedarabic=65010,t.lammedialarabic=65248,t.lammeemhahinitialarabic=64904,t.lammeeminitialarabic=64716,t.largecircle=9711,t.lbar=410,t.lbelt=620,t.lbopomofo=12556,t.lcaron=318,t.lcedilla=316,t.lcircle=9435,t.lcircumflexbelow=7741,t.lcommaaccent=316,t.ldot=320,t.ldotaccent=320,t.ldotbelow=7735,t.ldotbelowmacron=7737,t.leftangleabovecmb=794,t.lefttackbelowcmb=792,t.less=60,t.lessequal=8804,t.lessequalorgreater=8922,t.lessmonospace=65308,t.lessorequivalent=8818,t.lessorgreater=8822,t.lessoverequal=8806,t.lesssmall=65124,t.lezh=622,t.lfblock=9612,t.lhookretroflex=621,t.lira=8356,t.liwnarmenian=1388,t.lj=457,t.ljecyrillic=1113,t.ll=63168,t.lladeva=2355,t.llagujarati=2739,t.llinebelow=7739,t.llladeva=2356,t.llvocalicbengali=2529,t.llvocalicdeva=2401,t.llvocalicvowelsignbengali=2531,t.llvocalicvowelsigndeva=2403,t.lmiddletilde=619,t.lmonospace=65356,t.lmsquare=13264,t.lochulathai=3628,t.logicaland=8743,t.logicalnot=172,t.logicalnotreversed=8976,t.logicalor=8744,t.lolingthai=3621,t.longs=383,t.lowlinecenterline=65102,t.lowlinecmb=818,t.lowlinedashed=65101,t.lozenge=9674,t.lparen=9383,t.lslash=322,t.lsquare=8467,t.lsuperior=63214,t.ltshade=9617,t.luthai=3622,t.lvocalicbengali=2444,t.lvocalicdeva=2316,t.lvocalicvowelsignbengali=2530,t.lvocalicvowelsigndeva=2402,t.lxsquare=13267,t.m=109,t.mabengali=2478,t.macron=175,t.macronbelowcmb=817,t.macroncmb=772,t.macronlowmod=717,t.macronmonospace=65507,t.macute=7743,t.madeva=2350,t.magujarati=2734,t.magurmukhi=2606,t.mahapakhhebrew=1444,t.mahapakhlefthebrew=1444,t.mahiragana=12414,t.maichattawalowleftthai=63637,t.maichattawalowrightthai=63636,t.maichattawathai=3659,t.maichattawaupperleftthai=63635,t.maieklowleftthai=63628,t.maieklowrightthai=63627,t.maiekthai=3656,t.maiekupperleftthai=63626,t.maihanakatleftthai=63620,t.maihanakatthai=3633,t.maitaikhuleftthai=63625,t.maitaikhuthai=3655,t.maitholowleftthai=63631,t.maitholowrightthai=63630,t.maithothai=3657,t.maithoupperleftthai=63629,t.maitrilowleftthai=63634,t.maitrilowrightthai=63633,t.maitrithai=3658,t.maitriupperleftthai=63632,t.maiyamokthai=3654,t.makatakana=12510,t.makatakanahalfwidth=65423,t.male=9794,t.mansyonsquare=13127,t.maqafhebrew=1470,t.mars=9794,t.masoracirclehebrew=1455,t.masquare=13187,t.mbopomofo=12551,t.mbsquare=13268,t.mcircle=9436,t.mcubedsquare=13221,t.mdotaccent=7745,t.mdotbelow=7747,t.meemarabic=1605,t.meemfinalarabic=65250,t.meeminitialarabic=65251,t.meemmedialarabic=65252,t.meemmeeminitialarabic=64721,t.meemmeemisolatedarabic=64584,t.meetorusquare=13133,t.mehiragana=12417,t.meizierasquare=13182,t.mekatakana=12513,t.mekatakanahalfwidth=65426,t.mem=1502,t.memdagesh=64318,t.memdageshhebrew=64318,t.memhebrew=1502,t.menarmenian=1396,t.merkhahebrew=1445,t.merkhakefulahebrew=1446,t.merkhakefulalefthebrew=1446,t.merkhalefthebrew=1445,t.mhook=625,t.mhzsquare=13202,t.middledotkatakanahalfwidth=65381,t.middot=183,t.mieumacirclekorean=12914,t.mieumaparenkorean=12818,t.mieumcirclekorean=12900,t.mieumkorean=12609,t.mieumpansioskorean=12656,t.mieumparenkorean=12804,t.mieumpieupkorean=12654,t.mieumsioskorean=12655,t.mihiragana=12415,t.mikatakana=12511,t.mikatakanahalfwidth=65424,t.minus=8722,t.minusbelowcmb=800,t.minuscircle=8854,t.minusmod=727,t.minusplus=8723,t.minute=8242,t.miribaarusquare=13130,t.mirisquare=13129,t.mlonglegturned=624,t.mlsquare=13206,t.mmcubedsquare=13219,t.mmonospace=65357,t.mmsquaredsquare=13215,t.mohiragana=12418,t.mohmsquare=13249,t.mokatakana=12514,t.mokatakanahalfwidth=65427,t.molsquare=13270,t.momathai=3617,t.moverssquare=13223,t.moverssquaredsquare=13224,t.mparen=9384,t.mpasquare=13227,t.mssquare=13235,t.msuperior=63215,t.mturned=623,t.mu=181,t.mu1=181,t.muasquare=13186,t.muchgreater=8811,t.muchless=8810,t.mufsquare=13196,t.mugreek=956,t.mugsquare=13197,t.muhiragana=12416,t.mukatakana=12512,t.mukatakanahalfwidth=65425,t.mulsquare=13205,t.multiply=215,t.mumsquare=13211,t.munahhebrew=1443,t.munahlefthebrew=1443,t.musicalnote=9834,t.musicalnotedbl=9835,t.musicflatsign=9837,t.musicsharpsign=9839,t.mussquare=13234,t.muvsquare=13238,t.muwsquare=13244,t.mvmegasquare=13241,t.mvsquare=13239,t.mwmegasquare=13247,t.mwsquare=13245,t.n=110,t.nabengali=2472,t.nabla=8711,t.nacute=324,t.nadeva=2344,t.nagujarati=2728,t.nagurmukhi=2600,t.nahiragana=12394,t.nakatakana=12490,t.nakatakanahalfwidth=65413,t.napostrophe=329,t.nasquare=13185,t.nbopomofo=12555,t.nbspace=160,t.ncaron=328,t.ncedilla=326,t.ncircle=9437,t.ncircumflexbelow=7755,t.ncommaaccent=326,t.ndotaccent=7749,t.ndotbelow=7751,t.nehiragana=12397,t.nekatakana=12493,t.nekatakanahalfwidth=65416,t.newsheqelsign=8362,t.nfsquare=13195,t.ngabengali=2457,t.ngadeva=2329,t.ngagujarati=2713,t.ngagurmukhi=2585,t.ngonguthai=3591,t.nhiragana=12435,t.nhookleft=626,t.nhookretroflex=627,t.nieunacirclekorean=12911,t.nieunaparenkorean=12815,t.nieuncieuckorean=12597,t.nieuncirclekorean=12897,t.nieunhieuhkorean=12598,t.nieunkorean=12596,t.nieunpansioskorean=12648,t.nieunparenkorean=12801,t.nieunsioskorean=12647,t.nieuntikeutkorean=12646,t.nihiragana=12395,t.nikatakana=12491,t.nikatakanahalfwidth=65414,t.nikhahitleftthai=63641,t.nikhahitthai=3661,t.nine=57,t.ninearabic=1641,t.ninebengali=2543,t.ninecircle=9320,t.ninecircleinversesansserif=10130,t.ninedeva=2415,t.ninegujarati=2799,t.ninegurmukhi=2671,t.ninehackarabic=1641,t.ninehangzhou=12329,t.nineideographicparen=12840,t.nineinferior=8329,t.ninemonospace=65305,t.nineoldstyle=63289,t.nineparen=9340,t.nineperiod=9360,t.ninepersian=1785,t.nineroman=8568,t.ninesuperior=8313,t.nineteencircle=9330,t.nineteenparen=9350,t.nineteenperiod=9370,t.ninethai=3673,t.nj=460,t.njecyrillic=1114,t.nkatakana=12531,t.nkatakanahalfwidth=65437,t.nlegrightlong=414,t.nlinebelow=7753,t.nmonospace=65358,t.nmsquare=13210,t.nnabengali=2467,t.nnadeva=2339,t.nnagujarati=2723,t.nnagurmukhi=2595,t.nnnadeva=2345,t.nohiragana=12398,t.nokatakana=12494,t.nokatakanahalfwidth=65417,t.nonbreakingspace=160,t.nonenthai=3603,t.nonuthai=3609,t.noonarabic=1606,t.noonfinalarabic=65254,t.noonghunnaarabic=1722,t.noonghunnafinalarabic=64415,t.nooninitialarabic=65255,t.noonjeeminitialarabic=64722,t.noonjeemisolatedarabic=64587,t.noonmedialarabic=65256,t.noonmeeminitialarabic=64725,t.noonmeemisolatedarabic=64590,t.noonnoonfinalarabic=64653,t.notcontains=8716,t.notelement=8713,t.notelementof=8713,t.notequal=8800,t.notgreater=8815,t.notgreaternorequal=8817,t.notgreaternorless=8825,t.notidentical=8802,t.notless=8814,t.notlessnorequal=8816,t.notparallel=8742,t.notprecedes=8832,t.notsubset=8836,t.notsucceeds=8833,t.notsuperset=8837,t.nowarmenian=1398,t.nparen=9385,t.nssquare=13233,t.nsuperior=8319,t.ntilde=241,t.nu=957,t.nuhiragana=12396,t.nukatakana=12492,t.nukatakanahalfwidth=65415,t.nuktabengali=2492,t.nuktadeva=2364,t.nuktagujarati=2748,t.nuktagurmukhi=2620,t.numbersign=35,t.numbersignmonospace=65283,t.numbersignsmall=65119,t.numeralsigngreek=884,t.numeralsignlowergreek=885,t.numero=8470,t.nun=1504,t.nundagesh=64320,t.nundageshhebrew=64320,t.nunhebrew=1504,t.nvsquare=13237,t.nwsquare=13243,t.nyabengali=2462,t.nyadeva=2334,t.nyagujarati=2718,t.nyagurmukhi=2590,t.o=111,t.oacute=243,t.oangthai=3629,t.obarred=629,t.obarredcyrillic=1257,t.obarreddieresiscyrillic=1259,t.obengali=2451,t.obopomofo=12571,t.obreve=335,t.ocandradeva=2321,t.ocandragujarati=2705,t.ocandravowelsigndeva=2377,t.ocandravowelsigngujarati=2761,t.ocaron=466,t.ocircle=9438,t.ocircumflex=244,t.ocircumflexacute=7889,t.ocircumflexdotbelow=7897,t.ocircumflexgrave=7891,t.ocircumflexhookabove=7893,t.ocircumflextilde=7895,t.ocyrillic=1086,t.odblacute=337,t.odblgrave=525,t.odeva=2323,t.odieresis=246,t.odieresiscyrillic=1255,t.odotbelow=7885,t.oe=339,t.oekorean=12634,t.ogonek=731,t.ogonekcmb=808,t.ograve=242,t.ogujarati=2707,t.oharmenian=1413,t.ohiragana=12362,t.ohookabove=7887,t.ohorn=417,t.ohornacute=7899,t.ohorndotbelow=7907,t.ohorngrave=7901,t.ohornhookabove=7903,t.ohorntilde=7905,t.ohungarumlaut=337,t.oi=419,t.oinvertedbreve=527,t.okatakana=12458,t.okatakanahalfwidth=65397,t.okorean=12631,t.olehebrew=1451,t.omacron=333,t.omacronacute=7763,t.omacrongrave=7761,t.omdeva=2384,t.omega=969,t.omega1=982,t.omegacyrillic=1121,t.omegalatinclosed=631,t.omegaroundcyrillic=1147,t.omegatitlocyrillic=1149,t.omegatonos=974,t.omgujarati=2768,t.omicron=959,t.omicrontonos=972,t.omonospace=65359,t.one=49,t.onearabic=1633,t.onebengali=2535,t.onecircle=9312,t.onecircleinversesansserif=10122,t.onedeva=2407,t.onedotenleader=8228,t.oneeighth=8539,t.onefitted=63196,t.onegujarati=2791,t.onegurmukhi=2663,t.onehackarabic=1633,t.onehalf=189,t.onehangzhou=12321,t.oneideographicparen=12832,t.oneinferior=8321,t.onemonospace=65297,t.onenumeratorbengali=2548,t.oneoldstyle=63281,t.oneparen=9332,t.oneperiod=9352,t.onepersian=1777,t.onequarter=188,t.oneroman=8560,t.onesuperior=185,t.onethai=3665,t.onethird=8531,t.oogonek=491,t.oogonekmacron=493,t.oogurmukhi=2579,t.oomatragurmukhi=2635,t.oopen=596,t.oparen=9386,t.openbullet=9702,t.option=8997,t.ordfeminine=170,t.ordmasculine=186,t.orthogonal=8735,t.oshortdeva=2322,t.oshortvowelsigndeva=2378,t.oslash=248,t.oslashacute=511,t.osmallhiragana=12361,t.osmallkatakana=12457,t.osmallkatakanahalfwidth=65387,t.ostrokeacute=511,t.osuperior=63216,t.otcyrillic=1151,t.otilde=245,t.otildeacute=7757,t.otildedieresis=7759,t.oubopomofo=12577,t.overline=8254,t.overlinecenterline=65098,t.overlinecmb=773,t.overlinedashed=65097,t.overlinedblwavy=65100,t.overlinewavy=65099,t.overscore=175,t.ovowelsignbengali=2507,t.ovowelsigndeva=2379,t.ovowelsigngujarati=2763,t.p=112,t.paampssquare=13184,t.paasentosquare=13099,t.pabengali=2474,t.pacute=7765,t.padeva=2346,t.pagedown=8671,t.pageup=8670,t.pagujarati=2730,t.pagurmukhi=2602,t.pahiragana=12401,t.paiyannoithai=3631,t.pakatakana=12497,t.palatalizationcyrilliccmb=1156,t.palochkacyrillic=1216,t.pansioskorean=12671,t.paragraph=182,t.parallel=8741,t.parenleft=40,t.parenleftaltonearabic=64830,t.parenleftbt=63725,t.parenleftex=63724,t.parenleftinferior=8333,t.parenleftmonospace=65288,t.parenleftsmall=65113,t.parenleftsuperior=8317,t.parenlefttp=63723,t.parenleftvertical=65077,t.parenright=41,t.parenrightaltonearabic=64831,t.parenrightbt=63736,t.parenrightex=63735,t.parenrightinferior=8334,t.parenrightmonospace=65289,t.parenrightsmall=65114,t.parenrightsuperior=8318,t.parenrighttp=63734,t.parenrightvertical=65078,t.partialdiff=8706,t.paseqhebrew=1472,t.pashtahebrew=1433,t.pasquare=13225,t.patah=1463,t.patah11=1463,t.patah1d=1463,t.patah2a=1463,t.patahhebrew=1463,t.patahnarrowhebrew=1463,t.patahquarterhebrew=1463,t.patahwidehebrew=1463,t.pazerhebrew=1441,t.pbopomofo=12550,t.pcircle=9439,t.pdotaccent=7767,t.pe=1508,t.pecyrillic=1087,t.pedagesh=64324,t.pedageshhebrew=64324,t.peezisquare=13115,t.pefinaldageshhebrew=64323,t.peharabic=1662,t.peharmenian=1402,t.pehebrew=1508,t.pehfinalarabic=64343,t.pehinitialarabic=64344,t.pehiragana=12410,t.pehmedialarabic=64345,t.pekatakana=12506,t.pemiddlehookcyrillic=1191,t.perafehebrew=64334,t.percent=37,t.percentarabic=1642,t.percentmonospace=65285,t.percentsmall=65130,t.period=46,t.periodarmenian=1417,t.periodcentered=183,t.periodhalfwidth=65377,t.periodinferior=63207,t.periodmonospace=65294,t.periodsmall=65106,t.periodsuperior=63208,t.perispomenigreekcmb=834,t.perpendicular=8869,t.perthousand=8240,t.peseta=8359,t.pfsquare=13194,t.phabengali=2475,t.phadeva=2347,t.phagujarati=2731,t.phagurmukhi=2603,t.phi=966,t.phi1=981,t.phieuphacirclekorean=12922,t.phieuphaparenkorean=12826,t.phieuphcirclekorean=12908,t.phieuphkorean=12621,t.phieuphparenkorean=12812,t.philatin=632,t.phinthuthai=3642,t.phisymbolgreek=981,t.phook=421,t.phophanthai=3614,t.phophungthai=3612,t.phosamphaothai=3616,t.pi=960,t.pieupacirclekorean=12915,t.pieupaparenkorean=12819,t.pieupcieuckorean=12662,t.pieupcirclekorean=12901,t.pieupkiyeokkorean=12658,t.pieupkorean=12610,t.pieupparenkorean=12805,t.pieupsioskiyeokkorean=12660,t.pieupsioskorean=12612,t.pieupsiostikeutkorean=12661,t.pieupthieuthkorean=12663,t.pieuptikeutkorean=12659,t.pihiragana=12404,t.pikatakana=12500,t.pisymbolgreek=982,t.piwrarmenian=1411,t.planckover2pi=8463,t.planckover2pi1=8463,t.plus=43,t.plusbelowcmb=799,t.pluscircle=8853,t.plusminus=177,t.plusmod=726,t.plusmonospace=65291,t.plussmall=65122,t.plussuperior=8314,t.pmonospace=65360,t.pmsquare=13272,t.pohiragana=12413,t.pointingindexdownwhite=9759,t.pointingindexleftwhite=9756,t.pointingindexrightwhite=9758,t.pointingindexupwhite=9757,t.pokatakana=12509,t.poplathai=3611,t.postalmark=12306,t.postalmarkface=12320,t.pparen=9387,t.precedes=8826,t.prescription=8478,t.primemod=697,t.primereversed=8245,t.product=8719,t.projective=8965,t.prolongedkana=12540,t.propellor=8984,t.propersubset=8834,t.propersuperset=8835,t.proportion=8759,t.proportional=8733,t.psi=968,t.psicyrillic=1137,t.psilipneumatacyrilliccmb=1158,t.pssquare=13232,t.puhiragana=12407,t.pukatakana=12503,t.pvsquare=13236,t.pwsquare=13242,t.q=113,t.qadeva=2392,t.qadmahebrew=1448,t.qafarabic=1602,t.qaffinalarabic=65238,t.qafinitialarabic=65239,t.qafmedialarabic=65240,t.qamats=1464,t.qamats10=1464,t.qamats1a=1464,t.qamats1c=1464,t.qamats27=1464,t.qamats29=1464,t.qamats33=1464,t.qamatsde=1464,t.qamatshebrew=1464,t.qamatsnarrowhebrew=1464,t.qamatsqatanhebrew=1464,t.qamatsqatannarrowhebrew=1464,t.qamatsqatanquarterhebrew=1464,t.qamatsqatanwidehebrew=1464,t.qamatsquarterhebrew=1464,t.qamatswidehebrew=1464,t.qarneyparahebrew=1439,t.qbopomofo=12561,t.qcircle=9440,t.qhook=672,t.qmonospace=65361,t.qof=1511,t.qofdagesh=64327,t.qofdageshhebrew=64327,t.qofhebrew=1511,t.qparen=9388,t.quarternote=9833,t.qubuts=1467,t.qubuts18=1467,t.qubuts25=1467,t.qubuts31=1467,t.qubutshebrew=1467,t.qubutsnarrowhebrew=1467,t.qubutsquarterhebrew=1467,t.qubutswidehebrew=1467,t.question=63,t.questionarabic=1567,t.questionarmenian=1374,t.questiondown=191,t.questiondownsmall=63423,t.questiongreek=894,t.questionmonospace=65311,t.questionsmall=63295,t.quotedbl=34,t.quotedblbase=8222,t.quotedblleft=8220,t.quotedblmonospace=65282,t.quotedblprime=12318,t.quotedblprimereversed=12317,t.quotedblright=8221,t.quoteleft=8216,t.quoteleftreversed=8219,t.quotereversed=8219,t.quoteright=8217,t.quoterightn=329,t.quotesinglbase=8218,t.quotesingle=39,t.quotesinglemonospace=65287,t.r=114,t.raarmenian=1404,t.rabengali=2480,t.racute=341,t.radeva=2352,t.radical=8730,t.radicalex=63717,t.radoverssquare=13230,t.radoverssquaredsquare=13231,t.radsquare=13229,t.rafe=1471,t.rafehebrew=1471,t.ragujarati=2736,t.ragurmukhi=2608,t.rahiragana=12425,t.rakatakana=12521,t.rakatakanahalfwidth=65431,t.ralowerdiagonalbengali=2545,t.ramiddlediagonalbengali=2544,t.ramshorn=612,t.ratio=8758,t.rbopomofo=12566,t.rcaron=345,t.rcedilla=343,t.rcircle=9441,t.rcommaaccent=343,t.rdblgrave=529,t.rdotaccent=7769,t.rdotbelow=7771,t.rdotbelowmacron=7773,t.referencemark=8251,t.reflexsubset=8838,t.reflexsuperset=8839,t.registered=174,t.registersans=63720,t.registerserif=63194,t.reharabic=1585,t.reharmenian=1408,t.rehfinalarabic=65198,t.rehiragana=12428,t.rekatakana=12524,t.rekatakanahalfwidth=65434,t.resh=1512,t.reshdageshhebrew=64328,t.reshhebrew=1512,t.reversedtilde=8765,t.reviahebrew=1431,t.reviamugrashhebrew=1431,t.revlogicalnot=8976,t.rfishhook=638,t.rfishhookreversed=639,t.rhabengali=2525,t.rhadeva=2397,t.rho=961,t.rhook=637,t.rhookturned=635,t.rhookturnedsuperior=693,t.rhosymbolgreek=1009,t.rhotichookmod=734,t.rieulacirclekorean=12913,t.rieulaparenkorean=12817,t.rieulcirclekorean=12899,t.rieulhieuhkorean=12608,t.rieulkiyeokkorean=12602,t.rieulkiyeoksioskorean=12649,t.rieulkorean=12601,t.rieulmieumkorean=12603,t.rieulpansioskorean=12652,t.rieulparenkorean=12803,t.rieulphieuphkorean=12607,t.rieulpieupkorean=12604,t.rieulpieupsioskorean=12651,t.rieulsioskorean=12605,t.rieulthieuthkorean=12606,t.rieultikeutkorean=12650,t.rieulyeorinhieuhkorean=12653,t.rightangle=8735,t.righttackbelowcmb=793,t.righttriangle=8895,t.rihiragana=12426,t.rikatakana=12522,t.rikatakanahalfwidth=65432,t.ring=730,t.ringbelowcmb=805,t.ringcmb=778,t.ringhalfleft=703,t.ringhalfleftarmenian=1369,t.ringhalfleftbelowcmb=796,t.ringhalfleftcentered=723,t.ringhalfright=702,t.ringhalfrightbelowcmb=825,t.ringhalfrightcentered=722,t.rinvertedbreve=531,t.rittorusquare=13137,t.rlinebelow=7775,t.rlongleg=636,t.rlonglegturned=634,t.rmonospace=65362,t.rohiragana=12429,t.rokatakana=12525,t.rokatakanahalfwidth=65435,t.roruathai=3619,t.rparen=9389,t.rrabengali=2524,t.rradeva=2353,t.rragurmukhi=2652,t.rreharabic=1681,t.rrehfinalarabic=64397,t.rrvocalicbengali=2528,t.rrvocalicdeva=2400,t.rrvocalicgujarati=2784,t.rrvocalicvowelsignbengali=2500,t.rrvocalicvowelsigndeva=2372,t.rrvocalicvowelsigngujarati=2756,t.rsuperior=63217,t.rtblock=9616,t.rturned=633,t.rturnedsuperior=692,t.ruhiragana=12427,t.rukatakana=12523,t.rukatakanahalfwidth=65433,t.rupeemarkbengali=2546,t.rupeesignbengali=2547,t.rupiah=63197,t.ruthai=3620,t.rvocalicbengali=2443,t.rvocalicdeva=2315,t.rvocalicgujarati=2699,t.rvocalicvowelsignbengali=2499,t.rvocalicvowelsigndeva=2371,t.rvocalicvowelsigngujarati=2755,t.s=115,t.sabengali=2488,t.sacute=347,t.sacutedotaccent=7781,t.sadarabic=1589,t.sadeva=2360,t.sadfinalarabic=65210,t.sadinitialarabic=65211,t.sadmedialarabic=65212,t.sagujarati=2744,t.sagurmukhi=2616,t.sahiragana=12373,t.sakatakana=12469,t.sakatakanahalfwidth=65403,t.sallallahoualayhewasallamarabic=65018,t.samekh=1505,t.samekhdagesh=64321,t.samekhdageshhebrew=64321,t.samekhhebrew=1505,t.saraaathai=3634,t.saraaethai=3649,t.saraaimaimalaithai=3652,t.saraaimaimuanthai=3651,t.saraamthai=3635,t.saraathai=3632,t.saraethai=3648,t.saraiileftthai=63622,t.saraiithai=3637,t.saraileftthai=63621,t.saraithai=3636,t.saraothai=3650,t.saraueeleftthai=63624,t.saraueethai=3639,t.saraueleftthai=63623,t.sarauethai=3638,t.sarauthai=3640,t.sarauuthai=3641,t.sbopomofo=12569,t.scaron=353,t.scarondotaccent=7783,t.scedilla=351,t.schwa=601,t.schwacyrillic=1241,t.schwadieresiscyrillic=1243,t.schwahook=602,t.scircle=9442,t.scircumflex=349,t.scommaaccent=537,t.sdotaccent=7777,t.sdotbelow=7779,t.sdotbelowdotaccent=7785,t.seagullbelowcmb=828,t.second=8243,t.secondtonechinese=714,t.section=167,t.seenarabic=1587,t.seenfinalarabic=65202,t.seeninitialarabic=65203,t.seenmedialarabic=65204,t.segol=1462,t.segol13=1462,t.segol1f=1462,t.segol2c=1462,t.segolhebrew=1462,t.segolnarrowhebrew=1462,t.segolquarterhebrew=1462,t.segoltahebrew=1426,t.segolwidehebrew=1462,t.seharmenian=1405,t.sehiragana=12379,t.sekatakana=12475,t.sekatakanahalfwidth=65406,t.semicolon=59,t.semicolonarabic=1563,t.semicolonmonospace=65307,t.semicolonsmall=65108,t.semivoicedmarkkana=12444,t.semivoicedmarkkanahalfwidth=65439,t.sentisquare=13090,t.sentosquare=13091,t.seven=55,t.sevenarabic=1639,t.sevenbengali=2541,t.sevencircle=9318,t.sevencircleinversesansserif=10128,t.sevendeva=2413,t.seveneighths=8542,t.sevengujarati=2797,t.sevengurmukhi=2669,t.sevenhackarabic=1639,t.sevenhangzhou=12327,t.sevenideographicparen=12838,t.seveninferior=8327,t.sevenmonospace=65303,t.sevenoldstyle=63287,t.sevenparen=9338,t.sevenperiod=9358,t.sevenpersian=1783,t.sevenroman=8566,t.sevensuperior=8311,t.seventeencircle=9328,t.seventeenparen=9348,t.seventeenperiod=9368,t.seventhai=3671,t.sfthyphen=173,t.shaarmenian=1399,t.shabengali=2486,t.shacyrillic=1096,t.shaddaarabic=1617,t.shaddadammaarabic=64609,t.shaddadammatanarabic=64606,t.shaddafathaarabic=64608,t.shaddakasraarabic=64610,t.shaddakasratanarabic=64607,t.shade=9618,t.shadedark=9619,t.shadelight=9617,t.shademedium=9618,t.shadeva=2358,t.shagujarati=2742,t.shagurmukhi=2614,t.shalshelethebrew=1427,t.shbopomofo=12565,t.shchacyrillic=1097,t.sheenarabic=1588,t.sheenfinalarabic=65206,t.sheeninitialarabic=65207,t.sheenmedialarabic=65208,t.sheicoptic=995,t.sheqel=8362,t.sheqelhebrew=8362,t.sheva=1456,t.sheva115=1456,t.sheva15=1456,t.sheva22=1456,t.sheva2e=1456,t.shevahebrew=1456,t.shevanarrowhebrew=1456,t.shevaquarterhebrew=1456,t.shevawidehebrew=1456,t.shhacyrillic=1211,t.shimacoptic=1005,t.shin=1513,t.shindagesh=64329,t.shindageshhebrew=64329,t.shindageshshindot=64300,t.shindageshshindothebrew=64300,t.shindageshsindot=64301,t.shindageshsindothebrew=64301,t.shindothebrew=1473,t.shinhebrew=1513,t.shinshindot=64298,t.shinshindothebrew=64298,t.shinsindot=64299,t.shinsindothebrew=64299,t.shook=642,t.sigma=963,t.sigma1=962,t.sigmafinal=962,t.sigmalunatesymbolgreek=1010,t.sihiragana=12375,t.sikatakana=12471,t.sikatakanahalfwidth=65404,t.siluqhebrew=1469,t.siluqlefthebrew=1469,t.similar=8764,t.sindothebrew=1474,t.siosacirclekorean=12916,t.siosaparenkorean=12820,t.sioscieuckorean=12670,t.sioscirclekorean=12902,t.sioskiyeokkorean=12666,t.sioskorean=12613,t.siosnieunkorean=12667,t.siosparenkorean=12806,t.siospieupkorean=12669,t.siostikeutkorean=12668,t.six=54,t.sixarabic=1638,t.sixbengali=2540,t.sixcircle=9317,t.sixcircleinversesansserif=10127,t.sixdeva=2412,t.sixgujarati=2796,t.sixgurmukhi=2668,t.sixhackarabic=1638,t.sixhangzhou=12326,t.sixideographicparen=12837,t.sixinferior=8326,t.sixmonospace=65302,t.sixoldstyle=63286,t.sixparen=9337,t.sixperiod=9357,t.sixpersian=1782,t.sixroman=8565,t.sixsuperior=8310,t.sixteencircle=9327,t.sixteencurrencydenominatorbengali=2553,t.sixteenparen=9347,t.sixteenperiod=9367,t.sixthai=3670,t.slash=47,t.slashmonospace=65295,t.slong=383,t.slongdotaccent=7835,t.smileface=9786,t.smonospace=65363,t.sofpasuqhebrew=1475,t.softhyphen=173,t.softsigncyrillic=1100,t.sohiragana=12381,t.sokatakana=12477,t.sokatakanahalfwidth=65407,t.soliduslongoverlaycmb=824,t.solidusshortoverlaycmb=823,t.sorusithai=3625,t.sosalathai=3624,t.sosothai=3595,t.sosuathai=3626,t.space=32,t.spacehackarabic=32,t.spade=9824,t.spadesuitblack=9824,t.spadesuitwhite=9828,t.sparen=9390,t.squarebelowcmb=827,t.squarecc=13252,t.squarecm=13213,t.squarediagonalcrosshatchfill=9641,t.squarehorizontalfill=9636,t.squarekg=13199,t.squarekm=13214,t.squarekmcapital=13262,t.squareln=13265,t.squarelog=13266,t.squaremg=13198,t.squaremil=13269,t.squaremm=13212,t.squaremsquared=13217,t.squareorthogonalcrosshatchfill=9638,t.squareupperlefttolowerrightfill=9639,t.squareupperrighttolowerleftfill=9640,t.squareverticalfill=9637,t.squarewhitewithsmallblack=9635,t.srsquare=13275,t.ssabengali=2487,t.ssadeva=2359,t.ssagujarati=2743,t.ssangcieuckorean=12617,t.ssanghieuhkorean=12677,t.ssangieungkorean=12672,t.ssangkiyeokkorean=12594,t.ssangnieunkorean=12645,t.ssangpieupkorean=12611,t.ssangsioskorean=12614,t.ssangtikeutkorean=12600,t.ssuperior=63218,t.sterling=163,t.sterlingmonospace=65505,t.strokelongoverlaycmb=822,t.strokeshortoverlaycmb=821,t.subset=8834,t.subsetnotequal=8842,t.subsetorequal=8838,t.succeeds=8827,t.suchthat=8715,t.suhiragana=12377,t.sukatakana=12473,t.sukatakanahalfwidth=65405,t.sukunarabic=1618,t.summation=8721,t.sun=9788,t.superset=8835,t.supersetnotequal=8843,t.supersetorequal=8839,t.svsquare=13276,t.syouwaerasquare=13180,t.t=116,t.tabengali=2468,t.tackdown=8868,t.tackleft=8867,t.tadeva=2340,t.tagujarati=2724,t.tagurmukhi=2596,t.taharabic=1591,t.tahfinalarabic=65218,t.tahinitialarabic=65219,t.tahiragana=12383,t.tahmedialarabic=65220,t.taisyouerasquare=13181,t.takatakana=12479,t.takatakanahalfwidth=65408,t.tatweelarabic=1600,t.tau=964,t.tav=1514,t.tavdages=64330,t.tavdagesh=64330,t.tavdageshhebrew=64330,t.tavhebrew=1514,t.tbar=359,t.tbopomofo=12554,t.tcaron=357,t.tccurl=680,t.tcedilla=355,t.tcheharabic=1670,t.tchehfinalarabic=64379,t.tchehinitialarabic=64380,t.tchehmedialarabic=64381,t.tcircle=9443,t.tcircumflexbelow=7793,t.tcommaaccent=355,t.tdieresis=7831,t.tdotaccent=7787,t.tdotbelow=7789,t.tecyrillic=1090,t.tedescendercyrillic=1197,t.teharabic=1578,t.tehfinalarabic=65174,t.tehhahinitialarabic=64674,t.tehhahisolatedarabic=64524,t.tehinitialarabic=65175,t.tehiragana=12390,t.tehjeeminitialarabic=64673,t.tehjeemisolatedarabic=64523,t.tehmarbutaarabic=1577,t.tehmarbutafinalarabic=65172,t.tehmedialarabic=65176,t.tehmeeminitialarabic=64676,t.tehmeemisolatedarabic=64526,t.tehnoonfinalarabic=64627,t.tekatakana=12486,t.tekatakanahalfwidth=65411,t.telephone=8481,t.telephoneblack=9742,t.telishagedolahebrew=1440,t.telishaqetanahebrew=1449,t.tencircle=9321,t.tenideographicparen=12841,t.tenparen=9341,t.tenperiod=9361,t.tenroman=8569,t.tesh=679,t.tet=1496,t.tetdagesh=64312,t.tetdageshhebrew=64312,t.tethebrew=1496,t.tetsecyrillic=1205,t.tevirhebrew=1435,t.tevirlefthebrew=1435,t.thabengali=2469,t.thadeva=2341,t.thagujarati=2725,t.thagurmukhi=2597,t.thalarabic=1584,t.thalfinalarabic=65196,t.thanthakhatlowleftthai=63640,t.thanthakhatlowrightthai=63639,t.thanthakhatthai=3660,t.thanthakhatupperleftthai=63638,t.theharabic=1579,t.thehfinalarabic=65178,t.thehinitialarabic=65179,t.thehmedialarabic=65180,t.thereexists=8707,t.therefore=8756,t.theta=952,t.theta1=977,t.thetasymbolgreek=977,t.thieuthacirclekorean=12921,t.thieuthaparenkorean=12825,t.thieuthcirclekorean=12907,t.thieuthkorean=12620,t.thieuthparenkorean=12811,t.thirteencircle=9324,t.thirteenparen=9344,t.thirteenperiod=9364,t.thonangmonthothai=3601,t.thook=429,t.thophuthaothai=3602,t.thorn=254,t.thothahanthai=3607,t.thothanthai=3600,t.thothongthai=3608,t.thothungthai=3606,t.thousandcyrillic=1154,t.thousandsseparatorarabic=1644,t.thousandsseparatorpersian=1644,t.three=51,t.threearabic=1635,t.threebengali=2537,t.threecircle=9314,t.threecircleinversesansserif=10124,t.threedeva=2409,t.threeeighths=8540,t.threegujarati=2793,t.threegurmukhi=2665,t.threehackarabic=1635,t.threehangzhou=12323,t.threeideographicparen=12834,t.threeinferior=8323,t.threemonospace=65299,t.threenumeratorbengali=2550,t.threeoldstyle=63283,t.threeparen=9334,t.threeperiod=9354,t.threepersian=1779,t.threequarters=190,t.threequartersemdash=63198,t.threeroman=8562,t.threesuperior=179,t.threethai=3667,t.thzsquare=13204,t.tihiragana=12385,t.tikatakana=12481,t.tikatakanahalfwidth=65409,t.tikeutacirclekorean=12912,t.tikeutaparenkorean=12816,t.tikeutcirclekorean=12898,t.tikeutkorean=12599,t.tikeutparenkorean=12802,t.tilde=732,t.tildebelowcmb=816,t.tildecmb=771,t.tildecomb=771,t.tildedoublecmb=864,t.tildeoperator=8764,t.tildeoverlaycmb=820,t.tildeverticalcmb=830,t.timescircle=8855,t.tipehahebrew=1430,t.tipehalefthebrew=1430,t.tippigurmukhi=2672,t.titlocyrilliccmb=1155,t.tiwnarmenian=1407,t.tlinebelow=7791,t.tmonospace=65364,t.toarmenian=1385,t.tohiragana=12392,t.tokatakana=12488,t.tokatakanahalfwidth=65412,t.tonebarextrahighmod=741,t.tonebarextralowmod=745,t.tonebarhighmod=742,t.tonebarlowmod=744,t.tonebarmidmod=743,t.tonefive=445,t.tonesix=389,t.tonetwo=424,t.tonos=900,t.tonsquare=13095,t.topatakthai=3599,t.tortoiseshellbracketleft=12308,t.tortoiseshellbracketleftsmall=65117,t.tortoiseshellbracketleftvertical=65081,t.tortoiseshellbracketright=12309,t.tortoiseshellbracketrightsmall=65118,t.tortoiseshellbracketrightvertical=65082,t.totaothai=3605,t.tpalatalhook=427,t.tparen=9391,t.trademark=8482,t.trademarksans=63722,t.trademarkserif=63195,t.tretroflexhook=648,t.triagdn=9660,t.triaglf=9668,t.triagrt=9658,t.triagup=9650,t.ts=678,t.tsadi=1510,t.tsadidagesh=64326,t.tsadidageshhebrew=64326,t.tsadihebrew=1510,t.tsecyrillic=1094,t.tsere=1461,t.tsere12=1461,t.tsere1e=1461,t.tsere2b=1461,t.tserehebrew=1461,t.tserenarrowhebrew=1461,t.tserequarterhebrew=1461,t.tserewidehebrew=1461,t.tshecyrillic=1115,t.tsuperior=63219,t.ttabengali=2463,t.ttadeva=2335,t.ttagujarati=2719,t.ttagurmukhi=2591,t.tteharabic=1657,t.ttehfinalarabic=64359,t.ttehinitialarabic=64360,t.ttehmedialarabic=64361,t.tthabengali=2464,t.tthadeva=2336,t.tthagujarati=2720,t.tthagurmukhi=2592,t.tturned=647,t.tuhiragana=12388,t.tukatakana=12484,t.tukatakanahalfwidth=65410,t.tusmallhiragana=12387,t.tusmallkatakana=12483,t.tusmallkatakanahalfwidth=65391,t.twelvecircle=9323,t.twelveparen=9343,t.twelveperiod=9363,t.twelveroman=8571,t.twentycircle=9331,t.twentyhangzhou=21316,t.twentyparen=9351,t.twentyperiod=9371,t.two=50,t.twoarabic=1634,t.twobengali=2536,t.twocircle=9313,t.twocircleinversesansserif=10123,t.twodeva=2408,t.twodotenleader=8229,t.twodotleader=8229,t.twodotleadervertical=65072,t.twogujarati=2792,t.twogurmukhi=2664,t.twohackarabic=1634,t.twohangzhou=12322,t.twoideographicparen=12833,t.twoinferior=8322,t.twomonospace=65298,t.twonumeratorbengali=2549,t.twooldstyle=63282,t.twoparen=9333,t.twoperiod=9353,t.twopersian=1778,t.tworoman=8561,t.twostroke=443,t.twosuperior=178,t.twothai=3666,t.twothirds=8532,t.u=117,t.uacute=250,t.ubar=649,t.ubengali=2441,t.ubopomofo=12584,t.ubreve=365,t.ucaron=468,t.ucircle=9444,t.ucircumflex=251,t.ucircumflexbelow=7799,t.ucyrillic=1091,t.udattadeva=2385,t.udblacute=369,t.udblgrave=533,t.udeva=2313,t.udieresis=252,t.udieresisacute=472,t.udieresisbelow=7795,t.udieresiscaron=474,t.udieresiscyrillic=1265,t.udieresisgrave=476,t.udieresismacron=470,t.udotbelow=7909,t.ugrave=249,t.ugujarati=2697,t.ugurmukhi=2569,t.uhiragana=12358,t.uhookabove=7911,t.uhorn=432,t.uhornacute=7913,t.uhorndotbelow=7921,t.uhorngrave=7915,t.uhornhookabove=7917,t.uhorntilde=7919,t.uhungarumlaut=369,t.uhungarumlautcyrillic=1267,t.uinvertedbreve=535,t.ukatakana=12454,t.ukatakanahalfwidth=65395,t.ukcyrillic=1145,t.ukorean=12636,t.umacron=363,t.umacroncyrillic=1263,t.umacrondieresis=7803,t.umatragurmukhi=2625,t.umonospace=65365,t.underscore=95,t.underscoredbl=8215,t.underscoremonospace=65343,t.underscorevertical=65075,t.underscorewavy=65103,t.union=8746,t.universal=8704,t.uogonek=371,t.uparen=9392,t.upblock=9600,t.upperdothebrew=1476,t.upsilon=965,t.upsilondieresis=971,t.upsilondieresistonos=944,t.upsilonlatin=650,t.upsilontonos=973,t.uptackbelowcmb=797,t.uptackmod=724,t.uragurmukhi=2675,t.uring=367,t.ushortcyrillic=1118,t.usmallhiragana=12357,t.usmallkatakana=12453,t.usmallkatakanahalfwidth=65385,t.ustraightcyrillic=1199,t.ustraightstrokecyrillic=1201,t.utilde=361,t.utildeacute=7801,t.utildebelow=7797,t.uubengali=2442,t.uudeva=2314,t.uugujarati=2698,t.uugurmukhi=2570,t.uumatragurmukhi=2626,t.uuvowelsignbengali=2498,t.uuvowelsigndeva=2370,t.uuvowelsigngujarati=2754,t.uvowelsignbengali=2497,t.uvowelsigndeva=2369,t.uvowelsigngujarati=2753,t.v=118,t.vadeva=2357,t.vagujarati=2741,t.vagurmukhi=2613,t.vakatakana=12535,t.vav=1493,t.vavdagesh=64309,t.vavdagesh65=64309,t.vavdageshhebrew=64309,t.vavhebrew=1493,t.vavholam=64331,t.vavholamhebrew=64331,t.vavvavhebrew=1520,t.vavyodhebrew=1521,t.vcircle=9445,t.vdotbelow=7807,t.vecyrillic=1074,t.veharabic=1700,t.vehfinalarabic=64363,t.vehinitialarabic=64364,t.vehmedialarabic=64365,t.vekatakana=12537,t.venus=9792,t.verticalbar=124,t.verticallineabovecmb=781,t.verticallinebelowcmb=809,t.verticallinelowmod=716,t.verticallinemod=712,t.vewarmenian=1406,t.vhook=651,t.vikatakana=12536,t.viramabengali=2509,t.viramadeva=2381,t.viramagujarati=2765,t.visargabengali=2435,t.visargadeva=2307,t.visargagujarati=2691,t.vmonospace=65366,t.voarmenian=1400,t.voicediterationhiragana=12446,t.voicediterationkatakana=12542,t.voicedmarkkana=12443,t.voicedmarkkanahalfwidth=65438,t.vokatakana=12538,t.vparen=9393,t.vtilde=7805,t.vturned=652,t.vuhiragana=12436,t.vukatakana=12532,t.w=119,t.wacute=7811,t.waekorean=12633,t.wahiragana=12431,t.wakatakana=12527,t.wakatakanahalfwidth=65436,t.wakorean=12632,t.wasmallhiragana=12430,t.wasmallkatakana=12526,t.wattosquare=13143,t.wavedash=12316,t.wavyunderscorevertical=65076,t.wawarabic=1608,t.wawfinalarabic=65262,t.wawhamzaabovearabic=1572,t.wawhamzaabovefinalarabic=65158,t.wbsquare=13277,t.wcircle=9446,t.wcircumflex=373,t.wdieresis=7813,t.wdotaccent=7815,t.wdotbelow=7817,t.wehiragana=12433,t.weierstrass=8472,t.wekatakana=12529,t.wekorean=12638,t.weokorean=12637,t.wgrave=7809,t.whitebullet=9702,t.whitecircle=9675,t.whitecircleinverse=9689,t.whitecornerbracketleft=12302,t.whitecornerbracketleftvertical=65091,t.whitecornerbracketright=12303,t.whitecornerbracketrightvertical=65092,t.whitediamond=9671,t.whitediamondcontainingblacksmalldiamond=9672,t.whitedownpointingsmalltriangle=9663,t.whitedownpointingtriangle=9661,t.whiteleftpointingsmalltriangle=9667,t.whiteleftpointingtriangle=9665,t.whitelenticularbracketleft=12310,t.whitelenticularbracketright=12311,t.whiterightpointingsmalltriangle=9657,t.whiterightpointingtriangle=9655,t.whitesmallsquare=9643,t.whitesmilingface=9786,t.whitesquare=9633,t.whitestar=9734,t.whitetelephone=9743,t.whitetortoiseshellbracketleft=12312,t.whitetortoiseshellbracketright=12313,t.whiteuppointingsmalltriangle=9653,t.whiteuppointingtriangle=9651,t.wihiragana=12432,t.wikatakana=12528,t.wikorean=12639,t.wmonospace=65367,t.wohiragana=12434,t.wokatakana=12530,t.wokatakanahalfwidth=65382,t.won=8361,t.wonmonospace=65510,t.wowaenthai=3623,t.wparen=9394,t.wring=7832,t.wsuperior=695,t.wturned=653,t.wynn=447,t.x=120,t.xabovecmb=829,t.xbopomofo=12562,t.xcircle=9447,t.xdieresis=7821,t.xdotaccent=7819,t.xeharmenian=1389,t.xi=958,t.xmonospace=65368,t.xparen=9395,t.xsuperior=739,t.y=121,t.yaadosquare=13134,t.yabengali=2479,t.yacute=253,t.yadeva=2351,t.yaekorean=12626,t.yagujarati=2735,t.yagurmukhi=2607,t.yahiragana=12420,t.yakatakana=12516,t.yakatakanahalfwidth=65428,t.yakorean=12625,t.yamakkanthai=3662,t.yasmallhiragana=12419,t.yasmallkatakana=12515,t.yasmallkatakanahalfwidth=65388,t.yatcyrillic=1123,t.ycircle=9448,t.ycircumflex=375,t.ydieresis=255,t.ydotaccent=7823,t.ydotbelow=7925,t.yeharabic=1610,t.yehbarreearabic=1746,t.yehbarreefinalarabic=64431,t.yehfinalarabic=65266,t.yehhamzaabovearabic=1574,t.yehhamzaabovefinalarabic=65162,t.yehhamzaaboveinitialarabic=65163,t.yehhamzaabovemedialarabic=65164,t.yehinitialarabic=65267,t.yehmedialarabic=65268,t.yehmeeminitialarabic=64733,t.yehmeemisolatedarabic=64600,t.yehnoonfinalarabic=64660,t.yehthreedotsbelowarabic=1745,t.yekorean=12630,t.yen=165,t.yenmonospace=65509,t.yeokorean=12629,t.yeorinhieuhkorean=12678,t.yerahbenyomohebrew=1450,t.yerahbenyomolefthebrew=1450,t.yericyrillic=1099,t.yerudieresiscyrillic=1273,t.yesieungkorean=12673,t.yesieungpansioskorean=12675,t.yesieungsioskorean=12674,t.yetivhebrew=1434,t.ygrave=7923,t.yhook=436,t.yhookabove=7927,t.yiarmenian=1397,t.yicyrillic=1111,t.yikorean=12642,t.yinyang=9775,t.yiwnarmenian=1410,t.ymonospace=65369,t.yod=1497,t.yoddagesh=64313,t.yoddageshhebrew=64313,t.yodhebrew=1497,t.yodyodhebrew=1522,t.yodyodpatahhebrew=64287,t.yohiragana=12424,t.yoikorean=12681,t.yokatakana=12520,t.yokatakanahalfwidth=65430,t.yokorean=12635,t.yosmallhiragana=12423,t.yosmallkatakana=12519,t.yosmallkatakanahalfwidth=65390,t.yotgreek=1011,t.yoyaekorean=12680,t.yoyakorean=12679,t.yoyakthai=3618,t.yoyingthai=3597,t.yparen=9396,t.ypogegrammeni=890,t.ypogegrammenigreekcmb=837,t.yr=422,t.yring=7833,t.ysuperior=696,t.ytilde=7929,t.yturned=654,t.yuhiragana=12422,t.yuikorean=12684,t.yukatakana=12518,t.yukatakanahalfwidth=65429,t.yukorean=12640,t.yusbigcyrillic=1131,t.yusbigiotifiedcyrillic=1133,t.yuslittlecyrillic=1127,t.yuslittleiotifiedcyrillic=1129,t.yusmallhiragana=12421,t.yusmallkatakana=12517,t.yusmallkatakanahalfwidth=65389,t.yuyekorean=12683,t.yuyeokorean=12682,t.yyabengali=2527,t.yyadeva=2399,t.z=122,t.zaarmenian=1382,t.zacute=378,t.zadeva=2395,t.zagurmukhi=2651,t.zaharabic=1592,t.zahfinalarabic=65222,t.zahinitialarabic=65223,t.zahiragana=12374,t.zahmedialarabic=65224,t.zainarabic=1586,t.zainfinalarabic=65200,t.zakatakana=12470,t.zaqefgadolhebrew=1429,t.zaqefqatanhebrew=1428,t.zarqahebrew=1432,t.zayin=1494,t.zayindagesh=64310,t.zayindageshhebrew=64310,t.zayinhebrew=1494,t.zbopomofo=12567,t.zcaron=382,t.zcircle=9449,t.zcircumflex=7825,t.zcurl=657,t.zdot=380,t.zdotaccent=380,t.zdotbelow=7827,t.zecyrillic=1079,t.zedescendercyrillic=1177,t.zedieresiscyrillic=1247,t.zehiragana=12380,t.zekatakana=12476,t.zero=48,t.zeroarabic=1632,t.zerobengali=2534,t.zerodeva=2406,t.zerogujarati=2790,t.zerogurmukhi=2662,t.zerohackarabic=1632,t.zeroinferior=8320,t.zeromonospace=65296,t.zerooldstyle=63280,t.zeropersian=1776,t.zerosuperior=8304,t.zerothai=3664,t.zerowidthjoiner=65279,t.zerowidthnonjoiner=8204,t.zerowidthspace=8203,t.zeta=950,t.zhbopomofo=12563,t.zhearmenian=1386,t.zhebrevecyrillic=1218,t.zhecyrillic=1078,t.zhedescendercyrillic=1175,t.zhedieresiscyrillic=1245,t.zihiragana=12376,t.zikatakana=12472,t.zinorhebrew=1454,t.zlinebelow=7829,t.zmonospace=65370,t.zohiragana=12382,t.zokatakana=12478,t.zparen=9397,t.zretroflexhook=656,t.zstroke=438,t.zuhiragana=12378,t.zukatakana=12474,t[".notdef"]=0,t.angbracketleftbig=9001,t.angbracketleftBig=9001,t.angbracketleftbigg=9001,t.angbracketleftBigg=9001,t.angbracketrightBig=9002,t.angbracketrightbig=9002,t.angbracketrightBigg=9002,t.angbracketrightbigg=9002,t.arrowhookleft=8618,t.arrowhookright=8617,t.arrowlefttophalf=8636,t.arrowleftbothalf=8637,t.arrownortheast=8599,t.arrownorthwest=8598,t.arrowrighttophalf=8640,t.arrowrightbothalf=8641,t.arrowsoutheast=8600,t.arrowsouthwest=8601,t.backslashbig=8726,t.backslashBig=8726,t.backslashBigg=8726,t.backslashbigg=8726,t.bardbl=8214,t.bracehtipdownleft=65079,t.bracehtipdownright=65079,t.bracehtipupleft=65080,t.bracehtipupright=65080,t.braceleftBig=123,t.braceleftbig=123,t.braceleftbigg=123,t.braceleftBigg=123,t.bracerightBig=125,t.bracerightbig=125,t.bracerightbigg=125,t.bracerightBigg=125,t.bracketleftbig=91,t.bracketleftBig=91,t.bracketleftbigg=91,t.bracketleftBigg=91,t.bracketrightBig=93,t.bracketrightbig=93,t.bracketrightbigg=93,t.bracketrightBigg=93,t.ceilingleftbig=8968,t.ceilingleftBig=8968,t.ceilingleftBigg=8968,t.ceilingleftbigg=8968,t.ceilingrightbig=8969,t.ceilingrightBig=8969,t.ceilingrightbigg=8969,t.ceilingrightBigg=8969,t.circledotdisplay=8857,t.circledottext=8857,t.circlemultiplydisplay=8855,t.circlemultiplytext=8855,t.circleplusdisplay=8853,t.circleplustext=8853,t.contintegraldisplay=8750,t.contintegraltext=8750,t.coproductdisplay=8720,t.coproducttext=8720,t.floorleftBig=8970,t.floorleftbig=8970,t.floorleftbigg=8970,t.floorleftBigg=8970,t.floorrightbig=8971,t.floorrightBig=8971,t.floorrightBigg=8971,t.floorrightbigg=8971,t.hatwide=770,t.hatwider=770,t.hatwidest=770,t.intercal=7488,t.integraldisplay=8747,t.integraltext=8747,t.intersectiondisplay=8898,t.intersectiontext=8898,t.logicalanddisplay=8743,t.logicalandtext=8743,t.logicalordisplay=8744,t.logicalortext=8744,t.parenleftBig=40,t.parenleftbig=40,t.parenleftBigg=40,t.parenleftbigg=40,t.parenrightBig=41,t.parenrightbig=41,t.parenrightBigg=41,t.parenrightbigg=41,t.prime=8242,t.productdisplay=8719,t.producttext=8719,t.radicalbig=8730,t.radicalBig=8730,t.radicalBigg=8730,t.radicalbigg=8730,t.radicalbt=8730,t.radicaltp=8730,t.radicalvertex=8730,t.slashbig=47,t.slashBig=47,t.slashBigg=47,t.slashbigg=47,t.summationdisplay=8721,t.summationtext=8721,t.tildewide=732,t.tildewider=732,t.tildewidest=732,t.uniondisplay=8899,t.unionmultidisplay=8846,t.unionmultitext=8846,t.unionsqdisplay=8852,t.unionsqtext=8852,t.uniontext=8899,t.vextenddouble=8741,t.vextendsingle=8739});M.getGlyphsUnicode=_;const L=(0,n.getLookupTableFactory)(function(t){t.space=32,t.a1=9985,t.a2=9986,t.a202=9987,t.a3=9988,t.a4=9742,t.a5=9990,t.a119=9991,t.a118=9992,t.a117=9993,t.a11=9755,t.a12=9758,t.a13=9996,t.a14=9997,t.a15=9998,t.a16=9999,t.a105=1e4,t.a17=10001,t.a18=10002,t.a19=10003,t.a20=10004,t.a21=10005,t.a22=10006,t.a23=10007,t.a24=10008,t.a25=10009,t.a26=10010,t.a27=10011,t.a28=10012,t.a6=10013,t.a7=10014,t.a8=10015,t.a9=10016,t.a10=10017,t.a29=10018,t.a30=10019,t.a31=10020,t.a32=10021,t.a33=10022,t.a34=10023,t.a35=9733,t.a36=10025,t.a37=10026,t.a38=10027,t.a39=10028,t.a40=10029,t.a41=10030,t.a42=10031,t.a43=10032,t.a44=10033,t.a45=10034,t.a46=10035,t.a47=10036,t.a48=10037,t.a49=10038,t.a50=10039,t.a51=10040,t.a52=10041,t.a53=10042,t.a54=10043,t.a55=10044,t.a56=10045,t.a57=10046,t.a58=10047,t.a59=10048,t.a60=10049,t.a61=10050,t.a62=10051,t.a63=10052,t.a64=10053,t.a65=10054,t.a66=10055,t.a67=10056,t.a68=10057,t.a69=10058,t.a70=10059,t.a71=9679,t.a72=10061,t.a73=9632,t.a74=10063,t.a203=10064,t.a75=10065,t.a204=10066,t.a76=9650,t.a77=9660,t.a78=9670,t.a79=10070,t.a81=9687,t.a82=10072,t.a83=10073,t.a84=10074,t.a97=10075,t.a98=10076,t.a99=10077,t.a100=10078,t.a101=10081,t.a102=10082,t.a103=10083,t.a104=10084,t.a106=10085,t.a107=10086,t.a108=10087,t.a112=9827,t.a111=9830,t.a110=9829,t.a109=9824,t.a120=9312,t.a121=9313,t.a122=9314,t.a123=9315,t.a124=9316,t.a125=9317,t.a126=9318,t.a127=9319,t.a128=9320,t.a129=9321,t.a130=10102,t.a131=10103,t.a132=10104,t.a133=10105,t.a134=10106,t.a135=10107,t.a136=10108,t.a137=10109,t.a138=10110,t.a139=10111,t.a140=10112,t.a141=10113,t.a142=10114,t.a143=10115,t.a144=10116,t.a145=10117,t.a146=10118,t.a147=10119,t.a148=10120,t.a149=10121,t.a150=10122,t.a151=10123,t.a152=10124,t.a153=10125,t.a154=10126,t.a155=10127,t.a156=10128,t.a157=10129,t.a158=10130,t.a159=10131,t.a160=10132,t.a161=8594,t.a163=8596,t.a164=8597,t.a196=10136,t.a165=10137,t.a192=10138,t.a166=10139,t.a167=10140,t.a168=10141,t.a169=10142,t.a170=10143,t.a171=10144,t.a172=10145,t.a173=10146,t.a162=10147,t.a174=10148,t.a175=10149,t.a176=10150,t.a177=10151,t.a178=10152,t.a179=10153,t.a193=10154,t.a180=10155,t.a199=10156,t.a181=10157,t.a200=10158,t.a182=10159,t.a201=10161,t.a183=10162,t.a184=10163,t.a197=10164,t.a185=10165,t.a194=10166,t.a198=10167,t.a186=10168,t.a195=10169,t.a187=10170,t.a188=10171,t.a189=10172,t.a190=10173,t.a191=10174,t.a89=10088,t.a90=10089,t.a93=10090,t.a94=10091,t.a91=10092,t.a92=10093,t.a205=10094,t.a85=10095,t.a206=10096,t.a86=10097,t.a87=10098,t.a88=10099,t.a95=10100,t.a96=10101,t[".notdef"]=0});M.getDingbatsGlyphsUnicode=L},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.clearUnicodeCaches=function(){t.clear()},M.getCharUnicodeCategory=function(a){const v=t.get(a);if(v)return v;const A=a.match(L),T={isWhitespace:!!(A!=null&&A[1]),isZeroWidthDiacritic:!!(A!=null&&A[2]),isInvisibleFormatMark:!!(A!=null&&A[3])};return t.set(a,T),T},M.getUnicodeForGlyph=function(a,v){let A=v[a];if(A!==void 0)return A;if(!a)return-1;if(a[0]==="u"){const T=a.length;let d;if(T===7&&a[1]==="n"&&a[2]==="i")d=a.substring(3);else{if(!(T>=5&&T<=7))return-1;d=a.substring(1)}if(d===d.toUpperCase()&&(A=parseInt(d,16),A>=0))return A}return-1},M.getUnicodeRangeFor=function(a,v=-1){if(v!==-1){const A=_[v];for(let T=0,d=A.length;T=A[T]&&a<=A[T+1])return v}for(let A=0,T=_.length;A=d[i]&&a<=d[i+1])return A}return-1},M.mapSpecialUnicodeValues=function(a){return a>=65520&&a<=65535?0:a>=62976&&a<=63743?n()[a]||a:a===173?45:a};const n=(0,Z(3).getLookupTableFactory)(function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120}),_=[[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]],L=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),t=new Map},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.getSerifFonts=M.getNonStdFontMap=M.getGlyphMapForStandardFonts=M.getFontNameToFileMap=void 0,M.getStandardFontName=function(C){const p=(0,_.normalizeFontName)(C);return L()[p]},M.getSymbolsFonts=M.getSupplementalGlyphMapForCalibri=M.getSupplementalGlyphMapForArialBlack=M.getStdFontMap=void 0,M.isKnownFontName=function(C){const p=(0,_.normalizeFontName)(C);return!!(L()[p]||e()[p]||a()[p]||v()[p])};var n=Z(3),_=Z(38);const L=(0,n.getLookupTableFactory)(function(i){i["Times-Roman"]="Times-Roman",i.Helvetica="Helvetica",i.Courier="Courier",i.Symbol="Symbol",i["Times-Bold"]="Times-Bold",i["Helvetica-Bold"]="Helvetica-Bold",i["Courier-Bold"]="Courier-Bold",i.ZapfDingbats="ZapfDingbats",i["Times-Italic"]="Times-Italic",i["Helvetica-Oblique"]="Helvetica-Oblique",i["Courier-Oblique"]="Courier-Oblique",i["Times-BoldItalic"]="Times-BoldItalic",i["Helvetica-BoldOblique"]="Helvetica-BoldOblique",i["Courier-BoldOblique"]="Courier-BoldOblique",i.ArialNarrow="Helvetica",i["ArialNarrow-Bold"]="Helvetica-Bold",i["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",i["ArialNarrow-Italic"]="Helvetica-Oblique",i.ArialBlack="Helvetica",i["ArialBlack-Bold"]="Helvetica-Bold",i["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",i["ArialBlack-Italic"]="Helvetica-Oblique",i["Arial-Black"]="Helvetica",i["Arial-Black-Bold"]="Helvetica-Bold",i["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",i["Arial-Black-Italic"]="Helvetica-Oblique",i.Arial="Helvetica",i["Arial-Bold"]="Helvetica-Bold",i["Arial-BoldItalic"]="Helvetica-BoldOblique",i["Arial-Italic"]="Helvetica-Oblique",i.ArialMT="Helvetica",i["Arial-BoldItalicMT"]="Helvetica-BoldOblique",i["Arial-BoldMT"]="Helvetica-Bold",i["Arial-ItalicMT"]="Helvetica-Oblique",i["Arial-BoldItalicMT-BoldItalic"]="Helvetica-BoldOblique",i["Arial-BoldMT-Bold"]="Helvetica-Bold",i["Arial-ItalicMT-Italic"]="Helvetica-Oblique",i.ArialUnicodeMS="Helvetica",i["ArialUnicodeMS-Bold"]="Helvetica-Bold",i["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",i["ArialUnicodeMS-Italic"]="Helvetica-Oblique",i["Courier-BoldItalic"]="Courier-BoldOblique",i["Courier-Italic"]="Courier-Oblique",i.CourierNew="Courier",i["CourierNew-Bold"]="Courier-Bold",i["CourierNew-BoldItalic"]="Courier-BoldOblique",i["CourierNew-Italic"]="Courier-Oblique",i["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",i["CourierNewPS-BoldMT"]="Courier-Bold",i["CourierNewPS-ItalicMT"]="Courier-Oblique",i.CourierNewPSMT="Courier",i["Helvetica-BoldItalic"]="Helvetica-BoldOblique",i["Helvetica-Italic"]="Helvetica-Oblique",i["Symbol-Bold"]="Symbol",i["Symbol-BoldItalic"]="Symbol",i["Symbol-Italic"]="Symbol",i.TimesNewRoman="Times-Roman",i["TimesNewRoman-Bold"]="Times-Bold",i["TimesNewRoman-BoldItalic"]="Times-BoldItalic",i["TimesNewRoman-Italic"]="Times-Italic",i.TimesNewRomanPS="Times-Roman",i["TimesNewRomanPS-Bold"]="Times-Bold",i["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",i["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",i["TimesNewRomanPS-BoldMT"]="Times-Bold",i["TimesNewRomanPS-Italic"]="Times-Italic",i["TimesNewRomanPS-ItalicMT"]="Times-Italic",i.TimesNewRomanPSMT="Times-Roman",i["TimesNewRomanPSMT-Bold"]="Times-Bold",i["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",i["TimesNewRomanPSMT-Italic"]="Times-Italic"});M.getStdFontMap=L;const t=(0,n.getLookupTableFactory)(function(i){i.Courier="FoxitFixed.pfb",i["Courier-Bold"]="FoxitFixedBold.pfb",i["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",i["Courier-Oblique"]="FoxitFixedItalic.pfb",i.Helvetica="LiberationSans-Regular.ttf",i["Helvetica-Bold"]="LiberationSans-Bold.ttf",i["Helvetica-BoldOblique"]="LiberationSans-BoldItalic.ttf",i["Helvetica-Oblique"]="LiberationSans-Italic.ttf",i["Times-Roman"]="FoxitSerif.pfb",i["Times-Bold"]="FoxitSerifBold.pfb",i["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",i["Times-Italic"]="FoxitSerifItalic.pfb",i.Symbol="FoxitSymbol.pfb",i.ZapfDingbats="FoxitDingbats.pfb",i["LiberationSans-Regular"]="LiberationSans-Regular.ttf",i["LiberationSans-Bold"]="LiberationSans-Bold.ttf",i["LiberationSans-Italic"]="LiberationSans-Italic.ttf",i["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"});M.getFontNameToFileMap=t;const e=(0,n.getLookupTableFactory)(function(i){i.Calibri="Helvetica",i["Calibri-Bold"]="Helvetica-Bold",i["Calibri-BoldItalic"]="Helvetica-BoldOblique",i["Calibri-Italic"]="Helvetica-Oblique",i.CenturyGothic="Helvetica",i["CenturyGothic-Bold"]="Helvetica-Bold",i["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",i["CenturyGothic-Italic"]="Helvetica-Oblique",i.ComicSansMS="Comic Sans MS",i["ComicSansMS-Bold"]="Comic Sans MS-Bold",i["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",i["ComicSansMS-Italic"]="Comic Sans MS-Italic",i.Impact="Helvetica",i["ItcSymbol-Bold"]="Helvetica-Bold",i["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",i["ItcSymbol-Book"]="Helvetica",i["ItcSymbol-BookItalic"]="Helvetica-Oblique",i["ItcSymbol-Medium"]="Helvetica",i["ItcSymbol-MediumItalic"]="Helvetica-Oblique",i.LucidaConsole="Courier",i["LucidaConsole-Bold"]="Courier-Bold",i["LucidaConsole-BoldItalic"]="Courier-BoldOblique",i["LucidaConsole-Italic"]="Courier-Oblique",i["LucidaSans-Demi"]="Helvetica-Bold",i["MS-Gothic"]="MS Gothic",i["MS-Gothic-Bold"]="MS Gothic-Bold",i["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",i["MS-Gothic-Italic"]="MS Gothic-Italic",i["MS-Mincho"]="MS Mincho",i["MS-Mincho-Bold"]="MS Mincho-Bold",i["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",i["MS-Mincho-Italic"]="MS Mincho-Italic",i["MS-PGothic"]="MS PGothic",i["MS-PGothic-Bold"]="MS PGothic-Bold",i["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",i["MS-PGothic-Italic"]="MS PGothic-Italic",i["MS-PMincho"]="MS PMincho",i["MS-PMincho-Bold"]="MS PMincho-Bold",i["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",i["MS-PMincho-Italic"]="MS PMincho-Italic",i.NuptialScript="Times-Italic",i.SegoeUISymbol="Helvetica"});M.getNonStdFontMap=e;const a=(0,n.getLookupTableFactory)(function(i){i["Adobe Jenson"]=!0,i["Adobe Text"]=!0,i.Albertus=!0,i.Aldus=!0,i.Alexandria=!0,i.Algerian=!0,i["American Typewriter"]=!0,i.Antiqua=!0,i.Apex=!0,i.Arno=!0,i.Aster=!0,i.Aurora=!0,i.Baskerville=!0,i.Bell=!0,i.Bembo=!0,i["Bembo Schoolbook"]=!0,i.Benguiat=!0,i["Berkeley Old Style"]=!0,i["Bernhard Modern"]=!0,i["Berthold City"]=!0,i.Bodoni=!0,i["Bauer Bodoni"]=!0,i["Book Antiqua"]=!0,i.Bookman=!0,i["Bordeaux Roman"]=!0,i["Californian FB"]=!0,i.Calisto=!0,i.Calvert=!0,i.Capitals=!0,i.Cambria=!0,i.Cartier=!0,i.Caslon=!0,i.Catull=!0,i.Centaur=!0,i["Century Old Style"]=!0,i["Century Schoolbook"]=!0,i.Chaparral=!0,i["Charis SIL"]=!0,i.Cheltenham=!0,i["Cholla Slab"]=!0,i.Clarendon=!0,i.Clearface=!0,i.Cochin=!0,i.Colonna=!0,i["Computer Modern"]=!0,i["Concrete Roman"]=!0,i.Constantia=!0,i["Cooper Black"]=!0,i.Corona=!0,i.Ecotype=!0,i.Egyptienne=!0,i.Elephant=!0,i.Excelsior=!0,i.Fairfield=!0,i["FF Scala"]=!0,i.Folkard=!0,i.Footlight=!0,i.FreeSerif=!0,i["Friz Quadrata"]=!0,i.Garamond=!0,i.Gentium=!0,i.Georgia=!0,i.Gloucester=!0,i["Goudy Old Style"]=!0,i["Goudy Schoolbook"]=!0,i["Goudy Pro Font"]=!0,i.Granjon=!0,i["Guardian Egyptian"]=!0,i.Heather=!0,i.Hercules=!0,i["High Tower Text"]=!0,i.Hiroshige=!0,i["Hoefler Text"]=!0,i["Humana Serif"]=!0,i.Imprint=!0,i["Ionic No. 5"]=!0,i.Janson=!0,i.Joanna=!0,i.Korinna=!0,i.Lexicon=!0,i.LiberationSerif=!0,i["Liberation Serif"]=!0,i["Linux Libertine"]=!0,i.Literaturnaya=!0,i.Lucida=!0,i["Lucida Bright"]=!0,i.Melior=!0,i.Memphis=!0,i.Miller=!0,i.Minion=!0,i.Modern=!0,i["Mona Lisa"]=!0,i["Mrs Eaves"]=!0,i["MS Serif"]=!0,i["Museo Slab"]=!0,i["New York"]=!0,i["Nimbus Roman"]=!0,i["NPS Rawlinson Roadway"]=!0,i.NuptialScript=!0,i.Palatino=!0,i.Perpetua=!0,i.Plantin=!0,i["Plantin Schoolbook"]=!0,i.Playbill=!0,i["Poor Richard"]=!0,i["Rawlinson Roadway"]=!0,i.Renault=!0,i.Requiem=!0,i.Rockwell=!0,i.Roman=!0,i["Rotis Serif"]=!0,i.Sabon=!0,i.Scala=!0,i.Seagull=!0,i.Sistina=!0,i.Souvenir=!0,i.STIX=!0,i["Stone Informal"]=!0,i["Stone Serif"]=!0,i.Sylfaen=!0,i.Times=!0,i.Trajan=!0,i.Trinité=!0,i["Trump Mediaeval"]=!0,i.Utopia=!0,i["Vale Type"]=!0,i["Bitstream Vera"]=!0,i["Vera Serif"]=!0,i.Versailles=!0,i.Wanted=!0,i.Weiss=!0,i["Wide Latin"]=!0,i.Windsor=!0,i.XITS=!0});M.getSerifFonts=a;const v=(0,n.getLookupTableFactory)(function(i){i.Dingbats=!0,i.Symbol=!0,i.ZapfDingbats=!0,i.Wingdings=!0,i["Wingdings-Bold"]=!0,i["Wingdings-Regular"]=!0});M.getSymbolsFonts=v;const A=(0,n.getLookupTableFactory)(function(i){i[2]=10,i[3]=32,i[4]=33,i[5]=34,i[6]=35,i[7]=36,i[8]=37,i[9]=38,i[10]=39,i[11]=40,i[12]=41,i[13]=42,i[14]=43,i[15]=44,i[16]=45,i[17]=46,i[18]=47,i[19]=48,i[20]=49,i[21]=50,i[22]=51,i[23]=52,i[24]=53,i[25]=54,i[26]=55,i[27]=56,i[28]=57,i[29]=58,i[30]=894,i[31]=60,i[32]=61,i[33]=62,i[34]=63,i[35]=64,i[36]=65,i[37]=66,i[38]=67,i[39]=68,i[40]=69,i[41]=70,i[42]=71,i[43]=72,i[44]=73,i[45]=74,i[46]=75,i[47]=76,i[48]=77,i[49]=78,i[50]=79,i[51]=80,i[52]=81,i[53]=82,i[54]=83,i[55]=84,i[56]=85,i[57]=86,i[58]=87,i[59]=88,i[60]=89,i[61]=90,i[62]=91,i[63]=92,i[64]=93,i[65]=94,i[66]=95,i[67]=96,i[68]=97,i[69]=98,i[70]=99,i[71]=100,i[72]=101,i[73]=102,i[74]=103,i[75]=104,i[76]=105,i[77]=106,i[78]=107,i[79]=108,i[80]=109,i[81]=110,i[82]=111,i[83]=112,i[84]=113,i[85]=114,i[86]=115,i[87]=116,i[88]=117,i[89]=118,i[90]=119,i[91]=120,i[92]=121,i[93]=122,i[94]=123,i[95]=124,i[96]=125,i[97]=126,i[98]=196,i[99]=197,i[100]=199,i[101]=201,i[102]=209,i[103]=214,i[104]=220,i[105]=225,i[106]=224,i[107]=226,i[108]=228,i[109]=227,i[110]=229,i[111]=231,i[112]=233,i[113]=232,i[114]=234,i[115]=235,i[116]=237,i[117]=236,i[118]=238,i[119]=239,i[120]=241,i[121]=243,i[122]=242,i[123]=244,i[124]=246,i[125]=245,i[126]=250,i[127]=249,i[128]=251,i[129]=252,i[130]=8224,i[131]=176,i[132]=162,i[133]=163,i[134]=167,i[135]=8226,i[136]=182,i[137]=223,i[138]=174,i[139]=169,i[140]=8482,i[141]=180,i[142]=168,i[143]=8800,i[144]=198,i[145]=216,i[146]=8734,i[147]=177,i[148]=8804,i[149]=8805,i[150]=165,i[151]=181,i[152]=8706,i[153]=8721,i[154]=8719,i[156]=8747,i[157]=170,i[158]=186,i[159]=8486,i[160]=230,i[161]=248,i[162]=191,i[163]=161,i[164]=172,i[165]=8730,i[166]=402,i[167]=8776,i[168]=8710,i[169]=171,i[170]=187,i[171]=8230,i[179]=8220,i[180]=8221,i[181]=8216,i[182]=8217,i[200]=193,i[203]=205,i[207]=211,i[210]=218,i[223]=711,i[224]=321,i[225]=322,i[226]=352,i[227]=353,i[228]=381,i[229]=382,i[233]=221,i[234]=253,i[252]=263,i[253]=268,i[254]=269,i[258]=258,i[260]=260,i[261]=261,i[265]=280,i[266]=281,i[267]=282,i[268]=283,i[269]=313,i[275]=323,i[276]=324,i[278]=328,i[283]=344,i[284]=345,i[285]=346,i[286]=347,i[292]=367,i[295]=377,i[296]=378,i[298]=380,i[305]=963,i[306]=964,i[307]=966,i[308]=8215,i[309]=8252,i[310]=8319,i[311]=8359,i[312]=8592,i[313]=8593,i[337]=9552,i[493]=1039,i[494]=1040,i[672]=1488,i[673]=1489,i[674]=1490,i[675]=1491,i[676]=1492,i[677]=1493,i[678]=1494,i[679]=1495,i[680]=1496,i[681]=1497,i[682]=1498,i[683]=1499,i[684]=1500,i[685]=1501,i[686]=1502,i[687]=1503,i[688]=1504,i[689]=1505,i[690]=1506,i[691]=1507,i[692]=1508,i[693]=1509,i[694]=1510,i[695]=1511,i[696]=1512,i[697]=1513,i[698]=1514,i[705]=1524,i[706]=8362,i[710]=64288,i[711]=64298,i[759]=1617,i[761]=1776,i[763]=1778,i[775]=1652,i[777]=1764,i[778]=1780,i[779]=1781,i[780]=1782,i[782]=771,i[783]=64726,i[786]=8363,i[788]=8532,i[790]=768,i[791]=769,i[792]=768,i[795]=803,i[797]=64336,i[798]=64337,i[799]=64342,i[800]=64343,i[801]=64344,i[802]=64345,i[803]=64362,i[804]=64363,i[805]=64364,i[2424]=7821,i[2425]=7822,i[2426]=7823,i[2427]=7824,i[2428]=7825,i[2429]=7826,i[2430]=7827,i[2433]=7682,i[2678]=8045,i[2679]=8046,i[2830]=1552,i[2838]=686,i[2840]=751,i[2842]=753,i[2843]=754,i[2844]=755,i[2846]=757,i[2856]=767,i[2857]=848,i[2858]=849,i[2862]=853,i[2863]=854,i[2864]=855,i[2865]=861,i[2866]=862,i[2906]=7460,i[2908]=7462,i[2909]=7463,i[2910]=7464,i[2912]=7466,i[2913]=7467,i[2914]=7468,i[2916]=7470,i[2917]=7471,i[2918]=7472,i[2920]=7474,i[2921]=7475,i[2922]=7476,i[2924]=7478,i[2925]=7479,i[2926]=7480,i[2928]=7482,i[2929]=7483,i[2930]=7484,i[2932]=7486,i[2933]=7487,i[2934]=7488,i[2936]=7490,i[2937]=7491,i[2938]=7492,i[2940]=7494,i[2941]=7495,i[2942]=7496,i[2944]=7498,i[2946]=7500,i[2948]=7502,i[2950]=7504,i[2951]=7505,i[2952]=7506,i[2954]=7508,i[2955]=7509,i[2956]=7510,i[2958]=7512,i[2959]=7513,i[2960]=7514,i[2962]=7516,i[2963]=7517,i[2964]=7518,i[2966]=7520,i[2967]=7521,i[2968]=7522,i[2970]=7524,i[2971]=7525,i[2972]=7526,i[2974]=7528,i[2975]=7529,i[2976]=7530,i[2978]=1537,i[2979]=1538,i[2980]=1539,i[2982]=1549,i[2983]=1551,i[2984]=1552,i[2986]=1554,i[2987]=1555,i[2988]=1556,i[2990]=1623,i[2991]=1624,i[2995]=1775,i[2999]=1791,i[3002]=64290,i[3003]=64291,i[3004]=64292,i[3006]=64294,i[3007]=64295,i[3008]=64296,i[3011]=1900,i[3014]=8223,i[3015]=8244,i[3017]=7532,i[3018]=7533,i[3019]=7534,i[3075]=7590,i[3076]=7591,i[3079]=7594,i[3080]=7595,i[3083]=7598,i[3084]=7599,i[3087]=7602,i[3088]=7603,i[3091]=7606,i[3092]=7607,i[3095]=7610,i[3096]=7611,i[3099]=7614,i[3100]=7615,i[3103]=7618,i[3104]=7619,i[3107]=8337,i[3108]=8338,i[3116]=1884,i[3119]=1885,i[3120]=1885,i[3123]=1886,i[3124]=1886,i[3127]=1887,i[3128]=1887,i[3131]=1888,i[3132]=1888,i[3135]=1889,i[3136]=1889,i[3139]=1890,i[3140]=1890,i[3143]=1891,i[3144]=1891,i[3147]=1892,i[3148]=1892,i[3153]=580,i[3154]=581,i[3157]=584,i[3158]=585,i[3161]=588,i[3162]=589,i[3165]=891,i[3166]=892,i[3169]=1274,i[3170]=1275,i[3173]=1278,i[3174]=1279,i[3181]=7622,i[3182]=7623,i[3282]=11799,i[3316]=578,i[3379]=42785,i[3393]=1159,i[3416]=8377});M.getGlyphMapForStandardFonts=A;const T=(0,n.getLookupTableFactory)(function(i){i[227]=322,i[264]=261,i[291]=346});M.getSupplementalGlyphMapForArialBlack=T;const d=(0,n.getLookupTableFactory)(function(i){i[1]=32,i[4]=65,i[5]=192,i[6]=193,i[9]=196,i[17]=66,i[18]=67,i[21]=268,i[24]=68,i[28]=69,i[29]=200,i[30]=201,i[32]=282,i[38]=70,i[39]=71,i[44]=72,i[47]=73,i[48]=204,i[49]=205,i[58]=74,i[60]=75,i[62]=76,i[68]=77,i[69]=78,i[75]=79,i[76]=210,i[80]=214,i[87]=80,i[89]=81,i[90]=82,i[92]=344,i[94]=83,i[97]=352,i[100]=84,i[104]=85,i[109]=220,i[115]=86,i[116]=87,i[121]=88,i[122]=89,i[124]=221,i[127]=90,i[129]=381,i[258]=97,i[259]=224,i[260]=225,i[263]=228,i[268]=261,i[271]=98,i[272]=99,i[273]=263,i[275]=269,i[282]=100,i[286]=101,i[287]=232,i[288]=233,i[290]=283,i[295]=281,i[296]=102,i[336]=103,i[346]=104,i[349]=105,i[350]=236,i[351]=237,i[361]=106,i[364]=107,i[367]=108,i[371]=322,i[373]=109,i[374]=110,i[381]=111,i[382]=242,i[383]=243,i[386]=246,i[393]=112,i[395]=113,i[396]=114,i[398]=345,i[400]=115,i[401]=347,i[403]=353,i[410]=116,i[437]=117,i[442]=252,i[448]=118,i[449]=119,i[454]=120,i[455]=121,i[457]=253,i[460]=122,i[462]=382,i[463]=380,i[853]=44,i[855]=58,i[856]=46,i[876]=47,i[878]=45,i[882]=45,i[894]=40,i[895]=41,i[896]=91,i[897]=93,i[923]=64,i[1004]=48,i[1005]=49,i[1006]=50,i[1007]=51,i[1008]=52,i[1009]=53,i[1010]=54,i[1011]=55,i[1012]=56,i[1013]=57,i[1081]=37,i[1085]=43,i[1086]=45});M.getSupplementalGlyphMapForCalibri=d},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.ToUnicodeMap=M.IdentityToUnicodeMap=void 0;var n=Z(2);M.ToUnicodeMap=class{constructor(L=[]){this._map=L}get length(){return this._map.length}forEach(L){for(const t in this._map)L(t,this._map[t].charCodeAt(0))}has(L){return this._map[L]!==void 0}get(L){return this._map[L]}charCodeOf(L){const t=this._map;if(t.length<=65536)return t.indexOf(L);for(const e in t)if(t[e]===L)return 0|e;return-1}amend(L){for(const t in L)this._map[t]=L[t]}},M.IdentityToUnicodeMap=class{constructor(L,t){this.firstChar=L,this.lastChar=t}get length(){return this.lastChar+1-this.firstChar}forEach(L){for(let t=this.firstChar,e=this.lastChar;t<=e;t++)L(t,t)}has(L){return this.firstChar<=L&&L<=this.lastChar}get(L){if(this.firstChar<=L&&L<=this.lastChar)return String.fromCharCode(L)}charCodeOf(L){return Number.isInteger(L)&&L>=this.firstChar&&L<=this.lastChar?L:-1}amend(L){(0,n.unreachable)("Should not call amend()")}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.CFFFont=void 0;var n=Z(35),_=Z(38),L=Z(2);M.CFFFont=class{constructor(e,a){this.properties=a;const v=new n.CFFParser(e,a,_.SEAC_ANALYSIS_ENABLED);this.cff=v.parse(),this.cff.duplicateFirstGlyph();const A=new n.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=A.compile()}catch{(0,L.warn)("Failed to compile font "+a.loadedName),this.data=e}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){const e=this.cff,a=this.properties,{cidToGidMap:v,cMap:A}=a,T=e.charset.charset;let d,i;if(a.composite){let p,b;if((v==null?void 0:v.length)>0){p=Object.create(null);for(let F=0,u=v.length;F=0){const C=v[i];C&&(T[d]=C)}}T.length>0&&(this.properties.builtInEncoding=T)}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.FontRendererFactory=void 0;var n=Z(2),_=Z(35),L=Z(39),t=Z(37),e=Z(8);function a($,P){return($[P]<<24|$[P+1]<<16|$[P+2]<<8|$[P+3])>>>0}function v($,P){return $[P]<<8|$[P+1]}function A($,P){return($[P]<<24|$[P+1]<<16)>>16}function T($,P){return $[P]<<24>>24}function d($,P){return A($,P)/16384}function i($){const P=$.length;let R=32768;return P<1240?R=107:P<33900&&(R=1131),R}function C($,P,R){const o=v($,P+2)===1?a($,P+8):a($,P+16),g=v($,P+o);let x,E,D;if(g===4){v($,P+o+2);const q=v($,P+o+6)>>1;for(E=P+o+14,x=[],D=0;D>1;R<$[E].start?x=E-1:g=E}return $[g].start<=R&&R<=$[g].end&&(o=$[g].idDelta+($[g].ids?$[g].ids[R-$[g].start]:R)&65535),{charCode:R,glyphId:o}}function F($,P,R){function o(s,c){P.push({cmd:"moveTo",args:[s,c]})}function g(s,c){P.push({cmd:"lineTo",args:[s,c]})}function x(s,c,S,h){P.push({cmd:"quadraticCurveTo",args:[s,c,S,h]})}let E=0;const D=A($,E);let q,W=0,w=0;if(E+=10,D<0)do{q=v($,E);const s=v($,E+2);E+=4;let c,S;1&q?(2&q?(c=A($,E),S=A($,E+2)):(c=v($,E),S=v($,E+2)),E+=4):2&q?(c=T($,E++),S=T($,E++)):(c=$[E++],S=$[E++]),2&q?(W=c,w=S):(W=0,w=0);let h=1,m=1,k=0,I=0;8&q?(h=m=d($,E),E+=2):64&q?(h=d($,E),m=d($,E+2),E+=4):128&q&&(h=d($,E),k=d($,E+2),I=d($,E+4),m=d($,E+6),E+=8);const B=R.glyphs[s];B&&(P.push({cmd:"save"},{cmd:"transform",args:[h,k,I,m,W,w]}),F(B,P,R),P.push({cmd:"restore"}))}while(32&q);else{const s=[];let c,S;for(c=0;c0;)m.push({flags:q})}for(c=0;c>1,j=!0;break;case 4:W+=D.pop(),g(q,W),j=!0;break;case 5:for(;D.length>0;)q+=D.shift(),W+=D.shift(),x(q,W);break;case 6:for(;D.length>0&&(q+=D.shift(),x(q,W),D.length!==0);)W+=D.shift(),x(q,W);break;case 7:for(;D.length>0&&(W+=D.shift(),x(q,W),D.length!==0);)q+=D.shift(),x(q,W);break;case 8:for(;D.length>0;)m=q+D.shift(),I=W+D.shift(),k=m+D.shift(),B=I+D.shift(),q=k+D.shift(),W=B+D.shift(),E(m,I,k,B,q,W);break;case 10:if(X=D.pop(),J=null,R.isCFFCIDFont){const H=R.fdSelect.getFDIndex(o);if(H>=0&&HMath.abs(W-V)?q+=D.shift():W+=D.shift(),E(m,I,k,B,q,W);break;default:throw new n.FormatError(`unknown operator: 12 ${O}`)}break;case 14:if(D.length>=4){const H=D.pop(),V=D.pop();W=D.pop(),q=D.pop(),P.push({cmd:"save"},{cmd:"translate",args:[q,W]});let z=b(R.cmap,String.fromCharCode(R.glyphNameMap[t.StandardEncoding[H]]));u(R.glyphs[z.glyphId],P,R,z.glyphId),P.push({cmd:"restore"}),z=b(R.cmap,String.fromCharCode(R.glyphNameMap[t.StandardEncoding[V]])),u(R.glyphs[z.glyphId],P,R,z.glyphId)}return;case 19:case 20:w+=D.length>>1,S+=w+7>>3,j=!0;break;case 21:W+=D.pop(),q+=D.pop(),g(q,W),j=!0;break;case 22:q+=D.pop(),g(q,W),j=!0;break;case 24:for(;D.length>2;)m=q+D.shift(),I=W+D.shift(),k=m+D.shift(),B=I+D.shift(),q=k+D.shift(),W=B+D.shift(),E(m,I,k,B,q,W);q+=D.shift(),W+=D.shift(),x(q,W);break;case 25:for(;D.length>6;)q+=D.shift(),W+=D.shift(),x(q,W);m=q+D.shift(),I=W+D.shift(),k=m+D.shift(),B=I+D.shift(),q=k+D.shift(),W=B+D.shift(),E(m,I,k,B,q,W);break;case 26:for(D.length%2&&(q+=D.shift());D.length>0;)m=q,I=W+D.shift(),k=m+D.shift(),B=I+D.shift(),q=k,W=B+D.shift(),E(m,I,k,B,q,W);break;case 27:for(D.length%2&&(W+=D.shift());D.length>0;)m=q+D.shift(),I=W,k=m+D.shift(),B=I+D.shift(),q=k+D.shift(),W=B,E(m,I,k,B,q,W);break;case 28:D.push((c[S]<<24|c[S+1]<<16)>>16),S+=2;break;case 29:X=D.pop()+R.gsubrsBias,J=R.gsubrs[X],J&&s(J);break;case 30:for(;D.length>0&&(m=q,I=W+D.shift(),k=m+D.shift(),B=I+D.shift(),q=k+D.shift(),W=B+(D.length===1?D.shift():0),E(m,I,k,B,q,W),D.length!==0);)m=q+D.shift(),I=W,k=m+D.shift(),B=I+D.shift(),W=B+D.shift(),q=k+(D.length===1?D.shift():0),E(m,I,k,B,q,W);break;case 31:for(;D.length>0&&(m=q+D.shift(),I=W,k=m+D.shift(),B=I+D.shift(),W=B+D.shift(),q=k+(D.length===1?D.shift():0),E(m,I,k,B,q,W),D.length!==0);)m=q,I=W+D.shift(),k=m+D.shift(),B=I+D.shift(),q=k+D.shift(),W=B+(D.length===1?D.shift():0),E(m,I,k,B,q,W);break;default:if(O<32)throw new n.FormatError(`unknown operator: ${O}`);O<247?D.push(O-139):O<251?D.push(256*(O-247)+c[S++]+108):O<255?D.push(256*-(O-251)-c[S++]-108):(D.push((c[S]<<24|c[S+1]<<16|c[S+2]<<8|c[S+3])/65536),S+=4)}j&&(D.length=0)}})($)}const l=[];class y{constructor(P){this.constructor===y&&(0,n.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=P,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(P){const{charCode:R,glyphId:o}=b(this.cmap,P);let g=this.compiledGlyphs[o];if(!g)try{g=this.compileGlyph(this.glyphs[o],o),this.compiledGlyphs[o]=g}catch(x){throw this.compiledGlyphs[o]=l,this.compiledCharCodeToGlyphId[R]===void 0&&(this.compiledCharCodeToGlyphId[R]=o),x}return this.compiledCharCodeToGlyphId[R]===void 0&&(this.compiledCharCodeToGlyphId[R]=o),g}compileGlyph(P,R){if(!P||P.length===0||P[0]===14)return l;let o=this.fontMatrix;if(this.isCFFCIDFont){const x=this.fdSelect.getFDIndex(R);x>=0&&x2*v(it,st));const B=[];let tt=I(h,0);for(let it=k;it{Object.defineProperty(M,"__esModule",{value:!0}),M.getMetrics=M.getFontBasicMetrics=void 0;var n=Z(3);const _=(0,n.getLookupTableFactory)(function(t){t.Courier=600,t["Courier-Bold"]=600,t["Courier-BoldOblique"]=600,t["Courier-Oblique"]=600,t.Helvetica=(0,n.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),t["Helvetica-Bold"]=(0,n.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),t["Helvetica-BoldOblique"]=(0,n.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),t["Helvetica-Oblique"]=(0,n.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),t.Symbol=(0,n.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790}),t["Times-Roman"]=(0,n.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),t["Times-Bold"]=(0,n.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),t["Times-BoldItalic"]=(0,n.getLookupTableFactory)(function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),t["Times-Italic"]=(0,n.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),t.ZapfDingbats=(0,n.getLookupTableFactory)(function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918})});M.getMetrics=_;const L=(0,n.getLookupTableFactory)(function(t){t.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426},t["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439},t["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},t["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},t.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523},t["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532},t["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523},t["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532},t["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450},t["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461},t["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441},t["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462},t.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN},t.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}});M.getFontBasicMetrics=L},(vt,M)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.GlyfTable=void 0,M.GlyfTable=class{constructor({glyfTable:a,isGlyphLocationsLong:v,locaTable:A,numGlyphs:T}){this.glyphs=[];const d=new DataView(A.buffer,A.byteOffset,A.byteLength),i=new DataView(a.buffer,a.byteOffset,a.byteLength),C=v?4:2;let p=v?d.getUint32(0):2*d.getUint16(0),b=0;for(let F=0;Fa+(v.getSize()+3&-4),0)}write(){const a=this.getSize(),v=new DataView(new ArrayBuffer(a)),A=a>131070,T=A?4:2,d=new DataView(new ArrayBuffer((this.glyphs.length+1)*T));A?d.setUint32(0,0):d.setUint16(0,0);let i=0,C=0;for(const p of this.glyphs)i+=p.write(i,v),i=i+3&-4,C+=T,A?d.setUint32(C,i):d.setUint16(C,i>>1);return{isLocationLong:A,loca:new Uint8Array(d.buffer),glyf:new Uint8Array(v.buffer)}}scale(a){for(let v=0,A=this.glyphs.length;vv+A.getSize(),0);return this.header.getSize()+a}write(a,v){if(!this.header)return 0;const A=a;if(a+=this.header.write(a,v),this.simple)a+=this.simple.write(a,v);else for(const T of this.composites)a+=T.write(a,v);return a-A}scale(a){if(!this.header)return;const v=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(v,a),this.simple)this.simple.scale(v,a);else for(const A of this.composites)A.scale(v,a)}}class n{constructor({numberOfContours:a,xMin:v,yMin:A,xMax:T,yMax:d}){this.numberOfContours=a,this.xMin=v,this.yMin=A,this.xMax=T,this.yMax=d}static parse(a,v){return[10,new n({numberOfContours:v.getInt16(a),xMin:v.getInt16(a+2),yMin:v.getInt16(a+4),xMax:v.getInt16(a+6),yMax:v.getInt16(a+8)})]}getSize(){return 10}write(a,v){return v.setInt16(a,this.numberOfContours),v.setInt16(a+2,this.xMin),v.setInt16(a+4,this.yMin),v.setInt16(a+6,this.xMax),v.setInt16(a+8,this.yMax),10}scale(a,v){this.xMin=Math.round(a+(this.xMin-a)*v),this.xMax=Math.round(a+(this.xMax-a)*v)}}class _{constructor({flags:a,xCoordinates:v,yCoordinates:A}){this.xCoordinates=v,this.yCoordinates=A,this.flags=a}}class L{constructor({contours:a,instructions:v}){this.contours=a,this.instructions=v}static parse(a,v,A){const T=[];for(let $=0;$255?a+=2:b>0&&(a+=1),v=C,b=Math.abs(p-A),b>255?a+=2:b>0&&(a+=1),A=p}}return a}write(a,v){const A=a,T=[],d=[],i=[];let C=0,p=0;for(const b of this.contours){for(let F=0,u=b.xCoordinates.length;F=0?18:2,T.push($)):T.push(N)}C=y;const U=b.yCoordinates[F];if(N=U-p,N===0)l|=32,d.push(0);else{const $=Math.abs(N);$<=255?(l|=N>=0?36:4,d.push($)):d.push(N)}p=U,i.push(l)}v.setUint16(a,T.length-1),a+=2}v.setUint16(a,this.instructions.length),a+=2,this.instructions.length&&(new Uint8Array(v.buffer,0,v.buffer.byteLength).set(this.instructions,a),a+=this.instructions.length);for(const b of i)v.setUint8(a++,b);for(let b=0,F=T.length;b=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(a+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(a+=2),a}write(a,v){const A=a;return 2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=1):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=1),v.setUint16(a,this.flags),v.setUint16(a+2,this.glyphIndex),a+=4,1&this.flags?(2&this.flags?(v.setInt16(a,this.argument1),v.setInt16(a+2,this.argument2)):(v.setUint16(a,this.argument1),v.setUint16(a+2,this.argument2)),a+=4):(v.setUint8(a,this.argument1),v.setUint8(a+1,this.argument2),a+=2),256&this.flags&&(v.setUint16(a,this.instructions.length),a+=2,this.instructions.length&&(new Uint8Array(v.buffer,0,v.buffer.byteLength).set(this.instructions,a),a+=this.instructions.length)),a-A}scale(a,v){}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.OpenTypeFileBuilder=void 0;var n=Z(3),_=Z(2);function L(v,A,T){v[A]=T>>8&255,v[A+1]=255&T}function t(v,A,T){v[A]=T>>24&255,v[A+1]=T>>16&255,v[A+2]=T>>8&255,v[A+3]=255&T}function e(v,A,T){if(T instanceof Uint8Array)v.set(T,A);else if(typeof T=="string")for(let d=0,i=T.length;dd;)d<<=1,i++;const C=d*T;return{range:C,entry:i,rangeShift:T*A-C}}toArray(){let A=this.sfnt;const T=this.tables,d=Object.keys(T);d.sort();const i=d.length;let C,p,b,F,u,l=12+16*i;const y=[l];for(C=0;C>>0,y.push(l);const N=new Uint8Array(l);for(C=0;C>>0;t(N,l+4,$),t(N,l+8,y[C]),t(N,l+12,T[u].length),l+=16}return N}addTable(A,T){if(A in this.tables)throw new Error("Table "+A+" already exists");this.tables[A]=T}}M.OpenTypeFileBuilder=a},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.Type1Font=void 0;var n=Z(35),_=Z(2),L=Z(38),t=Z(3),e=Z(8),a=Z(49);function v(A,T,d){const i=A.length,C=T.length,p=i-C;let b=d,F=!1;for(;b=C){for(b+=u;b=0&&(C[F]=p)}return(0,L.type1FontGlyphMapping)(T,C,i)}hasGlyphId(T){return T<0||T>=this.numGlyphs?!1:T===0?!0:this.charstrings[T-1].charstring.length>0}getSeacs(T){const d=[];for(let i=0,C=T.length;i0;E--)x[E]-=x[E-1];P.setByName(g,x)}b.topDict.privateDict=P;const o=new n.CFFIndex;for(N=0,U=C.length;N{Object.defineProperty(M,"__esModule",{value:!0}),M.Type1Parser=void 0;var n=Z(37),_=Z(3),L=Z(8),t=Z(2);const e=[4],a=[5],v=[6],A=[7],T=[8],d=[12,35],i=[14],C=[21],p=[22],b=[30],F=[31];class u{constructor(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}convert($,P,R){const o=$.length;let g,x,E,D=!1;for(let q=0;qo)return!0;const g=o-$;for(let x=g;x>8&255,255&E):(E=65536*E|0,this.output.push(255,E>>24&255,E>>16&255,E>>8&255,255&E))}return this.output.push(...P),R?this.stack.splice(g,$):this.stack.length=0,!1}}function l(U){return U>=48&&U<=57||U>=65&&U<=70||U>=97&&U<=102}function y(U,$,P){if(P>=U.length)return new Uint8Array(0);let R,o,g=0|$;for(R=0;R>8,g=52845*(D+g)+22719&65535}return E}function N(U){return U===47||U===91||U===93||U===123||U===125||U===40||U===41}M.Type1Parser=class{constructor($,P,R){if(P){const o=$.getBytes(),g=!((l(o[0])||(0,_.isWhiteSpace)(o[0]))&&l(o[1])&&l(o[2])&&l(o[3])&&l(o[4])&&l(o[5])&&l(o[6])&&l(o[7]));$=new L.Stream(g?y(o,55665,4):function(E,D,q){let W=0|D;const w=E.length,s=new Uint8Array(w>>>1);let c,S;for(c=0,S=0;c>8,W=52845*(k+W)+22719&65535}}return s.slice(q,S)}(o,55665,4))}this.seacAnalysisEnabled=!!R,this.stream=$,this.nextChar()}readNumberArray(){this.getToken();const $=[];for(;;){const P=this.getToken();if(P===null||P==="]"||P==="}")break;$.push(parseFloat(P||0))}return $}readNumber(){const $=this.getToken();return parseFloat($||0)}readInt(){const $=this.getToken();return 0|parseInt($||0,10)}readBoolean(){return this.getToken()==="true"?1:0}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}getToken(){let $=!1,P=this.currentChar;for(;;){if(P===-1)return null;if($)P!==10&&P!==13||($=!1);else if(P===37)$=!0;else if(!(0,_.isWhiteSpace)(P))break;P=this.nextChar()}if(N(P))return this.nextChar(),String.fromCharCode(P);let R="";do R+=String.fromCharCode(P),P=this.nextChar();while(P>=0&&!(0,_.isWhiteSpace)(P)&&!N(P));return R}readCharStrings($,P){return P===-1?$:y($,4330,P)}extractFontProgram($){const P=this.stream,R=[],o=[],g=Object.create(null);g.lenIV=4;const x={subrs:[],charstrings:[],properties:{privateData:g}};let E,D,q,W;for(;(E=this.getToken())!==null;)if(E==="/")switch(E=this.getToken(),E){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();E=this.getToken(),!(E===null||E==="end");){if(E!=="/")continue;const s=this.getToken();D=this.readInt(),this.getToken(),q=D>0?P.getBytes(D):new Uint8Array(0),W=x.properties.privateData.lenIV;const c=this.readCharStrings(q,W);this.nextChar(),E=this.getToken(),E==="noaccess"?this.getToken():E==="/"&&this.prevChar(),o.push({glyph:s,encoded:c})}break;case"Subrs":for(this.readInt(),this.getToken();this.getToken()==="dup";){const s=this.readInt();D=this.readInt(),this.getToken(),q=D>0?P.getBytes(D):new Uint8Array(0),W=x.properties.privateData.lenIV;const c=this.readCharStrings(q,W);this.nextChar(),E=this.getToken(),E==="noaccess"&&this.getToken(),R[s]=c}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":const w=this.readNumberArray();w.length>0&&w.length;break;case"StemSnapH":case"StemSnapV":x.properties.privateData[E]=this.readNumberArray();break;case"StdHW":case"StdVW":x.properties.privateData[E]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":x.properties.privateData[E]=this.readNumber();break;case"ExpansionFactor":x.properties.privateData[E]=this.readNumber()||.06;break;case"ForceBold":x.properties.privateData[E]=this.readBoolean()}for(const{encoded:w,glyph:s}of o){const c=new u,S=c.convert(w,R,this.seacAnalysisEnabled);let h=c.output;S&&(h=[14]);const m={glyphName:s,charstring:h,width:c.width,lsb:c.lsb,seac:c.seac};if(s===".notdef"?x.charstrings.unshift(m):x.charstrings.push(m),$.builtInEncoding){const k=$.builtInEncoding.indexOf(s);k>-1&&$.widths[k]===void 0&&k>=$.firstChar&&k<=$.lastChar&&($.widths[k]=c.width)}}return x}extractFontHeader($){let P;for(;(P=this.getToken())!==null;)if(P==="/")switch(P=this.getToken(),P){case"FontMatrix":const R=this.readNumberArray();$.fontMatrix=R;break;case"Encoding":const o=this.getToken();let g;if(/^\d+$/.test(o)){g=[];const E=0|parseInt(o,10);this.getToken();for(let D=0;D{Object.defineProperty(M,"__esModule",{value:!0}),M.Pattern=void 0,M.clearPatternCaches=function(){b=Object.create(null)},M.getTilingPatternIR=function($,P,R){const o=P.getArray("Matrix"),g=n.Util.normalizeRect(P.getArray("BBox")),x=P.get("XStep"),E=P.get("YStep"),D=P.get("PaintType"),q=P.get("TilingType");if(g[2]-g[0]==0||g[3]-g[1]==0)throw new n.FormatError(`Invalid getTilingPatternIR /BBox array: [${g}].`);return["TilingPattern",R,$,o,g,x,E,D,q]};var n=Z(2),_=Z(5),L=Z(12),t=Z(3);const e=2,a=3,v=4,A=5,T=6,d=7;M.Pattern=class{constructor(){(0,n.unreachable)("Cannot initialize Pattern.")}static parseShading($,P,R,o,g){const x=$ instanceof _.BaseStream?$.dict:$,E=x.get("ShadingType");try{switch(E){case e:case a:return new C(x,P,R,o,g);case v:case A:case T:case d:return new u($,P,R,o,g);default:throw new n.FormatError("Unsupported ShadingType: "+E)}}catch(D){if(D instanceof t.MissingDataException)throw D;return(0,n.warn)(D),new l}}};const y=class y{constructor(){this.constructor===y&&(0,n.unreachable)("Cannot initialize BaseShading.")}getIR(){(0,n.unreachable)("Abstract method `getIR` called.")}};ye(y,"SMALL_NUMBER",1e-6);let i=y;class C extends i{constructor($,P,R,o,g){super(),this.coordsArr=$.getArray("Coords"),this.shadingType=$.get("ShadingType");const x=L.ColorSpace.parse({cs:$.getRaw("CS")||$.getRaw("ColorSpace"),xref:P,resources:R,pdfFunctionFactory:o,localColorSpaceCache:g}),E=$.getArray("BBox");this.bbox=Array.isArray(E)&&E.length===4?n.Util.normalizeRect(E):null;let D=0,q=1;if($.has("Domain")){const K=$.getArray("Domain");D=K[0],q=K[1]}let W=!1,w=!1;if($.has("Extend")){const K=$.getArray("Extend");W=K[0],w=K[1]}if(!(this.shadingType!==a||W&&w)){const[K,et,nt,at,Q,lt]=this.coordsArr,ut=Math.hypot(K-at,et-Q);nt<=lt+ut&<<=nt+ut&&(0,n.warn)("Unsupported radial gradient.")}this.extendStart=W,this.extendEnd=w;const s=$.getRaw("Function"),c=o.createFromArray(s),S=(q-D)/840,h=this.colorStops=[];if(D>=q||S<=0){(0,n.info)("Bad shading domain.");return}const m=new Float32Array(x.numComps),k=new Float32Array(1);let I,B=0;k[0]=D,c(k,0,m,0);let tt=x.getRgb(m,0);const it=n.Util.makeHexColor(tt[0],tt[1],tt[2]);h.push([0,it]);let st=1;k[0]=D+S,c(k,0,m,0);let X=x.getRgb(m,0),J=X[0]-tt[0]+1,j=X[1]-tt[1]+1,O=X[2]-tt[2]+1,H=X[0]-tt[0]-1,V=X[1]-tt[1]-1,z=X[2]-tt[2]-1;for(let K=2;K<840;K++){k[0]=D+K*S,c(k,0,m,0),I=x.getRgb(m,0);const et=K-B;if(J=Math.min(J,(I[0]-tt[0]+1)/et),j=Math.min(j,(I[1]-tt[1]+1)/et),O=Math.min(O,(I[2]-tt[2]+1)/et),H=Math.max(H,(I[0]-tt[0]-1)/et),V=Math.max(V,(I[1]-tt[1]-1)/et),z=Math.max(z,(I[2]-tt[2]-1)/et),!(H<=J&&V<=j&&z<=O)){const nt=n.Util.makeHexColor(X[0],X[1],X[2]);h.push([st/840,nt]),J=I[0]-X[0]+1,j=I[1]-X[1]+1,O=I[2]-X[2]+1,H=I[0]-X[0]-1,V=I[1]-X[1]-1,z=I[2]-X[2]-1,B=st,tt=X}st=K,X=I}const Y=n.Util.makeHexColor(X[0],X[1],X[2]);h.push([1,Y]);let G="transparent";$.has("Background")&&(I=x.getRgb($.get("Background"),0),G=n.Util.makeHexColor(I[0],I[1],I[2])),W||(h.unshift([0,G]),h[1][0]+=i.SMALL_NUMBER),w||(h.at(-1)[0]-=i.SMALL_NUMBER,h.push([1,G])),this.colorStops=h}getIR(){const $=this.coordsArr,P=this.shadingType;let R,o,g,x,E;return P===e?(o=[$[0],$[1]],g=[$[2],$[3]],x=null,E=null,R="axial"):P===a?(o=[$[0],$[1]],g=[$[3],$[4]],x=$[2],E=$[5],R="radial"):(0,n.unreachable)(`getPattern type unknown: ${P}`),["RadialAxial",R,this.bbox,this.colorStops,o,g,x,E]}}class p{constructor($,P){this.stream=$,this.context=P,this.buffer=0,this.bufferLength=0;const R=P.numComps;this.tmpCompsBuf=new Float32Array(R);const o=P.colorSpace.numComps;this.tmpCsCompsBuf=P.colorFn?new Float32Array(o):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos0)return!0;const $=this.stream.getByte();return $<0?!1:(this.buffer=$,this.bufferLength=8,!0)}readBits($){let P=this.buffer,R=this.bufferLength;if($===32){if(R===0)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;P=P<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();const o=this.stream.getByte();return this.buffer=o&(1<>R)>>>0}if($===8&&R===0)return this.stream.getByte();for(;R<$;)P=P<<8|this.stream.getByte(),R+=8;return R-=$,this.bufferLength=R,this.buffer=P&(1<>R}align(){this.buffer=0,this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){const $=this.context.bitsPerCoordinate,P=this.readBits($),R=this.readBits($),o=this.context.decode,g=$<32?1/((1<<$)-1):23283064365386963e-26;return[P*g*(o[1]-o[0])+o[0],R*g*(o[3]-o[2])+o[2]]}readComponents(){const $=this.context.numComps,P=this.context.bitsPerComponent,R=P<32?1/((1<E?E:$,P=P>D?D:P,R=R{Object.defineProperty(M,"__esModule",{value:!0}),M.getXfaFontDict=function(C){const p=function(y){const N=d(y);if(!N)return null;const{baseWidths:U,baseMapping:$,factors:P}=N,R=P?U.map((E,D)=>E*P[D]):U;let o,g=-2;const x=[];for(const[E,D]of $.map((q,W)=>[q,W]).sort(([q],[W])=>q-W))E!==-1&&(E===g+1?(o.push(R[D]),g+=1):(g=E,o=[R[D]],x.push(E,o)));return x}(C),b=new _.Dict(null);b.set("BaseFont",_.Name.get(C)),b.set("Type",_.Name.get("Font")),b.set("Subtype",_.Name.get("CIDFontType2")),b.set("Encoding",_.Name.get("Identity-H")),b.set("CIDToGIDMap",_.Name.get("Identity")),b.set("W",p),b.set("FirstChar",p[0]),b.set("LastChar",p.at(-2)+p.at(-1).length-1);const F=new _.Dict(null);b.set("FontDescriptor",F);const u=new _.Dict(null);return u.set("Ordering","Identity"),u.set("Registry","Adobe"),u.set("Supplement",0),b.set("CIDSystemInfo",u),b},M.getXfaFontName=d;var n=Z(52),_=Z(4),L=Z(53),t=Z(54),e=Z(55),a=Z(56),v=Z(3),A=Z(38);const T=(0,v.getLookupTableFactory)(function(i){i["MyriadPro-Regular"]=i["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:e.MyriadProRegularFactors,baseWidths:t.LiberationSansRegularWidths,baseMapping:t.LiberationSansRegularMapping,metrics:e.MyriadProRegularMetrics},i["MyriadPro-Bold"]=i["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:e.MyriadProBoldFactors,baseWidths:t.LiberationSansBoldWidths,baseMapping:t.LiberationSansBoldMapping,metrics:e.MyriadProBoldMetrics},i["MyriadPro-It"]=i["MyriadPro-Italic"]=i["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:e.MyriadProItalicFactors,baseWidths:t.LiberationSansItalicWidths,baseMapping:t.LiberationSansItalicMapping,metrics:e.MyriadProItalicMetrics},i["MyriadPro-BoldIt"]=i["MyriadPro-BoldItalic"]=i["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:e.MyriadProBoldItalicFactors,baseWidths:t.LiberationSansBoldItalicWidths,baseMapping:t.LiberationSansBoldItalicMapping,metrics:e.MyriadProBoldItalicMetrics},i.ArialMT=i.Arial=i["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:t.LiberationSansRegularWidths,baseMapping:t.LiberationSansRegularMapping},i["Arial-BoldMT"]=i["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:t.LiberationSansBoldWidths,baseMapping:t.LiberationSansBoldMapping},i["Arial-ItalicMT"]=i["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:t.LiberationSansItalicWidths,baseMapping:t.LiberationSansItalicMapping},i["Arial-BoldItalicMT"]=i["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:t.LiberationSansBoldItalicWidths,baseMapping:t.LiberationSansBoldItalicMapping},i["Calibri-Regular"]={name:"LiberationSans-Regular",factors:n.CalibriRegularFactors,baseWidths:t.LiberationSansRegularWidths,baseMapping:t.LiberationSansRegularMapping,metrics:n.CalibriRegularMetrics},i["Calibri-Bold"]={name:"LiberationSans-Bold",factors:n.CalibriBoldFactors,baseWidths:t.LiberationSansBoldWidths,baseMapping:t.LiberationSansBoldMapping,metrics:n.CalibriBoldMetrics},i["Calibri-Italic"]={name:"LiberationSans-Italic",factors:n.CalibriItalicFactors,baseWidths:t.LiberationSansItalicWidths,baseMapping:t.LiberationSansItalicMapping,metrics:n.CalibriItalicMetrics},i["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:n.CalibriBoldItalicFactors,baseWidths:t.LiberationSansBoldItalicWidths,baseMapping:t.LiberationSansBoldItalicMapping,metrics:n.CalibriBoldItalicMetrics},i["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:a.SegoeuiRegularFactors,baseWidths:t.LiberationSansRegularWidths,baseMapping:t.LiberationSansRegularMapping,metrics:a.SegoeuiRegularMetrics},i["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:a.SegoeuiBoldFactors,baseWidths:t.LiberationSansBoldWidths,baseMapping:t.LiberationSansBoldMapping,metrics:a.SegoeuiBoldMetrics},i["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:a.SegoeuiItalicFactors,baseWidths:t.LiberationSansItalicWidths,baseMapping:t.LiberationSansItalicMapping,metrics:a.SegoeuiItalicMetrics},i["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:a.SegoeuiBoldItalicFactors,baseWidths:t.LiberationSansBoldItalicWidths,baseMapping:t.LiberationSansBoldItalicMapping,metrics:a.SegoeuiBoldItalicMetrics},i["Helvetica-Regular"]=i.Helvetica={name:"LiberationSans-Regular",factors:L.HelveticaRegularFactors,baseWidths:t.LiberationSansRegularWidths,baseMapping:t.LiberationSansRegularMapping,metrics:L.HelveticaRegularMetrics},i["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:L.HelveticaBoldFactors,baseWidths:t.LiberationSansBoldWidths,baseMapping:t.LiberationSansBoldMapping,metrics:L.HelveticaBoldMetrics},i["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:L.HelveticaItalicFactors,baseWidths:t.LiberationSansItalicWidths,baseMapping:t.LiberationSansItalicMapping,metrics:L.HelveticaItalicMetrics},i["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:L.HelveticaBoldItalicFactors,baseWidths:t.LiberationSansBoldItalicWidths,baseMapping:t.LiberationSansBoldItalicMapping,metrics:L.HelveticaBoldItalicMetrics}});function d(i){const C=(0,A.normalizeFontName)(i);return T()[C]}},(vt,M)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.CalibriRegularMetrics=M.CalibriRegularFactors=M.CalibriItalicMetrics=M.CalibriItalicFactors=M.CalibriBoldMetrics=M.CalibriBoldItalicMetrics=M.CalibriBoldItalicFactors=M.CalibriBoldFactors=void 0,M.CalibriBoldFactors=[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],M.CalibriBoldMetrics={lineHeight:1.2207,lineGap:.2207},M.CalibriBoldItalicFactors=[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],M.CalibriBoldItalicMetrics={lineHeight:1.2207,lineGap:.2207},M.CalibriItalicFactors=[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],M.CalibriItalicMetrics={lineHeight:1.2207,lineGap:.2207},M.CalibriRegularFactors=[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],M.CalibriRegularMetrics={lineHeight:1.2207,lineGap:.2207}},(vt,M)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.HelveticaRegularMetrics=M.HelveticaRegularFactors=M.HelveticaItalicMetrics=M.HelveticaItalicFactors=M.HelveticaBoldMetrics=M.HelveticaBoldItalicMetrics=M.HelveticaBoldItalicFactors=M.HelveticaBoldFactors=void 0,M.HelveticaBoldFactors=[.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],M.HelveticaBoldMetrics={lineHeight:1.2,lineGap:.2},M.HelveticaBoldItalicFactors=[.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],M.HelveticaBoldItalicMetrics={lineHeight:1.35,lineGap:.2},M.HelveticaItalicFactors=[.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],M.HelveticaItalicMetrics={lineHeight:1.35,lineGap:.2},M.HelveticaRegularFactors=[.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],M.HelveticaRegularMetrics={lineHeight:1.2,lineGap:.2}},(vt,M)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.LiberationSansRegularWidths=M.LiberationSansRegularMapping=M.LiberationSansItalicWidths=M.LiberationSansItalicMapping=M.LiberationSansBoldWidths=M.LiberationSansBoldMapping=M.LiberationSansBoldItalicWidths=M.LiberationSansBoldItalicMapping=void 0,M.LiberationSansBoldWidths=[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],M.LiberationSansBoldMapping=[-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],M.LiberationSansBoldItalicWidths=[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],M.LiberationSansBoldItalicMapping=[-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],M.LiberationSansItalicWidths=[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],M.LiberationSansItalicMapping=[-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],M.LiberationSansRegularWidths=[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],M.LiberationSansRegularMapping=[-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]},(vt,M)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.MyriadProRegularMetrics=M.MyriadProRegularFactors=M.MyriadProItalicMetrics=M.MyriadProItalicFactors=M.MyriadProBoldMetrics=M.MyriadProBoldItalicMetrics=M.MyriadProBoldItalicFactors=M.MyriadProBoldFactors=void 0,M.MyriadProBoldFactors=[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],M.MyriadProBoldMetrics={lineHeight:1.2,lineGap:.2},M.MyriadProBoldItalicFactors=[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],M.MyriadProBoldItalicMetrics={lineHeight:1.2,lineGap:.2},M.MyriadProItalicFactors=[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],M.MyriadProItalicMetrics={lineHeight:1.2,lineGap:.2},M.MyriadProRegularFactors=[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],M.MyriadProRegularMetrics={lineHeight:1.2,lineGap:.2}},(vt,M)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.SegoeuiRegularMetrics=M.SegoeuiRegularFactors=M.SegoeuiItalicMetrics=M.SegoeuiItalicFactors=M.SegoeuiBoldMetrics=M.SegoeuiBoldItalicMetrics=M.SegoeuiBoldItalicFactors=M.SegoeuiBoldFactors=void 0,M.SegoeuiBoldFactors=[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],M.SegoeuiBoldMetrics={lineHeight:1.33008,lineGap:0},M.SegoeuiBoldItalicFactors=[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],M.SegoeuiBoldItalicMetrics={lineHeight:1.33008,lineGap:0},M.SegoeuiItalicFactors=[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],M.SegoeuiItalicMetrics={lineHeight:1.33008,lineGap:0},M.SegoeuiRegularFactors=[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],M.SegoeuiRegularMetrics={lineHeight:1.33008,lineGap:0}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.PostScriptEvaluator=M.PostScriptCompiler=M.PDFFunctionFactory=void 0,M.isPDFFunction=function(g){let x;if(g instanceof n.Dict)x=g;else{if(!(g instanceof t.BaseStream))return!1;x=g.dict}return x.has("FunctionType")};var n=Z(4),_=Z(2),L=Z(58),t=Z(5),e=Z(59);M.PDFFunctionFactory=class{constructor({xref:g,isEvalSupported:x=!0}){this.xref=g,this.isEvalSupported=x!==!1}create(g){const x=this.getCached(g);if(x)return x;const E=v.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:g instanceof n.Ref?this.xref.fetch(g):g});return this._cache(g,E),E}createFromArray(g){const x=this.getCached(g);if(x)return x;const E=v.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:g instanceof n.Ref?this.xref.fetch(g):g});return this._cache(g,E),E}getCached(g){var E;let x;if(g instanceof n.Ref?x=g:g instanceof n.Dict?x=g.objId:g instanceof t.BaseStream&&(x=(E=g.dict)==null?void 0:E.objId),x){const D=this._localFunctionCache.getByRef(x);if(D)return D}return null}_cache(g,x){var D;if(!x)throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.');let E;g instanceof n.Ref?E=g:g instanceof n.Dict?E=g.objId:g instanceof t.BaseStream&&(E=(D=g.dict)==null?void 0:D.objId),E&&this._localFunctionCache.set(null,E,x)}get _localFunctionCache(){return(0,_.shadow)(this,"_localFunctionCache",new e.LocalFunctionCache)}};function a(o){if(!Array.isArray(o))return null;const g=o.length;for(let x=0;x>c)*h,S&=(1<V?O=V:O0&&(it=W[tt-1]);let st=D[1];tt>1,S=q.length>>1,h=new T(s),m=Object.create(null);let k=8192;const I=new Float32Array(S);return function(tt,it,st,X){let J,j,O="";const H=I;for(J=0;JK&&(j=K)),z[J]=j}k>0&&(k--,m[O]=z),st.set(z,X)}}}const R=class R{constructor(g){this.stack=g?Array.from(g):[]}push(g){if(this.stack.length>=R.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(g)}pop(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}copy(g){if(this.stack.length+g>=R.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");const x=this.stack;for(let E=x.length-g,D=g-1;D>=0;D--,E++)x.push(x[E])}index(g){this.push(this.stack[this.stack.length-g-1])}roll(g,x){const E=this.stack,D=E.length-g,q=E.length-1,W=D+(x-Math.floor(x/g)*g);for(let w=D,s=q;w0?x.push(w<>s);break;case"ceiling":w=x.pop(),x.push(Math.ceil(w));break;case"copy":w=x.pop(),x.copy(w);break;case"cos":w=x.pop(),x.push(Math.cos(w%360/180*Math.PI));break;case"cvi":w=0|x.pop(),x.push(w);break;case"cvr":break;case"div":s=x.pop(),w=x.pop(),x.push(w/s);break;case"dup":x.copy(1);break;case"eq":s=x.pop(),w=x.pop(),x.push(w===s);break;case"exch":x.roll(2,1);break;case"exp":s=x.pop(),w=x.pop(),x.push(w**s);break;case"false":x.push(!1);break;case"floor":w=x.pop(),x.push(Math.floor(w));break;case"ge":s=x.pop(),w=x.pop(),x.push(w>=s);break;case"gt":s=x.pop(),w=x.pop(),x.push(w>s);break;case"idiv":s=x.pop(),w=x.pop(),x.push(w/s|0);break;case"index":w=x.pop(),x.index(w);break;case"le":s=x.pop(),w=x.pop(),x.push(w<=s);break;case"ln":w=x.pop(),x.push(Math.log(w));break;case"log":w=x.pop(),x.push(Math.log10(w));break;case"lt":s=x.pop(),w=x.pop(),x.push(w=g?new C(g):o.max<=g?o:new b(o,g)}class P{compile(g,x,E){const D=[],q=[],W=x.length>>1,w=E.length>>1;let s,c,S,h,m,k,I,B,tt=0;for(let st=0;stJ.min&&(V.unshift("Math.max(",O,", "),V.push(")")),H{Object.defineProperty(M,"__esModule",{value:!0}),M.PostScriptParser=M.PostScriptLexer=void 0;var n=Z(2),_=Z(4),L=Z(3);M.PostScriptParser=class{constructor(v){this.lexer=v,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(v){return this.token.type===v?(this.nextToken(),!0):!1}expect(v){if(this.accept(v))return!0;throw new n.FormatError(`Unexpected symbol: found ${this.token.type} expected ${v}.`)}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))return;this.parseCondition()}}parseCondition(){const v=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(t.RBRACE),this.accept(t.IF))this.operators[v]=this.operators.length,this.operators[v+1]="jz";else{if(!this.accept(t.LBRACE))throw new n.FormatError("PS Function: error parsing conditional.");{const A=this.operators.length;this.operators.push(null,null);const T=this.operators.length;this.parseBlock(),this.expect(t.RBRACE),this.expect(t.IFELSE),this.operators[A]=this.operators.length,this.operators[A+1]="j",this.operators[v]=T,this.operators[v+1]="jz"}}}};const t={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};class e{static get opCache(){return(0,n.shadow)(this,"opCache",Object.create(null))}constructor(v,A){this.type=v,this.value=A}static getOperator(v){var A;return(A=e.opCache)[v]||(A[v]=new e(t.OPERATOR,v))}static get LBRACE(){return(0,n.shadow)(this,"LBRACE",new e(t.LBRACE,"{"))}static get RBRACE(){return(0,n.shadow)(this,"RBRACE",new e(t.RBRACE,"}"))}static get IF(){return(0,n.shadow)(this,"IF",new e(t.IF,"IF"))}static get IFELSE(){return(0,n.shadow)(this,"IFELSE",new e(t.IFELSE,"IFELSE"))}}M.PostScriptLexer=class{constructor(v){this.stream=v,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let v=!1,A=this.currentChar;for(;;){if(A<0)return _.EOF;if(v)A!==10&&A!==13||(v=!1);else if(A===37)v=!0;else if(!(0,L.isWhiteSpace)(A))break;A=this.nextChar()}switch(0|A){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 e(t.NUMBER,this.getNumber());case 123:return this.nextChar(),e.LBRACE;case 125:return this.nextChar(),e.RBRACE}const T=this.strBuf;for(T.length=0,T[0]=String.fromCharCode(A);(A=this.nextChar())>=0&&(A>=65&&A<=90||A>=97&&A<=122);)T.push(String.fromCharCode(A));const d=T.join("");switch(d.toLowerCase()){case"if":return e.IF;case"ifelse":return e.IFELSE;default:return e.getOperator(d)}}getNumber(){let v=this.currentChar;const A=this.strBuf;for(A.length=0,A[0]=String.fromCharCode(v);(v=this.nextChar())>=0&&(v>=48&&v<=57||v===45||v===46);)A.push(String.fromCharCode(v));const T=parseFloat(A.join(""));if(isNaN(T))throw new n.FormatError(`Invalid floating point number: ${T}`);return T}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.RegionalImageCache=M.LocalTilingPatternCache=M.LocalImageCache=M.LocalGStateCache=M.LocalFunctionCache=M.LocalColorSpaceCache=M.GlobalImageCache=void 0;var n=Z(2),_=Z(4);class L{constructor(v){this.constructor===L&&(0,n.unreachable)("Cannot initialize BaseLocalCache."),this._onlyRefs=(v==null?void 0:v.onlyRefs)===!0,this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new _.RefSetCache}getByName(v){this._onlyRefs&&(0,n.unreachable)("Should not call `getByName` method.");const A=this._nameRefMap.get(v);return A?this.getByRef(A):this._imageMap.get(v)||null}getByRef(v){return this._imageCache.get(v)||null}set(v,A,T){(0,n.unreachable)("Abstract method `set` called.")}}M.LocalImageCache=class extends L{set(v,A=null,T){if(typeof v!="string")throw new Error('LocalImageCache.set - expected "name" argument.');if(A){if(this._imageCache.has(A))return;this._nameRefMap.set(v,A),this._imageCache.put(A,T)}else this._imageMap.has(v)||this._imageMap.set(v,T)}},M.LocalColorSpaceCache=class extends L{set(v=null,A=null,T){if(typeof v!="string"&&!A)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(A){if(this._imageCache.has(A))return;v!==null&&this._nameRefMap.set(v,A),this._imageCache.put(A,T)}else this._imageMap.has(v)||this._imageMap.set(v,T)}},M.LocalFunctionCache=class extends L{constructor(v){super({onlyRefs:!0})}set(v=null,A,T){if(!A)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(A)||this._imageCache.put(A,T)}},M.LocalGStateCache=class extends L{set(v,A=null,T){if(typeof v!="string")throw new Error('LocalGStateCache.set - expected "name" argument.');if(A){if(this._imageCache.has(A))return;this._nameRefMap.set(v,A),this._imageCache.put(A,T)}else this._imageMap.has(v)||this._imageMap.set(v,T)}},M.LocalTilingPatternCache=class extends L{constructor(v){super({onlyRefs:!0})}set(v=null,A,T){if(!A)throw new Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(A)||this._imageCache.put(A,T)}},M.RegionalImageCache=class extends L{constructor(v){super({onlyRefs:!0})}set(v=null,A,T){if(!A)throw new Error('RegionalImageCache.set - expected "ref" argument.');this._imageCache.has(A)||this._imageCache.put(A,T)}};const e=class e{constructor(){this._refCache=new _.RefSetCache,this._imageCache=new _.RefSetCache}get _byteSize(){let v=0;for(const A of this._imageCache)v+=A.byteSize;return v}get _cacheLimitReached(){return!(this._imageCache.size{Object.defineProperty(M,"__esModule",{value:!0}),M.bidi=function(p,b=-1,F=!1){let u=!0;const l=p.length;if(l===0||F)return T(p,u,F);d.length=l,i.length=l;let y,N,U=0;for(y=0;y4?(u=!0,b=0):(u=!1,b=1));const $=[];for(y=0;y=0&&i[W]==="ET";--W)i[W]="EN";for(let W=y+1;W0&&(w=i[y-1]);let s=o;W+1E&&t(E)&&(q=E);for(E=D;E>=q;--E){let W=-1;for(y=0,N=$.length;y=0&&(A(d,W,y),W=-1):W<0&&(W=y);W>=0&&A(d,W,$.length)}for(y=0,N=d.length;y"||(d[y]="")}return T(d.join(""),u)};var n=Z(2);const _=["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"],L=["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 t(C){return(1&C)!=0}function e(C){return(1&C)==0}function a(C,p,b){let F,u;for(F=p,u=C.length;F{Object.defineProperty(M,"__esModule",{value:!0}),M.getFontSubstitution=function(i,C,p,b,F){const u=b=(0,n.normalizeFontName)(b);let l=i.get(u);if(l)return l;let y=v.get(b);if(!y){for(const[g,x]of A)if(b.startsWith(g)){b=`${x}${b.substring(g.length)}`,y=v.get(b);break}}let N=!1;y||(y=v.get(F),N=!0);const U=`${C.getDocId()}_s${C.createFontId()}`;if(!y){if(!(0,_.validateFontName)(b))return i.set(u,null),null;const g=/bold/gi.test(b),x=/oblique|italic/gi.test(b);return l={css:U,guessFallback:!0,loadedName:U,baseFontName:b,src:`local(${b})`,style:g&&x&&a||g&&t||x&&e||L},i.set(u,l),l}const $=[];N&&(0,_.validateFontName)(b)&&$.push(`local(${b})`);const{style:P,ultimate:R}=T(y,$,p),o=R===null;return l={css:`${U}${o?"":`,${R}`}`,guessFallback:o,loadedName:U,baseFontName:b,src:$.join(","),style:P},i.set(u,l),l};var n=Z(38),_=Z(3);const L={style:"normal",weight:"normal"},t={style:"normal",weight:"bold"},e={style:"italic",weight:"normal"},a={style:"italic",weight:"bold"},v=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:L,ultimate:"serif"}],["Times-Bold",{alias:"Times-Roman",style:t,ultimate:"serif"}],["Times-Italic",{alias:"Times-Roman",style:e,ultimate:"serif"}],["Times-BoldItalic",{alias:"Times-Roman",style:a,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:L,ultimate:"sans-serif"}],["Helvetica-Bold",{alias:"Helvetica",path:"LiberationSans-Bold.ttf",style:t,ultimate:"sans-serif"}],["Helvetica-Oblique",{alias:"Helvetica",path:"LiberationSans-Italic.ttf",style:e,ultimate:"sans-serif"}],["Helvetica-BoldOblique",{alias:"Helvetica",path:"LiberationSans-BoldItalic.ttf",style:a,ultimate:"sans-serif"}],["Courier",{local:["Courier","Courier New","Liberation Mono","Nimbus Mono","Nimbus Mono L","Cousine","Cumberland","TeX Gyre Cursor","FreeMono"],style:L,ultimate:"monospace"}],["Courier-Bold",{alias:"Courier",style:t,ultimate:"monospace"}],["Courier-Oblique",{alias:"Courier",style:e,ultimate:"monospace"}],["Courier-BoldOblique",{alias:"Courier",style:a,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:L,fallback:"Helvetica"}],["ArialNarrow-Bold",{alias:"ArialNarrow",style:t,fallback:"Helvetica-Bold"}],["ArialNarrow-Italic",{alias:"ArialNarrow",style:e,fallback:"Helvetica-Oblique"}],["ArialNarrow-BoldItalic",{alias:"ArialNarrow",style:a,fallback:"Helvetica-BoldOblique"}],["Calibri",{local:["Calibri","Carlito"],style:L,fallback:"Helvetica"}],["Calibri-Bold",{alias:"Calibri",style:t,fallback:"Helvetica-Bold"}],["Calibri-Italic",{alias:"Calibri",style:e,fallback:"Helvetica-Oblique"}],["Calibri-BoldItalic",{alias:"Calibri",style:a,fallback:"Helvetica-BoldOblique"}],["Wingdings",{local:["Wingdings","URW Dingbats"],style:L}],["Wingdings-Regular",{alias:"Wingdings"}],["Wingdings-Bold",{alias:"Wingdings"}]]),A=new Map([["Arial-Black","ArialBlack"]]);function T({alias:d,local:i,path:C,fallback:p,style:b,ultimate:F},u,l,y=!0,N=!0,U=""){const $={style:null,ultimate:null};if(i){const P=U?` ${U}`:"";for(const R of i)u.push(`local(${R}${P})`)}if(d){const P=v.get(d),R=U||function(g){switch(g){case t:return"Bold";case e:return"Italic";case a:return"Bold Italic";default:if((g==null?void 0:g.weight)==="bold")return"Bold";if((g==null?void 0:g.style)==="italic")return"Italic"}return""}(b);Object.assign($,T(P,u,l,y&&!p,N&&!C,R))}if(b&&($.style=b),F&&($.ultimate=F),y&&p){const P=v.get(p),{ultimate:R}=T(P,u,l,y,N&&!C,U);$.ultimate||($.ultimate=R)}return N&&C&&l&&u.push(`url(${l}${C})`),$}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.ImageResizer=void 0;var n=Z(2);class _{constructor(t,e){this._imgData=t,this._isMask=e}static needsToBeResized(t,e){if(t<=this._goodSquareLength&&e<=this._goodSquareLength)return!1;const{MAX_DIM:a}=this;if(t>a||e>a)return!0;const v=t*e;return this._hasMaxArea?v>this.MAX_AREA:v(this.MAX_AREA=this._goodSquareLength**2))}static get MAX_DIM(){return(0,n.shadow)(this,"MAX_DIM",this._guessMax(2048,65537,0,1))}static get MAX_AREA(){return this._hasMaxArea=!0,(0,n.shadow)(this,"MAX_AREA",this._guessMax(_._goodSquareLength,this.MAX_DIM,128,0)**2)}static set MAX_AREA(t){t>=0&&(this._hasMaxArea=!0,(0,n.shadow)(this,"MAX_AREA",t))}static setMaxArea(t){this._hasMaxArea||(this.MAX_AREA=t>>2)}static _areGoodDims(t,e){try{const a=new OffscreenCanvas(t,e),v=a.getContext("2d");v.fillRect(0,0,1,1);const A=v.getImageData(0,0,1,1).data[3];return a.width=a.height=1,A!==0}catch{return!1}}static _guessMax(t,e,a,v){for(;t+a+1>3,N=y+3&-4;if(y!==N){const U=new Uint8Array(N*e);let $=0;for(let P=0,R=e*y;P{Object.defineProperty(M,"__esModule",{value:!0}),M.MurmurHash3_64=void 0;var n=Z(2);const _=3285377520,L=4294901760,t=65535;M.MurmurHash3_64=class{constructor(a){this.h1=a?4294967295&a:_,this.h2=a?4294967295&a:_}update(a){let v,A;if(typeof a=="string"){v=new Uint8Array(2*a.length),A=0;for(let U=0,$=a.length;U<$;U++){const P=a.charCodeAt(U);P<=255?v[A++]=P:(v[A++]=P>>>8,v[A++]=255&P)}}else{if(!(0,n.isArrayBuffer)(a))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");v=a.slice(),A=v.byteLength}const T=A>>2,d=A-4*T,i=new Uint32Array(v.buffer,0,T);let C=0,p=0,b=this.h1,F=this.h2;const u=3432918353,l=461845907,y=11601,N=13715;for(let U=0;U>>17,C=C*l&L|C*N&t,b^=C,b=b<<13|b>>>19,b=5*b+3864292196):(p=i[U],p=p*u&L|p*y&t,p=p<<15|p>>>17,p=p*l&L|p*N&t,F^=p,F=F<<13|F>>>19,F=5*F+3864292196);switch(C=0,d){case 3:C^=v[4*T+2]<<16;case 2:C^=v[4*T+1]<<8;case 1:C^=v[4*T],C=C*u&L|C*y&t,C=C<<15|C>>>17,C=C*l&L|C*N&t,1&T?b^=C:F^=C}this.h1=b,this.h2=F}hexdigest(){let a=this.h1,v=this.h2;return a^=v>>>1,a=3981806797*a&L|36045*a&t,v=4283543511*v&L|(2950163797*(v<<16|a>>>16)&L)>>>16,a^=v>>>1,a=444984403*a&L|60499*a&t,v=3301882366*v&L|(3120437893*(v<<16|a>>>16)&L)>>>16,a^=v>>>1,(a>>>0).toString(16).padStart(8,"0")+(v>>>0).toString(16).padStart(8,"0")}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.OperatorList=void 0;var n=Z(2);function _(A,T,d,i,C){let p=A;for(let b=0,F=T.length-1;b1e3&&(y=Math.max(y,$),P+=U+2,$=0,U=0),N.push({transform:q,x:$,y:P,w:W.width,h:W.height}),$+=W.width+2,U=Math.max(U,W.height)}const R=Math.max(y,$)+1,o=P+U+1,g=new Uint8Array(R*o*4),x=R<<2;for(let D=0;D=0;)q[s-4]=q[s],q[s-3]=q[s+1],q[s-2]=q[s+2],q[s-1]=q[s+3],q[s+W]=q[s+W-4],q[s+W+1]=q[s+W-3],q[s+W+2]=q[s+W-2],q[s+W+3]=q[s+W-1],s-=x}const E={width:R,height:o};if(T.isOffscreenCanvasSupported){const D=new OffscreenCanvas(R,o);D.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(g.buffer),R,o),0,0),E.bitmap=D.transferToImageBitmap(),E.data=null}else E.kind=n.ImageKind.RGBA_32BPP,E.data=g;return i.splice(b,4*l,n.OPS.paintInlineImageXObjectGroup),C.splice(b,4*l,[E,N]),b+1}),_(L,[n.OPS.save,n.OPS.transform,n.OPS.paintImageMaskXObject,n.OPS.restore],null,function(T,d){const i=T.fnArray,C=(d-(T.iCurr-3))%4;switch(C){case 0:return i[d]===n.OPS.save;case 1:return i[d]===n.OPS.transform;case 2:return i[d]===n.OPS.paintImageMaskXObject;case 3:return i[d]===n.OPS.restore}throw new Error(`iterateImageMaskGroup - invalid pos: ${C}`)},function(T,d){const i=T.fnArray,C=T.argsArray,p=T.iCurr,b=p-3,F=p-2,u=p-1;let l=Math.floor((d-b)/4);if(l<10)return d-(d-b)%4;let y,N,U=!1;const $=C[u][0],P=C[F][0],R=C[F][1],o=C[F][2],g=C[F][3];if(R===o){U=!0,y=F+4;let x=u+4;for(let E=1;E=4&&d[p-4]===d[b]&&d[p-3]===d[F]&&d[p-2]===d[u]&&d[p-1]===d[l]&&i[p-4][0]===y&&i[p-4][1]===N&&(U++,$-=5);let P=$+4;for(let R=1;R=i)break}C=(C||L)[T[d]],C&&!Array.isArray(C)?(b.iCurr=d,d++,(!C.checkFn||(0,C.checkFn)(b))&&(p=C),C=null):d++}this.state=C,this.match=p,this.lastProcessed=d}flush(){for(;this.match;){const T=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,T),this.match=null,this.state=null,this._optimize()}}reset(){this.state=null,this.match=null,this.lastProcessed=0}}const v=class v{constructor(T=0,d){this._streamSink=d,this.fnArray=[],this.argsArray=[],this.optimizer=!d||T&n.RenderingIntentFlag.OPLIST?new t(this):new e(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=d?null:Promise.resolve()}set isOffscreenCanvasSupported(T){this.optimizer.isOffscreenCanvasSupported=T}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(T,d){this.optimizer.push(T,d),this.weight++,this._streamSink&&(this.weight>=v.CHUNK_SIZE||this.weight>=v.CHUNK_SIZE_ABOUT&&(T===n.OPS.restore||T===n.OPS.endText))&&this.flush()}addImageOps(T,d,i){i!==void 0&&this.addOp(n.OPS.beginMarkedContentProps,["OC",i]),this.addOp(T,d),i!==void 0&&this.addOp(n.OPS.endMarkedContent,[])}addDependency(T){this.dependencies.has(T)||(this.dependencies.add(T),this.addOp(n.OPS.dependency,[T]))}addDependencies(T){for(const d of T)this.addDependency(d)}addOpList(T){if(T instanceof v){for(const d of T.dependencies)this.dependencies.add(d);for(let d=0,i=T.length;d{Object.defineProperty(M,"__esModule",{value:!0}),M.PDFImage=void 0;var n=Z(2),_=Z(28),L=Z(5),t=Z(12),e=Z(18),a=Z(62),v=Z(26),A=Z(30),T=Z(4);function d(p,b,F,u){return(p=b+p*F)<0?p=0:p>u&&(p=u),p}function i(p,b,F,u,l,y){const N=l*y;let U;U=b<=8?new Uint8Array(N):b<=16?new Uint16Array(N):new Uint32Array(N);const $=F/l,P=u/y;let R,o,g,x,E=0;const D=new Uint16Array(l),q=F;for(R=0;R0&&Number.isInteger(u.height)&&u.height>0&&(u.width!==x||u.height!==E)&&((0,n.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),x=u.width,E=u.height),x<1||E<1)throw new n.FormatError(`Invalid image width: ${x} or height: ${E}`);this.width=x,this.height=E,this.interpolate=R.get("I","Interpolate"),this.imageMask=R.get("IM","ImageMask")||!1,this.matte=R.get("Matte")||!1;let D=u.bitsPerComponent;if(!D&&(D=R.get("BPC","BitsPerComponent"),!D)){if(!this.imageMask)throw new n.FormatError(`Bits per component missing in image: ${this.imageMask}`);D=1}if(this.bpc=D,!this.imageMask){let W=R.getRaw("CS")||R.getRaw("ColorSpace");if(!W)switch((0,n.info)("JPX images (which do not require color spaces)"),u.numComps){case 1:W=T.Name.get("DeviceGray");break;case 3:W=T.Name.get("DeviceRGB");break;case 4:W=T.Name.get("DeviceCMYK");break;default:throw new Error(`JPX images with ${u.numComps} color components not supported.`)}this.colorSpace=t.ColorSpace.parse({cs:W,xref:b,resources:l?F:null,pdfFunctionFactory:$,localColorSpaceCache:P}),this.numComps=this.colorSpace.numComps}if(this.decode=R.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,D)||U&&!t.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;const W=(1<>3)*u,$=b.byteLength;let P,R;if(!l||y&&U!==$?y?(P=new Uint8Array(U),P.set(b),P.fill(255,$)):P=new Uint8Array(b):P=b,y)for(R=0;R<$;R++)P[R]^=255;return{data:P,width:F,height:u,interpolate:N}}static async createMask({imgArray:b,width:F,height:u,imageIsFromDecodeStream:l,inverseDecode:y,interpolate:N,isOffscreenCanvasSupported:U=!1}){const $=F===1&&u===1&&y===(b.length===0||!!(128&b[0]));if($)return{isSingleOpaquePixel:$};if(U){if(a.ImageResizer.needsToBeResized(F,u)){const g=new Uint8ClampedArray(F*u*4);return(0,_.convertBlackAndWhiteToRGBA)({src:b,dest:g,width:F,height:u,nonBlackColor:0,inverseDecode:y}),a.ImageResizer.createImage({kind:n.ImageKind.RGBA_32BPP,data:g,width:F,height:u,interpolate:N})}const P=new OffscreenCanvas(F,u),R=P.getContext("2d"),o=R.createImageData(F,u);return(0,_.convertBlackAndWhiteToRGBA)({src:b,dest:o.data,width:F,height:u,nonBlackColor:0,inverseDecode:y}),R.putImageData(o,0,0),{data:null,width:F,height:u,interpolate:N,bitmap:P.transferToImageBitmap()}}return this.createRawMask({imgArray:b,width:F,height:u,inverseDecode:y,imageIsFromDecodeStream:l,interpolate:N})}get drawWidth(){var b,F;return Math.max(this.width,((b=this.smask)==null?void 0:b.width)||0,((F=this.mask)==null?void 0:F.width)||0)}get drawHeight(){var b,F;return Math.max(this.height,((b=this.smask)==null?void 0:b.height)||0,((F=this.mask)==null?void 0:F.height)||0)}decodeBuffer(b){const F=this.bpc,u=this.numComps,l=this.decodeAddends,y=this.decodeCoefficients,N=(1<>7&1,U[x+1]=g>>6&1,U[x+2]=g>>5&1,U[x+3]=g>>4&1,U[x+4]=g>>3&1,U[x+5]=g>>2&1,U[x+6]=g>>1&1,U[x+7]=1&g,x+=8;if(x>=1}}else{let E=0;for(g=0,x=0,o=N;x>D;q<0?q=0:q>R&&(q=R),U[x]=q,g&=(1<U[w+1]){D=255;break}}$[o]=D}}}if($)for(o=0,x=3,g=F*l;o>3,o=F&&a.ImageResizer.needsToBeResized(u,l);if(!b){let S;if(this.colorSpace.name==="DeviceGray"&&P===1?S=n.ImageKind.GRAYSCALE_1BPP:this.colorSpace.name!=="DeviceRGB"||P!==8||this.needsDecode||(S=n.ImageKind.RGB_24BPP),S&&!this.smask&&!this.mask&&u===U&&l===$){const h=this.getImageBytes($*R,{});if(F)return o?a.ImageResizer.createImage({data:h,kind:S,width:u,height:l,interpolate:this.interpolate},this.needsDecode):this.createBitmap(S,U,$,h);if(y.kind=S,y.data=h,this.needsDecode){(0,n.assert)(S===n.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");const m=y.data;for(let k=0,I=m.length;k>3,U=this.getImageBytes(l*N,{internal:!0}),$=this.getComponents(U);let P,R;if(y===1){if(R=u*l,this.needsDecode)for(P=0;P{Object.defineProperty(M,"__esModule",{value:!0}),M.Catalog=void 0;var n=Z(3),_=Z(2),L=Z(4),t=Z(67),e=Z(5),a=Z(68),v=Z(12),A=Z(69),T=Z(59),d=Z(70),i=Z(72);function C(b){return b instanceof L.Dict&&(b=b.get("D")),Array.isArray(b)?b:null}class p{constructor(F,u){if(this.pdfManager=F,this.xref=u,this._catDict=u.getCatalogObj(),!(this._catDict instanceof L.Dict))throw new _.FormatError("Catalog object is not a dictionary.");this.toplevelPagesDict,this._actualNumPages=null,this.fontCache=new L.RefSetCache,this.builtInCMapCache=new Map,this.standardFontDataCache=new Map,this.globalImageCache=new T.GlobalImageCache,this.pageKidsCountCache=new L.RefSetCache,this.pageIndexCache=new L.RefSetCache,this.nonBlendModesSet=new L.RefSet,this.systemFontCache=new Map}cloneDict(){return this._catDict.clone()}get version(){const F=this._catDict.get("Version");if(F instanceof L.Name){if(n.PDF_VERSION_REGEXP.test(F.name))return(0,_.shadow)(this,"version",F.name);(0,_.warn)(`Invalid PDF catalog version: ${F.name}`)}return(0,_.shadow)(this,"version",null)}get lang(){const F=this._catDict.get("Lang");return(0,_.shadow)(this,"lang",typeof F=="string"?(0,_.stringToPDFString)(F):null)}get needsRendering(){const F=this._catDict.get("NeedsRendering");return(0,_.shadow)(this,"needsRendering",typeof F=="boolean"&&F)}get collection(){let F=null;try{const u=this._catDict.get("Collection");u instanceof L.Dict&&u.size>0&&(F=u)}catch(u){if(u instanceof n.MissingDataException)throw u;(0,_.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,_.shadow)(this,"collection",F)}get acroForm(){let F=null;try{const u=this._catDict.get("AcroForm");u instanceof L.Dict&&u.size>0&&(F=u)}catch(u){if(u instanceof n.MissingDataException)throw u;(0,_.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,_.shadow)(this,"acroForm",F)}get acroFormRef(){const F=this._catDict.getRaw("AcroForm");return(0,_.shadow)(this,"acroFormRef",F instanceof L.Ref?F:null)}get metadata(){var l;const F=this._catDict.getRaw("Metadata");if(!(F instanceof L.Ref))return(0,_.shadow)(this,"metadata",null);let u=null;try{const y=this.xref.fetch(F,!((l=this.xref.encrypt)!=null&&l.encryptMetadata));if(y instanceof e.BaseStream&&y.dict instanceof L.Dict){const N=y.dict.get("Type"),U=y.dict.get("Subtype");if((0,L.isName)(N,"Metadata")&&(0,L.isName)(U,"XML")){const $=(0,_.stringToUTF8String)(y.getString());$&&(u=new d.MetadataParser($).serializable)}}}catch(y){if(y instanceof n.MissingDataException)throw y;(0,_.info)(`Skipping invalid Metadata: "${y}".`)}return(0,_.shadow)(this,"metadata",u)}get markInfo(){let F=null;try{F=this._readMarkInfo()}catch(u){if(u instanceof n.MissingDataException)throw u;(0,_.warn)("Unable to read mark info.")}return(0,_.shadow)(this,"markInfo",F)}_readMarkInfo(){const F=this._catDict.get("MarkInfo");if(!(F instanceof L.Dict))return null;const u={Marked:!1,UserProperties:!1,Suspects:!1};for(const l in u){const y=F.get(l);typeof y=="boolean"&&(u[l]=y)}return u}get structTreeRoot(){let F=null;try{F=this._readStructTreeRoot()}catch(u){if(u instanceof n.MissingDataException)throw u;(0,_.warn)("Unable read to structTreeRoot info.")}return(0,_.shadow)(this,"structTreeRoot",F)}_readStructTreeRoot(){const F=this._catDict.getRaw("StructTreeRoot"),u=this.xref.fetchIfRef(F);if(!(u instanceof L.Dict))return null;const l=new i.StructTreeRoot(u,F);return l.init(),l}get toplevelPagesDict(){const F=this._catDict.get("Pages");if(!(F instanceof L.Dict))throw new _.FormatError("Invalid top-level pages dictionary.");return(0,_.shadow)(this,"toplevelPagesDict",F)}get documentOutline(){let F=null;try{F=this._readDocumentOutline()}catch(u){if(u instanceof n.MissingDataException)throw u;(0,_.warn)("Unable to read document outline.")}return(0,_.shadow)(this,"documentOutline",F)}_readDocumentOutline(){let F=this._catDict.get("Outlines");if(!(F instanceof L.Dict)||(F=F.getRaw("First"),!(F instanceof L.Ref)))return null;const u={items:[]},l=[{obj:F,parent:u}],y=new L.RefSet;y.put(F);const N=this.xref,U=new Uint8ClampedArray(3);for(;l.length>0;){const $=l.shift(),P=N.fetchIfRef($.obj);if(P===null)continue;if(!P.has("Title"))throw new _.FormatError("Invalid outline item encountered.");const R={url:null,dest:null,action:null};p.parseDestDictionary({destDict:P,resultObj:R,docBaseUrl:this.baseUrl,docAttachments:this.attachments});const o=P.get("Title"),g=P.get("F")||0,x=P.getArray("C"),E=P.get("Count");let D=U;!Array.isArray(x)||x.length!==3||x[0]===0&&x[1]===0&&x[2]===0||(D=v.ColorSpace.singletons.rgb.getRgb(x,0));const q={action:R.action,attachment:R.attachment,dest:R.dest,url:R.url,unsafeUrl:R.unsafeUrl,newWindow:R.newWindow,setOCGState:R.setOCGState,title:(0,_.stringToPDFString)(o),color:D,count:Number.isInteger(E)?E:void 0,bold:!!(2&g),italic:!!(1&g),items:[]};$.parent.items.push(q),F=P.getRaw("First"),F instanceof L.Ref&&!y.has(F)&&(l.push({obj:F,parent:q}),y.put(F)),F=P.getRaw("Next"),F instanceof L.Ref&&!y.has(F)&&(l.push({obj:F,parent:$.parent}),y.put(F))}return u.items.length>0?u.items:null}get permissions(){let F=null;try{F=this._readPermissions()}catch(u){if(u instanceof n.MissingDataException)throw u;(0,_.warn)("Unable to read permissions.")}return(0,_.shadow)(this,"permissions",F)}_readPermissions(){const F=this.xref.trailer.get("Encrypt");if(!(F instanceof L.Dict))return null;let u=F.get("P");if(typeof u!="number")return null;u+=4294967296;const l=[];for(const y in _.PermissionFlag){const N=_.PermissionFlag[y];u&N&&l.push(N)}return l}get optionalContentConfig(){let F=null;try{const u=this._catDict.get("OCProperties");if(!u)return(0,_.shadow)(this,"optionalContentConfig",null);const l=u.get("D");if(!l)return(0,_.shadow)(this,"optionalContentConfig",null);const y=u.get("OCGs");if(!Array.isArray(y))return(0,_.shadow)(this,"optionalContentConfig",null);const N=[],U=[];for(const $ of y){if(!($ instanceof L.Ref))continue;U.push($);const P=this.xref.fetchIfRef($);N.push({id:$.toString(),name:typeof P.get("Name")=="string"?(0,_.stringToPDFString)(P.get("Name")):null,intent:typeof P.get("Intent")=="string"?(0,_.stringToPDFString)(P.get("Intent")):null})}F=this._readOptionalContentConfig(l,U),F.groups=N}catch(u){if(u instanceof n.MissingDataException)throw u;(0,_.warn)(`Unable to read optional content config: ${u}`)}return(0,_.shadow)(this,"optionalContentConfig",F)}_readOptionalContentConfig(F,u){function l(R){const o=[];if(Array.isArray(R))for(const g of R)g instanceof L.Ref&&u.includes(g)&&o.push(g.toString());return o}function y(R,o=0){if(!Array.isArray(R))return null;const g=[];for(const E of R){if(E instanceof L.Ref&&u.includes(E)){$.put(E),g.push(E.toString());continue}const D=N(E,o);D&&g.push(D)}if(o>0)return g;const x=[];for(const E of u)$.has(E)||x.push(E.toString());return x.length&&g.push({name:null,order:x}),g}function N(R,o){if(++o>P)return(0,_.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;const g=U.fetchIfRef(R);if(!Array.isArray(g))return null;const x=U.fetchIfRef(g[0]);if(typeof x!="string")return null;const E=y(g.slice(1),o);return E&&E.length?{name:(0,_.stringToPDFString)(x),order:E}:null}const U=this.xref,$=new L.RefSet,P=10;return{name:typeof F.get("Name")=="string"?(0,_.stringToPDFString)(F.get("Name")):null,creator:typeof F.get("Creator")=="string"?(0,_.stringToPDFString)(F.get("Creator")):null,baseState:F.get("BaseState")instanceof L.Name?F.get("BaseState").name:null,on:l(F.get("ON")),off:l(F.get("OFF")),order:y(F.get("Order")),groups:null}}setActualNumPages(F=null){this._actualNumPages=F}get hasActualNumPages(){return this._actualNumPages!==null}get _pagesCount(){const F=this.toplevelPagesDict.get("Count");if(!Number.isInteger(F))throw new _.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,_.shadow)(this,"_pagesCount",F)}get numPages(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}get destinations(){const F=this._readDests(),u=Object.create(null);if(F instanceof t.NameTree)for(const[l,y]of F.getAll()){const N=C(y);N&&(u[(0,_.stringToPDFString)(l)]=N)}else F instanceof L.Dict&&F.forEach(function(l,y){const N=C(y);N&&(u[l]=N)});return(0,_.shadow)(this,"destinations",u)}getDestination(F){const u=this._readDests();if(u instanceof t.NameTree){const l=C(u.get(F));if(l)return l;const y=this.destinations[F];if(y)return(0,_.warn)(`Found "${F}" at an incorrect position in the NameTree.`),y}else if(u instanceof L.Dict){const l=C(u.get(F));if(l)return l}return null}_readDests(){const F=this._catDict.get("Names");return F!=null&&F.has("Dests")?new t.NameTree(F.getRaw("Dests"),this.xref):this._catDict.has("Dests")?this._catDict.get("Dests"):void 0}get pageLabels(){let F=null;try{F=this._readPageLabels()}catch(u){if(u instanceof n.MissingDataException)throw u;(0,_.warn)("Unable to read page labels.")}return(0,_.shadow)(this,"pageLabels",F)}_readPageLabels(){const F=this._catDict.getRaw("PageLabels");if(!F)return null;const u=new Array(this.numPages);let l=null,y="";const N=new t.NumberTree(F,this.xref).getAll();let U="",$=1;for(let P=0,R=this.numPages;P=1))throw new _.FormatError("Invalid start in PageLabel dictionary.");$=g}else $=1}switch(l){case"D":U=$;break;case"R":case"r":U=(0,n.toRomanNumerals)($,l==="r");break;case"A":case"a":const g=26,x=l==="a"?97:65,E=$-1;U=String.fromCharCode(x+E%g).repeat(Math.floor(E/g)+1);break;default:if(l)throw new _.FormatError(`Invalid style "${l}" in PageLabel dictionary.`);U=""}u[P]=y+U,$++}return u}get pageLayout(){const F=this._catDict.get("PageLayout");let u="";if(F instanceof L.Name)switch(F.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":u=F.name}return(0,_.shadow)(this,"pageLayout",u)}get pageMode(){const F=this._catDict.get("PageMode");let u="UseNone";if(F instanceof L.Name)switch(F.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":u=F.name}return(0,_.shadow)(this,"pageMode",u)}get viewerPreferences(){const F=this._catDict.get("ViewerPreferences");if(!(F instanceof L.Dict))return(0,_.shadow)(this,"viewerPreferences",null);let u=null;for(const l of F.getKeys()){const y=F.get(l);let N;switch(l){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":typeof y=="boolean"&&(N=y);break;case"NonFullScreenPageMode":if(y instanceof L.Name)switch(y.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":N=y.name;break;default:N="UseNone"}break;case"Direction":if(y instanceof L.Name)switch(y.name){case"L2R":case"R2L":N=y.name;break;default:N="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(y instanceof L.Name)switch(y.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":N=y.name;break;default:N="CropBox"}break;case"PrintScaling":if(y instanceof L.Name)switch(y.name){case"None":case"AppDefault":N=y.name;break;default:N="AppDefault"}break;case"Duplex":if(y instanceof L.Name)switch(y.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":N=y.name;break;default:N="None"}break;case"PrintPageRange":Array.isArray(y)&&y.length%2==0&&y.every((U,$,P)=>Number.isInteger(U)&&U>0&&($===0||U>=P[$-1])&&U<=this.numPages)&&(N=y);break;case"NumCopies":Number.isInteger(y)&&y>0&&(N=y);break;default:(0,_.warn)(`Ignoring non-standard key in ViewerPreferences: ${l}.`);continue}N!==void 0?(u||(u=Object.create(null)),u[l]=N):(0,_.warn)(`Bad value, for key "${l}", in ViewerPreferences: ${y}.`)}return(0,_.shadow)(this,"viewerPreferences",u)}get openAction(){const F=this._catDict.get("OpenAction"),u=Object.create(null);if(F instanceof L.Dict){const l=new L.Dict(this.xref);l.set("A",F);const y={url:null,dest:null,action:null};p.parseDestDictionary({destDict:l,resultObj:y}),Array.isArray(y.dest)?u.dest=y.dest:y.action&&(u.action=y.action)}else Array.isArray(F)&&(u.dest=F);return(0,_.shadow)(this,"openAction",(0,_.objectSize)(u)>0?u:null)}get attachments(){const F=this._catDict.get("Names");let u=null;if(F instanceof L.Dict&&F.has("EmbeddedFiles")){const l=new t.NameTree(F.getRaw("EmbeddedFiles"),this.xref);for(const[y,N]of l.getAll()){const U=new A.FileSpec(N,this.xref);u||(u=Object.create(null)),u[(0,_.stringToPDFString)(y)]=U.serializable}}return(0,_.shadow)(this,"attachments",u)}get xfaImages(){const F=this._catDict.get("Names");let u=null;if(F instanceof L.Dict&&F.has("XFAImages")){const l=new t.NameTree(F.getRaw("XFAImages"),this.xref);for(const[y,N]of l.getAll())u||(u=new L.Dict(this.xref)),u.set((0,_.stringToPDFString)(y),N)}return(0,_.shadow)(this,"xfaImages",u)}_collectJavaScript(){const F=this._catDict.get("Names");let u=null;function l(N,U){if(!(U instanceof L.Dict)||!(0,L.isName)(U.get("S"),"JavaScript"))return;let $=U.get("JS");if($ instanceof e.BaseStream)$=$.getString();else if(typeof $!="string")return;$=(0,_.stringToPDFString)($).replaceAll("\0",""),$&&(u||(u=new Map)).set(N,$)}if(F instanceof L.Dict&&F.has("JavaScript")){const N=new t.NameTree(F.getRaw("JavaScript"),this.xref);for(const[U,$]of N.getAll())l((0,_.stringToPDFString)(U),$)}const y=this._catDict.get("OpenAction");return y&&l("OpenAction",y),u}get jsActions(){const F=this._collectJavaScript();let u=(0,n.collectActions)(this.xref,this._catDict,_.DocumentActionEventType);if(F){u||(u=Object.create(null));for(const[l,y]of F)l in u?u[l].push(y):u[l]=[y]}return(0,_.shadow)(this,"jsActions",u)}async fontFallback(F,u){const l=await Promise.all(this.fontCache);for(const y of l)if(y.loadedName===F){y.fallback(u);return}}async cleanup(F=!1){(0,a.clearGlobalCaches)(),this.globalImageCache.clear(F),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.nonBlendModesSet.clear();const u=await Promise.all(this.fontCache);for(const{dict:l}of u)delete l.cacheKey;this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear(),this.systemFontCache.clear()}async getPageDict(F){const u=[this.toplevelPagesDict],l=new L.RefSet,y=this._catDict.getRaw("Pages");y instanceof L.Ref&&l.put(y);const N=this.xref,U=this.pageKidsCountCache,$=this.pageIndexCache;let P=0;for(;u.length;){const R=u.pop();if(R instanceof L.Ref){const E=U.get(R);if(E>=0&&P+E<=F){P+=E;continue}if(l.has(R))throw new _.FormatError("Pages tree contains circular reference.");l.put(R);const D=await N.fetchAsync(R);if(D instanceof L.Dict){let q=D.getRaw("Type");if(q instanceof L.Ref&&(q=await N.fetchAsync(q)),(0,L.isName)(q,"Page")||!D.has("Kids")){if(U.has(R)||U.put(R,1),$.has(R)||$.put(R,P),P===F)return[D,R];P++;continue}}u.push(D);continue}if(!(R instanceof L.Dict))throw new _.FormatError("Page dictionary kid reference points to wrong type of object.");const{objId:o}=R;let g=R.getRaw("Count");if(g instanceof L.Ref&&(g=await N.fetchAsync(g)),Number.isInteger(g)&&g>=0&&(o&&!U.has(o)&&U.put(o,g),P+g<=F)){P+=g;continue}let x=R.getRaw("Kids");if(x instanceof L.Ref&&(x=await N.fetchAsync(x)),!Array.isArray(x)){let E=R.getRaw("Type");if(E instanceof L.Ref&&(E=await N.fetchAsync(E)),(0,L.isName)(E,"Page")||!R.has("Kids")){if(P===F)return[R,null];P++;continue}throw new _.FormatError("Page dictionary kids object is not an array.")}for(let E=x.length-1;E>=0;E--)u.push(x[E])}throw new Error(`Page index ${F} not found.`)}async getAllPageDicts(F=!1){const{ignoreErrors:u}=this.pdfManager.evaluatorOptions,l=[{currentNode:this.toplevelPagesDict,posInKids:0}],y=new L.RefSet,N=this._catDict.getRaw("Pages");N instanceof L.Ref&&y.put(N);const U=new Map,$=this.xref,P=this.pageIndexCache;let R=0;function o(x,E){E&&!P.has(E)&&P.put(E,R),U.set(R++,[x,E])}function g(x){if(x instanceof n.XRefEntryException&&!F)throw x;F&&u&&R===0&&((0,_.warn)(`getAllPageDicts - Skipping invalid first page: "${x}".`),x=L.Dict.empty),U.set(R++,[x,null])}for(;l.length>0;){const x=l.at(-1),{currentNode:E,posInKids:D}=x;let q=E.getRaw("Kids");if(q instanceof L.Ref)try{q=await $.fetchAsync(q)}catch(c){g(c);break}if(!Array.isArray(q)){g(new _.FormatError("Page dictionary kids object is not an array."));break}if(D>=q.length){l.pop();continue}const W=q[D];let w;if(W instanceof L.Ref){if(y.has(W)){g(new _.FormatError("Pages tree contains circular reference."));break}y.put(W);try{w=await $.fetchAsync(W)}catch(c){g(c);break}}else w=W;if(!(w instanceof L.Dict)){g(new _.FormatError("Page dictionary kid reference points to wrong type of object."));break}let s=w.getRaw("Type");if(s instanceof L.Ref)try{s=await $.fetchAsync(s)}catch(c){g(c);break}(0,L.isName)(s,"Page")||!w.has("Kids")?o(w,W instanceof L.Ref?W:null):l.push({currentNode:w,posInKids:0}),x.posInKids++}return U}getPageIndex(F){const u=this.pageIndexCache.get(F);if(u!==void 0)return Promise.resolve(u);const l=this.xref;let y=0;const N=U=>function(P){let R,o=0;return l.fetchAsync(P).then(function(g){if((0,L.isRefsEqual)(P,F)&&!(0,L.isDict)(g,"Page")&&!(g instanceof L.Dict&&!g.has("Type")&&g.has("Contents")))throw new _.FormatError("The reference does not point to a /Page dictionary.");if(!g)return null;if(!(g instanceof L.Dict))throw new _.FormatError("Node must be a dictionary.");return R=g.getRaw("Parent"),g.getAsync("Parent")}).then(function(g){if(!g)return null;if(!(g instanceof L.Dict))throw new _.FormatError("Parent must be a dictionary.");return g.getAsync("Kids")}).then(function(g){if(!g)return null;const x=[];let E=!1;for(const D of g){if(!(D instanceof L.Ref))throw new _.FormatError("Kid must be a reference.");if((0,L.isRefsEqual)(D,P)){E=!0;break}x.push(l.fetchAsync(D).then(function(q){if(!(q instanceof L.Dict))throw new _.FormatError("Kid node must be a dictionary.");q.has("Count")?o+=q.get("Count"):o++}))}if(!E)throw new _.FormatError("Kid reference not found in parent's kids.");return Promise.all(x).then(function(){return[o,R]})})}(U).then($=>{if(!$)return this.pageIndexCache.put(F,y),y;const[P,R]=$;return y+=P,N(R)});return N(F)}get baseUrl(){const F=this._catDict.get("URI");if(F instanceof L.Dict){const u=F.get("Base");if(typeof u=="string"){const l=(0,_.createValidAbsoluteUrl)(u,null,{tryConvertEncoding:!0});if(l)return(0,_.shadow)(this,"baseUrl",l.href)}}return(0,_.shadow)(this,"baseUrl",this.pdfManager.docBaseUrl)}static parseDestDictionary({destDict:F,resultObj:u,docBaseUrl:l=null,docAttachments:y=null}){if(!(F instanceof L.Dict)){(0,_.warn)("parseDestDictionary: `destDict` must be a dictionary.");return}let N,U,$=F.get("A");if($ instanceof L.Dict||(F.has("Dest")?$=F.get("Dest"):($=F.get("AA"),$ instanceof L.Dict&&($.has("D")?$=$.get("D"):$.has("U")&&($=$.get("U"))))),$ instanceof L.Dict){const P=$.get("S");if(!(P instanceof L.Name)){(0,_.warn)("parseDestDictionary: Invalid type in Action dictionary.");return}const R=P.name;switch(R){case"ResetForm":const o=$.get("Flags"),g=(1&(typeof o=="number"?o:0))==0,x=[],E=[];for(const tt of $.get("Fields")||[])tt instanceof L.Ref?E.push(tt.toString()):typeof tt=="string"&&x.push((0,_.stringToPDFString)(tt));u.resetForm={fields:x,refs:E,include:g};break;case"URI":N=$.get("URI"),N instanceof L.Name&&(N="/"+N.name);break;case"GoTo":U=$.get("D");break;case"Launch":case"GoToR":const D=$.get("F");D instanceof L.Dict?N=D.get("F")||null:typeof D=="string"&&(N=D);let q=$.get("D");if(q&&(q instanceof L.Name&&(q=q.name),typeof N=="string")){const tt=N.split("#")[0];typeof q=="string"?N=tt+"#"+q:Array.isArray(q)&&(N=tt+"#"+JSON.stringify(q))}const W=$.get("NewWindow");typeof W=="boolean"&&(u.newWindow=W);break;case"GoToE":const w=$.get("T");let s;if(y&&w instanceof L.Dict){const tt=w.get("R"),it=w.get("N");(0,L.isName)(tt,"C")&&typeof it=="string"&&(s=y[(0,_.stringToPDFString)(it)])}s?u.attachment=s:(0,_.warn)('parseDestDictionary - unimplemented "GoToE" action.');break;case"Named":const c=$.get("N");c instanceof L.Name&&(u.action=c.name);break;case"SetOCGState":const S=$.get("State"),h=$.get("PreserveRB");if(!Array.isArray(S)||S.length===0)break;const m=[];for(const tt of S)if(tt instanceof L.Name)switch(tt.name){case"ON":case"OFF":case"Toggle":m.push(tt.name)}else tt instanceof L.Ref&&m.push(tt.toString());if(m.length!==S.length)break;u.setOCGState={state:m,preserveRB:typeof h!="boolean"||h};break;case"JavaScript":const k=$.get("JS");let I;k instanceof e.BaseStream?I=k.getString():typeof k=="string"&&(I=k);const B=I&&(0,n.recoverJsURL)((0,_.stringToPDFString)(I));if(B){N=B.url,u.newWindow=B.newWindow;break}default:if(R==="JavaScript"||R==="SubmitForm")break;(0,_.warn)(`parseDestDictionary - unsupported action: "${R}".`)}}else F.has("Dest")&&(U=F.get("Dest"));if(typeof N=="string"){const P=(0,_.createValidAbsoluteUrl)(N,l,{addDefaultProtocol:!0,tryConvertEncoding:!0});P&&(u.url=P.href),u.unsafeUrl=N}U&&(U instanceof L.Name&&(U=U.name),typeof U=="string"?u.dest=(0,_.stringToPDFString)(U):Array.isArray(U)&&(u.dest=U))}}M.Catalog=p},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.NumberTree=M.NameTree=void 0;var n=Z(4),_=Z(2);class L{constructor(e,a,v){this.constructor===L&&(0,_.unreachable)("Cannot initialize NameOrNumberTree."),this.root=e,this.xref=a,this._type=v}getAll(){const e=new Map;if(!this.root)return e;const a=this.xref,v=new n.RefSet;v.put(this.root);const A=[this.root];for(;A.length>0;){const T=a.fetchIfRef(A.shift());if(!(T instanceof n.Dict))continue;if(T.has("Kids")){const i=T.get("Kids");if(!Array.isArray(i))continue;for(const C of i){if(v.has(C))throw new _.FormatError(`Duplicate entry in "${this._type}" tree.`);A.push(C),v.put(C)}continue}const d=T.get(this._type);if(Array.isArray(d))for(let i=0,C=d.length;i10)return(0,_.warn)(`Search depth limit reached for "${this._type}" tree.`),null;const d=v.get("Kids");if(!Array.isArray(d))return null;let i=0,C=d.length-1;for(;i<=C;){const p=i+C>>1,b=a.fetchIfRef(d[p]),F=b.get("Limits");if(ea.fetchIfRef(F[1]))){v=b;break}i=p+1}}if(i>C)return null}const T=v.get(this._type);if(Array.isArray(T)){let d=0,i=T.length-2;for(;d<=i;){const C=d+i>>1,p=C+(1&C),b=a.fetchIfRef(T[p]);if(eb))return a.fetchIfRef(T[p+1]);d=p+2}}}return null}}M.NameTree=class extends L{constructor(e,a){super(e,a,"Names")}},M.NumberTree=class extends L{constructor(e,a){super(e,a,"Nums")}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.clearGlobalCaches=function(){(0,n.clearPatternCaches)(),(0,_.clearPrimitiveCaches)(),(0,L.clearUnicodeCaches)()};var n=Z(50),_=Z(4),L=Z(40)},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.FileSpec=void 0;var n=Z(2),_=Z(5),L=Z(4);function t(e){return e.has("UF")?e.get("UF"):e.has("F")?e.get("F"):e.has("Unix")?e.get("Unix"):e.has("Mac")?e.get("Mac"):e.has("DOS")?e.get("DOS"):null}M.FileSpec=class{constructor(a,v){a instanceof L.Dict&&(this.xref=v,this.root=a,a.has("FS")&&(this.fs=a.get("FS")),this.description=a.has("Desc")?(0,n.stringToPDFString)(a.get("Desc")):"",a.has("RF")&&(0,n.warn)("Related file specifications are not supported"),this.contentAvailable=!0,a.has("EF")||(this.contentAvailable=!1,(0,n.warn)("Non-embedded file specifications are not supported")))}get filename(){if(!this._filename&&this.root){const a=t(this.root)||"unnamed";this._filename=(0,n.stringToPDFString)(a).replaceAll("\\\\","\\").replaceAll("\\/","/").replaceAll("\\","/")}return this._filename}get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=t(this.root.get("EF")));let a=null;if(this.contentRef){const v=this.xref.fetchIfRef(this.contentRef);v instanceof _.BaseStream?a=v.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 a}get serializable(){return{filename:this.filename,content:this.content}}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.MetadataParser=void 0;var n=Z(71);M.MetadataParser=class{constructor(L){L=this._repair(L);const t=new n.SimpleXMLParser({lowerCaseName:!0}).parseFromString(L);this._metadataMap=new Map,this._data=L,t&&this._parse(t)}_repair(L){return L.replace(/^[^<]+/,"").replaceAll(/>\\376\\377([^<]+)/g,function(t,e){const a=e.replaceAll(/\\([0-3])([0-7])([0-7])/g,function(A,T,d,i){return String.fromCharCode(64*T+8*d+1*i)}).replaceAll(/&(amp|apos|gt|lt|quot);/g,function(A,T){switch(T){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${T} isn't defined.`)}),v=[">"];for(let A=0,T=a.length;A=32&&d<127&&d!==60&&d!==62&&d!==38?v.push(String.fromCharCode(d)):v.push("&#x"+(65536+d).toString(16).substring(1)+";")}return v.join("")})}_getSequence(L){const t=L.nodeName;return t!=="rdf:bag"&&t!=="rdf:seq"&&t!=="rdf:alt"?null:L.childNodes.filter(e=>e.nodeName==="rdf:li")}_parseArray(L){if(!L.hasChildNodes())return;const[t]=L.childNodes,e=this._getSequence(t)||[];this._metadataMap.set(L.nodeName,e.map(a=>a.textContent.trim()))}_parse(L){let t=L.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 e of t.childNodes)if(e.nodeName==="rdf:description")for(const a of e.childNodes){const v=a.nodeName;switch(v){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(a);continue}this._metadataMap.set(v,a.textContent.trim())}}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.XMLParserErrorCode=M.XMLParserBase=M.SimpleXMLParser=M.SimpleDOMNode=void 0;var n=Z(3);const _={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};M.XMLParserErrorCode=_;function L(a,v){const A=a[v];return A===" "||A===` `||A==="\r"||A===" "}class t{_resolveEntities(v){return v.replaceAll(/&([^;]+);/g,(A,T)=>{if(T.substring(0,2)==="#x")return String.fromCodePoint(parseInt(T.substring(2),16));if(T.substring(0,1)==="#")return String.fromCodePoint(parseInt(T.substring(1),10));switch(T){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return this.onResolveEntity(T)})}_parseContent(v,A){const T=[];let d=A;function i(){for(;d"&&v[d]!=="/";)++d;const C=v.substring(A,d);for(i();d"&&v[d]!=="/"&&v[d]!=="?";){i();let p="",b="";for(;d"&&v[T]!=="?"&&v[T]!=="/";)++T;const d=v.substring(A,T);(function(){for(;T");)++T;return{name:d,value:v.substring(i,T),parsed:T-A}}parseXml(v){let A=0;for(;A",T),d<0){this.onError(_.UnterminatedElement);return}this.onEndElement(v.substring(T,d)),T=d+1;break;case"?":++T;const i=this._parseProcessingInstruction(v,T);if(v.substring(T+i.parsed,T+i.parsed+2)!=="?>"){this.onError(_.UnterminatedXmlDeclaration);return}this.onPi(i.name,i.value),T+=i.parsed+2;break;case"!":if(v.substring(T+1,T+3)==="--"){if(d=v.indexOf("-->",T+3),d<0){this.onError(_.UnterminatedComment);return}this.onComment(v.substring(T+3,d)),T=d+3}else if(v.substring(T+1,T+8)==="[CDATA["){if(d=v.indexOf("]]>",T+8),d<0){this.onError(_.UnterminatedCdat);return}this.onCdata(v.substring(T+8,d)),T=d+3}else{if(v.substring(T+1,T+8)!=="DOCTYPE"){this.onError(_.MalformedElement);return}{const b=v.indexOf("[",T+8);let F=!1;if(d=v.indexOf(">",T+8),d<0){this.onError(_.UnterminatedDoctypeDeclaration);return}if(b>0&&d>b){if(d=v.indexOf("]>",T+8),d<0){this.onError(_.UnterminatedDoctypeDeclaration);return}F=!0}const u=v.substring(T+8,d+(F?1:0));this.onDoctype(u),T=d+(F?2:1)}}break;default:const C=this._parseContent(v,T);if(C===null){this.onError(_.MalformedElement);return}let p=!1;if(v.substring(T+C.parsed,T+C.parsed+2)==="/>")p=!0;else if(v.substring(T+C.parsed,T+C.parsed+1)!==">"){this.onError(_.UnterminatedElement);return}this.onBeginElement(C.name,C.attributes,p),T+=C.parsed+(p?2:1)}}else{for(;T0}searchNode(v,A){var C;if(A>=v.length)return this;const T=v[A];if(T.name.startsWith("#")&&A0)d.push([i,0]),i=i.childNodes[0];else{if(d.length===0)return null;for(;d.length!==0;){const[p,b]=d.pop(),F=b+1;if(F");for(const A of this.childNodes)A.dump(v);v.push(``)}else this.nodeValue?v.push(`>${(0,n.encodeToXmlString)(this.nodeValue)}`):v.push("/>")}else v.push((0,n.encodeToXmlString)(this.nodeValue))}}M.SimpleDOMNode=e,M.SimpleXMLParser=class extends t{constructor({hasAttributes:v=!1,lowerCaseName:A=!1}){super(),this._currentFragment=null,this._stack=null,this._errorCode=_.NoError,this._hasAttributes=v,this._lowerCaseName=A}parseFromString(v){if(this._currentFragment=[],this._stack=[],this._errorCode=_.NoError,this.parseXml(v),this._errorCode!==_.NoError)return;const[A]=this._currentFragment;return A?{documentElement:A}:void 0}onText(v){if(function(d){for(let i=0,C=d.length;i{var p,$r,F,Ji,l,jr,N,Ur;Object.defineProperty(M,"__esModule",{value:!0}),M.StructTreeRoot=M.StructTreePage=void 0;var n=Z(2),_=Z(4),L=Z(67),t=Z(73);const e=1,a=2,v=3,A=4,T=5,$=class ${constructor(R,o){_t(this,p);this.dict=R,this.ref=o instanceof _.Ref?o:null,this.roleMap=new Map,this.structParentIds=null}init(){this.readRoleMap()}addAnnotationIdToPage(R,o){Lt(this,p,$r).call(this,R,o,A)}readRoleMap(){const R=this.dict.get("RoleMap");R instanceof _.Dict&&R.forEach((o,g)=>{g instanceof _.Name&&this.roleMap.set(o,g.name)})}static async canCreateStructureTree({catalogRef:R,pdfManager:o,newAnnotationsByPage:g}){var D;if(!(R instanceof _.Ref))return(0,n.warn)("Cannot save the struct tree: no catalog reference."),!1;let x=0,E=!0;for(const[q,W]of g){const{ref:w}=await o.getPage(q);if(!(w instanceof _.Ref)){(0,n.warn)(`Cannot save the struct tree: page ${q} has no ref.`),E=!0;break}for(const s of W)(D=s.accessibilityData)!=null&&D.type&&(s.parentTreeId=x++,E=!1)}if(E){for(const q of g.values())for(const W of q)delete W.parentTreeId;return!1}return!0}static async createStructureTree({newAnnotationsByPage:R,xref:o,catalogRef:g,pdfManager:x,newRefs:E}){const D=x.catalog.cloneDict(),q=o.getNewTemporaryRef();D.set("StructTreeRoot",q);const W=[];await(0,t.writeObject)(g,D,W,o),E.push({ref:g,data:W.join("")});const w=new _.Dict(o);w.set("Type",_.Name.get("StructTreeRoot"));const s=o.getNewTemporaryRef();w.set("ParentTree",s);const c=[];w.set("K",c);const S=new _.Dict(o),h=[];S.set("Nums",h);const m=await Lt(this,F,Ji).call(this,{newAnnotationsByPage:R,structTreeRootRef:q,kids:c,nums:h,xref:o,pdfManager:x,newRefs:E,buffer:W});w.set("ParentTreeNextKey",m),W.length=0,await(0,t.writeObject)(s,S,W,o),E.push({ref:s,data:W.join("")}),W.length=0,await(0,t.writeObject)(q,w,W,o),E.push({ref:q,data:W.join("")})}async canUpdateStructTree({pdfManager:R,newAnnotationsByPage:o}){var W,w;if(!this.ref)return(0,n.warn)("Cannot update the struct tree: no root reference."),!1;let g=this.dict.get("ParentTreeNextKey");if(!Number.isInteger(g)||g<0)return(0,n.warn)("Cannot update the struct tree: invalid next key."),!1;const x=this.dict.get("ParentTree");if(!(x instanceof _.Dict))return(0,n.warn)("Cannot update the struct tree: ParentTree isn't a dict."),!1;const E=x.get("Nums");if(!Array.isArray(E))return(0,n.warn)("Cannot update the struct tree: nums isn't an array."),!1;const{numPages:D}=R.catalog;for(const s of o.keys()){const{pageDict:c,ref:S}=await R.getPage(s);if(!(S instanceof _.Ref))return(0,n.warn)(`Cannot save the struct tree: page ${s} has no ref.`),!1;const h=c.get("StructParents");if(!Number.isInteger(h)||h<0||h>=D)return(0,n.warn)(`Cannot save the struct tree: page ${s} has no id.`),!1}let q=!0;for(const[s,c]of o){const{pageDict:S}=await R.getPage(s);Lt(W=$,l,jr).call(W,{elements:c,xref:this.dict.xref,pageDict:S,parentTree:x});for(const h of c)(w=h.accessibilityData)!=null&&w.type&&(h.parentTreeId=g++,q=!1)}if(q){for(const s of o.values())for(const c of s)delete c.parentTreeId,delete c.structTreeParent;return!1}return!0}async updateStructureTree({newAnnotationsByPage:R,pdfManager:o,newRefs:g}){var k;const x=this.dict.xref,E=this.dict.clone(),D=this.ref;let q,W=E.getRaw("ParentTree");W instanceof _.Ref?q=x.fetch(W):(q=W,W=x.getNewTemporaryRef(),E.set("ParentTree",W)),q=q.clone();let w=q.getRaw("Nums"),s=null;w instanceof _.Ref&&(s=w,w=x.fetch(s)),w=w.slice(),s||q.set("Nums",w);let c=E.getRaw("K"),S=null;c instanceof _.Ref?(S=c,c=x.fetch(S)):(S=x.getNewTemporaryRef(),E.set("K",S)),c=Array.isArray(c)?c.slice():[c];const h=[],m=await Lt(k=$,F,Ji).call(k,{newAnnotationsByPage:R,structTreeRootRef:D,kids:c,nums:w,xref:x,pdfManager:o,newRefs:g,buffer:h});E.set("ParentTreeNextKey",m),h.length=0,await(0,t.writeObject)(S,c,h,x),g.push({ref:S,data:h.join("")}),s&&(h.length=0,await(0,t.writeObject)(s,w,h,x),g.push({ref:s,data:h.join("")})),h.length=0,await(0,t.writeObject)(W,q,h,x),g.push({ref:W,data:h.join("")}),h.length=0,await(0,t.writeObject)(D,E,h,x),g.push({ref:D,data:h.join("")})}};p=new WeakSet,$r=function(R,o,g){if(!(R instanceof _.Ref)||o<0)return;this.structParentIds||(this.structParentIds=new _.RefSetCache);let x=this.structParentIds.get(R);x||(x=[],this.structParentIds.put(R,x)),x.push([o,g])},F=new WeakSet,Ji=async function({newAnnotationsByPage:R,structTreeRootRef:o,kids:g,nums:x,xref:E,pdfManager:D,newRefs:q,buffer:W}){const w=_.Name.get("OBJR");let s=-1/0;for(const[c,S]of R){const{ref:h}=await D.getPage(c);for(const{accessibilityData:{type:m,title:k,lang:I,alt:B,expanded:tt,actualText:it},ref:st,parentTreeId:X,structTreeParent:J}of S){s=Math.max(s,X);const j=E.getNewTemporaryRef(),O=new _.Dict(E);O.set("S",_.Name.get(m)),k&&O.set("T",k),I&&O.set("Lang",I),B&&O.set("Alt",B),tt&&O.set("E",tt),it&&O.set("ActualText",it),J?await Lt(this,N,Ur).call(this,{structTreeParent:J,tagDict:O,newTagRef:j,fallbackRef:o,xref:E,newRefs:q,buffer:W}):O.set("P",o);const H=new _.Dict(E);O.set("K",H),H.set("Type",w),H.set("Pg",h),H.set("Obj",st),W.length=0,await(0,t.writeObject)(j,O,W,E),q.push({ref:j,data:W.join("")}),x.push(X,j),g.push(j)}}return s+1},l=new WeakSet,jr=function({elements:R,xref:o,pageDict:g,parentTree:x}){const E=new Map;for(const w of R)if(w.structTreeParentId){const s=parseInt(w.structTreeParentId.split("_mc")[1],10);E.set(s,w)}const D=g.get("StructParents"),q=new L.NumberTree(x,o).get(D);if(!Array.isArray(q))return;const W=(w,s,c)=>{const S=E.get(w);if(S){const h=s.getRaw("P"),m=o.fetchIfRef(h);return h instanceof _.Ref&&m instanceof _.Dict&&(S.structTreeParent={ref:c,dict:s}),!0}return!1};for(const w of q){if(!(w instanceof _.Ref))continue;const s=o.fetch(w),c=s.get("K");if(Number.isInteger(c))W(c,s,w);else if(Array.isArray(c)){for(let S of c)if(S=o.fetchIfRef(S),Number.isInteger(S)&&W(S,s,w))break}}},N=new WeakSet,Ur=async function({structTreeParent:{ref:R,dict:o},tagDict:g,newTagRef:x,fallbackRef:E,xref:D,newRefs:q,buffer:W}){const w=o.getRaw("P");let s=D.fetchIfRef(w);g.set("P",w);let c,S=!1,h=s.getRaw("K");if(h instanceof _.Ref?c=D.fetch(h):(c=h,h=D.getNewTemporaryRef(),s=s.clone(),s.set("K",h),S=!0),Array.isArray(c)){const m=c.indexOf(R);if(!(m>=0)){(0,n.warn)("Cannot update the struct tree: parent kid not found."),g.set("P",E);return}c=c.slice(),c.splice(m+1,0,x)}else c instanceof _.Dict&&(c=[h,x],h=D.getNewTemporaryRef(),s.set("K",h),S=!0);W.length=0,await(0,t.writeObject)(h,c,W,D),q.push({ref:h,data:W.join("")}),S&&(W.length=0,await(0,t.writeObject)(w,s,W,D),q.push({ref:w,data:W.join("")}))},_t($,F),_t($,l),_t($,N);let d=$;M.StructTreeRoot=d;class i{constructor(R,o){this.tree=R,this.dict=o,this.kids=[],this.parseKids()}get role(){const R=this.dict.get("S"),o=R instanceof _.Name?R.name:"",{root:g}=this.tree;return g.roleMap.has(o)?g.roleMap.get(o):o}parseKids(){let R=null;const o=this.dict.getRaw("Pg");o instanceof _.Ref&&(R=o.toString());const g=this.dict.get("K");if(Array.isArray(g))for(const x of g){const E=this.parseKid(R,x);E&&this.kids.push(E)}else{const x=this.parseKid(R,g);x&&this.kids.push(x)}}parseKid(R,o){if(Number.isInteger(o))return this.tree.pageDict.objId!==R?null:new C({type:e,mcid:o,pageObjId:R});let g=null;if(o instanceof _.Ref?g=this.dict.xref.fetch(o):o instanceof _.Dict&&(g=o),!g)return null;const x=g.getRaw("Pg");x instanceof _.Ref&&(R=x.toString());const E=g.get("Type")instanceof _.Name?g.get("Type").name:null;if(E==="MCR"){if(this.tree.pageDict.objId!==R)return null;const D=g.getRaw("Stm");return new C({type:a,refObjId:D instanceof _.Ref?D.toString():null,pageObjId:R,mcid:g.get("MCID")})}if(E==="OBJR"){if(this.tree.pageDict.objId!==R)return null;const D=g.getRaw("Obj");return new C({type:v,refObjId:D instanceof _.Ref?D.toString():null,pageObjId:R})}return new C({type:T,dict:g})}}class C{constructor({type:R,dict:o=null,mcid:g=null,pageObjId:x=null,refObjId:E=null}){this.type=R,this.dict=o,this.mcid=g,this.pageObjId=x,this.refObjId=E,this.parentNode=null}}M.StructTreePage=class{constructor(R,o){this.root=R,this.rootDict=R?R.dict:null,this.pageDict=o,this.nodes=[]}parse(R){var q,W;if(!this.root||!this.rootDict)return;const o=this.rootDict.get("ParentTree");if(!o)return;const g=this.pageDict.get("StructParents"),x=R instanceof _.Ref&&((q=this.root.structParentIds)==null?void 0:q.get(R));if(!Number.isInteger(g)&&!x)return;const E=new Map,D=new L.NumberTree(o,this.rootDict.xref);if(Number.isInteger(g)){const w=D.get(g);if(Array.isArray(w))for(const s of w)s instanceof _.Ref&&this.addNode(this.rootDict.xref.fetch(s),E)}if(x)for(const[w,s]of x){const c=D.get(w);if(c){const S=this.addNode(this.rootDict.xref.fetchIfRef(c),E);((W=S==null?void 0:S.kids)==null?void 0:W.length)===1&&S.kids[0].type===v&&(S.kids[0].type=s)}}}addNode(R,o,g=0){if(g>40)return(0,n.warn)("StructTree MAX_DEPTH reached."),null;if(o.has(R))return o.get(R);const x=new i(this,R);o.set(R,x);const E=R.get("P");if(!E||(0,_.isName)(E.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(R,x)||o.delete(R),x;const D=this.addNode(E,o,g+1);if(!D)return x;let q=!1;for(const W of D.kids)W.type===T&&W.dict===R&&(W.parentNode=x,q=!0);return q||o.delete(R),x}addTopLevelNode(R,o){const g=this.rootDict.get("K");if(!g)return!1;if(g instanceof _.Dict)return g.objId!==R.objId?!1:(this.nodes[0]=o,!0);if(!Array.isArray(g))return!0;let x=!1;for(let E=0;E40){(0,n.warn)("StructTree too deep to be fully serialized.");return}const D=Object.create(null);D.role=g.role,D.children=[],x.children.push(D);const q=g.dict.get("Alt");typeof q=="string"&&(D.alt=(0,n.stringToPDFString)(q));const W=g.dict.get("Lang");typeof W=="string"&&(D.lang=(0,n.stringToPDFString)(W));for(const w of g.kids){const s=w.type===T?w.parentNode:null;s?R(s,D,E+1):w.type===e||w.type===a?D.children.push({type:"content",id:`p${w.pageObjId}_mc${w.mcid}`}):w.type===v?D.children.push({type:"object",id:w.refObjId}):w.type===A&&D.children.push({type:"annotation",id:`${n.AnnotationPrefix}${w.refObjId}`})}}const o=Object.create(null);o.children=[],o.role="Root";for(const g of this.nodes)g&&R(g,o);return o}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.incrementalUpdate=async function({originalData:F,xrefInfo:u,newRefs:l,xref:y=null,hasXfa:N=!1,xfaDatasetsRef:U=null,hasXfaDatasetsEntry:$=!1,needAppearances:P,acroFormRef:R=null,acroForm:o=null,xfaData:g=null}){await async function({xref:it,acroForm:st,acroFormRef:X,hasXfa:J,hasXfaDatasetsEntry:j,xfaDatasetsRef:O,needAppearances:H,newRefs:V}){if(!J||j||O||(0,n.warn)("XFA - Cannot save it"),!H&&(!J||!O||j))return;const z=st.clone();if(J&&!j){const G=st.get("XFA").slice();G.splice(2,0,"datasets"),G.splice(3,0,O),z.set("XFA",G)}H&&z.set("NeedAppearances",!0);const Y=[];await v(X,z,Y,it),V.push({ref:X,data:Y.join("")})}({xref:y,acroForm:o,acroFormRef:R,hasXfa:N,hasXfaDatasetsEntry:$,xfaDatasetsRef:U,needAppearances:P,newRefs:l}),N&&function({xfaData:it,xfaDatasetsRef:st,newRefs:X,xref:J}){it===null&&(it=function(V,z){const Y=new t.SimpleXMLParser({hasAttributes:!0}).parseFromString(V);for(const{xfa:K}of z){if(!K)continue;const{path:et,value:nt}=K;if(!et)continue;const at=(0,L.parseXFAPath)(et);let Q=Y.documentElement.searchNode(at,0);!Q&&at.length>1&&(Q=Y.documentElement.searchNode([at.at(-1)],0)),Q?Q.childNodes=Array.isArray(nt)?nt.map(lt=>new t.SimpleDOMNode("value",lt)):[new t.SimpleDOMNode("#text",nt)]:(0,n.warn)(`Node not found for path: ${et}`)}const G=[];return Y.documentElement.dump(G),G.join("")}(J.fetchIfRef(st).getString(),X));const j=J.encrypt;j&&(it=j.createCipherTransform(st.num,st.gen).encryptString(it));const O=`${st.num} ${st.gen} obj << /Type /EmbeddedFile /Length ${it.length}>> stream `+it+` endstream endobj `;X.push({ref:st,data:O})}({xfaData:g,xfaDatasetsRef:U,newRefs:l,xref:y});const x=new _.Dict(null),E=u.newRef;let D,q;const W=F.at(-1);W===10||W===13?(D=[],q=F.length):(D=[` `],q=F.length+1),x.set("Size",E.num+1),x.set("Prev",u.startXRef),x.set("Type",_.Name.get("XRef")),u.rootRef!==null&&x.set("Root",u.rootRef),u.infoRef!==null&&x.set("Info",u.infoRef),u.encryptRef!==null&&x.set("Encrypt",u.encryptRef),l.push({ref:E,data:""}),l=l.sort((tt,it)=>tt.ref.num-it.ref.num);const w=[[0,1,65535]],s=[0,1];let c=0;for(const{ref:tt,data:it}of l)c=Math.max(c,q),w.push([1,q,Math.min(tt.gen,65535)]),q+=it.length,s.push(tt.num,1),D.push(it);if(x.set("Index",s),Array.isArray(u.fileIds)&&u.fileIds.length>0){const tt=function(st,X){const J=Math.floor(Date.now()/1e3),j=X.filename||"",O=[J.toString(),j,st.toString()];let H=O.reduce((Y,G)=>Y+G.length,0);for(const Y of Object.values(X.info))O.push(Y),H+=Y.length;const V=new Uint8Array(H);let z=0;for(const Y of O)p(Y,z,V),z+=Y.length;return(0,n.bytesToString)((0,a.calculateMD5)(V))}(q,u);x.set("ID",[u.fileIds[0],tt])}const S=[1,Math.ceil(Math.log2(c)/8),2],h=(S[0]+S[1]+S[2])*w.length;x.set("W",S),x.set("Length",h),D.push(`${E.num} ${E.gen} obj `),await A(x,D,null),D.push(` stream `);const m=D.reduce((tt,it)=>tt+it.length,0),k=` endstream endobj startxref ${q} %%EOF `,I=new Uint8Array(F.length+m+h+k.length);I.set(F);let B=F.length;for(const tt of D)p(tt,B,I),B+=tt.length;for(const[tt,it,st]of w)B=C(tt,S[0],B,I),B=C(it,S[1],B,I),B=C(st,S[2],B,I);return p(k,B,I),I},M.writeDict=A,M.writeObject=v;var n=Z(2),_=Z(4),L=Z(3),t=Z(71),e=Z(5),a=Z(74);async function v(b,F,u,{encrypt:l=null}){const y=l==null?void 0:l.createCipherTransform(b.num,b.gen);u.push(`${b.num} ${b.gen} obj `),F instanceof _.Dict?await A(F,u,y):F instanceof e.BaseStream?await T(F,u,y):Array.isArray(F)&&await d(F,u,y),u.push(` endobj `)}async function A(b,F,u){F.push("<<");for(const l of b.getKeys())F.push(` /${(0,L.escapePDFName)(l)} `),await i(b.getRaw(l),F,u);F.push(">>")}async function T(b,F,u){let l=b.getString();const{dict:y}=b,[N,U]=await Promise.all([y.getAsync("Filter"),y.getAsync("DecodeParms")]),$=Array.isArray(N)?await y.xref.fetchIfRefAsync(N[0]):N,P=(0,_.isName)($,"FlateDecode");if(typeof CompressionStream<"u"&&(l.length>=256||P))try{const R=(0,n.stringToBytes)(l),o=new CompressionStream("deflate"),g=o.writable.getWriter();g.write(R),g.close();const x=await new Response(o.readable).arrayBuffer();l=(0,n.bytesToString)(new Uint8Array(x));let E,D;N?P||(E=Array.isArray(N)?[_.Name.get("FlateDecode"),...N]:[_.Name.get("FlateDecode"),N],U&&(D=Array.isArray(U)?[null,...U]:[null,U])):E=_.Name.get("FlateDecode"),E&&y.set("Filter",E),D&&y.set("DecodeParms",D)}catch(R){(0,n.info)(`writeStream - cannot compress data: "${R}".`)}u&&(l=u.encryptString(l)),y.set("Length",l.length),await A(y,F,u),F.push(` stream `,l,` endstream`)}async function d(b,F,u){F.push("[");let l=!0;for(const y of b)l?l=!1:F.push(" "),await i(y,F,u);F.push("]")}async function i(b,F,u){b instanceof _.Name?F.push(`/${(0,L.escapePDFName)(b.name)}`):b instanceof _.Ref?F.push(`${b.num} ${b.gen} R`):Array.isArray(b)?await d(b,F,u):typeof b=="string"?(u&&(b=u.encryptString(b)),F.push(`(${(0,L.escapeString)(b)})`)):typeof b=="number"?F.push((0,L.numberToString)(b)):typeof b=="boolean"?F.push(b.toString()):b instanceof _.Dict?await A(b,F,u):b instanceof e.BaseStream?await T(b,F,u):b===null?F.push("null"):(0,n.warn)(`Unhandled value in writer: ${typeof b}, please file a bug.`)}function C(b,F,u,l){for(let y=F+u-1;y>u-1;y--)l[y]=255&b,b>>=8;return u+F}function p(b,F,u){for(let l=0,y=b.length;l{var y,N,Hr,$,Zi,R,Xr,g,Ln,E,Qi;Object.defineProperty(M,"__esModule",{value:!0}),M.calculateSHA256=M.calculateMD5=M.PDF20=M.PDF17=M.CipherTransformFactory=M.ARCFourCipher=M.AES256Cipher=M.AES128Cipher=void 0,M.calculateSHA384=T,M.calculateSHA512=void 0;var n=Z(2),_=Z(4),L=Z(75);class t{constructor(w){this.a=0,this.b=0;const s=new Uint8Array(256),c=w.length;for(let S=0;S<256;++S)s[S]=S;for(let S=0,h=0;S<256;++S){const m=s[S];h=h+m+w[S%c]&255,s[S]=s[h],s[h]=m}this.s=s}encryptBlock(w){let s=this.a,c=this.b;const S=this.s,h=w.length,m=new Uint8Array(h);for(let k=0;k>5&255,st[X++]=m>>13&255,st[X++]=m>>21&255,st[X++]=m>>>29&255,st[X++]=0,st[X++]=0,st[X++]=0;const O=new Int32Array(16);for(X=0;X>>32-at)|0,z=et}k=k+z|0,I=I+Y|0,B=B+G|0,tt=tt+K|0}return new Uint8Array([255&k,k>>8&255,k>>16&255,k>>>24&255,255&I,I>>8&255,I>>16&255,I>>>24&255,255&B,B>>8&255,B>>16&255,B>>>24&255,255&tt,tt>>8&255,tt>>16&255,tt>>>24&255])}}();M.calculateMD5=e;class a{constructor(w,s){this.high=0|w,this.low=0|s}and(w){this.high&=w.high,this.low&=w.low}xor(w){this.high^=w.high,this.low^=w.low}or(w){this.high|=w.high,this.low|=w.low}shiftRight(w){w>=32?(this.low=this.high>>>w-32|0,this.high=0):(this.low=this.low>>>w|this.high<<32-w,this.high=this.high>>>w|0)}shiftLeft(w){w>=32?(this.high=this.low<>>32-w,this.low<<=w)}rotateRight(w){let s,c;32&w?(c=this.low,s=this.high):(s=this.low,c=this.high),w&=31,this.low=s>>>w|c<<32-w,this.high=c>>>w|s<<32-w}not(){this.high=~this.high,this.low=~this.low}add(w){const s=(this.low>>>0)+(w.low>>>0);let c=(this.high>>>0)+(w.high>>>0);s>4294967295&&(c+=1),this.low=0|s,this.high=0|c}copyTo(w,s){w[s]=this.high>>>24&255,w[s+1]=this.high>>16&255,w[s+2]=this.high>>8&255,w[s+3]=255&this.high,w[s+4]=this.low>>>24&255,w[s+5]=this.low>>16&255,w[s+6]=this.low>>8&255,w[s+7]=255&this.low}assign(w){this.high=w.high,this.low=w.low}}const v=function(){function w(I,B){return I>>>B|I<<32-B}function s(I,B,tt){return I&B^~I&tt}function c(I,B,tt){return I&B^I&tt^B&tt}function S(I){return w(I,2)^w(I,13)^w(I,22)}function h(I){return w(I,6)^w(I,11)^w(I,25)}function m(I){return w(I,7)^w(I,18)^I>>>3}const k=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];return function(B,tt,it){let st=1779033703,X=3144134277,J=1013904242,j=2773480762,O=1359893119,H=2600822924,V=528734635,z=1541459225;const Y=64*Math.ceil((it+9)/64),G=new Uint8Array(Y);let K,et;for(K=0;K>>29&255,G[K++]=it>>21&255,G[K++]=it>>13&255,G[K++]=it>>5&255,G[K++]=it<<3&255;const at=new Uint32Array(64);for(K=0;K>>10)+at[et-7]+m(at[et-15])+at[et-16]|0;let lt,ut,pt=st,yt=X,Et=J,Tt=j,xt=O,wt=H,St=V,Rt=z;for(et=0;et<64;++et)lt=Rt+h(xt)+s(xt,wt,St)+k[et]+at[et],ut=S(pt)+c(pt,yt,Et),Rt=St,St=wt,wt=xt,xt=Tt+lt|0,Tt=Et,Et=yt,yt=pt,pt=lt+ut|0;st=st+pt|0,X=X+yt|0,J=J+Et|0,j=j+Tt|0,O=O+xt|0,H=H+wt|0,V=V+St|0,z=z+Rt|0}var Q;return new Uint8Array([st>>24&255,st>>16&255,st>>8&255,255&st,X>>24&255,X>>16&255,X>>8&255,255&X,J>>24&255,J>>16&255,J>>8&255,255&J,j>>24&255,j>>16&255,j>>8&255,255&j,O>>24&255,O>>16&255,O>>8&255,255&O,H>>24&255,H>>16&255,H>>8&255,255&H,V>>24&255,V>>16&255,V>>8&255,255&V,z>>24&255,z>>16&255,z>>8&255,255&z])}}();M.calculateSHA256=v;const A=function(){function w(I,B,tt,it,st){I.assign(B),I.and(tt),st.assign(B),st.not(),st.and(it),I.xor(st)}function s(I,B,tt,it,st){I.assign(B),I.and(tt),st.assign(B),st.and(it),I.xor(st),st.assign(tt),st.and(it),I.xor(st)}function c(I,B,tt){I.assign(B),I.rotateRight(28),tt.assign(B),tt.rotateRight(34),I.xor(tt),tt.assign(B),tt.rotateRight(39),I.xor(tt)}function S(I,B,tt){I.assign(B),I.rotateRight(14),tt.assign(B),tt.rotateRight(18),I.xor(tt),tt.assign(B),tt.rotateRight(41),I.xor(tt)}function h(I,B,tt){I.assign(B),I.rotateRight(1),tt.assign(B),tt.rotateRight(8),I.xor(tt),tt.assign(B),tt.shiftRight(7),I.xor(tt)}function m(I,B,tt){I.assign(B),I.rotateRight(19),tt.assign(B),tt.rotateRight(61),I.xor(tt),tt.assign(B),tt.shiftRight(6),I.xor(tt)}const k=[new a(1116352408,3609767458),new a(1899447441,602891725),new a(3049323471,3964484399),new a(3921009573,2173295548),new a(961987163,4081628472),new a(1508970993,3053834265),new a(2453635748,2937671579),new a(2870763221,3664609560),new a(3624381080,2734883394),new a(310598401,1164996542),new a(607225278,1323610764),new a(1426881987,3590304994),new a(1925078388,4068182383),new a(2162078206,991336113),new a(2614888103,633803317),new a(3248222580,3479774868),new a(3835390401,2666613458),new a(4022224774,944711139),new a(264347078,2341262773),new a(604807628,2007800933),new a(770255983,1495990901),new a(1249150122,1856431235),new a(1555081692,3175218132),new a(1996064986,2198950837),new a(2554220882,3999719339),new a(2821834349,766784016),new a(2952996808,2566594879),new a(3210313671,3203337956),new a(3336571891,1034457026),new a(3584528711,2466948901),new a(113926993,3758326383),new a(338241895,168717936),new a(666307205,1188179964),new a(773529912,1546045734),new a(1294757372,1522805485),new a(1396182291,2643833823),new a(1695183700,2343527390),new a(1986661051,1014477480),new a(2177026350,1206759142),new a(2456956037,344077627),new a(2730485921,1290863460),new a(2820302411,3158454273),new a(3259730800,3505952657),new a(3345764771,106217008),new a(3516065817,3606008344),new a(3600352804,1432725776),new a(4094571909,1467031594),new a(275423344,851169720),new a(430227734,3100823752),new a(506948616,1363258195),new a(659060556,3750685593),new a(883997877,3785050280),new a(958139571,3318307427),new a(1322822218,3812723403),new a(1537002063,2003034995),new a(1747873779,3602036899),new a(1955562222,1575990012),new a(2024104815,1125592928),new a(2227730452,2716904306),new a(2361852424,442776044),new a(2428436474,593698344),new a(2756734187,3733110249),new a(3204031479,2999351573),new a(3329325298,3815920427),new a(3391569614,3928383900),new a(3515267271,566280711),new a(3940187606,3454069534),new a(4118630271,4000239992),new a(116418474,1914138554),new a(174292421,2731055270),new a(289380356,3203993006),new a(460393269,320620315),new a(685471733,587496836),new a(852142971,1086792851),new a(1017036298,365543100),new a(1126000580,2618297676),new a(1288033470,3409855158),new a(1501505948,4234509866),new a(1607167915,987167468),new a(1816402316,1246189591)];return function(B,tt,it,st=!1){let X,J,j,O,H,V,z,Y;st?(X=new a(3418070365,3238371032),J=new a(1654270250,914150663),j=new a(2438529370,812702999),O=new a(355462360,4144912697),H=new a(1731405415,4290775857),V=new a(2394180231,1750603025),z=new a(3675008525,1694076839),Y=new a(1203062813,3204075428)):(X=new a(1779033703,4089235720),J=new a(3144134277,2227873595),j=new a(1013904242,4271175723),O=new a(2773480762,1595750129),H=new a(1359893119,2917565137),V=new a(2600822924,725511199),z=new a(528734635,4215389547),Y=new a(1541459225,327033209));const G=128*Math.ceil((it+17)/128),K=new Uint8Array(G);let et,nt;for(et=0;et>>29&255,K[et++]=it>>21&255,K[et++]=it>>13&255,K[et++]=it>>5&255,K[et++]=it<<3&255;const Q=new Array(80);for(et=0;et<80;et++)Q[et]=new a(0,0);let lt=new a(0,0),ut=new a(0,0),pt=new a(0,0),yt=new a(0,0),Et=new a(0,0),Tt=new a(0,0),xt=new a(0,0),wt=new a(0,0);const St=new a(0,0),Rt=new a(0,0),Ct=new a(0,0),Gt=new a(0,0);let Zt,Ft;for(et=0;et=1;--k){c=m[13],m[13]=m[9],m[9]=m[5],m[5]=m[1],m[1]=c,c=m[14],S=m[10],m[14]=m[6],m[10]=m[2],m[6]=c,m[2]=S,c=m[15],S=m[11],h=m[7],m[15]=m[3],m[11]=c,m[7]=S,m[3]=h;for(let I=0;I<16;++I)m[I]=this._inv_s[m[I]];for(let I=0,B=16*k;I<16;++I,++B)m[I]^=s[B];for(let I=0;I<16;I+=4){const B=this._mix[m[I]],tt=this._mix[m[I+1]],it=this._mix[m[I+2]],st=this._mix[m[I+3]];c=B^tt>>>8^tt<<24^it>>>16^it<<16^st>>>24^st<<8,m[I]=c>>>24&255,m[I+1]=c>>16&255,m[I+2]=c>>8&255,m[I+3]=255&c}}c=m[13],m[13]=m[9],m[9]=m[5],m[5]=m[1],m[1]=c,c=m[14],S=m[10],m[14]=m[6],m[10]=m[2],m[6]=c,m[2]=S,c=m[15],S=m[11],h=m[7],m[15]=m[3],m[11]=c,m[7]=S,m[3]=h;for(let k=0;k<16;++k)m[k]=this._inv_s[m[k]],m[k]^=s[k];return m}_encrypt(w,s){const c=this._s;let S,h,m;const k=new Uint8Array(16);k.set(w);for(let I=0;I<16;++I)k[I]^=s[I];for(let I=1;I=X;--st)if(tt[st]!==it){it=0;break}I-=it,m[m.length-1]=tt.subarray(0,16-it)}}const B=new Uint8Array(I);for(let tt=0,it=0,st=m.length;tt=256&&(I=255&(27^I)));for(let it=0;it<4;++it)c[B]=S^=c[B-32],B++,c[B]=h^=c[B-32],B++,c[B]=m^=c[B-32],B++,c[B]=k^=c[B-32],B++}return c}}M.AES256Cipher=p;class b{checkOwnerPassword(w,s,c,S){const h=new Uint8Array(w.length+56);h.set(w,0),h.set(s,w.length),h.set(c,w.length+s.length);const m=v(h,0,h.length);return(0,n.isArrayEqual)(m,S)}checkUserPassword(w,s,c){const S=new Uint8Array(w.length+8);S.set(w,0),S.set(s,w.length);const h=v(S,0,S.length);return(0,n.isArrayEqual)(h,c)}getOwnerKey(w,s,c,S){const h=new Uint8Array(w.length+56);h.set(w,0),h.set(s,w.length),h.set(c,w.length+s.length);const m=v(h,0,h.length);return new p(m).decryptBlock(S,!1,new Uint8Array(16))}getUserKey(w,s,c){const S=new Uint8Array(w.length+8);S.set(w,0),S.set(s,w.length);const h=v(S,0,S.length);return new p(h).decryptBlock(c,!1,new Uint8Array(16))}}M.PDF17=b;class F{_hash(w,s,c){let S=v(s,0,s.length).subarray(0,32),h=[0],m=0;for(;m<64||h.at(-1)>m-32;){const k=w.length+S.length+c.length,I=new Uint8Array(k);let B=0;I.set(w,B),B+=w.length,I.set(S,B),B+=S.length,I.set(c,B);const tt=new Uint8Array(64*k);for(let st=0,X=0;st<64;st++,X+=k)tt.set(I,X);h=new C(S.subarray(0,16)).encrypt(tt,S.subarray(16,32));const it=h.slice(0,16).reduce((st,X)=>st+X,0)%3;it===0?S=v(h,0,h.length):it===1?S=T(h,0,h.length):it===2&&(S=A(h,0,h.length)),m++}return S.subarray(0,32)}checkOwnerPassword(w,s,c,S){const h=new Uint8Array(w.length+56);h.set(w,0),h.set(s,w.length),h.set(c,w.length+s.length);const m=this._hash(w,h,c);return(0,n.isArrayEqual)(m,S)}checkUserPassword(w,s,c){const S=new Uint8Array(w.length+8);S.set(w,0),S.set(s,w.length);const h=this._hash(w,S,[]);return(0,n.isArrayEqual)(h,c)}getOwnerKey(w,s,c,S){const h=new Uint8Array(w.length+56);h.set(w,0),h.set(s,w.length),h.set(c,w.length+s.length);const m=this._hash(w,h,c);return new p(m).decryptBlock(S,!1,new Uint8Array(16))}getUserKey(w,s,c){const S=new Uint8Array(w.length+8);S.set(w,0),S.set(s,w.length);const h=this._hash(w,S,[]);return new p(h).decryptBlock(c,!1,new Uint8Array(16))}}M.PDF20=F;class u{constructor(w,s){this.StringCipherConstructor=w,this.StreamCipherConstructor=s}createStream(w,s){const c=new this.StreamCipherConstructor;return new L.DecryptStream(w,s,function(h,m){return c.decryptBlock(h,m)})}decryptString(w){const s=new this.StringCipherConstructor;let c=(0,n.stringToBytes)(w);return c=s.decryptBlock(c,!0),(0,n.bytesToString)(c)}encryptString(w){const s=new this.StringCipherConstructor;if(s instanceof i){const S=16-w.length%16;w+=String.fromCharCode(S).repeat(S);const h=new Uint8Array(16);if(typeof crypto<"u")crypto.getRandomValues(h);else for(let I=0;I<16;I++)h[I]=Math.floor(256*Math.random());let m=(0,n.stringToBytes)(w);m=s.encrypt(m,h);const k=new Uint8Array(16+m.length);return k.set(h),k.set(m,16),(0,n.bytesToString)(k)}let c=(0,n.stringToBytes)(w);return c=s.encrypt(c),(0,n.bytesToString)(c)}}const q=class q{constructor(w,s,c){_t(this,N);_t(this,$);_t(this,R);_t(this,g);_t(this,E);const S=w.get("Filter");if(!(0,_.isName)(S,"Standard"))throw new n.FormatError("unknown encryption method");this.filterName=S.name,this.dict=w;const h=w.get("V");if(!Number.isInteger(h)||h!==1&&h!==2&&h!==4&&h!==5)throw new n.FormatError("unsupported encryption algorithm");this.algorithm=h;let m=w.get("Length");if(!m)if(h<=3)m=40;else{const H=w.get("CF"),V=w.get("StmF");if(H instanceof _.Dict&&V instanceof _.Name){H.suppressEncryption=!0;const z=H.get(V.name);m=(z==null?void 0:z.get("Length"))||128,m<40&&(m<<=3)}}if(!Number.isInteger(m)||m<40||m%8!=0)throw new n.FormatError("invalid key length");const k=(0,n.stringToBytes)(w.get("O")),I=(0,n.stringToBytes)(w.get("U")),B=k.subarray(0,32),tt=I.subarray(0,32),it=w.get("P"),st=w.get("R"),X=(h===4||h===5)&&w.get("EncryptMetadata")!==!1;this.encryptMetadata=X;const J=(0,n.stringToBytes)(s);let j,O;if(c){if(st===6)try{c=(0,n.utf8StringToString)(c)}catch{(0,n.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}j=(0,n.stringToBytes)(c)}if(h!==5)O=Lt(this,$,Zi).call(this,J,j,B,tt,it,st,m,X);else{const H=k.subarray(32,40),V=k.subarray(40,48),z=I.subarray(0,48),Y=I.subarray(32,40),G=I.subarray(40,48),K=(0,n.stringToBytes)(w.get("OE")),et=(0,n.stringToBytes)(w.get("UE")),nt=(0,n.stringToBytes)(w.get("Perms"));O=Lt(this,N,Hr).call(this,st,j,B,H,V,z,tt,Y,G,K,et,nt)}if(!O&&!c)throw new n.PasswordException("No password given",n.PasswordResponses.NEED_PASSWORD);if(!O&&c){const H=Lt(this,R,Xr).call(this,j,B,st,m);O=Lt(this,$,Zi).call(this,J,H,B,tt,it,st,m,X)}if(!O)throw new n.PasswordException("Incorrect Password",n.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=O,h>=4){const H=w.get("CF");H instanceof _.Dict&&(H.suppressEncryption=!0),this.cf=H,this.stmf=w.get("StmF")||_.Name.get("Identity"),this.strf=w.get("StrF")||_.Name.get("Identity"),this.eff=w.get("EFF")||this.stmf}}createCipherTransform(w,s){if(this.algorithm===4||this.algorithm===5)return new u(Lt(this,E,Qi).call(this,this.cf,this.strf,w,s,this.encryptionKey),Lt(this,E,Qi).call(this,this.cf,this.stmf,w,s,this.encryptionKey));const c=Lt(this,g,Ln).call(this,w,s,this.encryptionKey,!1),S=function(){return new t(c)};return new u(S,S)}};y=new WeakMap,N=new WeakSet,Hr=function(w,s,c,S,h,m,k,I,B,tt,it,st){if(s){const J=Math.min(127,s.length);s=s.subarray(0,J)}else s=[];const X=w===6?new F:new b;return X.checkUserPassword(s,I,k)?X.getUserKey(s,B,it):s.length&&X.checkOwnerPassword(s,S,m,c)?X.getOwnerKey(s,h,m,tt):null},$=new WeakSet,Zi=function(w,s,c,S,h,m,k,I){const B=40+c.length+w.length,tt=new Uint8Array(B);let it,st,X=0;if(s)for(st=Math.min(32,s.length);X>8&255,tt[X++]=h>>16&255,tt[X++]=h>>>24&255,it=0,st=w.length;it=4&&!I&&(tt[X++]=255,tt[X++]=255,tt[X++]=255,tt[X++]=255);let J=e(tt,0,X);const j=k>>3;if(m>=3)for(it=0;it<50;++it)J=e(J,0,j);const O=J.subarray(0,j);let H,V;if(m>=3){for(X=0;X<32;++X)tt[X]=ot(q,y)[X];for(it=0,st=w.length;it>3;if(c>=3)for(I=0;I<50;++I)B=e(B,0,B.length);let it,st;if(c>=3){st=s;const X=new Uint8Array(tt);for(I=19;I>=0;I--){for(let J=0;J>8&255,h[k++]=w>>16&255,h[k++]=255&s,h[k++]=s>>8&255,S&&(h[k++]=115,h[k++]=65,h[k++]=108,h[k++]=84),e(h,0,k).subarray(0,Math.min(c.length+5,16))},E=new WeakSet,Qi=function(w,s,c,S,h){if(!(s instanceof _.Name))throw new n.FormatError("Invalid crypt filter name.");const m=this,k=w.get(s.name),I=k==null?void 0:k.get("CFM");if(!I||I.name==="None")return function(){return new d};if(I.name==="V2")return function(){var B;return new t(Lt(B=m,g,Ln).call(B,c,S,h,!1))};if(I.name==="AESV2")return function(){var B;return new C(Lt(B=m,g,Ln).call(B,c,S,h,!0))};if(I.name==="AESV3")return function(){return new p(h)};throw new n.FormatError("Unknown crypto method")},_t(q,y,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]));let l=q;M.CipherTransformFactory=l},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.DecryptStream=void 0;var n=Z(18);class _ extends n.DecodeStream{constructor(t,e,a){super(e),this.str=t,this.dict=t.dict,this.decrypt=a,this.nextChunk=null,this.initialized=!1}readBlock(){var A;let t;if(this.initialized?t=this.nextChunk:(t=this.str.getBytes(512),this.initialized=!0),!t||t.length===0){this.eof=!0;return}this.nextChunk=this.str.getBytes(512);const e=((A=this.nextChunk)==null?void 0:A.length)>0;t=(0,this.decrypt)(t,!e);const a=this.bufferLength,v=a+t.length;this.ensureBuffer(v).set(t,a),this.bufferLength=v}}M.DecryptStream=_},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.ObjectLoader=void 0;var n=Z(4),_=Z(5),L=Z(3),t=Z(2);function e(a,v){if(a instanceof n.Dict)a=a.getRawValues();else if(a instanceof _.BaseStream)a=a.dict.getRawValues();else if(!Array.isArray(a))return;for(const T of a)((A=T)instanceof n.Ref||A instanceof n.Dict||A instanceof _.BaseStream||Array.isArray(A))&&v.push(T);var A}M.ObjectLoader=class{constructor(v,A,T){this.dict=v,this.keys=A,this.xref=T,this.refSet=null}async load(){if(this.xref.stream.isDataLoaded)return;const{keys:v,dict:A}=this;this.refSet=new n.RefSet;const T=[];for(const d of v){const i=A.getRaw(d);i!==void 0&&T.push(i)}return this._walk(T)}async _walk(v){const A=[],T=[];for(;v.length;){let d=v.pop();if(d instanceof n.Ref){if(this.refSet.has(d))continue;try{this.refSet.put(d),d=this.xref.fetch(d)}catch(i){if(!(i instanceof L.MissingDataException)){(0,t.warn)(`ObjectLoader._walk - requesting all data: "${i}".`),this.refSet=null;const{manager:C}=this.xref.stream;return C.requestAllChunks()}A.push(d),T.push({begin:i.begin,end:i.end})}}if(d instanceof _.BaseStream){const i=d.getBaseStreams();if(i){let C=!1;for(const p of i)p.isDataLoaded||(C=!0,T.push({begin:p.start,end:p.end}));C&&A.push(d)}}e(d,v)}if(T.length){await this.xref.stream.manager.requestRanges(T);for(const d of A)d instanceof n.Ref&&this.refSet.remove(d);return this._walk(A)}this.refSet=null}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.XFAFactory=void 0;var n=Z(78),_=Z(79),L=Z(89),t=Z(85),e=Z(84),a=Z(2),v=Z(90),A=Z(100);class T{constructor(i){try{this.root=new v.XFAParser().parse(T._createDocument(i));const C=new _.Binder(this.root);this.form=C.bind(),this.dataHandler=new L.DataHandler(this.root,C.getData()),this.form[n.$globalData].template=this.form}catch(C){(0,a.warn)(`XFA - an error occurred during parsing and binding: ${C}`)}}isValid(){return this.root&&this.form}_createPagesHelper(){const i=this.form[n.$toPages]();return new Promise((C,p)=>{const b=()=>{try{const F=i.next();F.done?C(F.value):setTimeout(b,0)}catch(F){p(F)}};setTimeout(b,0)})}async _createPages(){try{this.pages=await this._createPagesHelper(),this.dims=this.pages.children.map(i=>{const{width:C,height:p}=i.attributes.style;return[0,0,parseInt(C),parseInt(p)]})}catch(i){(0,a.warn)(`XFA - an error occurred during layout: ${i}`)}}getBoundingBox(i){return this.dims[i]}async getNumPages(){return this.pages||await this._createPages(),this.dims.length}setImages(i){this.form[n.$globalData].images=i}setFonts(i){this.form[n.$globalData].fontFinder=new t.FontFinder(i);const C=[];for(let p of this.form[n.$globalData].usedTypefaces)p=(0,e.stripQuotes)(p),this.form[n.$globalData].fontFinder.find(p)||C.push(p);return C.length>0?C:null}appendFonts(i,C){this.form[n.$globalData].fontFinder.add(i,C)}async getPages(){this.pages||await this._createPages();const i=this.pages;return this.pages=null,i}serializeData(i){return this.dataHandler.serialize(i)}static _createDocument(i){return i["/xdp:xdp"]?Object.values(i).join(""):i["xdp:xdp"]}static getRichTextAsHtml(i){if(!i||typeof i!="string")return null;try{let C=new v.XFAParser(A.XhtmlNamespace,!0).parse(i);if(!["body","xhtml"].includes(C[n.$nodeName])){const u=A.XhtmlNamespace.body({});u[n.$appendChild](C),C=u}const p=C[n.$toHTML]();if(!p.success)return null;const{html:b}=p,{attributes:F}=b;return F&&(F.class&&(F.class=F.class.filter(u=>!u.startsWith("xfa"))),F.dir="auto"),{html:b,str:C[n.$text]()}}catch(C){(0,a.warn)(`XFA - an error occurred during parsing of rich text: ${C}`)}return null}}M.XFAFactory=T},(vt,M)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.$uid=M.$toStyle=M.$toString=M.$toPages=M.$toHTML=M.$text=M.$tabIndex=M.$setValue=M.$setSetAttributes=M.$setId=M.$searchNode=M.$root=M.$resolvePrototypes=M.$removeChild=M.$pushPara=M.$pushGlyphs=M.$popPara=M.$onText=M.$onChildCheck=M.$onChild=M.$nsAttributes=M.$nodeName=M.$namespaceId=M.$lastAttribute=M.$isUsable=M.$isTransparent=M.$isThereMoreWidth=M.$isSplittable=M.$isNsAgnostic=M.$isDescendent=M.$isDataValue=M.$isCDATAXml=M.$isBindable=M.$insertAt=M.$indexOf=M.$ids=M.$hasSettableValue=M.$globalData=M.$getTemplateRoot=M.$getSubformParent=M.$getRealChildrenByNameIt=M.$getParent=M.$getNextPage=M.$getExtra=M.$getDataValue=M.$getContainedChildren=M.$getChildrenByNameIt=M.$getChildrenByName=M.$getChildrenByClass=M.$getChildren=M.$getAvailableSpace=M.$getAttributes=M.$getAttributeIt=M.$flushHTML=M.$finalize=M.$extra=M.$dump=M.$data=M.$content=M.$consumed=M.$clone=M.$cleanup=M.$cleanPage=M.$clean=M.$childrenToHTML=M.$appendChild=M.$addHTML=M.$acceptWhitespace=void 0;const Z=Symbol();M.$acceptWhitespace=Z;const n=Symbol();M.$addHTML=n;const _=Symbol();M.$appendChild=_;const L=Symbol();M.$childrenToHTML=L;const t=Symbol();M.$clean=t;const e=Symbol();M.$cleanPage=e;const a=Symbol();M.$cleanup=a;const v=Symbol();M.$clone=v;const A=Symbol();M.$consumed=A;const T=Symbol("content");M.$content=T;const d=Symbol("data");M.$data=d;const i=Symbol();M.$dump=i;const C=Symbol("extra");M.$extra=C;const p=Symbol();M.$finalize=p;const b=Symbol();M.$flushHTML=b;const F=Symbol();M.$getAttributeIt=F;const u=Symbol();M.$getAttributes=u;const l=Symbol();M.$getAvailableSpace=l;const y=Symbol();M.$getChildrenByClass=y;const N=Symbol();M.$getChildrenByName=N;const U=Symbol();M.$getChildrenByNameIt=U;const $=Symbol();M.$getDataValue=$;const P=Symbol();M.$getExtra=P;const R=Symbol();M.$getRealChildrenByNameIt=R;const o=Symbol();M.$getChildren=o;const g=Symbol();M.$getContainedChildren=g;const x=Symbol();M.$getNextPage=x;const E=Symbol();M.$getSubformParent=E;const D=Symbol();M.$getParent=D;const q=Symbol();M.$getTemplateRoot=q;const W=Symbol();M.$globalData=W;const w=Symbol();M.$hasSettableValue=w;const s=Symbol();M.$ids=s;const c=Symbol();M.$indexOf=c;const S=Symbol();M.$insertAt=S;const h=Symbol();M.$isCDATAXml=h;const m=Symbol();M.$isBindable=m;const k=Symbol();M.$isDataValue=k;const I=Symbol();M.$isDescendent=I;const B=Symbol();M.$isNsAgnostic=B;const tt=Symbol();M.$isSplittable=tt;const it=Symbol();M.$isThereMoreWidth=it;const st=Symbol();M.$isTransparent=st;const X=Symbol();M.$isUsable=X;const J=Symbol();M.$lastAttribute=J;const j=Symbol("namespaceId");M.$namespaceId=j;const O=Symbol("nodeName");M.$nodeName=O;const H=Symbol();M.$nsAttributes=H;const V=Symbol();M.$onChild=V;const z=Symbol();M.$onChildCheck=z;const Y=Symbol();M.$onText=Y;const G=Symbol();M.$pushGlyphs=G;const K=Symbol();M.$popPara=K;const et=Symbol();M.$pushPara=et;const nt=Symbol();M.$removeChild=nt;const at=Symbol("root");M.$root=at;const Q=Symbol();M.$resolvePrototypes=Q;const lt=Symbol();M.$searchNode=lt;const ut=Symbol();M.$setId=ut;const pt=Symbol();M.$setSetAttributes=pt;const yt=Symbol();M.$setValue=yt;const Et=Symbol();M.$tabIndex=Et;const Tt=Symbol();M.$text=Tt;const xt=Symbol();M.$toPages=xt;const wt=Symbol();M.$toHTML=wt;const St=Symbol();M.$toString=St;const Rt=Symbol();M.$toStyle=Rt;const Ct=Symbol("uid");M.$uid=Ct},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.Binder=void 0;var n=Z(78),_=Z(80),L=Z(88),t=Z(87),e=Z(81),a=Z(2);const v=e.NamespaceIds.datasets.id;function A(T){const d=new _.Text({});return d[n.$content]=T,d}M.Binder=class{constructor(d){var i;this.root=d,this.datasets=d.datasets,this.data=((i=d.datasets)==null?void 0:i.data)||new t.XmlObject(e.NamespaceIds.datasets.id,"data"),this.emptyMerge=this.data[n.$getChildren]().length===0,this.root.form=this.form=d.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(d,i,C){var p,b;if(d[n.$data]=i,d[n.$hasSettableValue]())if(i[n.$isDataValue]()){const F=i[n.$getDataValue]();d[n.$setValue](A(F))}else if(d instanceof _.Field&&((b=(p=d.ui)==null?void 0:p.choiceList)==null?void 0:b.open)==="multiSelect"){const F=i[n.$getChildren]().map(u=>u[n.$content].trim()).join(` `);d[n.$setValue](A(F))}else this._isConsumeData()&&(0,a.warn)("XFA - Nodes haven't the same type.");else!i[n.$isDataValue]()||this._isMatchTemplate()?this._bindElement(d,i):(0,a.warn)("XFA - Nodes haven't the same type.")}_findDataByNameToConsume(d,i,C,p){if(!d)return null;let b,F;for(let u=0;u<3;u++){for(b=C[n.$getRealChildrenByNameIt](d,!1,!0);F=b.next().value,!!F;)if(i===F[n.$isDataValue]())return F;if(C[n.$namespaceId]===e.NamespaceIds.datasets.id&&C[n.$nodeName]==="data")break;C=C[n.$getParent]()}return p?(b=this.data[n.$getRealChildrenByNameIt](d,!0,!1),F=b.next().value,F||(b=this.data[n.$getAttributeIt](d,!0),F=b.next().value,F!=null&&F[n.$isDataValue]()?F:null)):null}_setProperties(d,i){if(d.hasOwnProperty("setProperty"))for(const{ref:C,target:p,connection:b}of d.setProperty.children){if(b||!C)continue;const F=(0,L.searchNode)(this.root,i,C,!1,!1);if(!F){(0,a.warn)(`XFA - Invalid reference: ${C}.`);continue}const[u]=F;if(!u[n.$isDescendent](this.data)){(0,a.warn)("XFA - Invalid node: must be a data node.");continue}const l=(0,L.searchNode)(this.root,d,p,!1,!1);if(!l){(0,a.warn)(`XFA - Invalid target: ${p}.`);continue}const[y]=l;if(!y[n.$isDescendent](d)){(0,a.warn)("XFA - Invalid target: must be a property or subproperty.");continue}const N=y[n.$getParent]();if(y instanceof _.SetProperty||N instanceof _.SetProperty){(0,a.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");continue}if(y instanceof _.BindItems||N instanceof _.BindItems){(0,a.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");continue}const U=u[n.$text](),$=y[n.$nodeName];if(y instanceof t.XFAAttribute){const P=Object.create(null);P[$]=U;const R=Reflect.construct(Object.getPrototypeOf(N).constructor,[P]);N[$]=R[$]}else y.hasOwnProperty(n.$content)?(y[n.$data]=u,y[n.$content]=U,y[n.$finalize]()):(0,a.warn)("XFA - Invalid node to use in setProperty")}}_bindItems(d,i){if(!d.hasOwnProperty("items")||!d.hasOwnProperty("bindItems")||d.bindItems.isEmpty())return;for(const b of d.items.children)d[n.$removeChild](b);d.items.clear();const C=new _.Items({}),p=new _.Items({});d[n.$appendChild](C),d.items.push(C),d[n.$appendChild](p),d.items.push(p);for(const{ref:b,labelRef:F,valueRef:u,connection:l}of d.bindItems.children){if(l||!b)continue;const y=(0,L.searchNode)(this.root,i,b,!1,!1);if(y)for(const N of y){if(!N[n.$isDescendent](this.datasets)){(0,a.warn)(`XFA - Invalid ref (${b}): must be a datasets child.`);continue}const U=(0,L.searchNode)(this.root,N,F,!0,!1);if(!U){(0,a.warn)(`XFA - Invalid label: ${F}.`);continue}const[$]=U;if(!$[n.$isDescendent](this.datasets)){(0,a.warn)("XFA - Invalid label: must be a datasets child.");continue}const P=(0,L.searchNode)(this.root,N,u,!0,!1);if(!P){(0,a.warn)(`XFA - Invalid value: ${u}.`);continue}const[R]=P;if(!R[n.$isDescendent](this.datasets)){(0,a.warn)("XFA - Invalid value: must be a datasets child.");continue}const o=A($[n.$text]()),g=A(R[n.$text]());C[n.$appendChild](o),C.text.push(o),p[n.$appendChild](g),p.text.push(g)}else(0,a.warn)(`XFA - Invalid reference: ${b}.`)}}_bindOccurrences(d,i,C){let p;if(i.length>1&&(p=d[n.$clone](),p[n.$removeChild](p.occur),p.occur=null),this._bindValue(d,i[0],C),this._setProperties(d,i[0]),this._bindItems(d,i[0]),i.length===1)return;const b=d[n.$getParent](),F=d[n.$nodeName],u=b[n.$indexOf](d);for(let l=1,y=i.length;ll.name===d.name).length:C[p].children.length;const F=C[n.$indexOf](d)+1,u=i.initial-b;if(u){const l=d[n.$clone]();l[n.$removeChild](l.occur),l.occur=null,C[p].push(l),C[n.$insertAt](F,l);for(let y=1;y0)this._bindOccurrences(p,[U[0]],null);else if(this.emptyMerge){const $=i[n.$namespaceId]===v?-1:i[n.$namespaceId],P=p[n.$data]=new t.XmlObject($,p.name||"root");i[n.$appendChild](P),this._bindElement(p,P)}continue}if(!p[n.$isBindable]())continue;let b=!1,F=null,u=null,l=null;if(p.bind){switch(p.bind.match){case"none":this._setAndBind(p,i);continue;case"global":b=!0;break;case"dataRef":if(!p.bind.ref){(0,a.warn)(`XFA - ref is empty in node ${p[n.$nodeName]}.`),this._setAndBind(p,i);continue}u=p.bind.ref}p.bind.picture&&(F=p.bind.picture[n.$content])}const[y,N]=this._getOccurInfo(p);if(u){if(l=(0,L.searchNode)(this.root,i,u,!0,!1),l===null){if(l=(0,L.createDataNode)(this.data,i,u),!l)continue;this._isConsumeData()&&(l[n.$consumed]=!0),this._setAndBind(p,l);continue}this._isConsumeData()&&(l=l.filter(U=>!U[n.$consumed])),l.length>N?l=l.slice(0,N):l.length===0&&(l=null),l&&this._isConsumeData()&&l.forEach(U=>{U[n.$consumed]=!0})}else{if(!p.name){this._setAndBind(p,i);continue}if(this._isConsumeData()){const U=[];for(;U.length0?U:null}else{if(l=i[n.$getRealChildrenByNameIt](p.name,!1,this.emptyMerge).next().value,!l){if(y===0){C.push(p);continue}const U=i[n.$namespaceId]===v?-1:i[n.$namespaceId];l=p[n.$data]=new t.XmlObject(U,p.name),this.emptyMerge&&(l[n.$consumed]=!0),i[n.$appendChild](l),this._setAndBind(p,l);continue}this.emptyMerge&&(l[n.$consumed]=!0),l=[l]}}l?this._bindOccurrences(p,l,F):y>0?this._setAndBind(p,i):C.push(p)}C.forEach(p=>p[n.$getParent]()[n.$removeChild](p))}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.Value=M.Text=M.TemplateNamespace=M.Template=M.SetProperty=M.Items=M.Field=M.BindItems=void 0;var n=Z(78),_=Z(81),L=Z(82),t=Z(83),e=Z(87),a=Z(84),v=Z(2),A=Z(85),T=Z(3),d=Z(88);const i=_.NamespaceIds.template.id,C="http://www.w3.org/2000/svg",p=/^H(\d+)$/,b=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"]),F=[[[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 u(qt){if(!qt||!qt.border)return{w:0,h:0};const f=qt.border[n.$getExtra]();return f?{w:f.widths[0]+f.widths[2]+f.insets[0]+f.insets[2],h:f.widths[1]+f.widths[3]+f.insets[1]+f.insets[3]}:{w:0,h:0}}function l(qt){return qt.margin&&(qt.margin.topInset||qt.margin.rightInset||qt.margin.bottomInset||qt.margin.leftInset)}function y(qt,f){if(!qt.value){const kt=new Xe({});qt[n.$appendChild](kt),qt.value=kt}qt.value[n.$setValue](f)}function*N(qt){for(const f of qt[n.$getChildren]())f instanceof tn?yield*f[n.$getContainedChildren]():yield f}function U(qt){var f;return((f=qt.validate)==null?void 0:f.nullTest)==="error"}function $(qt){for(;qt;){if(!qt.traversal){qt[n.$tabIndex]=qt[n.$getParent]()[n.$tabIndex];return}if(qt[n.$tabIndex])return;let f=null;for(const Dt of qt.traversal[n.$getChildren]())if(Dt.operation==="next"){f=Dt;break}if(!f||!f.ref){qt[n.$tabIndex]=qt[n.$getParent]()[n.$tabIndex];return}const kt=qt[n.$getTemplateRoot]();qt[n.$tabIndex]=++kt[n.$tabIndex];const zt=kt[n.$searchNode](f.ref,qt);if(!zt)return;qt=zt[0]}}function P(qt,f){var zt;const kt=qt.assist;if(kt){const Dt=kt[n.$toHTML]();Dt&&(f.title=Dt);const ct=kt.role.match(p);if(ct){const ae="heading",fe=ct[1];f.role=ae,f["aria-level"]=fe}}if(qt.layout==="table")f.role="table";else if(qt.layout==="row")f.role="row";else{const Dt=qt[n.$getParent]();Dt.layout==="row"&&(f.role=((zt=Dt.assist)==null?void 0:zt.role)==="TH"?"columnheader":"cell")}}function R(qt){if(!qt.assist)return null;const f=qt.assist;return f.speak&&f.speak[n.$content]!==""?f.speak[n.$content]:f.toolTip?f.toolTip[n.$content]:null}function o(qt){return a.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:qt}]})}function g(qt){const f=qt[n.$getTemplateRoot]();f[n.$extra].firstUnsplittable===null&&(f[n.$extra].firstUnsplittable=qt,f[n.$extra].noLayoutFailure=!0)}function x(qt){const f=qt[n.$getTemplateRoot]();f[n.$extra].firstUnsplittable===qt&&(f[n.$extra].noLayoutFailure=!1)}function E(qt){if(qt[n.$extra]||(qt[n.$extra]=Object.create(null),qt.targetType==="auto"))return!1;const f=qt[n.$getTemplateRoot]();let kt=null;if(qt.target){if(kt=f[n.$searchNode](qt.target,qt[n.$getParent]()),!kt)return!1;kt=kt[0]}const{currentPageArea:zt,currentContentArea:Dt}=f[n.$extra];if(qt.targetType==="pageArea")return kt instanceof $e||(kt=null),qt.startNew?(qt[n.$extra].target=kt||zt,!0):kt&&kt!==zt?(qt[n.$extra].target=kt,!0):!1;kt instanceof K||(kt=null);const ct=kt&&kt[n.$getParent]();let ae,fe=ct;if(qt.startNew)if(kt){const pe=ct.contentArea.children,be=pe.indexOf(Dt),we=pe.indexOf(kt);be!==-1&&beqt,zt[n.$extra].noLayoutFailure=!0;const ae=f[n.$toHTML](kt);qt[n.$addHTML](ae.html,ae.bbox),zt[n.$extra].noLayoutFailure=Dt,f[n.$getSubformParent]=ct}class q extends e.StringObject{constructor(f){super(i,"appearanceFilter"),this.id=f.id||"",this.type=(0,a.getStringOption)(f.type,["optional","required"]),this.use=f.use||"",this.usehref=f.usehref||""}}class W extends e.XFAObject{constructor(f){super(i,"arc",!0),this.circular=(0,a.getInteger)({data:f.circular,defaultValue:0,validate:kt=>kt===1}),this.hand=(0,a.getStringOption)(f.hand,["even","left","right"]),this.id=f.id||"",this.startAngle=(0,a.getFloat)({data:f.startAngle,defaultValue:0,validate:kt=>!0}),this.sweepAngle=(0,a.getFloat)({data:f.sweepAngle,defaultValue:360,validate:kt=>!0}),this.use=f.use||"",this.usehref=f.usehref||"",this.edge=null,this.fill=null}[n.$toHTML](){var fe;const f=this.edge||new xt({}),kt=f[n.$toStyle](),zt=Object.create(null);((fe=this.fill)==null?void 0:fe.presence)==="visible"?Object.assign(zt,this.fill[n.$toStyle]()):zt.fill="transparent",zt.strokeWidth=(0,t.measureToString)(f.presence==="visible"?f.thickness:0),zt.stroke=kt.color;let Dt;const ct={xmlns:C,style:{width:"100%",height:"100%",overflow:"visible"}};if(this.sweepAngle===360)Dt={name:"ellipse",attributes:{xmlns:C,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:zt}};else{const pe=this.startAngle*Math.PI/180,be=this.sweepAngle*Math.PI/180,we=this.sweepAngle>180?1:0,[ve,Ce,Te,Fe]=[50*(1+Math.cos(pe)),50*(1-Math.sin(pe)),50*(1+Math.cos(pe+be)),50*(1-Math.sin(pe+be))];Dt={name:"path",attributes:{xmlns:C,d:`M ${ve} ${Ce} A 50 50 0 ${we} 0 ${Te} ${Fe}`,vectorEffect:"non-scaling-stroke",style:zt}},Object.assign(ct,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}const ae={name:"svg",children:[Dt],attributes:ct};return l(this[n.$getParent]()[n.$getParent]())?a.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[ae]}):(ae.attributes.style.position="absolute",a.HTMLResult.success(ae))}}class w extends e.XFAObject{constructor(f){super(i,"area",!0),this.colSpan=(0,a.getInteger)({data:f.colSpan,defaultValue:1,validate:kt=>kt>=1||kt===-1}),this.id=f.id||"",this.name=f.name||"",this.relevant=(0,a.getRelevant)(f.relevant),this.use=f.use||"",this.usehref=f.usehref||"",this.x=(0,a.getMeasurement)(f.x,"0pt"),this.y=(0,a.getMeasurement)(f.y,"0pt"),this.desc=null,this.extras=null,this.area=new e.XFAObjectArray,this.draw=new e.XFAObjectArray,this.exObject=new e.XFAObjectArray,this.exclGroup=new e.XFAObjectArray,this.field=new e.XFAObjectArray,this.subform=new e.XFAObjectArray,this.subformSet=new e.XFAObjectArray}*[n.$getContainedChildren](){yield*N(this)}[n.$isTransparent](){return!0}[n.$isBindable](){return!0}[n.$addHTML](f,kt){const[zt,Dt,ct,ae]=kt;this[n.$extra].width=Math.max(this[n.$extra].width,zt+ct),this[n.$extra].height=Math.max(this[n.$extra].height,Dt+ae),this[n.$extra].children.push(f)}[n.$getAvailableSpace](){return this[n.$extra].availableSpace}[n.$toHTML](f){const kt=(0,t.toStyle)(this,"position"),zt={style:kt,id:this[n.$uid],class:["xfaArea"]};(0,t.isPrintOnly)(this)&&zt.class.push("xfaPrintOnly"),this.name&&(zt.xfaName=this.name);const Dt=[];this[n.$extra]={children:Dt,width:0,height:0,availableSpace:f};const ct=this[n.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!ct.success)return ct.isBreak()?ct:(delete this[n.$extra],a.HTMLResult.FAILURE);kt.width=(0,t.measureToString)(this[n.$extra].width),kt.height=(0,t.measureToString)(this[n.$extra].height);const ae={name:"div",attributes:zt,children:Dt},fe=[this.x,this.y,this[n.$extra].width,this[n.$extra].height];return delete this[n.$extra],a.HTMLResult.success(ae,fe)}}class s extends e.XFAObject{constructor(f){super(i,"assist",!0),this.id=f.id||"",this.role=f.role||"",this.use=f.use||"",this.usehref=f.usehref||"",this.speak=null,this.toolTip=null}[n.$toHTML](){var f;return((f=this.toolTip)==null?void 0:f[n.$content])||null}}class c extends e.XFAObject{constructor(f){super(i,"barcode",!0),this.charEncoding=(0,a.getKeyword)({data:f.charEncoding?f.charEncoding.toLowerCase():"",defaultValue:"",validate:kt=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(kt)||kt.match(/iso-8859-\d{2}/)}),this.checksum=(0,a.getStringOption)(f.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),this.dataColumnCount=(0,a.getInteger)({data:f.dataColumnCount,defaultValue:-1,validate:kt=>kt>=0}),this.dataLength=(0,a.getInteger)({data:f.dataLength,defaultValue:-1,validate:kt=>kt>=0}),this.dataPrep=(0,a.getStringOption)(f.dataPrep,["none","flateCompress"]),this.dataRowCount=(0,a.getInteger)({data:f.dataRowCount,defaultValue:-1,validate:kt=>kt>=0}),this.endChar=f.endChar||"",this.errorCorrectionLevel=(0,a.getInteger)({data:f.errorCorrectionLevel,defaultValue:-1,validate:kt=>kt>=0&&kt<=8}),this.id=f.id||"",this.moduleHeight=(0,a.getMeasurement)(f.moduleHeight,"5mm"),this.moduleWidth=(0,a.getMeasurement)(f.moduleWidth,"0.25mm"),this.printCheckDigit=(0,a.getInteger)({data:f.printCheckDigit,defaultValue:0,validate:kt=>kt===1}),this.rowColumnRatio=(0,a.getRatio)(f.rowColumnRatio),this.startChar=f.startChar||"",this.textLocation=(0,a.getStringOption)(f.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),this.truncate=(0,a.getInteger)({data:f.truncate,defaultValue:0,validate:kt=>kt===1}),this.type=(0,a.getStringOption)(f.type?f.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,a.getStringOption)(f.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),this.use=f.use||"",this.usehref=f.usehref||"",this.wideNarrowRatio=(0,a.getRatio)(f.wideNarrowRatio),this.encrypt=null,this.extras=null}}class S extends e.XFAObject{constructor(f){super(i,"bind",!0),this.match=(0,a.getStringOption)(f.match,["once","dataRef","global","none"]),this.ref=f.ref||"",this.picture=null}}class h extends e.XFAObject{constructor(f){super(i,"bindItems"),this.connection=f.connection||"",this.labelRef=f.labelRef||"",this.ref=f.ref||"",this.valueRef=f.valueRef||""}}M.BindItems=h;class m extends e.XFAObject{constructor(f){super(i,"bookend"),this.id=f.id||"",this.leader=f.leader||"",this.trailer=f.trailer||"",this.use=f.use||"",this.usehref=f.usehref||""}}class k extends e.Option01{constructor(f){super(i,"boolean"),this.id=f.id||"",this.name=f.name||"",this.use=f.use||"",this.usehref=f.usehref||""}[n.$toHTML](f){return o(this[n.$content]===1?"1":"0")}}class I extends e.XFAObject{constructor(f){super(i,"border",!0),this.break=(0,a.getStringOption)(f.break,["close","open"]),this.hand=(0,a.getStringOption)(f.hand,["even","left","right"]),this.id=f.id||"",this.presence=(0,a.getStringOption)(f.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,a.getRelevant)(f.relevant),this.use=f.use||"",this.usehref=f.usehref||"",this.corner=new e.XFAObjectArray(4),this.edge=new e.XFAObjectArray(4),this.extras=null,this.fill=null,this.margin=null}[n.$getExtra](){if(!this[n.$extra]){const f=this.edge.children.slice();if(f.length<4){const Dt=f.at(-1)||new xt({});for(let ct=f.length;ct<4;ct++)f.push(Dt)}const kt=f.map(Dt=>Dt.thickness),zt=[0,0,0,0];this.margin&&(zt[0]=this.margin.topInset,zt[1]=this.margin.rightInset,zt[2]=this.margin.bottomInset,zt[3]=this.margin.leftInset),this[n.$extra]={widths:kt,insets:zt,edges:f}}return this[n.$extra]}[n.$toStyle](){var Dt;const{edges:f}=this[n.$getExtra](),kt=f.map(ct=>{const ae=ct[n.$toStyle]();return ae.color||(ae.color="#000000"),ae}),zt=Object.create(null);if(this.margin&&Object.assign(zt,this.margin[n.$toStyle]()),((Dt=this.fill)==null?void 0:Dt.presence)==="visible"&&Object.assign(zt,this.fill[n.$toStyle]()),this.corner.children.some(ct=>ct.radius!==0)){const ct=this.corner.children.map(ae=>ae[n.$toStyle]());if(ct.length===2||ct.length===3){const ae=ct.at(-1);for(let fe=ct.length;fe<4;fe++)ct.push(ae)}zt.borderRadius=ct.map(ae=>ae.radius).join(" ")}switch(this.presence){case"invisible":case"hidden":zt.borderStyle="";break;case"inactive":zt.borderStyle="none";break;default:zt.borderStyle=kt.map(ct=>ct.style).join(" ")}return zt.borderWidth=kt.map(ct=>ct.width).join(" "),zt.borderColor=kt.map(ct=>ct.color).join(" "),zt}}class B extends e.XFAObject{constructor(f){super(i,"break",!0),this.after=(0,a.getStringOption)(f.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.afterTarget=f.afterTarget||"",this.before=(0,a.getStringOption)(f.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.beforeTarget=f.beforeTarget||"",this.bookendLeader=f.bookendLeader||"",this.bookendTrailer=f.bookendTrailer||"",this.id=f.id||"",this.overflowLeader=f.overflowLeader||"",this.overflowTarget=f.overflowTarget||"",this.overflowTrailer=f.overflowTrailer||"",this.startNew=(0,a.getInteger)({data:f.startNew,defaultValue:0,validate:kt=>kt===1}),this.use=f.use||"",this.usehref=f.usehref||"",this.extras=null}}class tt extends e.XFAObject{constructor(f){super(i,"breakAfter",!0),this.id=f.id||"",this.leader=f.leader||"",this.startNew=(0,a.getInteger)({data:f.startNew,defaultValue:0,validate:kt=>kt===1}),this.target=f.target||"",this.targetType=(0,a.getStringOption)(f.targetType,["auto","contentArea","pageArea"]),this.trailer=f.trailer||"",this.use=f.use||"",this.usehref=f.usehref||"",this.script=null}}class it extends e.XFAObject{constructor(f){super(i,"breakBefore",!0),this.id=f.id||"",this.leader=f.leader||"",this.startNew=(0,a.getInteger)({data:f.startNew,defaultValue:0,validate:kt=>kt===1}),this.target=f.target||"",this.targetType=(0,a.getStringOption)(f.targetType,["auto","contentArea","pageArea"]),this.trailer=f.trailer||"",this.use=f.use||"",this.usehref=f.usehref||"",this.script=null}[n.$toHTML](f){return this[n.$extra]={},a.HTMLResult.FAILURE}}class st extends e.XFAObject{constructor(f){super(i,"button",!0),this.highlight=(0,a.getStringOption)(f.highlight,["inverted","none","outline","push"]),this.id=f.id||"",this.use=f.use||"",this.usehref=f.usehref||"",this.extras=null}[n.$toHTML](f){const kt=this[n.$getParent]()[n.$getParent](),zt={name:"button",attributes:{id:this[n.$uid],class:["xfaButton"],style:{}},children:[]};for(const Dt of kt.event.children){if(Dt.activity!=="click"||!Dt.script)continue;const ct=(0,T.recoverJsURL)(Dt.script[n.$content]);if(!ct)continue;const ae=(0,t.fixURL)(ct.url);ae&&zt.children.push({name:"a",attributes:{id:"link"+this[n.$uid],href:ae,newWindow:ct.newWindow,class:["xfaLink"],style:{}},children:[]})}return a.HTMLResult.success(zt)}}class X extends e.XFAObject{constructor(f){super(i,"calculate",!0),this.id=f.id||"",this.override=(0,a.getStringOption)(f.override,["disabled","error","ignore","warning"]),this.use=f.use||"",this.usehref=f.usehref||"",this.extras=null,this.message=null,this.script=null}}class J extends e.XFAObject{constructor(f){super(i,"caption",!0),this.id=f.id||"",this.placement=(0,a.getStringOption)(f.placement,["left","bottom","inline","right","top"]),this.presence=(0,a.getStringOption)(f.presence,["visible","hidden","inactive","invisible"]),this.reserve=Math.ceil((0,a.getMeasurement)(f.reserve)),this.use=f.use||"",this.usehref=f.usehref||"",this.extras=null,this.font=null,this.margin=null,this.para=null,this.value=null}[n.$setValue](f){y(this,f)}[n.$getExtra](f){if(!this[n.$extra]){let{width:kt,height:zt}=f;switch(this.placement){case"left":case"right":case"inline":kt=this.reserve<=0?kt:this.reserve;break;case"top":case"bottom":zt=this.reserve<=0?zt:this.reserve}this[n.$extra]=(0,t.layoutNode)(this,{width:kt,height:zt})}return this[n.$extra]}[n.$toHTML](f){if(!this.value)return a.HTMLResult.EMPTY;this[n.$pushPara]();const kt=this.value[n.$toHTML](f).html;if(!kt)return this[n.$popPara](),a.HTMLResult.EMPTY;const zt=this.reserve;if(this.reserve<=0){const{w:ae,h:fe}=this[n.$getExtra](f);switch(this.placement){case"left":case"right":case"inline":this.reserve=ae;break;case"top":case"bottom":this.reserve=fe}}const Dt=[];typeof kt=="string"?Dt.push({name:"#text",value:kt}):Dt.push(kt);const ct=(0,t.toStyle)(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(ct.width=(0,t.measureToString)(this.reserve));break;case"top":case"bottom":this.reserve>0&&(ct.height=(0,t.measureToString)(this.reserve))}return(0,t.setPara)(this,null,kt),this[n.$popPara](),this.reserve=zt,a.HTMLResult.success({name:"div",attributes:{style:ct,class:["xfaCaption"]},children:Dt})}}class j extends e.StringObject{constructor(f){super(i,"certificate"),this.id=f.id||"",this.name=f.name||"",this.use=f.use||"",this.usehref=f.usehref||""}}class O extends e.XFAObject{constructor(f){super(i,"certificates",!0),this.credentialServerPolicy=(0,a.getStringOption)(f.credentialServerPolicy,["optional","required"]),this.id=f.id||"",this.url=f.url||"",this.urlPolicy=f.urlPolicy||"",this.use=f.use||"",this.usehref=f.usehref||"",this.encryption=null,this.issuers=null,this.keyUsage=null,this.oids=null,this.signing=null,this.subjectDNs=null}}class H extends e.XFAObject{constructor(f){super(i,"checkButton",!0),this.id=f.id||"",this.mark=(0,a.getStringOption)(f.mark,["default","check","circle","cross","diamond","square","star"]),this.shape=(0,a.getStringOption)(f.shape,["square","round"]),this.size=(0,a.getMeasurement)(f.size,"10pt"),this.use=f.use||"",this.usehref=f.usehref||"",this.border=null,this.extras=null,this.margin=null}[n.$toHTML](f){var Se,Oe,ke;const kt=(0,t.toStyle)("margin"),zt=(0,t.measureToString)(this.size);kt.width=kt.height=zt;let Dt,ct,ae;const fe=this[n.$getParent]()[n.$getParent](),pe=fe.items.children.length&&fe.items.children[0][n.$toHTML]().html||[],be={on:(pe[0]!==void 0?pe[0]:"on").toString(),off:(pe[1]!==void 0?pe[1]:"off").toString()},we=(((Se=fe.value)==null?void 0:Se[n.$text]())||"off")===be.on||void 0,ve=fe[n.$getSubformParent](),Ce=fe[n.$uid];let Te;ve instanceof Yt?(ae=ve[n.$uid],Dt="radio",ct="xfaRadio",Te=((Oe=ve[n.$data])==null?void 0:Oe[n.$uid])||ve[n.$uid]):(Dt="checkbox",ct="xfaCheckbox",Te=((ke=fe[n.$data])==null?void 0:ke[n.$uid])||fe[n.$uid]);const Fe={name:"input",attributes:{class:[ct],style:kt,fieldId:Ce,dataId:Te,type:Dt,checked:we,xfaOn:be.on,xfaOff:be.off,"aria-label":R(fe),"aria-required":!1}};return ae&&(Fe.attributes.name=ae),U(fe)&&(Fe.attributes["aria-required"]=!0,Fe.attributes.required=!0),a.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[Fe]})}}class V extends e.XFAObject{constructor(f){super(i,"choiceList",!0),this.commitOn=(0,a.getStringOption)(f.commitOn,["select","exit"]),this.id=f.id||"",this.open=(0,a.getStringOption)(f.open,["userControl","always","multiSelect","onEntry"]),this.textEntry=(0,a.getInteger)({data:f.textEntry,defaultValue:0,validate:kt=>kt===1}),this.use=f.use||"",this.usehref=f.usehref||"",this.border=null,this.extras=null,this.margin=null}[n.$toHTML](f){var fe,pe,be;const kt=(0,t.toStyle)(this,"border","margin"),zt=this[n.$getParent]()[n.$getParent](),Dt={fontSize:`calc(${((fe=zt.font)==null?void 0:fe.size)||10}px * var(--scale-factor))`},ct=[];if(zt.items.children.length>0){const we=zt.items;let ve=0,Ce=0;we.children.length===2&&(ve=we.children[0].save,Ce=1-ve);const Te=we.children[ve][n.$toHTML]().html,Fe=we.children[Ce][n.$toHTML]().html;let Se=!1;const Oe=((pe=zt.value)==null?void 0:pe[n.$text]())||"";for(let ke=0,De=Te.length;kekt>=0}),this.use=f.use||"",this.usehref=f.usehref||""}}class G extends e.XFAObject{constructor(f){super(i,"connect",!0),this.connection=f.connection||"",this.id=f.id||"",this.ref=f.ref||"",this.usage=(0,a.getStringOption)(f.usage,["exportAndImport","exportOnly","importOnly"]),this.use=f.use||"",this.usehref=f.usehref||"",this.picture=null}}class K extends e.XFAObject{constructor(f){super(i,"contentArea",!0),this.h=(0,a.getMeasurement)(f.h),this.id=f.id||"",this.name=f.name||"",this.relevant=(0,a.getRelevant)(f.relevant),this.use=f.use||"",this.usehref=f.usehref||"",this.w=(0,a.getMeasurement)(f.w),this.x=(0,a.getMeasurement)(f.x,"0pt"),this.y=(0,a.getMeasurement)(f.y,"0pt"),this.desc=null,this.extras=null}[n.$toHTML](f){const kt={left:(0,t.measureToString)(this.x),top:(0,t.measureToString)(this.y),width:(0,t.measureToString)(this.w),height:(0,t.measureToString)(this.h)},zt=["xfaContentarea"];return(0,t.isPrintOnly)(this)&&zt.push("xfaPrintOnly"),a.HTMLResult.success({name:"div",children:[],attributes:{style:kt,class:zt,id:this[n.$uid]}})}}class et extends e.XFAObject{constructor(f){super(i,"corner",!0),this.id=f.id||"",this.inverted=(0,a.getInteger)({data:f.inverted,defaultValue:0,validate:kt=>kt===1}),this.join=(0,a.getStringOption)(f.join,["square","round"]),this.presence=(0,a.getStringOption)(f.presence,["visible","hidden","inactive","invisible"]),this.radius=(0,a.getMeasurement)(f.radius),this.stroke=(0,a.getStringOption)(f.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,a.getMeasurement)(f.thickness,"0.5pt"),this.use=f.use||"",this.usehref=f.usehref||"",this.color=null,this.extras=null}[n.$toStyle](){const f=(0,t.toStyle)(this,"visibility");return f.radius=(0,t.measureToString)(this.join==="square"?0:this.radius),f}}class nt extends e.ContentObject{constructor(f){super(i,"date"),this.id=f.id||"",this.name=f.name||"",this.use=f.use||"",this.usehref=f.usehref||""}[n.$finalize](){const f=this[n.$content].trim();this[n.$content]=f?new Date(f):null}[n.$toHTML](f){return o(this[n.$content]?this[n.$content].toString():"")}}class at extends e.ContentObject{constructor(f){super(i,"dateTime"),this.id=f.id||"",this.name=f.name||"",this.use=f.use||"",this.usehref=f.usehref||""}[n.$finalize](){const f=this[n.$content].trim();this[n.$content]=f?new Date(f):null}[n.$toHTML](f){return o(this[n.$content]?this[n.$content].toString():"")}}class Q extends e.XFAObject{constructor(f){super(i,"dateTimeEdit",!0),this.hScrollPolicy=(0,a.getStringOption)(f.hScrollPolicy,["auto","off","on"]),this.id=f.id||"",this.picker=(0,a.getStringOption)(f.picker,["host","none"]),this.use=f.use||"",this.usehref=f.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[n.$toHTML](f){var ct;const kt=(0,t.toStyle)(this,"border","font","margin"),zt=this[n.$getParent]()[n.$getParent](),Dt={name:"input",attributes:{type:"text",fieldId:zt[n.$uid],dataId:((ct=zt[n.$data])==null?void 0:ct[n.$uid])||zt[n.$uid],class:["xfaTextfield"],style:kt,"aria-label":R(zt),"aria-required":!1}};return U(zt)&&(Dt.attributes["aria-required"]=!0,Dt.attributes.required=!0),a.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[Dt]})}}class lt extends e.ContentObject{constructor(f){super(i,"decimal"),this.fracDigits=(0,a.getInteger)({data:f.fracDigits,defaultValue:2,validate:kt=>!0}),this.id=f.id||"",this.leadDigits=(0,a.getInteger)({data:f.leadDigits,defaultValue:-1,validate:kt=>!0}),this.name=f.name||"",this.use=f.use||"",this.usehref=f.usehref||""}[n.$finalize](){const f=parseFloat(this[n.$content].trim());this[n.$content]=isNaN(f)?null:f}[n.$toHTML](f){return o(this[n.$content]!==null?this[n.$content].toString():"")}}class ut extends e.XFAObject{constructor(f){super(i,"defaultUi",!0),this.id=f.id||"",this.use=f.use||"",this.usehref=f.usehref||"",this.extras=null}}class pt extends e.XFAObject{constructor(f){super(i,"desc",!0),this.id=f.id||"",this.use=f.use||"",this.usehref=f.usehref||"",this.boolean=new e.XFAObjectArray,this.date=new e.XFAObjectArray,this.dateTime=new e.XFAObjectArray,this.decimal=new e.XFAObjectArray,this.exData=new e.XFAObjectArray,this.float=new e.XFAObjectArray,this.image=new e.XFAObjectArray,this.integer=new e.XFAObjectArray,this.text=new e.XFAObjectArray,this.time=new e.XFAObjectArray}}class yt extends e.OptionObject{constructor(f){super(i,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]),this.id=f.id||"",this.use=f.use||"",this.usehref=f.usehref||""}}class Et extends e.XFAObject{constructor(f){super(i,"digestMethods",!0),this.id=f.id||"",this.type=(0,a.getStringOption)(f.type,["optional","required"]),this.use=f.use||"",this.usehref=f.usehref||"",this.digestMethod=new e.XFAObjectArray}}class Tt extends e.XFAObject{constructor(f){super(i,"draw",!0),this.anchorType=(0,a.getStringOption)(f.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,a.getInteger)({data:f.colSpan,defaultValue:1,validate:kt=>kt>=1||kt===-1}),this.h=f.h?(0,a.getMeasurement)(f.h):"",this.hAlign=(0,a.getStringOption)(f.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=f.id||"",this.locale=f.locale||"",this.maxH=(0,a.getMeasurement)(f.maxH,"0pt"),this.maxW=(0,a.getMeasurement)(f.maxW,"0pt"),this.minH=(0,a.getMeasurement)(f.minH,"0pt"),this.minW=(0,a.getMeasurement)(f.minW,"0pt"),this.name=f.name||"",this.presence=(0,a.getStringOption)(f.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,a.getRelevant)(f.relevant),this.rotate=(0,a.getInteger)({data:f.rotate,defaultValue:0,validate:kt=>kt%90==0}),this.use=f.use||"",this.usehref=f.usehref||"",this.w=f.w?(0,a.getMeasurement)(f.w):"",this.x=(0,a.getMeasurement)(f.x,"0pt"),this.y=(0,a.getMeasurement)(f.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 e.XFAObjectArray}[n.$setValue](f){y(this,f)}[n.$toHTML](f){if($(this),this.presence==="hidden"||this.presence==="inactive")return a.HTMLResult.EMPTY;(0,t.fixDimensions)(this),this[n.$pushPara]();const kt=this.w,zt=this.h,{w:Dt,h:ct,isBroken:ae}=(0,t.layoutNode)(this,f);if(Dt&&this.w===""){if(ae&&this[n.$getSubformParent]()[n.$isThereMoreWidth]())return this[n.$popPara](),a.HTMLResult.FAILURE;this.w=Dt}if(ct&&this.h===""&&(this.h=ct),g(this),!(0,L.checkDimensions)(this,f))return this.w=kt,this.h=zt,this[n.$popPara](),a.HTMLResult.FAILURE;x(this);const fe=(0,t.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,t.setMinMaxDimensions)(this,fe),fe.margin&&(fe.padding=fe.margin,delete fe.margin);const pe=["xfaDraw"];this.font&&pe.push("xfaFont"),(0,t.isPrintOnly)(this)&&pe.push("xfaPrintOnly");const be={style:fe,id:this[n.$uid],class:pe};this.name&&(be.xfaName=this.name);const we={name:"div",attributes:be,children:[]};P(this,be);const ve=(0,t.computeBbox)(this,we,f),Ce=this.value?this.value[n.$toHTML](f).html:null;return Ce===null?(this.w=kt,this.h=zt,this[n.$popPara](),a.HTMLResult.success((0,t.createWrapper)(this,we),ve)):(we.children.push(Ce),(0,t.setPara)(this,fe,Ce),this.w=kt,this.h=zt,this[n.$popPara](),a.HTMLResult.success((0,t.createWrapper)(this,we),ve))}}class xt extends e.XFAObject{constructor(f){super(i,"edge",!0),this.cap=(0,a.getStringOption)(f.cap,["square","butt","round"]),this.id=f.id||"",this.presence=(0,a.getStringOption)(f.presence,["visible","hidden","inactive","invisible"]),this.stroke=(0,a.getStringOption)(f.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,a.getMeasurement)(f.thickness,"0.5pt"),this.use=f.use||"",this.usehref=f.usehref||"",this.color=null,this.extras=null}[n.$toStyle](){const f=(0,t.toStyle)(this,"visibility");if(Object.assign(f,{linecap:this.cap,width:(0,t.measureToString)(this.thickness),color:this.color?this.color[n.$toStyle]():"#000000",style:""}),this.presence!=="visible")f.style="none";else switch(this.stroke){case"solid":f.style="solid";break;case"dashDot":case"dashDotDot":case"dashed":f.style="dashed";break;case"dotted":f.style="dotted";break;case"embossed":f.style="ridge";break;case"etched":f.style="groove";break;case"lowered":f.style="inset";break;case"raised":f.style="outset"}return f}}class wt extends e.OptionObject{constructor(f){super(i,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]),this.id=f.id||"",this.use=f.use||"",this.usehref=f.usehref||""}}class St extends e.XFAObject{constructor(f){super(i,"encodings",!0),this.id=f.id||"",this.type=(0,a.getStringOption)(f.type,["optional","required"]),this.use=f.use||"",this.usehref=f.usehref||"",this.encoding=new e.XFAObjectArray}}class Rt extends e.XFAObject{constructor(f){super(i,"encrypt",!0),this.id=f.id||"",this.use=f.use||"",this.usehref=f.usehref||"",this.certificate=null}}class Ct extends e.XFAObject{constructor(f){super(i,"encryptData",!0),this.id=f.id||"",this.operation=(0,a.getStringOption)(f.operation,["encrypt","decrypt"]),this.target=f.target||"",this.use=f.use||"",this.usehref=f.usehref||"",this.filter=null,this.manifest=null}}class Gt extends e.XFAObject{constructor(f){super(i,"encryption",!0),this.id=f.id||"",this.type=(0,a.getStringOption)(f.type,["optional","required"]),this.use=f.use||"",this.usehref=f.usehref||"",this.certificate=new e.XFAObjectArray}}class Zt extends e.OptionObject{constructor(f){super(i,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]),this.id=f.id||"",this.use=f.use||"",this.usehref=f.usehref||""}}class Ft extends e.XFAObject{constructor(f){super(i,"encryptionMethods",!0),this.id=f.id||"",this.type=(0,a.getStringOption)(f.type,["optional","required"]),this.use=f.use||"",this.usehref=f.usehref||"",this.encryptionMethod=new e.XFAObjectArray}}class Ut extends e.XFAObject{constructor(f){super(i,"event",!0),this.activity=(0,a.getStringOption)(f.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=f.id||"",this.listen=(0,a.getStringOption)(f.listen,["refOnly","refAndDescendents"]),this.name=f.name||"",this.ref=f.ref||"",this.use=f.use||"",this.usehref=f.usehref||"",this.extras=null,this.encryptData=null,this.execute=null,this.script=null,this.signData=null,this.submit=null}}class Vt extends e.ContentObject{constructor(f){super(i,"exData"),this.contentType=f.contentType||"",this.href=f.href||"",this.id=f.id||"",this.maxLength=(0,a.getInteger)({data:f.maxLength,defaultValue:-1,validate:kt=>kt>=-1}),this.name=f.name||"",this.rid=f.rid||"",this.transferEncoding=(0,a.getStringOption)(f.transferEncoding,["none","base64","package"]),this.use=f.use||"",this.usehref=f.usehref||""}[n.$isCDATAXml](){return this.contentType==="text/html"}[n.$onChild](f){return this.contentType==="text/html"&&f[n.$namespaceId]===_.NamespaceIds.xhtml.id?(this[n.$content]=f,!0):this.contentType==="text/xml"?(this[n.$content]=f,!0):!1}[n.$toHTML](f){return this.contentType==="text/html"&&this[n.$content]?this[n.$content][n.$toHTML](f):a.HTMLResult.EMPTY}}class Wt extends e.XFAObject{constructor(f){super(i,"exObject",!0),this.archive=f.archive||"",this.classId=f.classId||"",this.codeBase=f.codeBase||"",this.codeType=f.codeType||"",this.id=f.id||"",this.name=f.name||"",this.use=f.use||"",this.usehref=f.usehref||"",this.extras=null,this.boolean=new e.XFAObjectArray,this.date=new e.XFAObjectArray,this.dateTime=new e.XFAObjectArray,this.decimal=new e.XFAObjectArray,this.exData=new e.XFAObjectArray,this.exObject=new e.XFAObjectArray,this.float=new e.XFAObjectArray,this.image=new e.XFAObjectArray,this.integer=new e.XFAObjectArray,this.text=new e.XFAObjectArray,this.time=new e.XFAObjectArray}}class Yt extends e.XFAObject{constructor(f){super(i,"exclGroup",!0),this.access=(0,a.getStringOption)(f.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=f.accessKey||"",this.anchorType=(0,a.getStringOption)(f.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,a.getInteger)({data:f.colSpan,defaultValue:1,validate:kt=>kt>=1||kt===-1}),this.h=f.h?(0,a.getMeasurement)(f.h):"",this.hAlign=(0,a.getStringOption)(f.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=f.id||"",this.layout=(0,a.getStringOption)(f.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.maxH=(0,a.getMeasurement)(f.maxH,"0pt"),this.maxW=(0,a.getMeasurement)(f.maxW,"0pt"),this.minH=(0,a.getMeasurement)(f.minH,"0pt"),this.minW=(0,a.getMeasurement)(f.minW,"0pt"),this.name=f.name||"",this.presence=(0,a.getStringOption)(f.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,a.getRelevant)(f.relevant),this.use=f.use||"",this.usehref=f.usehref||"",this.w=f.w?(0,a.getMeasurement)(f.w):"",this.x=(0,a.getMeasurement)(f.x,"0pt"),this.y=(0,a.getMeasurement)(f.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 e.XFAObjectArray,this.event=new e.XFAObjectArray,this.field=new e.XFAObjectArray,this.setProperty=new e.XFAObjectArray}[n.$isBindable](){return!0}[n.$hasSettableValue](){return!0}[n.$setValue](f){for(const kt of this.field.children){if(!kt.value){const zt=new Xe({});kt[n.$appendChild](zt),kt.value=zt}kt.value[n.$setValue](f)}}[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 kt;const f=this[n.$getSubformParent]();return f[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):(kt=f.layout)!=null&&kt.endsWith("-tb")&&f[n.$extra].numberInLine!==0?!1:(this[n.$extra]._isSplittable=!0,!0):!1}[n.$flushHTML](){return(0,L.flushHTML)(this)}[n.$addHTML](f,kt){(0,L.addHTML)(this,f,kt)}[n.$getAvailableSpace](){return(0,L.getAvailableSpace)(this)}[n.$toHTML](f){if($(this),this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0)return a.HTMLResult.EMPTY;(0,t.fixDimensions)(this);const kt=[],zt={id:this[n.$uid],class:[]};(0,t.setAccess)(this,zt.class),this[n.$extra]||(this[n.$extra]=Object.create(null)),Object.assign(this[n.$extra],{children:kt,attributes:zt,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,f.width),height:Math.min(this.h||1/0,f.height)},width:0,height:0,prevHeight:0,currentWidth:0});const Dt=this[n.$isSplittable]();if(Dt||g(this),!(0,L.checkDimensions)(this,f))return a.HTMLResult.FAILURE;const ct=new Set(["field"]);if(this.layout.includes("row")){const ke=this[n.$getSubformParent]().columnWidths;Array.isArray(ke)&&ke.length>0&&(this[n.$extra].columnWidths=ke,this[n.$extra].currentColumn=0)}const ae=(0,t.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),fe=["xfaExclgroup"],pe=(0,t.layoutClass)(this);pe&&fe.push(pe),(0,t.isPrintOnly)(this)&&fe.push("xfaPrintOnly"),zt.style=ae,zt.class=fe,this.name&&(zt.xfaName=this.name),this[n.$pushPara]();const be=this.layout==="lr-tb"||this.layout==="rl-tb",we=be?2:1;for(;this[n.$extra].attemptkt>=1||kt===-1}),this.h=f.h?(0,a.getMeasurement)(f.h):"",this.hAlign=(0,a.getStringOption)(f.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=f.id||"",this.locale=f.locale||"",this.maxH=(0,a.getMeasurement)(f.maxH,"0pt"),this.maxW=(0,a.getMeasurement)(f.maxW,"0pt"),this.minH=(0,a.getMeasurement)(f.minH,"0pt"),this.minW=(0,a.getMeasurement)(f.minW,"0pt"),this.name=f.name||"",this.presence=(0,a.getStringOption)(f.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,a.getRelevant)(f.relevant),this.rotate=(0,a.getInteger)({data:f.rotate,defaultValue:0,validate:kt=>kt%90==0}),this.use=f.use||"",this.usehref=f.usehref||"",this.w=f.w?(0,a.getMeasurement)(f.w):"",this.x=(0,a.getMeasurement)(f.x,"0pt"),this.y=(0,a.getMeasurement)(f.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 e.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 e.XFAObjectArray,this.connect=new e.XFAObjectArray,this.event=new e.XFAObjectArray,this.setProperty=new e.XFAObjectArray}[n.$isBindable](){return!0}[n.$setValue](f){y(this,f)}[n.$toHTML](f){var ke,De,_e;if($(this),!this.ui){this.ui=new nn({}),this.ui[n.$globalData]=this[n.$globalData],this[n.$appendChild](this.ui);let xe;switch(this.items.children.length){case 0:xe=new bn({}),this.ui.textEdit=xe;break;case 1:xe=new H({}),this.ui.checkButton=xe;break;case 2:xe=new V({}),this.ui.choiceList=xe}this.ui[n.$appendChild](xe)}if(!this.ui||this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0)return a.HTMLResult.EMPTY;this.caption&&delete this.caption[n.$extra],this[n.$pushPara]();const kt=this.caption?this.caption[n.$toHTML](f).html:null,zt=this.w,Dt=this.h;let ct=0,ae=0;this.margin&&(ct=this.margin.leftInset+this.margin.rightInset,ae=this.margin.topInset+this.margin.bottomInset);let fe=null;if(this.w===""||this.h===""){let xe=null,me=null,Re=0,Ie=0;if(this.ui.checkButton)Re=Ie=this.ui.checkButton.size;else{const{w:je,h:Le}=(0,t.layoutNode)(this,f);je!==null?(Re=je,Ie=Le):Ie=(0,A.getMetrics)(this.font,!0).lineNoGap}if(fe=u(this.ui[n.$getExtra]()),Re+=fe.w,Ie+=fe.h,this.caption){const{w:je,h:Le,isBroken:Pe}=this.caption[n.$getExtra](f);if(Pe&&this[n.$getSubformParent]()[n.$isThereMoreWidth]())return this[n.$popPara](),a.HTMLResult.FAILURE;switch(xe=je,me=Le,this.caption.placement){case"left":case"right":case"inline":xe+=Re;break;case"top":case"bottom":me+=Ie}}else xe=Re,me=Ie;xe&&this.w===""&&(xe+=ct,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1kt>=1&&kt<=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 mt extends e.ContentObject{constructor(f){super(i,"float"),this.id=f.id||"",this.name=f.name||"",this.use=f.use||"",this.usehref=f.usehref||""}[n.$finalize](){const f=parseFloat(this[n.$content].trim());this[n.$content]=isNaN(f)?null:f}[n.$toHTML](f){return o(this[n.$content]!==null?this[n.$content].toString():"")}}class rt extends e.XFAObject{constructor(f){super(i,"font",!0),this.baselineShift=(0,a.getMeasurement)(f.baselineShift),this.fontHorizontalScale=(0,a.getFloat)({data:f.fontHorizontalScale,defaultValue:100,validate:kt=>kt>=0}),this.fontVerticalScale=(0,a.getFloat)({data:f.fontVerticalScale,defaultValue:100,validate:kt=>kt>=0}),this.id=f.id||"",this.kerningMode=(0,a.getStringOption)(f.kerningMode,["none","pair"]),this.letterSpacing=(0,a.getMeasurement)(f.letterSpacing,"0"),this.lineThrough=(0,a.getInteger)({data:f.lineThrough,defaultValue:0,validate:kt=>kt===1||kt===2}),this.lineThroughPeriod=(0,a.getStringOption)(f.lineThroughPeriod,["all","word"]),this.overline=(0,a.getInteger)({data:f.overline,defaultValue:0,validate:kt=>kt===1||kt===2}),this.overlinePeriod=(0,a.getStringOption)(f.overlinePeriod,["all","word"]),this.posture=(0,a.getStringOption)(f.posture,["normal","italic"]),this.size=(0,a.getMeasurement)(f.size,"10pt"),this.typeface=f.typeface||"Courier",this.underline=(0,a.getInteger)({data:f.underline,defaultValue:0,validate:kt=>kt===1||kt===2}),this.underlinePeriod=(0,a.getStringOption)(f.underlinePeriod,["all","word"]),this.use=f.use||"",this.usehref=f.usehref||"",this.weight=(0,a.getStringOption)(f.weight,["normal","bold"]),this.extras=null,this.fill=null}[n.$clean](f){super[n.$clean](f),this[n.$globalData].usedTypefaces.add(this.typeface)}[n.$toStyle](){const f=(0,t.toStyle)(this,"fill"),kt=f.color;return kt&&(kt==="#000000"?delete f.color:kt.startsWith("#")||(f.background=kt,f.backgroundClip="text",f.color="transparent")),this.baselineShift&&(f.verticalAlign=(0,t.measureToString)(this.baselineShift)),f.fontKerning=this.kerningMode==="none"?"none":"normal",f.letterSpacing=(0,t.measureToString)(this.letterSpacing),this.lineThrough!==0&&(f.textDecoration="line-through",this.lineThrough===2&&(f.textDecorationStyle="double")),this.overline!==0&&(f.textDecoration="overline",this.overline===2&&(f.textDecorationStyle="double")),f.fontStyle=this.posture,f.fontSize=(0,t.measureToString)(.99*this.size),(0,t.setFontFamily)(this,this,this[n.$globalData].fontFinder,f),this.underline!==0&&(f.textDecoration="underline",this.underline===2&&(f.textDecorationStyle="double")),f.fontWeight=this.weight,f}}class ht extends e.XFAObject{constructor(f){super(i,"format",!0),this.id=f.id||"",this.use=f.use||"",this.usehref=f.usehref||"",this.extras=null,this.picture=null}}class gt extends e.StringObject{constructor(f){super(i,"handler"),this.id=f.id||"",this.type=(0,a.getStringOption)(f.type,["optional","required"]),this.use=f.use||"",this.usehref=f.usehref||""}}class bt extends e.XFAObject{constructor(f){super(i,"hyphenation"),this.excludeAllCaps=(0,a.getInteger)({data:f.excludeAllCaps,defaultValue:0,validate:kt=>kt===1}),this.excludeInitialCap=(0,a.getInteger)({data:f.excludeInitialCap,defaultValue:0,validate:kt=>kt===1}),this.hyphenate=(0,a.getInteger)({data:f.hyphenate,defaultValue:0,validate:kt=>kt===1}),this.id=f.id||"",this.pushCharacterCount=(0,a.getInteger)({data:f.pushCharacterCount,defaultValue:3,validate:kt=>kt>=0}),this.remainCharacterCount=(0,a.getInteger)({data:f.remainCharacterCount,defaultValue:3,validate:kt=>kt>=0}),this.use=f.use||"",this.usehref=f.usehref||"",this.wordCharacterCount=(0,a.getInteger)({data:f.wordCharacterCount,defaultValue:7,validate:kt=>kt>=0})}}class Pt extends e.StringObject{constructor(f){super(i,"image"),this.aspect=(0,a.getStringOption)(f.aspect,["fit","actual","height","none","width"]),this.contentType=f.contentType||"",this.href=f.href||"",this.id=f.id||"",this.name=f.name||"",this.transferEncoding=(0,a.getStringOption)(f.transferEncoding,["base64","none","package"]),this.use=f.use||"",this.usehref=f.usehref||""}[n.$toHTML](){if(this.contentType&&!b.has(this.contentType.toLowerCase()))return a.HTMLResult.EMPTY;let f=this[n.$globalData].images&&this[n.$globalData].images.get(this.href);if(!f&&(this.href||!this[n.$content])||(f||this.transferEncoding!=="base64"||(f=(0,v.stringToBytes)(atob(this[n.$content]))),!f))return a.HTMLResult.EMPTY;if(!this.contentType){for(const[ct,ae]of F)if(f.length>ct.length&&ct.every((fe,pe)=>fe===f[pe])){this.contentType=ae;break}if(!this.contentType)return a.HTMLResult.EMPTY}const kt=new Blob([f],{type:this.contentType});let zt;switch(this.aspect){case"fit":case"actual":break;case"height":zt={height:"100%",objectFit:"fill"};break;case"none":zt={width:"100%",height:"100%",objectFit:"fill"};break;case"width":zt={width:"100%",objectFit:"fill"}}const Dt=this[n.$getParent]();return a.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:zt,src:URL.createObjectURL(kt),alt:Dt?R(Dt[n.$getParent]()):null}})}}class It extends e.XFAObject{constructor(f){super(i,"imageEdit",!0),this.data=(0,a.getStringOption)(f.data,["link","embed"]),this.id=f.id||"",this.use=f.use||"",this.usehref=f.usehref||"",this.border=null,this.extras=null,this.margin=null}[n.$toHTML](f){return this.data==="embed"?a.HTMLResult.success({name:"div",children:[],attributes:{}}):a.HTMLResult.EMPTY}}class Nt extends e.ContentObject{constructor(f){super(i,"integer"),this.id=f.id||"",this.name=f.name||"",this.use=f.use||"",this.usehref=f.usehref||""}[n.$finalize](){const f=parseInt(this[n.$content].trim(),10);this[n.$content]=isNaN(f)?null:f}[n.$toHTML](f){return o(this[n.$content]!==null?this[n.$content].toString():"")}}class Kt extends e.XFAObject{constructor(f){super(i,"issuers",!0),this.id=f.id||"",this.type=(0,a.getStringOption)(f.type,["optional","required"]),this.use=f.use||"",this.usehref=f.usehref||"",this.certificate=new e.XFAObjectArray}}class Qt extends e.XFAObject{constructor(f){super(i,"items",!0),this.id=f.id||"",this.name=f.name||"",this.presence=(0,a.getStringOption)(f.presence,["visible","hidden","inactive","invisible"]),this.ref=f.ref||"",this.save=(0,a.getInteger)({data:f.save,defaultValue:0,validate:kt=>kt===1}),this.use=f.use||"",this.usehref=f.usehref||"",this.boolean=new e.XFAObjectArray,this.date=new e.XFAObjectArray,this.dateTime=new e.XFAObjectArray,this.decimal=new e.XFAObjectArray,this.exData=new e.XFAObjectArray,this.float=new e.XFAObjectArray,this.image=new e.XFAObjectArray,this.integer=new e.XFAObjectArray,this.text=new e.XFAObjectArray,this.time=new e.XFAObjectArray}[n.$toHTML](){const f=[];for(const kt of this[n.$getChildren]())f.push(kt[n.$text]());return a.HTMLResult.success(f)}}M.Items=Qt;class ne extends e.XFAObject{constructor(f){super(i,"keep",!0),this.id=f.id||"";const kt=["none","contentArea","pageArea"];this.intact=(0,a.getStringOption)(f.intact,kt),this.next=(0,a.getStringOption)(f.next,kt),this.previous=(0,a.getStringOption)(f.previous,kt),this.use=f.use||"",this.usehref=f.usehref||"",this.extras=null}}class ee extends e.XFAObject{constructor(f){super(i,"keyUsage");const kt=["","yes","no"];this.crlSign=(0,a.getStringOption)(f.crlSign,kt),this.dataEncipherment=(0,a.getStringOption)(f.dataEncipherment,kt),this.decipherOnly=(0,a.getStringOption)(f.decipherOnly,kt),this.digitalSignature=(0,a.getStringOption)(f.digitalSignature,kt),this.encipherOnly=(0,a.getStringOption)(f.encipherOnly,kt),this.id=f.id||"",this.keyAgreement=(0,a.getStringOption)(f.keyAgreement,kt),this.keyCertSign=(0,a.getStringOption)(f.keyCertSign,kt),this.keyEncipherment=(0,a.getStringOption)(f.keyEncipherment,kt),this.nonRepudiation=(0,a.getStringOption)(f.nonRepudiation,kt),this.type=(0,a.getStringOption)(f.type,["optional","required"]),this.use=f.use||"",this.usehref=f.usehref||""}}class te extends e.XFAObject{constructor(f){super(i,"line",!0),this.hand=(0,a.getStringOption)(f.hand,["even","left","right"]),this.id=f.id||"",this.slope=(0,a.getStringOption)(f.slope,["\\","/"]),this.use=f.use||"",this.usehref=f.usehref||"",this.edge=null}[n.$toHTML](){const f=this[n.$getParent]()[n.$getParent](),kt=this.edge||new xt({}),zt=kt[n.$toStyle](),Dt=Object.create(null),ct=kt.presence==="visible"?kt.thickness:0;Dt.strokeWidth=(0,t.measureToString)(ct),Dt.stroke=zt.color;let ae,fe,pe,be,we="100%",ve="100%";f.w<=ct?([ae,fe,pe,be]=["50%",0,"50%","100%"],we=Dt.strokeWidth):f.h<=ct?([ae,fe,pe,be]=[0,"50%","100%","50%"],ve=Dt.strokeWidth):this.slope==="\\"?[ae,fe,pe,be]=[0,0,"100%","100%"]:[ae,fe,pe,be]=[0,"100%","100%",0];const Ce={name:"svg",children:[{name:"line",attributes:{xmlns:C,x1:ae,y1:fe,x2:pe,y2:be,style:Dt}}],attributes:{xmlns:C,width:we,height:ve,style:{overflow:"visible"}}};return l(f)?a.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[Ce]}):(Ce.attributes.style.position="absolute",a.HTMLResult.success(Ce))}}class oe extends e.XFAObject{constructor(f){super(i,"linear",!0),this.id=f.id||"",this.type=(0,a.getStringOption)(f.type,["toRight","toBottom","toLeft","toTop"]),this.use=f.use||"",this.usehref=f.usehref||"",this.color=null,this.extras=null}[n.$toStyle](f){return f=f?f[n.$toStyle]():"#FFFFFF",`linear-gradient(${this.type.replace(/([RBLT])/," $1").toLowerCase()}, ${f}, ${this.color?this.color[n.$toStyle]():"#000000"})`}}class le extends e.ContentObject{constructor(f){super(i,"lockDocument"),this.id=f.id||"",this.type=(0,a.getStringOption)(f.type,["optional","required"]),this.use=f.use||"",this.usehref=f.usehref||""}[n.$finalize](){this[n.$content]=(0,a.getStringOption)(this[n.$content],["auto","0","1"])}}class ie extends e.XFAObject{constructor(f){super(i,"manifest",!0),this.action=(0,a.getStringOption)(f.action,["include","all","exclude"]),this.id=f.id||"",this.name=f.name||"",this.use=f.use||"",this.usehref=f.usehref||"",this.extras=null,this.ref=new e.XFAObjectArray}}class ce extends e.XFAObject{constructor(f){super(i,"margin",!0),this.bottomInset=(0,a.getMeasurement)(f.bottomInset,"0"),this.id=f.id||"",this.leftInset=(0,a.getMeasurement)(f.leftInset,"0"),this.rightInset=(0,a.getMeasurement)(f.rightInset,"0"),this.topInset=(0,a.getMeasurement)(f.topInset,"0"),this.use=f.use||"",this.usehref=f.usehref||"",this.extras=null}[n.$toStyle](){return{margin:(0,t.measureToString)(this.topInset)+" "+(0,t.measureToString)(this.rightInset)+" "+(0,t.measureToString)(this.bottomInset)+" "+(0,t.measureToString)(this.leftInset)}}}class se extends e.XFAObject{constructor(f){super(i,"mdp"),this.id=f.id||"",this.permissions=(0,a.getInteger)({data:f.permissions,defaultValue:2,validate:kt=>kt===1||kt===3}),this.signatureType=(0,a.getStringOption)(f.signatureType,["filler","author"]),this.use=f.use||"",this.usehref=f.usehref||""}}class ue extends e.XFAObject{constructor(f){super(i,"medium"),this.id=f.id||"",this.imagingBBox=(0,a.getBBox)(f.imagingBBox),this.long=(0,a.getMeasurement)(f.long),this.orientation=(0,a.getStringOption)(f.orientation,["portrait","landscape"]),this.short=(0,a.getMeasurement)(f.short),this.stock=f.stock||"",this.trayIn=(0,a.getStringOption)(f.trayIn,["auto","delegate","pageFront"]),this.trayOut=(0,a.getStringOption)(f.trayOut,["auto","delegate"]),this.use=f.use||"",this.usehref=f.usehref||""}}class he extends e.XFAObject{constructor(f){super(i,"message",!0),this.id=f.id||"",this.use=f.use||"",this.usehref=f.usehref||"",this.text=new e.XFAObjectArray}}class de extends e.XFAObject{constructor(f){super(i,"numericEdit",!0),this.hScrollPolicy=(0,a.getStringOption)(f.hScrollPolicy,["auto","off","on"]),this.id=f.id||"",this.use=f.use||"",this.usehref=f.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[n.$toHTML](f){var ct;const kt=(0,t.toStyle)(this,"border","font","margin"),zt=this[n.$getParent]()[n.$getParent](),Dt={name:"input",attributes:{type:"text",fieldId:zt[n.$uid],dataId:((ct=zt[n.$data])==null?void 0:ct[n.$uid])||zt[n.$uid],class:["xfaTextfield"],style:kt,"aria-label":R(zt),"aria-required":!1}};return U(zt)&&(Dt.attributes["aria-required"]=!0,Dt.attributes.required=!0),a.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[Dt]})}}class ge extends e.XFAObject{constructor(f){super(i,"occur",!0),this.id=f.id||"",this.initial=f.initial!==""?(0,a.getInteger)({data:f.initial,defaultValue:"",validate:kt=>!0}):"",this.max=f.max!==""?(0,a.getInteger)({data:f.max,defaultValue:1,validate:kt=>!0}):"",this.min=f.min!==""?(0,a.getInteger)({data:f.min,defaultValue:1,validate:kt=>!0}):"",this.use=f.use||"",this.usehref=f.usehref||"",this.extras=null}[n.$clean](){const f=this[n.$getParent](),kt=this.min;this.min===""&&(this.min=f instanceof $e||f instanceof Ue?0:1),this.max===""&&(this.max=kt===""?f instanceof $e||f instanceof Ue?-1:1:this.min),this.max!==-1&&this.max!0}),this.name=f.name||"",this.numbered=(0,a.getInteger)({data:f.numbered,defaultValue:1,validate:kt=>!0}),this.oddOrEven=(0,a.getStringOption)(f.oddOrEven,["any","even","odd"]),this.pagePosition=(0,a.getStringOption)(f.pagePosition,["any","first","last","only","rest"]),this.relevant=(0,a.getRelevant)(f.relevant),this.use=f.use||"",this.usehref=f.usehref||"",this.desc=null,this.extras=null,this.medium=null,this.occur=null,this.area=new e.XFAObjectArray,this.contentArea=new e.XFAObjectArray,this.draw=new e.XFAObjectArray,this.exclGroup=new e.XFAObjectArray,this.field=new e.XFAObjectArray,this.subform=new e.XFAObjectArray}[n.$isUsable](){return this[n.$extra]?!this.occur||this.occur.max===-1||this[n.$extra].numberOfUsect.oddOrEven===kt&&ct.pagePosition===zt);return Dt||(Dt=this.pageArea.children.find(ct=>ct.oddOrEven==="any"&&ct.pagePosition===zt),Dt)?Dt:(Dt=this.pageArea.children.find(ct=>ct.oddOrEven==="any"&&ct.pagePosition==="any"),Dt||this.pageArea.children[0])}}class Bn extends e.XFAObject{constructor(f){super(i,"para",!0),this.hAlign=(0,a.getStringOption)(f.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=f.id||"",this.lineHeight=f.lineHeight?(0,a.getMeasurement)(f.lineHeight,"0pt"):"",this.marginLeft=f.marginLeft?(0,a.getMeasurement)(f.marginLeft,"0pt"):"",this.marginRight=f.marginRight?(0,a.getMeasurement)(f.marginRight,"0pt"):"",this.orphans=(0,a.getInteger)({data:f.orphans,defaultValue:0,validate:kt=>kt>=0}),this.preserve=f.preserve||"",this.radixOffset=f.radixOffset?(0,a.getMeasurement)(f.radixOffset,"0pt"):"",this.spaceAbove=f.spaceAbove?(0,a.getMeasurement)(f.spaceAbove,"0pt"):"",this.spaceBelow=f.spaceBelow?(0,a.getMeasurement)(f.spaceBelow,"0pt"):"",this.tabDefault=f.tabDefault?(0,a.getMeasurement)(this.tabDefault):"",this.tabStops=(f.tabStops||"").trim().split(/\s+/).map((kt,zt)=>zt%2==1?(0,a.getMeasurement)(kt):kt),this.textIndent=f.textIndent?(0,a.getMeasurement)(f.textIndent,"0pt"):"",this.use=f.use||"",this.usehref=f.usehref||"",this.vAlign=(0,a.getStringOption)(f.vAlign,["top","bottom","middle"]),this.widows=(0,a.getInteger)({data:f.widows,defaultValue:0,validate:kt=>kt>=0}),this.hyphenation=null}[n.$toStyle](){const f=(0,t.toStyle)(this,"hAlign");return this.marginLeft!==""&&(f.paddingLeft=(0,t.measureToString)(this.marginLeft)),this.marginRight!==""&&(f.paddingight=(0,t.measureToString)(this.marginRight)),this.spaceAbove!==""&&(f.paddingTop=(0,t.measureToString)(this.spaceAbove)),this.spaceBelow!==""&&(f.paddingBottom=(0,t.measureToString)(this.spaceBelow)),this.textIndent!==""&&(f.textIndent=(0,t.measureToString)(this.textIndent),(0,t.fixTextIndent)(f)),this.lineHeight>0&&(f.lineHeight=(0,t.measureToString)(this.lineHeight)),this.tabDefault!==""&&(f.tabSize=(0,t.measureToString)(this.tabDefault)),this.tabStops.length,this.hyphenatation&&Object.assign(f,this.hyphenatation[n.$toStyle]()),f}}class $n extends e.XFAObject{constructor(f){super(i,"passwordEdit",!0),this.hScrollPolicy=(0,a.getStringOption)(f.hScrollPolicy,["auto","off","on"]),this.id=f.id||"",this.passwordChar=f.passwordChar||"*",this.use=f.use||"",this.usehref=f.usehref||"",this.border=null,this.extras=null,this.margin=null}}class jn extends e.XFAObject{constructor(f){super(i,"pattern",!0),this.id=f.id||"",this.type=(0,a.getStringOption)(f.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),this.use=f.use||"",this.usehref=f.usehref||"",this.color=null,this.extras=null}[n.$toStyle](f){f=f?f[n.$toStyle]():"#FFFFFF";const kt=this.color?this.color[n.$toStyle]():"#000000",zt="repeating-linear-gradient",Dt=`${f},${f} 5px,${kt} 5px,${kt} 10px`;switch(this.type){case"crossHatch":return`${zt}(to top,${Dt}) ${zt}(to right,${Dt})`;case"crossDiagonal":return`${zt}(45deg,${Dt}) ${zt}(-45deg,${Dt})`;case"diagonalLeft":return`${zt}(45deg,${Dt})`;case"diagonalRight":return`${zt}(-45deg,${Dt})`;case"horizontal":return`${zt}(to top,${Dt})`;case"vertical":return`${zt}(to right,${Dt})`}return""}}class Un extends e.StringObject{constructor(f){super(i,"picture"),this.id=f.id||"",this.use=f.use||"",this.usehref=f.usehref||""}}class Hn extends e.XFAObject{constructor(f){super(i,"proto",!0),this.appearanceFilter=new e.XFAObjectArray,this.arc=new e.XFAObjectArray,this.area=new e.XFAObjectArray,this.assist=new e.XFAObjectArray,this.barcode=new e.XFAObjectArray,this.bindItems=new e.XFAObjectArray,this.bookend=new e.XFAObjectArray,this.boolean=new e.XFAObjectArray,this.border=new e.XFAObjectArray,this.break=new e.XFAObjectArray,this.breakAfter=new e.XFAObjectArray,this.breakBefore=new e.XFAObjectArray,this.button=new e.XFAObjectArray,this.calculate=new e.XFAObjectArray,this.caption=new e.XFAObjectArray,this.certificate=new e.XFAObjectArray,this.certificates=new e.XFAObjectArray,this.checkButton=new e.XFAObjectArray,this.choiceList=new e.XFAObjectArray,this.color=new e.XFAObjectArray,this.comb=new e.XFAObjectArray,this.connect=new e.XFAObjectArray,this.contentArea=new e.XFAObjectArray,this.corner=new e.XFAObjectArray,this.date=new e.XFAObjectArray,this.dateTime=new e.XFAObjectArray,this.dateTimeEdit=new e.XFAObjectArray,this.decimal=new e.XFAObjectArray,this.defaultUi=new e.XFAObjectArray,this.desc=new e.XFAObjectArray,this.digestMethod=new e.XFAObjectArray,this.digestMethods=new e.XFAObjectArray,this.draw=new e.XFAObjectArray,this.edge=new e.XFAObjectArray,this.encoding=new e.XFAObjectArray,this.encodings=new e.XFAObjectArray,this.encrypt=new e.XFAObjectArray,this.encryptData=new e.XFAObjectArray,this.encryption=new e.XFAObjectArray,this.encryptionMethod=new e.XFAObjectArray,this.encryptionMethods=new e.XFAObjectArray,this.event=new e.XFAObjectArray,this.exData=new e.XFAObjectArray,this.exObject=new e.XFAObjectArray,this.exclGroup=new e.XFAObjectArray,this.execute=new e.XFAObjectArray,this.extras=new e.XFAObjectArray,this.field=new e.XFAObjectArray,this.fill=new e.XFAObjectArray,this.filter=new e.XFAObjectArray,this.float=new e.XFAObjectArray,this.font=new e.XFAObjectArray,this.format=new e.XFAObjectArray,this.handler=new e.XFAObjectArray,this.hyphenation=new e.XFAObjectArray,this.image=new e.XFAObjectArray,this.imageEdit=new e.XFAObjectArray,this.integer=new e.XFAObjectArray,this.issuers=new e.XFAObjectArray,this.items=new e.XFAObjectArray,this.keep=new e.XFAObjectArray,this.keyUsage=new e.XFAObjectArray,this.line=new e.XFAObjectArray,this.linear=new e.XFAObjectArray,this.lockDocument=new e.XFAObjectArray,this.manifest=new e.XFAObjectArray,this.margin=new e.XFAObjectArray,this.mdp=new e.XFAObjectArray,this.medium=new e.XFAObjectArray,this.message=new e.XFAObjectArray,this.numericEdit=new e.XFAObjectArray,this.occur=new e.XFAObjectArray,this.oid=new e.XFAObjectArray,this.oids=new e.XFAObjectArray,this.overflow=new e.XFAObjectArray,this.pageArea=new e.XFAObjectArray,this.pageSet=new e.XFAObjectArray,this.para=new e.XFAObjectArray,this.passwordEdit=new e.XFAObjectArray,this.pattern=new e.XFAObjectArray,this.picture=new e.XFAObjectArray,this.radial=new e.XFAObjectArray,this.reason=new e.XFAObjectArray,this.reasons=new e.XFAObjectArray,this.rectangle=new e.XFAObjectArray,this.ref=new e.XFAObjectArray,this.script=new e.XFAObjectArray,this.setProperty=new e.XFAObjectArray,this.signData=new e.XFAObjectArray,this.signature=new e.XFAObjectArray,this.signing=new e.XFAObjectArray,this.solid=new e.XFAObjectArray,this.speak=new e.XFAObjectArray,this.stipple=new e.XFAObjectArray,this.subform=new e.XFAObjectArray,this.subformSet=new e.XFAObjectArray,this.subjectDN=new e.XFAObjectArray,this.subjectDNs=new e.XFAObjectArray,this.submit=new e.XFAObjectArray,this.text=new e.XFAObjectArray,this.textEdit=new e.XFAObjectArray,this.time=new e.XFAObjectArray,this.timeStamp=new e.XFAObjectArray,this.toolTip=new e.XFAObjectArray,this.traversal=new e.XFAObjectArray,this.traverse=new e.XFAObjectArray,this.ui=new e.XFAObjectArray,this.validate=new e.XFAObjectArray,this.value=new e.XFAObjectArray,this.variables=new e.XFAObjectArray}}class Xn extends e.XFAObject{constructor(f){super(i,"radial",!0),this.id=f.id||"",this.type=(0,a.getStringOption)(f.type,["toEdge","toCenter"]),this.use=f.use||"",this.usehref=f.usehref||"",this.color=null,this.extras=null}[n.$toStyle](f){f=f?f[n.$toStyle]():"#FFFFFF";const kt=this.color?this.color[n.$toStyle]():"#000000";return`radial-gradient(circle at center, ${this.type==="toEdge"?`${f},${kt}`:`${kt},${f}`})`}}class qn extends e.StringObject{constructor(f){super(i,"reason"),this.id=f.id||"",this.name=f.name||"",this.use=f.use||"",this.usehref=f.usehref||""}}class zn extends e.XFAObject{constructor(f){super(i,"reasons",!0),this.id=f.id||"",this.type=(0,a.getStringOption)(f.type,["optional","required"]),this.use=f.use||"",this.usehref=f.usehref||"",this.reason=new e.XFAObjectArray}}class fn extends e.XFAObject{constructor(f){super(i,"rectangle",!0),this.hand=(0,a.getStringOption)(f.hand,["even","left","right"]),this.id=f.id||"",this.use=f.use||"",this.usehref=f.usehref||"",this.corner=new e.XFAObjectArray(4),this.edge=new e.XFAObjectArray(4),this.fill=null}[n.$toHTML](){var ae;const f=this.edge.children.length?this.edge.children[0]:new xt({}),kt=f[n.$toStyle](),zt=Object.create(null);((ae=this.fill)==null?void 0:ae.presence)==="visible"?Object.assign(zt,this.fill[n.$toStyle]()):zt.fill="transparent",zt.strokeWidth=(0,t.measureToString)(f.presence==="visible"?f.thickness:0),zt.stroke=kt.color;const Dt=(this.corner.children.length?this.corner.children[0]:new et({}))[n.$toStyle](),ct={name:"svg",children:[{name:"rect",attributes:{xmlns:C,width:"100%",height:"100%",x:0,y:0,rx:Dt.radius,ry:Dt.radius,style:zt}}],attributes:{xmlns:C,style:{overflow:"visible"},width:"100%",height:"100%"}};return l(this[n.$getParent]()[n.$getParent]())?a.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[ct]}):(ct.attributes.style.position="absolute",a.HTMLResult.success(ct))}}class Gn extends e.StringObject{constructor(f){super(i,"ref"),this.id=f.id||"",this.use=f.use||"",this.usehref=f.usehref||""}}class Wn extends e.StringObject{constructor(f){super(i,"script"),this.binding=f.binding||"",this.contentType=f.contentType||"",this.id=f.id||"",this.name=f.name||"",this.runAt=(0,a.getStringOption)(f.runAt,["client","both","server"]),this.use=f.use||"",this.usehref=f.usehref||""}}class pn extends e.XFAObject{constructor(f){super(i,"setProperty"),this.connection=f.connection||"",this.ref=f.ref||"",this.target=f.target||""}}M.SetProperty=pn;class Vn extends e.XFAObject{constructor(f){super(i,"signData",!0),this.id=f.id||"",this.operation=(0,a.getStringOption)(f.operation,["sign","clear","verify"]),this.ref=f.ref||"",this.target=f.target||"",this.use=f.use||"",this.usehref=f.usehref||"",this.filter=null,this.manifest=null}}class Kn extends e.XFAObject{constructor(f){super(i,"signature",!0),this.id=f.id||"",this.type=(0,a.getStringOption)(f.type,["PDF1.3","PDF1.6"]),this.use=f.use||"",this.usehref=f.usehref||"",this.border=null,this.extras=null,this.filter=null,this.manifest=null,this.margin=null}}class Yn extends e.XFAObject{constructor(f){super(i,"signing",!0),this.id=f.id||"",this.type=(0,a.getStringOption)(f.type,["optional","required"]),this.use=f.use||"",this.usehref=f.usehref||"",this.certificate=new e.XFAObjectArray}}class Jn extends e.XFAObject{constructor(f){super(i,"solid",!0),this.id=f.id||"",this.use=f.use||"",this.usehref=f.usehref||"",this.extras=null}[n.$toStyle](f){return f?f[n.$toStyle]():"#FFFFFF"}}class Zn extends e.StringObject{constructor(f){super(i,"speak"),this.disable=(0,a.getInteger)({data:f.disable,defaultValue:0,validate:kt=>kt===1}),this.id=f.id||"",this.priority=(0,a.getStringOption)(f.priority,["custom","caption","name","toolTip"]),this.rid=f.rid||"",this.use=f.use||"",this.usehref=f.usehref||""}}class Qn extends e.XFAObject{constructor(f){super(i,"stipple",!0),this.id=f.id||"",this.rate=(0,a.getInteger)({data:f.rate,defaultValue:50,validate:kt=>kt>=0&&kt<=100}),this.use=f.use||"",this.usehref=f.usehref||"",this.color=null,this.extras=null}[n.$toStyle](f){const kt=this.rate/100;return v.Util.makeHexColor(Math.round(f.value.r*(1-kt)+this.value.r*kt),Math.round(f.value.g*(1-kt)+this.value.g*kt),Math.round(f.value.b*(1-kt)+this.value.b*kt))}}class gn extends e.XFAObject{constructor(f){super(i,"subform",!0),this.access=(0,a.getStringOption)(f.access,["open","nonInteractive","protected","readOnly"]),this.allowMacro=(0,a.getInteger)({data:f.allowMacro,defaultValue:0,validate:kt=>kt===1}),this.anchorType=(0,a.getStringOption)(f.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,a.getInteger)({data:f.colSpan,defaultValue:1,validate:kt=>kt>=1||kt===-1}),this.columnWidths=(f.columnWidths||"").trim().split(/\s+/).map(kt=>kt==="-1"?-1:(0,a.getMeasurement)(kt)),this.h=f.h?(0,a.getMeasurement)(f.h):"",this.hAlign=(0,a.getStringOption)(f.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=f.id||"",this.layout=(0,a.getStringOption)(f.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.locale=f.locale||"",this.maxH=(0,a.getMeasurement)(f.maxH,"0pt"),this.maxW=(0,a.getMeasurement)(f.maxW,"0pt"),this.mergeMode=(0,a.getStringOption)(f.mergeMode,["consumeData","matchTemplate"]),this.minH=(0,a.getMeasurement)(f.minH,"0pt"),this.minW=(0,a.getMeasurement)(f.minW,"0pt"),this.name=f.name||"",this.presence=(0,a.getStringOption)(f.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,a.getRelevant)(f.relevant),this.restoreState=(0,a.getStringOption)(f.restoreState,["manual","auto"]),this.scope=(0,a.getStringOption)(f.scope,["name","none"]),this.use=f.use||"",this.usehref=f.usehref||"",this.w=f.w?(0,a.getMeasurement)(f.w):"",this.x=(0,a.getMeasurement)(f.x,"0pt"),this.y=(0,a.getMeasurement)(f.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 e.XFAObjectArray,this.breakAfter=new e.XFAObjectArray,this.breakBefore=new e.XFAObjectArray,this.connect=new e.XFAObjectArray,this.draw=new e.XFAObjectArray,this.event=new e.XFAObjectArray,this.exObject=new e.XFAObjectArray,this.exclGroup=new e.XFAObjectArray,this.field=new e.XFAObjectArray,this.proto=new e.XFAObjectArray,this.setProperty=new e.XFAObjectArray,this.subform=new e.XFAObjectArray,this.subformSet=new e.XFAObjectArray}[n.$getSubformParent](){const f=this[n.$getParent]();return f instanceof tn?f[n.$getSubformParent]():f}[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*N(this)}[n.$flushHTML](){return(0,L.flushHTML)(this)}[n.$addHTML](f,kt){(0,L.addHTML)(this,f,kt)}[n.$getAvailableSpace](){return(0,L.getAvailableSpace)(this)}[n.$isSplittable](){var kt;const f=this[n.$getSubformParent]();return f[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):(kt=f.layout)!=null&&kt.endsWith("-tb")&&f[n.$extra].numberInLine!==0?!1:(this[n.$extra]._isSplittable=!0,!0):!1}[n.$toHTML](f){var xe;if($(this),this.break){if(this.break.after!=="auto"||this.break.afterTarget!==""){const me=new tt({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});me[n.$globalData]=this[n.$globalData],this[n.$appendChild](me),this.breakAfter.push(me)}if(this.break.before!=="auto"||this.break.beforeTarget!==""){const me=new it({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});me[n.$globalData]=this[n.$globalData],this[n.$appendChild](me),this.breakBefore.push(me)}if(this.break.overflowTarget!==""){const me=new Be({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});me[n.$globalData]=this[n.$globalData],this[n.$appendChild](me),this.overflow.push(me)}this[n.$removeChild](this.break),this.break=null}if(this.presence==="hidden"||this.presence==="inactive")return a.HTMLResult.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&(0,v.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),this.breakBefore.children.length>=1){const me=this.breakBefore.children[0];if(E(me))return a.HTMLResult.breakNode(me)}if((xe=this[n.$extra])!=null&&xe.afterBreakAfter)return a.HTMLResult.EMPTY;(0,t.fixDimensions)(this);const kt=[],zt={id:this[n.$uid],class:[]};(0,t.setAccess)(this,zt.class),this[n.$extra]||(this[n.$extra]=Object.create(null)),Object.assign(this[n.$extra],{children:kt,line:null,attributes:zt,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,f.width),height:Math.min(this.h||1/0,f.height)},width:0,height:0,prevHeight:0,currentWidth:0});const Dt=this[n.$getTemplateRoot](),ct=Dt[n.$extra].noLayoutFailure,ae=this[n.$isSplittable]();if(ae||g(this),!(0,L.checkDimensions)(this,f))return a.HTMLResult.FAILURE;const fe=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){const me=this[n.$getSubformParent]().columnWidths;Array.isArray(me)&&me.length>0&&(this[n.$extra].columnWidths=me,this[n.$extra].currentColumn=0)}const pe=(0,t.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),be=["xfaSubform"],we=(0,t.layoutClass)(this);if(we&&be.push(we),zt.style=pe,zt.class=be,this.name&&(zt.xfaName=this.name),this.overflow){const me=this.overflow[n.$getExtra]();me.addLeader&&(me.addLeader=!1,D(this,me.leader,f))}this[n.$pushPara]();const ve=this.layout==="lr-tb"||this.layout==="rl-tb",Ce=ve?2:1;for(;this[n.$extra].attempt=1){const me=this.breakAfter.children[0];if(E(me))return this[n.$extra].afterBreakAfter=_e,a.HTMLResult.breakNode(me)}return delete this[n.$extra],_e}}class tn extends e.XFAObject{constructor(f){super(i,"subformSet",!0),this.id=f.id||"",this.name=f.name||"",this.relation=(0,a.getStringOption)(f.relation,["ordered","choice","unordered"]),this.relevant=(0,a.getRelevant)(f.relevant),this.use=f.use||"",this.usehref=f.usehref||"",this.bookend=null,this.break=null,this.desc=null,this.extras=null,this.occur=null,this.overflow=null,this.breakAfter=new e.XFAObjectArray,this.breakBefore=new e.XFAObjectArray,this.subform=new e.XFAObjectArray,this.subformSet=new e.XFAObjectArray}*[n.$getContainedChildren](){yield*N(this)}[n.$getSubformParent](){let f=this[n.$getParent]();for(;!(f instanceof gn);)f=f[n.$getParent]();return f}[n.$isBindable](){return!0}}class ti extends e.ContentObject{constructor(f){super(i,"subjectDN"),this.delimiter=f.delimiter||",",this.id=f.id||"",this.name=f.name||"",this.use=f.use||"",this.usehref=f.usehref||""}[n.$finalize](){this[n.$content]=new Map(this[n.$content].split(this.delimiter).map(f=>((f=f.split("=",2))[0]=f[0].trim(),f)))}}class ei extends e.XFAObject{constructor(f){super(i,"subjectDNs",!0),this.id=f.id||"",this.type=(0,a.getStringOption)(f.type,["optional","required"]),this.use=f.use||"",this.usehref=f.usehref||"",this.subjectDN=new e.XFAObjectArray}}class ni extends e.XFAObject{constructor(f){super(i,"submit",!0),this.embedPDF=(0,a.getInteger)({data:f.embedPDF,defaultValue:0,validate:kt=>kt===1}),this.format=(0,a.getStringOption)(f.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),this.id=f.id||"",this.target=f.target||"",this.textEncoding=(0,a.getKeyword)({data:f.textEncoding?f.textEncoding.toLowerCase():"",defaultValue:"",validate:kt=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(kt)||kt.match(/iso-8859-\d{2}/)}),this.use=f.use||"",this.usehref=f.usehref||"",this.xdpContent=f.xdpContent||"",this.encrypt=null,this.encryptData=new e.XFAObjectArray,this.signData=new e.XFAObjectArray}}class en extends e.XFAObject{constructor(f){super(i,"template",!0),this.baseProfile=(0,a.getStringOption)(f.baseProfile,["full","interactiveForms"]),this.extras=null,this.subform=new e.XFAObjectArray}[n.$finalize](){this.subform.children.length===0&&(0,v.warn)("XFA - No subforms in template node."),this.subform.children.length>=2&&(0,v.warn)("XFA - Several subforms in template node: please file a bug."),this[n.$tabIndex]=5e3}[n.$isSplittable](){return!0}[n.$searchNode](f,kt){return f.startsWith("#")?[this[n.$ids].get(f.slice(1))]:(0,d.searchNode)(this,kt,f,!0,!0)}*[n.$toPages](){var Fe,Se,Oe;if(!this.subform.children.length)return a.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 f=this.subform.children[0];f.pageSet[n.$cleanPage]();const kt=f.pageSet.pageArea.children,zt={name:"div",children:[]};let Dt=null,ct=null,ae=null;if(f.breakBefore.children.length>=1?(ct=f.breakBefore.children[0],ae=ct.target):f.subform.children.length>=1&&f.subform.children[0].breakBefore.children.length>=1?(ct=f.subform.children[0].breakBefore.children[0],ae=ct.target):(Fe=f.break)!=null&&Fe.beforeTarget?(ct=f.break,ae=ct.beforeTarget):f.subform.children.length>=1&&((Se=f.subform.children[0].break)!=null&&Se.beforeTarget)&&(ct=f.subform.children[0].break,ae=ct.beforeTarget),ct){const ke=this[n.$searchNode](ae,ct[n.$getParent]());ke instanceof $e&&(Dt=ke,ct[n.$extra]={})}Dt||(Dt=kt[0]),Dt[n.$extra]={numberOfUse:1};const fe=Dt[n.$getParent]();fe[n.$extra]={numberOfUse:1,pageIndex:fe.pageArea.children.indexOf(Dt),pageSetIndex:0};let pe,be=null,we=null,ve=!0,Ce=0,Te=0;for(;;){if(ve)Ce=0;else if(zt.children.pop(),++Ce==3)return(0,v.warn)("XFA - Something goes wrong: please file a bug."),zt;pe=null,this[n.$extra].currentPageArea=Dt;const ke=Dt[n.$toHTML]().html;zt.children.push(ke),be&&(this[n.$extra].noLayoutFailure=!0,ke.children.push(be[n.$toHTML](Dt[n.$extra].space).html),be=null),we&&(this[n.$extra].noLayoutFailure=!0,ke.children.push(we[n.$toHTML](Dt[n.$extra].space).html),we=null);const De=Dt.contentArea.children,_e=ke.children.filter(me=>me.attributes.class.includes("xfaContentarea"));ve=!1,this[n.$extra].firstUnsplittable=null,this[n.$extra].noLayoutFailure=!1;const xe=me=>{var Ie;const Re=f[n.$flushHTML]();Re&&(ve||(ve=((Ie=Re.children)==null?void 0:Ie.length)>0),_e[me].children.push(Re))};for(let me=Te,Re=De.length;me0),_e[me].children.push(Le.html)):!ve&&zt.children.length>1&&zt.children.pop(),zt;if(Le.isBreak()){const Pe=Le.breakNode;if(xe(me),Pe.targetType==="auto")continue;Pe.leader&&(be=this[n.$searchNode](Pe.leader,Pe[n.$getParent]()),be=be?be[0]:null),Pe.trailer&&(we=this[n.$searchNode](Pe.trailer,Pe[n.$getParent]()),we=we?we[0]:null),Pe.targetType==="pageArea"?(pe=Pe[n.$extra].target,me=1/0):Pe[n.$extra].target?(pe=Pe[n.$extra].target,Te=Pe[n.$extra].index+1,me=1/0):me=Pe[n.$extra].index}else if(this[n.$extra].overflowNode){const Pe=this[n.$extra].overflowNode;this[n.$extra].overflowNode=null;const rn=Pe[n.$getExtra](),ze=rn.target;rn.addLeader=rn.leader!==null,rn.addTrailer=rn.trailer!==null,xe(me);const Gr=me;if(me=1/0,ze instanceof $e)pe=ze;else if(ze instanceof K){const yn=De.indexOf(ze);yn!==-1?yn>Gr?me=yn-1:Te=yn:(pe=ze[n.$getParent](),Te=pe.contentArea.children.indexOf(ze))}}else xe(me)}this[n.$extra].pageNumber+=1,pe&&(pe[n.$isUsable]()?pe[n.$extra].numberOfUse+=1:pe=null),Dt=pe||Dt[n.$getNextPage](),yield null}}}M.Template=en;class mn extends e.ContentObject{constructor(f){super(i,"text"),this.id=f.id||"",this.maxChars=(0,a.getInteger)({data:f.maxChars,defaultValue:0,validate:kt=>kt>=0}),this.name=f.name||"",this.rid=f.rid||"",this.use=f.use||"",this.usehref=f.usehref||""}[n.$acceptWhitespace](){return!0}[n.$onChild](f){return f[n.$namespaceId]===_.NamespaceIds.xhtml.id?(this[n.$content]=f,!0):((0,v.warn)(`XFA - Invalid content in Text: ${f[n.$nodeName]}.`),!1)}[n.$onText](f){this[n.$content]instanceof e.XFAObject||super[n.$onText](f)}[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((f,kt)=>(kt&&f.push(kt),f),[]).join(` `):this[n.$content][n.$text]()}[n.$toHTML](f){if(typeof this[n.$content]=="string"){const kt=o(this[n.$content]).html;return this[n.$content].includes("\u2029")?(kt.name="div",kt.children=[],this[n.$content].split("\u2029").map(zt=>zt.split(/[\u2028\n]/).reduce((Dt,ct)=>(Dt.push({name:"span",value:ct},{name:"br"}),Dt),[])).forEach(zt=>{kt.children.push({name:"p",children:zt})})):/[\u2028\n]/.test(this[n.$content])&&(kt.name="div",kt.children=[],this[n.$content].split(/[\u2028\n]/).forEach(zt=>{kt.children.push({name:"span",value:zt},{name:"br"})})),a.HTMLResult.success(kt)}return this[n.$content][n.$toHTML](f)}}M.Text=mn;class bn extends e.XFAObject{constructor(f){super(i,"textEdit",!0),this.allowRichText=(0,a.getInteger)({data:f.allowRichText,defaultValue:0,validate:kt=>kt===1}),this.hScrollPolicy=(0,a.getStringOption)(f.hScrollPolicy,["auto","off","on"]),this.id=f.id||"",this.multiLine=(0,a.getInteger)({data:f.multiLine,defaultValue:"",validate:kt=>kt===0||kt===1}),this.use=f.use||"",this.usehref=f.usehref||"",this.vScrollPolicy=(0,a.getStringOption)(f.vScrollPolicy,["auto","off","on"]),this.border=null,this.comb=null,this.extras=null,this.margin=null}[n.$toHTML](f){var ct,ae;const kt=(0,t.toStyle)(this,"border","font","margin");let zt;const Dt=this[n.$getParent]()[n.$getParent]();return this.multiLine===""&&(this.multiLine=Dt instanceof Tt?1:0),zt=this.multiLine===1?{name:"textarea",attributes:{dataId:((ct=Dt[n.$data])==null?void 0:ct[n.$uid])||Dt[n.$uid],fieldId:Dt[n.$uid],class:["xfaTextfield"],style:kt,"aria-label":R(Dt),"aria-required":!1}}:{name:"input",attributes:{type:"text",dataId:((ae=Dt[n.$data])==null?void 0:ae[n.$uid])||Dt[n.$uid],fieldId:Dt[n.$uid],class:["xfaTextfield"],style:kt,"aria-label":R(Dt),"aria-required":!1}},U(Dt)&&(zt.attributes["aria-required"]=!0,zt.attributes.required=!0),a.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[zt]})}}class ii extends e.StringObject{constructor(f){super(i,"time"),this.id=f.id||"",this.name=f.name||"",this.use=f.use||"",this.usehref=f.usehref||""}[n.$finalize](){const f=this[n.$content].trim();this[n.$content]=f?new Date(f):null}[n.$toHTML](f){return o(this[n.$content]?this[n.$content].toString():"")}}class ri extends e.XFAObject{constructor(f){super(i,"timeStamp"),this.id=f.id||"",this.server=f.server||"",this.type=(0,a.getStringOption)(f.type,["optional","required"]),this.use=f.use||"",this.usehref=f.usehref||""}}class ai extends e.StringObject{constructor(f){super(i,"toolTip"),this.id=f.id||"",this.rid=f.rid||"",this.use=f.use||"",this.usehref=f.usehref||""}}class si extends e.XFAObject{constructor(f){super(i,"traversal",!0),this.id=f.id||"",this.use=f.use||"",this.usehref=f.usehref||"",this.extras=null,this.traverse=new e.XFAObjectArray}}class oi extends e.XFAObject{constructor(f){super(i,"traverse",!0),this.id=f.id||"",this.operation=(0,a.getStringOption)(f.operation,["next","back","down","first","left","right","up"]),this.ref=f.ref||"",this.use=f.use||"",this.usehref=f.usehref||"",this.extras=null,this.script=null}get name(){return this.operation}[n.$isTransparent](){return!1}}class nn extends e.XFAObject{constructor(f){super(i,"ui",!0),this.id=f.id||"",this.use=f.use||"",this.usehref=f.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 f of Object.getOwnPropertyNames(this)){if(f==="extras"||f==="picture")continue;const kt=this[f];if(kt instanceof e.XFAObject)return this[n.$extra]=kt,kt}this[n.$extra]=null}return this[n.$extra]}[n.$toHTML](f){const kt=this[n.$getExtra]();return kt?kt[n.$toHTML](f):a.HTMLResult.EMPTY}}class ci extends e.XFAObject{constructor(f){super(i,"validate",!0),this.formatTest=(0,a.getStringOption)(f.formatTest,["warning","disabled","error"]),this.id=f.id||"",this.nullTest=(0,a.getStringOption)(f.nullTest,["disabled","error","warning"]),this.scriptTest=(0,a.getStringOption)(f.scriptTest,["error","disabled","warning"]),this.use=f.use||"",this.usehref=f.usehref||"",this.extras=null,this.message=null,this.picture=null,this.script=null}}class Xe extends e.XFAObject{constructor(f){super(i,"value",!0),this.id=f.id||"",this.override=(0,a.getInteger)({data:f.override,defaultValue:0,validate:kt=>kt===1}),this.relevant=(0,a.getRelevant)(f.relevant),this.use=f.use||"",this.usehref=f.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](f){var Dt;const kt=this[n.$getParent]();if(kt instanceof Bt&&((Dt=kt.ui)!=null&&Dt.imageEdit)){this.image||(this.image=new Pt({}),this[n.$appendChild](this.image)),this.image[n.$content]=f[n.$content];return}const zt=f[n.$nodeName];if(this[zt]===null){for(const ct of Object.getOwnPropertyNames(this)){const ae=this[ct];ae instanceof e.XFAObject&&(this[ct]=null,this[n.$removeChild](ae))}this[f[n.$nodeName]]=f,this[n.$appendChild](f)}else this[zt][n.$content]=f[n.$content]}[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 f of Object.getOwnPropertyNames(this)){if(f==="image")continue;const kt=this[f];if(kt instanceof e.XFAObject)return(kt[n.$content]||"").toString().trim()}return null}[n.$toHTML](f){for(const kt of Object.getOwnPropertyNames(this)){const zt=this[kt];if(zt instanceof e.XFAObject)return zt[n.$toHTML](f)}return a.HTMLResult.EMPTY}}M.Value=Xe;class li extends e.XFAObject{constructor(f){super(i,"variables",!0),this.id=f.id||"",this.use=f.use||"",this.usehref=f.usehref||"",this.boolean=new e.XFAObjectArray,this.date=new e.XFAObjectArray,this.dateTime=new e.XFAObjectArray,this.decimal=new e.XFAObjectArray,this.exData=new e.XFAObjectArray,this.float=new e.XFAObjectArray,this.image=new e.XFAObjectArray,this.integer=new e.XFAObjectArray,this.manifest=new e.XFAObjectArray,this.script=new e.XFAObjectArray,this.text=new e.XFAObjectArray,this.time=new e.XFAObjectArray}[n.$isTransparent](){return!0}}class qe{static[_.$buildXFAObject](f,kt){if(qe.hasOwnProperty(f)){const zt=qe[f](kt);return zt[n.$setSetAttributes](kt),zt}}static appearanceFilter(f){return new q(f)}static arc(f){return new W(f)}static area(f){return new w(f)}static assist(f){return new s(f)}static barcode(f){return new c(f)}static bind(f){return new S(f)}static bindItems(f){return new h(f)}static bookend(f){return new m(f)}static boolean(f){return new k(f)}static border(f){return new I(f)}static break(f){return new B(f)}static breakAfter(f){return new tt(f)}static breakBefore(f){return new it(f)}static button(f){return new st(f)}static calculate(f){return new X(f)}static caption(f){return new J(f)}static certificate(f){return new j(f)}static certificates(f){return new O(f)}static checkButton(f){return new H(f)}static choiceList(f){return new V(f)}static color(f){return new z(f)}static comb(f){return new Y(f)}static connect(f){return new G(f)}static contentArea(f){return new K(f)}static corner(f){return new et(f)}static date(f){return new nt(f)}static dateTime(f){return new at(f)}static dateTimeEdit(f){return new Q(f)}static decimal(f){return new lt(f)}static defaultUi(f){return new ut(f)}static desc(f){return new pt(f)}static digestMethod(f){return new yt(f)}static digestMethods(f){return new Et(f)}static draw(f){return new Tt(f)}static edge(f){return new xt(f)}static encoding(f){return new wt(f)}static encodings(f){return new St(f)}static encrypt(f){return new Rt(f)}static encryptData(f){return new Ct(f)}static encryption(f){return new Gt(f)}static encryptionMethod(f){return new Zt(f)}static encryptionMethods(f){return new Ft(f)}static event(f){return new Ut(f)}static exData(f){return new Vt(f)}static exObject(f){return new Wt(f)}static exclGroup(f){return new Yt(f)}static execute(f){return new re(f)}static extras(f){return new Jt(f)}static field(f){return new Bt(f)}static fill(f){return new Xt(f)}static filter(f){return new jt(f)}static float(f){return new mt(f)}static font(f){return new rt(f)}static format(f){return new ht(f)}static handler(f){return new gt(f)}static hyphenation(f){return new bt(f)}static image(f){return new Pt(f)}static imageEdit(f){return new It(f)}static integer(f){return new Nt(f)}static issuers(f){return new Kt(f)}static items(f){return new Qt(f)}static keep(f){return new ne(f)}static keyUsage(f){return new ee(f)}static line(f){return new te(f)}static linear(f){return new oe(f)}static lockDocument(f){return new le(f)}static manifest(f){return new ie(f)}static margin(f){return new ce(f)}static mdp(f){return new se(f)}static medium(f){return new ue(f)}static message(f){return new he(f)}static numericEdit(f){return new de(f)}static occur(f){return new ge(f)}static oid(f){return new Ae(f)}static oids(f){return new Ee(f)}static overflow(f){return new Be(f)}static pageArea(f){return new $e(f)}static pageSet(f){return new Ue(f)}static para(f){return new Bn(f)}static passwordEdit(f){return new $n(f)}static pattern(f){return new jn(f)}static picture(f){return new Un(f)}static proto(f){return new Hn(f)}static radial(f){return new Xn(f)}static reason(f){return new qn(f)}static reasons(f){return new zn(f)}static rectangle(f){return new fn(f)}static ref(f){return new Gn(f)}static script(f){return new Wn(f)}static setProperty(f){return new pn(f)}static signData(f){return new Vn(f)}static signature(f){return new Kn(f)}static signing(f){return new Yn(f)}static solid(f){return new Jn(f)}static speak(f){return new Zn(f)}static stipple(f){return new Qn(f)}static subform(f){return new gn(f)}static subformSet(f){return new tn(f)}static subjectDN(f){return new ti(f)}static subjectDNs(f){return new ei(f)}static submit(f){return new ni(f)}static template(f){return new en(f)}static text(f){return new mn(f)}static textEdit(f){return new bn(f)}static time(f){return new ii(f)}static timeStamp(f){return new ri(f)}static toolTip(f){return new ai(f)}static traversal(f){return new si(f)}static traverse(f){return new oi(f)}static ui(f){return new nn(f)}static validate(f){return new ci(f)}static value(f){return new Xe(f)}static variables(f){return new li(f)}}M.TemplateNamespace=qe},(vt,M)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.NamespaceIds=M.$buildXFAObject=void 0;const Z=Symbol();M.$buildXFAObject=Z,M.NamespaceIds={config:{id:0,check:n=>n.startsWith("http://www.xfa.org/schema/xci/")},connectionSet:{id:1,check:n=>n.startsWith("http://www.xfa.org/schema/xfa-connection-set/")},datasets:{id:2,check:n=>n.startsWith("http://www.xfa.org/schema/xfa-data/")},form:{id:3,check:n=>n.startsWith("http://www.xfa.org/schema/xfa-form/")},localeSet:{id:4,check:n=>n.startsWith("http://www.xfa.org/schema/xfa-locale-set/")},pdf:{id:5,check:n=>n==="http://ns.adobe.com/xdp/pdf/"},signature:{id:6,check:n=>n==="http://www.w3.org/2000/09/xmldsig#"},sourceSet:{id:7,check:n=>n.startsWith("http://www.xfa.org/schema/xfa-source-set/")},stylesheet:{id:8,check:n=>n==="http://www.w3.org/1999/XSL/Transform"},template:{id:9,check:n=>n.startsWith("http://www.xfa.org/schema/xfa-template/")},xdc:{id:10,check:n=>n.startsWith("http://www.xfa.org/schema/xdc/")},xdp:{id:11,check:n=>n==="http://ns.adobe.com/xdp/"},xfdf:{id:12,check:n=>n==="http://ns.adobe.com/xfdf/"},xhtml:{id:13,check:n=>n==="http://www.w3.org/1999/xhtml"},xmpmeta:{id:14,check:n=>n==="http://ns.adobe.com/xmpmeta/"}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.addHTML=function(e,a,v){const A=e[n.$extra],T=A.availableSpace,[d,i,C,p]=v;switch(e.layout){case"position":A.width=Math.max(A.width,d+C),A.height=Math.max(A.height,i+p),A.children.push(a);break;case"lr-tb":case"rl-tb":(!A.line||A.attempt===1)&&(A.line=L(e,[]),A.children.push(A.line),A.numberInLine=0),A.numberInLine+=1,A.line.children.push(a),A.attempt===0?(A.currentWidth+=C,A.height=Math.max(A.height,A.prevHeight+p)):(A.currentWidth=C,A.prevHeight=A.height,A.height+=p,A.attempt=0),A.width=Math.max(A.width,A.currentWidth);break;case"rl-row":case"row":{A.children.push(a),A.width+=C,A.height=Math.max(A.height,p);const b=(0,_.measureToString)(A.height);for(const F of A.children)F.attributes.style.height=b;break}case"table":case"tb":A.width=Math.min(T.width,Math.max(A.width,C)),A.height+=p,A.children.push(a)}},M.checkDimensions=function(e,a){var C;if(e[n.$getTemplateRoot]()[n.$extra].firstUnsplittable===null||e.w===0||e.h===0)return!0;const v=e[n.$getSubformParent](),A=((C=v[n.$extra])==null?void 0:C.attempt)||0,[,T,d,i]=function(b){let F,u,l=b.w===""?NaN:b.w,y=b.h===""?NaN:b.h,[N,U]=[0,0];switch(b.anchorType||""){case"bottomCenter":[N,U]=[l/2,y];break;case"bottomLeft":[N,U]=[0,y];break;case"bottomRight":[N,U]=[l,y];break;case"middleCenter":[N,U]=[l/2,y/2];break;case"middleLeft":[N,U]=[0,y/2];break;case"middleRight":[N,U]=[l,y/2];break;case"topCenter":[N,U]=[l/2,0];break;case"topRight":[N,U]=[l,0]}switch(b.rotate||0){case 0:[F,u]=[-N,-U];break;case 90:[F,u]=[-U,N],[l,y]=[y,-l];break;case 180:[F,u]=[N,U],[l,y]=[-l,-y];break;case 270:[F,u]=[U,-N],[l,y]=[-y,l]}return[b.x+F+Math.min(0,l),b.y+u+Math.min(0,y),Math.abs(l),Math.abs(y)]}(e);switch(v.layout){case"lr-tb":case"rl-tb":return A===0?e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure?e.w!==""?Math.round(d-a.width)<=2:a.width>2:!(e.h!==""&&Math.round(i-a.height)>2)&&(e.w!==""?Math.round(d-a.width)<=2||v[n.$extra].numberInLine===0&&a.height>2:a.width>2):!!e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure||!(e.h!==""&&Math.round(i-a.height)>2)&&(e.w===""||Math.round(d-a.width)<=2||!v[n.$isThereMoreWidth]())&&a.height>2;case"table":case"tb":return!!e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure||(e.h===""||e[n.$isSplittable]()?(e.w===""||Math.round(d-a.width)<=2||!v[n.$isThereMoreWidth]())&&a.height>2:Math.round(i-a.height)<=2);case"position":return e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure||e.h===""||Math.round(i+T-a.height)<=2?!0:i+T>e[n.$getTemplateRoot]()[n.$extra].currentContentArea.h;case"rl-row":case"row":return!!e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure||e.h===""||Math.round(i-a.height)<=2;default:return!0}},M.flushHTML=function(e){if(!e[n.$extra])return null;const a={name:"div",attributes:e[n.$extra].attributes,children:e[n.$extra].children};if(e[n.$extra].failingNode){const v=e[n.$extra].failingNode[n.$flushHTML]();v&&(e.layout.endsWith("-tb")?a.children.push(L(e,[v])):a.children.push(v))}return a.children.length===0?null:a},M.getAvailableSpace=function(e){const a=e[n.$extra].availableSpace,v=e.margin?e.margin.topInset+e.margin.bottomInset:0,A=e.margin?e.margin.leftInset+e.margin.rightInset:0;switch(e.layout){case"lr-tb":case"rl-tb":return e[n.$extra].attempt===0?{width:a.width-A-e[n.$extra].currentWidth,height:a.height-v-e[n.$extra].prevHeight}:{width:a.width-A,height:a.height-v-e[n.$extra].height};case"rl-row":case"row":return{width:e[n.$extra].columnWidths.slice(e[n.$extra].currentColumn).reduce((T,d)=>T+d),height:a.height-A};case"table":case"tb":return{width:a.width-A,height:a.height-v-e[n.$extra].height};default:return a}};var n=Z(78),_=Z(83);function L(t,e){return{name:"div",attributes:{class:[t.layout==="lr-tb"?"xfaLr":"xfaRl"]},children:e}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.computeBbox=function(p,b,F){let u;if(p.w!==""&&p.h!=="")u=[p.x,p.y,p.w,p.h];else{if(!F)return null;let l=p.w;if(l===""){if(p.maxW===0){const N=p[n.$getSubformParent]();l=N.layout==="position"&&N.w!==""?0:p.minW}else l=Math.min(p.maxW,F.width);b.attributes.style.width=v(l)}let y=p.h;if(y===""){if(p.maxH===0){const N=p[n.$getSubformParent]();y=N.layout==="position"&&N.h!==""?0:p.minH}else y=Math.min(p.maxH,F.height);b.attributes.style.height=v(y)}u=[p.x,p.y,l,y]}return u},M.createWrapper=function(p,b){const{attributes:F}=b,{style:u}=F,l={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};if(F.class.push("xfaWrapped"),p.border){const{widths:y,insets:N}=p.border[n.$extra];let U,$,P=N[0],R=N[3];const o=N[0]+N[2],g=N[1]+N[3];switch(p.border.hand){case"even":P-=y[0]/2,R-=y[3]/2,U=`calc(100% + ${(y[1]+y[3])/2-g}px)`,$=`calc(100% + ${(y[0]+y[2])/2-o}px)`;break;case"left":P-=y[0],R-=y[3],U=`calc(100% + ${y[1]+y[3]-g}px)`,$=`calc(100% + ${y[0]+y[2]-o}px)`;break;case"right":U=g?`calc(100% - ${g}px)`:"100%",$=o?`calc(100% - ${o}px)`:"100%"}const x=["xfaBorder"];d(p.border)&&x.push("xfaPrintOnly");const E={name:"div",attributes:{class:x,style:{top:`${P}px`,left:`${R}px`,width:U,height:$}},children:[]};for(const D of["border","borderWidth","borderColor","borderRadius","borderStyle"])u[D]!==void 0&&(E.attributes.style[D]=u[D],delete u[D]);l.children.push(E,b)}else l.children.push(b);for(const y of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"])u[y]!==void 0&&(l.attributes.style[y]=u[y],delete u[y]);return l.attributes.style.position=u.position==="absolute"?"absolute":"relative",delete u.position,u.alignSelf&&(l.attributes.style.alignSelf=u.alignSelf,delete u.alignSelf),l},M.fixDimensions=function(p){var F;const b=p[n.$getSubformParent]();if((F=b.layout)!=null&&F.includes("row")){const u=b[n.$extra],l=p.colSpan;let y;y=l===-1?u.columnWidths.slice(u.currentColumn).reduce((N,U)=>N+U,0):u.columnWidths.slice(u.currentColumn,u.currentColumn+l).reduce((N,U)=>N+U,0),isNaN(y)||(p.w=y)}b.layout&&b.layout!=="position"&&(p.x=p.y=0),p.layout==="table"&&p.w===""&&Array.isArray(p.columnWidths)&&(p.w=p.columnWidths.reduce((u,l)=>u+l,0))},M.fixTextIndent=function(p){const b=(0,L.getMeasurement)(p.textIndent,"0px");if(b>=0)return;const F="padding"+((p.textAlign==="right"?"right":"left")=="left"?"Left":"Right"),u=(0,L.getMeasurement)(p[F],"0px");p[F]=u-b+"px"},M.fixURL=function(p){const b=(0,_.createValidAbsoluteUrl)(p,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return b?b.href:null},M.isPrintOnly=d,M.layoutClass=function(p){switch(p.layout){case"position":default:return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb"}},M.layoutNode=function(p,b){let F=null,u=null,l=!1;if((!p.w||!p.h)&&p.value){let y=0,N=0;p.margin&&(y=p.margin.leftInset+p.margin.rightInset,N=p.margin.topInset+p.margin.bottomInset);let U=null,$=null;p.para&&($=Object.create(null),U=p.para.lineHeight===""?null:p.para.lineHeight,$.top=p.para.spaceAbove===""?0:p.para.spaceAbove,$.bottom=p.para.spaceBelow===""?0:p.para.spaceBelow,$.left=p.para.marginLeft===""?0:p.para.marginLeft,$.right=p.para.marginRight===""?0:p.para.marginRight);let P=p.font;if(!P){const g=p[n.$getTemplateRoot]();let x=p[n.$getParent]();for(;x&&x!==g;){if(x.font){P=x.font;break}x=x[n.$getParent]()}}const R=(p.w||b.width)-y,o=p[n.$globalData].fontFinder;if(p.value.exData&&p.value.exData[n.$content]&&p.value.exData.contentType==="text/html"){const g=T(p.value.exData[n.$content],P,$,U,o,R);u=g.width,F=g.height,l=g.isBroken}else{const g=p.value[n.$text]();if(g){const x=T(g,P,$,U,o,R);u=x.width,F=x.height,l=x.isBroken}}u===null||p.w||(u+=y),F===null||p.h||(F+=N)}return{w:u,h:F,isBroken:l}},M.measureToString=v,M.setAccess=function(p,b){switch(p.access){case"nonInteractive":b.push("xfaNonInteractive");break;case"readOnly":b.push("xfaReadOnly");break;case"protected":b.push("xfaDisabled")}},M.setFontFamily=function(p,b,F,u){if(!F){delete u.fontFamily;return}const l=(0,L.stripQuotes)(p.typeface);u.fontFamily=`"${l}"`;const y=F.find(l);if(y){const{fontFamily:N}=y.regular.cssFontInfo;N!==l&&(u.fontFamily=`"${N}"`);const U=i(b);if(U&&U.lineHeight!==""||u.lineHeight)return;const $=(0,t.selectFont)(p,y);$&&(u.lineHeight=Math.max(1.2,$.lineHeight))}},M.setMinMaxDimensions=function(p,b){p[n.$getSubformParent]().layout==="position"&&(p.minW>0&&(b.minWidth=v(p.minW)),p.maxW>0&&(b.maxWidth=v(p.maxW)),p.minH>0&&(b.minHeight=v(p.minH)),p.maxH>0&&(b.maxHeight=v(p.maxH)))},M.setPara=function(p,b,F){var u;if((u=F.attributes.class)!=null&&u.includes("xfaRich")){b&&(p.h===""&&(b.height="auto"),p.w===""&&(b.width="auto"));const l=i(p);if(l){const y=F.attributes.style;switch(y.display="flex",y.flexDirection="column",l.vAlign){case"top":y.justifyContent="start";break;case"bottom":y.justifyContent="end";break;case"middle":y.justifyContent="center"}const N=l[n.$toStyle]();for(const[U,$]of Object.entries(N))U in y||(y[U]=$)}}},M.toStyle=function(p,...b){const F=Object.create(null);for(const u of b){const l=p[u];if(l!==null){if(A.hasOwnProperty(u))A[u](p,F);else if(l instanceof a.XFAObject){const y=l[n.$toStyle]();y?Object.assign(F,y):(0,_.warn)(`(DEBUG) - XFA - style for ${u} not implemented yet`)}}}return F};var n=Z(78),_=Z(2),L=Z(84),t=Z(85),e=Z(86),a=Z(87);function v(C){return typeof C=="string"?"0px":Number.isInteger(C)?`${C}px`:`${C.toFixed(2)}px`}const A={anchorType(C,p){const b=C[n.$getSubformParent]();if(b&&(!b.layout||b.layout==="position"))switch("transform"in p||(p.transform=""),C.anchorType){case"bottomCenter":p.transform+="translate(-50%, -100%)";break;case"bottomLeft":p.transform+="translate(0,-100%)";break;case"bottomRight":p.transform+="translate(-100%,-100%)";break;case"middleCenter":p.transform+="translate(-50%,-50%)";break;case"middleLeft":p.transform+="translate(0,-50%)";break;case"middleRight":p.transform+="translate(-100%,-50%)";break;case"topCenter":p.transform+="translate(-50%,0)";break;case"topRight":p.transform+="translate(-100%,0)"}},dimensions(C,p){var l;const b=C[n.$getSubformParent]();let F=C.w;const u=C.h;if((l=b.layout)!=null&&l.includes("row")){const y=b[n.$extra],N=C.colSpan;let U;N===-1?(U=y.columnWidths.slice(y.currentColumn).reduce(($,P)=>$+P,0),y.currentColumn=0):(U=y.columnWidths.slice(y.currentColumn,y.currentColumn+N).reduce(($,P)=>$+P,0),y.currentColumn=(y.currentColumn+C.colSpan)%y.columnWidths.length),isNaN(U)||(F=C.w=U)}p.width=F!==""?v(F):"auto",p.height=u!==""?v(u):"auto"},position(C,p){const b=C[n.$getSubformParent]();(!(b!=null&&b.layout)||b.layout==="position")&&(p.position="absolute",p.left=v(C.x),p.top=v(C.y))},rotate(C,p){C.rotate&&("transform"in p||(p.transform=""),p.transform+=`rotate(-${C.rotate}deg)`,p.transformOrigin="top left")},presence(C,p){switch(C.presence){case"invisible":p.visibility="hidden";break;case"hidden":case"inactive":p.display="none"}},hAlign(C,p){if(C[n.$nodeName]==="para")switch(C.hAlign){case"justifyAll":p.textAlign="justify-all";break;case"radix":p.textAlign="left";break;default:p.textAlign=C.hAlign}else switch(C.hAlign){case"left":p.alignSelf="start";break;case"center":p.alignSelf="center";break;case"right":p.alignSelf="end"}},margin(C,p){C.margin&&(p.margin=C.margin[n.$toStyle]().margin)}};function T(C,p,b,F,u,l){const y=new e.TextMeasure(p,b,F,u);return typeof C=="string"?y.addString(C):C[n.$pushGlyphs](y),y.compute(l)}function d(C){return C.relevant.length>0&&!C.relevant[0].excluded&&C.relevant[0].viewname==="print"}function i(C){const p=C[n.$getTemplateRoot]()[n.$extra].paraStack;return p.length?p.at(-1):null}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.HTMLResult=void 0,M.getBBox=function(A){if(!A)return{x:-1,y:-1,width:-1,height:-1};const d=A.trim().split(/\s*,\s*/).map(F=>e(F,"-1"));if(d.length<4||d[2]<0||d[3]<0)return{x:-1,y:-1,width:-1,height:-1};const[i,C,p,b]=d;return{x:i,y:C,width:p,height:b}},M.getColor=function(A,T=[0,0,0]){let[d,i,C]=T;if(!A)return{r:d,g:i,b:C};const p=A.trim().split(/\s*,\s*/).map(b=>Math.min(Math.max(0,parseInt(b.trim(),10)),255)).map(b=>isNaN(b)?0:b);return p.length<3?{r:d,g:i,b:C}:([d,i,C]=p,{r:d,g:i,b:C})},M.getFloat=function({data:A,defaultValue:T,validate:d}){if(!A)return T;A=A.trim();const i=parseFloat(A);return!isNaN(i)&&d(i)?i:T},M.getInteger=function({data:A,defaultValue:T,validate:d}){if(!A)return T;A=A.trim();const i=parseInt(A,10);return!isNaN(i)&&d(i)?i:T},M.getKeyword=t,M.getMeasurement=e,M.getRatio=function(A){if(!A)return{num:1,den:1};const T=A.trim().split(/\s*:\s*/).map(C=>parseFloat(C)).filter(C=>!isNaN(C));if(T.length===1&&T.push(1),T.length===0)return{num:1,den:1};const[d,i]=T;return{num:d,den:i}},M.getRelevant=function(A){return A?A.trim().split(/\s+/).map(T=>({excluded:T[0]==="-",viewname:T.substring(1)})):[]},M.getStringOption=function(A,T){return t({data:A,defaultValue:T[0],validate:d=>T.includes(d)})},M.stripQuotes=function(A){return A.startsWith("'")||A.startsWith('"')?A.slice(1,-1):A};var n=Z(2);const _={pt:v=>v,cm:v=>v/2.54*72,mm:v=>v/25.4*72,in:v=>72*v,px:v=>v},L=/([+-]?\d+\.?\d*)(.*)/;function t({data:v,defaultValue:A,validate:T}){return v&&T(v=v.trim())?v:A}function e(v,A="0"){if(A||(A="0"),!v)return e(A);const T=v.trim().match(L);if(!T)return e(A);const[,d,i]=T,C=parseFloat(d);if(isNaN(C))return e(A);if(C===0)return 0;const p=_[i];return p?p(C):C}class a{static get FAILURE(){return(0,n.shadow)(this,"FAILURE",new a(!1,null,null,null))}static get EMPTY(){return(0,n.shadow)(this,"EMPTY",new a(!0,null,null,null))}constructor(A,T,d,i){this.success=A,this.html=T,this.bbox=d,this.breakNode=i}isBreak(){return!!this.breakNode}static breakNode(A){return new a(!1,null,null,A)}static success(A,T=null){return new a(!0,A,T,null)}}M.HTMLResult=a},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.FontFinder=void 0,M.getMetrics=function(a,v=!1){let A=null;if(a){const C=(0,_.stripQuotes)(a.typeface),p=a[n.$globalData].fontFinder.find(C);A=t(a,p)}if(!A)return{lineHeight:12,lineGap:2,lineNoGap:10};const T=a.size||10,d=A.lineHeight?Math.max(v?0:1.2,A.lineHeight):1.2,i=A.lineGap===void 0?.2:A.lineGap;return{lineHeight:d*T,lineGap:i*T,lineNoGap:Math.max(1,d-i)*T}},M.selectFont=t;var n=Z(78),_=Z(84),L=Z(2);M.FontFinder=class{constructor(a){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(a)}add(a,v=null){for(const T of a)this.addPdfFont(T);for(const T of this.fonts.values())T.regular||(T.regular=T.italic||T.bold||T.bolditalic);if(!v||v.size===0)return;const A=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(const T of v)this.fonts.set(T,A)}addPdfFont(a){var C,p,b;const v=a.cssFontInfo,A=v.fontFamily;let T=this.fonts.get(A);T||(T=Object.create(null),this.fonts.set(A,T),this.defaultFont||(this.defaultFont=T));let d="";const i=parseFloat(v.fontWeight);parseFloat(v.italicAngle)!==0?d=i>=700?"bolditalic":"italic":i>=700&&(d="bold"),d||((a.name.includes("Bold")||(C=a.psName)!=null&&C.includes("Bold"))&&(d="bold"),(a.name.includes("Italic")||a.name.endsWith("It")||(p=a.psName)!=null&&p.includes("Italic")||(b=a.psName)!=null&&b.endsWith("It"))&&(d+="italic")),d||(d="regular"),T[d]=a}getDefault(){return this.defaultFont}find(a,v=!0){var C,p;let A=this.fonts.get(a)||this.cache.get(a);if(A)return A;const T=/,|-|_| |bolditalic|bold|italic|regular|it/gi;let d=a.replaceAll(T,"");if(A=this.fonts.get(d),A)return this.cache.set(a,A),A;d=d.toLowerCase();const i=[];for(const[b,F]of this.fonts.entries())b.replaceAll(T,"").toLowerCase().startsWith(d)&&i.push(F);if(i.length===0)for(const[,b]of this.fonts.entries())(C=b.regular.name)!=null&&C.replaceAll(T,"").toLowerCase().startsWith(d)&&i.push(b);if(i.length===0){d=d.replaceAll(/psmt|mt/gi,"");for(const[b,F]of this.fonts.entries())b.replaceAll(T,"").toLowerCase().startsWith(d)&&i.push(F)}if(i.length===0)for(const b of this.fonts.values())(p=b.regular.name)!=null&&p.replaceAll(T,"").toLowerCase().startsWith(d)&&i.push(b);return i.length>=1?(i.length!==1&&v&&(0,L.warn)(`XFA - Too many choices to guess the correct font: ${a}`),this.cache.set(a,i[0]),i[0]):(v&&!this.warned.has(a)&&(this.warned.add(a),(0,L.warn)(`XFA - Cannot find the font: ${a}`)),null)}};function t(e,a){return e.posture==="italic"?e.weight==="bold"?a.bolditalic:a.italic:e.weight==="bold"?a.bold:a.regular}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.TextMeasure=void 0;var n=Z(85);class _{constructor(e,a,v,A){if(this.lineHeight=v,this.paraMargin=a||{top:0,bottom:0,left:0,right:0},!e){[this.pdfFont,this.xfaFont]=this.defaultFont(A);return}this.xfaFont={typeface:e.typeface,posture:e.posture,weight:e.weight,size:e.size,letterSpacing:e.letterSpacing};const T=A.find(e.typeface);T?(this.pdfFont=(0,n.selectFont)(e,T),this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(A))):[this.pdfFont,this.xfaFont]=this.defaultFont(A)}defaultFont(e){const a=e.find("Helvetica",!1)||e.find("Myriad Pro",!1)||e.find("Arial",!1)||e.getDefault();if(a!=null&&a.regular){const v=a.regular;return[v,{typeface:v.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0}]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}class L{constructor(e,a,v,A){this.fontFinder=A,this.stack=[new _(e,a,v,A)]}pushData(e,a,v){const A=this.stack.at(-1);for(const d of["typeface","posture","weight","size","letterSpacing"])e[d]||(e[d]=A.xfaFont[d]);for(const d of["top","bottom","left","right"])isNaN(a[d])&&(a[d]=A.paraMargin[d]);const T=new _(e,a,v||A.lineHeight,this.fontFinder);T.pdfFont||(T.pdfFont=A.pdfFont),this.stack.push(T)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}}M.TextMeasure=class{constructor(e,a,v,A){this.glyphs=[],this.fontSelector=new L(e,a,v,A),this.extraHeight=0}pushData(e,a,v){this.fontSelector.pushData(e,a,v)}popFont(e){return this.fontSelector.popFont()}addPara(){const e=this.fontSelector.topFont();this.extraHeight+=e.paraMargin.top+e.paraMargin.bottom}addString(e){if(!e)return;const a=this.fontSelector.topFont(),v=a.xfaFont.size;if(a.pdfFont){const A=a.xfaFont.letterSpacing,T=a.pdfFont,d=T.lineHeight||1.2,i=a.lineHeight||Math.max(1.2,d)*v,C=d-(T.lineGap===void 0?.2:T.lineGap),p=Math.max(1,C)*v,b=v/1e3,F=T.defaultWidth||T.charsToGlyphs(" ")[0].width;for(const u of e.split(/[\u2029\n]/)){const l=T.encodeString(u).join(""),y=T.charsToGlyphs(l);for(const N of y){const U=N.width||F;this.glyphs.push([U*b+A,i,p,N.unicode,!1])}this.glyphs.push([0,0,0,` `,!0])}this.glyphs.pop()}else{for(const A of e.split(/[\u2029\n]/)){for(const T of A.split(""))this.glyphs.push([v,1.2*v,v,T,!1]);this.glyphs.push([0,0,0,` `,!0])}this.glyphs.pop()}}compute(e){let a=-1,v=0,A=0,T=0,d=0,i=0,C=!1,p=!0;for(let b=0,F=this.glyphs.length;be?(A=Math.max(A,d),d=0,T+=i,i=P,a=-1,v=0,C=!0,p=!1):(i=Math.max(P,i),v=d,d+=u,a=b):d+u>e?(T+=i,i=P,a!==-1?(b=a,A=Math.max(A,v),d=0,a=-1,v=0):(A=Math.max(A,d),d=u),C=!0,p=!1):(d+=u,i=Math.max(P,i))}return A=Math.max(A,d),T+=i+this.extraHeight,{width:1.02*A,height:T,isBroken:C}}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.XmlObject=M.XFAObjectArray=M.XFAObject=M.XFAAttribute=M.StringObject=M.OptionObject=M.Option10=M.Option01=M.IntegerObject=M.ContentObject=void 0;var n=Z(78),_=Z(84),L=Z(2),t=Z(3),e=Z(81),a=Z(88);const v=Symbol(),A=Symbol(),T=Symbol(),d=Symbol("_children"),i=Symbol(),C=Symbol(),p=Symbol(),b=Symbol(),F=Symbol(),u=Symbol(),l=Symbol(),y=Symbol(),N=Symbol(),U=Symbol("parent"),$=Symbol(),P=Symbol(),R=Symbol();let o=0;const g=e.NamespaceIds.datasets.id;class x{constructor(h,m,k=!1){this[n.$namespaceId]=h,this[n.$nodeName]=m,this[l]=k,this[U]=null,this[d]=[],this[n.$uid]=`${m}${o++}`,this[n.$globalData]=null}get isXFAObject(){return!0}get isXFAObjectArray(){return!1}createNodes(h){let m=this,k=null;for(const{name:I,index:B}of h){for(let tt=0,it=isFinite(B)?B:0;tt<=it;tt++){const st=m[n.$namespaceId]===g?-1:m[n.$namespaceId];k=new q(st,I),m[n.$appendChild](k)}m=k}return k}[n.$onChild](h){if(!this[l]||!this[n.$onChildCheck](h))return!1;const m=h[n.$nodeName],k=this[m];if(!(k instanceof E))return k!==null&&this[n.$removeChild](k),this[m]=h,this[n.$appendChild](h),!0;if(k.push(h))return this[n.$appendChild](h),!0;let I="";return this.id?I=` (id: ${this.id})`:this.name&&(I=` (name: ${this.name} ${this.h.value})`),(0,L.warn)(`XFA - node "${this[n.$nodeName]}"${I} has already enough "${m}"!`),!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]===e.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[U]=this,this[d].push(h),!h[n.$globalData]&&this[n.$globalData]&&(h[n.$globalData]=this[n.$globalData])}[n.$removeChild](h){const m=this[d].indexOf(h);this[d].splice(m,1)}[n.$hasSettableValue](){return this.hasOwnProperty("value")}[n.$setValue](h){}[n.$onText](h){}[n.$finalize](){}[n.$clean](h){delete this[l],this[n.$cleanup]&&(h.clean(this[n.$cleanup]),delete this[n.$cleanup])}[n.$indexOf](h){return this[d].indexOf(h)}[n.$insertAt](h,m){m[U]=this,this[d].splice(h,0,m),!m[n.$globalData]&&this[n.$globalData]&&(m[n.$globalData]=this[n.$globalData])}[n.$isTransparent](){return!this.name}[n.$lastAttribute](){return""}[n.$text](){return this[d].length===0?this[n.$content]:this[d].map(h=>h[n.$text]()).join("")}get[T](){const h=Object.getPrototypeOf(this);if(!h._attributes){const m=h._attributes=new Set;for(const k of Object.getOwnPropertyNames(this)){if(this[k]===null||this[k]instanceof x||this[k]instanceof E)break;m.add(k)}}return(0,L.shadow)(this,T,h._attributes)}[n.$isDescendent](h){let m=this;for(;m;){if(m===h)return!0;m=m[n.$getParent]()}return!1}[n.$getParent](){return this[U]}[n.$getSubformParent](){return this[n.$getParent]()}[n.$getChildren](h=null){return h?this[h]:this[d]}[n.$dump](){const h=Object.create(null);this[n.$content]&&(h.$content=this[n.$content]);for(const m of Object.getOwnPropertyNames(this)){const k=this[m];k!==null&&(k instanceof x?h[m]=k[n.$dump]():k instanceof E?k.isEmpty()||(h[m]=k.dump()):h[m]=k)}return h}[n.$toStyle](){return null}[n.$toHTML](){return _.HTMLResult.EMPTY}*[n.$getContainedChildren](){for(const h of this[n.$getChildren]())yield h}*[b](h,m){for(const k of this[n.$getContainedChildren]())if(!h||m===h.has(k[n.$nodeName])){const I=this[n.$getAvailableSpace](),B=k[n.$toHTML](I);B.success||(this[n.$extra].failingNode=k),yield B}}[n.$flushHTML](){return null}[n.$addHTML](h,m){this[n.$extra].children.push(h)}[n.$getAvailableSpace](){}[n.$childrenToHTML]({filter:h=null,include:m=!0}){if(this[n.$extra].generator){const k=this[n.$getAvailableSpace](),I=this[n.$extra].failingNode[n.$toHTML](k);if(!I.success)return I;I.html&&this[n.$addHTML](I.html,I.bbox),delete this[n.$extra].failingNode}else this[n.$extra].generator=this[b](h,m);for(;;){const k=this[n.$extra].generator.next();if(k.done)break;const I=k.value;if(!I.success)return I;I.html&&this[n.$addHTML](I.html,I.bbox)}return this[n.$extra].generator=null,_.HTMLResult.EMPTY}[n.$setSetAttributes](h){this[P]=new Set(Object.keys(h))}[u](h){const m=this[T],k=this[P];return[...h].filter(I=>m.has(I)&&!k.has(I))}[n.$resolvePrototypes](h,m=new Set){for(const k of this[d])k[$](h,m)}[$](h,m){const k=this[F](h,m);k?this[v](k,h,m):this[n.$resolvePrototypes](h,m)}[F](h,m){const{use:k,usehref:I}=this;if(!k&&!I)return null;let B=null,tt=null,it=null,st=k;if(I?(st=I,I.startsWith("#som(")&&I.endsWith(")")?tt=I.slice(5,-1):I.startsWith(".#som(")&&I.endsWith(")")?tt=I.slice(6,-1):I.startsWith("#")?it=I.slice(1):I.startsWith(".#")&&(it=I.slice(2))):k.startsWith("#")?it=k.slice(1):tt=k,this.use=this.usehref="",it?B=h.get(it):(B=(0,a.searchNode)(h.get(n.$root),this,tt,!0,!1),B&&(B=B[0])),!B)return(0,L.warn)(`XFA - Invalid prototype reference: ${st}.`),null;if(B[n.$nodeName]!==this[n.$nodeName])return(0,L.warn)(`XFA - Incompatible prototype: ${B[n.$nodeName]} !== ${this[n.$nodeName]}.`),null;if(m.has(B))return(0,L.warn)("XFA - Cycle detected in prototypes use."),null;m.add(B);const X=B[F](h,m);return X&&B[v](X,h,m),B[n.$resolvePrototypes](h,m),m.delete(B),B}[v](h,m,k){if(k.has(h)){(0,L.warn)("XFA - Cycle detected in prototypes use.");return}!this[n.$content]&&h[n.$content]&&(this[n.$content]=h[n.$content]),new Set(k).add(h);for(const I of this[u](h[P]))this[I]=h[I],this[P]&&this[P].add(I);for(const I of Object.getOwnPropertyNames(this)){if(this[T].has(I))continue;const B=this[I],tt=h[I];if(B instanceof E){for(const it of B[d])it[$](m,k);for(let it=B[d].length,st=tt[d].length;itx[i](m)):typeof h=="object"&&h!==null?Object.assign({},h):h}[n.$clone](){const h=Object.create(Object.getPrototypeOf(this));for(const m of Object.getOwnPropertySymbols(this))try{h[m]=this[m]}catch{(0,L.shadow)(h,m,this[m])}h[n.$uid]=`${h[n.$nodeName]}${o++}`,h[d]=[];for(const m of Object.getOwnPropertyNames(this)){if(this[T].has(m)){h[m]=x[i](this[m]);continue}const k=this[m];h[m]=k instanceof E?new E(k[y]):null}for(const m of this[d]){const k=m[n.$nodeName],I=m[n.$clone]();h[d].push(I),I[U]=h,h[k]===null?h[k]=I:h[k][d].push(I)}return h}[n.$getChildren](h=null){return h?this[d].filter(m=>m[n.$nodeName]===h):this[d]}[n.$getChildrenByClass](h){return this[h]}[n.$getChildrenByName](h,m,k=!0){return Array.from(this[n.$getChildrenByNameIt](h,m,k))}*[n.$getChildrenByNameIt](h,m,k=!0){if(h!=="parent"){for(const I of this[d])I[n.$nodeName]===h&&(yield I),I.name===h&&(yield I),(m||I[n.$isTransparent]())&&(yield*I[n.$getChildrenByNameIt](h,m,!1));k&&this[T].has(h)&&(yield new D(this,h,this[h]))}else yield this[U]}}M.XFAObject=x;class E{constructor(h=1/0){this[y]=h,this[d]=[]}get isXFAObject(){return!1}get isXFAObjectArray(){return!0}push(h){return this[d].length<=this[y]?(this[d].push(h),!0):((0,L.warn)(`XFA - node "${h[n.$nodeName]}" accepts no more than ${this[y]} children`),!1)}isEmpty(){return this[d].length===0}dump(){return this[d].length===1?this[d][0][n.$dump]():this[d].map(h=>h[n.$dump]())}[n.$clone](){const h=new E(this[y]);return h[d]=this[d].map(m=>m[n.$clone]()),h}get children(){return this[d]}clear(){this[d].length=0}}M.XFAObjectArray=E;class D{constructor(h,m,k){this[U]=h,this[n.$nodeName]=m,this[n.$content]=k,this[n.$consumed]=!1,this[n.$uid]="attribute"+o++}[n.$getParent](){return this[U]}[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[U]===h||this[U][n.$isDescendent](h)}}M.XFAAttribute=D;class q extends x{constructor(h,m,k={}){if(super(h,m),this[n.$content]="",this[C]=null,m!=="#text"){const I=new Map;this[A]=I;for(const[B,tt]of Object.entries(k))I.set(B,new D(this,B,tt));if(k.hasOwnProperty(n.$nsAttributes)){const B=k[n.$nsAttributes].xfa.dataNode;B!==void 0&&(B==="dataGroup"?this[C]=!1:B==="dataValue"&&(this[C]=!0))}}this[n.$consumed]=!1}[n.$toString](h){const m=this[n.$nodeName];if(m==="#text"){h.push((0,t.encodeToXmlString)(this[n.$content]));return}const k=(0,L.utf8StringToString)(m),I=this[n.$namespaceId]===g?"xfa:":"";h.push(`<${I}${k}`);for(const[B,tt]of this[A].entries()){const it=(0,L.utf8StringToString)(B);h.push(` ${it}="${(0,t.encodeToXmlString)(tt[n.$content])}"`)}if(this[C]!==null&&(this[C]?h.push(' xfa:dataNode="dataValue"'):h.push(' xfa:dataNode="dataGroup"')),this[n.$content]||this[d].length!==0){if(h.push(">"),this[n.$content])typeof this[n.$content]=="string"?h.push((0,t.encodeToXmlString)(this[n.$content])):this[n.$content][n.$toString](h);else for(const B of this[d])B[n.$toString](h);h.push(``)}else h.push("/>")}[n.$onChild](h){if(this[n.$content]){const m=new q(this[n.$namespaceId],"#text");this[n.$appendChild](m),m[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[d].length>0){const h=new q(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"?_.HTMLResult.success({name:"#text",value:this[n.$content]}):_.HTMLResult.EMPTY}[n.$getChildren](h=null){return h?this[d].filter(m=>m[n.$nodeName]===h):this[d]}[n.$getAttributes](){return this[A]}[n.$getChildrenByClass](h){const m=this[A].get(h);return m!==void 0?m:this[n.$getChildren](h)}*[n.$getChildrenByNameIt](h,m){const k=this[A].get(h);k&&(yield k);for(const I of this[d])I[n.$nodeName]===h&&(yield I),m&&(yield*I[n.$getChildrenByNameIt](h,m))}*[n.$getAttributeIt](h,m){const k=this[A].get(h);!k||m&&k[n.$consumed]||(yield k);for(const I of this[d])yield*I[n.$getAttributeIt](h,m)}*[n.$getRealChildrenByNameIt](h,m,k){for(const I of this[d])I[n.$nodeName]!==h||k&&I[n.$consumed]||(yield I),m&&(yield*I[n.$getRealChildrenByNameIt](h,m,k))}[n.$isDataValue](){return this[C]===null?this[d].length===0||this[d][0][n.$namespaceId]===e.NamespaceIds.xhtml.id:this[C]}[n.$getDataValue](){return this[C]===null?this[d].length===0?this[n.$content].trim():this[d][0][n.$namespaceId]===e.NamespaceIds.xhtml.id?this[d][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 m=Object.create(null);h&&(m.$ns=this[n.$namespaceId]),this[n.$content]&&(m.$content=this[n.$content]),m.$name=this[n.$nodeName],m.children=[];for(const k of this[d])m.children.push(k[n.$dump](h));m.attributes=Object.create(null);for(const[k,I]of this[A])m.attributes[k]=I[n.$content];return m}}M.XmlObject=q;class W extends x{constructor(h,m){super(h,m),this[n.$content]=""}[n.$onText](h){this[n.$content]+=h}[n.$finalize](){}}M.ContentObject=W;class w extends W{constructor(h,m,k){super(h,m),this[N]=k}[n.$finalize](){this[n.$content]=(0,_.getKeyword)({data:this[n.$content],defaultValue:this[N][0],validate:h=>this[N].includes(h)})}[n.$clean](h){super[n.$clean](h),delete this[N]}}M.OptionObject=w;class s extends W{[n.$finalize](){this[n.$content]=this[n.$content].trim()}}M.StringObject=s;class c extends W{constructor(h,m,k,I){super(h,m),this[p]=k,this[R]=I}[n.$finalize](){this[n.$content]=(0,_.getInteger)({data:this[n.$content],defaultValue:this[p],validate:this[R]})}[n.$clean](h){super[n.$clean](h),delete this[p],delete this[R]}}M.IntegerObject=c,M.Option01=class extends c{constructor(h,m){super(h,m,0,k=>k===1)}},M.Option10=class extends c{constructor(h,m){super(h,m,1,k=>k===0)}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.createDataNode=function(d,i,C){const p=A(C);if(!p||p.some(u=>u.operator===e.dotDot))return null;const b=a.get(p[0].name);let F=0;b?(d=b(d,i),F=1):d=i||d;for(let u=p.length;F0&&o.push(x)}if(o.length!==0||l||y!==0)d=isFinite(R)?o.filter(g=>Rg[R]):o.flat();else{if(!(i=i[n.$getParent]()))return null;y=-1,d=[i]}}return d.length===0?null:d};var n=Z(78),_=Z(2);const L=/^[^.[]+/,t=/^[^\]]+/,e={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},a=new Map([["$data",(T,d)=>T.datasets?T.datasets.data:T],["$record",(T,d)=>(T.datasets?T.datasets.data:T)[n.$getChildren]()[0]],["$template",(T,d)=>T.template],["$connectionSet",(T,d)=>T.connectionSet],["$form",(T,d)=>T.form],["$layout",(T,d)=>T.layout],["$host",(T,d)=>T.host],["$dataWindow",(T,d)=>T.dataWindow],["$event",(T,d)=>T.event],["!",(T,d)=>T.datasets],["$xfa",(T,d)=>T],["xfa",(T,d)=>T],["$",(T,d)=>d]]),v=new WeakMap;function A(T,d,i=!0){let C=T.match(L);if(!C)return null;let[p]=C;const b=[{name:p,cacheName:"."+p,index:0,js:null,formCalc:null,operator:e.dot}];let F=p.length;for(;F{Object.defineProperty(M,"__esModule",{value:!0}),M.DataHandler=void 0;var n=Z(78);M.DataHandler=class{constructor(L,t){this.data=t,this.dataset=L.datasets||null}serialize(L){const t=[[-1,this.data[n.$getChildren]()]];for(;t.length>0;){const a=t.at(-1),[v,A]=a;if(v+1===A.length){t.pop();continue}const T=A[++a[0]],d=L.get(T[n.$uid]);if(d)T[n.$setValue](d);else{const C=T[n.$getAttributes]();for(const p of C.values()){const b=L.get(p[n.$uid]);if(b){p[n.$setValue](b);break}}}const i=T[n.$getChildren]();i.length>0&&t.push([-1,i])}const e=[''];if(this.dataset)for(const a of this.dataset[n.$getChildren]())a[n.$nodeName]!=="data"&&a[n.$toString](e);return this.data[n.$toString](e),e.push(""),e.join("")}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.XFAParser=void 0;var n=Z(78),_=Z(71),L=Z(91),t=Z(2);class e extends _.XMLParserBase{constructor(v=null,A=!1){super(),this._builder=new L.Builder(v),this._stack=[],this._globalData={usedTypefaces:new Set},this._ids=new Map,this._current=this._builder.buildRoot(this._ids),this._errorCode=_.XMLParserErrorCode.NoError,this._whiteRegex=/^\s+$/,this._nbsps=/\xa0+/g,this._richText=A}parse(v){if(this.parseXml(v),this._errorCode===_.XMLParserErrorCode.NoError)return this._current[n.$finalize](),this._current.element}onText(v){v=v.replace(this._nbsps,A=>A.slice(1)+" "),this._richText||this._current[n.$acceptWhitespace]()?this._current[n.$onText](v,this._richText):this._whiteRegex.test(v)||this._current[n.$onText](v.trim())}onCdata(v){this._current[n.$onText](v)}_mkAttributes(v,A){let T=null,d=null;const i=Object.create({});for(const{name:C,value:p}of v)if(C==="xmlns")T?(0,t.warn)(`XFA - multiple namespace definition in <${A}>`):T=p;else if(C.startsWith("xmlns:")){const b=C.substring(6);d||(d=[]),d.push({prefix:b,value:p})}else{const b=C.indexOf(":");if(b===-1)i[C]=p;else{let F=i[n.$nsAttributes];F||(F=i[n.$nsAttributes]=Object.create(null));const[u,l]=[C.slice(0,b),C.slice(b+1)];(F[u]||(F[u]=Object.create(null)))[l]=p}}return[T,d,i]}_getNameAndPrefix(v,A){const T=v.indexOf(":");return T===-1?[v,null]:[v.substring(T+1),A?"":v.substring(0,T)]}onBeginElement(v,A,T){const[d,i,C]=this._mkAttributes(A,v),[p,b]=this._getNameAndPrefix(v,this._builder.isNsAgnostic()),F=this._builder.build({nsPrefix:b,name:p,attributes:C,namespace:d,prefixes:i});F[n.$globalData]=this._globalData,T?(F[n.$finalize](),this._current[n.$onChild](F)&&F[n.$setId](this._ids),F[n.$clean](this._builder)):(this._stack.push(this._current),this._current=F)}onEndElement(v){const A=this._current;if(A[n.$isCDATAXml]()&&typeof A[n.$content]=="string"){const T=new e;T._globalData=this._globalData;const d=T.parse(A[n.$content]);A[n.$content]=null,A[n.$onChild](d)}A[n.$finalize](),this._current=this._stack.pop(),this._current[n.$onChild](A)&&A[n.$setId](this._ids),A[n.$clean](this._builder)}onError(v){this._errorCode=v}}M.XFAParser=e},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.Builder=void 0;var n=Z(81),_=Z(78),L=Z(92),t=Z(80),e=Z(101),a=Z(2),v=Z(87);class A extends v.XFAObject{constructor(i){super(-1,"root",Object.create(null)),this.element=null,this[_.$ids]=i}[_.$onChild](i){return this.element=i,!0}[_.$finalize](){super[_.$finalize](),this.element.template instanceof t.Template&&(this[_.$ids].set(_.$root,this.element),this.element.template[_.$resolvePrototypes](this[_.$ids]),this.element.template[_.$ids]=this[_.$ids])}}class T extends v.XFAObject{constructor(){super(-1,"",Object.create(null))}[_.$onChild](i){return!1}}M.Builder=class{constructor(i=null){this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max(...Object.values(n.NamespaceIds).map(({id:C})=>C)),this._currentNamespace=i||new e.UnknownNamespace(++this._nextNsId)}buildRoot(i){return new A(i)}build({nsPrefix:i,name:C,attributes:p,namespace:b,prefixes:F}){const u=b!==null;if(u&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(b)),F&&this._addNamespacePrefix(F),p.hasOwnProperty(_.$nsAttributes)){const N=L.NamespaceSetUp.datasets,U=p[_.$nsAttributes];let $=null;for(const[P,R]of Object.entries(U))if(this._getNamespaceToUse(P)===N){$={xfa:R};break}$?p[_.$nsAttributes]=$:delete p[_.$nsAttributes]}const l=this._getNamespaceToUse(i),y=(l==null?void 0:l[n.$buildXFAObject](C,p))||new T;return y[_.$isNsAgnostic]()&&this._nsAgnosticLevel++,(u||F||y[_.$isNsAgnostic]())&&(y[_.$cleanup]={hasNamespace:u,prefixes:F,nsAgnostic:y[_.$isNsAgnostic]()}),y}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(i){let C=this._namespaces.get(i);if(C)return C;for(const[p,{check:b}]of Object.entries(n.NamespaceIds))if(b(i)){if(C=L.NamespaceSetUp[p],C)return this._namespaces.set(i,C),C;break}return C=new e.UnknownNamespace(++this._nextNsId),this._namespaces.set(i,C),C}_addNamespacePrefix(i){for(const{prefix:C,value:p}of i){const b=this._searchNamespace(p);let F=this._namespacePrefixes.get(C);F||(F=[],this._namespacePrefixes.set(C,F)),F.push(b)}}_getNamespaceToUse(i){if(!i)return this._currentNamespace;const C=this._namespacePrefixes.get(i);return(C==null?void 0:C.length)>0?C.at(-1):((0,a.warn)(`Unknown namespace prefix: ${i}.`),null)}clean(i){const{hasNamespace:C,prefixes:p,nsAgnostic:b}=i;C&&(this._currentNamespace=this._namespaceStack.pop()),p&&p.forEach(({prefix:F})=>{this._namespacePrefixes.get(F).pop()}),b&&this._nsAgnosticLevel--}}},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.NamespaceSetUp=void 0;var n=Z(93),_=Z(94),L=Z(95),t=Z(96),e=Z(97),a=Z(98),v=Z(80),A=Z(99),T=Z(100);const d={config:n.ConfigNamespace,connection:_.ConnectionSetNamespace,datasets:L.DatasetsNamespace,localeSet:t.LocaleSetNamespace,signature:e.SignatureNamespace,stylesheet:a.StylesheetNamespace,template:v.TemplateNamespace,xdp:A.XdpNamespace,xhtml:T.XhtmlNamespace};M.NamespaceSetUp=d},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.ConfigNamespace=void 0;var n=Z(81),_=Z(78),L=Z(87),t=Z(84),e=Z(2);const a=n.NamespaceIds.config.id;class v extends L.XFAObject{constructor(ct){super(a,"acrobat",!0),this.acrobat7=null,this.autoSave=null,this.common=null,this.validate=null,this.validateApprovalSignatures=null,this.submitUrl=new L.XFAObjectArray}}class A extends L.XFAObject{constructor(ct){super(a,"acrobat7",!0),this.dynamicRender=null}}class T extends L.OptionObject{constructor(ct){super(a,"ADBE_JSConsole",["delegate","Enable","Disable"])}}class d extends L.OptionObject{constructor(ct){super(a,"ADBE_JSDebugger",["delegate","Enable","Disable"])}}class i extends L.Option01{constructor(ct){super(a,"addSilentPrint")}}class C extends L.Option01{constructor(ct){super(a,"addViewerPreferences")}}class p extends L.Option10{constructor(ct){super(a,"adjustData")}}class b extends L.IntegerObject{constructor(ct){super(a,"adobeExtensionLevel",0,ae=>ae>=1&&ae<=8)}}class F extends L.XFAObject{constructor(ct){super(a,"agent",!0),this.name=ct.name?ct.name.trim():"",this.common=new L.XFAObjectArray}}class u extends L.ContentObject{constructor(ct){super(a,"alwaysEmbed")}}class l extends L.StringObject{constructor(ct){super(a,"amd")}}class y extends L.XFAObject{constructor(ct){super(a,"area"),this.level=(0,t.getInteger)({data:ct.level,defaultValue:0,validate:ae=>ae>=1&&ae<=3}),this.name=(0,t.getStringOption)(ct.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}}class N extends L.OptionObject{constructor(ct){super(a,"attributes",["preserve","delegate","ignore"])}}class U extends L.OptionObject{constructor(ct){super(a,"autoSave",["disabled","enabled"])}}class $ extends L.StringObject{constructor(ct){super(a,"base")}}class P extends L.XFAObject{constructor(ct){super(a,"batchOutput"),this.format=(0,t.getStringOption)(ct.format,["none","concat","zip","zipCompress"])}}class R extends L.ContentObject{constructor(ct){super(a,"behaviorOverride")}[_.$finalize](){this[_.$content]=new Map(this[_.$content].trim().split(/\s+/).filter(ct=>ct.includes(":")).map(ct=>ct.split(":",2)))}}class o extends L.XFAObject{constructor(ct){super(a,"cache",!0),this.templateCache=null}}class g extends L.Option01{constructor(ct){super(a,"change")}}class x extends L.XFAObject{constructor(ct){super(a,"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 L.XFAObjectArray}}class E extends L.XFAObject{constructor(ct){super(a,"compress"),this.scope=(0,t.getStringOption)(ct.scope,["imageOnly","document"])}}class D extends L.Option01{constructor(ct){super(a,"compressLogicalStructure")}}class q extends L.Option10{constructor(ct){super(a,"compressObjectStream")}}class W extends L.XFAObject{constructor(ct){super(a,"compression",!0),this.compressLogicalStructure=null,this.compressObjectStream=null,this.level=null,this.type=null}}class w extends L.XFAObject{constructor(ct){super(a,"config",!0),this.acrobat=null,this.present=null,this.trace=null,this.agent=new L.XFAObjectArray}}class s extends L.OptionObject{constructor(ct){super(a,"conformance",["A","B"])}}class c extends L.Option01{constructor(ct){super(a,"contentCopy")}}class S extends L.IntegerObject{constructor(ct){super(a,"copies",1,ae=>ae>=1)}}class h extends L.StringObject{constructor(ct){super(a,"creator")}}class m extends L.IntegerObject{constructor(ct){super(a,"currentPage",0,ae=>ae>=0)}}class k extends L.XFAObject{constructor(ct){super(a,"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 L.XFAObjectArray,this.transform=new L.XFAObjectArray}}class I extends L.XFAObject{constructor(ct){super(a,"debug",!0),this.uri=null}}class B extends L.ContentObject{constructor(ct){super(a,"defaultTypeface"),this.writingScript=(0,t.getStringOption)(ct.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}}class tt extends L.OptionObject{constructor(ct){super(a,"destination",["pdf","pcl","ps","webClient","zpl"])}}class it extends L.Option01{constructor(ct){super(a,"documentAssembly")}}class st extends L.XFAObject{constructor(ct){super(a,"driver",!0),this.name=ct.name?ct.name.trim():"",this.fontInfo=null,this.xdc=null}}class X extends L.OptionObject{constructor(ct){super(a,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}}class J extends L.OptionObject{constructor(ct){super(a,"dynamicRender",["forbidden","required"])}}class j extends L.Option01{constructor(ct){super(a,"embed")}}class O extends L.Option01{constructor(ct){super(a,"encrypt")}}class H extends L.XFAObject{constructor(ct){super(a,"encryption",!0),this.encrypt=null,this.encryptionLevel=null,this.permissions=null}}class V extends L.OptionObject{constructor(ct){super(a,"encryptionLevel",["40bit","128bit"])}}class z extends L.StringObject{constructor(ct){super(a,"enforce")}}class Y extends L.XFAObject{constructor(ct){super(a,"equate"),this.force=(0,t.getInteger)({data:ct.force,defaultValue:1,validate:ae=>ae===0}),this.from=ct.from||"",this.to=ct.to||""}}class G extends L.XFAObject{constructor(ct){super(a,"equateRange"),this.from=ct.from||"",this.to=ct.to||"",this._unicodeRange=ct.unicodeRange||""}get unicodeRange(){const ct=[],ae=/U\+([0-9a-fA-F]+)/,fe=this._unicodeRange;for(let pe of fe.split(",").map(be=>be.trim()).filter(be=>!!be))pe=pe.split("-",2).map(be=>{const we=be.match(ae);return we?parseInt(we[1],16):0}),pe.length===1&&pe.push(pe[0]),ct.push(pe);return(0,e.shadow)(this,"unicodeRange",ct)}}class K extends L.ContentObject{constructor(ct){super(a,"exclude")}[_.$finalize](){this[_.$content]=this[_.$content].trim().split(/\s+/).filter(ct=>ct&&["calculate","close","enter","exit","initialize","ready","validate"].includes(ct))}}class et extends L.StringObject{constructor(ct){super(a,"excludeNS")}}class nt extends L.OptionObject{constructor(ct){super(a,"flipLabel",["usePrinterSetting","on","off"])}}class at extends L.XFAObject{constructor(ct){super(a,"fontInfo",!0),this.embed=null,this.map=null,this.subsetBelow=null,this.alwaysEmbed=new L.XFAObjectArray,this.defaultTypeface=new L.XFAObjectArray,this.neverEmbed=new L.XFAObjectArray}}class Q extends L.Option01{constructor(ct){super(a,"formFieldFilling")}}class lt extends L.StringObject{constructor(ct){super(a,"groupParent")}}class ut extends L.OptionObject{constructor(ct){super(a,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}}class pt extends L.StringObject{constructor(ct){super(a,"includeXDPContent")}}class yt extends L.OptionObject{constructor(ct){super(a,"incrementalLoad",["none","forwardOnly"])}}class Et extends L.Option01{constructor(ct){super(a,"incrementalMerge")}}class Tt extends L.Option01{constructor(ct){super(a,"interactive")}}class xt extends L.OptionObject{constructor(ct){super(a,"jog",["usePrinterSetting","none","pageSet"])}}class wt extends L.XFAObject{constructor(ct){super(a,"labelPrinter",!0),this.name=(0,t.getStringOption)(ct.name,["zpl","dpl","ipl","tcpl"]),this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class St extends L.OptionObject{constructor(ct){super(a,"layout",["paginate","panel"])}}class Rt extends L.IntegerObject{constructor(ct){super(a,"level",0,ae=>ae>0)}}class Ct extends L.Option01{constructor(ct){super(a,"linearized")}}class Gt extends L.StringObject{constructor(ct){super(a,"locale")}}class Zt extends L.StringObject{constructor(ct){super(a,"localeSet")}}class Ft extends L.XFAObject{constructor(ct){super(a,"log",!0),this.mode=null,this.threshold=null,this.to=null,this.uri=null}}class Ut extends L.XFAObject{constructor(ct){super(a,"map",!0),this.equate=new L.XFAObjectArray,this.equateRange=new L.XFAObjectArray}}class Vt extends L.XFAObject{constructor(ct){super(a,"mediumInfo",!0),this.map=null}}class Wt extends L.XFAObject{constructor(ct){super(a,"message",!0),this.msgId=null,this.severity=null}}class Yt extends L.XFAObject{constructor(ct){super(a,"messaging",!0),this.message=new L.XFAObjectArray}}class re extends L.OptionObject{constructor(ct){super(a,"mode",["append","overwrite"])}}class Jt extends L.Option01{constructor(ct){super(a,"modifyAnnots")}}class Bt extends L.IntegerObject{constructor(ct){super(a,"msgId",1,ae=>ae>=1)}}class Xt extends L.StringObject{constructor(ct){super(a,"nameAttr")}}class jt extends L.ContentObject{constructor(ct){super(a,"neverEmbed")}}class mt extends L.IntegerObject{constructor(ct){super(a,"numberOfCopies",null,ae=>ae>=2&&ae<=5)}}class rt extends L.XFAObject{constructor(ct){super(a,"openAction",!0),this.destination=null}}class ht extends L.XFAObject{constructor(ct){super(a,"output",!0),this.to=null,this.type=null,this.uri=null}}class gt extends L.StringObject{constructor(ct){super(a,"outputBin")}}class bt extends L.XFAObject{constructor(ct){super(a,"outputXSL",!0),this.uri=null}}class Pt extends L.OptionObject{constructor(ct){super(a,"overprint",["none","both","draw","field"])}}class It extends L.StringObject{constructor(ct){super(a,"packets")}[_.$finalize](){this[_.$content]!=="*"&&(this[_.$content]=this[_.$content].trim().split(/\s+/).filter(ct=>["config","datasets","template","xfdf","xslt"].includes(ct)))}}class Nt extends L.XFAObject{constructor(ct){super(a,"pageOffset"),this.x=(0,t.getInteger)({data:ct.x,defaultValue:"useXDCSetting",validate:ae=>!0}),this.y=(0,t.getInteger)({data:ct.y,defaultValue:"useXDCSetting",validate:ae=>!0})}}class Kt extends L.StringObject{constructor(ct){super(a,"pageRange")}[_.$finalize](){const ct=this[_.$content].trim().split(/\s+/).map(fe=>parseInt(fe,10)),ae=[];for(let fe=0,pe=ct.length;fe!1)}}class te extends L.XFAObject{constructor(ct){super(a,"pcl",!0),this.name=ct.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 oe extends L.XFAObject{constructor(ct){super(a,"pdf",!0),this.name=ct.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 le extends L.XFAObject{constructor(ct){super(a,"pdfa",!0),this.amd=null,this.conformance=null,this.includeXDPContent=null,this.part=null}}class ie extends L.XFAObject{constructor(ct){super(a,"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 ce extends L.Option01{constructor(ct){super(a,"pickTrayByPDFSize")}}class se extends L.StringObject{constructor(ct){super(a,"picture")}}class ue extends L.Option01{constructor(ct){super(a,"plaintextMetadata")}}class he extends L.OptionObject{constructor(ct){super(a,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}}class de extends L.XFAObject{constructor(ct){super(a,"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 L.XFAObjectArray,this.labelPrinter=new L.XFAObjectArray,this.pcl=new L.XFAObjectArray,this.pdf=new L.XFAObjectArray,this.ps=new L.XFAObjectArray,this.submitUrl=new L.XFAObjectArray,this.webClient=new L.XFAObjectArray,this.zpl=new L.XFAObjectArray}}class ge extends L.Option01{constructor(ct){super(a,"print")}}class Ae extends L.Option01{constructor(ct){super(a,"printHighQuality")}}class Ee extends L.OptionObject{constructor(ct){super(a,"printScaling",["appdefault","noScaling"])}}class Be extends L.StringObject{constructor(ct){super(a,"printerName")}}class $e extends L.StringObject{constructor(ct){super(a,"producer")}}class Ue extends L.XFAObject{constructor(ct){super(a,"ps",!0),this.name=ct.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.staple=null,this.xdc=null}}class Bn extends L.ContentObject{constructor(ct){super(a,"range")}[_.$finalize](){this[_.$content]=this[_.$content].trim().split(/\s*,\s*/,2).map(ct=>ct.split("-").map(ae=>parseInt(ae.trim(),10))).filter(ct=>ct.every(ae=>!isNaN(ae))).map(ct=>(ct.length===1&&ct.push(ct[0]),ct))}}class $n extends L.ContentObject{constructor(ct){super(a,"record")}[_.$finalize](){this[_.$content]=this[_.$content].trim();const ct=parseInt(this[_.$content],10);!isNaN(ct)&&ct>=0&&(this[_.$content]=ct)}}class jn extends L.ContentObject{constructor(ct){super(a,"relevant")}[_.$finalize](){this[_.$content]=this[_.$content].trim().split(/\s+/)}}class Un extends L.ContentObject{constructor(ct){super(a,"rename")}[_.$finalize](){this[_.$content]=this[_.$content].trim(),(this[_.$content].toLowerCase().startsWith("xml")||new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u").test(this[_.$content]))&&(0,e.warn)("XFA - Rename: invalid XFA name")}}class Hn extends L.OptionObject{constructor(ct){super(a,"renderPolicy",["server","client"])}}class Xn extends L.OptionObject{constructor(ct){super(a,"runScripts",["both","client","none","server"])}}class qn extends L.XFAObject{constructor(ct){super(a,"script",!0),this.currentPage=null,this.exclude=null,this.runScripts=null}}class zn extends L.OptionObject{constructor(ct){super(a,"scriptModel",["XFA","none"])}}class fn extends L.OptionObject{constructor(ct){super(a,"severity",["ignore","error","information","trace","warning"])}}class Gn extends L.XFAObject{constructor(ct){super(a,"silentPrint",!0),this.addSilentPrint=null,this.printerName=null}}class Wn extends L.XFAObject{constructor(ct){super(a,"staple"),this.mode=(0,t.getStringOption)(ct.mode,["usePrinterSetting","on","off"])}}class pn extends L.StringObject{constructor(ct){super(a,"startNode")}}class Vn extends L.IntegerObject{constructor(ct){super(a,"startPage",0,ae=>!0)}}class Kn extends L.OptionObject{constructor(ct){super(a,"submitFormat",["html","delegate","fdf","xml","pdf"])}}class Yn extends L.StringObject{constructor(ct){super(a,"submitUrl")}}class Jn extends L.IntegerObject{constructor(ct){super(a,"subsetBelow",100,ae=>ae>=0&&ae<=100)}}class Zn extends L.Option01{constructor(ct){super(a,"suppressBanner")}}class Qn extends L.Option01{constructor(ct){super(a,"tagged")}}class gn extends L.XFAObject{constructor(ct){super(a,"template",!0),this.base=null,this.relevant=null,this.startPage=null,this.uri=null,this.xsl=null}}class tn extends L.OptionObject{constructor(ct){super(a,"threshold",["trace","error","information","warning"])}}class ti extends L.OptionObject{constructor(ct){super(a,"to",["null","memory","stderr","stdout","system","uri"])}}class ei extends L.XFAObject{constructor(ct){super(a,"templateCache"),this.maxEntries=(0,t.getInteger)({data:ct.maxEntries,defaultValue:5,validate:ae=>ae>=0})}}class ni extends L.XFAObject{constructor(ct){super(a,"trace",!0),this.area=new L.XFAObjectArray}}class en extends L.XFAObject{constructor(ct){super(a,"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 L.OptionObject{constructor(ct){super(a,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}}class bn extends L.StringObject{constructor(ct){super(a,"uri")}}class ii extends L.OptionObject{constructor(ct){super(a,"validate",["preSubmit","prePrint","preExecute","preSave"])}}class ri extends L.ContentObject{constructor(ct){super(a,"validateApprovalSignatures")}[_.$finalize](){this[_.$content]=this[_.$content].trim().split(/\s+/).filter(ct=>["docReady","postSign"].includes(ct))}}class ai extends L.OptionObject{constructor(ct){super(a,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}}class si extends L.OptionObject{constructor(ct){super(a,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}}class oi extends L.XFAObject{constructor(ct){super(a,"VersionControl"),this.outputBelow=(0,t.getStringOption)(ct.outputBelow,["warn","error","update"]),this.sourceAbove=(0,t.getStringOption)(ct.sourceAbove,["warn","error"]),this.sourceBelow=(0,t.getStringOption)(ct.sourceBelow,["update","maintain"])}}class nn extends L.XFAObject{constructor(ct){super(a,"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 ci extends L.XFAObject{constructor(ct){super(a,"webClient",!0),this.name=ct.name?ct.name.trim():"",this.fontInfo=null,this.xdc=null}}class Xe extends L.OptionObject{constructor(ct){super(a,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}}class li extends L.ContentObject{constructor(ct){super(a,"window")}[_.$finalize](){const ct=this[_.$content].trim().split(/\s*,\s*/,2).map(ae=>parseInt(ae,10));ct.some(ae=>isNaN(ae))?this[_.$content]=[0,0]:(ct.length===1&&ct.push(ct[0]),this[_.$content]=ct)}}class qe extends L.XFAObject{constructor(ct){super(a,"xdc",!0),this.uri=new L.XFAObjectArray,this.xsl=new L.XFAObjectArray}}class qt extends L.XFAObject{constructor(ct){super(a,"xdp",!0),this.packets=null}}class f extends L.XFAObject{constructor(ct){super(a,"xsl",!0),this.debug=null,this.uri=null}}class kt extends L.XFAObject{constructor(ct){super(a,"zpl",!0),this.name=ct.name?ct.name.trim():"",this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class zt{static[n.$buildXFAObject](ct,ae){if(zt.hasOwnProperty(ct))return zt[ct](ae)}static acrobat(ct){return new v(ct)}static acrobat7(ct){return new A(ct)}static ADBE_JSConsole(ct){return new T(ct)}static ADBE_JSDebugger(ct){return new d(ct)}static addSilentPrint(ct){return new i(ct)}static addViewerPreferences(ct){return new C(ct)}static adjustData(ct){return new p(ct)}static adobeExtensionLevel(ct){return new b(ct)}static agent(ct){return new F(ct)}static alwaysEmbed(ct){return new u(ct)}static amd(ct){return new l(ct)}static area(ct){return new y(ct)}static attributes(ct){return new N(ct)}static autoSave(ct){return new U(ct)}static base(ct){return new $(ct)}static batchOutput(ct){return new P(ct)}static behaviorOverride(ct){return new R(ct)}static cache(ct){return new o(ct)}static change(ct){return new g(ct)}static common(ct){return new x(ct)}static compress(ct){return new E(ct)}static compressLogicalStructure(ct){return new D(ct)}static compressObjectStream(ct){return new q(ct)}static compression(ct){return new W(ct)}static config(ct){return new w(ct)}static conformance(ct){return new s(ct)}static contentCopy(ct){return new c(ct)}static copies(ct){return new S(ct)}static creator(ct){return new h(ct)}static currentPage(ct){return new m(ct)}static data(ct){return new k(ct)}static debug(ct){return new I(ct)}static defaultTypeface(ct){return new B(ct)}static destination(ct){return new tt(ct)}static documentAssembly(ct){return new it(ct)}static driver(ct){return new st(ct)}static duplexOption(ct){return new X(ct)}static dynamicRender(ct){return new J(ct)}static embed(ct){return new j(ct)}static encrypt(ct){return new O(ct)}static encryption(ct){return new H(ct)}static encryptionLevel(ct){return new V(ct)}static enforce(ct){return new z(ct)}static equate(ct){return new Y(ct)}static equateRange(ct){return new G(ct)}static exclude(ct){return new K(ct)}static excludeNS(ct){return new et(ct)}static flipLabel(ct){return new nt(ct)}static fontInfo(ct){return new at(ct)}static formFieldFilling(ct){return new Q(ct)}static groupParent(ct){return new lt(ct)}static ifEmpty(ct){return new ut(ct)}static includeXDPContent(ct){return new pt(ct)}static incrementalLoad(ct){return new yt(ct)}static incrementalMerge(ct){return new Et(ct)}static interactive(ct){return new Tt(ct)}static jog(ct){return new xt(ct)}static labelPrinter(ct){return new wt(ct)}static layout(ct){return new St(ct)}static level(ct){return new Rt(ct)}static linearized(ct){return new Ct(ct)}static locale(ct){return new Gt(ct)}static localeSet(ct){return new Zt(ct)}static log(ct){return new Ft(ct)}static map(ct){return new Ut(ct)}static mediumInfo(ct){return new Vt(ct)}static message(ct){return new Wt(ct)}static messaging(ct){return new Yt(ct)}static mode(ct){return new re(ct)}static modifyAnnots(ct){return new Jt(ct)}static msgId(ct){return new Bt(ct)}static nameAttr(ct){return new Xt(ct)}static neverEmbed(ct){return new jt(ct)}static numberOfCopies(ct){return new mt(ct)}static openAction(ct){return new rt(ct)}static output(ct){return new ht(ct)}static outputBin(ct){return new gt(ct)}static outputXSL(ct){return new bt(ct)}static overprint(ct){return new Pt(ct)}static packets(ct){return new It(ct)}static pageOffset(ct){return new Nt(ct)}static pageRange(ct){return new Kt(ct)}static pagination(ct){return new Qt(ct)}static paginationOverride(ct){return new ne(ct)}static part(ct){return new ee(ct)}static pcl(ct){return new te(ct)}static pdf(ct){return new oe(ct)}static pdfa(ct){return new le(ct)}static permissions(ct){return new ie(ct)}static pickTrayByPDFSize(ct){return new ce(ct)}static picture(ct){return new se(ct)}static plaintextMetadata(ct){return new ue(ct)}static presence(ct){return new he(ct)}static present(ct){return new de(ct)}static print(ct){return new ge(ct)}static printHighQuality(ct){return new Ae(ct)}static printScaling(ct){return new Ee(ct)}static printerName(ct){return new Be(ct)}static producer(ct){return new $e(ct)}static ps(ct){return new Ue(ct)}static range(ct){return new Bn(ct)}static record(ct){return new $n(ct)}static relevant(ct){return new jn(ct)}static rename(ct){return new Un(ct)}static renderPolicy(ct){return new Hn(ct)}static runScripts(ct){return new Xn(ct)}static script(ct){return new qn(ct)}static scriptModel(ct){return new zn(ct)}static severity(ct){return new fn(ct)}static silentPrint(ct){return new Gn(ct)}static staple(ct){return new Wn(ct)}static startNode(ct){return new pn(ct)}static startPage(ct){return new Vn(ct)}static submitFormat(ct){return new Kn(ct)}static submitUrl(ct){return new Yn(ct)}static subsetBelow(ct){return new Jn(ct)}static suppressBanner(ct){return new Zn(ct)}static tagged(ct){return new Qn(ct)}static template(ct){return new gn(ct)}static templateCache(ct){return new ei(ct)}static threshold(ct){return new tn(ct)}static to(ct){return new ti(ct)}static trace(ct){return new ni(ct)}static transform(ct){return new en(ct)}static type(ct){return new mn(ct)}static uri(ct){return new bn(ct)}static validate(ct){return new ii(ct)}static validateApprovalSignatures(ct){return new ri(ct)}static validationMessaging(ct){return new ai(ct)}static version(ct){return new si(ct)}static versionControl(ct){return new oi(ct)}static viewerPreferences(ct){return new nn(ct)}static webClient(ct){return new ci(ct)}static whitespace(ct){return new Xe(ct)}static window(ct){return new li(ct)}static xdc(ct){return new qe(ct)}static xdp(ct){return new qt(ct)}static xsl(ct){return new f(ct)}static zpl(ct){return new kt(ct)}}M.ConfigNamespace=zt},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.ConnectionSetNamespace=void 0;var n=Z(81),_=Z(87);const L=n.NamespaceIds.connectionSet.id;class t extends _.XFAObject{constructor(y){super(L,"connectionSet",!0),this.wsdlConnection=new _.XFAObjectArray,this.xmlConnection=new _.XFAObjectArray,this.xsdConnection=new _.XFAObjectArray}}class e extends _.XFAObject{constructor(y){super(L,"effectiveInputPolicy"),this.id=y.id||"",this.name=y.name||"",this.use=y.use||"",this.usehref=y.usehref||""}}class a extends _.XFAObject{constructor(y){super(L,"effectiveOutputPolicy"),this.id=y.id||"",this.name=y.name||"",this.use=y.use||"",this.usehref=y.usehref||""}}class v extends _.StringObject{constructor(y){super(L,"operation"),this.id=y.id||"",this.input=y.input||"",this.name=y.name||"",this.output=y.output||"",this.use=y.use||"",this.usehref=y.usehref||""}}class A extends _.StringObject{constructor(y){super(L,"rootElement"),this.id=y.id||"",this.name=y.name||"",this.use=y.use||"",this.usehref=y.usehref||""}}class T extends _.StringObject{constructor(y){super(L,"soapAction"),this.id=y.id||"",this.name=y.name||"",this.use=y.use||"",this.usehref=y.usehref||""}}class d extends _.StringObject{constructor(y){super(L,"soapAddress"),this.id=y.id||"",this.name=y.name||"",this.use=y.use||"",this.usehref=y.usehref||""}}class i extends _.StringObject{constructor(y){super(L,"uri"),this.id=y.id||"",this.name=y.name||"",this.use=y.use||"",this.usehref=y.usehref||""}}class C extends _.StringObject{constructor(y){super(L,"wsdlAddress"),this.id=y.id||"",this.name=y.name||"",this.use=y.use||"",this.usehref=y.usehref||""}}class p extends _.XFAObject{constructor(y){super(L,"wsdlConnection",!0),this.dataDescription=y.dataDescription||"",this.name=y.name||"",this.effectiveInputPolicy=null,this.effectiveOutputPolicy=null,this.operation=null,this.soapAction=null,this.soapAddress=null,this.wsdlAddress=null}}class b extends _.XFAObject{constructor(y){super(L,"xmlConnection",!0),this.dataDescription=y.dataDescription||"",this.name=y.name||"",this.uri=null}}class F extends _.XFAObject{constructor(y){super(L,"xsdConnection",!0),this.dataDescription=y.dataDescription||"",this.name=y.name||"",this.rootElement=null,this.uri=null}}class u{static[n.$buildXFAObject](y,N){if(u.hasOwnProperty(y))return u[y](N)}static connectionSet(y){return new t(y)}static effectiveInputPolicy(y){return new e(y)}static effectiveOutputPolicy(y){return new a(y)}static operation(y){return new v(y)}static rootElement(y){return new A(y)}static soapAction(y){return new T(y)}static soapAddress(y){return new d(y)}static uri(y){return new i(y)}static wsdlAddress(y){return new C(y)}static wsdlConnection(y){return new p(y)}static xmlConnection(y){return new b(y)}static xsdConnection(y){return new F(y)}}M.ConnectionSetNamespace=u},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.DatasetsNamespace=void 0;var n=Z(78),_=Z(81),L=Z(87);const t=_.NamespaceIds.datasets.id;class e extends L.XmlObject{constructor(T){super(t,"data",T)}[n.$isNsAgnostic](){return!0}}class a extends L.XFAObject{constructor(T){super(t,"datasets",!0),this.data=null,this.Signature=null}[n.$onChild](T){const d=T[n.$nodeName];(d==="data"&&T[n.$namespaceId]===t||d==="Signature"&&T[n.$namespaceId]===_.NamespaceIds.signature.id)&&(this[d]=T),this[n.$appendChild](T)}}class v{static[_.$buildXFAObject](T,d){if(v.hasOwnProperty(T))return v[T](d)}static datasets(T){return new a(T)}static data(T){return new e(T)}}M.DatasetsNamespace=v},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.LocaleSetNamespace=void 0;var n=Z(81),_=Z(87),L=Z(84);const t=n.NamespaceIds.localeSet.id;class e extends _.XFAObject{constructor(w){super(t,"calendarSymbols",!0),this.name="gregorian",this.dayNames=new _.XFAObjectArray(2),this.eraNames=null,this.meridiemNames=null,this.monthNames=new _.XFAObjectArray(2)}}class a extends _.StringObject{constructor(w){super(t,"currencySymbol"),this.name=(0,L.getStringOption)(w.name,["symbol","isoname","decimal"])}}class v extends _.XFAObject{constructor(w){super(t,"currencySymbols",!0),this.currencySymbol=new _.XFAObjectArray(3)}}class A extends _.StringObject{constructor(w){super(t,"datePattern"),this.name=(0,L.getStringOption)(w.name,["full","long","med","short"])}}class T extends _.XFAObject{constructor(w){super(t,"datePatterns",!0),this.datePattern=new _.XFAObjectArray(4)}}class d extends _.ContentObject{constructor(w){super(t,"dateTimeSymbols")}}class i extends _.StringObject{constructor(w){super(t,"day")}}class C extends _.XFAObject{constructor(w){super(t,"dayNames",!0),this.abbr=(0,L.getInteger)({data:w.abbr,defaultValue:0,validate:s=>s===1}),this.day=new _.XFAObjectArray(7)}}class p extends _.StringObject{constructor(w){super(t,"era")}}class b extends _.XFAObject{constructor(w){super(t,"eraNames",!0),this.era=new _.XFAObjectArray(2)}}class F extends _.XFAObject{constructor(w){super(t,"locale",!0),this.desc=w.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 u extends _.XFAObject{constructor(w){super(t,"localeSet",!0),this.locale=new _.XFAObjectArray}}class l extends _.StringObject{constructor(w){super(t,"meridiem")}}class y extends _.XFAObject{constructor(w){super(t,"meridiemNames",!0),this.meridiem=new _.XFAObjectArray(2)}}class N extends _.StringObject{constructor(w){super(t,"month")}}class U extends _.XFAObject{constructor(w){super(t,"monthNames",!0),this.abbr=(0,L.getInteger)({data:w.abbr,defaultValue:0,validate:s=>s===1}),this.month=new _.XFAObjectArray(12)}}class $ extends _.StringObject{constructor(w){super(t,"numberPattern"),this.name=(0,L.getStringOption)(w.name,["full","long","med","short"])}}class P extends _.XFAObject{constructor(w){super(t,"numberPatterns",!0),this.numberPattern=new _.XFAObjectArray(4)}}class R extends _.StringObject{constructor(w){super(t,"numberSymbol"),this.name=(0,L.getStringOption)(w.name,["decimal","grouping","percent","minus","zero"])}}class o extends _.XFAObject{constructor(w){super(t,"numberSymbols",!0),this.numberSymbol=new _.XFAObjectArray(5)}}class g extends _.StringObject{constructor(w){super(t,"timePattern"),this.name=(0,L.getStringOption)(w.name,["full","long","med","short"])}}class x extends _.XFAObject{constructor(w){super(t,"timePatterns",!0),this.timePattern=new _.XFAObjectArray(4)}}class E extends _.XFAObject{constructor(w){super(t,"typeFace",!0),this.name=""|w.name}}class D extends _.XFAObject{constructor(w){super(t,"typeFaces",!0),this.typeFace=new _.XFAObjectArray}}class q{static[n.$buildXFAObject](w,s){if(q.hasOwnProperty(w))return q[w](s)}static calendarSymbols(w){return new e(w)}static currencySymbol(w){return new a(w)}static currencySymbols(w){return new v(w)}static datePattern(w){return new A(w)}static datePatterns(w){return new T(w)}static dateTimeSymbols(w){return new d(w)}static day(w){return new i(w)}static dayNames(w){return new C(w)}static era(w){return new p(w)}static eraNames(w){return new b(w)}static locale(w){return new F(w)}static localeSet(w){return new u(w)}static meridiem(w){return new l(w)}static meridiemNames(w){return new y(w)}static month(w){return new N(w)}static monthNames(w){return new U(w)}static numberPattern(w){return new $(w)}static numberPatterns(w){return new P(w)}static numberSymbol(w){return new R(w)}static numberSymbols(w){return new o(w)}static timePattern(w){return new g(w)}static timePatterns(w){return new x(w)}static typeFace(w){return new E(w)}static typeFaces(w){return new D(w)}}M.LocaleSetNamespace=q},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.SignatureNamespace=void 0;var n=Z(81),_=Z(87);const L=n.NamespaceIds.signature.id;class t extends _.XFAObject{constructor(v){super(L,"signature",!0)}}class e{static[n.$buildXFAObject](v,A){if(e.hasOwnProperty(v))return e[v](A)}static signature(v){return new t(v)}}M.SignatureNamespace=e},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.StylesheetNamespace=void 0;var n=Z(81),_=Z(87);const L=n.NamespaceIds.stylesheet.id;class t extends _.XFAObject{constructor(v){super(L,"stylesheet",!0)}}class e{static[n.$buildXFAObject](v,A){if(e.hasOwnProperty(v))return e[v](A)}static stylesheet(v){return new t(v)}}M.StylesheetNamespace=e},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.XdpNamespace=void 0;var n=Z(81),_=Z(78),L=Z(87);const t=n.NamespaceIds.xdp.id;class e extends L.XFAObject{constructor(A){super(t,"xdp",!0),this.uuid=A.uuid||"",this.timeStamp=A.timeStamp||"",this.config=null,this.connectionSet=null,this.datasets=null,this.localeSet=null,this.stylesheet=new L.XFAObjectArray,this.template=null}[_.$onChildCheck](A){const T=n.NamespaceIds[A[_.$nodeName]];return T&&A[_.$namespaceId]===T.id}}class a{static[n.$buildXFAObject](A,T){if(a.hasOwnProperty(A))return a[A](T)}static xdp(A){return new e(A)}}M.XdpNamespace=a},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.XhtmlNamespace=void 0;var n=Z(78),_=Z(81),L=Z(83),t=Z(84),e=Z(87);const a=_.NamespaceIds.xhtml.id,v=Symbol(),A=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"]),T=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",W=>W==="none"?"none":"normal"],["xfa-font-horizontal-scale",W=>`scaleX(${Math.max(0,Math.min(parseInt(W)/100)).toFixed(2)})`],["xfa-font-vertical-scale",W=>`scaleY(${Math.max(0,Math.min(parseInt(W)/100)).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(W,w)=>(W=w.fontSize=(0,t.getMeasurement)(W),(0,L.measureToString)(.99*W))],["letter-spacing",W=>(0,L.measureToString)((0,t.getMeasurement)(W))],["line-height",W=>(0,L.measureToString)((0,t.getMeasurement)(W))],["margin",W=>(0,L.measureToString)((0,t.getMeasurement)(W))],["margin-bottom",W=>(0,L.measureToString)((0,t.getMeasurement)(W))],["margin-left",W=>(0,L.measureToString)((0,t.getMeasurement)(W))],["margin-right",W=>(0,L.measureToString)((0,t.getMeasurement)(W))],["margin-top",W=>(0,L.measureToString)((0,t.getMeasurement)(W))],["text-indent",W=>(0,L.measureToString)((0,t.getMeasurement)(W))],["font-family",W=>W],["vertical-align",W=>(0,L.measureToString)((0,t.getMeasurement)(W))]]),d=/\s+/g,i=/[\r\n]+/g,C=/\r\n?/g;function p(W,w,s){const c=Object.create(null);if(!W)return c;const S=Object.create(null);for(const[h,m]of W.split(";").map(k=>k.split(":",2))){const k=T.get(h);if(k==="")continue;let I=m;k&&(I=typeof k=="string"?k:k(m,S)),h.endsWith("scale")?c.transform=c.transform?`${c[h]} ${I}`:I:c[h.replaceAll(/-([a-zA-Z])/g,(B,tt)=>tt.toUpperCase())]=I}if(c.fontFamily&&(0,L.setFontFamily)({typeface:c.fontFamily,weight:c.fontWeight||"normal",posture:c.fontStyle||"normal",size:S.fontSize||0},w,w[n.$globalData].fontFinder,c),s&&c.verticalAlign&&c.verticalAlign!=="0px"&&c.fontSize){const k=(0,t.getMeasurement)(c.fontSize);c.fontSize=(0,L.measureToString)(k*.583),c.verticalAlign=(0,L.measureToString)(Math.sign((0,t.getMeasurement)(c.verticalAlign))*k*.333)}return s&&c.fontSize&&(c.fontSize=`calc(${c.fontSize} * var(--scale-factor))`),(0,L.fixTextIndent)(c),c}const b=new Set(["body","html"]);class F extends e.XmlObject{constructor(w,s){super(a,s),this[v]=!1,this.style=w.style||""}[n.$clean](w){super[n.$clean](w),this.style=function(c){return c.style?c.style.trim().split(/\s*;\s*/).filter(S=>!!S).map(S=>S.split(/\s*:\s*/,2)).filter(([S,h])=>(S==="font-family"&&c[n.$globalData].usedTypefaces.add(h),A.has(S))).map(S=>S.join(":")).join(";"):""}(this)}[n.$acceptWhitespace](){return!b.has(this[n.$nodeName])}[n.$onText](w,s=!1){s?this[v]=!0:(w=w.replaceAll(i,""),this.style.includes("xfa-spacerun:yes")||(w=w.replaceAll(d," "))),w&&(this[n.$content]+=w)}[n.$pushGlyphs](w,s=!0){const c=Object.create(null),S={top:NaN,bottom:NaN,left:NaN,right:NaN};let h=null;for(const[m,k]of this.style.split(";").map(I=>I.split(":",2)))switch(m){case"font-family":c.typeface=(0,t.stripQuotes)(k);break;case"font-size":c.size=(0,t.getMeasurement)(k);break;case"font-weight":c.weight=k;break;case"font-style":c.posture=k;break;case"letter-spacing":c.letterSpacing=(0,t.getMeasurement)(k);break;case"margin":const I=k.split(/ \t/).map(B=>(0,t.getMeasurement)(B));switch(I.length){case 1:S.top=S.bottom=S.left=S.right=I[0];break;case 2:S.top=S.bottom=I[0],S.left=S.right=I[1];break;case 3:S.top=I[0],S.bottom=I[2],S.left=S.right=I[1];break;case 4:S.top=I[0],S.left=I[1],S.bottom=I[2],S.right=I[3]}break;case"margin-top":S.top=(0,t.getMeasurement)(k);break;case"margin-bottom":S.bottom=(0,t.getMeasurement)(k);break;case"margin-left":S.left=(0,t.getMeasurement)(k);break;case"margin-right":S.right=(0,t.getMeasurement)(k);break;case"line-height":h=(0,t.getMeasurement)(k)}if(w.pushData(c,S,h),this[n.$content])w.addString(this[n.$content]);else for(const m of this[n.$getChildren]())m[n.$nodeName]!=="#text"?m[n.$pushGlyphs](w):w.addString(m[n.$content]);s&&w.popFont()}[n.$toHTML](w){const s=[];if(this[n.$extra]={children:s},this[n.$childrenToHTML]({}),s.length===0&&!this[n.$content])return t.HTMLResult.EMPTY;let c;return c=this[v]?this[n.$content]?this[n.$content].replaceAll(C,` `):void 0:this[n.$content]||void 0,t.HTMLResult.success({name:this[n.$nodeName],attributes:{href:this.href,style:p(this.style,this,this[v])},children:s,value:c})}}class u extends F{constructor(w){super(w,"a"),this.href=(0,L.fixURL)(w.href)||""}}class l extends F{constructor(w){super(w,"b")}[n.$pushGlyphs](w){w.pushFont({weight:"bold"}),super[n.$pushGlyphs](w),w.popFont()}}class y extends F{constructor(w){super(w,"body")}[n.$toHTML](w){const s=super[n.$toHTML](w),{html:c}=s;return c?(c.name="div",c.attributes.class=["xfaRich"],s):t.HTMLResult.EMPTY}}class N extends F{constructor(w){super(w,"br")}[n.$text](){return` `}[n.$pushGlyphs](w){w.addString(` `)}[n.$toHTML](w){return t.HTMLResult.success({name:"br"})}}class U extends F{constructor(w){super(w,"html")}[n.$toHTML](w){var c;const s=[];if(this[n.$extra]={children:s},this[n.$childrenToHTML]({}),s.length===0)return t.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[n.$content]||""});if(s.length===1){const S=s[0];if((c=S.attributes)!=null&&c.class.includes("xfaRich"))return t.HTMLResult.success(S)}return t.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:s})}}class $ extends F{constructor(w){super(w,"i")}[n.$pushGlyphs](w){w.pushFont({posture:"italic"}),super[n.$pushGlyphs](w),w.popFont()}}class P extends F{constructor(w){super(w,"li")}}class R extends F{constructor(w){super(w,"ol")}}class o extends F{constructor(w){super(w,"p")}[n.$pushGlyphs](w){super[n.$pushGlyphs](w,!1),w.addString(` `),w.addPara(),w.popFont()}[n.$text](){return this[n.$getParent]()[n.$getChildren]().at(-1)===this?super[n.$text]():super[n.$text]()+` `}}class g extends F{constructor(w){super(w,"span")}}class x extends F{constructor(w){super(w,"sub")}}class E extends F{constructor(w){super(w,"sup")}}class D extends F{constructor(w){super(w,"ul")}}class q{static[_.$buildXFAObject](w,s){if(q.hasOwnProperty(w))return q[w](s)}static a(w){return new u(w)}static b(w){return new l(w)}static body(w){return new y(w)}static br(w){return new N(w)}static html(w){return new U(w)}static i(w){return new $(w)}static li(w){return new P(w)}static ol(w){return new R(w)}static p(w){return new o(w)}static span(w){return new g(w)}static sub(w){return new x(w)}static sup(w){return new E(w)}static ul(w){return new D(w)}}M.XhtmlNamespace=q},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.UnknownNamespace=void 0;var n=Z(81),_=Z(87);class L{constructor(e){this.namespaceId=e}[n.$buildXFAObject](e,a){return new _.XmlObject(this.namespaceId,e,a)}}M.UnknownNamespace=L},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.DatasetReader=void 0;var n=Z(2),_=Z(3),L=Z(71);function t(a){try{return(0,n.stringToUTF8String)(a)}catch(v){return(0,n.warn)(`UTF-8 decoding failed: "${v}".`),a}}class e extends L.SimpleXMLParser{constructor(v){super(v),this.node=null}onEndElement(v){const A=super.onEndElement(v);if(A&&v==="xfa:datasets")throw this.node=A,new Error("Aborting DatasetXMLParser.")}}M.DatasetReader=class{constructor(v){if(v.datasets)this.node=new L.SimpleXMLParser({hasAttributes:!0}).parseFromString(v.datasets).documentElement;else{const A=new e({hasAttributes:!0});try{A.parseFromString(v["xdp:xdp"])}catch{}this.node=A.node}}getValue(v){if(!this.node||!v)return"";const A=this.node.searchNode((0,_.parseXFAPath)(v),0);if(!A)return"";const T=A.firstChild;return(T==null?void 0:T.nodeName)==="value"?A.children.map(d=>t(d.textContent)):t(A.textContent)}}},(vt,M,Z)=>{var v,A;Object.defineProperty(M,"__esModule",{value:!0}),M.XRef=void 0;var n=Z(2),_=Z(4),L=Z(16),t=Z(3),e=Z(5),a=Z(74);M.XRef=(A=class{constructor(d,i){_t(this,v,null);this.stream=d,this.pdfManager=i,this.entries=[],this._xrefStms=new Set,this._cacheMap=new Map,this._pendingRefs=new _.RefSet,this._newPersistentRefNum=null,this._newTemporaryRefNum=null}getNewPersistentRef(d){this._newPersistentRefNum===null&&(this._newPersistentRefNum=this.entries.length||1);const i=this._newPersistentRefNum++;return this._cacheMap.set(i,d),_.Ref.get(i,0)}getNewTemporaryRef(){return this._newTemporaryRefNum===null&&(this._newTemporaryRefNum=this.entries.length||1),_.Ref.get(this._newTemporaryRefNum++,0)}resetNewTemporaryRef(){this._newTemporaryRefNum=null}setStartXRef(d){this.startXRefQueue=[d]}parse(d=!1){let i,C,p;d?((0,n.warn)("Indexing all PDF objects"),i=this.indexObjects()):i=this.readXRef(),i.assignXref(this),this.trailer=i;try{C=i.get("Encrypt")}catch(b){if(b instanceof t.MissingDataException)throw b;(0,n.warn)(`XRef.parse - Invalid "Encrypt" reference: "${b}".`)}if(C instanceof _.Dict){const b=i.get("ID"),F=b!=null&&b.length?b[0]:"";C.suppressEncryption=!0,this.encrypt=new a.CipherTransformFactory(C,F,this.pdfManager.password)}try{p=i.get("Root")}catch(b){if(b instanceof t.MissingDataException)throw b;(0,n.warn)(`XRef.parse - Invalid "Root" reference: "${b}".`)}if(p instanceof _.Dict)try{if(p.get("Pages")instanceof _.Dict){this.root=p;return}}catch(b){if(b instanceof t.MissingDataException)throw b;(0,n.warn)(`XRef.parse - Invalid "Pages" reference: "${b}".`)}throw d?new n.InvalidPDFException("Invalid Root reference."):new t.XRefParseException}processXRefTable(d){"tableState"in this||(this.tableState={entryNum:0,streamPos:d.lexer.stream.pos,parserBuf1:d.buf1,parserBuf2:d.buf2});const i=this.readXRefTable(d);if(!(0,_.isCmd)(i,"trailer"))throw new n.FormatError("Invalid XRef table: could not find trailer dictionary");let C=d.getObj();if(C instanceof _.Dict||!C.dict||(C=C.dict),!(C instanceof _.Dict))throw new n.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,C}readXRefTable(d){const i=d.lexer.stream,C=this.tableState;i.pos=C.streamPos,d.buf1=C.parserBuf1,d.buf2=C.parserBuf2;let p;for(;;){if(!("firstEntryNum"in C)||!("entryCount"in C)){if((0,_.isCmd)(p=d.getObj(),"trailer"))break;C.firstEntryNum=p,C.entryCount=d.getObj()}let b=C.firstEntryNum;const F=C.entryCount;if(!Number.isInteger(b)||!Number.isInteger(F))throw new n.FormatError("Invalid XRef table: wrong types in subsection header");for(let u=C.entryNum;u0;){const[u,l]=F;if(!Number.isInteger(u)||!Number.isInteger(l))throw new n.FormatError(`Invalid XRef range fields: ${u}, ${l}`);if(!Number.isInteger(C)||!Number.isInteger(p)||!Number.isInteger(b))throw new n.FormatError(`Invalid XRef entry fields length: ${u}, ${l}`);for(let y=i.entryNum;y=q.length);)w+=String.fromCharCode(s),s=q[W];return w}function i(q,W,w){const s=w.length,c=q.length;let S=0;for(;W=s)break;W++,S++}return S}const C=/\b(endobj|\d+\s+\d+\s+obj|xref|trailer\s*<<)\b/g,p=/\b(startxref|\d+\s+\d+\s+obj)\b/g,b=/^(\d+)\s+(\d+)\s+obj\b/,F=new Uint8Array([116,114,97,105,108,101,114]),u=new Uint8Array([115,116,97,114,116,120,114,101,102]),l=new Uint8Array([47,88,82,101,102]);this.entries.length=0,this._cacheMap.clear();const y=this.stream;y.pos=0;const N=y.getBytes(),U=(0,n.bytesToString)(N),$=N.length;let P=y.start;const R=[],o=[];for(;P<$;){let q=N[P];if(q===9||q===10||q===13||q===32){++P;continue}if(q===37){do{if(++P,P>=$)break;q=N[P]}while(q!==10&&q!==13);continue}const W=d(N,P);let w;if(W.startsWith("xref")&&(W.length===4||/\s/.test(W[4])))P+=i(N,P,F),R.push(P),P+=i(N,P,u);else if(w=b.exec(W)){const s=0|w[1],c=0|w[2],S=P+W.length;let h,m=!1;if(this.entries[s]){if(this.entries[s].gen===c)try{new L.Parser({lexer:new L.Lexer(y.makeSubStream(S))}).getObj(),m=!0}catch(tt){tt instanceof t.ParserEOFException?(0,n.warn)(`indexObjects -- checking object (${W}): "${tt}".`):m=!0}}else m=!0;m&&(this.entries[s]={offset:P-y.start,gen:c,uncompressed:!0}),C.lastIndex=S;const k=C.exec(U);k?(h=C.lastIndex+1-P,k[1]!=="endobj"&&((0,n.warn)(`indexObjects: Found "${k[1]}" inside of another "obj", caused by missing "endobj" -- trying to recover.`),h-=k[1].length+1)):h=$-P;const I=N.subarray(P,P+h),B=i(I,0,l);B0?Math.max(...this._xrefStms):null)}getEntry(d){const i=this.entries[d];return i&&!i.free&&i.offset?i:null}fetchIfRef(d,i=!1){return d instanceof _.Ref?this.fetch(d,i):d}fetch(d,i=!1){if(!(d instanceof _.Ref))throw new Error("ref object is not a reference");const C=d.num,p=this._cacheMap.get(C);if(p!==void 0)return p instanceof _.Dict&&!p.objId&&(p.objId=d.toString()),p;let b=this.getEntry(C);if(b===null)return this._cacheMap.set(C,b),b;if(this._pendingRefs.has(d))return this._pendingRefs.remove(d),(0,n.warn)(`Ignoring circular reference: ${d}.`),_.CIRCULAR_REF;this._pendingRefs.put(d);try{b=b.uncompressed?this.fetchUncompressed(d,b,i):this.fetchCompressed(d,b,i),this._pendingRefs.remove(d)}catch(F){throw this._pendingRefs.remove(d),F}return b instanceof _.Dict?b.objId=d.toString():b instanceof e.BaseStream&&(b.dict.objId=d.toString()),b}fetchUncompressed(d,i,C=!1){const p=d.gen;let b=d.num;if(i.gen!==p){const U=`Inconsistent generation in XRef: ${d}`;if(this._generationFallback&&i.gen{var p,qr,F,zr,l,Nn,N;Object.defineProperty(M,"__esModule",{value:!0}),M.MessageHandler=void 0;var n=Z(2);const _=1,L=2,t=1,e=2,a=3,v=4,A=5,T=6,d=7,i=8;function C(U){switch(U instanceof Error||typeof U=="object"&&U!==null||(0,n.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),U.name){case"AbortException":return new n.AbortException(U.message);case"MissingPDFException":return new n.MissingPDFException(U.message);case"PasswordException":return new n.PasswordException(U.message,U.code);case"UnexpectedResponseException":return new n.UnexpectedResponseException(U.message,U.status);case"UnknownErrorException":return new n.UnknownErrorException(U.message,U.details);default:return new n.UnknownErrorException(U.message,U.toString())}}M.MessageHandler=(N=class{constructor($,P,R){_t(this,p);_t(this,F);_t(this,l);this.sourceName=$,this.targetName=P,this.comObj=R,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 g=o.data;if(g.targetName!==this.sourceName)return;if(g.stream){Lt(this,F,zr).call(this,g);return}if(g.callback){const E=g.callbackId,D=this.callbackCapabilities[E];if(!D)throw new Error(`Cannot resolve callback ${E}`);if(delete this.callbackCapabilities[E],g.callback===_)D.resolve(g.data);else{if(g.callback!==L)throw new Error("Unexpected callback case");D.reject(C(g.reason))}return}const x=this.actionHandler[g.action];if(!x)throw new Error(`Unknown action from worker: ${g.action}`);if(g.callbackId){const E=this.sourceName,D=g.sourceName;new Promise(function(q){q(x(g.data))}).then(function(q){R.postMessage({sourceName:E,targetName:D,callback:_,callbackId:g.callbackId,data:q})},function(q){R.postMessage({sourceName:E,targetName:D,callback:L,callbackId:g.callbackId,reason:C(q)})})}else g.streamId?Lt(this,p,qr).call(this,g):x(g.data)},R.addEventListener("message",this._onComObjOnMessage)}on($,P){const R=this.actionHandler;if(R[$])throw new Error(`There is already an actionName called "${$}"`);R[$]=P}send($,P,R){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:$,data:P},R)}sendWithPromise($,P,R){const o=this.callbackId++,g=new n.PromiseCapability;this.callbackCapabilities[o]=g;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:$,callbackId:o,data:P},R)}catch(x){g.reject(x)}return g.promise}sendWithStream($,P,R,o){const g=this.streamId++,x=this.sourceName,E=this.targetName,D=this.comObj;return new ReadableStream({start:q=>{const W=new n.PromiseCapability;return this.streamControllers[g]={controller:q,startCall:W,pullCall:null,cancelCall:null,isClosed:!1},D.postMessage({sourceName:x,targetName:E,action:$,streamId:g,data:P,desiredSize:q.desiredSize},o),W.promise},pull:q=>{const W=new n.PromiseCapability;return this.streamControllers[g].pullCall=W,D.postMessage({sourceName:x,targetName:E,stream:T,streamId:g,desiredSize:q.desiredSize}),W.promise},cancel:q=>{(0,n.assert)(q instanceof Error,"cancel must have a valid reason");const W=new n.PromiseCapability;return this.streamControllers[g].cancelCall=W,this.streamControllers[g].isClosed=!0,D.postMessage({sourceName:x,targetName:E,stream:t,streamId:g,reason:C(q)}),W.promise}},R)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}},p=new WeakSet,qr=function($){const P=$.streamId,R=this.sourceName,o=$.sourceName,g=this.comObj,x=this,E=this.actionHandler[$.action],D={enqueue(q,W=1,w){if(this.isCancelled)return;const s=this.desiredSize;this.desiredSize-=W,s>0&&this.desiredSize<=0&&(this.sinkCapability=new n.PromiseCapability,this.ready=this.sinkCapability.promise),g.postMessage({sourceName:R,targetName:o,stream:v,streamId:P,chunk:q},w)},close(){this.isCancelled||(this.isCancelled=!0,g.postMessage({sourceName:R,targetName:o,stream:a,streamId:P}),delete x.streamSinks[P])},error(q){(0,n.assert)(q instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,g.postMessage({sourceName:R,targetName:o,stream:A,streamId:P,reason:C(q)}))},sinkCapability:new n.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:$.desiredSize,ready:null};D.sinkCapability.resolve(),D.ready=D.sinkCapability.promise,this.streamSinks[P]=D,new Promise(function(q){q(E($.data,D))}).then(function(){g.postMessage({sourceName:R,targetName:o,stream:i,streamId:P,success:!0})},function(q){g.postMessage({sourceName:R,targetName:o,stream:i,streamId:P,reason:C(q)})})},F=new WeakSet,zr=function($){const P=$.streamId,R=this.sourceName,o=$.sourceName,g=this.comObj,x=this.streamControllers[P],E=this.streamSinks[P];switch($.stream){case i:$.success?x.startCall.resolve():x.startCall.reject(C($.reason));break;case d:$.success?x.pullCall.resolve():x.pullCall.reject(C($.reason));break;case T:if(!E){g.postMessage({sourceName:R,targetName:o,stream:d,streamId:P,success:!0});break}E.desiredSize<=0&&$.desiredSize>0&&E.sinkCapability.resolve(),E.desiredSize=$.desiredSize,new Promise(function(D){var q;D((q=E.onPull)==null?void 0:q.call(E))}).then(function(){g.postMessage({sourceName:R,targetName:o,stream:d,streamId:P,success:!0})},function(D){g.postMessage({sourceName:R,targetName:o,stream:d,streamId:P,reason:C(D)})});break;case v:if((0,n.assert)(x,"enqueue should have stream controller"),x.isClosed)break;x.controller.enqueue($.chunk);break;case a:if((0,n.assert)(x,"close should have stream controller"),x.isClosed)break;x.isClosed=!0,x.controller.close(),Lt(this,l,Nn).call(this,x,P);break;case A:(0,n.assert)(x,"error should have stream controller"),x.controller.error(C($.reason)),Lt(this,l,Nn).call(this,x,P);break;case e:$.success?x.cancelCall.resolve():x.cancelCall.reject(C($.reason)),Lt(this,l,Nn).call(this,x,P);break;case t:if(!E)break;new Promise(function(D){var q;D((q=E.onCancel)==null?void 0:q.call(E,C($.reason)))}).then(function(){g.postMessage({sourceName:R,targetName:o,stream:e,streamId:P,success:!0})},function(D){g.postMessage({sourceName:R,targetName:o,stream:e,streamId:P,reason:C(D)})}),E.sinkCapability.reject(C($.reason)),E.isCancelled=!0,delete this.streamSinks[P];break;default:throw new Error("Unexpected stream case")}},l=new WeakSet,Nn=async function($,P){var R,o,g;await Promise.allSettled([(R=$.startCall)==null?void 0:R.promise,(o=$.pullCall)==null?void 0:o.promise,(g=$.cancelCall)==null?void 0:g.promise]),delete this.streamControllers[P]},N)},(vt,M,Z)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.PDFWorkerStream=void 0;var n=Z(2);M.PDFWorkerStream=class{constructor(e){this._msgHandler=e,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 _(this._msgHandler),this._fullRequestReader}getRangeReader(e,a){const v=new L(e,a,this._msgHandler);return this._rangeRequestReaders.push(v),v}cancelAllRequests(e){var a;(a=this._fullRequestReader)==null||a.cancel(e);for(const v of this._rangeRequestReaders.slice(0))v.cancel(e)}};class _{constructor(e){this._msgHandler=e,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;const a=this._msgHandler.sendWithStream("GetReader");this._reader=a.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then(v=>{this._isStreamingSupported=v.isStreamingSupported,this._isRangeSupported=v.isRangeSupported,this._contentLength=v.contentLength})}get headersReady(){return this._headersReady}get contentLength(){return this._contentLength}get isStreamingSupported(){return this._isStreamingSupported}get isRangeSupported(){return this._isRangeSupported}async read(){const{value:e,done:a}=await this._reader.read();return a?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}class L{constructor(e,a,v){this._msgHandler=v,this.onProgress=null;const A=this._msgHandler.sendWithStream("GetRangeReader",{begin:e,end:a});this._reader=A.getReader()}get isStreamingSupported(){return!1}async read(){const{value:e,done:a}=await this._reader.read();return a?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}}],ft={};function At(vt){var M=ft[vt];if(M!==void 0)return M.exports;var Z=ft[vt]={exports:{}};return Mt[vt](Z,Z.exports,At),Z.exports}var $t={};return(()=>{var vt=$t;Object.defineProperty(vt,"__esModule",{value:!0}),Object.defineProperty(vt,"WorkerMessageHandler",{enumerable:!0,get:function(){return M.WorkerMessageHandler}});var M=At(1)})(),$t})())})(pdf_worker_min);var pdfJSWorkerURL=getDefaultExportFromCjs(pdf_worker_min.exports);pdfjs.GlobalWorkerOptions.workerSrc=pdfJSWorkerURL;var PdfViewer=function(Ot){var dt=Ot.classnames,Mt=Ot.className,ft=Ot.loading,At=Ot.width,$t=At===void 0?300:At,vt=__read(React.useState(Ot.file),2),M=vt[0],Z=vt[1],n=__read(React.useState(!1),2),_=n[0],L=n[1],t=__read(React.useState(1),2),e=t[0],a=t[1],v=__read(React.useState(1),2),A=v[0],T=v[1],d=__read(React.useState(1),2),i=d[0],C=d[1],p=React.useRef(null),b=React.useRef();React.useEffect(function(){Ot.file instanceof ArrayBuffer&&Ot.file.byteLength>0?Z(Ot.file):Z(void 0)},[Ot.file]);function F($){var P=$.numPages;L(!0),C(P)}function u($){var P=e+$;P<=0||P>i||a(P)}function l($){var P=+$.target.value;if(isNaN(P)||P<=0||P>i){b.current&&(b.current.value=e+"");return}a(P)}function y($){T(A*$)}function N(){return React.createElement("div",{className:dt("PdfViewer-Loading")},React.createElement(Spinner$1,null))}function U(){return React.createElement("div",{className:dt("PdfViewer-Tool")},React.createElement(Icon,{className:"icon",icon:"prev",onClick:function(){return u(-1)}}),React.createElement(Input,{className:"page-input",value:e,onBlur:l,ref:b}),React.createElement("span",{className:"gap"},"/"),React.createElement("span",null,i),React.createElement(Icon,{className:"icon",icon:"next",onClick:function(){return u(1)}}),React.createElement(Icon,{className:"icon",icon:"zoom-in",onClick:function(){return y(1.2)}}),React.createElement(Icon,{className:"icon",icon:"zoom-out",onClick:function(){return y(.8)}}))}return React.createElement("div",{className:dt(Mt,"PdfViewer"),ref:p},!M||ft?N():React.createElement(React.Fragment,null,React.createElement("div",{className:dt("PdfViewer-Content",{"is-loaded":_})},React.createElement(Document$1,{file:M,onLoadSuccess:F,loading:N()},React.createElement(Page$1,{className:dt("PdfViewer-Content-Page"),pageNumber:e,width:$t,height:Ot.height,loading:N(),noData:React.createElement("div",null,"No PDF data"),scale:A,renderTextLayer:!1,renderAnnotationLayer:!1}))),_?U():null))},PdfViewer$1=themeable(PdfViewer);export{PdfViewer$1 as default};