vue-office-pdf 0.0.1-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +844 -0
- package/dist/index.cjs.js +19 -0
- package/dist/index.css +1 -0
- package/dist/index.es.js +48780 -0
- package/dist/pdfjs/locale/zh-CN/viewer.properties +282 -0
- package/dist/types/components/pdf-viewer.vue.d.ts +58 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/types/index.d.ts +46 -0
- package/dist/types/utils/constants.d.ts +1 -0
- package/dist/types/utils/locale.d.ts +537 -0
- package/dist/types/utils/pdf-config.d.ts +121 -0
- package/dist/types/utils/toolbar-config.d.ts +3 -0
- package/package.json +69 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const vue=require("vue");var module$Z={exports:{}},exports$Z=module$Z.exports;Object.defineProperty(exports$Z,"__esModule",{value:!0});exports$Z.isValidRotation=isValidRotation;exports$Z.isValidScrollMode=isValidScrollMode;exports$Z.isValidSpreadMode=isValidSpreadMode;exports$Z.isPortraitOrientation=isPortraitOrientation;exports$Z.getGlobalEventBus=getGlobalEventBus;exports$Z.clamp=clamp;exports$Z.getPDFFileNameFromURL=getPDFFileNameFromURL;exports$Z.noContextMenuHandler=noContextMenuHandler;exports$Z.parseQueryString=parseQueryString;exports$Z.backtrackBeforeAllVisibleElements=backtrackBeforeAllVisibleElements;exports$Z.getVisibleElements=getVisibleElements;exports$Z.roundToDivide=roundToDivide;exports$Z.getPageSizeInches=getPageSizeInches;exports$Z.approximateFraction=approximateFraction;exports$Z.getOutputScale=getOutputScale;exports$Z.scrollIntoView=scrollIntoView;exports$Z.watchScroll=watchScroll;exports$Z.binarySearchFirstItem=binarySearchFirstItem;exports$Z.normalizeWheelEventDelta=normalizeWheelEventDelta;exports$Z.waitOnEventOrTimeout=waitOnEventOrTimeout;exports$Z.moveToEndOfArray=moveToEndOfArray;exports$Z.WaitOnType=exports$Z.animationStarted=exports$Z.ProgressBar=exports$Z.EventBus=exports$Z.NullL10n=exports$Z.SpreadMode=exports$Z.ScrollMode=exports$Z.TextLayerMode=exports$Z.RendererType=exports$Z.PresentationModeState=exports$Z.VERTICAL_PADDING=exports$Z.SCROLLBAR_PADDING=exports$Z.MAX_AUTO_SCALE=exports$Z.UNKNOWN_SCALE=exports$Z.MAX_SCALE=exports$Z.MIN_SCALE=exports$Z.DEFAULT_SCALE=exports$Z.DEFAULT_SCALE_VALUE=exports$Z.CSS_UNITS=exports$Z.AutoPrintRegExp=void 0;const CSS_UNITS=96/72;exports$Z.CSS_UNITS=CSS_UNITS;const DEFAULT_SCALE_VALUE="auto";exports$Z.DEFAULT_SCALE_VALUE=DEFAULT_SCALE_VALUE;const DEFAULT_SCALE=1;exports$Z.DEFAULT_SCALE=DEFAULT_SCALE;const MIN_SCALE=.1;exports$Z.MIN_SCALE=MIN_SCALE;const MAX_SCALE=10;exports$Z.MAX_SCALE=MAX_SCALE;const UNKNOWN_SCALE=0;exports$Z.UNKNOWN_SCALE=UNKNOWN_SCALE;const MAX_AUTO_SCALE=1.25;exports$Z.MAX_AUTO_SCALE=MAX_AUTO_SCALE;const SCROLLBAR_PADDING=40;exports$Z.SCROLLBAR_PADDING=SCROLLBAR_PADDING;const VERTICAL_PADDING=5;exports$Z.VERTICAL_PADDING=VERTICAL_PADDING;const PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};exports$Z.PresentationModeState=PresentationModeState;const RendererType={CANVAS:"canvas",SVG:"svg"};exports$Z.RendererType=RendererType;const TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};exports$Z.TextLayerMode=TextLayerMode;const ScrollMode={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2};exports$Z.ScrollMode=ScrollMode;const SpreadMode={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};exports$Z.SpreadMode=SpreadMode;const AutoPrintRegExp=/\bprint\s*\(/;exports$Z.AutoPrintRegExp=AutoPrintRegExp;function formatL10nValue(x,t){return t?x.replace(/\{\{\s*(\w+)\s*\}\}/g,(a,r)=>r in t?t[r]:"{{"+r+"}}"):x}const NullL10n={async getLanguage(){return"en-us"},async getDirection(){return"ltr"},async get(x,t,a){return formatL10nValue(a,t)},async translate(x){}};exports$Z.NullL10n=NullL10n;function getOutputScale(x){const t=window.devicePixelRatio||1,a=x.webkitBackingStorePixelRatio||x.mozBackingStorePixelRatio||x.msBackingStorePixelRatio||x.oBackingStorePixelRatio||x.backingStorePixelRatio||1,r=t/a;return{sx:r,sy:r,scaled:r!==1}}function scrollIntoView(x,t,a=!1){let r=x.offsetParent;if(!r){console.error("offsetParent is not set -- cannot scroll");return}let i=x.offsetTop+x.clientTop,p=x.offsetLeft+x.clientLeft;for(;r.clientHeight===r.scrollHeight&&r.clientWidth===r.scrollWidth||a&&getComputedStyle(r).overflow==="hidden";)if(r.dataset._scaleY&&(i/=r.dataset._scaleY,p/=r.dataset._scaleX),i+=r.offsetTop,p+=r.offsetLeft,r=r.offsetParent,!r)return;t&&(t.top!==void 0&&(i+=t.top),t.left!==void 0&&(p+=t.left,r.scrollLeft=p)),r.scrollTop=i}function watchScroll(x,t){const a=function(p){i||(i=window.requestAnimationFrame(function(){i=null;const N=x.scrollLeft,w=r.lastX;N!==w&&(r.right=N>w),r.lastX=N;const $=x.scrollTop,U=r.lastY;$!==U&&(r.down=$>U),r.lastY=$,t(r)}))},r={right:!0,down:!0,lastX:x.scrollLeft,lastY:x.scrollTop,_eventHandler:a};let i=null;return x.addEventListener("scroll",a,!0),r}function parseQueryString(x){const t=x.split("&"),a=Object.create(null);for(let r=0,i=t.length;r<i;++r){const p=t[r].split("="),e=p[0].toLowerCase(),N=p.length>1?p[1]:null;a[decodeURIComponent(e)]=decodeURIComponent(N)}return a}function binarySearchFirstItem(x,t){let a=0,r=x.length-1;if(x.length===0||!t(x[r]))return x.length;if(t(x[a]))return a;for(;a<r;){const i=a+r>>1,p=x[i];t(p)?r=i:a=i+1}return a}function approximateFraction(x){if(Math.floor(x)===x)return[x,1];const t=1/x,a=8;if(t>a)return[1,a];if(Math.floor(t)===t)return[1,t];const r=x>1?t:x;let i=0,p=1,e=1,N=1;for(;;){const $=i+e,U=p+N;if(U>a)break;r<=$/U?(e=$,N=U):(i=$,p=U)}let w;return r-i/p<e/N-r?w=r===x?[i,p]:[p,i]:w=r===x?[e,N]:[N,e],w}function roundToDivide(x,t){const a=x%t;return a===0?x:Math.round(x-a+t)}function getPageSizeInches({view:x,userUnit:t,rotate:a}){const[r,i,p,e]=x,N=a%180!==0,w=(p-r)/72*t,$=(e-i)/72*t;return{width:N?$:w,height:N?w:$}}function backtrackBeforeAllVisibleElements(x,t,a){if(x<2)return x;let r=t[x].div,i=r.offsetTop+r.clientTop;i>=a&&(r=t[x-1].div,i=r.offsetTop+r.clientTop);for(let p=x-2;p>=0&&(r=t[p].div,!(r.offsetTop+r.clientTop+r.clientHeight<=i));--p)x=p;return x}function getVisibleElements(x,t,a=!1,r=!1){const i=x.scrollTop,p=i+x.clientHeight,e=x.scrollLeft,N=e+x.clientWidth;function w(M){const P=M.div;return P.offsetTop+P.clientTop+P.clientHeight>i}function $(M){const P=M.div;return P.offsetLeft+P.clientLeft+P.clientWidth>e}const U=[],m=t.length;let n=m===0?0:binarySearchFirstItem(t,r?$:w);n>0&&n<m&&!r&&(n=backtrackBeforeAllVisibleElements(n,t,i));let J=r?N:-1;for(let M=n;M<m;M++){const P=t[M],b=P.div,_=b.offsetLeft+b.clientLeft,d=b.offsetTop+b.clientTop,c=b.clientWidth,h=b.clientHeight,f=_+c,g=d+h;if(J===-1)g>=p&&(J=g);else if((r?_:d)>J)break;if(g<=i||d>=p||f<=e||_>=N)continue;const v=Math.max(0,i-d)+Math.max(0,g-p),s=Math.max(0,e-_)+Math.max(0,f-N),o=(h-v)*(c-s)*100/h/c|0;U.push({id:P.id,x:_,y:d,view:P,percent:o})}const O=U[0],L=U[U.length-1];return a&&U.sort(function(M,P){const b=M.percent-P.percent;return Math.abs(b)>.001?-b:M.id-P.id}),{first:O,last:L,views:U}}function noContextMenuHandler(x){x.preventDefault()}function isDataSchema(x){let t=0;const a=x.length;for(;t<a&&x[t].trim()==="";)t++;return x.substring(t,t+5).toLowerCase()==="data:"}function getPDFFileNameFromURL(x,t="document.pdf"){if(typeof x!="string")return t;if(isDataSchema(x))return console.warn('getPDFFileNameFromURL: ignoring "data:" URL for performance reasons.'),t;const a=/^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,r=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i,i=a.exec(x);let p=r.exec(i[1])||r.exec(i[2])||r.exec(i[3]);if(p&&(p=p[0],p.includes("%")))try{p=r.exec(decodeURIComponent(p))[0]}catch{}return p||t}function normalizeWheelEventDelta(x){let t=Math.sqrt(x.deltaX*x.deltaX+x.deltaY*x.deltaY);const a=Math.atan2(x.deltaY,x.deltaX);-.25*Math.PI<a&&a<.75*Math.PI&&(t=-t);const r=0,i=1,p=30,e=30;return x.deltaMode===r?t/=p*e:x.deltaMode===i&&(t/=e),t}function isValidRotation(x){return Number.isInteger(x)&&x%90===0}function isValidScrollMode(x){return Number.isInteger(x)&&Object.values(ScrollMode).includes(x)&&x!==ScrollMode.UNKNOWN}function isValidSpreadMode(x){return Number.isInteger(x)&&Object.values(SpreadMode).includes(x)&&x!==SpreadMode.UNKNOWN}function isPortraitOrientation(x){return x.width<=x.height}const WaitOnType={EVENT:"event",TIMEOUT:"timeout"};exports$Z.WaitOnType=WaitOnType;function waitOnEventOrTimeout({target:x,name:t,delay:a=0}){return new Promise(function(r,i){if(typeof x!="object"||!(t&&typeof t=="string")||!(Number.isInteger(a)&&a>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function p($){x instanceof EventBus?x._off(t,e):x.removeEventListener(t,e),w&&clearTimeout(w),r($)}const e=p.bind(null,WaitOnType.EVENT);x instanceof EventBus?x._on(t,e):x.addEventListener(t,e);const N=p.bind(null,WaitOnType.TIMEOUT),w=setTimeout(N,a)})}const animationStarted=new Promise(function(x){window.requestAnimationFrame(x)});exports$Z.animationStarted=animationStarted;function dispatchDOMEvent(x,t=null){const a=Object.create(null);if(t&&t.length>0){const i=t[0];for(const p in i){const e=i[p];if(p==="source"){if(e===window||e===document)return;continue}a[p]=e}}const r=document.createEvent("CustomEvent");r.initCustomEvent(x,!0,!0,a),document.dispatchEvent(r)}class EventBus{constructor({dispatchToDOM:t=!1}={}){this._listeners=Object.create(null),this._dispatchToDOM=t===!0,t&&console.error("The `eventBusDispatchToDOM` option/preference is deprecated, add event listeners to the EventBus instance rather than the DOM.")}on(t,a){this._on(t,a,{external:!0})}off(t,a){this._off(t,a,{external:!0})}dispatch(t){const a=this._listeners[t];if(!a||a.length===0){if(this._dispatchToDOM){const p=Array.prototype.slice.call(arguments,1);dispatchDOMEvent(t,p)}return}const r=Array.prototype.slice.call(arguments,1);let i;a.slice(0).forEach(function({listener:p,external:e}){if(e){i||(i=[]),i.push(p);return}p.apply(null,r)}),i&&(i.forEach(function(p){p.apply(null,r)}),i=null),this._dispatchToDOM&&dispatchDOMEvent(t,r)}_on(t,a,r=null){let i=this._listeners[t];i||(this._listeners[t]=i=[]),i.push({listener:a,external:(r&&r.external)===!0})}_off(t,a,r=null){const i=this._listeners[t];if(i){for(let p=0,e=i.length;p<e;p++)if(i[p].listener===a){i.splice(p,1);return}}}}exports$Z.EventBus=EventBus;let globalEventBus=null;function getGlobalEventBus(x=!1){return console.error("getGlobalEventBus is deprecated, use a manually created EventBus instance instead."),globalEventBus||(globalEventBus=new EventBus({dispatchToDOM:x})),globalEventBus}function clamp(x,t,a){return Math.min(Math.max(x,t),a)}class ProgressBar{constructor(t,{height:a,width:r,units:i}={}){this.visible=!0,this.div=document.querySelector(t+" .progress"),this.bar=this.div.parentNode,this.height=a||100,this.width=r||100,this.units=i||"%",this.div.style.height=this.height+this.units,this.percent=0}_updateBar(){if(this._indeterminate){this.div.classList.add("indeterminate"),this.div.style.width=this.width+this.units;return}this.div.classList.remove("indeterminate");const t=this.width*this._percent/100;this.div.style.width=t+this.units}get percent(){return this._percent}set percent(t){this._indeterminate=isNaN(t),this._percent=clamp(t,0,100),this._updateBar()}setWidth(t){if(!t)return;const r=t.parentNode.offsetWidth-t.offsetWidth;r>0&&(this.bar.style.width=`calc(100% - ${r}px)`)}hide(){this.visible&&(this.visible=!1,this.bar.classList.add("hidden"),document.body.classList.remove("loadingInProgress"))}show(){this.visible||(this.visible=!0,document.body.classList.add("loadingInProgress"),this.bar.classList.remove("hidden"))}}exports$Z.ProgressBar=ProgressBar;function moveToEndOfArray(x,t){const a=[],r=x.length;let i=0;for(let p=0;p<r;++p)t(x[p])?a.push(x[p]):(x[i]=x[p],++i);for(let p=0;i<r;++p,++i)x[i]=a[p]}const __CJS__export_default__$V=(module$Z.exports==null?{}:module$Z.exports).default||module$Z.exports,__CJS__export_isValidRotation__=(module$Z.exports==null?{}:module$Z.exports).isValidRotation,__CJS__export_isValidScrollMode__=(module$Z.exports==null?{}:module$Z.exports).isValidScrollMode,__CJS__export_isValidSpreadMode__=(module$Z.exports==null?{}:module$Z.exports).isValidSpreadMode,__CJS__export_isPortraitOrientation__=(module$Z.exports==null?{}:module$Z.exports).isPortraitOrientation,__CJS__export_getGlobalEventBus__=(module$Z.exports==null?{}:module$Z.exports).getGlobalEventBus,__CJS__export_clamp__=(module$Z.exports==null?{}:module$Z.exports).clamp,__CJS__export_getPDFFileNameFromURL__=(module$Z.exports==null?{}:module$Z.exports).getPDFFileNameFromURL,__CJS__export_noContextMenuHandler__=(module$Z.exports==null?{}:module$Z.exports).noContextMenuHandler,__CJS__export_parseQueryString__=(module$Z.exports==null?{}:module$Z.exports).parseQueryString,__CJS__export_backtrackBeforeAllVisibleElements__=(module$Z.exports==null?{}:module$Z.exports).backtrackBeforeAllVisibleElements,__CJS__export_getVisibleElements__=(module$Z.exports==null?{}:module$Z.exports).getVisibleElements,__CJS__export_roundToDivide__=(module$Z.exports==null?{}:module$Z.exports).roundToDivide,__CJS__export_getPageSizeInches__=(module$Z.exports==null?{}:module$Z.exports).getPageSizeInches,__CJS__export_approximateFraction__=(module$Z.exports==null?{}:module$Z.exports).approximateFraction,__CJS__export_getOutputScale__=(module$Z.exports==null?{}:module$Z.exports).getOutputScale,__CJS__export_scrollIntoView__=(module$Z.exports==null?{}:module$Z.exports).scrollIntoView,__CJS__export_watchScroll__=(module$Z.exports==null?{}:module$Z.exports).watchScroll,__CJS__export_binarySearchFirstItem__=(module$Z.exports==null?{}:module$Z.exports).binarySearchFirstItem,__CJS__export_normalizeWheelEventDelta__=(module$Z.exports==null?{}:module$Z.exports).normalizeWheelEventDelta,__CJS__export_waitOnEventOrTimeout__=(module$Z.exports==null?{}:module$Z.exports).waitOnEventOrTimeout,__CJS__export_moveToEndOfArray__=(module$Z.exports==null?{}:module$Z.exports).moveToEndOfArray,__CJS__export_AutoPrintRegExp__=(module$Z.exports==null?{}:module$Z.exports).AutoPrintRegExp,__CJS__export_CSS_UNITS__=(module$Z.exports==null?{}:module$Z.exports).CSS_UNITS,__CJS__export_DEFAULT_SCALE_VALUE__=(module$Z.exports==null?{}:module$Z.exports).DEFAULT_SCALE_VALUE,__CJS__export_DEFAULT_SCALE__=(module$Z.exports==null?{}:module$Z.exports).DEFAULT_SCALE,__CJS__export_MIN_SCALE__=(module$Z.exports==null?{}:module$Z.exports).MIN_SCALE,__CJS__export_MAX_SCALE__=(module$Z.exports==null?{}:module$Z.exports).MAX_SCALE,__CJS__export_UNKNOWN_SCALE__=(module$Z.exports==null?{}:module$Z.exports).UNKNOWN_SCALE,__CJS__export_MAX_AUTO_SCALE__=(module$Z.exports==null?{}:module$Z.exports).MAX_AUTO_SCALE,__CJS__export_SCROLLBAR_PADDING__=(module$Z.exports==null?{}:module$Z.exports).SCROLLBAR_PADDING,__CJS__export_VERTICAL_PADDING__=(module$Z.exports==null?{}:module$Z.exports).VERTICAL_PADDING,__CJS__export_PresentationModeState__=(module$Z.exports==null?{}:module$Z.exports).PresentationModeState,__CJS__export_RendererType__=(module$Z.exports==null?{}:module$Z.exports).RendererType,__CJS__export_TextLayerMode__=(module$Z.exports==null?{}:module$Z.exports).TextLayerMode,__CJS__export_ScrollMode__=(module$Z.exports==null?{}:module$Z.exports).ScrollMode,__CJS__export_SpreadMode__=(module$Z.exports==null?{}:module$Z.exports).SpreadMode,__CJS__export_NullL10n__=(module$Z.exports==null?{}:module$Z.exports).NullL10n,__CJS__export_EventBus__=(module$Z.exports==null?{}:module$Z.exports).EventBus,__CJS__export_ProgressBar__=(module$Z.exports==null?{}:module$Z.exports).ProgressBar,__CJS__export_animationStarted__=(module$Z.exports==null?{}:module$Z.exports).animationStarted,__CJS__export_WaitOnType__=(module$Z.exports==null?{}:module$Z.exports).WaitOnType,__CJS__import__0__$5=Object.freeze(Object.defineProperty({__proto__:null,AutoPrintRegExp:__CJS__export_AutoPrintRegExp__,CSS_UNITS:__CJS__export_CSS_UNITS__,DEFAULT_SCALE:__CJS__export_DEFAULT_SCALE__,DEFAULT_SCALE_VALUE:__CJS__export_DEFAULT_SCALE_VALUE__,EventBus:__CJS__export_EventBus__,MAX_AUTO_SCALE:__CJS__export_MAX_AUTO_SCALE__,MAX_SCALE:__CJS__export_MAX_SCALE__,MIN_SCALE:__CJS__export_MIN_SCALE__,NullL10n:__CJS__export_NullL10n__,PresentationModeState:__CJS__export_PresentationModeState__,ProgressBar:__CJS__export_ProgressBar__,RendererType:__CJS__export_RendererType__,SCROLLBAR_PADDING:__CJS__export_SCROLLBAR_PADDING__,ScrollMode:__CJS__export_ScrollMode__,SpreadMode:__CJS__export_SpreadMode__,TextLayerMode:__CJS__export_TextLayerMode__,UNKNOWN_SCALE:__CJS__export_UNKNOWN_SCALE__,VERTICAL_PADDING:__CJS__export_VERTICAL_PADDING__,WaitOnType:__CJS__export_WaitOnType__,animationStarted:__CJS__export_animationStarted__,approximateFraction:__CJS__export_approximateFraction__,backtrackBeforeAllVisibleElements:__CJS__export_backtrackBeforeAllVisibleElements__,binarySearchFirstItem:__CJS__export_binarySearchFirstItem__,clamp:__CJS__export_clamp__,default:__CJS__export_default__$V,getGlobalEventBus:__CJS__export_getGlobalEventBus__,getOutputScale:__CJS__export_getOutputScale__,getPDFFileNameFromURL:__CJS__export_getPDFFileNameFromURL__,getPageSizeInches:__CJS__export_getPageSizeInches__,getVisibleElements:__CJS__export_getVisibleElements__,isPortraitOrientation:__CJS__export_isPortraitOrientation__,isValidRotation:__CJS__export_isValidRotation__,isValidScrollMode:__CJS__export_isValidScrollMode__,isValidSpreadMode:__CJS__export_isValidSpreadMode__,moveToEndOfArray:__CJS__export_moveToEndOfArray__,noContextMenuHandler:__CJS__export_noContextMenuHandler__,normalizeWheelEventDelta:__CJS__export_normalizeWheelEventDelta__,parseQueryString:__CJS__export_parseQueryString__,roundToDivide:__CJS__export_roundToDivide__,scrollIntoView:__CJS__export_scrollIntoView__,waitOnEventOrTimeout:__CJS__export_waitOnEventOrTimeout__,watchScroll:__CJS__export_watchScroll__},Symbol.toStringTag,{value:"Module"}));var module$Y={exports:{}},exports$Y=module$Y.exports;Object.defineProperty(exports$Y,"__esModule",{value:!0});exports$Y.arrayByteLength=arrayByteLength;exports$Y.arraysToBytes=arraysToBytes;exports$Y.assert=assert;exports$Y.bytesToString=bytesToString;exports$Y.createPromiseCapability=createPromiseCapability;exports$Y.getVerbosityLevel=getVerbosityLevel;exports$Y.info=info;exports$Y.isArrayBuffer=isArrayBuffer;exports$Y.isArrayEqual=isArrayEqual;exports$Y.isBool=isBool;exports$Y.isEmptyObj=isEmptyObj;exports$Y.isNum=isNum;exports$Y.isString=isString;exports$Y.isSameOrigin=isSameOrigin;exports$Y.createValidAbsoluteUrl=createValidAbsoluteUrl;exports$Y.removeNullCharacters=removeNullCharacters;exports$Y.setVerbosityLevel=setVerbosityLevel;exports$Y.shadow=shadow;exports$Y.string32=string32;exports$Y.stringToBytes=stringToBytes;exports$Y.stringToPDFString=stringToPDFString;exports$Y.stringToUTF8String=stringToUTF8String;exports$Y.utf8StringToString=utf8StringToString;exports$Y.warn=warn;exports$Y.unreachable=unreachable;exports$Y.IsEvalSupportedCached=exports$Y.IsLittleEndianCached=exports$Y.createObjectURL=exports$Y.FormatError=exports$Y.Util=exports$Y.UnknownErrorException=exports$Y.UnexpectedResponseException=exports$Y.TextRenderingMode=exports$Y.StreamType=exports$Y.PermissionFlag=exports$Y.PasswordResponses=exports$Y.PasswordException=exports$Y.NativeImageDecoding=exports$Y.MissingPDFException=exports$Y.InvalidPDFException=exports$Y.AbortException=exports$Y.CMapCompressionType=exports$Y.ImageKind=exports$Y.FontType=exports$Y.AnnotationType=exports$Y.AnnotationStateModelType=exports$Y.AnnotationReviewState=exports$Y.AnnotationReplyType=exports$Y.AnnotationMarkedState=exports$Y.AnnotationFlag=exports$Y.AnnotationFieldFlag=exports$Y.AnnotationBorderStyleType=exports$Y.UNSUPPORTED_FEATURES=exports$Y.VerbosityLevel=exports$Y.OPS=exports$Y.IDENTITY_MATRIX=exports$Y.FONT_IDENTITY_MATRIX=exports$Y.BaseException=void 0;const IDENTITY_MATRIX=[1,0,0,1,0,0];exports$Y.IDENTITY_MATRIX=IDENTITY_MATRIX;const FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];exports$Y.FONT_IDENTITY_MATRIX=FONT_IDENTITY_MATRIX;const NativeImageDecoding={NONE:"none",DECODE:"decode",DISPLAY:"display"};exports$Y.NativeImageDecoding=NativeImageDecoding;const PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};exports$Y.PermissionFlag=PermissionFlag;const TextRenderingMode={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};exports$Y.TextRenderingMode=TextRenderingMode;const ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};exports$Y.ImageKind=ImageKind;const AnnotationType={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};exports$Y.AnnotationType=AnnotationType;const AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"};exports$Y.AnnotationStateModelType=AnnotationStateModelType;const AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"};exports$Y.AnnotationMarkedState=AnnotationMarkedState;const AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};exports$Y.AnnotationReviewState=AnnotationReviewState;const AnnotationReplyType={GROUP:"Group",REPLY:"R"};exports$Y.AnnotationReplyType=AnnotationReplyType;const AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};exports$Y.AnnotationFlag=AnnotationFlag;const AnnotationFieldFlag={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};exports$Y.AnnotationFieldFlag=AnnotationFieldFlag;const AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};exports$Y.AnnotationBorderStyleType=AnnotationBorderStyleType;const StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};exports$Y.StreamType=StreamType;const FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};exports$Y.FontType=FontType;const VerbosityLevel={ERRORS:0,WARNINGS:1,INFOS:5};exports$Y.VerbosityLevel=VerbosityLevel;const CMapCompressionType={NONE:0,BINARY:1,STREAM:2};exports$Y.CMapCompressionType=CMapCompressionType;const OPS={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,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};exports$Y.OPS=OPS;const UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"};exports$Y.UNSUPPORTED_FEATURES=UNSUPPORTED_FEATURES;const PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};exports$Y.PasswordResponses=PasswordResponses;let verbosity=VerbosityLevel.WARNINGS;function setVerbosityLevel(x){Number.isInteger(x)&&(verbosity=x)}function getVerbosityLevel(){return verbosity}function info(x){verbosity>=VerbosityLevel.INFOS&&console.log(`Info: ${x}`)}function warn(x){verbosity>=VerbosityLevel.WARNINGS&&console.log(`Warning: ${x}`)}function unreachable(x){throw new Error(x)}function assert(x,t){x||unreachable(t)}function isSameOrigin(x,t){let a;try{if(a=new URL(x),!a.origin||a.origin==="null")return!1}catch{return!1}const r=new URL(t,a);return a.origin===r.origin}function _isValidProtocol(x){if(!x)return!1;switch(x.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function createValidAbsoluteUrl(x,t){if(!x)return null;try{const a=t?new URL(x,t):new URL(x);if(_isValidProtocol(a))return a}catch{}return null}function shadow(x,t,a){return Object.defineProperty(x,t,{value:a,enumerable:!0,configurable:!0,writable:!1}),a}const BaseException=function(){function t(a){this.constructor===t&&unreachable("Cannot initialize BaseException."),this.message=a,this.name=this.constructor.name}return t.prototype=new Error,t.constructor=t,t}();exports$Y.BaseException=BaseException;class PasswordException extends BaseException{constructor(t,a){super(t),this.code=a}}exports$Y.PasswordException=PasswordException;class UnknownErrorException extends BaseException{constructor(t,a){super(t),this.details=a}}exports$Y.UnknownErrorException=UnknownErrorException;class InvalidPDFException extends BaseException{}exports$Y.InvalidPDFException=InvalidPDFException;class MissingPDFException extends BaseException{}exports$Y.MissingPDFException=MissingPDFException;class UnexpectedResponseException extends BaseException{constructor(t,a){super(t),this.status=a}}exports$Y.UnexpectedResponseException=UnexpectedResponseException;class FormatError extends BaseException{}exports$Y.FormatError=FormatError;class AbortException extends BaseException{}exports$Y.AbortException=AbortException;const NullCharactersRegExp=/\x00/g;function removeNullCharacters(x){return typeof x!="string"?(warn("The argument for removeNullCharacters must be a string."),x):x.replace(NullCharactersRegExp,"")}function bytesToString(x){assert(x!==null&&typeof x=="object"&&x.length!==void 0,"Invalid argument for bytesToString");const t=x.length,a=8192;if(t<a)return String.fromCharCode.apply(null,x);const r=[];for(let i=0;i<t;i+=a){const p=Math.min(i+a,t),e=x.subarray(i,p);r.push(String.fromCharCode.apply(null,e))}return r.join("")}function stringToBytes(x){assert(typeof x=="string","Invalid argument for stringToBytes");const t=x.length,a=new Uint8Array(t);for(let r=0;r<t;++r)a[r]=x.charCodeAt(r)&255;return a}function arrayByteLength(x){return x.length!==void 0?x.length:(assert(x.byteLength!==void 0),x.byteLength)}function arraysToBytes(x){const t=x.length;if(t===1&&x[0]instanceof Uint8Array)return x[0];let a=0;for(let p=0;p<t;p++)a+=arrayByteLength(x[p]);let r=0;const i=new Uint8Array(a);for(let p=0;p<t;p++){let e=x[p];e instanceof Uint8Array||(typeof e=="string"?e=stringToBytes(e):e=new Uint8Array(e));const N=e.byteLength;i.set(e,r),r+=N}return i}function string32(x){return String.fromCharCode(x>>24&255,x>>16&255,x>>8&255,x&255)}function isLittleEndian(){const x=new Uint8Array(4);return x[0]=1,new Uint32Array(x.buffer,0,1)[0]===1}const IsLittleEndianCached={get value(){return shadow(this,"value",isLittleEndian())}};exports$Y.IsLittleEndianCached=IsLittleEndianCached;function isEvalSupported(){try{return new Function(""),!0}catch{return!1}}const IsEvalSupportedCached={get value(){return shadow(this,"value",isEvalSupported())}};exports$Y.IsEvalSupportedCached=IsEvalSupportedCached;const rgbBuf=["rgb(",0,",",0,",",0,")"];class Util{static makeCssRgb(t,a,r){return rgbBuf[1]=t,rgbBuf[3]=a,rgbBuf[5]=r,rgbBuf.join("")}static transform(t,a){return[t[0]*a[0]+t[2]*a[1],t[1]*a[0]+t[3]*a[1],t[0]*a[2]+t[2]*a[3],t[1]*a[2]+t[3]*a[3],t[0]*a[4]+t[2]*a[5]+t[4],t[1]*a[4]+t[3]*a[5]+t[5]]}static applyTransform(t,a){const r=t[0]*a[0]+t[1]*a[2]+a[4],i=t[0]*a[1]+t[1]*a[3]+a[5];return[r,i]}static applyInverseTransform(t,a){const r=a[0]*a[3]-a[1]*a[2],i=(t[0]*a[3]-t[1]*a[2]+a[2]*a[5]-a[4]*a[3])/r,p=(-t[0]*a[1]+t[1]*a[0]+a[4]*a[1]-a[5]*a[0])/r;return[i,p]}static getAxialAlignedBoundingBox(t,a){const r=Util.applyTransform(t,a),i=Util.applyTransform(t.slice(2,4),a),p=Util.applyTransform([t[0],t[3]],a),e=Util.applyTransform([t[2],t[1]],a);return[Math.min(r[0],i[0],p[0],e[0]),Math.min(r[1],i[1],p[1],e[1]),Math.max(r[0],i[0],p[0],e[0]),Math.max(r[1],i[1],p[1],e[1])]}static inverseTransform(t){const a=t[0]*t[3]-t[1]*t[2];return[t[3]/a,-t[1]/a,-t[2]/a,t[0]/a,(t[2]*t[5]-t[4]*t[3])/a,(t[4]*t[1]-t[5]*t[0])/a]}static apply3dTransform(t,a){return[t[0]*a[0]+t[1]*a[1]+t[2]*a[2],t[3]*a[0]+t[4]*a[1]+t[5]*a[2],t[6]*a[0]+t[7]*a[1]+t[8]*a[2]]}static singularValueDecompose2dScale(t){const a=[t[0],t[2],t[1],t[3]],r=t[0]*a[0]+t[1]*a[2],i=t[0]*a[1]+t[1]*a[3],p=t[2]*a[0]+t[3]*a[2],e=t[2]*a[1]+t[3]*a[3],N=(r+e)/2,w=Math.sqrt((r+e)*(r+e)-4*(r*e-p*i))/2,$=N+w||1,U=N-w||1;return[Math.sqrt($),Math.sqrt(U)]}static normalizeRect(t){const a=t.slice(0);return t[0]>t[2]&&(a[0]=t[2],a[2]=t[0]),t[1]>t[3]&&(a[1]=t[3],a[3]=t[1]),a}static intersect(t,a){function r(N,w){return N-w}const i=[t[0],t[2],a[0],a[2]].sort(r),p=[t[1],t[3],a[1],a[3]].sort(r),e=[];if(t=Util.normalizeRect(t),a=Util.normalizeRect(a),i[0]===t[0]&&i[1]===a[0]||i[0]===a[0]&&i[1]===t[0])e[0]=i[1],e[2]=i[2];else return null;if(p[0]===t[1]&&p[1]===a[1]||p[0]===a[1]&&p[1]===t[1])e[1]=p[1],e[3]=p[2];else return null;return e}}exports$Y.Util=Util;const PDFStringTranslateTable=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function stringToPDFString(x){const t=x.length,a=[];if(x[0]==="þ"&&x[1]==="ÿ")for(let r=2;r<t;r+=2)a.push(String.fromCharCode(x.charCodeAt(r)<<8|x.charCodeAt(r+1)));else if(x[0]==="ÿ"&&x[1]==="þ")for(let r=2;r<t;r+=2)a.push(String.fromCharCode(x.charCodeAt(r+1)<<8|x.charCodeAt(r)));else for(let r=0;r<t;++r){const i=PDFStringTranslateTable[x.charCodeAt(r)];a.push(i?String.fromCharCode(i):x.charAt(r))}return a.join("")}function stringToUTF8String(x){return decodeURIComponent(escape(x))}function utf8StringToString(x){return unescape(encodeURIComponent(x))}function isEmptyObj(x){for(const t in x)return!1;return!0}function isBool(x){return typeof x=="boolean"}function isNum(x){return typeof x=="number"}function isString(x){return typeof x=="string"}function isArrayBuffer(x){return typeof x=="object"&&x!==null&&x.byteLength!==void 0}function isArrayEqual(x,t){return x.length!==t.length?!1:x.every(function(a,r){return a===t[r]})}function createPromiseCapability(){const x=Object.create(null);let t=!1;return Object.defineProperty(x,"settled",{get(){return t}}),x.promise=new Promise(function(a,r){x.resolve=function(i){t=!0,a(i)},x.reject=function(i){t=!0,r(i)}}),x}const createObjectURL=function(){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(r,i,p=!1){if(!p&&URL.createObjectURL){const N=new Blob([r],{type:i});return URL.createObjectURL(N)}let e=`data:${i};base64,`;for(let N=0,w=r.length;N<w;N+=3){const $=r[N]&255,U=r[N+1]&255,m=r[N+2]&255,n=$>>2,J=($&3)<<4|U>>4,O=N+1<w?(U&15)<<2|m>>6:64,L=N+2<w?m&63:64;e+=t[n]+t[J]+t[O]+t[L]}return e}}();exports$Y.createObjectURL=createObjectURL;const __CJS__export_default__$U=(module$Y.exports==null?{}:module$Y.exports).default||module$Y.exports,__CJS__export_arrayByteLength__$1=(module$Y.exports==null?{}:module$Y.exports).arrayByteLength,__CJS__export_arraysToBytes__$1=(module$Y.exports==null?{}:module$Y.exports).arraysToBytes,__CJS__export_assert__$1=(module$Y.exports==null?{}:module$Y.exports).assert,__CJS__export_bytesToString__$1=(module$Y.exports==null?{}:module$Y.exports).bytesToString,__CJS__export_createPromiseCapability__$2=(module$Y.exports==null?{}:module$Y.exports).createPromiseCapability,__CJS__export_getVerbosityLevel__$1=(module$Y.exports==null?{}:module$Y.exports).getVerbosityLevel,__CJS__export_info__$1=(module$Y.exports==null?{}:module$Y.exports).info,__CJS__export_isArrayBuffer__$1=(module$Y.exports==null?{}:module$Y.exports).isArrayBuffer,__CJS__export_isArrayEqual__$1=(module$Y.exports==null?{}:module$Y.exports).isArrayEqual,__CJS__export_isBool__$1=(module$Y.exports==null?{}:module$Y.exports).isBool,__CJS__export_isEmptyObj__$1=(module$Y.exports==null?{}:module$Y.exports).isEmptyObj,__CJS__export_isNum__$1=(module$Y.exports==null?{}:module$Y.exports).isNum,__CJS__export_isString__$1=(module$Y.exports==null?{}:module$Y.exports).isString,__CJS__export_isSameOrigin__$1=(module$Y.exports==null?{}:module$Y.exports).isSameOrigin,__CJS__export_createValidAbsoluteUrl__$2=(module$Y.exports==null?{}:module$Y.exports).createValidAbsoluteUrl,__CJS__export_removeNullCharacters__$2=(module$Y.exports==null?{}:module$Y.exports).removeNullCharacters,__CJS__export_setVerbosityLevel__$1=(module$Y.exports==null?{}:module$Y.exports).setVerbosityLevel,__CJS__export_shadow__$2=(module$Y.exports==null?{}:module$Y.exports).shadow,__CJS__export_string32__$1=(module$Y.exports==null?{}:module$Y.exports).string32,__CJS__export_stringToBytes__$1=(module$Y.exports==null?{}:module$Y.exports).stringToBytes,__CJS__export_stringToPDFString__$1=(module$Y.exports==null?{}:module$Y.exports).stringToPDFString,__CJS__export_stringToUTF8String__$1=(module$Y.exports==null?{}:module$Y.exports).stringToUTF8String,__CJS__export_utf8StringToString__$1=(module$Y.exports==null?{}:module$Y.exports).utf8StringToString,__CJS__export_warn__$1=(module$Y.exports==null?{}:module$Y.exports).warn,__CJS__export_unreachable__$1=(module$Y.exports==null?{}:module$Y.exports).unreachable,__CJS__export_BaseException__$1=(module$Y.exports==null?{}:module$Y.exports).BaseException,__CJS__export_FONT_IDENTITY_MATRIX__$1=(module$Y.exports==null?{}:module$Y.exports).FONT_IDENTITY_MATRIX,__CJS__export_IDENTITY_MATRIX__$1=(module$Y.exports==null?{}:module$Y.exports).IDENTITY_MATRIX,__CJS__export_OPS__$2=(module$Y.exports==null?{}:module$Y.exports).OPS,__CJS__export_VerbosityLevel__$2=(module$Y.exports==null?{}:module$Y.exports).VerbosityLevel,__CJS__export_UNSUPPORTED_FEATURES__$2=(module$Y.exports==null?{}:module$Y.exports).UNSUPPORTED_FEATURES,__CJS__export_AnnotationBorderStyleType__$1=(module$Y.exports==null?{}:module$Y.exports).AnnotationBorderStyleType,__CJS__export_AnnotationFieldFlag__$1=(module$Y.exports==null?{}:module$Y.exports).AnnotationFieldFlag,__CJS__export_AnnotationFlag__$1=(module$Y.exports==null?{}:module$Y.exports).AnnotationFlag,__CJS__export_AnnotationMarkedState__$1=(module$Y.exports==null?{}:module$Y.exports).AnnotationMarkedState,__CJS__export_AnnotationReplyType__$1=(module$Y.exports==null?{}:module$Y.exports).AnnotationReplyType,__CJS__export_AnnotationReviewState__$1=(module$Y.exports==null?{}:module$Y.exports).AnnotationReviewState,__CJS__export_AnnotationStateModelType__$1=(module$Y.exports==null?{}:module$Y.exports).AnnotationStateModelType,__CJS__export_AnnotationType__$1=(module$Y.exports==null?{}:module$Y.exports).AnnotationType,__CJS__export_FontType__$1=(module$Y.exports==null?{}:module$Y.exports).FontType,__CJS__export_ImageKind__$1=(module$Y.exports==null?{}:module$Y.exports).ImageKind,__CJS__export_CMapCompressionType__$2=(module$Y.exports==null?{}:module$Y.exports).CMapCompressionType,__CJS__export_AbortException__$1=(module$Y.exports==null?{}:module$Y.exports).AbortException,__CJS__export_InvalidPDFException__$2=(module$Y.exports==null?{}:module$Y.exports).InvalidPDFException,__CJS__export_MissingPDFException__$2=(module$Y.exports==null?{}:module$Y.exports).MissingPDFException,__CJS__export_NativeImageDecoding__$2=(module$Y.exports==null?{}:module$Y.exports).NativeImageDecoding,__CJS__export_PasswordException__$1=(module$Y.exports==null?{}:module$Y.exports).PasswordException,__CJS__export_PasswordResponses__$2=(module$Y.exports==null?{}:module$Y.exports).PasswordResponses,__CJS__export_PermissionFlag__$2=(module$Y.exports==null?{}:module$Y.exports).PermissionFlag,__CJS__export_StreamType__$1=(module$Y.exports==null?{}:module$Y.exports).StreamType,__CJS__export_TextRenderingMode__$1=(module$Y.exports==null?{}:module$Y.exports).TextRenderingMode,__CJS__export_UnexpectedResponseException__$2=(module$Y.exports==null?{}:module$Y.exports).UnexpectedResponseException,__CJS__export_UnknownErrorException__$1=(module$Y.exports==null?{}:module$Y.exports).UnknownErrorException,__CJS__export_Util__$2=(module$Y.exports==null?{}:module$Y.exports).Util,__CJS__export_FormatError__$1=(module$Y.exports==null?{}:module$Y.exports).FormatError,__CJS__export_createObjectURL__$2=(module$Y.exports==null?{}:module$Y.exports).createObjectURL,__CJS__export_IsLittleEndianCached__$1=(module$Y.exports==null?{}:module$Y.exports).IsLittleEndianCached,__CJS__export_IsEvalSupportedCached__$1=(module$Y.exports==null?{}:module$Y.exports).IsEvalSupportedCached,__CJS__import__0__$4=Object.freeze(Object.defineProperty({__proto__:null,AbortException:__CJS__export_AbortException__$1,AnnotationBorderStyleType:__CJS__export_AnnotationBorderStyleType__$1,AnnotationFieldFlag:__CJS__export_AnnotationFieldFlag__$1,AnnotationFlag:__CJS__export_AnnotationFlag__$1,AnnotationMarkedState:__CJS__export_AnnotationMarkedState__$1,AnnotationReplyType:__CJS__export_AnnotationReplyType__$1,AnnotationReviewState:__CJS__export_AnnotationReviewState__$1,AnnotationStateModelType:__CJS__export_AnnotationStateModelType__$1,AnnotationType:__CJS__export_AnnotationType__$1,BaseException:__CJS__export_BaseException__$1,CMapCompressionType:__CJS__export_CMapCompressionType__$2,FONT_IDENTITY_MATRIX:__CJS__export_FONT_IDENTITY_MATRIX__$1,FontType:__CJS__export_FontType__$1,FormatError:__CJS__export_FormatError__$1,IDENTITY_MATRIX:__CJS__export_IDENTITY_MATRIX__$1,ImageKind:__CJS__export_ImageKind__$1,InvalidPDFException:__CJS__export_InvalidPDFException__$2,IsEvalSupportedCached:__CJS__export_IsEvalSupportedCached__$1,IsLittleEndianCached:__CJS__export_IsLittleEndianCached__$1,MissingPDFException:__CJS__export_MissingPDFException__$2,NativeImageDecoding:__CJS__export_NativeImageDecoding__$2,OPS:__CJS__export_OPS__$2,PasswordException:__CJS__export_PasswordException__$1,PasswordResponses:__CJS__export_PasswordResponses__$2,PermissionFlag:__CJS__export_PermissionFlag__$2,StreamType:__CJS__export_StreamType__$1,TextRenderingMode:__CJS__export_TextRenderingMode__$1,UNSUPPORTED_FEATURES:__CJS__export_UNSUPPORTED_FEATURES__$2,UnexpectedResponseException:__CJS__export_UnexpectedResponseException__$2,UnknownErrorException:__CJS__export_UnknownErrorException__$1,Util:__CJS__export_Util__$2,VerbosityLevel:__CJS__export_VerbosityLevel__$2,arrayByteLength:__CJS__export_arrayByteLength__$1,arraysToBytes:__CJS__export_arraysToBytes__$1,assert:__CJS__export_assert__$1,bytesToString:__CJS__export_bytesToString__$1,createObjectURL:__CJS__export_createObjectURL__$2,createPromiseCapability:__CJS__export_createPromiseCapability__$2,createValidAbsoluteUrl:__CJS__export_createValidAbsoluteUrl__$2,default:__CJS__export_default__$U,getVerbosityLevel:__CJS__export_getVerbosityLevel__$1,info:__CJS__export_info__$1,isArrayBuffer:__CJS__export_isArrayBuffer__$1,isArrayEqual:__CJS__export_isArrayEqual__$1,isBool:__CJS__export_isBool__$1,isEmptyObj:__CJS__export_isEmptyObj__$1,isNum:__CJS__export_isNum__$1,isSameOrigin:__CJS__export_isSameOrigin__$1,isString:__CJS__export_isString__$1,removeNullCharacters:__CJS__export_removeNullCharacters__$2,setVerbosityLevel:__CJS__export_setVerbosityLevel__$1,shadow:__CJS__export_shadow__$2,string32:__CJS__export_string32__$1,stringToBytes:__CJS__export_stringToBytes__$1,stringToPDFString:__CJS__export_stringToPDFString__$1,stringToUTF8String:__CJS__export_stringToUTF8String__$1,unreachable:__CJS__export_unreachable__$1,utf8StringToString:__CJS__export_utf8StringToString__$1,warn:__CJS__export_warn__$1},Symbol.toStringTag,{value:"Module"}));var module$X={exports:{}},exports$X=module$X.exports;Object.defineProperty(exports$X,"__esModule",{value:!0});exports$X.addLinkAttributes=addLinkAttributes;exports$X.getFilenameFromUrl=getFilenameFromUrl;exports$X.isFetchSupported=isFetchSupported;exports$X.isValidFetchUrl=isValidFetchUrl;exports$X.loadScript=loadScript;exports$X.deprecated=deprecated;exports$X.releaseImageResources=releaseImageResources;exports$X.PDFDateString=exports$X.StatTimer=exports$X.DOMSVGFactory=exports$X.DOMCMapReaderFactory=exports$X.DOMCanvasFactory=exports$X.DEFAULT_LINK_REL=exports$X.LinkTarget=exports$X.RenderingCancelledException=exports$X.PageViewport=void 0;var _util$f=__CJS__export_default__$U||__CJS__import__0__$4;const DEFAULT_LINK_REL="noopener noreferrer nofollow";exports$X.DEFAULT_LINK_REL=DEFAULT_LINK_REL;const SVG_NS="http://www.w3.org/2000/svg";class DOMCanvasFactory{create(t,a){if(t<=0||a<=0)throw new Error("Invalid canvas size");const r=document.createElement("canvas"),i=r.getContext("2d");return r.width=t,r.height=a,{canvas:r,context:i}}reset(t,a,r){if(!t.canvas)throw new Error("Canvas is not specified");if(a<=0||r<=0)throw new Error("Invalid canvas size");t.canvas.width=a,t.canvas.height=r}destroy(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}}exports$X.DOMCanvasFactory=DOMCanvasFactory;class DOMCMapReaderFactory{constructor({baseUrl:t=null,isCompressed:a=!1}){this.baseUrl=t,this.isCompressed=a}async fetch({name:t}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!t)throw new Error("CMap name must be specified.");const a=this.baseUrl+t+(this.isCompressed?".bcmap":""),r=this.isCompressed?_util$f.CMapCompressionType.BINARY:_util$f.CMapCompressionType.NONE;return isFetchSupported()&&isValidFetchUrl(a,document.baseURI)?fetch(a).then(async i=>{if(!i.ok)throw new Error(i.statusText);let p;return this.isCompressed?p=new Uint8Array(await i.arrayBuffer()):p=(0,_util$f.stringToBytes)(await i.text()),{cMapData:p,compressionType:r}}).catch(i=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${a}`)}):new Promise((i,p)=>{const e=new XMLHttpRequest;e.open("GET",a,!0),this.isCompressed&&(e.responseType="arraybuffer"),e.onreadystatechange=()=>{if(e.readyState===XMLHttpRequest.DONE){if(e.status===200||e.status===0){let N;if(this.isCompressed&&e.response?N=new Uint8Array(e.response):!this.isCompressed&&e.responseText&&(N=(0,_util$f.stringToBytes)(e.responseText)),N){i({cMapData:N,compressionType:r});return}}p(new Error(e.statusText))}},e.send(null)}).catch(i=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${a}`)})}}exports$X.DOMCMapReaderFactory=DOMCMapReaderFactory;class DOMSVGFactory{create(t,a){(0,_util$f.assert)(t>0&&a>0,"Invalid SVG dimensions");const r=document.createElementNS(SVG_NS,"svg:svg");return r.setAttribute("version","1.1"),r.setAttribute("width",t+"px"),r.setAttribute("height",a+"px"),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox","0 0 "+t+" "+a),r}createElement(t){return(0,_util$f.assert)(typeof t=="string","Invalid SVG element type"),document.createElementNS(SVG_NS,t)}}exports$X.DOMSVGFactory=DOMSVGFactory;class PageViewport{constructor({viewBox:t,scale:a,rotation:r,offsetX:i=0,offsetY:p=0,dontFlip:e=!1}){this.viewBox=t,this.scale=a,this.rotation=r,this.offsetX=i,this.offsetY=p;const N=(t[2]+t[0])/2,w=(t[3]+t[1])/2;let $,U,m,n;switch(r=r%360,r=r<0?r+360:r,r){case 180:$=-1,U=0,m=0,n=1;break;case 90:$=0,U=1,m=1,n=0;break;case 270:$=0,U=-1,m=-1,n=0;break;default:$=1,U=0,m=0,n=-1;break}e&&(m=-m,n=-n);let J,O,L,M;$===0?(J=Math.abs(w-t[1])*a+i,O=Math.abs(N-t[0])*a+p,L=Math.abs(t[3]-t[1])*a,M=Math.abs(t[2]-t[0])*a):(J=Math.abs(N-t[0])*a+i,O=Math.abs(w-t[1])*a+p,L=Math.abs(t[2]-t[0])*a,M=Math.abs(t[3]-t[1])*a),this.transform=[$*a,U*a,m*a,n*a,J-$*a*N-m*a*w,O-U*a*N-n*a*w],this.width=L,this.height=M}clone({scale:t=this.scale,rotation:a=this.rotation,offsetX:r=this.offsetX,offsetY:i=this.offsetY,dontFlip:p=!1}={}){return new PageViewport({viewBox:this.viewBox.slice(),scale:t,rotation:a,offsetX:r,offsetY:i,dontFlip:p})}convertToViewportPoint(t,a){return _util$f.Util.applyTransform([t,a],this.transform)}convertToViewportRectangle(t){const a=_util$f.Util.applyTransform([t[0],t[1]],this.transform),r=_util$f.Util.applyTransform([t[2],t[3]],this.transform);return[a[0],a[1],r[0],r[1]]}convertToPdfPoint(t,a){return _util$f.Util.applyInverseTransform([t,a],this.transform)}}exports$X.PageViewport=PageViewport;class RenderingCancelledException extends _util$f.BaseException{constructor(t,a){super(t),this.type=a}}exports$X.RenderingCancelledException=RenderingCancelledException;const LinkTarget={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};exports$X.LinkTarget=LinkTarget;function addLinkAttributes(x,{url:t,target:a,rel:r,enabled:i=!0}={}){(0,_util$f.assert)(t&&typeof t=="string",'addLinkAttributes: A valid "url" parameter must provided.');const p=(0,_util$f.removeNullCharacters)(t);i?x.href=x.title=p:(x.href="",x.title=`Disabled: ${p}`,x.onclick=()=>!1);let e="";switch(a){case LinkTarget.NONE:break;case LinkTarget.SELF:e="_self";break;case LinkTarget.BLANK:e="_blank";break;case LinkTarget.PARENT:e="_parent";break;case LinkTarget.TOP:e="_top";break}x.target=e,x.rel=typeof r=="string"?r:DEFAULT_LINK_REL}function getFilenameFromUrl(x){const t=x.indexOf("#"),a=x.indexOf("?"),r=Math.min(t>0?t:x.length,a>0?a:x.length);return x.substring(x.lastIndexOf("/",r)+1,r)}class StatTimer{constructor(){this.started=Object.create(null),this.times=[]}time(t){t in this.started&&(0,_util$f.warn)(`Timer is already running for ${t}`),this.started[t]=Date.now()}timeEnd(t){t in this.started||(0,_util$f.warn)(`Timer has not been started for ${t}`),this.times.push({name:t,start:this.started[t],end:Date.now()}),delete this.started[t]}toString(){const t=[];let a=0;for(const r of this.times){const i=r.name;i.length>a&&(a=i.length)}for(const r of this.times){const i=r.end-r.start;t.push(`${r.name.padEnd(a)} ${i}ms
|
|
2
|
+
`)}return t.join("")}}exports$X.StatTimer=StatTimer;function isFetchSupported(){return typeof fetch<"u"&&typeof Response<"u"&&"body"in Response.prototype&&typeof ReadableStream<"u"}function isValidFetchUrl(x,t){try{const{protocol:a}=t?new URL(x,t):new URL(x);return a==="http:"||a==="https:"}catch{return!1}}function loadScript(x){return new Promise((t,a)=>{const r=document.createElement("script");r.src=x,r.onload=t,r.onerror=function(){a(new Error(`Cannot load script at: ${r.src}`))},(document.head||document.documentElement).appendChild(r)})}function deprecated(x){console.log("Deprecated API usage: "+x)}function releaseImageResources(x){(0,_util$f.assert)(x instanceof Image,"Invalid `img` parameter.");const t=x.src;typeof t=="string"&&t.startsWith("blob:")&&URL.revokeObjectURL&&URL.revokeObjectURL(t),x.removeAttribute("src")}let pdfDateStringRegex;class PDFDateString{static toDateObject(t){if(!t||!(0,_util$f.isString)(t))return null;pdfDateStringRegex||(pdfDateStringRegex=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const a=pdfDateStringRegex.exec(t);if(!a)return null;const r=parseInt(a[1],10);let i=parseInt(a[2],10);i=i>=1&&i<=12?i-1:0;let p=parseInt(a[3],10);p=p>=1&&p<=31?p:1;let e=parseInt(a[4],10);e=e>=0&&e<=23?e:0;let N=parseInt(a[5],10);N=N>=0&&N<=59?N:0;let w=parseInt(a[6],10);w=w>=0&&w<=59?w:0;const $=a[7]||"Z";let U=parseInt(a[8],10);U=U>=0&&U<=23?U:0;let m=parseInt(a[9],10)||0;return m=m>=0&&m<=59?m:0,$==="-"?(e+=U,N+=m):$==="+"&&(e-=U,N-=m),new Date(Date.UTC(r,i,p,e,N,w))}}exports$X.PDFDateString=PDFDateString;const __CJS__export_default__$T=(module$X.exports==null?{}:module$X.exports).default||module$X.exports,__CJS__export_addLinkAttributes__$1=(module$X.exports==null?{}:module$X.exports).addLinkAttributes,__CJS__export_getFilenameFromUrl__$1=(module$X.exports==null?{}:module$X.exports).getFilenameFromUrl,__CJS__export_isFetchSupported__=(module$X.exports==null?{}:module$X.exports).isFetchSupported,__CJS__export_isValidFetchUrl__=(module$X.exports==null?{}:module$X.exports).isValidFetchUrl,__CJS__export_loadScript__$1=(module$X.exports==null?{}:module$X.exports).loadScript,__CJS__export_deprecated__=(module$X.exports==null?{}:module$X.exports).deprecated,__CJS__export_releaseImageResources__=(module$X.exports==null?{}:module$X.exports).releaseImageResources,__CJS__export_PageViewport__=(module$X.exports==null?{}:module$X.exports).PageViewport,__CJS__export_RenderingCancelledException__$1=(module$X.exports==null?{}:module$X.exports).RenderingCancelledException,__CJS__export_LinkTarget__$1=(module$X.exports==null?{}:module$X.exports).LinkTarget,__CJS__export_DEFAULT_LINK_REL__=(module$X.exports==null?{}:module$X.exports).DEFAULT_LINK_REL,__CJS__export_DOMCanvasFactory__=(module$X.exports==null?{}:module$X.exports).DOMCanvasFactory,__CJS__export_DOMCMapReaderFactory__=(module$X.exports==null?{}:module$X.exports).DOMCMapReaderFactory,__CJS__export_DOMSVGFactory__=(module$X.exports==null?{}:module$X.exports).DOMSVGFactory,__CJS__export_StatTimer__=(module$X.exports==null?{}:module$X.exports).StatTimer,__CJS__export_PDFDateString__$1=(module$X.exports==null?{}:module$X.exports).PDFDateString,__CJS__import__4__$4=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_LINK_REL:__CJS__export_DEFAULT_LINK_REL__,DOMCMapReaderFactory:__CJS__export_DOMCMapReaderFactory__,DOMCanvasFactory:__CJS__export_DOMCanvasFactory__,DOMSVGFactory:__CJS__export_DOMSVGFactory__,LinkTarget:__CJS__export_LinkTarget__$1,PDFDateString:__CJS__export_PDFDateString__$1,PageViewport:__CJS__export_PageViewport__,RenderingCancelledException:__CJS__export_RenderingCancelledException__$1,StatTimer:__CJS__export_StatTimer__,addLinkAttributes:__CJS__export_addLinkAttributes__$1,default:__CJS__export_default__$T,deprecated:__CJS__export_deprecated__,getFilenameFromUrl:__CJS__export_getFilenameFromUrl__$1,isFetchSupported:__CJS__export_isFetchSupported__,isValidFetchUrl:__CJS__export_isValidFetchUrl__,loadScript:__CJS__export_loadScript__$1,releaseImageResources:__CJS__export_releaseImageResources__},Symbol.toStringTag,{value:"Module"}));var module$W={exports:{}},exports$W=module$W.exports;Object.defineProperty(exports$W,"__esModule",{value:!0});exports$W.FontLoader=exports$W.FontFaceObject=void 0;var _util$e=__CJS__export_default__$U||__CJS__import__0__$4;class BaseFontLoader{constructor({docId:t,onUnsupportedFeature:a}){this.constructor===BaseFontLoader&&(0,_util$e.unreachable)("Cannot initialize BaseFontLoader."),this.docId=t,this._onUnsupportedFeature=a,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(t){this.nativeFontFaces.push(t),document.fonts.add(t)}insertRule(t){let a=this.styleElement;a||(a=this.styleElement=document.createElement("style"),a.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,document.documentElement.getElementsByTagName("head")[0].appendChild(a));const r=a.sheet;r.insertRule(t,r.cssRules.length)}clear(){this.nativeFontFaces.forEach(function(t){document.fonts.delete(t)}),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(t){if(t.attached||t.missingFile)return;if(t.attached=!0,this.isFontLoadingAPISupported){const r=t.createNativeFontFace();if(r){this.addNativeFontFace(r);try{await r.loaded}catch(i){throw this._onUnsupportedFeature({featureId:_util$e.UNSUPPORTED_FEATURES.font}),(0,_util$e.warn)(`Failed to load font '${r.family}': '${i}'.`),t.disableFontFace=!0,i}}return}const a=t.createFontFaceRule();if(a){if(this.insertRule(a),this.isSyncFontLoadingSupported)return;await new Promise(r=>{const i=this._queueLoadingCallback(r);this._prepareFontLoadEvent([a],[t],i)})}}_queueLoadingCallback(t){(0,_util$e.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){const t=typeof document<"u"&&!!document.fonts;return(0,_util$e.shadow)(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){(0,_util$e.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,_util$e.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(t,a,r){(0,_util$e.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let FontLoader;exports$W.FontLoader=FontLoader;exports$W.FontLoader=FontLoader=class extends BaseFontLoader{constructor(t){super(t),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let t=!1;if(typeof navigator>"u")t=!0;else{const a=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);a&&a[1]>=14&&(t=!0)}return(0,_util$e.shadow)(this,"isSyncFontLoadingSupported",t)}_queueLoadingCallback(t){function a(){for((0,_util$e.assert)(!i.done,"completeRequest() cannot be called twice."),i.done=!0;r.requests.length>0&&r.requests[0].done;){const p=r.requests.shift();setTimeout(p.callback,0)}}const r=this.loadingContext,i={id:`pdfjs-font-loading-${r.nextRequestId++}`,done:!1,complete:a,callback:t};return r.requests.push(i),i}get _loadTestFont(){const t=function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};return(0,_util$e.shadow)(this,"_loadTestFont",t())}_prepareFontLoadEvent(t,a,r){function i(h,f){return h.charCodeAt(f)<<24|h.charCodeAt(f+1)<<16|h.charCodeAt(f+2)<<8|h.charCodeAt(f+3)&255}function p(h,f,g,v){const s=h.substring(0,f),o=h.substring(f+g);return s+v+o}let e,N;const w=document.createElement("canvas");w.width=1,w.height=1;const $=w.getContext("2d");let U=0;function m(h,f){if(U++,U>30){(0,_util$e.warn)("Load test font never loaded."),f();return}if($.font="30px "+h,$.fillText(".",0,20),$.getImageData(0,0,1,1).data[3]>0){f();return}setTimeout(m.bind(null,h,f))}const n=`lt${Date.now()}${this.loadTestFontId++}`;let J=this._loadTestFont;J=p(J,976,n.length,n);const L=16,M=1482184792;let P=i(J,L);for(e=0,N=n.length-3;e<N;e+=4)P=P-M+i(n,e)|0;e<n.length&&(P=P-M+i(n+"XXX",e)|0),J=p(J,L,4,(0,_util$e.string32)(P));const b=`url(data:font/opentype;base64,${btoa(J)});`,_=`@font-face {font-family:"${n}";src:${b}}`;this.insertRule(_);const d=[];for(e=0,N=a.length;e<N;e++)d.push(a[e].loadedName);d.push(n);const c=document.createElement("div");for(c.style.visibility="hidden",c.style.width=c.style.height="10px",c.style.position="absolute",c.style.top=c.style.left="0px",e=0,N=d.length;e<N;++e){const h=document.createElement("span");h.textContent="Hi",h.style.fontFamily=d[e],c.appendChild(h)}document.body.appendChild(c),m(n,function(){document.body.removeChild(c),r.complete()})}};class FontFaceObject{constructor(t,{isEvalSupported:a=!0,disableFontFace:r=!1,ignoreErrors:i=!1,onUnsupportedFeature:p=null,fontRegistry:e=null}){this.compiledGlyphs=Object.create(null);for(const N in t)this[N]=t[N];this.isEvalSupported=a!==!1,this.disableFontFace=r===!0,this.ignoreErrors=i===!0,this._onUnsupportedFeature=p,this.fontRegistry=e}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;const t=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),t}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const t=(0,_util$e.bytesToString)(new Uint8Array(this.data)),a=`url(data:${this.mimetype};base64,${btoa(t)});`,r=`@font-face {font-family:"${this.loadedName}";src:${a}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,a),r}getPathGenerator(t,a){if(this.compiledGlyphs[a]!==void 0)return this.compiledGlyphs[a];let r,i;try{r=t.get(this.loadedName+"_path_"+a)}catch(p){if(!this.ignoreErrors)throw p;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:_util$e.UNSUPPORTED_FEATURES.font}),(0,_util$e.warn)(`getPathGenerator - ignoring character: "${p}".`),this.compiledGlyphs[a]=function(e,N){}}if(this.isEvalSupported&&_util$e.IsEvalSupportedCached.value){let p,e="";for(let N=0,w=r.length;N<w;N++)i=r[N],i.args!==void 0?p=i.args.join(","):p="",e+="c."+i.cmd+"("+p+`);
|
|
3
|
+
`;return this.compiledGlyphs[a]=new Function("c","size",e)}return this.compiledGlyphs[a]=function(p,e){for(let N=0,w=r.length;N<w;N++)i=r[N],i.cmd==="scale"&&(i.args=[e,-e]),p[i.cmd].apply(p,i.args)}}}exports$W.FontFaceObject=FontFaceObject;const __CJS__export_default__$S=(module$W.exports==null?{}:module$W.exports).default||module$W.exports,__CJS__export_FontFaceObject__=(module$W.exports==null?{}:module$W.exports).FontFaceObject,__CJS__export_FontLoader__=(module$W.exports==null?{}:module$W.exports).FontLoader,__CJS__import__2__$6=Object.freeze(Object.defineProperty({__proto__:null,FontFaceObject:__CJS__export_FontFaceObject__,FontLoader:__CJS__export_FontLoader__,default:__CJS__export_default__$S},Symbol.toStringTag,{value:"Module"}));var module$V={exports:{}},exports$V=module$V.exports;Object.defineProperty(exports$V,"__esModule",{value:!0});exports$V.isNodeJS=void 0;const isNodeJS=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;exports$V.isNodeJS=isNodeJS;const __CJS__export_default__$R=(module$V.exports==null?{}:module$V.exports).default||module$V.exports,__CJS__export_isNodeJS__$1=(module$V.exports==null?{}:module$V.exports).isNodeJS,__CJS__import__8__$2=Object.freeze(Object.defineProperty({__proto__:null,default:__CJS__export_default__$R,isNodeJS:__CJS__export_isNodeJS__$1},Symbol.toStringTag,{value:"Module"}));var module$U={exports:{}},exports$U=module$U.exports;const compatibilityParams$1=Object.create(null);{const{isNodeJS:x}=__CJS__export_default__$R||__CJS__import__8__$2,t=typeof navigator<"u"&&navigator.userAgent||"",a=/Trident/.test(t),r=/CriOS/.test(t);(function(){(a||r)&&(compatibilityParams$1.disableCreateObjectURL=!0)})(),function(){x&&(compatibilityParams$1.disableFontFace=!0,compatibilityParams$1.nativeImageDecoderSupport="none")}()}exports$U.apiCompatibilityParams=Object.freeze(compatibilityParams$1);const __CJS__export_default__$Q=(module$U.exports==null?{}:module$U.exports).default||module$U.exports,__CJS__export_apiCompatibilityParams__$1=(module$U.exports==null?{}:module$U.exports).apiCompatibilityParams,__CJS__import__7__$2=Object.freeze(Object.defineProperty({__proto__:null,apiCompatibilityParams:__CJS__export_apiCompatibilityParams__$1,default:__CJS__export_default__$Q},Symbol.toStringTag,{value:"Module"}));var module$T={exports:{}},exports$T=module$T.exports;Object.defineProperty(exports$T,"__esModule",{value:!0});exports$T.getShadingPatternFromIR=getShadingPatternFromIR;exports$T.TilingPattern=void 0;var _util$d=__CJS__export_default__$U||__CJS__import__0__$4,ShadingIRs={};function applyBoundingBox(x,t){if(!t||typeof Path2D>"u")return;const a=t[2]-t[0],r=t[3]-t[1],i=new Path2D;i.rect(t[0],t[1],a,r),x.clip(i)}ShadingIRs.RadialAxial={fromIR:function(t){var a=t[1],r=t[2],i=t[3],p=t[4],e=t[5],N=t[6],w=t[7];return{type:"Pattern",getPattern:function(U){applyBoundingBox(U,r);var m;a==="axial"?m=U.createLinearGradient(p[0],p[1],e[0],e[1]):a==="radial"&&(m=U.createRadialGradient(p[0],p[1],N,e[0],e[1],w));for(var n=0,J=i.length;n<J;++n){var O=i[n];m.addColorStop(O[0],O[1])}return m}}}};var createMeshCanvas=function(){function t(i,p,e,N,w,$,U,m){var n=p.coords,J=p.colors,O=i.data,L=i.width*4,M;n[e+1]>n[N+1]&&(M=e,e=N,N=M,M=$,$=U,U=M),n[N+1]>n[w+1]&&(M=N,N=w,w=M,M=U,U=m,m=M),n[e+1]>n[N+1]&&(M=e,e=N,N=M,M=$,$=U,U=M);var P=(n[e]+p.offsetX)*p.scaleX,b=(n[e+1]+p.offsetY)*p.scaleY,_=(n[N]+p.offsetX)*p.scaleX,d=(n[N+1]+p.offsetY)*p.scaleY,c=(n[w]+p.offsetX)*p.scaleX,h=(n[w+1]+p.offsetY)*p.scaleY;if(!(b>=h))for(var f=J[$],g=J[$+1],v=J[$+2],s=J[U],o=J[U+1],u=J[U+2],l=J[m],F=J[m+1],T=J[m+2],D=Math.round(b),k=Math.round(h),S,R,E,A,C,y,I,H,V=D;V<=k;V++){if(V<d){let j;V<b?j=0:b===d?j=1:j=(b-V)/(b-d),S=P-(P-_)*j,R=f-(f-s)*j,E=g-(g-o)*j,A=v-(v-u)*j}else{let j;V>h?j=1:d===h?j=0:j=(d-V)/(d-h),S=_-(_-c)*j,R=s-(s-l)*j,E=o-(o-F)*j,A=u-(u-T)*j}let z;V<b?z=0:V>h?z=1:z=(b-V)/(b-h),C=P-(P-c)*z,y=f-(f-l)*z,I=g-(g-F)*z,H=v-(v-T)*z;for(var B=Math.round(Math.min(S,C)),W=Math.round(Math.max(S,C)),G=L*V+B*4,q=B;q<=W;q++){let j=(S-q)/(S-C);j<0?j=0:j>1&&(j=1),O[G++]=R-(R-y)*j|0,O[G++]=E-(E-I)*j|0,O[G++]=A-(A-H)*j|0,O[G++]=255}}}function a(i,p,e){var N=p.coords,w=p.colors,$,U;switch(p.type){case"lattice":var m=p.verticesPerRow,n=Math.floor(N.length/m)-1,J=m-1;for($=0;$<n;$++)for(var O=$*m,L=0;L<J;L++,O++)t(i,e,N[O],N[O+1],N[O+m],w[O],w[O+1],w[O+m]),t(i,e,N[O+m+1],N[O+1],N[O+m],w[O+m+1],w[O+1],w[O+m]);break;case"triangles":for($=0,U=N.length;$<U;$+=3)t(i,e,N[$],N[$+1],N[$+2],w[$],w[$+1],w[$+2]);break;default:throw new Error("illegal figure")}}function r(i,p,e,N,w,$,U,m){var n=1.1,J=3e3,O=2,L=Math.floor(i[0]),M=Math.floor(i[1]),P=Math.ceil(i[2])-L,b=Math.ceil(i[3])-M,_=Math.min(Math.ceil(Math.abs(P*p[0]*n)),J),d=Math.min(Math.ceil(Math.abs(b*p[1]*n)),J),c=P/_,h=b/d,f={coords:e,colors:N,offsetX:-L,offsetY:-M,scaleX:1/c,scaleY:1/h},g=_+O*2,v=d+O*2,s,o,u,l;if(m.isEnabled)s=m.drawFigures({width:_,height:d,backgroundColor:$,figures:w,context:f}),o=U.getCanvas("mesh",g,v,!1),o.context.drawImage(s,O,O),s=o.canvas;else{o=U.getCanvas("mesh",g,v,!1);var F=o.context,T=F.createImageData(_,d);if($){var D=T.data;for(u=0,l=D.length;u<l;u+=4)D[u]=$[0],D[u+1]=$[1],D[u+2]=$[2],D[u+3]=255}for(u=0;u<w.length;u++)a(T,w[u],f);F.putImageData(T,O,O),s=o.canvas}return{canvas:s,offsetX:L-O*c,offsetY:M-O*h,scaleX:c,scaleY:h}}return r}();ShadingIRs.Mesh={fromIR:function(t){var a=t[2],r=t[3],i=t[4],p=t[5],e=t[6],N=t[7],w=t[8];return{type:"Pattern",getPattern:function(U,m,n){applyBoundingBox(U,N);var J;if(n)J=_util$d.Util.singularValueDecompose2dScale(U.mozCurrentTransform);else if(J=_util$d.Util.singularValueDecompose2dScale(m.baseTransform),e){var O=_util$d.Util.singularValueDecompose2dScale(e);J=[J[0]*O[0],J[1]*O[1]]}var L=createMeshCanvas(p,J,a,r,i,n?null:w,m.cachedCanvases,m.webGLContext);return n||(U.setTransform.apply(U,m.baseTransform),e&&U.transform.apply(U,e)),U.translate(L.offsetX,L.offsetY),U.scale(L.scaleX,L.scaleY),U.createPattern(L.canvas,"no-repeat")}}}};ShadingIRs.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};function getShadingPatternFromIR(x){var t=ShadingIRs[x[0]];if(!t)throw new Error(`Unknown IR type: ${x[0]}`);return t.fromIR(x)}var TilingPattern=function(){var t={COLORED:1,UNCOLORED:2},a=3e3;function r(i,p,e,N,w){this.operatorList=i[2],this.matrix=i[3]||[1,0,0,1,0,0],this.bbox=i[4],this.xstep=i[5],this.ystep=i[6],this.paintType=i[7],this.tilingType=i[8],this.color=p,this.canvasGraphicsFactory=N,this.baseTransform=w,this.type="Pattern",this.ctx=e}return r.prototype={createPatternCanvas:function(p){var e=this.operatorList,N=this.bbox,w=this.xstep,$=this.ystep,U=this.paintType,m=this.tilingType,n=this.color,J=this.canvasGraphicsFactory;(0,_util$d.info)("TilingType: "+m);var O=N[0],L=N[1],M=N[2],P=N[3],b=_util$d.Util.singularValueDecompose2dScale(this.matrix),_=_util$d.Util.singularValueDecompose2dScale(this.baseTransform),d=[b[0]*_[0],b[1]*_[1]],c=this.getSizeAndScale(w,this.ctx.canvas.width,d[0]),h=this.getSizeAndScale($,this.ctx.canvas.height,d[1]),f=p.cachedCanvases.getCanvas("pattern",c.size,h.size,!0),g=f.context,v=J.createCanvasGraphics(g);return v.groupLevel=p.groupLevel,this.setFillAndStrokeStyleToContext(v,U,n),v.transform(c.scale,0,0,h.scale,0,0),v.transform(1,0,0,1,-O,-L),this.clipBbox(v,N,O,L,M,P),v.executeOperatorList(e),this.ctx.transform(1,0,0,1,O,L),this.ctx.scale(1/c.scale,1/h.scale),f.canvas},getSizeAndScale:function(p,e,N){p=Math.abs(p);var w=Math.max(a,e),$=Math.ceil(p*N);return $>=w?$=w:N=$/p,{scale:N,size:$}},clipBbox:function(p,e,N,w,$,U){if(Array.isArray(e)&&e.length===4){var m=$-N,n=U-w;p.ctx.rect(N,w,m,n),p.clip(),p.endPath()}},setFillAndStrokeStyleToContext:function(p,e,N){const w=p.ctx,$=p.current;switch(e){case t.COLORED:var U=this.ctx;w.fillStyle=U.fillStyle,w.strokeStyle=U.strokeStyle,$.fillColor=U.fillStyle,$.strokeColor=U.strokeStyle;break;case t.UNCOLORED:var m=_util$d.Util.makeCssRgb(N[0],N[1],N[2]);w.fillStyle=m,w.strokeStyle=m,$.fillColor=m,$.strokeColor=m;break;default:throw new _util$d.FormatError(`Unsupported paint type: ${e}`)}},getPattern:function(p,e){p=this.ctx,p.setTransform.apply(p,this.baseTransform),p.transform.apply(p,this.matrix);var N=this.createPatternCanvas(e);return p.createPattern(N,"repeat")}},r}();exports$T.TilingPattern=TilingPattern;const __CJS__export_default__$P=(module$T.exports==null?{}:module$T.exports).default||module$T.exports,__CJS__export_getShadingPatternFromIR__=(module$T.exports==null?{}:module$T.exports).getShadingPatternFromIR,__CJS__export_TilingPattern__=(module$T.exports==null?{}:module$T.exports).TilingPattern,__CJS__import__1__$7=Object.freeze(Object.defineProperty({__proto__:null,TilingPattern:__CJS__export_TilingPattern__,default:__CJS__export_default__$P,getShadingPatternFromIR:__CJS__export_getShadingPatternFromIR__},Symbol.toStringTag,{value:"Module"}));var module$S={exports:{}},exports$S=module$S.exports;Object.defineProperty(exports$S,"__esModule",{value:!0});exports$S.CanvasGraphics=void 0;var _util$c=__CJS__export_default__$U||__CJS__import__0__$4,_pattern_helper=__CJS__export_default__$P||__CJS__import__1__$7,MIN_FONT_SIZE=16,MAX_FONT_SIZE=100,MAX_GROUP_SIZE=4096,MIN_WIDTH_FACTOR=.65,MAX_SIZE_TO_COMPILE=1e3,FULL_CHUNK_HEIGHT=16;function addContextCurrentTransform(x){x.mozCurrentTransform||(x._originalSave=x.save,x._originalRestore=x.restore,x._originalRotate=x.rotate,x._originalScale=x.scale,x._originalTranslate=x.translate,x._originalTransform=x.transform,x._originalSetTransform=x.setTransform,x._transformMatrix=x._transformMatrix||[1,0,0,1,0,0],x._transformStack=[],Object.defineProperty(x,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(x,"mozCurrentTransformInverse",{get:function(){var a=this._transformMatrix,r=a[0],i=a[1],p=a[2],e=a[3],N=a[4],w=a[5],$=r*e-i*p,U=i*p-r*e;return[e/$,i/U,p/U,r/$,(e*N-p*w)/U,(i*N-r*w)/$]}}),x.save=function(){var a=this._transformMatrix;this._transformStack.push(a),this._transformMatrix=a.slice(0,6),this._originalSave()},x.restore=function(){var a=this._transformStack.pop();a&&(this._transformMatrix=a,this._originalRestore())},x.translate=function(a,r){var i=this._transformMatrix;i[4]=i[0]*a+i[2]*r+i[4],i[5]=i[1]*a+i[3]*r+i[5],this._originalTranslate(a,r)},x.scale=function(a,r){var i=this._transformMatrix;i[0]=i[0]*a,i[1]=i[1]*a,i[2]=i[2]*r,i[3]=i[3]*r,this._originalScale(a,r)},x.transform=function(a,r,i,p,e,N){var w=this._transformMatrix;this._transformMatrix=[w[0]*a+w[2]*r,w[1]*a+w[3]*r,w[0]*i+w[2]*p,w[1]*i+w[3]*p,w[0]*e+w[2]*N+w[4],w[1]*e+w[3]*N+w[5]],x._originalTransform(a,r,i,p,e,N)},x.setTransform=function(a,r,i,p,e,N){this._transformMatrix=[a,r,i,p,e,N],x._originalSetTransform(a,r,i,p,e,N)},x.rotate=function(a){var r=Math.cos(a),i=Math.sin(a),p=this._transformMatrix;this._transformMatrix=[p[0]*r+p[2]*i,p[1]*r+p[3]*i,p[0]*-i+p[2]*r,p[1]*-i+p[3]*r,p[4],p[5]],this._originalRotate(a)})}var CachedCanvases=function(){function t(a){this.canvasFactory=a,this.cache=Object.create(null)}return t.prototype={getCanvas:function(r,i,p,e){var N;return this.cache[r]!==void 0?(N=this.cache[r],this.canvasFactory.reset(N,i,p),N.context.setTransform(1,0,0,1,0,0)):(N=this.canvasFactory.create(i,p),this.cache[r]=N),e&&addContextCurrentTransform(N.context),N},clear(){for(var a in this.cache){var r=this.cache[a];this.canvasFactory.destroy(r),delete this.cache[a]}}},t}();function compileType3Glyph(x){var t=1e3,a=x.width,r=x.height,i,p,e,N=a+1,w=new Uint8Array(N*(r+1)),$=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),U=a+7&-8,m=x.data,n=new Uint8Array(U*r),J=0,O;for(i=0,O=m.length;i<O;i++)for(var L=128,M=m[i];L>0;)n[J++]=M&L?0:255,L>>=1;var P=0;for(J=0,n[J]!==0&&(w[0]=1,++P),p=1;p<a;p++)n[J]!==n[J+1]&&(w[p]=n[J]?2:1,++P),J++;for(n[J]!==0&&(w[p]=2,++P),i=1;i<r;i++){J=i*U,e=i*N,n[J-U]!==n[J]&&(w[e]=n[J]?1:8,++P);var b=(n[J]?4:0)+(n[J-U]?8:0);for(p=1;p<a;p++)b=(b>>2)+(n[J+1]?4:0)+(n[J-U+1]?8:0),$[b]&&(w[e+p]=$[b],++P),J++;if(n[J-U]!==n[J]&&(w[e+p]=n[J]?2:4,++P),P>t)return null}for(J=U*(r-1),e=i*N,n[J]!==0&&(w[e]=8,++P),p=1;p<a;p++)n[J]!==n[J+1]&&(w[e+p]=n[J]?4:8,++P),J++;if(n[J]!==0&&(w[e+p]=4,++P),P>t)return null;var _=new Int32Array([0,N,-1,0,-N,0,0,0,1]),d=[];for(i=0;P&&i<=r;i++){for(var c=i*N,h=c+a;c<h&&!w[c];)c++;if(c!==h){var f=[c%N,i],g=w[c],v=c,s;do{var o=_[g];do c+=o;while(!w[c]);s=w[c],s!==5&&s!==10?(g=s,w[c]=0):(g=s&51*g>>4,w[c]&=g>>2|g<<2),f.push(c%N),f.push(c/N|0),w[c]||--P}while(v!==c);d.push(f),--i}}var u=function(l){l.save(),l.scale(1/a,-1/r),l.translate(0,-r),l.beginPath();for(var F=0,T=d.length;F<T;F++){var D=d[F];l.moveTo(D[0],D[1]);for(var k=2,S=D.length;k<S;k+=2)l.lineTo(D[k],D[k+1])}l.fill(),l.beginPath(),l.restore()};return u}var CanvasExtraState=function(){function t(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=_util$c.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=_util$c.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=_util$c.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.resumeSMaskCtx=null}return t.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(r,i){this.x=r,this.y=i}},t}(),CanvasGraphics=function(){var t=15,a=10;function r(b,_,d,c,h,f){this.ctx=b,this.current=new CanvasExtraState,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=_,this.objs=d,this.canvasFactory=c,this.webGLContext=h,this.imageLayer=f,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new CachedCanvases(this.canvasFactory),b&&addContextCurrentTransform(b),this._cachedGetSinglePixelWidth=null}function i(b,_){if(typeof ImageData<"u"&&_ instanceof ImageData){b.putImageData(_,0,0);return}var d=_.height,c=_.width,h=d%FULL_CHUNK_HEIGHT,f=(d-h)/FULL_CHUNK_HEIGHT,g=h===0?f:f+1,v=b.createImageData(c,FULL_CHUNK_HEIGHT),s=0,o,u=_.data,l=v.data,F,T,D,k;if(_.kind===_util$c.ImageKind.GRAYSCALE_1BPP){var S=u.byteLength,R=new Uint32Array(l.buffer,0,l.byteLength>>2),E=R.length,A=c+7>>3,C=4294967295,y=_util$c.IsLittleEndianCached.value?4278190080:255;for(F=0;F<g;F++){for(D=F<f?FULL_CHUNK_HEIGHT:h,o=0,T=0;T<D;T++){for(var I=S-s,H=0,V=I>A?c:I*8-7,B=V&-8,W=0,G=0;H<B;H+=8)G=u[s++],R[o++]=G&128?C:y,R[o++]=G&64?C:y,R[o++]=G&32?C:y,R[o++]=G&16?C:y,R[o++]=G&8?C:y,R[o++]=G&4?C:y,R[o++]=G&2?C:y,R[o++]=G&1?C:y;for(;H<V;H++)W===0&&(G=u[s++],W=128),R[o++]=G&W?C:y,W>>=1}for(;o<E;)R[o++]=0;b.putImageData(v,0,F*FULL_CHUNK_HEIGHT)}}else if(_.kind===_util$c.ImageKind.RGBA_32BPP){for(T=0,k=c*FULL_CHUNK_HEIGHT*4,F=0;F<f;F++)l.set(u.subarray(s,s+k)),s+=k,b.putImageData(v,0,T),T+=FULL_CHUNK_HEIGHT;F<g&&(k=c*h*4,l.set(u.subarray(s,s+k)),b.putImageData(v,0,T))}else if(_.kind===_util$c.ImageKind.RGB_24BPP)for(D=FULL_CHUNK_HEIGHT,k=c*D,F=0;F<g;F++){for(F>=f&&(D=h,k=c*D),o=0,T=k;T--;)l[o++]=u[s++],l[o++]=u[s++],l[o++]=u[s++],l[o++]=255;b.putImageData(v,0,F*FULL_CHUNK_HEIGHT)}else throw new Error(`bad image kind: ${_.kind}`)}function p(b,_){for(var d=_.height,c=_.width,h=d%FULL_CHUNK_HEIGHT,f=(d-h)/FULL_CHUNK_HEIGHT,g=h===0?f:f+1,v=b.createImageData(c,FULL_CHUNK_HEIGHT),s=0,o=_.data,u=v.data,l=0;l<g;l++){for(var F=l<f?FULL_CHUNK_HEIGHT:h,T=3,D=0;D<F;D++)for(var k=0,S=0;S<c;S++){if(!k){var R=o[s++];k=128}u[T]=R&k?0:255,T+=4,k>>=1}b.putImageData(v,0,l*FULL_CHUNK_HEIGHT)}}function e(b,_){for(var d=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],c=0,h=d.length;c<h;c++){var f=d[c];b[f]!==void 0&&(_[f]=b[f])}b.setLineDash!==void 0&&(_.setLineDash(b.getLineDash()),_.lineDashOffset=b.lineDashOffset)}function N(b){b.strokeStyle="#000000",b.fillStyle="#000000",b.fillRule="nonzero",b.globalAlpha=1,b.lineWidth=1,b.lineCap="butt",b.lineJoin="miter",b.miterLimit=10,b.globalCompositeOperation="source-over",b.font="10px sans-serif",b.setLineDash!==void 0&&(b.setLineDash([]),b.lineDashOffset=0)}function w(b,_,d,c){for(var h=b.length,f=3;f<h;f+=4){var g=b[f];if(g===0)b[f-3]=_,b[f-2]=d,b[f-1]=c;else if(g<255){var v=255-g;b[f-3]=b[f-3]*g+_*v>>8,b[f-2]=b[f-2]*g+d*v>>8,b[f-1]=b[f-1]*g+c*v>>8}}}function $(b,_,d){for(var c=b.length,h=1/255,f=3;f<c;f+=4){var g=d?d[b[f]]:b[f];_[f]=_[f]*g*h|0}}function U(b,_,d){for(var c=b.length,h=3;h<c;h+=4){var f=b[h-3]*77+b[h-2]*152+b[h-1]*28;_[h]=d?_[h]*d[f>>8]>>8:_[h]*f>>16}}function m(b,_,d,c,h,f,g){var v=!!f,s=v?f[0]:0,o=v?f[1]:0,u=v?f[2]:0,l;h==="Luminosity"?l=U:l=$;for(var F=1048576,T=Math.min(c,Math.ceil(F/d)),D=0;D<c;D+=T){var k=Math.min(T,c-D),S=b.getImageData(0,D,d,k),R=_.getImageData(0,D,d,k);v&&w(S.data,s,o,u),l(S.data,R.data,g),b.putImageData(R,0,D)}}function n(b,_,d,c){var h=_.canvas,f=_.context;b.setTransform(_.scaleX,0,0,_.scaleY,_.offsetX,_.offsetY);var g=_.backdrop||null;if(!_.transferMap&&c.isEnabled){const v=c.composeSMask({layer:d.canvas,mask:h,properties:{subtype:_.subtype,backdrop:g}});b.setTransform(1,0,0,1,0,0),b.drawImage(v,_.offsetX,_.offsetY);return}m(f,d,h.width,h.height,_.subtype,g,_.transferMap),b.drawImage(h,0,0)}var J=["butt","round","square"],O=["miter","round","bevel"],L={},M={};r.prototype={beginDrawing({transform:b,viewport:_,transparency:d=!1,background:c=null}){var h=this.ctx.canvas.width,f=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=c||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,h,f),this.ctx.restore(),d){var g=this.cachedCanvases.getCanvas("transparent",h,f,!0);this.compositeCtx=this.ctx,this.transparentCanvas=g.canvas,this.ctx=g.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),N(this.ctx),b&&this.ctx.transform.apply(this.ctx,b),this.ctx.transform.apply(this.ctx,_.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(_,d,c,h){var f=_.argsArray,g=_.fnArray,v=d||0,s=f.length;if(s===v)return v;for(var o=s-v>a&&typeof c=="function",u=o?Date.now()+t:0,l=0,F=this.commonObjs,T=this.objs,D;;){if(h!==void 0&&v===h.nextBreakPoint)return h.breakIt(v,c),v;if(D=g[v],D!==_util$c.OPS.dependency)this[D].apply(this,f[v]);else for(const k of f[v]){const S=k.startsWith("g_")?F:T;if(!S.has(k))return S.get(k,c),v}if(v++,v===s)return v;if(o&&++l>a){if(Date.now()>u)return c(),v;l=0}}},endDrawing:function(){this.current.activeSMask!==null&&this.endSMaskGroup(),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),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(_){this.current.lineWidth=_,this.ctx.lineWidth=_},setLineCap:function(_){this.ctx.lineCap=J[_]},setLineJoin:function(_){this.ctx.lineJoin=O[_]},setMiterLimit:function(_){this.ctx.miterLimit=_},setDash:function(_,d){var c=this.ctx;c.setLineDash!==void 0&&(c.setLineDash(_),c.lineDashOffset=d)},setRenderingIntent(b){},setFlatness(b){},setGState:function(_){for(var d=0,c=_.length;d<c;d++){var h=_[d],f=h[0],g=h[1];switch(f){case"LW":this.setLineWidth(g);break;case"LC":this.setLineCap(g);break;case"LJ":this.setLineJoin(g);break;case"ML":this.setMiterLimit(g);break;case"D":this.setDash(g[0],g[1]);break;case"RI":this.setRenderingIntent(g);break;case"FL":this.setFlatness(g);break;case"Font":this.setFont(g[0],g[1]);break;case"CA":this.current.strokeAlpha=h[1];break;case"ca":this.current.fillAlpha=h[1],this.ctx.globalAlpha=h[1];break;case"BM":this.ctx.globalCompositeOperation=g;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=g?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null;break}}},beginSMaskGroup:function(){var _=this.current.activeSMask,d=_.canvas.width,c=_.canvas.height,h="smaskGroupAt"+this.groupLevel,f=this.cachedCanvases.getCanvas(h,d,c,!0),g=this.ctx,v=g.mozCurrentTransform;this.ctx.save();var s=f.context;s.scale(1/_.scaleX,1/_.scaleY),s.translate(-_.offsetX,-_.offsetY),s.transform.apply(s,v),_.startTransformInverse=s.mozCurrentTransformInverse,e(g,s),this.ctx=s,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(g),this.groupLevel++},suspendSMaskGroup:function(){var _=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),n(this.ctx,this.current.activeSMask,_,this.webGLContext),this.ctx.restore(),this.ctx.save(),e(_,this.ctx),this.current.resumeSMaskCtx=_;var d=_util$c.Util.transform(this.current.activeSMask.startTransformInverse,_.mozCurrentTransform);this.ctx.transform.apply(this.ctx,d),_.save(),_.setTransform(1,0,0,1,0,0),_.clearRect(0,0,_.canvas.width,_.canvas.height),_.restore()},resumeSMaskGroup:function(){var _=this.current.resumeSMaskCtx,d=this.ctx;this.ctx=_,this.groupStack.push(d),this.groupLevel++},endSMaskGroup:function(){var _=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),n(this.ctx,this.current.activeSMask,_,this.webGLContext),this.ctx.restore(),e(_,this.ctx);var d=_util$c.Util.transform(this.current.activeSMask.startTransformInverse,_.mozCurrentTransform);this.ctx.transform.apply(this.ctx,d)},save:function(){this.ctx.save();var _=this.current;this.stateStack.push(_),this.current=_.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),this.current.activeSMask!==null&&(this.stateStack.length===0||this.stateStack[this.stateStack.length-1].activeSMask!==this.current.activeSMask)&&this.endSMaskGroup(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(_,d,c,h,f,g){this.ctx.transform(_,d,c,h,f,g),this._cachedGetSinglePixelWidth=null},constructPath:function(_,d){for(var c=this.ctx,h=this.current,f=h.x,g=h.y,v=0,s=0,o=_.length;v<o;v++)switch(_[v]|0){case _util$c.OPS.rectangle:f=d[s++],g=d[s++];var u=d[s++],l=d[s++];u===0&&(u=this.getSinglePixelWidth()),l===0&&(l=this.getSinglePixelWidth());var F=f+u,T=g+l;this.ctx.moveTo(f,g),this.ctx.lineTo(F,g),this.ctx.lineTo(F,T),this.ctx.lineTo(f,T),this.ctx.lineTo(f,g),this.ctx.closePath();break;case _util$c.OPS.moveTo:f=d[s++],g=d[s++],c.moveTo(f,g);break;case _util$c.OPS.lineTo:f=d[s++],g=d[s++],c.lineTo(f,g);break;case _util$c.OPS.curveTo:f=d[s+4],g=d[s+5],c.bezierCurveTo(d[s],d[s+1],d[s+2],d[s+3],f,g),s+=6;break;case _util$c.OPS.curveTo2:c.bezierCurveTo(f,g,d[s],d[s+1],d[s+2],d[s+3]),f=d[s+2],g=d[s+3],s+=4;break;case _util$c.OPS.curveTo3:f=d[s+2],g=d[s+3],c.bezierCurveTo(d[s],d[s+1],f,g,f,g),s+=4;break;case _util$c.OPS.closePath:c.closePath();break}h.setCurrentPoint(f,g)},closePath:function(){this.ctx.closePath()},stroke:function(_){_=typeof _<"u"?_:!0;var d=this.ctx,c=this.current.strokeColor;if(d.globalAlpha=this.current.strokeAlpha,c&&c.hasOwnProperty("type")&&c.type==="Pattern"){d.save();const h=d.mozCurrentTransform,f=_util$c.Util.singularValueDecompose2dScale(h)[0];d.strokeStyle=c.getPattern(d,this),d.lineWidth=Math.max(this.getSinglePixelWidth()*MIN_WIDTH_FACTOR,this.current.lineWidth*f),d.stroke(),d.restore()}else d.lineWidth=Math.max(this.getSinglePixelWidth()*MIN_WIDTH_FACTOR,this.current.lineWidth),d.stroke();_&&this.consumePath(),d.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(_){_=typeof _<"u"?_:!0;var d=this.ctx,c=this.current.fillColor,h=this.current.patternFill,f=!1;h&&(d.save(),this.baseTransform&&d.setTransform.apply(d,this.baseTransform),d.fillStyle=c.getPattern(d,this),f=!0),this.pendingEOFill?(d.fill("evenodd"),this.pendingEOFill=!1):d.fill(),f&&d.restore(),_&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=L},eoClip:function(){this.pendingClip=M},beginText:function(){this.current.textMatrix=_util$c.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var _=this.pendingTextPaths,d=this.ctx;if(_===void 0){d.beginPath();return}d.save(),d.beginPath();for(var c=0;c<_.length;c++){var h=_[c];d.setTransform.apply(d,h.transform),d.translate(h.x,h.y),h.addToPath(d,h.fontSize)}d.restore(),d.clip(),d.beginPath(),delete this.pendingTextPaths},setCharSpacing:function(_){this.current.charSpacing=_},setWordSpacing:function(_){this.current.wordSpacing=_},setHScale:function(_){this.current.textHScale=_/100},setLeading:function(_){this.current.leading=-_},setFont:function(_,d){var c=this.commonObjs.get(_),h=this.current;if(!c)throw new Error(`Can't find font for ${_}`);if(h.fontMatrix=c.fontMatrix?c.fontMatrix:_util$c.FONT_IDENTITY_MATRIX,(h.fontMatrix[0]===0||h.fontMatrix[3]===0)&&(0,_util$c.warn)("Invalid font matrix for font "+_),d<0?(d=-d,h.fontDirection=-1):h.fontDirection=1,this.current.font=c,this.current.fontSize=d,c.isType3Font)return;var f=c.loadedName||"sans-serif";let g="normal";c.black?g="900":c.bold&&(g="bold");var v=c.italic?"italic":"normal",s=`"${f}", ${c.fallbackName}`;let o=d;d<MIN_FONT_SIZE?o=MIN_FONT_SIZE:d>MAX_FONT_SIZE&&(o=MAX_FONT_SIZE),this.current.fontSizeScale=d/o,this.ctx.font=`${v} ${g} ${o}px ${s}`},setTextRenderingMode:function(_){this.current.textRenderingMode=_},setTextRise:function(_){this.current.textRise=_},moveText:function(_,d){this.current.x=this.current.lineX+=_,this.current.y=this.current.lineY+=d},setLeadingMoveText:function(_,d){this.setLeading(-d),this.moveText(_,d)},setTextMatrix:function(_,d,c,h,f,g){this.current.textMatrix=[_,d,c,h,f,g],this.current.textMatrixScale=Math.sqrt(_*_+d*d),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar(b,_,d,c){var h=this.ctx,f=this.current,g=f.font,v=f.textRenderingMode,s=f.fontSize/f.fontSizeScale,o=v&_util$c.TextRenderingMode.FILL_STROKE_MASK,u=!!(v&_util$c.TextRenderingMode.ADD_TO_PATH_FLAG);const l=f.patternFill&&g.data;var F;if((g.disableFontFace||u||l)&&(F=g.getPathGenerator(this.commonObjs,b)),g.disableFontFace||l?(h.save(),h.translate(_,d),h.beginPath(),F(h,s),c&&h.setTransform.apply(h,c),(o===_util$c.TextRenderingMode.FILL||o===_util$c.TextRenderingMode.FILL_STROKE)&&h.fill(),(o===_util$c.TextRenderingMode.STROKE||o===_util$c.TextRenderingMode.FILL_STROKE)&&h.stroke(),h.restore()):((o===_util$c.TextRenderingMode.FILL||o===_util$c.TextRenderingMode.FILL_STROKE)&&h.fillText(b,_,d),(o===_util$c.TextRenderingMode.STROKE||o===_util$c.TextRenderingMode.FILL_STROKE)&&h.strokeText(b,_,d)),u){var T=this.pendingTextPaths||(this.pendingTextPaths=[]);T.push({transform:h.mozCurrentTransform,x:_,y:d,fontSize:s,addToPath:F})}},get isFontSubpixelAAEnabled(){const{context:b}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);b.scale(1.5,1),b.fillText("I",0,10);for(var _=b.getImageData(0,0,10,10).data,d=!1,c=3;c<_.length;c+=4)if(_[c]>0&&_[c]<255){d=!0;break}return(0,_util$c.shadow)(this,"isFontSubpixelAAEnabled",d)},showText:function(_){var d=this.current,c=d.font;if(c.isType3Font)return this.showType3Text(_);var h=d.fontSize;if(h===0)return;var f=this.ctx,g=d.fontSizeScale,v=d.charSpacing,s=d.wordSpacing,o=d.fontDirection,u=d.textHScale*o,l=_.length,F=c.vertical,T=F?1:-1,D=c.defaultVMetrics,k=h*d.fontMatrix[0],S=d.textRenderingMode===_util$c.TextRenderingMode.FILL&&!c.disableFontFace&&!d.patternFill;f.save();let R;if(d.patternFill){f.save();const ie=d.fillColor.getPattern(f,this);R=f.mozCurrentTransform,f.restore(),f.fillStyle=ie}f.transform.apply(f,d.textMatrix),f.translate(d.x,d.y+d.textRise),o>0?f.scale(u,-1):f.scale(u,1);var E=d.lineWidth,A=d.textMatrixScale;if(A===0||E===0){var C=d.textRenderingMode&_util$c.TextRenderingMode.FILL_STROKE_MASK;(C===_util$c.TextRenderingMode.STROKE||C===_util$c.TextRenderingMode.FILL_STROKE)&&(this._cachedGetSinglePixelWidth=null,E=this.getSinglePixelWidth()*MIN_WIDTH_FACTOR)}else E/=A;g!==1&&(f.scale(g,g),E/=g),f.lineWidth=E;var y=0,I;for(I=0;I<l;++I){var H=_[I];if((0,_util$c.isNum)(H)){y+=T*H*h/1e3;continue}var V=!1,B=(H.isSpace?s:0)+v,W=H.fontChar,G=H.accent,q,z,j,Y,K=H.width;if(F){var Z,ee,ne;Z=H.vmetric||D,ee=H.vmetric?Z[1]:K*.5,ee=-ee*k,ne=Z[2]*k,K=Z?-Z[0]:K,q=ee/g,z=(y+ne)/g}else q=y/g,z=0;if(c.remeasure&&K>0){var ae=f.measureText(W).width*1e3/h*g;if(K<ae&&this.isFontSubpixelAAEnabled){var te=K/ae;V=!0,f.save(),f.scale(te,1),q/=te}else K!==ae&&(q+=(K-ae)/2e3*h/g)}(H.isInFont||c.missingFile)&&(S&&!G?f.fillText(W,q,z):(this.paintChar(W,q,z,R),G&&(j=q+G.offset.x/g,Y=z-G.offset.y/g,this.paintChar(G.fontChar,j,Y,R))));var re;F?re=K*k-B*o:re=K*k+B*o,y+=re,V&&f.restore()}F?d.y-=y:d.x+=y*u,f.restore()},showType3Text:function(_){var d=this.ctx,c=this.current,h=c.font,f=c.fontSize,g=c.fontDirection,v=h.vertical?1:-1,s=c.charSpacing,o=c.wordSpacing,u=c.textHScale*g,l=c.fontMatrix||_util$c.FONT_IDENTITY_MATRIX,F=_.length,T=c.textRenderingMode===_util$c.TextRenderingMode.INVISIBLE,D,k,S,R;if(!(T||f===0)){for(this._cachedGetSinglePixelWidth=null,d.save(),d.transform.apply(d,c.textMatrix),d.translate(c.x,c.y),d.scale(u,g),D=0;D<F;++D){if(k=_[D],(0,_util$c.isNum)(k)){R=v*k*f/1e3,this.ctx.translate(R,0),c.x+=R*u;continue}var E=(k.isSpace?o:0)+s,A=h.charProcOperatorList[k.operatorListId];if(!A){(0,_util$c.warn)(`Type3 character "${k.operatorListId}" is not available.`);continue}this.processingType3=k,this.save(),d.scale(f,f),d.transform.apply(d,l),this.executeOperatorList(A),this.restore();var C=_util$c.Util.applyTransform([k.width,0],l);S=C[0]*f+E,d.translate(S,0),c.x+=S*u}d.restore(),this.processingType3=null}},setCharWidth:function(_,d){},setCharWidthAndBounds:function(_,d,c,h,f,g){this.ctx.rect(c,h,f-c,g-h),this.clip(),this.endPath()},getColorN_Pattern:function(_){var d;if(_[0]==="TilingPattern"){var c=_[1],h=this.baseTransform||this.ctx.mozCurrentTransform.slice(),f={createCanvasGraphics:g=>new r(g,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext)};d=new _pattern_helper.TilingPattern(_,c,this.ctx,f,h)}else d=(0,_pattern_helper.getShadingPatternFromIR)(_);return d},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(_,d,c){var h=_util$c.Util.makeCssRgb(_,d,c);this.ctx.strokeStyle=h,this.current.strokeColor=h},setFillRGBColor:function(_,d,c){var h=_util$c.Util.makeCssRgb(_,d,c);this.ctx.fillStyle=h,this.current.fillColor=h,this.current.patternFill=!1},shadingFill:function(_){var d=this.ctx;this.save();var c=(0,_pattern_helper.getShadingPatternFromIR)(_);d.fillStyle=c.getPattern(d,this,!0);var h=d.mozCurrentTransformInverse;if(h){var f=d.canvas,g=f.width,v=f.height,s=_util$c.Util.applyTransform([0,0],h),o=_util$c.Util.applyTransform([0,v],h),u=_util$c.Util.applyTransform([g,0],h),l=_util$c.Util.applyTransform([g,v],h),F=Math.min(s[0],o[0],u[0],l[0]),T=Math.min(s[1],o[1],u[1],l[1]),D=Math.max(s[0],o[0],u[0],l[0]),k=Math.max(s[1],o[1],u[1],l[1]);this.ctx.fillRect(F,T,D-F,k-T)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,_util$c.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,_util$c.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(_,d){if(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(_)&&_.length===6&&this.transform.apply(this,_),this.baseTransform=this.ctx.mozCurrentTransform,d){var c=d[2]-d[0],h=d[3]-d[1];this.ctx.rect(d[0],d[1],c,h),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(_){this.save();var d=this.ctx;_.isolated||(0,_util$c.info)("TODO: Support non-isolated groups."),_.knockout&&(0,_util$c.warn)("Knockout groups not supported.");var c=d.mozCurrentTransform;if(_.matrix&&d.transform.apply(d,_.matrix),!_.bbox)throw new Error("Bounding box is required.");var h=_util$c.Util.getAxialAlignedBoundingBox(_.bbox,d.mozCurrentTransform),f=[0,0,d.canvas.width,d.canvas.height];h=_util$c.Util.intersect(h,f)||[0,0,0,0];var g=Math.floor(h[0]),v=Math.floor(h[1]),s=Math.max(Math.ceil(h[2])-g,1),o=Math.max(Math.ceil(h[3])-v,1),u=1,l=1;s>MAX_GROUP_SIZE&&(u=s/MAX_GROUP_SIZE,s=MAX_GROUP_SIZE),o>MAX_GROUP_SIZE&&(l=o/MAX_GROUP_SIZE,o=MAX_GROUP_SIZE);var F="groupAt"+this.groupLevel;_.smask&&(F+="_smask_"+this.smaskCounter++%2);var T=this.cachedCanvases.getCanvas(F,s,o,!0),D=T.context;D.scale(1/u,1/l),D.translate(-g,-v),D.transform.apply(D,c),_.smask?this.smaskStack.push({canvas:T.canvas,context:D,offsetX:g,offsetY:v,scaleX:u,scaleY:l,subtype:_.smask.subtype,backdrop:_.smask.backdrop,transferMap:_.smask.transferMap||null,startTransformInverse:null}):(d.setTransform(1,0,0,1,0,0),d.translate(g,v),d.scale(u,l)),e(d,D),this.ctx=D,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(d),this.groupLevel++,this.current.activeSMask=null},endGroup:function(_){this.groupLevel--;var d=this.ctx;this.ctx=this.groupStack.pop(),this.ctx.imageSmoothingEnabled!==void 0?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,_.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(d.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(_,d,c){if(this.save(),N(this.ctx),this.current=new CanvasExtraState,Array.isArray(_)&&_.length===4){var h=_[2]-_[0],f=_[3]-_[1];this.ctx.rect(_[0],_[1],h,f),this.clip(),this.endPath()}this.transform.apply(this,d),this.transform.apply(this,c)},endAnnotation:function(){this.restore()},paintJpegXObject:function(_,d,c){const h=this.processingType3?this.commonObjs.get(_):this.objs.get(_);if(!h){(0,_util$c.warn)("Dependent image isn't ready yet");return}this.save();var f=this.ctx;if(f.scale(1/d,-1/c),f.drawImage(h,0,0,h.width,h.height,0,-c,d,c),this.imageLayer){var g=f.mozCurrentTransformInverse,v=this.getCanvasPosition(0,0);this.imageLayer.appendImage({objId:_,left:v[0],top:v[1],width:d/g[0],height:c/g[3]})}this.restore()},paintImageMaskXObject:function(_){var d=this.ctx,c=_.width,h=_.height,f=this.current.fillColor,g=this.current.patternFill,v=this.processingType3;if(v&&v.compiled===void 0&&(c<=MAX_SIZE_TO_COMPILE&&h<=MAX_SIZE_TO_COMPILE?v.compiled=compileType3Glyph({data:_.data,width:c,height:h}):v.compiled=null),v&&v.compiled){v.compiled(d);return}var s=this.cachedCanvases.getCanvas("maskCanvas",c,h),o=s.context;o.save(),p(o,_),o.globalCompositeOperation="source-in",o.fillStyle=g?f.getPattern(o,this):f,o.fillRect(0,0,c,h),o.restore(),this.paintInlineImageXObject(s.canvas)},paintImageMaskXObjectRepeat:function(_,d,c,h){var f=_.width,g=_.height,v=this.current.fillColor,s=this.current.patternFill,o=this.cachedCanvases.getCanvas("maskCanvas",f,g),u=o.context;u.save(),p(u,_),u.globalCompositeOperation="source-in",u.fillStyle=s?v.getPattern(u,this):v,u.fillRect(0,0,f,g),u.restore();for(var l=this.ctx,F=0,T=h.length;F<T;F+=2)l.save(),l.transform(d,0,0,c,h[F],h[F+1]),l.scale(1,-1),l.drawImage(o.canvas,0,0,f,g,0,-1,1,1),l.restore()},paintImageMaskXObjectGroup:function(_){for(var d=this.ctx,c=this.current.fillColor,h=this.current.patternFill,f=0,g=_.length;f<g;f++){var v=_[f],s=v.width,o=v.height,u=this.cachedCanvases.getCanvas("maskCanvas",s,o),l=u.context;l.save(),p(l,v),l.globalCompositeOperation="source-in",l.fillStyle=h?c.getPattern(l,this):c,l.fillRect(0,0,s,o),l.restore(),d.save(),d.transform.apply(d,v.transform),d.scale(1,-1),d.drawImage(u.canvas,0,0,s,o,0,-1,1,1),d.restore()}},paintImageXObject:function(_){const d=this.processingType3?this.commonObjs.get(_):this.objs.get(_);if(!d){(0,_util$c.warn)("Dependent image isn't ready yet");return}this.paintInlineImageXObject(d)},paintImageXObjectRepeat:function(_,d,c,h){const f=this.processingType3?this.commonObjs.get(_):this.objs.get(_);if(!f){(0,_util$c.warn)("Dependent image isn't ready yet");return}for(var g=f.width,v=f.height,s=[],o=0,u=h.length;o<u;o+=2)s.push({transform:[d,0,0,c,h[o],h[o+1]],x:0,y:0,w:g,h:v});this.paintInlineImageXObjectGroup(f,s)},paintInlineImageXObject:function(_){var d=_.width,c=_.height,h=this.ctx;this.save(),h.scale(1/d,-1/c);var f=h.mozCurrentTransformInverse,g=f[0],v=f[1],s=Math.max(Math.sqrt(g*g+v*v),1),o=f[2],u=f[3],l=Math.max(Math.sqrt(o*o+u*u),1),F,T;if(typeof HTMLElement=="function"&&_ instanceof HTMLElement||!_.data)F=_;else{T=this.cachedCanvases.getCanvas("inlineImage",d,c);var D=T.context;i(D,_),F=T.canvas}for(var k=d,S=c,R="prescale1";s>2&&k>1||l>2&&S>1;){var E=k,A=S;s>2&&k>1&&(E=Math.ceil(k/2),s/=k/E),l>2&&S>1&&(A=Math.ceil(S/2),l/=S/A),T=this.cachedCanvases.getCanvas(R,E,A),D=T.context,D.clearRect(0,0,E,A),D.drawImage(F,0,0,k,S,0,0,E,A),F=T.canvas,k=E,S=A,R=R==="prescale1"?"prescale2":"prescale1"}if(h.drawImage(F,0,0,k,S,0,-c,d,c),this.imageLayer){var C=this.getCanvasPosition(0,-c);this.imageLayer.appendImage({imgData:_,left:C[0],top:C[1],width:d/f[0],height:c/f[3]})}this.restore()},paintInlineImageXObjectGroup:function(_,d){var c=this.ctx,h=_.width,f=_.height,g=this.cachedCanvases.getCanvas("inlineImage",h,f),v=g.context;i(v,_);for(var s=0,o=d.length;s<o;s++){var u=d[s];if(c.save(),c.transform.apply(c,u.transform),c.scale(1,-1),c.drawImage(g.canvas,u.x,u.y,u.w,u.h,0,-1,1,1),this.imageLayer){var l=this.getCanvasPosition(u.x,u.y);this.imageLayer.appendImage({imgData:_,left:l[0],top:l[1],width:h,height:f})}c.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,_util$c.warn)("Unsupported 'paintXObject' command.")},markPoint:function(_){},markPointProps:function(_,d){},beginMarkedContent:function(_){},beginMarkedContentProps:function(_,d){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var _=this.ctx;this.pendingClip&&(this.pendingClip===M?_.clip("evenodd"):_.clip(),this.pendingClip=null),_.beginPath()},getSinglePixelWidth(b){if(this._cachedGetSinglePixelWidth===null){const _=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(_[0]*_[0]+_[1]*_[1],_[2]*_[2]+_[3]*_[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(_,d){var c=this.ctx.mozCurrentTransform;return[c[0]*_+c[2]*d+c[4],c[1]*_+c[3]*d+c[5]]}};for(var P in _util$c.OPS)r.prototype[_util$c.OPS[P]]=r.prototype[P];return r}();exports$S.CanvasGraphics=CanvasGraphics;const __CJS__export_default__$O=(module$S.exports==null?{}:module$S.exports).default||module$S.exports,__CJS__export_CanvasGraphics__=(module$S.exports==null?{}:module$S.exports).CanvasGraphics,__CJS__import__4__$3=Object.freeze(Object.defineProperty({__proto__:null,CanvasGraphics:__CJS__export_CanvasGraphics__,default:__CJS__export_default__$O},Symbol.toStringTag,{value:"Module"}));var module$R={exports:{}},exports$R=module$R.exports;Object.defineProperty(exports$R,"__esModule",{value:!0});exports$R.GlobalWorkerOptions=void 0;const GlobalWorkerOptions=Object.create(null);exports$R.GlobalWorkerOptions=GlobalWorkerOptions;GlobalWorkerOptions.workerPort=GlobalWorkerOptions.workerPort===void 0?null:GlobalWorkerOptions.workerPort;GlobalWorkerOptions.workerSrc=GlobalWorkerOptions.workerSrc===void 0?"":GlobalWorkerOptions.workerSrc;const __CJS__export_default__$N=(module$R.exports==null?{}:module$R.exports).default||module$R.exports,__CJS__export_GlobalWorkerOptions__$1=(module$R.exports==null?{}:module$R.exports).GlobalWorkerOptions,__CJS__import__6__$2=Object.freeze(Object.defineProperty({__proto__:null,GlobalWorkerOptions:__CJS__export_GlobalWorkerOptions__$1,default:__CJS__export_default__$N},Symbol.toStringTag,{value:"Module"}));var module$Q={exports:{}},exports$Q=module$Q.exports;Object.defineProperty(exports$Q,"__esModule",{value:!0});exports$Q.MessageHandler=void 0;var _util$b=__CJS__export_default__$U||__CJS__import__0__$4;const CallbackKind={DATA:1,ERROR:2},StreamKind={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function wrapReason(x){if(typeof x!="object"||x===null)return x;switch(x.name){case"AbortException":return new _util$b.AbortException(x.message);case"MissingPDFException":return new _util$b.MissingPDFException(x.message);case"UnexpectedResponseException":return new _util$b.UnexpectedResponseException(x.message,x.status);case"UnknownErrorException":return new _util$b.UnknownErrorException(x.message,x.details);default:return new _util$b.UnknownErrorException(x.message,x.toString())}}class MessageHandler{constructor(t,a,r){this.sourceName=t,this.targetName=a,this.comObj=r,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=i=>{const p=i.data;if(p.targetName!==this.sourceName)return;if(p.stream){this._processStreamMessage(p);return}if(p.callback){const N=p.callbackId,w=this.callbackCapabilities[N];if(!w)throw new Error(`Cannot resolve callback ${N}`);if(delete this.callbackCapabilities[N],p.callback===CallbackKind.DATA)w.resolve(p.data);else if(p.callback===CallbackKind.ERROR)w.reject(wrapReason(p.reason));else throw new Error("Unexpected callback case");return}const e=this.actionHandler[p.action];if(!e)throw new Error(`Unknown action from worker: ${p.action}`);if(p.callbackId){const N=this.sourceName,w=p.sourceName;new Promise(function($){$(e(p.data))}).then(function($){r.postMessage({sourceName:N,targetName:w,callback:CallbackKind.DATA,callbackId:p.callbackId,data:$})},function($){r.postMessage({sourceName:N,targetName:w,callback:CallbackKind.ERROR,callbackId:p.callbackId,reason:wrapReason($)})});return}if(p.streamId){this._createStreamSink(p);return}e(p.data)},r.addEventListener("message",this._onComObjOnMessage)}on(t,a){const r=this.actionHandler;if(r[t])throw new Error(`There is already an actionName called "${t}"`);r[t]=a}send(t,a,r){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:a},r)}sendWithPromise(t,a,r){const i=this.callbackId++,p=(0,_util$b.createPromiseCapability)();this.callbackCapabilities[i]=p;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:i,data:a},r)}catch(e){p.reject(e)}return p.promise}sendWithStream(t,a,r,i){const p=this.streamId++,e=this.sourceName,N=this.targetName,w=this.comObj;return new ReadableStream({start:$=>{const U=(0,_util$b.createPromiseCapability)();return this.streamControllers[p]={controller:$,startCall:U,pullCall:null,cancelCall:null,isClosed:!1},this._postMessage({sourceName:e,targetName:N,action:t,streamId:p,data:a,desiredSize:$.desiredSize},i),U.promise},pull:$=>{const U=(0,_util$b.createPromiseCapability)();return this.streamControllers[p].pullCall=U,w.postMessage({sourceName:e,targetName:N,stream:StreamKind.PULL,streamId:p,desiredSize:$.desiredSize}),U.promise},cancel:$=>{(0,_util$b.assert)($ instanceof Error,"cancel must have a valid reason");const U=(0,_util$b.createPromiseCapability)();return this.streamControllers[p].cancelCall=U,this.streamControllers[p].isClosed=!0,w.postMessage({sourceName:e,targetName:N,stream:StreamKind.CANCEL,streamId:p,reason:wrapReason($)}),U.promise}},r)}_createStreamSink(t){const a=this,r=this.actionHandler[t.action],i=t.streamId,p=this.sourceName,e=t.sourceName,N=this.comObj,w={enqueue($,U=1,m){if(this.isCancelled)return;const n=this.desiredSize;this.desiredSize-=U,n>0&&this.desiredSize<=0&&(this.sinkCapability=(0,_util$b.createPromiseCapability)(),this.ready=this.sinkCapability.promise),a._postMessage({sourceName:p,targetName:e,stream:StreamKind.ENQUEUE,streamId:i,chunk:$},m)},close(){this.isCancelled||(this.isCancelled=!0,N.postMessage({sourceName:p,targetName:e,stream:StreamKind.CLOSE,streamId:i}),delete a.streamSinks[i])},error($){(0,_util$b.assert)($ instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,N.postMessage({sourceName:p,targetName:e,stream:StreamKind.ERROR,streamId:i,reason:wrapReason($)}))},sinkCapability:(0,_util$b.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};w.sinkCapability.resolve(),w.ready=w.sinkCapability.promise,this.streamSinks[i]=w,new Promise(function($){$(r(t.data,w))}).then(function(){N.postMessage({sourceName:p,targetName:e,stream:StreamKind.START_COMPLETE,streamId:i,success:!0})},function($){N.postMessage({sourceName:p,targetName:e,stream:StreamKind.START_COMPLETE,streamId:i,reason:wrapReason($)})})}_processStreamMessage(t){const a=t.streamId,r=this.sourceName,i=t.sourceName,p=this.comObj;switch(t.stream){case StreamKind.START_COMPLETE:t.success?this.streamControllers[a].startCall.resolve():this.streamControllers[a].startCall.reject(wrapReason(t.reason));break;case StreamKind.PULL_COMPLETE:t.success?this.streamControllers[a].pullCall.resolve():this.streamControllers[a].pullCall.reject(wrapReason(t.reason));break;case StreamKind.PULL:if(!this.streamSinks[a]){p.postMessage({sourceName:r,targetName:i,stream:StreamKind.PULL_COMPLETE,streamId:a,success:!0});break}this.streamSinks[a].desiredSize<=0&&t.desiredSize>0&&this.streamSinks[a].sinkCapability.resolve(),this.streamSinks[a].desiredSize=t.desiredSize;const{onPull:e}=this.streamSinks[t.streamId];new Promise(function(w){w(e&&e())}).then(function(){p.postMessage({sourceName:r,targetName:i,stream:StreamKind.PULL_COMPLETE,streamId:a,success:!0})},function(w){p.postMessage({sourceName:r,targetName:i,stream:StreamKind.PULL_COMPLETE,streamId:a,reason:wrapReason(w)})});break;case StreamKind.ENQUEUE:if((0,_util$b.assert)(this.streamControllers[a],"enqueue should have stream controller"),this.streamControllers[a].isClosed)break;this.streamControllers[a].controller.enqueue(t.chunk);break;case StreamKind.CLOSE:if((0,_util$b.assert)(this.streamControllers[a],"close should have stream controller"),this.streamControllers[a].isClosed)break;this.streamControllers[a].isClosed=!0,this.streamControllers[a].controller.close(),this._deleteStreamController(a);break;case StreamKind.ERROR:(0,_util$b.assert)(this.streamControllers[a],"error should have stream controller"),this.streamControllers[a].controller.error(wrapReason(t.reason)),this._deleteStreamController(a);break;case StreamKind.CANCEL_COMPLETE:t.success?this.streamControllers[a].cancelCall.resolve():this.streamControllers[a].cancelCall.reject(wrapReason(t.reason)),this._deleteStreamController(a);break;case StreamKind.CANCEL:if(!this.streamSinks[a])break;const{onCancel:N}=this.streamSinks[t.streamId];new Promise(function(w){w(N&&N(wrapReason(t.reason)))}).then(function(){p.postMessage({sourceName:r,targetName:i,stream:StreamKind.CANCEL_COMPLETE,streamId:a,success:!0})},function(w){p.postMessage({sourceName:r,targetName:i,stream:StreamKind.CANCEL_COMPLETE,streamId:a,reason:wrapReason(w)})}),this.streamSinks[a].sinkCapability.reject(wrapReason(t.reason)),this.streamSinks[a].isCancelled=!0,delete this.streamSinks[a];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(t){await Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map(function(a){return a&&a.promise})),delete this.streamControllers[t]}_postMessage(t,a){a&&this.postMessageTransfers?this.comObj.postMessage(t,a):this.comObj.postMessage(t)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}exports$Q.MessageHandler=MessageHandler;const __CJS__export_default__$M=(module$Q.exports==null?{}:module$Q.exports).default||module$Q.exports,__CJS__export_MessageHandler__$1=(module$Q.exports==null?{}:module$Q.exports).MessageHandler,__CJS__import__7__$1=Object.freeze(Object.defineProperty({__proto__:null,MessageHandler:__CJS__export_MessageHandler__$1,default:__CJS__export_default__$M},Symbol.toStringTag,{value:"Module"}));var module$P={exports:{}},exports$P=module$P.exports;Object.defineProperty(exports$P,"__esModule",{value:!0});exports$P.SimpleXMLParser=void 0;const XMLParserErrorCode={NoError:0,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,UnterminatedElement:-9};function isWhitespace(x,t){const a=x[t];return a===" "||a===`
|
|
4
|
+
`||a==="\r"||a===" "}function isWhitespaceString(x){for(let t=0,a=x.length;t<a;t++)if(!isWhitespace(x,t))return!1;return!0}class XMLParserBase{_resolveEntities(t){return t.replace(/&([^;]+);/g,(a,r)=>{if(r.substring(0,2)==="#x")return String.fromCharCode(parseInt(r.substring(2),16));if(r.substring(0,1)==="#")return String.fromCharCode(parseInt(r.substring(1),10));switch(r){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return this.onResolveEntity(r)})}_parseContent(t,a){const r=[];let i=a;function p(){for(;i<t.length&&isWhitespace(t,i);)++i}for(;i<t.length&&!isWhitespace(t,i)&&t[i]!==">"&&t[i]!=="/";)++i;const e=t.substring(a,i);for(p();i<t.length&&t[i]!==">"&&t[i]!=="/"&&t[i]!=="?";){p();let N="",w="";for(;i<t.length&&!isWhitespace(t,i)&&t[i]!=="=";)N+=t[i],++i;if(p(),t[i]!=="=")return null;++i,p();const $=t[i];if($!=='"'&&$!=="'")return null;const U=t.indexOf($,++i);if(U<0)return null;w=t.substring(i,U),r.push({name:N,value:this._resolveEntities(w)}),i=U+1,p()}return{name:e,attributes:r,parsed:i-a}}_parseProcessingInstruction(t,a){let r=a;function i(){for(;r<t.length&&isWhitespace(t,r);)++r}for(;r<t.length&&!isWhitespace(t,r)&&t[r]!==">"&&t[r]!=="/";)++r;const p=t.substring(a,r);i();const e=r;for(;r<t.length&&(t[r]!=="?"||t[r+1]!==">");)++r;const N=t.substring(e,r);return{name:p,value:N,parsed:r-a}}parseXml(t){let a=0;for(;a<t.length;){const r=t[a];let i=a;if(r==="<"){++i;const p=t[i];let e;switch(p){case"/":if(++i,e=t.indexOf(">",i),e<0){this.onError(XMLParserErrorCode.UnterminatedElement);return}this.onEndElement(t.substring(i,e)),i=e+1;break;case"?":++i;const N=this._parseProcessingInstruction(t,i);if(t.substring(i+N.parsed,i+N.parsed+2)!=="?>"){this.onError(XMLParserErrorCode.UnterminatedXmlDeclaration);return}this.onPi(N.name,N.value),i+=N.parsed+2;break;case"!":if(t.substring(i+1,i+3)==="--"){if(e=t.indexOf("-->",i+3),e<0){this.onError(XMLParserErrorCode.UnterminatedComment);return}this.onComment(t.substring(i+3,e)),i=e+3}else if(t.substring(i+1,i+8)==="[CDATA["){if(e=t.indexOf("]]>",i+8),e<0){this.onError(XMLParserErrorCode.UnterminatedCdat);return}this.onCdata(t.substring(i+8,e)),i=e+3}else if(t.substring(i+1,i+8)==="DOCTYPE"){const U=t.indexOf("[",i+8);let m=!1;if(e=t.indexOf(">",i+8),e<0){this.onError(XMLParserErrorCode.UnterminatedDoctypeDeclaration);return}if(U>0&&e>U){if(e=t.indexOf("]>",i+8),e<0){this.onError(XMLParserErrorCode.UnterminatedDoctypeDeclaration);return}m=!0}const n=t.substring(i+8,e+(m?1:0));this.onDoctype(n),i=e+(m?2:1)}else{this.onError(XMLParserErrorCode.MalformedElement);return}break;default:const w=this._parseContent(t,i);if(w===null){this.onError(XMLParserErrorCode.MalformedElement);return}let $=!1;if(t.substring(i+w.parsed,i+w.parsed+2)==="/>")$=!0;else if(t.substring(i+w.parsed,i+w.parsed+1)!==">"){this.onError(XMLParserErrorCode.UnterminatedElement);return}this.onBeginElement(w.name,w.attributes,$),i+=w.parsed+($?2:1);break}}else{for(;i<t.length&&t[i]!=="<";)i++;const p=t.substring(a,i);this.onText(this._resolveEntities(p))}a=i}}onResolveEntity(t){return`&${t};`}onPi(t,a){}onComment(t){}onCdata(t){}onDoctype(t){}onText(t){}onBeginElement(t,a,r){}onEndElement(t){}onError(t){}}class SimpleDOMNode{constructor(t,a){this.nodeName=t,this.nodeValue=a,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes&&this.childNodes[0]}get nextSibling(){const t=this.parentNode.childNodes;if(!t)return;const a=t.indexOf(this);if(a!==-1)return t[a+1]}get textContent(){return this.childNodes?this.childNodes.map(function(t){return t.textContent}).join(""):this.nodeValue||""}hasChildNodes(){return this.childNodes&&this.childNodes.length>0}}class SimpleXMLParser extends XMLParserBase{constructor(){super(),this._currentFragment=null,this._stack=null,this._errorCode=XMLParserErrorCode.NoError}parseFromString(t){if(this._currentFragment=[],this._stack=[],this._errorCode=XMLParserErrorCode.NoError,this.parseXml(t),this._errorCode!==XMLParserErrorCode.NoError)return;const[a]=this._currentFragment;if(a)return{documentElement:a}}onResolveEntity(t){switch(t){case"apos":return"'"}return super.onResolveEntity(t)}onText(t){if(isWhitespaceString(t))return;const a=new SimpleDOMNode("#text",t);this._currentFragment.push(a)}onCdata(t){const a=new SimpleDOMNode("#text",t);this._currentFragment.push(a)}onBeginElement(t,a,r){const i=new SimpleDOMNode(t);i.childNodes=[],this._currentFragment.push(i),!r&&(this._stack.push(this._currentFragment),this._currentFragment=i.childNodes)}onEndElement(t){this._currentFragment=this._stack.pop()||[];const a=this._currentFragment[this._currentFragment.length-1];if(a)for(let r=0,i=a.childNodes.length;r<i;r++)a.childNodes[r].parentNode=a}onError(t){this._errorCode=t}}exports$P.SimpleXMLParser=SimpleXMLParser;const __CJS__export_default__$L=(module$P.exports==null?{}:module$P.exports).default||module$P.exports,__CJS__export_SimpleXMLParser__=(module$P.exports==null?{}:module$P.exports).SimpleXMLParser,__CJS__import__1__$6=Object.freeze(Object.defineProperty({__proto__:null,SimpleXMLParser:__CJS__export_SimpleXMLParser__,default:__CJS__export_default__$L},Symbol.toStringTag,{value:"Module"}));var module$O={exports:{}},exports$O=module$O.exports;Object.defineProperty(exports$O,"__esModule",{value:!0});exports$O.Metadata=void 0;var _util$a=__CJS__export_default__$U||__CJS__import__0__$4,_xml_parser=__CJS__export_default__$L||__CJS__import__1__$6;class Metadata{constructor(t){(0,_util$a.assert)(typeof t=="string","Metadata: input is not a string"),t=this._repair(t);const r=new _xml_parser.SimpleXMLParser().parseFromString(t);this._metadataMap=new Map,r&&this._parse(r)}_repair(t){return t.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(a,r){const i=r.replace(/\\([0-3])([0-7])([0-7])/g,function(e,N,w,$){return String.fromCharCode(N*64+w*8+$*1)}).replace(/&(amp|apos|gt|lt|quot);/g,function(e,N){switch(N){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${N} isn't defined.`)});let p="";for(let e=0,N=i.length;e<N;e+=2){const w=i.charCodeAt(e)*256+i.charCodeAt(e+1);w>=32&&w<127&&w!==60&&w!==62&&w!==38?p+=String.fromCharCode(w):p+="&#x"+(65536+w).toString(16).substring(1)+";"}return">"+p})}_parse(t){let a=t.documentElement;if(a.nodeName.toLowerCase()!=="rdf:rdf")for(a=a.firstChild;a&&a.nodeName.toLowerCase()!=="rdf:rdf";)a=a.nextSibling;const r=a?a.nodeName.toLowerCase():null;if(!a||r!=="rdf:rdf"||!a.hasChildNodes())return;const i=a.childNodes;for(let p=0,e=i.length;p<e;p++){const N=i[p];if(N.nodeName.toLowerCase()==="rdf:description"){for(let w=0,$=N.childNodes.length;w<$;w++)if(N.childNodes[w].nodeName.toLowerCase()!=="#text"){const U=N.childNodes[w],m=U.nodeName.toLowerCase();this._metadataMap.set(m,U.textContent.trim())}}}}get(t){return this._metadataMap.has(t)?this._metadataMap.get(t):null}getAll(){const t=Object.create(null);for(const[a,r]of this._metadataMap)t[a]=r;return t}has(t){return this._metadataMap.has(t)}}exports$O.Metadata=Metadata;const __CJS__export_default__$K=(module$O.exports==null?{}:module$O.exports).default||module$O.exports,__CJS__export_Metadata__=(module$O.exports==null?{}:module$O.exports).Metadata,__CJS__import__8__$1=Object.freeze(Object.defineProperty({__proto__:null,Metadata:__CJS__export_Metadata__,default:__CJS__export_default__$K},Symbol.toStringTag,{value:"Module"}));var module$N={exports:{}},exports$N=module$N.exports;Object.defineProperty(exports$N,"__esModule",{value:!0});exports$N.PDFDataTransportStream=void 0;var _util$9=__CJS__export_default__$U||__CJS__import__0__$4;class PDFDataTransportStream{constructor(t,a){(0,_util$9.assert)(a),this._queuedChunks=[],this._progressiveDone=t.progressiveDone||!1;const r=t.initialData;if(r&&r.length>0){const i=new Uint8Array(r).buffer;this._queuedChunks.push(i)}this._pdfDataRangeTransport=a,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._contentLength=t.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((i,p)=>{this._onReceiveData({begin:i,chunk:p})}),this._pdfDataRangeTransport.addProgressListener((i,p)=>{this._onProgress({loaded:i,total:p})}),this._pdfDataRangeTransport.addProgressiveReadListener(i=>{this._onReceiveData({chunk:i})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData(t){const a=new Uint8Array(t.chunk).buffer;if(t.begin===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(a):this._queuedChunks.push(a);else{const r=this._rangeReaders.some(function(i){return i._begin!==t.begin?!1:(i._enqueue(a),!0)});(0,_util$9.assert)(r)}}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}_onProgress(t){if(t.total===void 0){const a=this._rangeReaders[0];a&&a.onProgress&&a.onProgress({loaded:t.loaded})}else{const a=this._fullRequestReader;a&&a.onProgress&&a.onProgress({loaded:t.loaded,total:t.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(t){const a=this._rangeReaders.indexOf(t);a>=0&&this._rangeReaders.splice(a,1)}getFullReader(){(0,_util$9.assert)(!this._fullRequestReader);const t=this._queuedChunks;return this._queuedChunks=null,new PDFDataTransportStreamReader(this,t,this._progressiveDone)}getRangeReader(t,a){if(a<=this._progressiveDataLength)return null;const r=new PDFDataTransportStreamRangeReader(this,t,a);return this._pdfDataRangeTransport.requestDataRange(t,a),this._rangeReaders.push(r),r}cancelAllRequests(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeReaders.slice(0).forEach(function(r){r.cancel(t)}),this._pdfDataRangeTransport.abort()}}exports$N.PDFDataTransportStream=PDFDataTransportStream;class PDFDataTransportStreamReader{constructor(t,a,r=!1){this._stream=t,this._done=r||!1,this._filename=null,this._queuedChunks=a||[],this._loaded=0;for(const i of this._queuedChunks)this._loaded+=i.byteLength;this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}_enqueue(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.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 t=(0,_util$9.createPromiseCapability)();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this._requests.forEach(function(a){a.resolve({value:void 0,done:!0})}),this._requests=[]}progressiveDone(){this._done||(this._done=!0)}}class PDFDataTransportStreamRangeReader{constructor(t,a,r){this._stream=t,this._begin=a,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(t){this._done||(this._requests.length===0?this._queuedChunk=t:(this._requests.shift().resolve({value:t,done:!1}),this._requests.forEach(function(r){r.resolve({value:void 0,done:!0})}),this._requests=[]),this._done=!0,this._stream._removeRangeReader(this))}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const a=this._queuedChunk;return this._queuedChunk=null,{value:a,done:!1}}if(this._done)return{value:void 0,done:!0};const t=(0,_util$9.createPromiseCapability)();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this._requests.forEach(function(a){a.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}}const __CJS__export_default__$J=(module$N.exports==null?{}:module$N.exports).default||module$N.exports,__CJS__export_PDFDataTransportStream__=(module$N.exports==null?{}:module$N.exports).PDFDataTransportStream,__CJS__import__9__$2=Object.freeze(Object.defineProperty({__proto__:null,PDFDataTransportStream:__CJS__export_PDFDataTransportStream__,default:__CJS__export_default__$J},Symbol.toStringTag,{value:"Module"}));var module$M={exports:{}},exports$M=module$M.exports;Object.defineProperty(exports$M,"__esModule",{value:!0});exports$M.WebGLContext=void 0;var _util$8=__CJS__export_default__$U||__CJS__import__0__$4;class WebGLContext{constructor({enable:t=!1}){this._enabled=t===!0}get isEnabled(){let t=this._enabled;return t&&(t=WebGLUtils.tryInitGL()),(0,_util$8.shadow)(this,"isEnabled",t)}composeSMask({layer:t,mask:a,properties:r}){return WebGLUtils.composeSMask(t,a,r)}drawFigures({width:t,height:a,backgroundColor:r,figures:i,context:p}){return WebGLUtils.drawFigures(t,a,r,i,p)}clear(){WebGLUtils.cleanup()}}exports$M.WebGLContext=WebGLContext;var WebGLUtils=function(){function t(_,d,c){var h=_.createShader(c);_.shaderSource(h,d),_.compileShader(h);var f=_.getShaderParameter(h,_.COMPILE_STATUS);if(!f){var g=_.getShaderInfoLog(h);throw new Error("Error during shader compilation: "+g)}return h}function a(_,d){return t(_,d,_.VERTEX_SHADER)}function r(_,d){return t(_,d,_.FRAGMENT_SHADER)}function i(_,d){for(var c=_.createProgram(),h=0,f=d.length;h<f;++h)_.attachShader(c,d[h]);_.linkProgram(c);var g=_.getProgramParameter(c,_.LINK_STATUS);if(!g){var v=_.getProgramInfoLog(c);throw new Error("Error during program linking: "+v)}return c}function p(_,d,c){_.activeTexture(c);var h=_.createTexture();return _.bindTexture(_.TEXTURE_2D,h),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_WRAP_S,_.CLAMP_TO_EDGE),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_WRAP_T,_.CLAMP_TO_EDGE),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MIN_FILTER,_.NEAREST),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MAG_FILTER,_.NEAREST),_.texImage2D(_.TEXTURE_2D,0,_.RGBA,_.RGBA,_.UNSIGNED_BYTE,d),h}var e,N;function w(){e||(N=document.createElement("canvas"),e=N.getContext("webgl",{premultipliedalpha:!1}))}var $=" attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } ",U=" precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ",m=null;function n(){var _,d;w(),_=N,N=null,d=e,e=null;var c=a(d,$),h=r(d,U),f=i(d,[c,h]);d.useProgram(f);var g={};g.gl=d,g.canvas=_,g.resolutionLocation=d.getUniformLocation(f,"u_resolution"),g.positionLocation=d.getAttribLocation(f,"a_position"),g.backdropLocation=d.getUniformLocation(f,"u_backdrop"),g.subtypeLocation=d.getUniformLocation(f,"u_subtype");var v=d.getAttribLocation(f,"a_texCoord"),s=d.getUniformLocation(f,"u_image"),o=d.getUniformLocation(f,"u_mask"),u=d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER,u),d.bufferData(d.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),d.STATIC_DRAW),d.enableVertexAttribArray(v),d.vertexAttribPointer(v,2,d.FLOAT,!1,0,0),d.uniform1i(s,0),d.uniform1i(o,1),m=g}function J(_,d,c){var h=_.width,f=_.height;m||n();var g=m,v=g.canvas,s=g.gl;v.width=h,v.height=f,s.viewport(0,0,s.drawingBufferWidth,s.drawingBufferHeight),s.uniform2f(g.resolutionLocation,h,f),c.backdrop?s.uniform4f(g.resolutionLocation,c.backdrop[0],c.backdrop[1],c.backdrop[2],1):s.uniform4f(g.resolutionLocation,0,0,0,0),s.uniform1i(g.subtypeLocation,c.subtype==="Luminosity"?1:0);var o=p(s,_,s.TEXTURE0),u=p(s,d,s.TEXTURE1),l=s.createBuffer();return s.bindBuffer(s.ARRAY_BUFFER,l),s.bufferData(s.ARRAY_BUFFER,new Float32Array([0,0,h,0,0,f,0,f,h,0,h,f]),s.STATIC_DRAW),s.enableVertexAttribArray(g.positionLocation),s.vertexAttribPointer(g.positionLocation,2,s.FLOAT,!1,0,0),s.clearColor(0,0,0,0),s.enable(s.BLEND),s.blendFunc(s.ONE,s.ONE_MINUS_SRC_ALPHA),s.clear(s.COLOR_BUFFER_BIT),s.drawArrays(s.TRIANGLES,0,6),s.flush(),s.deleteTexture(o),s.deleteTexture(u),s.deleteBuffer(l),v}var O=" attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } ",L=" precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ",M=null;function P(){var _,d;w(),_=N,N=null,d=e,e=null;var c=a(d,O),h=r(d,L),f=i(d,[c,h]);d.useProgram(f);var g={};g.gl=d,g.canvas=_,g.resolutionLocation=d.getUniformLocation(f,"u_resolution"),g.scaleLocation=d.getUniformLocation(f,"u_scale"),g.offsetLocation=d.getUniformLocation(f,"u_offset"),g.positionLocation=d.getAttribLocation(f,"a_position"),g.colorLocation=d.getAttribLocation(f,"a_color"),M=g}function b(_,d,c,h,f){M||P();var g=M,v=g.canvas,s=g.gl;v.width=_,v.height=d,s.viewport(0,0,s.drawingBufferWidth,s.drawingBufferHeight),s.uniform2f(g.resolutionLocation,_,d);var o=0,u,l,F;for(u=0,l=h.length;u<l;u++)switch(h[u].type){case"lattice":F=h[u].coords.length/h[u].verticesPerRow|0,o+=(F-1)*(h[u].verticesPerRow-1)*6;break;case"triangles":o+=h[u].coords.length;break}var T=new Float32Array(o*2),D=new Uint8Array(o*3),k=f.coords,S=f.colors,R=0,E=0;for(u=0,l=h.length;u<l;u++){var A=h[u],C=A.coords,y=A.colors;switch(A.type){case"lattice":var I=A.verticesPerRow;F=C.length/I|0;for(var H=1;H<F;H++)for(var V=H*I+1,B=1;B<I;B++,V++)T[R]=k[C[V-I-1]],T[R+1]=k[C[V-I-1]+1],T[R+2]=k[C[V-I]],T[R+3]=k[C[V-I]+1],T[R+4]=k[C[V-1]],T[R+5]=k[C[V-1]+1],D[E]=S[y[V-I-1]],D[E+1]=S[y[V-I-1]+1],D[E+2]=S[y[V-I-1]+2],D[E+3]=S[y[V-I]],D[E+4]=S[y[V-I]+1],D[E+5]=S[y[V-I]+2],D[E+6]=S[y[V-1]],D[E+7]=S[y[V-1]+1],D[E+8]=S[y[V-1]+2],T[R+6]=T[R+2],T[R+7]=T[R+3],T[R+8]=T[R+4],T[R+9]=T[R+5],T[R+10]=k[C[V]],T[R+11]=k[C[V]+1],D[E+9]=D[E+3],D[E+10]=D[E+4],D[E+11]=D[E+5],D[E+12]=D[E+6],D[E+13]=D[E+7],D[E+14]=D[E+8],D[E+15]=S[y[V]],D[E+16]=S[y[V]+1],D[E+17]=S[y[V]+2],R+=12,E+=18;break;case"triangles":for(var W=0,G=C.length;W<G;W++)T[R]=k[C[W]],T[R+1]=k[C[W]+1],D[E]=S[y[W]],D[E+1]=S[y[W]+1],D[E+2]=S[y[W]+2],R+=2,E+=3;break}}c?s.clearColor(c[0]/255,c[1]/255,c[2]/255,1):s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT);var q=s.createBuffer();s.bindBuffer(s.ARRAY_BUFFER,q),s.bufferData(s.ARRAY_BUFFER,T,s.STATIC_DRAW),s.enableVertexAttribArray(g.positionLocation),s.vertexAttribPointer(g.positionLocation,2,s.FLOAT,!1,0,0);var z=s.createBuffer();return s.bindBuffer(s.ARRAY_BUFFER,z),s.bufferData(s.ARRAY_BUFFER,D,s.STATIC_DRAW),s.enableVertexAttribArray(g.colorLocation),s.vertexAttribPointer(g.colorLocation,3,s.UNSIGNED_BYTE,!1,0,0),s.uniform2f(g.scaleLocation,f.scaleX,f.scaleY),s.uniform2f(g.offsetLocation,f.offsetX,f.offsetY),s.drawArrays(s.TRIANGLES,0,o),s.flush(),s.deleteBuffer(q),s.deleteBuffer(z),v}return{tryInitGL(){try{return w(),!!e}catch{}return!1},composeSMask:J,drawFigures:b,cleanup(){m&&m.canvas&&(m.canvas.width=0,m.canvas.height=0),M&&M.canvas&&(M.canvas.width=0,M.canvas.height=0),m=null,M=null}}}();const __CJS__export_default__$I=(module$M.exports==null?{}:module$M.exports).default||module$M.exports,__CJS__export_WebGLContext__=(module$M.exports==null?{}:module$M.exports).WebGLContext,__CJS__import__10__$2=Object.freeze(Object.defineProperty({__proto__:null,WebGLContext:__CJS__export_WebGLContext__,default:__CJS__export_default__$I},Symbol.toStringTag,{value:"Module"}));var module$L={exports:{}},exports$L=module$L.exports;Object.defineProperty(exports$L,"__esModule",{value:!0});exports$L.getDocument=getDocument;exports$L.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory;exports$L.build=exports$L.version=exports$L.PDFPageProxy=exports$L.PDFDocumentProxy=exports$L.PDFWorker=exports$L.PDFDataRangeTransport=exports$L.LoopbackPort=void 0;var _util$7=__CJS__export_default__$U||__CJS__import__0__$4,_display_utils$2=__CJS__export_default__$T||__CJS__import__4__$4,_font_loader=__CJS__export_default__$S||__CJS__import__2__$6,_api_compatibility=__CJS__export_default__$Q||__CJS__import__7__$2,_canvas=__CJS__export_default__$O||__CJS__import__4__$3,_worker_options=__CJS__export_default__$N||__CJS__import__6__$2,_is_node$1=__CJS__export_default__$R||__CJS__import__8__$2,_message_handler=__CJS__export_default__$M||__CJS__import__7__$1,_metadata=__CJS__export_default__$K||__CJS__import__8__$1,_transport_stream=__CJS__export_default__$J||__CJS__import__9__$2,_webgl=__CJS__export_default__$I||__CJS__import__10__$2;const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100;let createPDFNetworkStream;function setPDFNetworkStreamFactory(x){createPDFNetworkStream=x}function getDocument(x){const t=new PDFDocumentLoadingTask;let a;if(typeof x=="string")a={url:x};else if((0,_util$7.isArrayBuffer)(x))a={data:x};else if(x instanceof PDFDataRangeTransport)a={range:x};else{if(typeof x!="object")throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!x.url&&!x.data&&!x.range)throw new Error("Invalid parameter object: need either .data, .range or .url");a=x}const r=Object.create(null);let i=null,p=null;for(const w in a){if(w==="url"&&typeof window<"u"){r[w]=new URL(a[w],window.location).href;continue}else if(w==="range"){i=a[w];continue}else if(w==="worker"){p=a[w];continue}else if(w==="data"&&!(a[w]instanceof Uint8Array)){const $=a[w];if(typeof $=="string")r[w]=(0,_util$7.stringToBytes)($);else if(typeof $=="object"&&$!==null&&!isNaN($.length))r[w]=new Uint8Array($);else if((0,_util$7.isArrayBuffer)($))r[w]=new Uint8Array($);else throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");continue}r[w]=a[w]}r.rangeChunkSize=r.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,r.CMapReaderFactory=r.CMapReaderFactory||_display_utils$2.DOMCMapReaderFactory,r.ignoreErrors=r.stopAtErrors!==!0,r.pdfBug=r.pdfBug===!0;const e=Object.values(_util$7.NativeImageDecoding);if((r.nativeImageDecoderSupport===void 0||!e.includes(r.nativeImageDecoderSupport))&&(r.nativeImageDecoderSupport=_api_compatibility.apiCompatibilityParams.nativeImageDecoderSupport||_util$7.NativeImageDecoding.DECODE),Number.isInteger(r.maxImageSize)||(r.maxImageSize=-1),typeof r.isEvalSupported!="boolean"&&(r.isEvalSupported=!0),typeof r.disableFontFace!="boolean"&&(r.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),typeof r.disableRange!="boolean"&&(r.disableRange=!1),typeof r.disableStream!="boolean"&&(r.disableStream=!1),typeof r.disableAutoFetch!="boolean"&&(r.disableAutoFetch=!1),typeof r.disableCreateObjectURL!="boolean"&&(r.disableCreateObjectURL=_api_compatibility.apiCompatibilityParams.disableCreateObjectURL||!1),(0,_util$7.setVerbosityLevel)(r.verbosity),!p){const w={verbosity:r.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};p=w.port?PDFWorker.fromPort(w):new PDFWorker(w),t._worker=p}const N=t.docId;return p.promise.then(function(){if(t.destroyed)throw new Error("Loading aborted");return _fetchDocument(p,r,i,N).then(function(w){if(t.destroyed)throw new Error("Loading aborted");let $;i?$=new _transport_stream.PDFDataTransportStream({length:r.length,initialData:r.initialData,progressiveDone:r.progressiveDone,disableRange:r.disableRange,disableStream:r.disableStream},i):r.data||($=createPDFNetworkStream({url:r.url,length:r.length,httpHeaders:r.httpHeaders,withCredentials:r.withCredentials,rangeChunkSize:r.rangeChunkSize,disableRange:r.disableRange,disableStream:r.disableStream}));const U=new _message_handler.MessageHandler(N,w,p.port);U.postMessageTransfers=p.postMessageTransfers;const m=new WorkerTransport(U,t,$,r);t._transport=m,U.send("Ready",null)})}).catch(t._capability.reject),t}function _fetchDocument(x,t,a,r){return x.destroyed?Promise.reject(new Error("Worker was destroyed")):(a&&(t.length=a.length,t.initialData=a.initialData,t.progressiveDone=a.progressiveDone),x.messageHandler.sendWithPromise("GetDocRequest",{docId:r,apiVersion:"2.4.456",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,disableCreateObjectURL:t.disableCreateObjectURL,postMessageTransfers:x.postMessageTransfers,docBaseUrl:t.docBaseUrl,nativeImageDecoderSupport:t.nativeImageDecoderSupport,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported}).then(function(i){if(x.destroyed)throw new Error("Worker was destroyed");return i}))}const PDFDocumentLoadingTask=function(){let t=0;class a{constructor(){this._capability=(0,_util$7.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+t++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}destroy(){return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then(()=>{this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)})}then(i,p){throw new Error("Removed API method: PDFDocumentLoadingTask.then, use the `promise` getter instead.")}}return a}();class PDFDataRangeTransport{constructor(t,a,r=!1){this.length=t,this.initialData=a,this.progressiveDone=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util$7.createPromiseCapability)()}addRangeListener(t){this._rangeListeners.push(t)}addProgressListener(t){this._progressListeners.push(t)}addProgressiveReadListener(t){this._progressiveReadListeners.push(t)}addProgressiveDoneListener(t){this._progressiveDoneListeners.push(t)}onDataRange(t,a){for(const r of this._rangeListeners)r(t,a)}onDataProgress(t,a){this._readyCapability.promise.then(()=>{for(const r of this._progressListeners)r(t,a)})}onDataProgressiveRead(t){this._readyCapability.promise.then(()=>{for(const a of this._progressiveReadListeners)a(t)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const t of this._progressiveDoneListeners)t()})}transportReady(){this._readyCapability.resolve()}requestDataRange(t,a){(0,_util$7.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports$L.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(t,a){this._pdfInfo=t,this._transport=a}get numPages(){return this._pdfInfo.numPages}get fingerprint(){return this._pdfInfo.fingerprint}getPage(t){return this._transport.getPage(t)}getPageIndex(t){return this._transport.getPageIndex(t)}getDestinations(){return this._transport.getDestinations()}getDestination(t){return this._transport.getDestination(t)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getOpenActionDestination(){return(0,_display_utils$2.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then(function(t){return t&&t.dest?t.dest:null})}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getOutline(){return this._transport.getOutline()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}getStats(){return this._transport.getStats()}cleanup(){return this._transport.startCleanup()}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}}exports$L.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(t,a,r,i=!1){this._pageIndex=t,this._pageInfo=a,this._transport=r,this._stats=i?new _display_utils$2.StatTimer:null,this._pdfBug=i,this.commonObjs=r.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),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:t,rotation:a=this.rotate,offsetX:r=0,offsetY:i=0,dontFlip:p=!1}={}){if(arguments.length>1||typeof arguments[0]=="number")throw new Error("PDFPageProxy.getViewport is called with obsolete arguments.");return new _display_utils$2.PageViewport({viewBox:this.view,scale:t,rotation:a,offsetX:r,offsetY:i,dontFlip:p})}getAnnotations({intent:t=null}={}){return(!this.annotationsPromise||this.annotationsIntent!==t)&&(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,t),this.annotationsIntent=t),this.annotationsPromise}render({canvasContext:t,viewport:a,intent:r="display",enableWebGL:i=!1,renderInteractiveForms:p=!1,transform:e=null,imageLayer:N=null,canvasFactory:w=null,background:$=null}){this._stats&&this._stats.time("Overall");const U=r==="print"?"print":"display";this.pendingCleanup=!1,this.intentStates[U]||(this.intentStates[U]=Object.create(null));const m=this.intentStates[U];m.streamReaderCancelTimeout&&(clearTimeout(m.streamReaderCancelTimeout),m.streamReaderCancelTimeout=null);const n=w||new _display_utils$2.DOMCanvasFactory,J=new _webgl.WebGLContext({enable:i});m.displayReadyCapability||(m.displayReadyCapability=(0,_util$7.createPromiseCapability)(),m.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:U,renderInteractiveForms:p===!0}));const O=P=>{const b=m.renderTasks.indexOf(L);b>=0&&m.renderTasks.splice(b,1),(this.cleanupAfterRender||U==="print")&&(this.pendingCleanup=!0),this._tryCleanup(),P?(L.capability.reject(P),this._abortOperatorList({intentState:m,reason:P})):L.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},L=new InternalRenderTask({callback:O,params:{canvasContext:t,viewport:a,transform:e,imageLayer:N,background:$},objs:this.objs,commonObjs:this.commonObjs,operatorList:m.operatorList,pageIndex:this._pageIndex,canvasFactory:n,webGLContext:J,useRequestAnimationFrame:U!=="print",pdfBug:this._pdfBug});m.renderTasks||(m.renderTasks=[]),m.renderTasks.push(L);const M=L.task;return m.displayReadyCapability.promise.then(P=>{if(this.pendingCleanup){O();return}this._stats&&this._stats.time("Rendering"),L.initializeGraphics(P),L.operatorListChanged()}).catch(O),M}getOperatorList(){function t(){if(r.operatorList.lastChunk){r.opListReadCapability.resolve(r.operatorList);const p=r.renderTasks.indexOf(i);p>=0&&r.renderTasks.splice(p,1)}}const a="oplist";this.intentStates[a]||(this.intentStates[a]=Object.create(null));const r=this.intentStates[a];let i;return r.opListReadCapability||(i={},i.operatorListChanged=t,r.opListReadCapability=(0,_util$7.createPromiseCapability)(),r.renderTasks=[],r.renderTasks.push(i),r.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:a})),r.opListReadCapability.promise}streamTextContent({normalizeWhitespace:t=!1,disableCombineTextItems:a=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:t===!0,combineTextItems:a!==!0},{highWaterMark:100,size(i){return i.items.length}})}getTextContent(t={}){const a=this.streamTextContent(t);return new Promise(function(r,i){function p(){e.read().then(function({value:w,done:$}){if($){r(N);return}Object.assign(N.styles,w.styles),N.items.push(...w.items),p()},i)}const e=a.getReader(),N={items:[],styles:Object.create(null)};p()})}_destroy(){this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;const t=[];return Object.keys(this.intentStates).forEach(a=>{const r=this.intentStates[a];this._abortOperatorList({intentState:r,reason:new Error("Page was destroyed."),force:!0}),a!=="oplist"&&r.renderTasks.forEach(function(i){const p=i.capability.promise.catch(function(){});t.push(p),i.cancel()})}),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(t)}cleanup(t=!1){return this.pendingCleanup=!0,this._tryCleanup(t)}_tryCleanup(t=!1){return!this.pendingCleanup||Object.keys(this.intentStates).some(a=>{const r=this.intentStates[a];return r.renderTasks.length!==0||!r.operatorList.lastChunk})?!1:(Object.keys(this.intentStates).forEach(a=>{delete this.intentStates[a]}),this.objs.clear(),this.annotationsPromise=null,t&&this._stats&&(this._stats=new _display_utils$2.StatTimer),this.pendingCleanup=!1,!0)}_startRenderPage(t,a){const r=this.intentStates[a];r&&(this._stats&&this._stats.timeEnd("Page Request"),r.displayReadyCapability&&r.displayReadyCapability.resolve(t))}_renderPageChunk(t,a){for(let r=0,i=t.length;r<i;r++)a.operatorList.fnArray.push(t.fnArray[r]),a.operatorList.argsArray.push(t.argsArray[r]);a.operatorList.lastChunk=t.lastChunk;for(let r=0;r<a.renderTasks.length;r++)a.renderTasks[r].operatorListChanged();t.lastChunk&&this._tryCleanup()}_pumpOperatorList(t){(0,_util$7.assert)(t.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');const r=this._transport.messageHandler.sendWithStream("GetOperatorList",t).getReader(),i=this.intentStates[t.intent];i.streamReader=r;const p=()=>{r.read().then(({value:e,done:N})=>{if(N){i.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(e,i),p())},e=>{if(i.streamReader=null,!this._transport.destroyed){if(i.operatorList){i.operatorList.lastChunk=!0;for(let N=0;N<i.renderTasks.length;N++)i.renderTasks[N].operatorListChanged();this._tryCleanup()}if(i.displayReadyCapability)i.displayReadyCapability.reject(e);else if(i.opListReadCapability)i.opListReadCapability.reject(e);else throw e}})};p()}_abortOperatorList({intentState:t,reason:a,force:r=!1}){if((0,_util$7.assert)(a instanceof Error||typeof a=="object"&&a!==null,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),!!t.streamReader){if(!r){if(t.renderTasks.length!==0)return;if(a instanceof _display_utils$2.RenderingCancelledException){t.streamReaderCancelTimeout=setTimeout(()=>{this._abortOperatorList({intentState:t,reason:a,force:!0}),t.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT);return}}t.streamReader.cancel(new _util$7.AbortException(a&&a.message)),t.streamReader=null,!this._transport.destroyed&&(Object.keys(this.intentStates).some(i=>this.intentStates[i]===t?(delete this.intentStates[i],!0):!1),this.cleanup())}}get stats(){return this._stats}}exports$L.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(t=!0){this._listeners=[],this._defer=t,this._deferred=Promise.resolve(void 0)}postMessage(t,a){function r(e){if(typeof e!="object"||e===null)return e;if(i.has(e))return i.get(e);let N,w;if((N=e.buffer)&&(0,_util$7.isArrayBuffer)(N))return a&&a.includes(N)?w=new e.constructor(N,e.byteOffset,e.byteLength):w=new e.constructor(e),i.set(e,w),w;w=Array.isArray(e)?[]:{},i.set(e,w);for(const $ in e){let U,m=e;for(;!(U=Object.getOwnPropertyDescriptor(m,$));)m=Object.getPrototypeOf(m);if(!(typeof U.value>"u")){if(typeof U.value=="function"){if(e.hasOwnProperty&&e.hasOwnProperty($))throw new Error(`LoopbackPort.postMessage - cannot clone: ${e[$]}`);continue}w[$]=r(U.value)}}return w}if(!this._defer){this._listeners.forEach(e=>{e.call(this,{data:t})});return}const i=new WeakMap,p={data:r(t)};this._deferred.then(()=>{this._listeners.forEach(e=>{e.call(this,p)})})}addEventListener(t,a){this._listeners.push(a)}removeEventListener(t,a){const r=this._listeners.indexOf(a);this._listeners.splice(r,1)}terminate(){this._listeners.length=0}}exports$L.LoopbackPort=LoopbackPort;const PDFWorker=function PDFWorkerClosure(){const pdfWorkerPorts=new WeakMap;let isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node$1.isNodeJS&&typeof require=="function")isWorkerDisabled=!0,fallbackWorkerSrc="../pdf.worker.js";else if(typeof document=="object"&&"currentScript"in document){const x=document.currentScript&&document.currentScript.src;x&&(fallbackWorkerSrc=x.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(typeof fallbackWorkerSrc<"u")return _is_node$1.isNodeJS||(0,_display_utils$2.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){let x;try{x=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch{}return x||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util$7.createPromiseCapability)();const loader=async function(){const mainWorkerMessageHandler=getMainThreadWorkerMessageHandler();if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node$1.isNodeJS&&typeof require=="function"){const worker=eval("require")(getWorkerSrc());return worker.WorkerMessageHandler}return await(0,_display_utils$2.loadScript)(getWorkerSrc()),window.pdfjsWorker.WorkerMessageHandler};return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(x){const t="importScripts('"+x+"');";return URL.createObjectURL(new Blob([t]))}class PDFWorker{constructor({name:t=null,port:a=null,verbosity:r=(0,_util$7.getVerbosityLevel)()}={}){if(a&&pdfWorkerPorts.has(a))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=t,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=r,this._readyCapability=(0,_util$7.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,a){pdfWorkerPorts.set(a,this),this._initializeFromPort(a);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(t){this._port=t,this._messageHandler=new _message_handler.MessageHandler("main","worker",t),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}_initialize(){if(typeof Worker<"u"&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){let t=getWorkerSrc();try{(0,_util$7.isSameOrigin)(window.location.href,t)||(t=createCDNWrapper(new URL(t,window.location).href));const a=new Worker(t),r=new _message_handler.MessageHandler("main","worker",a),i=()=>{a.removeEventListener("error",p),r.destroy(),a.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},p=()=>{this._webWorker||i()};a.addEventListener("error",p),r.on("test",N=>{if(a.removeEventListener("error",p),this.destroyed){i();return}N?(this._messageHandler=r,this._port=a,this._webWorker=a,N.supportTransfers||(this.postMessageTransfers=!1),this._readyCapability.resolve(),r.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),r.destroy(),a.terminate())}),r.on("ready",N=>{if(a.removeEventListener("error",p),this.destroyed){i();return}try{e()}catch{this._setupFakeWorker()}});const e=()=>{const N=new Uint8Array([this.postMessageTransfers?255:0]);try{r.send("test",N,[N.buffer])}catch{(0,_util$7.warn)("Cannot use postMessage transfers."),N[0]=0,r.send("test",N)}};e();return}catch{(0,_util$7.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){isWorkerDisabled||((0,_util$7.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then(t=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const a=new LoopbackPort;this._port=a;const r="fake"+nextFakeWorkerId++,i=new _message_handler.MessageHandler(r+"_worker",r,a);t.setup(i,a);const p=new _message_handler.MessageHandler(r,r+"_worker",a);this._messageHandler=p,this._readyCapability.resolve(),p.send("configure",{verbosity:this.verbosity})}).catch(t=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${t.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(t){if(!t||!t.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(t.port)?pdfWorkerPorts.get(t.port):new PDFWorker(t)}static getWorkerSrc(){return getWorkerSrc()}}return PDFWorker}();exports$L.PDFWorker=PDFWorker;class WorkerTransport{constructor(t,a,r,i){this.messageHandler=t,this.loadingTask=a,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:a.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=i,this.CMapReaderFactory=new i.CMapReaderFactory({baseUrl:i.cMapUrl,isCompressed:i.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util$7.createPromiseCapability)(),this.setupMessageHandler()}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util$7.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const t=[];this.pageCache.forEach(function(r){r&&t.push(r._destroy())}),this.pageCache.length=0,this.pagePromises.length=0;const a=this.messageHandler.sendWithPromise("Terminate",null);return t.push(a),Promise.all(t).then(()=>{this.fontLoader.clear(),this._networkStream&&this._networkStream.cancelAllRequests(new _util$7.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:t,loadingTask:a}=this;t.on("GetReader",(r,i)=>{(0,_util$7.assert)(this._networkStream),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=p=>{this._lastProgress={loaded:p.loaded,total:p.total}},i.onPull=()=>{this._fullReader.read().then(function({value:p,done:e}){if(e){i.close();return}(0,_util$7.assert)((0,_util$7.isArrayBuffer)(p)),i.enqueue(new Uint8Array(p),1,[p])}).catch(p=>{i.error(p)})},i.onCancel=p=>{this._fullReader.cancel(p)}}),t.on("ReaderHeadersReady",r=>{const i=(0,_util$7.createPromiseCapability)(),p=this._fullReader;return p.headersReady.then(()=>{(!p.isStreamingSupported||!p.isRangeSupported)&&(this._lastProgress&&a.onProgress&&a.onProgress(this._lastProgress),p.onProgress=e=>{a.onProgress&&a.onProgress({loaded:e.loaded,total:e.total})}),i.resolve({isStreamingSupported:p.isStreamingSupported,isRangeSupported:p.isRangeSupported,contentLength:p.contentLength})},i.reject),i.promise}),t.on("GetRangeReader",(r,i)=>{(0,_util$7.assert)(this._networkStream);const p=this._networkStream.getRangeReader(r.begin,r.end);if(!p){i.close();return}i.onPull=()=>{p.read().then(function({value:e,done:N}){if(N){i.close();return}(0,_util$7.assert)((0,_util$7.isArrayBuffer)(e)),i.enqueue(new Uint8Array(e),1,[e])}).catch(e=>{i.error(e)})},i.onCancel=e=>{p.cancel(e)}}),t.on("GetDoc",({pdfInfo:r})=>{this._numPages=r.numPages,a._capability.resolve(new PDFDocumentProxy(r,this))}),t.on("DocException",function(r){let i;switch(r.name){case"PasswordException":i=new _util$7.PasswordException(r.message,r.code);break;case"InvalidPDFException":i=new _util$7.InvalidPDFException(r.message);break;case"MissingPDFException":i=new _util$7.MissingPDFException(r.message);break;case"UnexpectedResponseException":i=new _util$7.UnexpectedResponseException(r.message,r.status);break;case"UnknownErrorException":i=new _util$7.UnknownErrorException(r.message,r.details);break}a._capability.reject(i)}),t.on("PasswordRequest",r=>{if(this._passwordCapability=(0,_util$7.createPromiseCapability)(),a.onPassword){const i=p=>{this._passwordCapability.resolve({password:p})};try{a.onPassword(i,r.code)}catch(p){this._passwordCapability.reject(p)}}else this._passwordCapability.reject(new _util$7.PasswordException(r.message,r.code));return this._passwordCapability.promise}),t.on("DataLoaded",r=>{a.onProgress&&a.onProgress({loaded:r.length,total:r.length}),this.downloadInfoCapability.resolve(r)}),t.on("StartRenderPage",r=>{if(this.destroyed)return;this.pageCache[r.pageIndex]._startRenderPage(r.transparency,r.intent)}),t.on("commonobj",r=>{if(this.destroyed)return;const[i,p,e]=r;if(!this.commonObjs.has(i))switch(p){case"Font":const N=this._params;if("error"in e){const U=e.error;(0,_util$7.warn)(`Error during font loading: ${U}`),this.commonObjs.resolve(i,U);break}let w=null;N.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(w={registerFont(U,m){globalThis.FontInspector.fontAdded(U,m)}});const $=new _font_loader.FontFaceObject(e,{isEvalSupported:N.isEvalSupported,disableFontFace:N.disableFontFace,ignoreErrors:N.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:w});this.fontLoader.bind($).then(()=>{this.commonObjs.resolve(i,$)},U=>{t.sendWithPromise("FontFallback",{id:i}).finally(()=>{this.commonObjs.resolve(i,$)})});break;case"FontPath":case"FontType3Res":this.commonObjs.resolve(i,e);break;default:throw new Error(`Got unknown common object type ${p}`)}}),t.on("obj",r=>{if(this.destroyed)return;const[i,p,e,N]=r,w=this.pageCache[p];if(!w.objs.has(i))switch(e){case"JpegStream":return new Promise((U,m)=>{const n=new Image;n.onload=function(){U(n)},n.onerror=function(){m(new Error("Error during JPEG image loading")),(0,_display_utils$2.releaseImageResources)(n)},n.src=N}).then(U=>{w.objs.resolve(i,U)});case"Image":w.objs.resolve(i,N),N&&"data"in N&&N.data.length>8e6&&(w.cleanupAfterRender=!0);break;default:throw new Error(`Got unknown object type ${e}`)}}),t.on("DocProgress",r=>{this.destroyed||a.onProgress&&a.onProgress({loaded:r.loaded,total:r.total})}),t.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),t.on("JpegDecode",r=>{if(this.destroyed)return Promise.reject(new Error("Worker was destroyed"));if(typeof document>"u")return Promise.reject(new Error('"document" is not defined.'));const[i,p]=r;return p!==3&&p!==1?Promise.reject(new Error("Only 3 components or 1 component can be returned")):new Promise(function(e,N){const w=new Image;w.onload=function(){const{width:$,height:U}=w,m=$*U,n=m*4,J=new Uint8ClampedArray(m*p);let O=document.createElement("canvas");O.width=$,O.height=U;let L=O.getContext("2d");L.drawImage(w,0,0);const M=L.getImageData(0,0,$,U).data;if(p===3)for(let P=0,b=0;P<n;P+=4,b+=3)J[b]=M[P],J[b+1]=M[P+1],J[b+2]=M[P+2];else if(p===1)for(let P=0,b=0;P<n;P+=4,b++)J[b]=M[P];e({data:J,width:$,height:U}),(0,_display_utils$2.releaseImageResources)(w),O.width=0,O.height=0,O=null,L=null},w.onerror=function(){N(new Error("JpegDecode failed to load image")),(0,_display_utils$2.releaseImageResources)(w)},w.src=i})}),t.on("FetchBuiltInCMap",(r,i)=>{if(this.destroyed){i.error(new Error("Worker was destroyed"));return}let p=!1;i.onPull=()=>{if(p){i.close();return}p=!0,this.CMapReaderFactory.fetch(r).then(function(e){i.enqueue(e,1,[e.cMapData.buffer])}).catch(function(e){i.error(e)})}})}_onUnsupportedFeature({featureId:t}){this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(t)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(t){if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request"));const a=t-1;if(a in this.pagePromises)return this.pagePromises[a];const r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:a}).then(i=>{if(this.destroyed)throw new Error("Transport destroyed");const p=new PDFPageProxy(a,i,this,this._params.pdfBug);return this.pageCache[a]=p,p});return this.pagePromises[a]=r,r}getPageIndex(t){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:t}).catch(function(a){return Promise.reject(new Error(a))})}getAnnotations(t,a){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:a})}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return typeof t!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return this.messageHandler.sendWithPromise("GetMetadata",null).then(t=>({info:t[0],metadata:t[1]?new _metadata.Metadata(t[1]):null,contentDispositionFilename:this._fullReader?this._fullReader.filename:null}))}getStats(){return this.messageHandler.sendWithPromise("GetStats",null)}startCleanup(){return this.messageHandler.sendWithPromise("Cleanup",null).then(()=>{for(let t=0,a=this.pageCache.length;t<a;t++){const r=this.pageCache[t];if(r&&!r.cleanup())throw new Error(`startCleanup: Page ${t+1} is currently rendering.`)}this.commonObjs.clear(),this.fontLoader.clear()})}get loadingParams(){const t=this._params;return(0,_util$7.shadow)(this,"loadingParams",{disableAutoFetch:t.disableAutoFetch,disableCreateObjectURL:t.disableCreateObjectURL,disableFontFace:t.disableFontFace,nativeImageDecoderSupport:t.nativeImageDecoderSupport})}}class PDFObjects{constructor(){this._objs=Object.create(null)}_ensureObj(t){return this._objs[t]?this._objs[t]:this._objs[t]={capability:(0,_util$7.createPromiseCapability)(),data:null,resolved:!1}}get(t,a=null){if(a)return this._ensureObj(t).capability.promise.then(a),null;const r=this._objs[t];if(!r||!r.resolved)throw new Error(`Requesting object that isn't resolved yet ${t}.`);return r.data}has(t){const a=this._objs[t];return a?a.resolved:!1}resolve(t,a){const r=this._ensureObj(t);r.resolved=!0,r.data=a,r.capability.resolve(a)}clear(){for(const t in this._objs){const{data:a}=this._objs[t];typeof Image<"u"&&a instanceof Image&&(0,_display_utils$2.releaseImageResources)(a)}this._objs=Object.create(null)}}class RenderTask{constructor(t){this._internalRenderTask=t,this.onContinue=null}get promise(){return this._internalRenderTask.capability.promise}cancel(){this._internalRenderTask.cancel()}then(t,a){throw new Error("Removed API method: RenderTask.then, use the `promise` getter instead.")}}const InternalRenderTask=function x(){const t=new WeakSet;class a{constructor({callback:i,params:p,objs:e,commonObjs:N,operatorList:w,pageIndex:$,canvasFactory:U,webGLContext:m,useRequestAnimationFrame:n=!1,pdfBug:J=!1}){this.callback=i,this.params=p,this.objs=e,this.commonObjs=N,this.operatorListIdx=null,this.operatorList=w,this._pageIndex=$,this.canvasFactory=U,this.webGLContext=m,this._pdfBug=J,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=n===!0&&typeof window<"u",this.cancelled=!1,this.capability=(0,_util$7.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=p.canvasContext.canvas}initializeGraphics(i=!1){if(this.cancelled)return;if(this._canvas){if(t.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.");t.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:p,viewport:e,transform:N,imageLayer:w,background:$}=this.params;this.gfx=new _canvas.CanvasGraphics(p,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,w),this.gfx.beginDrawing({transform:N,viewport:e,transparency:i,background:$}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(i=null){this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&t.delete(this._canvas),this.callback(i||new _display_utils$2.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}this.stepper&&this.stepper.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this.cancel.bind(this))}):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}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(),this._canvas&&t.delete(this._canvas),this.callback())))}}return a}(),version="2.4.456";exports$L.version=version;const build="228a591c";exports$L.build=build;const __CJS__export_default__$H=(module$L.exports==null?{}:module$L.exports).default||module$L.exports,__CJS__export_getDocument__$1=(module$L.exports==null?{}:module$L.exports).getDocument,__CJS__export_setPDFNetworkStreamFactory__=(module$L.exports==null?{}:module$L.exports).setPDFNetworkStreamFactory,__CJS__export_LoopbackPort__$1=(module$L.exports==null?{}:module$L.exports).LoopbackPort,__CJS__export_PDFDataRangeTransport__$1=(module$L.exports==null?{}:module$L.exports).PDFDataRangeTransport,__CJS__export_PDFWorker__$1=(module$L.exports==null?{}:module$L.exports).PDFWorker,__CJS__export_PDFDocumentProxy__=(module$L.exports==null?{}:module$L.exports).PDFDocumentProxy,__CJS__export_PDFPageProxy__=(module$L.exports==null?{}:module$L.exports).PDFPageProxy,__CJS__export_version__$1=(module$L.exports==null?{}:module$L.exports).version,__CJS__export_build__$1=(module$L.exports==null?{}:module$L.exports).build,__CJS__import__1__$5=Object.freeze(Object.defineProperty({__proto__:null,LoopbackPort:__CJS__export_LoopbackPort__$1,PDFDataRangeTransport:__CJS__export_PDFDataRangeTransport__$1,PDFDocumentProxy:__CJS__export_PDFDocumentProxy__,PDFPageProxy:__CJS__export_PDFPageProxy__,PDFWorker:__CJS__export_PDFWorker__$1,build:__CJS__export_build__$1,default:__CJS__export_default__$H,getDocument:__CJS__export_getDocument__$1,setPDFNetworkStreamFactory:__CJS__export_setPDFNetworkStreamFactory__,version:__CJS__export_version__$1},Symbol.toStringTag,{value:"Module"}));var module$K={exports:{}},exports$K=module$K.exports;Object.defineProperty(exports$K,"__esModule",{value:!0});exports$K.renderTextLayer=void 0;var _util$6=__CJS__export_default__$U||__CJS__import__0__$4,renderTextLayer=function x(){var t=1e5,a=/\S/;function r(m){return!a.test(m)}function i(m,n,J){var O=document.createElement("span"),L={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(m._textDivs.push(O),r(n.str)){L.isWhitespace=!0,m._textDivProperties.set(O,L);return}var M=_util$6.Util.transform(m._viewport.transform,n.transform),P=Math.atan2(M[1],M[0]),b=J[n.fontName];b.vertical&&(P+=Math.PI/2);var _=Math.sqrt(M[2]*M[2]+M[3]*M[3]),d=_;b.ascent?d=b.ascent*d:b.descent&&(d=(1+b.descent)*d);let c,h;if(P===0?(c=M[4],h=M[5]-d):(c=M[4]+d*Math.sin(P),h=M[5]-d*Math.cos(P)),O.style.left=`${c}px`,O.style.top=`${h}px`,O.style.fontSize=`${_}px`,O.style.fontFamily=b.fontFamily,O.textContent=n.str,m._fontInspectorEnabled&&(O.dataset.fontName=n.fontName),P!==0&&(L.angle=P*(180/Math.PI)),n.str.length>1&&(b.vertical?L.canvasWidth=n.height*m._viewport.scale:L.canvasWidth=n.width*m._viewport.scale),m._textDivProperties.set(O,L),m._textContentStream&&m._layoutText(O),m._enhanceTextSelection){var f=1,g=0;P!==0&&(f=Math.cos(P),g=Math.sin(P));var v=(b.vertical?n.height:n.width)*m._viewport.scale,s=_,o,u;P!==0?(o=[f,g,-g,f,c,h],u=_util$6.Util.getAxialAlignedBoundingBox([0,0,v,s],o)):u=[c,h,c+v,h+s],m._bounds.push({left:u[0],top:u[1],right:u[2],bottom:u[3],div:O,size:[v,s],m:o})}}function p(m){if(!m._canceled){var n=m._textDivs,J=m._capability,O=n.length;if(O>t){m._renderingDone=!0,J.resolve();return}if(!m._textContentStream)for(var L=0;L<O;L++)m._layoutText(n[L]);m._renderingDone=!0,J.resolve()}}function e(m){for(var n=m._bounds,J=m._viewport,O=N(J.width,J.height,n),L=0;L<O.length;L++){var M=n[L].div,P=m._textDivProperties.get(M);if(P.angle===0){P.paddingLeft=n[L].left-O[L].left,P.paddingTop=n[L].top-O[L].top,P.paddingRight=O[L].right-n[L].right,P.paddingBottom=O[L].bottom-n[L].bottom,m._textDivProperties.set(M,P);continue}var b=O[L],_=n[L],d=_.m,c=d[0],h=d[1],f=[[0,0],[0,_.size[1]],[_.size[0],0],_.size],g=new Float64Array(64);f.forEach(function(o,u){var l=_util$6.Util.applyTransform(o,d);g[u+0]=c&&(b.left-l[0])/c,g[u+4]=h&&(b.top-l[1])/h,g[u+8]=c&&(b.right-l[0])/c,g[u+12]=h&&(b.bottom-l[1])/h,g[u+16]=h&&(b.left-l[0])/-h,g[u+20]=c&&(b.top-l[1])/c,g[u+24]=h&&(b.right-l[0])/-h,g[u+28]=c&&(b.bottom-l[1])/c,g[u+32]=c&&(b.left-l[0])/-c,g[u+36]=h&&(b.top-l[1])/-h,g[u+40]=c&&(b.right-l[0])/-c,g[u+44]=h&&(b.bottom-l[1])/-h,g[u+48]=h&&(b.left-l[0])/h,g[u+52]=c&&(b.top-l[1])/-c,g[u+56]=h&&(b.right-l[0])/h,g[u+60]=c&&(b.bottom-l[1])/-c});var v=function(o,u,l){for(var F=0,T=0;T<l;T++){var D=o[u++];D>0&&(F=F?Math.min(D,F):D)}return F},s=1+Math.min(Math.abs(c),Math.abs(h));P.paddingLeft=v(g,32,16)/s,P.paddingTop=v(g,48,16)/s,P.paddingRight=v(g,0,16)/s,P.paddingBottom=v(g,16,16)/s,m._textDivProperties.set(M,P)}}function N(m,n,J){var O=J.map(function(M,P){return{x1:M.left,y1:M.top,x2:M.right,y2:M.bottom,index:P,x1New:void 0,x2New:void 0}});w(m,O);var L=new Array(J.length);return O.forEach(function(M){var P=M.index;L[P]={left:M.x1New,top:0,right:M.x2New,bottom:0}}),J.map(function(M,P){var b=L[P],_=O[P];_.x1=M.top,_.y1=m-b.right,_.x2=M.bottom,_.y2=m-b.left,_.index=P,_.x1New=void 0,_.x2New=void 0}),w(n,O),O.forEach(function(M){var P=M.index;L[P].top=M.x1New,L[P].bottom=M.x2New}),L}function w(m,n){n.sort(function(L,M){return L.x1-M.x1||L.index-M.index});var J={x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0},O=[{start:-1/0,end:1/0,boundary:J}];n.forEach(function(L){for(var M=0;M<O.length&&O[M].end<=L.y1;)M++;for(var P=O.length-1;P>=0&&O[P].start>=L.y2;)P--;var b,_,d,c,h=-1/0;for(d=M;d<=P;d++){b=O[d],_=b.boundary;var f;_.x2>L.x1?f=_.index>L.index?_.x1New:L.x1:_.x2New===void 0?f=(_.x2+L.x1)/2:f=_.x2New,f>h&&(h=f)}for(L.x1New=h,d=M;d<=P;d++)b=O[d],_=b.boundary,_.x2New===void 0?_.x2>L.x1?_.index>L.index&&(_.x2New=_.x2):_.x2New=h:_.x2New>h&&(_.x2New=Math.max(h,_.x2));var g=[],v=null;for(d=M;d<=P;d++){b=O[d],_=b.boundary;var s=_.x2>L.x2?_:L;v===s?g[g.length-1].end=b.end:(g.push({start:b.start,end:b.end,boundary:s}),v=s)}for(O[M].start<L.y1&&(g[0].start=L.y1,g.unshift({start:O[M].start,end:L.y1,boundary:O[M].boundary})),L.y2<O[P].end&&(g[g.length-1].end=L.y2,g.push({start:L.y2,end:O[P].end,boundary:O[P].boundary})),d=M;d<=P;d++)if(b=O[d],_=b.boundary,_.x2New===void 0){var o=!1;for(c=M-1;!o&&c>=0&&O[c].start>=_.y1;c--)o=O[c].boundary===_;for(c=P+1;!o&&c<O.length&&O[c].end<=_.y2;c++)o=O[c].boundary===_;for(c=0;!o&&c<g.length;c++)o=g[c].boundary===_;o||(_.x2New=h)}Array.prototype.splice.apply(O,[M,P-M+1].concat(g))}),O.forEach(function(L){var M=L.boundary;M.x2New===void 0&&(M.x2New=Math.max(m,M.x2))})}function $({textContent:m,textContentStream:n,container:J,viewport:O,textDivs:L,textContentItemsStr:M,enhanceTextSelection:P}){this._textContent=m,this._textContentStream=n,this._container=J,this._viewport=O,this._textDivs=L||[],this._textContentItemsStr=M||[],this._enhanceTextSelection=!!P,this._fontInspectorEnabled=!!(globalThis.FontInspector&&globalThis.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,_util$6.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(()=>{this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)}).catch(()=>{})}$.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new _util$6.AbortException("TextLayer task cancelled.")),this._reader=null),this._renderTimer!==null&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems(m,n){for(let J=0,O=m.length;J<O;J++)this._textContentItemsStr.push(m[J].str),i(this,m[J],n)},_layoutText(m){const n=this._textDivProperties.get(m);if(n.isWhitespace)return;let J="";if(n.canvasWidth!==0){const{fontSize:O,fontFamily:L}=m.style;(O!==this._layoutTextLastFontSize||L!==this._layoutTextLastFontFamily)&&(this._layoutTextCtx.font=`${O} ${L}`,this._layoutTextLastFontSize=O,this._layoutTextLastFontFamily=L);const{width:M}=this._layoutTextCtx.measureText(m.textContent);M>0&&(n.scale=n.canvasWidth/M,J=`scaleX(${n.scale})`)}n.angle!==0&&(J=`rotate(${n.angle}deg) ${J}`),J.length>0&&(this._enhanceTextSelection&&(n.originalTransform=J),m.style.transform=J),this._textDivProperties.set(m,n),this._container.appendChild(m)},_render:function(n){const J=(0,_util$6.createPromiseCapability)();let O=Object.create(null);const L=document.createElement("canvas");if(L.mozOpaque=!0,this._layoutTextCtx=L.getContext("2d",{alpha:!1}),this._textContent){const M=this._textContent.items,P=this._textContent.styles;this._processItems(M,P),J.resolve()}else if(this._textContentStream){const M=()=>{this._reader.read().then(({value:P,done:b})=>{if(b){J.resolve();return}Object.assign(O,P.styles),this._processItems(P.items,O),M()},J.reject)};this._reader=this._textContentStream.getReader(),M()}else throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');J.promise.then(()=>{O=null,n?this._renderTimer=setTimeout(()=>{p(this),this._renderTimer=null},n):p(this)},this._capability.reject)},expandTextDivs:function(n){if(!this._enhanceTextSelection||!this._renderingDone)return;this._bounds!==null&&(e(this),this._bounds=null);const J=[],O=[];for(var L=0,M=this._textDivs.length;L<M;L++){const P=this._textDivs[L],b=this._textDivProperties.get(P);b.isWhitespace||(n?(J.length=0,O.length=0,b.originalTransform&&J.push(b.originalTransform),b.paddingTop>0?(O.push(`${b.paddingTop}px`),J.push(`translateY(${-b.paddingTop}px)`)):O.push(0),b.paddingRight>0?O.push(`${b.paddingRight/b.scale}px`):O.push(0),b.paddingBottom>0?O.push(`${b.paddingBottom}px`):O.push(0),b.paddingLeft>0?(O.push(`${b.paddingLeft/b.scale}px`),J.push(`translateX(${-b.paddingLeft/b.scale}px)`)):O.push(0),P.style.padding=O.join(" "),J.length&&(P.style.transform=J.join(" "))):(P.style.padding=null,P.style.transform=b.originalTransform))}}};function U(m){var n=new $({textContent:m.textContent,textContentStream:m.textContentStream,container:m.container,viewport:m.viewport,textDivs:m.textDivs,textContentItemsStr:m.textContentItemsStr,enhanceTextSelection:m.enhanceTextSelection});return n._render(m.timeout),n}return U}();exports$K.renderTextLayer=renderTextLayer;const __CJS__export_default__$G=(module$K.exports==null?{}:module$K.exports).default||module$K.exports,__CJS__export_renderTextLayer__$1=(module$K.exports==null?{}:module$K.exports).renderTextLayer,__CJS__import__2__$5=Object.freeze(Object.defineProperty({__proto__:null,default:__CJS__export_default__$G,renderTextLayer:__CJS__export_renderTextLayer__$1},Symbol.toStringTag,{value:"Module"}));var module$J={exports:{}},exports$J=module$J.exports;Object.defineProperty(exports$J,"__esModule",{value:!0});exports$J.AnnotationLayer=void 0;var _display_utils$1=__CJS__export_default__$T||__CJS__import__4__$4,_util$5=__CJS__export_default__$U||__CJS__import__0__$4;class AnnotationElementFactory{static create(t){switch(t.data.annotationType){case _util$5.AnnotationType.LINK:return new LinkAnnotationElement(t);case _util$5.AnnotationType.TEXT:return new TextAnnotationElement(t);case _util$5.AnnotationType.WIDGET:switch(t.data.fieldType){case"Tx":return new TextWidgetAnnotationElement(t);case"Btn":return t.data.radioButton?new RadioButtonWidgetAnnotationElement(t):t.data.checkBox?new CheckboxWidgetAnnotationElement(t):new PushButtonWidgetAnnotationElement(t);case"Ch":return new ChoiceWidgetAnnotationElement(t)}return new WidgetAnnotationElement(t);case _util$5.AnnotationType.POPUP:return new PopupAnnotationElement(t);case _util$5.AnnotationType.FREETEXT:return new FreeTextAnnotationElement(t);case _util$5.AnnotationType.LINE:return new LineAnnotationElement(t);case _util$5.AnnotationType.SQUARE:return new SquareAnnotationElement(t);case _util$5.AnnotationType.CIRCLE:return new CircleAnnotationElement(t);case _util$5.AnnotationType.POLYLINE:return new PolylineAnnotationElement(t);case _util$5.AnnotationType.CARET:return new CaretAnnotationElement(t);case _util$5.AnnotationType.INK:return new InkAnnotationElement(t);case _util$5.AnnotationType.POLYGON:return new PolygonAnnotationElement(t);case _util$5.AnnotationType.HIGHLIGHT:return new HighlightAnnotationElement(t);case _util$5.AnnotationType.UNDERLINE:return new UnderlineAnnotationElement(t);case _util$5.AnnotationType.SQUIGGLY:return new SquigglyAnnotationElement(t);case _util$5.AnnotationType.STRIKEOUT:return new StrikeOutAnnotationElement(t);case _util$5.AnnotationType.STAMP:return new StampAnnotationElement(t);case _util$5.AnnotationType.FILEATTACHMENT:return new FileAttachmentAnnotationElement(t);default:return new AnnotationElement(t)}}}class AnnotationElement{constructor(t,a=!1,r=!1){this.isRenderable=a,this.data=t.data,this.layer=t.layer,this.page=t.page,this.viewport=t.viewport,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderInteractiveForms=t.renderInteractiveForms,this.svgFactory=t.svgFactory,a&&(this.container=this._createContainer(r))}_createContainer(t=!1){const a=this.data,r=this.page,i=this.viewport,p=document.createElement("section");let e=a.rect[2]-a.rect[0],N=a.rect[3]-a.rect[1];p.setAttribute("data-annotation-id",a.id);const w=_util$5.Util.normalizeRect([a.rect[0],r.view[3]-a.rect[1]+r.view[1],a.rect[2],r.view[3]-a.rect[3]+r.view[1]]);if(p.style.transform=`matrix(${i.transform.join(",")})`,p.style.transformOrigin=`-${w[0]}px -${w[1]}px`,!t&&a.borderStyle.width>0){p.style.borderWidth=`${a.borderStyle.width}px`,a.borderStyle.style!==_util$5.AnnotationBorderStyleType.UNDERLINE&&(e=e-2*a.borderStyle.width,N=N-2*a.borderStyle.width);const $=a.borderStyle.horizontalCornerRadius,U=a.borderStyle.verticalCornerRadius;if($>0||U>0){const m=`${$}px / ${U}px`;p.style.borderRadius=m}switch(a.borderStyle.style){case _util$5.AnnotationBorderStyleType.SOLID:p.style.borderStyle="solid";break;case _util$5.AnnotationBorderStyleType.DASHED:p.style.borderStyle="dashed";break;case _util$5.AnnotationBorderStyleType.BEVELED:(0,_util$5.warn)("Unimplemented border style: beveled");break;case _util$5.AnnotationBorderStyleType.INSET:(0,_util$5.warn)("Unimplemented border style: inset");break;case _util$5.AnnotationBorderStyleType.UNDERLINE:p.style.borderBottomStyle="solid";break}a.color?p.style.borderColor=_util$5.Util.makeCssRgb(a.color[0]|0,a.color[1]|0,a.color[2]|0):p.style.borderWidth=0}return p.style.left=`${w[0]}px`,p.style.top=`${w[1]}px`,p.style.width=`${e}px`,p.style.height=`${N}px`,p}_createPopup(t,a,r){a||(a=document.createElement("div"),a.style.height=t.style.height,a.style.width=t.style.width,t.appendChild(a));const p=new PopupElement({container:t,trigger:a,color:r.color,title:r.title,modificationDate:r.modificationDate,contents:r.contents,hideWrapper:!0}).render();p.style.left=t.style.width,t.appendChild(p)}render(){(0,_util$5.unreachable)("Abstract method `AnnotationElement.render` called")}}class LinkAnnotationElement extends AnnotationElement{constructor(t){const a=!!(t.data.url||t.data.dest||t.data.action);super(t,a)}render(){this.container.className="linkAnnotation";const{data:t,linkService:a}=this,r=document.createElement("a");return t.url?(0,_display_utils$1.addLinkAttributes)(r,{url:t.url,target:t.newWindow?_display_utils$1.LinkTarget.BLANK:a.externalLinkTarget,rel:a.externalLinkRel,enabled:a.externalLinkEnabled}):t.action?this._bindNamedAction(r,t.action):this._bindLink(r,t.dest),this.container.appendChild(r),this.container}_bindLink(t,a){t.href=this.linkService.getDestinationHash(a),t.onclick=()=>(a&&this.linkService.navigateTo(a),!1),a&&(t.className="internalLink")}_bindNamedAction(t,a){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeNamedAction(a),!1),t.className="internalLink"}}class TextAnnotationElement extends AnnotationElement{constructor(t){const a=!!(t.data.hasPopup||t.data.title||t.data.contents);super(t,a)}render(){this.container.className="textAnnotation";const t=document.createElement("img");return t.style.height=this.container.style.height,t.style.width=this.container.style.width,t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.alt="[{{type}} Annotation]",t.dataset.l10nId="text_annotation_type",t.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,t,this.data),this.container.appendChild(t),this.container}}class WidgetAnnotationElement extends AnnotationElement{render(){return this.container}}class TextWidgetAnnotationElement extends WidgetAnnotationElement{constructor(t){const a=t.renderInteractiveForms||!t.data.hasAppearance&&!!t.data.fieldValue;super(t,a)}render(){const t=["left","center","right"];this.container.className="textWidgetAnnotation";let a=null;if(this.renderInteractiveForms){if(this.data.multiLine?(a=document.createElement("textarea"),a.textContent=this.data.fieldValue):(a=document.createElement("input"),a.type="text",a.setAttribute("value",this.data.fieldValue)),a.disabled=this.data.readOnly,this.data.maxLen!==null&&(a.maxLength=this.data.maxLen),this.data.comb){const i=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;a.classList.add("comb"),a.style.letterSpacing=`calc(${i}px - 1ch)`}}else{a=document.createElement("div"),a.textContent=this.data.fieldValue,a.style.verticalAlign="middle",a.style.display="table-cell";let r=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(r=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(a,r)}return this.data.textAlignment!==null&&(a.style.textAlign=t[this.data.textAlignment]),this.container.appendChild(a),this.container}_setTextStyle(t,a){const r=t.style;if(r.fontSize=`${this.data.fontSize}px`,r.direction=this.data.fontDirection<0?"rtl":"ltr",!a)return;let i="normal";a.black?i="900":a.bold&&(i="bold"),r.fontWeight=i,r.fontStyle=a.italic?"italic":"normal";const p=a.loadedName?`"${a.loadedName}", `:"",e=a.fallbackName||"Helvetica, sans-serif";r.fontFamily=p+e}}class CheckboxWidgetAnnotationElement extends WidgetAnnotationElement{constructor(t){super(t,t.renderInteractiveForms)}render(){this.container.className="buttonWidgetAnnotation checkBox";const t=document.createElement("input");return t.disabled=this.data.readOnly,t.type="checkbox",this.data.fieldValue&&this.data.fieldValue!=="Off"&&t.setAttribute("checked",!0),this.container.appendChild(t),this.container}}class RadioButtonWidgetAnnotationElement extends WidgetAnnotationElement{constructor(t){super(t,t.renderInteractiveForms)}render(){this.container.className="buttonWidgetAnnotation radioButton";const t=document.createElement("input");return t.disabled=this.data.readOnly,t.type="radio",t.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&t.setAttribute("checked",!0),this.container.appendChild(t),this.container}}class PushButtonWidgetAnnotationElement extends LinkAnnotationElement{render(){const t=super.render();return t.className="buttonWidgetAnnotation pushButton",t}}class ChoiceWidgetAnnotationElement extends WidgetAnnotationElement{constructor(t){super(t,t.renderInteractiveForms)}render(){this.container.className="choiceWidgetAnnotation";const t=document.createElement("select");t.disabled=this.data.readOnly,this.data.combo||(t.size=this.data.options.length,this.data.multiSelect&&(t.multiple=!0));for(const a of this.data.options){const r=document.createElement("option");r.textContent=a.displayValue,r.value=a.exportValue,this.data.fieldValue.includes(a.displayValue)&&r.setAttribute("selected",!0),t.appendChild(r)}return this.container.appendChild(t),this.container}}class PopupAnnotationElement extends AnnotationElement{constructor(t){const a=!!(t.data.title||t.data.contents);super(t,a)}render(){const t=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",t.includes(this.data.parentType))return this.container;const a=`[data-annotation-id="${this.data.parentId}"]`,r=this.layer.querySelector(a);if(!r)return this.container;const i=new PopupElement({container:this.container,trigger:r,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),p=parseFloat(r.style.left),e=parseFloat(r.style.width);return this.container.style.transformOrigin=`-${p+e}px -${r.style.top}`,this.container.style.left=`${p+e}px`,this.container.appendChild(i.render()),this.container}}class PopupElement{constructor(t){this.container=t.container,this.trigger=t.trigger,this.color=t.color,this.title=t.title,this.modificationDate=t.modificationDate,this.contents=t.contents,this.hideWrapper=t.hideWrapper||!1,this.pinned=!1}render(){const a=document.createElement("div");a.className="popupWrapper",this.hideElement=this.hideWrapper?a:this.container,this.hideElement.setAttribute("hidden",!0);const r=document.createElement("div");r.className="popup";const i=this.color;if(i){const w=.7*(255-i[0])+i[0],$=.7*(255-i[1])+i[1],U=.7*(255-i[2])+i[2];r.style.backgroundColor=_util$5.Util.makeCssRgb(w|0,$|0,U|0)}const p=document.createElement("h1");p.textContent=this.title,r.appendChild(p);const e=_display_utils$1.PDFDateString.toDateObject(this.modificationDate);if(e){const w=document.createElement("span");w.textContent="{{date}}, {{time}}",w.dataset.l10nId="annotation_date_string",w.dataset.l10nArgs=JSON.stringify({date:e.toLocaleDateString(),time:e.toLocaleTimeString()}),r.appendChild(w)}const N=this._formatContents(this.contents);return r.appendChild(N),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),r.addEventListener("click",this._hide.bind(this,!0)),a.appendChild(r),a}_formatContents(t){const a=document.createElement("p"),r=t.split(/(?:\r\n?|\n)/);for(let i=0,p=r.length;i<p;++i){const e=r[i];a.appendChild(document.createTextNode(e)),i<p-1&&a.appendChild(document.createElement("br"))}return a}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(t=!1){t&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}_hide(t=!0){t&&(this.pinned=!1),!this.hideElement.hasAttribute("hidden")&&!this.pinned&&(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}class FreeTextAnnotationElement extends AnnotationElement{constructor(t){const a=!!(t.data.hasPopup||t.data.title||t.data.contents);super(t,a,!0)}render(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class LineAnnotationElement extends AnnotationElement{constructor(t){const a=!!(t.data.hasPopup||t.data.title||t.data.contents);super(t,a,!0)}render(){this.container.className="lineAnnotation";const t=this.data,a=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],i=this.svgFactory.create(a,r),p=this.svgFactory.createElement("svg:line");return p.setAttribute("x1",t.rect[2]-t.lineCoordinates[0]),p.setAttribute("y1",t.rect[3]-t.lineCoordinates[1]),p.setAttribute("x2",t.rect[2]-t.lineCoordinates[2]),p.setAttribute("y2",t.rect[3]-t.lineCoordinates[3]),p.setAttribute("stroke-width",t.borderStyle.width||1),p.setAttribute("stroke","transparent"),i.appendChild(p),this.container.append(i),this._createPopup(this.container,p,t),this.container}}class SquareAnnotationElement extends AnnotationElement{constructor(t){const a=!!(t.data.hasPopup||t.data.title||t.data.contents);super(t,a,!0)}render(){this.container.className="squareAnnotation";const t=this.data,a=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],i=this.svgFactory.create(a,r),p=t.borderStyle.width,e=this.svgFactory.createElement("svg:rect");return e.setAttribute("x",p/2),e.setAttribute("y",p/2),e.setAttribute("width",a-p),e.setAttribute("height",r-p),e.setAttribute("stroke-width",p||1),e.setAttribute("stroke","transparent"),e.setAttribute("fill","none"),i.appendChild(e),this.container.append(i),this._createPopup(this.container,e,t),this.container}}class CircleAnnotationElement extends AnnotationElement{constructor(t){const a=!!(t.data.hasPopup||t.data.title||t.data.contents);super(t,a,!0)}render(){this.container.className="circleAnnotation";const t=this.data,a=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],i=this.svgFactory.create(a,r),p=t.borderStyle.width,e=this.svgFactory.createElement("svg:ellipse");return e.setAttribute("cx",a/2),e.setAttribute("cy",r/2),e.setAttribute("rx",a/2-p/2),e.setAttribute("ry",r/2-p/2),e.setAttribute("stroke-width",p||1),e.setAttribute("stroke","transparent"),e.setAttribute("fill","none"),i.appendChild(e),this.container.append(i),this._createPopup(this.container,e,t),this.container}}class PolylineAnnotationElement extends AnnotationElement{constructor(t){const a=!!(t.data.hasPopup||t.data.title||t.data.contents);super(t,a,!0),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const t=this.data,a=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],i=this.svgFactory.create(a,r);let p=[];for(const N of t.vertices){const w=N.x-t.rect[0],$=t.rect[3]-N.y;p.push(w+","+$)}p=p.join(" ");const e=this.svgFactory.createElement(this.svgElementName);return e.setAttribute("points",p),e.setAttribute("stroke-width",t.borderStyle.width||1),e.setAttribute("stroke","transparent"),e.setAttribute("fill","none"),i.appendChild(e),this.container.append(i),this._createPopup(this.container,e,t),this.container}}class PolygonAnnotationElement extends PolylineAnnotationElement{constructor(t){super(t),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class CaretAnnotationElement extends AnnotationElement{constructor(t){const a=!!(t.data.hasPopup||t.data.title||t.data.contents);super(t,a,!0)}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class InkAnnotationElement extends AnnotationElement{constructor(t){const a=!!(t.data.hasPopup||t.data.title||t.data.contents);super(t,a,!0),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const t=this.data,a=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],i=this.svgFactory.create(a,r);for(const p of t.inkLists){let e=[];for(const w of p){const $=w.x-t.rect[0],U=t.rect[3]-w.y;e.push(`${$},${U}`)}e=e.join(" ");const N=this.svgFactory.createElement(this.svgElementName);N.setAttribute("points",e),N.setAttribute("stroke-width",t.borderStyle.width||1),N.setAttribute("stroke","transparent"),N.setAttribute("fill","none"),this._createPopup(this.container,N,t),i.appendChild(N)}return this.container.append(i),this.container}}class HighlightAnnotationElement extends AnnotationElement{constructor(t){const a=!!(t.data.hasPopup||t.data.title||t.data.contents);super(t,a,!0)}render(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class UnderlineAnnotationElement extends AnnotationElement{constructor(t){const a=!!(t.data.hasPopup||t.data.title||t.data.contents);super(t,a,!0)}render(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class SquigglyAnnotationElement extends AnnotationElement{constructor(t){const a=!!(t.data.hasPopup||t.data.title||t.data.contents);super(t,a,!0)}render(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class StrikeOutAnnotationElement extends AnnotationElement{constructor(t){const a=!!(t.data.hasPopup||t.data.title||t.data.contents);super(t,a,!0)}render(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class StampAnnotationElement extends AnnotationElement{constructor(t){const a=!!(t.data.hasPopup||t.data.title||t.data.contents);super(t,a,!0)}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class FileAttachmentAnnotationElement extends AnnotationElement{constructor(t){super(t,!0);const{filename:a,content:r}=this.data.file;this.filename=(0,_display_utils$1.getFilenameFromUrl)(a),this.content=r,this.linkService.eventBus&&this.linkService.eventBus.dispatch("fileattachmentannotation",{source:this,id:(0,_util$5.stringToPDFString)(a),filename:a,content:r})}render(){this.container.className="fileAttachmentAnnotation";const t=document.createElement("div");return t.style.height=this.container.style.height,t.style.width=this.container.style.width,t.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&(this.data.title||this.data.contents)&&this._createPopup(this.container,t,this.data),this.container.appendChild(t),this.container}_download(){if(!this.downloadManager){(0,_util$5.warn)("Download cannot be started due to unavailable download manager");return}this.downloadManager.downloadData(this.content,this.filename,"")}}class AnnotationLayer{static render(t){const a=[],r=[];for(const i of t.annotations)if(i){if(i.annotationType===_util$5.AnnotationType.POPUP){r.push(i);continue}a.push(i)}r.length&&a.push(...r);for(const i of a){const p=AnnotationElementFactory.create({data:i,layer:t.div,page:t.page,viewport:t.viewport,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderInteractiveForms:t.renderInteractiveForms||!1,svgFactory:new _display_utils$1.DOMSVGFactory});p.isRenderable&&t.div.appendChild(p.render())}}static update(t){for(const a of t.annotations){const r=t.div.querySelector(`[data-annotation-id="${a.id}"]`);r&&(r.style.transform=`matrix(${t.viewport.transform.join(",")})`)}t.div.removeAttribute("hidden")}}exports$J.AnnotationLayer=AnnotationLayer;const __CJS__export_default__$F=(module$J.exports==null?{}:module$J.exports).default||module$J.exports,__CJS__export_AnnotationLayer__$1=(module$J.exports==null?{}:module$J.exports).AnnotationLayer,__CJS__import__3__$3=Object.freeze(Object.defineProperty({__proto__:null,AnnotationLayer:__CJS__export_AnnotationLayer__$1,default:__CJS__export_default__$F},Symbol.toStringTag,{value:"Module"})),__viteBrowserExternal={},__CJS__import__4__$2=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"}));var module$I={exports:{}},exports$I=module$I.exports;Object.defineProperty(exports$I,"__esModule",{value:!0});exports$I.SVGGraphics=void 0;var _util$4=__CJS__export_default__$U||__CJS__import__0__$4,_display_utils=__CJS__export_default__$T||__CJS__import__4__$4,_is_node=__CJS__export_default__$R||__CJS__import__8__$2;let SVGGraphics=function(){throw new Error("Not implemented: SVGGraphics")};exports$I.SVGGraphics=SVGGraphics;{let N=function(J){let O=[];const L=[];for(const M of J){if(M.fn==="save"){O.push({fnId:92,fn:"group",items:[]}),L.push(O),O=O[O.length-1].items;continue}M.fn==="restore"?O=L.pop():O.push(M)}return O},w=function(J){if(Number.isInteger(J))return J.toString();const O=J.toFixed(10);let L=O.length-1;if(O[L]!=="0")return O;do L--;while(O[L]==="0");return O.substring(0,O[L]==="."?L:L+1)},$=function(J){if(J[4]===0&&J[5]===0){if(J[1]===0&&J[2]===0)return J[0]===1&&J[3]===1?"":`scale(${w(J[0])} ${w(J[3])})`;if(J[0]===J[3]&&J[1]===-J[2]){const O=Math.acos(J[0])*180/Math.PI;return`rotate(${w(O)})`}}else if(J[0]===1&&J[1]===0&&J[2]===0&&J[3]===1)return`translate(${w(J[4])} ${w(J[5])})`;return`matrix(${w(J[0])} ${w(J[1])} ${w(J[2])} ${w(J[3])} ${w(J[4])} ${w(J[5])})`};const x={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},t="http://www.w3.org/XML/1998/namespace",a="http://www.w3.org/1999/xlink",r=["butt","round","square"],i=["miter","round","bevel"],p=function(){const J=new Uint8Array([137,80,78,71,13,10,26,10]),O=12,L=new Int32Array(256);for(let h=0;h<256;h++){let f=h;for(let g=0;g<8;g++)f&1?f=3988292384^f>>1&2147483647:f=f>>1&2147483647;L[h]=f}function M(h,f,g){let v=-1;for(let s=f;s<g;s++){const o=(v^h[s])&255,u=L[o];v=v>>>8^u}return v^-1}function P(h,f,g,v){let s=v;const o=f.length;g[s]=o>>24&255,g[s+1]=o>>16&255,g[s+2]=o>>8&255,g[s+3]=o&255,s+=4,g[s]=h.charCodeAt(0)&255,g[s+1]=h.charCodeAt(1)&255,g[s+2]=h.charCodeAt(2)&255,g[s+3]=h.charCodeAt(3)&255,s+=4,g.set(f,s),s+=f.length;const u=M(g,v+4,s);g[s]=u>>24&255,g[s+1]=u>>16&255,g[s+2]=u>>8&255,g[s+3]=u&255}function b(h,f,g){let v=1,s=0;for(let o=f;o<g;++o)v=(v+(h[o]&255))%65521,s=(s+v)%65521;return s<<16|v}function _(h){if(!_is_node.isNodeJS)return d(h);try{let f;parseInt(process.versions.node)>=8?f=h:f=Buffer.from(h);const g=(__viteBrowserExternal||__CJS__import__4__$2).deflateSync(f,{level:9});return g instanceof Uint8Array?g:new Uint8Array(g)}catch(f){(0,_util$4.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+f)}return d(h)}function d(h){let f=h.length;const g=65535,v=Math.ceil(f/g),s=new Uint8Array(2+f+v*5+4);let o=0;s[o++]=120,s[o++]=156;let u=0;for(;f>g;)s[o++]=0,s[o++]=255,s[o++]=255,s[o++]=0,s[o++]=0,s.set(h.subarray(u,u+g),o),o+=g,u+=g,f-=g;s[o++]=1,s[o++]=f&255,s[o++]=f>>8&255,s[o++]=~f&65535&255,s[o++]=(~f&65535)>>8&255,s.set(h.subarray(u),o),o+=h.length-u;const l=b(h,0,h.length);return s[o++]=l>>24&255,s[o++]=l>>16&255,s[o++]=l>>8&255,s[o++]=l&255,s}function c(h,f,g,v){const s=h.width,o=h.height;let u,l,F;const T=h.data;switch(f){case _util$4.ImageKind.GRAYSCALE_1BPP:l=0,u=1,F=s+7>>3;break;case _util$4.ImageKind.RGB_24BPP:l=2,u=8,F=s*3;break;case _util$4.ImageKind.RGBA_32BPP:l=6,u=8,F=s*4;break;default:throw new Error("invalid format")}const D=new Uint8Array((1+F)*o);let k=0,S=0;for(let I=0;I<o;++I)D[k++]=0,D.set(T.subarray(S,S+F),k),S+=F,k+=F;if(f===_util$4.ImageKind.GRAYSCALE_1BPP&&v){k=0;for(let I=0;I<o;I++){k++;for(let H=0;H<F;H++)D[k++]^=255}}const R=new Uint8Array([s>>24&255,s>>16&255,s>>8&255,s&255,o>>24&255,o>>16&255,o>>8&255,o&255,u,l,0,0,0]),E=_(D),A=J.length+O*3+R.length+E.length,C=new Uint8Array(A);let y=0;return C.set(J,y),y+=J.length,P("IHDR",R,C,y),y+=O+R.length,P("IDATA",E,C,y),y+=O+E.length,P("IEND",new Uint8Array(0),C,y),(0,_util$4.createObjectURL)(C,"image/png",g)}return function(f,g,v){const s=f.kind===void 0?_util$4.ImageKind.GRAYSCALE_1BPP:f.kind;return c(f,s,g,v)}}();class e{constructor(){this.fontSizeScale=1,this.fontWeight=x.fontWeight,this.fontSize=0,this.textMatrix=_util$4.IDENTITY_MATRIX,this.fontMatrix=_util$4.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=_util$4.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=x.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(O,L){this.x=O,this.y=L}}let U=0,m=0,n=0;exports$I.SVGGraphics=SVGGraphics=class{constructor(O,L,M){this.svgFactory=new _display_utils.DOMSVGFactory,this.current=new e,this.transformMatrix=_util$4.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=O,this.objs=L,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!M,this._operatorIdMapping=[];for(const P in _util$4.OPS)this._operatorIdMapping[_util$4.OPS[P]]=P}save(){this.transformStack.push(this.transformMatrix);const O=this.current;this.extraStack.push(O),this.current=O.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(O){this.save(),this.executeOpTree(O),this.restore()}loadDependencies(O){const L=O.fnArray,M=O.argsArray;for(let P=0,b=L.length;P<b;P++)if(L[P]===_util$4.OPS.dependency)for(const _ of M[P]){const d=_.startsWith("g_")?this.commonObjs:this.objs,c=new Promise(h=>{d.get(_,h)});this.current.dependencies.push(c)}return Promise.all(this.current.dependencies)}transform(O,L,M,P,b,_){const d=[O,L,M,P,b,_];this.transformMatrix=_util$4.Util.transform(this.transformMatrix,d),this.tgrp=null}getSVG(O,L){this.viewport=L;const M=this._initialize(L);return this.loadDependencies(O).then(()=>(this.transformMatrix=_util$4.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(O)),M))}convertOpList(O){const L=this._operatorIdMapping,M=O.argsArray,P=O.fnArray,b=[];for(let _=0,d=P.length;_<d;_++){const c=P[_];b.push({fnId:c,fn:L[c],args:M[_]})}return N(b)}executeOpTree(O){for(const L of O){const M=L.fn,P=L.fnId,b=L.args;switch(P|0){case _util$4.OPS.beginText:this.beginText();break;case _util$4.OPS.dependency:break;case _util$4.OPS.setLeading:this.setLeading(b);break;case _util$4.OPS.setLeadingMoveText:this.setLeadingMoveText(b[0],b[1]);break;case _util$4.OPS.setFont:this.setFont(b);break;case _util$4.OPS.showText:this.showText(b[0]);break;case _util$4.OPS.showSpacedText:this.showText(b[0]);break;case _util$4.OPS.endText:this.endText();break;case _util$4.OPS.moveText:this.moveText(b[0],b[1]);break;case _util$4.OPS.setCharSpacing:this.setCharSpacing(b[0]);break;case _util$4.OPS.setWordSpacing:this.setWordSpacing(b[0]);break;case _util$4.OPS.setHScale:this.setHScale(b[0]);break;case _util$4.OPS.setTextMatrix:this.setTextMatrix(b[0],b[1],b[2],b[3],b[4],b[5]);break;case _util$4.OPS.setTextRise:this.setTextRise(b[0]);break;case _util$4.OPS.setTextRenderingMode:this.setTextRenderingMode(b[0]);break;case _util$4.OPS.setLineWidth:this.setLineWidth(b[0]);break;case _util$4.OPS.setLineJoin:this.setLineJoin(b[0]);break;case _util$4.OPS.setLineCap:this.setLineCap(b[0]);break;case _util$4.OPS.setMiterLimit:this.setMiterLimit(b[0]);break;case _util$4.OPS.setFillRGBColor:this.setFillRGBColor(b[0],b[1],b[2]);break;case _util$4.OPS.setStrokeRGBColor:this.setStrokeRGBColor(b[0],b[1],b[2]);break;case _util$4.OPS.setStrokeColorN:this.setStrokeColorN(b);break;case _util$4.OPS.setFillColorN:this.setFillColorN(b);break;case _util$4.OPS.shadingFill:this.shadingFill(b[0]);break;case _util$4.OPS.setDash:this.setDash(b[0],b[1]);break;case _util$4.OPS.setRenderingIntent:this.setRenderingIntent(b[0]);break;case _util$4.OPS.setFlatness:this.setFlatness(b[0]);break;case _util$4.OPS.setGState:this.setGState(b[0]);break;case _util$4.OPS.fill:this.fill();break;case _util$4.OPS.eoFill:this.eoFill();break;case _util$4.OPS.stroke:this.stroke();break;case _util$4.OPS.fillStroke:this.fillStroke();break;case _util$4.OPS.eoFillStroke:this.eoFillStroke();break;case _util$4.OPS.clip:this.clip("nonzero");break;case _util$4.OPS.eoClip:this.clip("evenodd");break;case _util$4.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case _util$4.OPS.paintJpegXObject:this.paintJpegXObject(b[0],b[1],b[2]);break;case _util$4.OPS.paintImageXObject:this.paintImageXObject(b[0]);break;case _util$4.OPS.paintInlineImageXObject:this.paintInlineImageXObject(b[0]);break;case _util$4.OPS.paintImageMaskXObject:this.paintImageMaskXObject(b[0]);break;case _util$4.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(b[0],b[1]);break;case _util$4.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case _util$4.OPS.closePath:this.closePath();break;case _util$4.OPS.closeStroke:this.closeStroke();break;case _util$4.OPS.closeFillStroke:this.closeFillStroke();break;case _util$4.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case _util$4.OPS.nextLine:this.nextLine();break;case _util$4.OPS.transform:this.transform(b[0],b[1],b[2],b[3],b[4],b[5]);break;case _util$4.OPS.constructPath:this.constructPath(b[0],b[1]);break;case _util$4.OPS.endPath:this.endPath();break;case 92:this.group(L.items);break;default:(0,_util$4.warn)(`Unimplemented operator ${M}`);break}}}setWordSpacing(O){this.current.wordSpacing=O}setCharSpacing(O){this.current.charSpacing=O}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(O,L,M,P,b,_){const d=this.current;d.textMatrix=d.lineMatrix=[O,L,M,P,b,_],d.textMatrixScale=Math.sqrt(O*O+L*L),d.x=d.lineX=0,d.y=d.lineY=0,d.xcoords=[],d.tspan=this.svgFactory.createElement("svg:tspan"),d.tspan.setAttributeNS(null,"font-family",d.fontFamily),d.tspan.setAttributeNS(null,"font-size",`${w(d.fontSize)}px`),d.tspan.setAttributeNS(null,"y",w(-d.y)),d.txtElement=this.svgFactory.createElement("svg:text"),d.txtElement.appendChild(d.tspan)}beginText(){const O=this.current;O.x=O.lineX=0,O.y=O.lineY=0,O.textMatrix=_util$4.IDENTITY_MATRIX,O.lineMatrix=_util$4.IDENTITY_MATRIX,O.textMatrixScale=1,O.tspan=this.svgFactory.createElement("svg:tspan"),O.txtElement=this.svgFactory.createElement("svg:text"),O.txtgrp=this.svgFactory.createElement("svg:g"),O.xcoords=[]}moveText(O,L){const M=this.current;M.x=M.lineX+=O,M.y=M.lineY+=L,M.xcoords=[],M.tspan=this.svgFactory.createElement("svg:tspan"),M.tspan.setAttributeNS(null,"font-family",M.fontFamily),M.tspan.setAttributeNS(null,"font-size",`${w(M.fontSize)}px`),M.tspan.setAttributeNS(null,"y",w(-M.y))}showText(O){const L=this.current,M=L.font,P=L.fontSize;if(P===0)return;const b=L.charSpacing,_=L.wordSpacing,d=L.fontDirection,c=L.textHScale*d,h=M.vertical,f=P*L.fontMatrix[0];let g=0;for(const o of O){if(o===null){g+=d*_;continue}else if((0,_util$4.isNum)(o)){g+=-o*P*.001;continue}const u=o.width,l=o.fontChar,F=(o.isSpace?_:0)+b,T=u*f+F*d;if(!o.isInFont&&!M.missingFile){g+=T;continue}L.xcoords.push(L.x+g),L.tspan.textContent+=l,g+=T}h?L.y-=g*c:L.x+=g*c,L.tspan.setAttributeNS(null,"x",L.xcoords.map(w).join(" ")),L.tspan.setAttributeNS(null,"y",w(-L.y)),L.tspan.setAttributeNS(null,"font-family",L.fontFamily),L.tspan.setAttributeNS(null,"font-size",`${w(L.fontSize)}px`),L.fontStyle!==x.fontStyle&&L.tspan.setAttributeNS(null,"font-style",L.fontStyle),L.fontWeight!==x.fontWeight&&L.tspan.setAttributeNS(null,"font-weight",L.fontWeight);const v=L.textRenderingMode&_util$4.TextRenderingMode.FILL_STROKE_MASK;if(v===_util$4.TextRenderingMode.FILL||v===_util$4.TextRenderingMode.FILL_STROKE?(L.fillColor!==x.fillColor&&L.tspan.setAttributeNS(null,"fill",L.fillColor),L.fillAlpha<1&&L.tspan.setAttributeNS(null,"fill-opacity",L.fillAlpha)):L.textRenderingMode===_util$4.TextRenderingMode.ADD_TO_PATH?L.tspan.setAttributeNS(null,"fill","transparent"):L.tspan.setAttributeNS(null,"fill","none"),v===_util$4.TextRenderingMode.STROKE||v===_util$4.TextRenderingMode.FILL_STROKE){const o=1/(L.textMatrixScale||1);this._setStrokeAttributes(L.tspan,o)}let s=L.textMatrix;L.textRise!==0&&(s=s.slice(),s[5]+=L.textRise),L.txtElement.setAttributeNS(null,"transform",`${$(s)} scale(${w(c)}, -1)`),L.txtElement.setAttributeNS(t,"xml:space","preserve"),L.txtElement.appendChild(L.tspan),L.txtgrp.appendChild(L.txtElement),this._ensureTransformGroup().appendChild(L.txtElement)}setLeadingMoveText(O,L){this.setLeading(-L),this.moveText(O,L)}addFontStyle(O){this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));const L=(0,_util$4.createObjectURL)(O.data,O.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${O.loadedName}"; src: url(${L}); }
|
|
5
|
+
`}setFont(O){const L=this.current,M=this.commonObjs.get(O[0]);let P=O[1];L.font=M,this.embedFonts&&M.data&&!this.embeddedFonts[M.loadedName]&&(this.addFontStyle(M),this.embeddedFonts[M.loadedName]=M),L.fontMatrix=M.fontMatrix?M.fontMatrix:_util$4.FONT_IDENTITY_MATRIX;let b="normal";M.black?b="900":M.bold&&(b="bold");const _=M.italic?"italic":"normal";P<0?(P=-P,L.fontDirection=-1):L.fontDirection=1,L.fontSize=P,L.fontFamily=M.loadedName,L.fontWeight=b,L.fontStyle=_,L.tspan=this.svgFactory.createElement("svg:tspan"),L.tspan.setAttributeNS(null,"y",w(-L.y)),L.xcoords=[]}endText(){const O=this.current;O.textRenderingMode&_util$4.TextRenderingMode.ADD_TO_PATH_FLAG&&O.txtElement&&O.txtElement.hasChildNodes()&&(O.element=O.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(O){O>0&&(this.current.lineWidth=O)}setLineCap(O){this.current.lineCap=r[O]}setLineJoin(O){this.current.lineJoin=i[O]}setMiterLimit(O){this.current.miterLimit=O}setStrokeAlpha(O){this.current.strokeAlpha=O}setStrokeRGBColor(O,L,M){this.current.strokeColor=_util$4.Util.makeCssRgb(O,L,M)}setFillAlpha(O){this.current.fillAlpha=O}setFillRGBColor(O,L,M){this.current.fillColor=_util$4.Util.makeCssRgb(O,L,M),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[]}setStrokeColorN(O){this.current.strokeColor=this._makeColorN_Pattern(O)}setFillColorN(O){this.current.fillColor=this._makeColorN_Pattern(O)}shadingFill(O){const L=this.viewport.width,M=this.viewport.height,P=_util$4.Util.inverseTransform(this.transformMatrix),b=_util$4.Util.applyTransform([0,0],P),_=_util$4.Util.applyTransform([0,M],P),d=_util$4.Util.applyTransform([L,0],P),c=_util$4.Util.applyTransform([L,M],P),h=Math.min(b[0],_[0],d[0],c[0]),f=Math.min(b[1],_[1],d[1],c[1]),g=Math.max(b[0],_[0],d[0],c[0]),v=Math.max(b[1],_[1],d[1],c[1]),s=this.svgFactory.createElement("svg:rect");s.setAttributeNS(null,"x",h),s.setAttributeNS(null,"y",f),s.setAttributeNS(null,"width",g-h),s.setAttributeNS(null,"height",v-f),s.setAttributeNS(null,"fill",this._makeShadingPattern(O)),this._ensureTransformGroup().appendChild(s)}_makeColorN_Pattern(O){return O[0]==="TilingPattern"?this._makeTilingPattern(O):this._makeShadingPattern(O)}_makeTilingPattern(O){const L=O[1],M=O[2],P=O[3]||_util$4.IDENTITY_MATRIX,[b,_,d,c]=O[4],h=O[5],f=O[6],g=O[7],v=`shading${n++}`,[s,o]=_util$4.Util.applyTransform([b,_],P),[u,l]=_util$4.Util.applyTransform([d,c],P),[F,T]=_util$4.Util.singularValueDecompose2dScale(P),D=h*F,k=f*T,S=this.svgFactory.createElement("svg:pattern");S.setAttributeNS(null,"id",v),S.setAttributeNS(null,"patternUnits","userSpaceOnUse"),S.setAttributeNS(null,"width",D),S.setAttributeNS(null,"height",k),S.setAttributeNS(null,"x",`${s}`),S.setAttributeNS(null,"y",`${o}`);const R=this.svg,E=this.transformMatrix,A=this.current.fillColor,C=this.current.strokeColor,y=this.svgFactory.create(u-s,l-o);if(this.svg=y,this.transformMatrix=P,g===2){const I=_util$4.Util.makeCssRgb(...L);this.current.fillColor=I,this.current.strokeColor=I}return this.executeOpTree(this.convertOpList(M)),this.svg=R,this.transformMatrix=E,this.current.fillColor=A,this.current.strokeColor=C,S.appendChild(y.childNodes[0]),this.defs.appendChild(S),`url(#${v})`}_makeShadingPattern(O){switch(O[0]){case"RadialAxial":const L=`shading${n++}`,M=O[3];let P;switch(O[1]){case"axial":const b=O[4],_=O[5];P=this.svgFactory.createElement("svg:linearGradient"),P.setAttributeNS(null,"id",L),P.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),P.setAttributeNS(null,"x1",b[0]),P.setAttributeNS(null,"y1",b[1]),P.setAttributeNS(null,"x2",_[0]),P.setAttributeNS(null,"y2",_[1]);break;case"radial":const d=O[4],c=O[5],h=O[6],f=O[7];P=this.svgFactory.createElement("svg:radialGradient"),P.setAttributeNS(null,"id",L),P.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),P.setAttributeNS(null,"cx",c[0]),P.setAttributeNS(null,"cy",c[1]),P.setAttributeNS(null,"r",f),P.setAttributeNS(null,"fx",d[0]),P.setAttributeNS(null,"fy",d[1]),P.setAttributeNS(null,"fr",h);break;default:throw new Error(`Unknown RadialAxial type: ${O[1]}`)}for(const b of M){const _=this.svgFactory.createElement("svg:stop");_.setAttributeNS(null,"offset",b[0]),_.setAttributeNS(null,"stop-color",b[1]),P.appendChild(_)}return this.defs.appendChild(P),`url(#${L})`;case"Mesh":return(0,_util$4.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${O[0]}`)}}setDash(O,L){this.current.dashArray=O,this.current.dashPhase=L}constructPath(O,L){const M=this.current;let P=M.x,b=M.y,_=[],d=0;for(const c of O)switch(c|0){case _util$4.OPS.rectangle:P=L[d++],b=L[d++];const h=L[d++],f=L[d++],g=P+h,v=b+f;_.push("M",w(P),w(b),"L",w(g),w(b),"L",w(g),w(v),"L",w(P),w(v),"Z");break;case _util$4.OPS.moveTo:P=L[d++],b=L[d++],_.push("M",w(P),w(b));break;case _util$4.OPS.lineTo:P=L[d++],b=L[d++],_.push("L",w(P),w(b));break;case _util$4.OPS.curveTo:P=L[d+4],b=L[d+5],_.push("C",w(L[d]),w(L[d+1]),w(L[d+2]),w(L[d+3]),w(P),w(b)),d+=6;break;case _util$4.OPS.curveTo2:_.push("C",w(P),w(b),w(L[d]),w(L[d+1]),w(L[d+2]),w(L[d+3])),P=L[d+2],b=L[d+3],d+=4;break;case _util$4.OPS.curveTo3:P=L[d+2],b=L[d+3],_.push("C",w(L[d]),w(L[d+1]),w(P),w(b),w(P),w(b)),d+=4;break;case _util$4.OPS.closePath:_.push("Z");break}_=_.join(" "),M.path&&O.length>0&&O[0]!==_util$4.OPS.rectangle&&O[0]!==_util$4.OPS.moveTo?_=M.path.getAttributeNS(null,"d")+_:(M.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(M.path)),M.path.setAttributeNS(null,"d",_),M.path.setAttributeNS(null,"fill","none"),M.element=M.path,M.setCurrentPoint(P,b)}endPath(){const O=this.current;if(O.path=null,!this.pendingClip)return;if(!O.element){this.pendingClip=null;return}const L=`clippath${U++}`,M=this.svgFactory.createElement("svg:clipPath");M.setAttributeNS(null,"id",L),M.setAttributeNS(null,"transform",$(this.transformMatrix));const P=O.element.cloneNode(!0);this.pendingClip==="evenodd"?P.setAttributeNS(null,"clip-rule","evenodd"):P.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,M.appendChild(P),this.defs.appendChild(M),O.activeClipUrl&&(O.clipGroup=null,this.extraStack.forEach(function(b){b.clipGroup=null}),M.setAttributeNS(null,"clip-path",O.activeClipUrl)),O.activeClipUrl=`url(#${L})`,this.tgrp=null}clip(O){this.pendingClip=O}closePath(){const O=this.current;if(O.path){const L=`${O.path.getAttributeNS(null,"d")}Z`;O.path.setAttributeNS(null,"d",L)}}setLeading(O){this.current.leading=-O}setTextRise(O){this.current.textRise=O}setTextRenderingMode(O){this.current.textRenderingMode=O}setHScale(O){this.current.textHScale=O/100}setRenderingIntent(O){}setFlatness(O){}setGState(O){for(const[L,M]of O)switch(L){case"LW":this.setLineWidth(M);break;case"LC":this.setLineCap(M);break;case"LJ":this.setLineJoin(M);break;case"ML":this.setMiterLimit(M);break;case"D":this.setDash(M[0],M[1]);break;case"RI":this.setRenderingIntent(M);break;case"FL":this.setFlatness(M);break;case"Font":this.setFont(M);break;case"CA":this.setStrokeAlpha(M);break;case"ca":this.setFillAlpha(M);break;default:(0,_util$4.warn)(`Unimplemented graphic state operator ${L}`);break}}fill(){const O=this.current;O.element&&(O.element.setAttributeNS(null,"fill",O.fillColor),O.element.setAttributeNS(null,"fill-opacity",O.fillAlpha),this.endPath())}stroke(){const O=this.current;O.element&&(this._setStrokeAttributes(O.element),O.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(O,L=1){const M=this.current;let P=M.dashArray;L!==1&&P.length>0&&(P=P.map(function(b){return L*b})),O.setAttributeNS(null,"stroke",M.strokeColor),O.setAttributeNS(null,"stroke-opacity",M.strokeAlpha),O.setAttributeNS(null,"stroke-miterlimit",w(M.miterLimit)),O.setAttributeNS(null,"stroke-linecap",M.lineCap),O.setAttributeNS(null,"stroke-linejoin",M.lineJoin),O.setAttributeNS(null,"stroke-width",w(L*M.lineWidth)+"px"),O.setAttributeNS(null,"stroke-dasharray",P.map(w).join(" ")),O.setAttributeNS(null,"stroke-dashoffset",w(L*M.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const O=this.svgFactory.createElement("svg:rect");O.setAttributeNS(null,"x","0"),O.setAttributeNS(null,"y","0"),O.setAttributeNS(null,"width","1px"),O.setAttributeNS(null,"height","1px"),O.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(O)}paintJpegXObject(O,L,M){const P=this.objs.get(O),b=this.svgFactory.createElement("svg:image");b.setAttributeNS(a,"xlink:href",P.src),b.setAttributeNS(null,"width",w(L)),b.setAttributeNS(null,"height",w(M)),b.setAttributeNS(null,"x","0"),b.setAttributeNS(null,"y",w(-M)),b.setAttributeNS(null,"transform",`scale(${w(1/L)} ${w(-1/M)})`),this._ensureTransformGroup().appendChild(b)}paintImageXObject(O){const L=this.objs.get(O);if(!L){(0,_util$4.warn)(`Dependent image with object ID ${O} is not ready yet`);return}this.paintInlineImageXObject(L)}paintInlineImageXObject(O,L){const M=O.width,P=O.height,b=p(O,this.forceDataSchema,!!L),_=this.svgFactory.createElement("svg:rect");_.setAttributeNS(null,"x","0"),_.setAttributeNS(null,"y","0"),_.setAttributeNS(null,"width",w(M)),_.setAttributeNS(null,"height",w(P)),this.current.element=_,this.clip("nonzero");const d=this.svgFactory.createElement("svg:image");d.setAttributeNS(a,"xlink:href",b),d.setAttributeNS(null,"x","0"),d.setAttributeNS(null,"y",w(-P)),d.setAttributeNS(null,"width",w(M)+"px"),d.setAttributeNS(null,"height",w(P)+"px"),d.setAttributeNS(null,"transform",`scale(${w(1/M)} ${w(-1/P)})`),L?L.appendChild(d):this._ensureTransformGroup().appendChild(d)}paintImageMaskXObject(O){const L=this.current,M=O.width,P=O.height,b=L.fillColor;L.maskId=`mask${m++}`;const _=this.svgFactory.createElement("svg:mask");_.setAttributeNS(null,"id",L.maskId);const d=this.svgFactory.createElement("svg:rect");d.setAttributeNS(null,"x","0"),d.setAttributeNS(null,"y","0"),d.setAttributeNS(null,"width",w(M)),d.setAttributeNS(null,"height",w(P)),d.setAttributeNS(null,"fill",b),d.setAttributeNS(null,"mask",`url(#${L.maskId})`),this.defs.appendChild(_),this._ensureTransformGroup().appendChild(d),this.paintInlineImageXObject(O,_)}paintFormXObjectBegin(O,L){if(Array.isArray(O)&&O.length===6&&this.transform(O[0],O[1],O[2],O[3],O[4],O[5]),L){const M=L[2]-L[0],P=L[3]-L[1],b=this.svgFactory.createElement("svg:rect");b.setAttributeNS(null,"x",L[0]),b.setAttributeNS(null,"y",L[1]),b.setAttributeNS(null,"width",w(M)),b.setAttributeNS(null,"height",w(P)),this.current.element=b,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(O){const L=this.svgFactory.create(O.width,O.height),M=this.svgFactory.createElement("svg:defs");L.appendChild(M),this.defs=M;const P=this.svgFactory.createElement("svg:g");return P.setAttributeNS(null,"transform",$(O.transform)),L.appendChild(P),this.svg=P,L}_ensureClipGroup(){if(!this.current.clipGroup){const O=this.svgFactory.createElement("svg:g");O.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(O),this.current.clipGroup=O}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",$(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}}const __CJS__export_default__$E=(module$I.exports==null?{}:module$I.exports).default||module$I.exports,__CJS__export_SVGGraphics__$1=(module$I.exports==null?{}:module$I.exports).SVGGraphics,__CJS__import__5__$1=Object.freeze(Object.defineProperty({__proto__:null,SVGGraphics:__CJS__export_SVGGraphics__$1,default:__CJS__export_default__$E},Symbol.toStringTag,{value:"Module"}));var module$H={exports:{}},exports$H=module$H.exports;Object.defineProperty(exports$H,"__esModule",{value:!0});exports$H.getFilenameFromContentDispositionHeader=getFilenameFromContentDispositionHeader;function getFilenameFromContentDispositionHeader(x){let t=!0,a=r("filename\\*","i").exec(x);if(a){a=a[1];let U=N(a);return U=unescape(U),U=w(U),U=$(U),p(U)}if(a=e(x),a){const U=$(a);return p(U)}if(a=r("filename","i").exec(x),a){a=a[1];let U=N(a);return U=$(U),p(U)}function r(U,m){return new RegExp("(?:^|;)\\s*"+U+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',m)}function i(U,m){if(U){if(!/^[\x00-\xFF]+$/.test(m))return m;try{const n=new TextDecoder(U,{fatal:!0}),J=Array.from(m,function(O){return O.charCodeAt(0)&255});m=n.decode(new Uint8Array(J)),t=!1}catch{if(/^utf-?8$/i.test(U))try{m=decodeURIComponent(escape(m)),t=!1}catch{}}}return m}function p(U){return t&&/[\x80-\xff]/.test(U)&&(U=i("utf-8",U),t&&(U=i("iso-8859-1",U))),U}function e(U){const m=[];let n;const J=r("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(n=J.exec(U))!==null;){let[,L,M,P]=n;if(L=parseInt(L,10),L in m){if(L===0)break;continue}m[L]=[M,P]}const O=[];for(let L=0;L<m.length&&L in m;++L){let[M,P]=m[L];P=N(P),M&&(P=unescape(P),L===0&&(P=w(P))),O.push(P)}return O.join("")}function N(U){if(U.startsWith('"')){const m=U.slice(1).split('\\"');for(let n=0;n<m.length;++n){const J=m[n].indexOf('"');J!==-1&&(m[n]=m[n].slice(0,J),m.length=n+1),m[n]=m[n].replace(/\\(.)/g,"$1")}U=m.join('"')}return U}function w(U){const m=U.indexOf("'");if(m===-1)return U;const n=U.slice(0,m),O=U.slice(m+1).replace(/^[^']*'/,"");return i(n,O)}function $(U){return!U.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(U)?U:U.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(m,n,J,O){if(J==="q"||J==="Q")return O=O.replace(/_/g," "),O=O.replace(/=([0-9a-fA-F]{2})/g,function(L,M){return String.fromCharCode(parseInt(M,16))}),i(n,O);try{O=atob(O)}catch{}return i(n,O)})}return""}const __CJS__export_default__$D=(module$H.exports==null?{}:module$H.exports).default||module$H.exports,__CJS__export_getFilenameFromContentDispositionHeader__=(module$H.exports==null?{}:module$H.exports).getFilenameFromContentDispositionHeader,__CJS__import__1__$4=Object.freeze(Object.defineProperty({__proto__:null,default:__CJS__export_default__$D,getFilenameFromContentDispositionHeader:__CJS__export_getFilenameFromContentDispositionHeader__},Symbol.toStringTag,{value:"Module"}));var module$G={exports:{}},exports$G=module$G.exports;Object.defineProperty(exports$G,"__esModule",{value:!0});exports$G.createResponseStatusError=createResponseStatusError;exports$G.extractFilenameFromHeader=extractFilenameFromHeader;exports$G.validateRangeRequestCapabilities=validateRangeRequestCapabilities;exports$G.validateResponseStatus=validateResponseStatus;var _util$3=__CJS__export_default__$U||__CJS__import__0__$4,_content_disposition=__CJS__export_default__$D||__CJS__import__1__$4;function validateRangeRequestCapabilities({getResponseHeader:x,isHttp:t,rangeChunkSize:a,disableRange:r}){(0,_util$3.assert)(a>0,"Range chunk size must be larger than zero");const i={allowRangeRequests:!1,suggestedLength:void 0},p=parseInt(x("Content-Length"),10);return!Number.isInteger(p)||(i.suggestedLength=p,p<=2*a)||r||!t||x("Accept-Ranges")!=="bytes"||(x("Content-Encoding")||"identity")!=="identity"||(i.allowRangeRequests=!0),i}function extractFilenameFromHeader(x){const t=x("Content-Disposition");if(t){let a=(0,_content_disposition.getFilenameFromContentDispositionHeader)(t);if(a.includes("%"))try{a=decodeURIComponent(a)}catch{}if(/\.pdf$/i.test(a))return a}return null}function createResponseStatusError(x,t){return x===404||x===0&&t.startsWith("file:")?new _util$3.MissingPDFException('Missing PDF "'+t+'".'):new _util$3.UnexpectedResponseException("Unexpected server response ("+x+') while retrieving PDF "'+t+'".',x)}function validateResponseStatus(x){return x===200||x===206}const __CJS__export_default__$C=(module$G.exports==null?{}:module$G.exports).default||module$G.exports,__CJS__export_createResponseStatusError__=(module$G.exports==null?{}:module$G.exports).createResponseStatusError,__CJS__export_extractFilenameFromHeader__=(module$G.exports==null?{}:module$G.exports).extractFilenameFromHeader,__CJS__export_validateRangeRequestCapabilities__=(module$G.exports==null?{}:module$G.exports).validateRangeRequestCapabilities,__CJS__export_validateResponseStatus__=(module$G.exports==null?{}:module$G.exports).validateResponseStatus,__CJS__import__1__$3=Object.freeze(Object.defineProperty({__proto__:null,createResponseStatusError:__CJS__export_createResponseStatusError__,default:__CJS__export_default__$C,extractFilenameFromHeader:__CJS__export_extractFilenameFromHeader__,validateRangeRequestCapabilities:__CJS__export_validateRangeRequestCapabilities__,validateResponseStatus:__CJS__export_validateResponseStatus__},Symbol.toStringTag,{value:"Module"}));var module$F={exports:{}},exports$F=module$F.exports;Object.defineProperty(exports$F,"__esModule",{value:!0});exports$F.PDFNodeStream=void 0;var _util$2=__CJS__export_default__$U||__CJS__import__0__$4,_network_utils$2=__CJS__export_default__$C||__CJS__import__1__$3;const fs=__viteBrowserExternal||__CJS__import__4__$2,http=__viteBrowserExternal||__CJS__import__4__$2,https=__viteBrowserExternal||__CJS__import__4__$2,url=__viteBrowserExternal||__CJS__import__4__$2,fileUriRegex=/^file:\/\/\/[a-zA-Z]:\//;function parseUrl(x){const t=url.parse(x);return t.protocol==="file:"||t.host?t:/^[a-z]:[/\\]/i.test(x)?url.parse(`file:///${x}`):(t.host||(t.protocol="file:"),t)}class PDFNodeStream{constructor(t){this.source=t,this.url=parseUrl(t.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}getFullReader(){return(0,_util$2.assert)(!this._fullRequestReader),this._fullRequestReader=this.isFsUrl?new PDFNodeStreamFsFullReader(this):new PDFNodeStreamFullReader(this),this._fullRequestReader}getRangeReader(t,a){if(a<=this._progressiveDataLength)return null;const r=this.isFsUrl?new PDFNodeStreamFsRangeReader(this,t,a):new PDFNodeStreamRangeReader(this,t,a);return this._rangeRequestReaders.push(r),r}cancelAllRequests(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach(function(r){r.cancel(t)})}}exports$F.PDFNodeStream=PDFNodeStream;class BaseFullReader{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;const a=t.source;this._contentLength=a.length,this._loaded=0,this._filename=null,this._disableRange=a.disableRange||!1,this._rangeChunkSize=a.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!a.disableStream,this._isRangeSupported=!a.disableRange,this._readableStream=null,this._readCapability=(0,_util$2.createPromiseCapability)(),this._headersCapability=(0,_util$2.createPromiseCapability)()}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(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=(0,_util$2.createPromiseCapability)(),this.read()):(this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",a=>{this._error(a)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new _util$2.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class BaseRangeReader{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,_util$2.createPromiseCapability)();const a=t.source;this._isStreamingSupported=!a.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=(0,_util$2.createPromiseCapability)(),this.read()):(this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",a=>{this._error(a)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function createRequestOptions(x,t){return{protocol:x.protocol,auth:x.auth,host:x.hostname,port:x.port,path:x.path,method:"GET",headers:t}}class PDFNodeStreamFullReader extends BaseFullReader{constructor(t){super(t);const a=r=>{if(r.statusCode===404){const N=new _util$2.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=N,this._headersCapability.reject(N);return}this._headersCapability.resolve(),this._setReadableStream(r);const i=N=>this._readableStream.headers[N.toLowerCase()],{allowRangeRequests:p,suggestedLength:e}=(0,_network_utils$2.validateRangeRequestCapabilities)({getResponseHeader:i,isHttp:t.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=p,this._contentLength=e||this._contentLength,this._filename=(0,_network_utils$2.extractFilenameFromHeader)(i)};this._request=null,this._url.protocol==="http:"?this._request=http.request(createRequestOptions(this._url,t.httpHeaders),a):this._request=https.request(createRequestOptions(this._url,t.httpHeaders),a),this._request.on("error",r=>{this._storedError=r,this._headersCapability.reject(r)}),this._request.end()}}class PDFNodeStreamRangeReader extends BaseRangeReader{constructor(t,a,r){super(t),this._httpHeaders={};for(const p in t.httpHeaders){const e=t.httpHeaders[p];typeof e>"u"||(this._httpHeaders[p]=e)}this._httpHeaders.Range=`bytes=${a}-${r-1}`;const i=p=>{if(p.statusCode===404){const e=new _util$2.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=e;return}this._setReadableStream(p)};this._request=null,this._url.protocol==="http:"?this._request=http.request(createRequestOptions(this._url,this._httpHeaders),i):this._request=https.request(createRequestOptions(this._url,this._httpHeaders),i),this._request.on("error",p=>{this._storedError=p}),this._request.end()}}class PDFNodeStreamFsFullReader extends BaseFullReader{constructor(t){super(t);let a=decodeURIComponent(this._url.path);fileUriRegex.test(this._url.href)&&(a=a.replace(/^\//,"")),fs.lstat(a,(r,i)=>{if(r){r.code==="ENOENT"&&(r=new _util$2.MissingPDFException(`Missing PDF "${a}".`)),this._storedError=r,this._headersCapability.reject(r);return}this._contentLength=i.size,this._setReadableStream(fs.createReadStream(a)),this._headersCapability.resolve()})}}class PDFNodeStreamFsRangeReader extends BaseRangeReader{constructor(t,a,r){super(t);let i=decodeURIComponent(this._url.path);fileUriRegex.test(this._url.href)&&(i=i.replace(/^\//,"")),this._setReadableStream(fs.createReadStream(i,{start:a,end:r-1}))}}const __CJS__export_default__$B=(module$F.exports==null?{}:module$F.exports).default||module$F.exports,__CJS__export_PDFNodeStream__=(module$F.exports==null?{}:module$F.exports).PDFNodeStream,__CJS__import__9__$1=Object.freeze(Object.defineProperty({__proto__:null,PDFNodeStream:__CJS__export_PDFNodeStream__,default:__CJS__export_default__$B},Symbol.toStringTag,{value:"Module"}));var module$E={exports:{}},exports$E=module$E.exports;Object.defineProperty(exports$E,"__esModule",{value:!0});exports$E.PDFNetworkStream=void 0;var _util$1=__CJS__export_default__$U||__CJS__import__0__$4,_network_utils$1=__CJS__export_default__$C||__CJS__import__1__$3;const OK_RESPONSE=200,PARTIAL_CONTENT_RESPONSE=206;function getArrayBuffer(x){const t=x.response;return typeof t!="string"?t:(0,_util$1.stringToBytes)(t).buffer}class NetworkManager{constructor(t,a){this.url=t,a=a||{},this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&a.httpHeaders||{},this.withCredentials=a.withCredentials||!1,this.getXhr=a.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(t,a,r){const i={begin:t,end:a};for(const p in r)i[p]=r[p];return this.request(i)}requestFull(t){return this.request(t)}request(t){const a=this.getXhr(),r=this.currXhrId++,i=this.pendingRequests[r]={xhr:a};a.open("GET",this.url),a.withCredentials=this.withCredentials;for(const p in this.httpHeaders){const e=this.httpHeaders[p];typeof e>"u"||a.setRequestHeader(p,e)}return this.isHttp&&"begin"in t&&"end"in t?(a.setRequestHeader("Range",`bytes=${t.begin}-${t.end-1}`),i.expectedStatus=PARTIAL_CONTENT_RESPONSE):i.expectedStatus=OK_RESPONSE,a.responseType="arraybuffer",t.onError&&(a.onerror=function(p){t.onError(a.status)}),a.onreadystatechange=this.onStateChange.bind(this,r),a.onprogress=this.onProgress.bind(this,r),i.onHeadersReceived=t.onHeadersReceived,i.onDone=t.onDone,i.onError=t.onError,i.onProgress=t.onProgress,a.send(null),r}onProgress(t,a){const r=this.pendingRequests[t];r&&r.onProgress&&r.onProgress(a)}onStateChange(t,a){const r=this.pendingRequests[t];if(!r)return;const i=r.xhr;if(i.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),i.readyState!==4||!(t in this.pendingRequests))return;if(delete this.pendingRequests[t],i.status===0&&this.isHttp){r.onError&&r.onError(i.status);return}const p=i.status||OK_RESPONSE;if(!(p===OK_RESPONSE&&r.expectedStatus===PARTIAL_CONTENT_RESPONSE)&&p!==r.expectedStatus){r.onError&&r.onError(i.status);return}const N=getArrayBuffer(i);if(p===PARTIAL_CONTENT_RESPONSE){const w=i.getResponseHeader("Content-Range"),$=/bytes (\d+)-(\d+)\/(\d+)/.exec(w);r.onDone({begin:parseInt($[1],10),chunk:N})}else N?r.onDone({begin:0,chunk:N}):r.onError&&r.onError(i.status)}hasPendingRequests(){for(const t in this.pendingRequests)return!0;return!1}getRequestXhr(t){return this.pendingRequests[t].xhr}isPendingRequest(t){return t in this.pendingRequests}abortAllRequests(){for(const t in this.pendingRequests)this.abortRequest(t|0)}abortRequest(t){const a=this.pendingRequests[t].xhr;delete this.pendingRequests[t],a.abort()}}class PDFNetworkStream{constructor(t){this._source=t,this._manager=new NetworkManager(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(t){const a=this._rangeRequestReaders.indexOf(t);a>=0&&this._rangeRequestReaders.splice(a,1)}getFullReader(){return(0,_util$1.assert)(!this._fullRequestReader),this._fullRequestReader=new PDFNetworkStreamFullRequestReader(this._manager,this._source),this._fullRequestReader}getRangeReader(t,a){const r=new PDFNetworkStreamRangeRequestReader(this._manager,t,a);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}cancelAllRequests(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach(function(r){r.cancel(t)})}}exports$E.PDFNetworkStream=PDFNetworkStream;class PDFNetworkStreamFullRequestReader{constructor(t,a){this._manager=t;const r={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=t.requestFull(r),this._headersReceivedCapability=(0,_util$1.createPromiseCapability)(),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 t=this._fullRequestId,a=this._manager.getRequestXhr(t),r=e=>a.getResponseHeader(e),{allowRangeRequests:i,suggestedLength:p}=(0,_network_utils$1.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});i&&(this._isRangeSupported=!0),this._contentLength=p||this._contentLength,this._filename=(0,_network_utils$1.extractFilenameFromHeader)(r),this._isRangeSupported&&this._manager.abortRequest(t),this._headersReceivedCapability.resolve()}_onDone(t){t&&(this._requests.length>0?this._requests.shift().resolve({value:t.chunk,done:!1}):this._cachedChunks.push(t.chunk)),this._done=!0,!(this._cachedChunks.length>0)&&(this._requests.forEach(function(a){a.resolve({value:void 0,done:!0})}),this._requests=[])}_onError(t){const a=this._url,r=(0,_network_utils$1.createResponseStatusError)(t,a);this._storedError=r,this._headersReceivedCapability.reject(r),this._requests.forEach(function(i){i.reject(r)}),this._requests=[],this._cachedChunks=[]}_onProgress(t){this.onProgress&&this.onProgress({loaded:t.loaded,total:t.lengthComputable?t.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 t=(0,_util$1.createPromiseCapability)();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this._headersReceivedCapability.reject(t),this._requests.forEach(function(a){a.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class PDFNetworkStreamRangeRequestReader{constructor(t,a,r){this._manager=t;const i={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=t.requestRange(a,r,i),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}_close(){this.onClosed&&this.onClosed(this)}_onDone(t){const a=t.chunk;this._requests.length>0?this._requests.shift().resolve({value:a,done:!1}):this._queuedChunk=a,this._done=!0,this._requests.forEach(function(r){r.resolve({value:void 0,done:!0})}),this._requests=[],this._close()}_onProgress(t){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:t.loaded})}get isStreamingSupported(){return!1}async read(){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 t=(0,_util$1.createPromiseCapability)();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this._requests.forEach(function(a){a.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const __CJS__export_default__$A=(module$E.exports==null?{}:module$E.exports).default||module$E.exports,__CJS__export_PDFNetworkStream__=(module$E.exports==null?{}:module$E.exports).PDFNetworkStream,__CJS__import__10__$1=Object.freeze(Object.defineProperty({__proto__:null,PDFNetworkStream:__CJS__export_PDFNetworkStream__,default:__CJS__export_default__$A},Symbol.toStringTag,{value:"Module"}));var module$D={exports:{}},exports$D=module$D.exports;Object.defineProperty(exports$D,"__esModule",{value:!0});exports$D.PDFFetchStream=void 0;var _util=__CJS__export_default__$U||__CJS__import__0__$4,_network_utils=__CJS__export_default__$C||__CJS__import__1__$3;function createFetchOptions(x,t,a){return{method:"GET",headers:x,signal:a&&a.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function createHeaders(x){const t=new Headers;for(const a in x){const r=x[a];typeof r>"u"||t.append(a,r)}return t}class PDFFetchStream{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(){return this._fullRequestReader?this._fullRequestReader._loaded:0}getFullReader(){return(0,_util.assert)(!this._fullRequestReader),this._fullRequestReader=new PDFFetchStreamReader(this),this._fullRequestReader}getRangeReader(t,a){if(a<=this._progressiveDataLength)return null;const r=new PDFFetchStreamRangeReader(this,t,a);return this._rangeRequestReaders.push(r),r}cancelAllRequests(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach(function(r){r.cancel(t)})}}exports$D.PDFFetchStream=PDFFetchStream;class PDFFetchStreamReader{constructor(t){this._stream=t,this._reader=null,this._loaded=0,this._filename=null;const a=t.source;this._withCredentials=a.withCredentials||!1,this._contentLength=a.length,this._headersCapability=(0,_util.createPromiseCapability)(),this._disableRange=a.disableRange||!1,this._rangeChunkSize=a.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),typeof AbortController<"u"&&(this._abortController=new AbortController),this._isStreamingSupported=!a.disableStream,this._isRangeSupported=!a.disableRange,this._headers=createHeaders(this._stream.httpHeaders);const r=a.url;fetch(r,createFetchOptions(this._headers,this._withCredentials,this._abortController)).then(i=>{if(!(0,_network_utils.validateResponseStatus)(i.status))throw(0,_network_utils.createResponseStatusError)(i.status,r);this._reader=i.body.getReader(),this._headersCapability.resolve();const p=w=>i.headers.get(w),{allowRangeRequests:e,suggestedLength:N}=(0,_network_utils.validateRangeRequestCapabilities)({getResponseHeader:p,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=e,this._contentLength=N||this._contentLength,this._filename=(0,_network_utils.extractFilenameFromHeader)(p),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new _util.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(){await this._headersCapability.promise;const{value:t,done:a}=await this._reader.read();return a?{value:t,done:a}:(this._loaded+=t.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){this._reader&&this._reader.cancel(t),this._abortController&&this._abortController.abort()}}class PDFFetchStreamRangeReader{constructor(t,a,r){this._stream=t,this._reader=null,this._loaded=0;const i=t.source;this._withCredentials=i.withCredentials||!1,this._readCapability=(0,_util.createPromiseCapability)(),this._isStreamingSupported=!i.disableStream,typeof AbortController<"u"&&(this._abortController=new AbortController),this._headers=createHeaders(this._stream.httpHeaders),this._headers.append("Range",`bytes=${a}-${r-1}`);const p=i.url;fetch(p,createFetchOptions(this._headers,this._withCredentials,this._abortController)).then(e=>{if(!(0,_network_utils.validateResponseStatus)(e.status))throw(0,_network_utils.createResponseStatusError)(e.status,p);this._readCapability.resolve(),this._reader=e.body.getReader()}),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:t,done:a}=await this._reader.read();return a?{value:t,done:a}:(this._loaded+=t.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){this._reader&&this._reader.cancel(t),this._abortController&&this._abortController.abort()}}const __CJS__export_default__$z=(module$D.exports==null?{}:module$D.exports).default||module$D.exports,__CJS__export_PDFFetchStream__=(module$D.exports==null?{}:module$D.exports).PDFFetchStream,__CJS__import__11__$1=Object.freeze(Object.defineProperty({__proto__:null,PDFFetchStream:__CJS__export_PDFFetchStream__,default:__CJS__export_default__$z},Symbol.toStringTag,{value:"Module"}));var module$C={exports:{}},exports$C=module$C.exports,pdfjsSharedUtil=__CJS__export_default__$U||__CJS__import__0__$4,pdfjsDisplayAPI=__CJS__export_default__$H||__CJS__import__1__$5,pdfjsDisplayTextLayer=__CJS__export_default__$G||__CJS__import__2__$5,pdfjsDisplayAnnotationLayer=__CJS__export_default__$F||__CJS__import__3__$3,pdfjsDisplayDisplayUtils=__CJS__export_default__$T||__CJS__import__4__$4,pdfjsDisplaySVG=__CJS__export_default__$E||__CJS__import__5__$1;const pdfjsDisplayWorkerOptions=__CJS__export_default__$N||__CJS__import__6__$2,pdfjsDisplayAPICompatibility=__CJS__export_default__$Q||__CJS__import__7__$2;{const{isNodeJS:x}=__CJS__export_default__$R||__CJS__import__8__$2;if(x){const t=(__CJS__export_default__$B||__CJS__import__9__$1).PDFNodeStream;pdfjsDisplayAPI.setPDFNetworkStreamFactory(a=>new t(a))}else{const t=(__CJS__export_default__$A||__CJS__import__10__$1).PDFNetworkStream;let a;pdfjsDisplayDisplayUtils.isFetchSupported()&&(a=(__CJS__export_default__$z||__CJS__import__11__$1).PDFFetchStream),pdfjsDisplayAPI.setPDFNetworkStreamFactory(r=>a&&pdfjsDisplayDisplayUtils.isValidFetchUrl(r.url)?new a(r):new t(r))}}exports$C.build=pdfjsDisplayAPI.build;exports$C.version=pdfjsDisplayAPI.version;exports$C.getDocument=pdfjsDisplayAPI.getDocument;exports$C.LoopbackPort=pdfjsDisplayAPI.LoopbackPort;exports$C.PDFDataRangeTransport=pdfjsDisplayAPI.PDFDataRangeTransport;exports$C.PDFWorker=pdfjsDisplayAPI.PDFWorker;exports$C.renderTextLayer=pdfjsDisplayTextLayer.renderTextLayer;exports$C.AnnotationLayer=pdfjsDisplayAnnotationLayer.AnnotationLayer;exports$C.createPromiseCapability=pdfjsSharedUtil.createPromiseCapability;exports$C.PasswordResponses=pdfjsSharedUtil.PasswordResponses;exports$C.InvalidPDFException=pdfjsSharedUtil.InvalidPDFException;exports$C.MissingPDFException=pdfjsSharedUtil.MissingPDFException;exports$C.SVGGraphics=pdfjsDisplaySVG.SVGGraphics;exports$C.NativeImageDecoding=pdfjsSharedUtil.NativeImageDecoding;exports$C.CMapCompressionType=pdfjsSharedUtil.CMapCompressionType;exports$C.PermissionFlag=pdfjsSharedUtil.PermissionFlag;exports$C.UnexpectedResponseException=pdfjsSharedUtil.UnexpectedResponseException;exports$C.OPS=pdfjsSharedUtil.OPS;exports$C.VerbosityLevel=pdfjsSharedUtil.VerbosityLevel;exports$C.UNSUPPORTED_FEATURES=pdfjsSharedUtil.UNSUPPORTED_FEATURES;exports$C.createValidAbsoluteUrl=pdfjsSharedUtil.createValidAbsoluteUrl;exports$C.createObjectURL=pdfjsSharedUtil.createObjectURL;exports$C.removeNullCharacters=pdfjsSharedUtil.removeNullCharacters;exports$C.shadow=pdfjsSharedUtil.shadow;exports$C.Util=pdfjsSharedUtil.Util;exports$C.RenderingCancelledException=pdfjsDisplayDisplayUtils.RenderingCancelledException;exports$C.getFilenameFromUrl=pdfjsDisplayDisplayUtils.getFilenameFromUrl;exports$C.LinkTarget=pdfjsDisplayDisplayUtils.LinkTarget;exports$C.addLinkAttributes=pdfjsDisplayDisplayUtils.addLinkAttributes;exports$C.loadScript=pdfjsDisplayDisplayUtils.loadScript;exports$C.PDFDateString=pdfjsDisplayDisplayUtils.PDFDateString;exports$C.GlobalWorkerOptions=pdfjsDisplayWorkerOptions.GlobalWorkerOptions;exports$C.apiCompatibilityParams=pdfjsDisplayAPICompatibility.apiCompatibilityParams;const __CJS__export_default__$y=(module$C.exports==null?{}:module$C.exports).default||module$C.exports,__CJS__export_build__=(module$C.exports==null?{}:module$C.exports).build,__CJS__export_version__=(module$C.exports==null?{}:module$C.exports).version,__CJS__export_getDocument__=(module$C.exports==null?{}:module$C.exports).getDocument,__CJS__export_LoopbackPort__=(module$C.exports==null?{}:module$C.exports).LoopbackPort,__CJS__export_PDFDataRangeTransport__=(module$C.exports==null?{}:module$C.exports).PDFDataRangeTransport,__CJS__export_PDFWorker__=(module$C.exports==null?{}:module$C.exports).PDFWorker,__CJS__export_renderTextLayer__=(module$C.exports==null?{}:module$C.exports).renderTextLayer,__CJS__export_AnnotationLayer__=(module$C.exports==null?{}:module$C.exports).AnnotationLayer,__CJS__export_createPromiseCapability__$1=(module$C.exports==null?{}:module$C.exports).createPromiseCapability,__CJS__export_PasswordResponses__$1=(module$C.exports==null?{}:module$C.exports).PasswordResponses,__CJS__export_InvalidPDFException__$1=(module$C.exports==null?{}:module$C.exports).InvalidPDFException,__CJS__export_MissingPDFException__$1=(module$C.exports==null?{}:module$C.exports).MissingPDFException,__CJS__export_SVGGraphics__=(module$C.exports==null?{}:module$C.exports).SVGGraphics,__CJS__export_NativeImageDecoding__$1=(module$C.exports==null?{}:module$C.exports).NativeImageDecoding,__CJS__export_CMapCompressionType__$1=(module$C.exports==null?{}:module$C.exports).CMapCompressionType,__CJS__export_PermissionFlag__$1=(module$C.exports==null?{}:module$C.exports).PermissionFlag,__CJS__export_UnexpectedResponseException__$1=(module$C.exports==null?{}:module$C.exports).UnexpectedResponseException,__CJS__export_OPS__$1=(module$C.exports==null?{}:module$C.exports).OPS,__CJS__export_VerbosityLevel__$1=(module$C.exports==null?{}:module$C.exports).VerbosityLevel,__CJS__export_UNSUPPORTED_FEATURES__$1=(module$C.exports==null?{}:module$C.exports).UNSUPPORTED_FEATURES,__CJS__export_createValidAbsoluteUrl__$1=(module$C.exports==null?{}:module$C.exports).createValidAbsoluteUrl,__CJS__export_createObjectURL__$1=(module$C.exports==null?{}:module$C.exports).createObjectURL,__CJS__export_removeNullCharacters__$1=(module$C.exports==null?{}:module$C.exports).removeNullCharacters,__CJS__export_shadow__$1=(module$C.exports==null?{}:module$C.exports).shadow,__CJS__export_Util__$1=(module$C.exports==null?{}:module$C.exports).Util,__CJS__export_RenderingCancelledException__=(module$C.exports==null?{}:module$C.exports).RenderingCancelledException,__CJS__export_getFilenameFromUrl__=(module$C.exports==null?{}:module$C.exports).getFilenameFromUrl,__CJS__export_LinkTarget__=(module$C.exports==null?{}:module$C.exports).LinkTarget,__CJS__export_addLinkAttributes__=(module$C.exports==null?{}:module$C.exports).addLinkAttributes,__CJS__export_loadScript__=(module$C.exports==null?{}:module$C.exports).loadScript,__CJS__export_PDFDateString__=(module$C.exports==null?{}:module$C.exports).PDFDateString,__CJS__export_GlobalWorkerOptions__=(module$C.exports==null?{}:module$C.exports).GlobalWorkerOptions,__CJS__export_apiCompatibilityParams__=(module$C.exports==null?{}:module$C.exports).apiCompatibilityParams,__CJS__import__0__$3=Object.freeze(Object.defineProperty({__proto__:null,AnnotationLayer:__CJS__export_AnnotationLayer__,CMapCompressionType:__CJS__export_CMapCompressionType__$1,GlobalWorkerOptions:__CJS__export_GlobalWorkerOptions__,InvalidPDFException:__CJS__export_InvalidPDFException__$1,LinkTarget:__CJS__export_LinkTarget__,LoopbackPort:__CJS__export_LoopbackPort__,MissingPDFException:__CJS__export_MissingPDFException__$1,NativeImageDecoding:__CJS__export_NativeImageDecoding__$1,OPS:__CJS__export_OPS__$1,PDFDataRangeTransport:__CJS__export_PDFDataRangeTransport__,PDFDateString:__CJS__export_PDFDateString__,PDFWorker:__CJS__export_PDFWorker__,PasswordResponses:__CJS__export_PasswordResponses__$1,PermissionFlag:__CJS__export_PermissionFlag__$1,RenderingCancelledException:__CJS__export_RenderingCancelledException__,SVGGraphics:__CJS__export_SVGGraphics__,UNSUPPORTED_FEATURES:__CJS__export_UNSUPPORTED_FEATURES__$1,UnexpectedResponseException:__CJS__export_UnexpectedResponseException__$1,Util:__CJS__export_Util__$1,VerbosityLevel:__CJS__export_VerbosityLevel__$1,addLinkAttributes:__CJS__export_addLinkAttributes__,apiCompatibilityParams:__CJS__export_apiCompatibilityParams__,build:__CJS__export_build__,createObjectURL:__CJS__export_createObjectURL__$1,createPromiseCapability:__CJS__export_createPromiseCapability__$1,createValidAbsoluteUrl:__CJS__export_createValidAbsoluteUrl__$1,default:__CJS__export_default__$y,getDocument:__CJS__export_getDocument__,getFilenameFromUrl:__CJS__export_getFilenameFromUrl__,loadScript:__CJS__export_loadScript__,removeNullCharacters:__CJS__export_removeNullCharacters__$1,renderTextLayer:__CJS__export_renderTextLayer__,shadow:__CJS__export_shadow__$1,version:__CJS__export_version__},Symbol.toStringTag,{value:"Module"}));var module$B={exports:{}},exports$B=module$B.exports;const compatibilityParams=Object.create(null);{const x=typeof navigator<"u"&&navigator.userAgent||"",t=typeof navigator<"u"&&navigator.platform||"",a=typeof navigator<"u"&&navigator.maxTouchPoints||1,r=/Android/.test(x),i=/\b(iPad|iPhone|iPod)(?=;)/.test(x)||t==="MacIntel"&&a>1;(function(){(i||r)&&(compatibilityParams.maxCanvasPixels=5242880)})()}exports$B.viewerCompatibilityParams=Object.freeze(compatibilityParams);const __CJS__export_default__$x=(module$B.exports==null?{}:module$B.exports).default||module$B.exports,__CJS__export_viewerCompatibilityParams__=(module$B.exports==null?{}:module$B.exports).viewerCompatibilityParams,__CJS__import__3__$2=Object.freeze(Object.defineProperty({__proto__:null,default:__CJS__export_default__$x,viewerCompatibilityParams:__CJS__export_viewerCompatibilityParams__},Symbol.toStringTag,{value:"Module"}));var module$A={exports:{}},exports$A=module$A.exports;Object.defineProperty(exports$A,"__esModule",{value:!0});exports$A.OptionKind=exports$A.AppOptions=void 0;var _pdf$e=__CJS__export_default__$y||__CJS__import__0__$3,_viewer_compatibility$1=__CJS__export_default__$x||__CJS__import__3__$2;const OptionKind={VIEWER:2,API:4,WORKER:8,PREFERENCE:128};exports$A.OptionKind=OptionKind;const defaultOptions={cursorToolOnLoad:{value:0,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},defaultUrl:{value:"compressed.tracemonkey-pldi-09.pdf",kind:OptionKind.VIEWER},defaultZoomValue:{value:"",kind:OptionKind.VIEWER+OptionKind.PREFERENCE},disableHistory:{value:!1,kind:OptionKind.VIEWER},disablePageLabels:{value:!1,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},enablePrintAutoRotate:{value:!1,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},enableWebGL:{value:!1,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},eventBusDispatchToDOM:{value:!1,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},externalLinkRel:{value:"noopener noreferrer nofollow",kind:OptionKind.VIEWER},externalLinkTarget:{value:0,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},historyUpdateUrl:{value:!1,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},ignoreDestinationZoom:{value:!1,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},imageResourcesPath:{value:"./images/",kind:OptionKind.VIEWER},maxCanvasPixels:{value:16777216,compatibility:_viewer_compatibility$1.viewerCompatibilityParams.maxCanvasPixels,kind:OptionKind.VIEWER},pdfBugEnabled:{value:!1,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},renderer:{value:"canvas",kind:OptionKind.VIEWER+OptionKind.PREFERENCE},renderInteractiveForms:{value:!1,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},sidebarViewOnLoad:{value:-1,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},scrollModeOnLoad:{value:-1,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},spreadModeOnLoad:{value:-1,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},textLayerMode:{value:1,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},useOnlyCssZoom:{value:!1,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},viewOnLoad:{value:0,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},cMapPacked:{value:!0,kind:OptionKind.API},cMapUrl:{value:"../web/cmaps/",kind:OptionKind.API},disableAutoFetch:{value:!1,kind:OptionKind.API+OptionKind.PREFERENCE},disableCreateObjectURL:{value:!1,compatibility:_pdf$e.apiCompatibilityParams.disableCreateObjectURL,kind:OptionKind.API},disableFontFace:{value:!1,kind:OptionKind.API+OptionKind.PREFERENCE},disableRange:{value:!1,kind:OptionKind.API+OptionKind.PREFERENCE},disableStream:{value:!1,kind:OptionKind.API+OptionKind.PREFERENCE},docBaseUrl:{value:"",kind:OptionKind.API},isEvalSupported:{value:!0,kind:OptionKind.API},maxImageSize:{value:-1,kind:OptionKind.API},pdfBug:{value:!1,kind:OptionKind.API},verbosity:{value:1,kind:OptionKind.API},workerPort:{value:null,kind:OptionKind.WORKER},workerSrc:{value:"../build/pdf.worker.js",kind:OptionKind.WORKER}},userOptions=Object.create(null);class AppOptions{constructor(){throw new Error("Cannot initialize AppOptions.")}static get(t){const a=userOptions[t];if(a!==void 0)return a;const r=defaultOptions[t];if(r!==void 0)return r.compatibility||r.value}static getAll(t=null){const a=Object.create(null);for(const r in defaultOptions){const i=defaultOptions[r];if(t){if(!(t&i.kind))continue;if(t===OptionKind.PREFERENCE){const e=i.value,N=typeof e;if(N==="boolean"||N==="string"||N==="number"&&Number.isInteger(e)){a[r]=e;continue}throw new Error(`Invalid type for preference: ${r}`)}}const p=userOptions[r];a[r]=p!==void 0?p:i.compatibility||i.value}return a}static set(t,a){userOptions[t]=a}static remove(t){delete userOptions[t]}}exports$A.AppOptions=AppOptions;const __CJS__export_default__$w=(module$A.exports==null?{}:module$A.exports).default||module$A.exports,__CJS__export_AppOptions__=(module$A.exports==null?{}:module$A.exports).AppOptions,__CJS__export_OptionKind__=(module$A.exports==null?{}:module$A.exports).OptionKind,__CJS__import__2__$4=Object.freeze(Object.defineProperty({__proto__:null,AppOptions:__CJS__export_AppOptions__,OptionKind:__CJS__export_OptionKind__,default:__CJS__export_default__$w},Symbol.toStringTag,{value:"Module"}));var module$z={exports:{}},exports$z=module$z.exports;Object.defineProperty(exports$z,"__esModule",{value:!0});exports$z.GrabToPan=GrabToPan;function GrabToPan(x){this.element=x.element,this.document=x.element.ownerDocument,typeof x.ignoreTarget=="function"&&(this.ignoreTarget=x.ignoreTarget),this.onActiveChanged=x.onActiveChanged,this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.toggle=this.toggle.bind(this),this._onmousedown=this._onmousedown.bind(this),this._onmousemove=this._onmousemove.bind(this),this._endPan=this._endPan.bind(this);const t=this.overlay=document.createElement("div");t.className="grab-to-pan-grabbing"}GrabToPan.prototype={CSS_CLASS_GRAB:"grab-to-pan-grab",activate:function x(){this.active||(this.active=!0,this.element.addEventListener("mousedown",this._onmousedown,!0),this.element.classList.add(this.CSS_CLASS_GRAB),this.onActiveChanged&&this.onActiveChanged(!0))},deactivate:function x(){this.active&&(this.active=!1,this.element.removeEventListener("mousedown",this._onmousedown,!0),this._endPan(),this.element.classList.remove(this.CSS_CLASS_GRAB),this.onActiveChanged&&this.onActiveChanged(!1))},toggle:function x(){this.active?this.deactivate():this.activate()},ignoreTarget:function x(t){return t[matchesSelector]("a[href], a[href] *, input, textarea, button, button *, select, option")},_onmousedown:function x(t){if(t.button!==0||this.ignoreTarget(t.target))return;if(t.originalTarget)try{t.originalTarget.tagName}catch{return}this.scrollLeftStart=this.element.scrollLeft,this.scrollTopStart=this.element.scrollTop,this.clientXStart=t.clientX,this.clientYStart=t.clientY,this.document.addEventListener("mousemove",this._onmousemove,!0),this.document.addEventListener("mouseup",this._endPan,!0),this.element.addEventListener("scroll",this._endPan,!0),t.preventDefault(),t.stopPropagation();const a=document.activeElement;a&&!a.contains(t.target)&&a.blur()},_onmousemove:function x(t){if(this.element.removeEventListener("scroll",this._endPan,!0),isLeftMouseReleased(t)){this._endPan();return}const a=t.clientX-this.clientXStart,r=t.clientY-this.clientYStart,i=this.scrollTopStart-r,p=this.scrollLeftStart-a;this.element.scrollTo?this.element.scrollTo({top:i,left:p,behavior:"instant"}):(this.element.scrollTop=i,this.element.scrollLeft=p),this.overlay.parentNode||document.body.appendChild(this.overlay)},_endPan:function x(){this.element.removeEventListener("scroll",this._endPan,!0),this.document.removeEventListener("mousemove",this._onmousemove,!0),this.document.removeEventListener("mouseup",this._endPan,!0),this.overlay.remove()}};let matchesSelector;["webkitM","mozM","msM","oM","m"].some(function(x){let t=x+"atches";return t in document.documentElement&&(matchesSelector=t),t+="Selector",t in document.documentElement&&(matchesSelector=t),matchesSelector});const isNotIEorIsIE10plus=!document.documentMode||document.documentMode>9,chrome=window.chrome,isChrome15OrOpera15plus=chrome&&(chrome.webstore||chrome.app),isSafari6plus=/Apple/.test(navigator.vendor)&&/Version\/([6-9]\d*|[1-5]\d+)/.test(navigator.userAgent);function isLeftMouseReleased(x){return"buttons"in x&&isNotIEorIsIE10plus?!(x.buttons&1):isChrome15OrOpera15plus||isSafari6plus?x.which===0:!1}const __CJS__export_default__$v=(module$z.exports==null?{}:module$z.exports).default||module$z.exports,__CJS__export_GrabToPan__=(module$z.exports==null?{}:module$z.exports).GrabToPan,__CJS__import__0__$2=Object.freeze(Object.defineProperty({__proto__:null,GrabToPan:__CJS__export_GrabToPan__,default:__CJS__export_default__$v},Symbol.toStringTag,{value:"Module"}));var module$y={exports:{}},exports$y=module$y.exports;Object.defineProperty(exports$y,"__esModule",{value:!0});exports$y.PDFCursorTools=exports$y.CursorTool=void 0;var _grab_to_pan=__CJS__export_default__$v||__CJS__import__0__$2;const CursorTool={SELECT:0,HAND:1,ZOOM:2};exports$y.CursorTool=CursorTool;class PDFCursorTools{constructor({container:t,eventBus:a,cursorToolOnLoad:r=CursorTool.SELECT}){this.container=t,this.eventBus=a,this.active=CursorTool.SELECT,this.activeBeforePresentationMode=null,this.handTool=new _grab_to_pan.GrabToPan({element:this.container}),this._addEventListeners(),Promise.resolve().then(()=>{this.switchTool(r)})}get activeTool(){return this.active}switchTool(t){if(this.activeBeforePresentationMode!==null||t===this.active)return;const a=()=>{switch(this.active){case CursorTool.SELECT:break;case CursorTool.HAND:this.handTool.deactivate();break;case CursorTool.ZOOM:}};switch(t){case CursorTool.SELECT:a();break;case CursorTool.HAND:a(),this.handTool.activate();break;case CursorTool.ZOOM:default:console.error(`switchTool: "${t}" is an unsupported value.`);return}this.active=t,this._dispatchEvent()}_dispatchEvent(){this.eventBus.dispatch("cursortoolchanged",{source:this,tool:this.active})}_addEventListeners(){this.eventBus._on("switchcursortool",t=>{this.switchTool(t.tool)}),this.eventBus._on("presentationmodechanged",t=>{if(t.switchInProgress)return;let a;t.active?(a=this.active,this.switchTool(CursorTool.SELECT),this.activeBeforePresentationMode=a):(a=this.activeBeforePresentationMode,this.activeBeforePresentationMode=null,this.switchTool(a))})}}exports$y.PDFCursorTools=PDFCursorTools;const __CJS__export_default__$u=(module$y.exports==null?{}:module$y.exports).default||module$y.exports,__CJS__export_CursorTool__=(module$y.exports==null?{}:module$y.exports).CursorTool,__CJS__export_PDFCursorTools__=(module$y.exports==null?{}:module$y.exports).PDFCursorTools,__CJS__import__3__$1=Object.freeze(Object.defineProperty({__proto__:null,CursorTool:__CJS__export_CursorTool__,PDFCursorTools:__CJS__export_PDFCursorTools__,default:__CJS__export_default__$u},Symbol.toStringTag,{value:"Module"}));var module$x={exports:{}},exports$x=module$x.exports;Object.defineProperty(exports$x,"__esModule",{value:!0});exports$x.PDFRenderingQueue=exports$x.RenderingStates=void 0;const CLEANUP_TIMEOUT=3e4,RenderingStates={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};exports$x.RenderingStates=RenderingStates;class PDFRenderingQueue{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}setViewer(t){this.pdfViewer=t}setThumbnailViewer(t){this.pdfThumbnailViewer=t}isHighestPriority(t){return this.highestPriorityPage===t.renderingId}renderHighestPriority(t){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),!this.pdfViewer.forceRendering(t)&&(this.pdfThumbnailViewer&&this.isThumbnailViewEnabled&&this.pdfThumbnailViewer.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),CLEANUP_TIMEOUT)))}getHighestPriority(t,a,r){const i=t.views,p=i.length;if(p===0)return null;for(let e=0;e<p;++e){const N=i[e].view;if(!this.isViewFinished(N))return N}if(r){const e=t.last.id;if(a[e]&&!this.isViewFinished(a[e]))return a[e]}else{const e=t.first.id-2;if(a[e]&&!this.isViewFinished(a[e]))return a[e]}return null}isViewFinished(t){return t.renderingState===RenderingStates.FINISHED}renderView(t){switch(t.renderingState){case RenderingStates.FINISHED:return!1;case RenderingStates.PAUSED:this.highestPriorityPage=t.renderingId,t.resume();break;case RenderingStates.RUNNING:this.highestPriorityPage=t.renderingId;break;case RenderingStates.INITIAL:this.highestPriorityPage=t.renderingId,t.draw().finally(()=>{this.renderHighestPriority()}).catch(a=>{console.error(`renderView: "${a}"`)});break}return!0}}exports$x.PDFRenderingQueue=PDFRenderingQueue;const __CJS__export_default__$t=(module$x.exports==null?{}:module$x.exports).default||module$x.exports,__CJS__export_RenderingStates__=(module$x.exports==null?{}:module$x.exports).RenderingStates,__CJS__export_PDFRenderingQueue__=(module$x.exports==null?{}:module$x.exports).PDFRenderingQueue,__CJS__import__4__$1=Object.freeze(Object.defineProperty({__proto__:null,PDFRenderingQueue:__CJS__export_PDFRenderingQueue__,RenderingStates:__CJS__export_RenderingStates__,default:__CJS__export_default__$t},Symbol.toStringTag,{value:"Module"}));var module$w={exports:{}},exports$w=module$w.exports;Object.defineProperty(exports$w,"__esModule",{value:!0});exports$w.PDFSidebar=exports$w.SidebarView=void 0;var _ui_utils$i=__CJS__export_default__$V||__CJS__import__0__$5,_pdf_rendering_queue$4=__CJS__export_default__$t||__CJS__import__4__$1;const UI_NOTIFICATION_CLASS="pdfSidebarNotification",SidebarView={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4};exports$w.SidebarView=SidebarView;class PDFSidebar{constructor({elements:t,pdfViewer:a,pdfThumbnailViewer:r,eventBus:i,l10n:p=_ui_utils$i.NullL10n,disableNotification:e=!1}){this.isOpen=!1,this.active=SidebarView.THUMBS,this.isInitialViewSet=!1,this.onToggled=null,this.pdfViewer=a,this.pdfThumbnailViewer=r,this.outerContainer=t.outerContainer,this.viewerContainer=t.viewerContainer,this.toggleButton=t.toggleButton,this.thumbnailButton=t.thumbnailButton,this.outlineButton=t.outlineButton,this.attachmentsButton=t.attachmentsButton,this.thumbnailView=t.thumbnailView,this.outlineView=t.outlineView,this.attachmentsView=t.attachmentsView,this.eventBus=i,this.l10n=p,this._disableNotification=e,this._addEventListeners()}reset(){this.isInitialViewSet=!1,this._hideUINotification(null),this.switchView(SidebarView.THUMBS),this.outlineButton.disabled=!1,this.attachmentsButton.disabled=!1}get visibleView(){return this.isOpen?this.active:SidebarView.NONE}get isThumbnailViewVisible(){return this.isOpen&&this.active===SidebarView.THUMBS}get isOutlineViewVisible(){return this.isOpen&&this.active===SidebarView.OUTLINE}get isAttachmentsViewVisible(){return this.isOpen&&this.active===SidebarView.ATTACHMENTS}setInitialView(t=SidebarView.NONE){if(!this.isInitialViewSet){if(this.isInitialViewSet=!0,t===SidebarView.NONE||t===SidebarView.UNKNOWN){this._dispatchEvent();return}this._switchView(t,!0)||this._dispatchEvent()}}switchView(t,a=!1){this._switchView(t,a)}_switchView(t,a=!1){const r=t!==this.active;let i=!1;switch(t){case SidebarView.NONE:return this.isOpen?(this.close(),!0):!1;case SidebarView.THUMBS:this.isOpen&&r&&(i=!0);break;case SidebarView.OUTLINE:if(this.outlineButton.disabled)return!1;break;case SidebarView.ATTACHMENTS:if(this.attachmentsButton.disabled)return!1;break;default:return console.error(`PDFSidebar._switchView: "${t}" is not a valid view.`),!1}return this.active=t,this.thumbnailButton.classList.toggle("toggled",t===SidebarView.THUMBS),this.outlineButton.classList.toggle("toggled",t===SidebarView.OUTLINE),this.attachmentsButton.classList.toggle("toggled",t===SidebarView.ATTACHMENTS),this.thumbnailView.classList.toggle("hidden",t!==SidebarView.THUMBS),this.outlineView.classList.toggle("hidden",t!==SidebarView.OUTLINE),this.attachmentsView.classList.toggle("hidden",t!==SidebarView.ATTACHMENTS),a&&!this.isOpen?(this.open(),!0):(i&&(this._updateThumbnailViewer(),this._forceRendering()),r&&this._dispatchEvent(),this._hideUINotification(this.active),r)}open(){this.isOpen||(this.isOpen=!0,this.toggleButton.classList.add("toggled"),this.outerContainer.classList.add("sidebarMoving","sidebarOpen"),this.active===SidebarView.THUMBS&&this._updateThumbnailViewer(),this._forceRendering(),this._dispatchEvent(),this._hideUINotification(this.active))}close(){this.isOpen&&(this.isOpen=!1,this.toggleButton.classList.remove("toggled"),this.outerContainer.classList.add("sidebarMoving"),this.outerContainer.classList.remove("sidebarOpen"),this._forceRendering(),this._dispatchEvent())}toggle(){this.isOpen?this.close():this.open()}_dispatchEvent(){this.eventBus.dispatch("sidebarviewchanged",{source:this,view:this.visibleView})}_forceRendering(){this.onToggled?this.onToggled():(this.pdfViewer.forceRendering(),this.pdfThumbnailViewer.forceRendering())}_updateThumbnailViewer(){const{pdfViewer:t,pdfThumbnailViewer:a}=this,r=t.pagesCount;for(let i=0;i<r;i++){const p=t.getPageView(i);p&&p.renderingState===_pdf_rendering_queue$4.RenderingStates.FINISHED&&a.getThumbnail(i).setImage(p)}a.scrollThumbnailIntoView(t.currentPageNumber)}_showUINotification(t){if(!this._disableNotification){if(this.l10n.get("toggle_sidebar_notification.title",null,"Toggle Sidebar (document contains outline/attachments)").then(a=>{this.toggleButton.title=a}),!this.isOpen)this.toggleButton.classList.add(UI_NOTIFICATION_CLASS);else if(t===this.active)return;switch(t){case SidebarView.OUTLINE:this.outlineButton.classList.add(UI_NOTIFICATION_CLASS);break;case SidebarView.ATTACHMENTS:this.attachmentsButton.classList.add(UI_NOTIFICATION_CLASS);break}}}_hideUINotification(t){if(this._disableNotification)return;const a=r=>{switch(r){case SidebarView.OUTLINE:this.outlineButton.classList.remove(UI_NOTIFICATION_CLASS);break;case SidebarView.ATTACHMENTS:this.attachmentsButton.classList.remove(UI_NOTIFICATION_CLASS);break}};if(!(!this.isOpen&&t!==null)){if(this.toggleButton.classList.remove(UI_NOTIFICATION_CLASS),t!==null){a(t);return}for(t in SidebarView)a(SidebarView[t]);this.l10n.get("toggle_sidebar.title",null,"Toggle Sidebar").then(r=>{this.toggleButton.title=r})}}_addEventListeners(){this.viewerContainer.addEventListener("transitionend",t=>{t.target===this.viewerContainer&&this.outerContainer.classList.remove("sidebarMoving")}),this.toggleButton.addEventListener("click",()=>{this.toggle()}),this.thumbnailButton.addEventListener("click",()=>{this.switchView(SidebarView.THUMBS)}),this.outlineButton.addEventListener("click",()=>{this.switchView(SidebarView.OUTLINE)}),this.outlineButton.addEventListener("dblclick",()=>{this.eventBus.dispatch("toggleoutlinetree",{source:this})}),this.attachmentsButton.addEventListener("click",()=>{this.switchView(SidebarView.ATTACHMENTS)}),this.eventBus._on("outlineloaded",t=>{const a=t.outlineCount;this.outlineButton.disabled=!a,a?this._showUINotification(SidebarView.OUTLINE):this.active===SidebarView.OUTLINE&&this.switchView(SidebarView.THUMBS)}),this.eventBus._on("attachmentsloaded",t=>{if(t.attachmentsCount){this.attachmentsButton.disabled=!1,this._showUINotification(SidebarView.ATTACHMENTS);return}Promise.resolve().then(()=>{this.attachmentsView.hasChildNodes()||(this.attachmentsButton.disabled=!0,this.active===SidebarView.ATTACHMENTS&&this.switchView(SidebarView.THUMBS))})}),this.eventBus._on("presentationmodechanged",t=>{!t.active&&!t.switchInProgress&&this.isThumbnailViewVisible&&this._updateThumbnailViewer()})}}exports$w.PDFSidebar=PDFSidebar;const __CJS__export_default__$s=(module$w.exports==null?{}:module$w.exports).default||module$w.exports,__CJS__export_SidebarView__=(module$w.exports==null?{}:module$w.exports).SidebarView,__CJS__export_PDFSidebar__=(module$w.exports==null?{}:module$w.exports).PDFSidebar,__CJS__import__5__=Object.freeze(Object.defineProperty({__proto__:null,PDFSidebar:__CJS__export_PDFSidebar__,SidebarView:__CJS__export_SidebarView__,default:__CJS__export_default__$s},Symbol.toStringTag,{value:"Module"}));var module$v={exports:{}},exports$v=module$v.exports;Object.defineProperty(exports$v,"__esModule",{value:!0});exports$v.OverlayManager=void 0;class OverlayManager{constructor(){this._overlays={},this._active=null,this._keyDownBound=this._keyDown.bind(this)}get active(){return this._active}async register(t,a,r=null,i=!1){let p;if(!t||!a||!(p=a.parentNode))throw new Error("Not enough parameters.");if(this._overlays[t])throw new Error("The overlay is already registered.");this._overlays[t]={element:a,container:p,callerCloseMethod:r,canForceClose:i}}async unregister(t){if(this._overlays[t]){if(this._active===t)throw new Error("The overlay cannot be removed while it is active.")}else throw new Error("The overlay does not exist.");delete this._overlays[t]}async open(t){if(this._overlays[t]){if(this._active)if(this._overlays[t].canForceClose)this._closeThroughCaller();else throw this._active===t?new Error("The overlay is already active."):new Error("Another overlay is currently active.")}else throw new Error("The overlay does not exist.");this._active=t,this._overlays[this._active].element.classList.remove("hidden"),this._overlays[this._active].container.classList.remove("hidden"),window.addEventListener("keydown",this._keyDownBound)}async close(t){if(this._overlays[t])if(this._active){if(this._active!==t)throw new Error("Another overlay is currently active.")}else throw new Error("The overlay is currently not active.");else throw new Error("The overlay does not exist.");this._overlays[this._active].container.classList.add("hidden"),this._overlays[this._active].element.classList.add("hidden"),this._active=null,window.removeEventListener("keydown",this._keyDownBound)}_keyDown(t){this._active&&t.keyCode===27&&(this._closeThroughCaller(),t.preventDefault())}_closeThroughCaller(){this._overlays[this._active].callerCloseMethod&&this._overlays[this._active].callerCloseMethod(),this._active&&this.close(this._active)}}exports$v.OverlayManager=OverlayManager;const __CJS__export_default__$r=(module$v.exports==null?{}:module$v.exports).default||module$v.exports,__CJS__export_OverlayManager__=(module$v.exports==null?{}:module$v.exports).OverlayManager,__CJS__import__6__$1=Object.freeze(Object.defineProperty({__proto__:null,OverlayManager:__CJS__export_OverlayManager__,default:__CJS__export_default__$r},Symbol.toStringTag,{value:"Module"}));var module$u={exports:{}},exports$u=module$u.exports;Object.defineProperty(exports$u,"__esModule",{value:!0});exports$u.PasswordPrompt=void 0;var _ui_utils$h=__CJS__export_default__$V||__CJS__import__0__$5,_pdf$d=__CJS__export_default__$y||__CJS__import__0__$3;class PasswordPrompt{constructor(t,a,r=_ui_utils$h.NullL10n){this.overlayName=t.overlayName,this.container=t.container,this.label=t.label,this.input=t.input,this.submitButton=t.submitButton,this.cancelButton=t.cancelButton,this.overlayManager=a,this.l10n=r,this.updateCallback=null,this.reason=null,this.submitButton.addEventListener("click",this.verify.bind(this)),this.cancelButton.addEventListener("click",this.close.bind(this)),this.input.addEventListener("keydown",i=>{i.keyCode===13&&this.verify()}),this.overlayManager.register(this.overlayName,this.container,this.close.bind(this),!0)}open(){this.overlayManager.open(this.overlayName).then(()=>{this.input.focus();let t;this.reason===_pdf$d.PasswordResponses.INCORRECT_PASSWORD?t=this.l10n.get("password_invalid",null,"Invalid password. Please try again."):t=this.l10n.get("password_label",null,"Enter the password to open this PDF file."),t.then(a=>{this.label.textContent=a})})}close(){this.overlayManager.close(this.overlayName).then(()=>{this.input.value=""})}verify(){const t=this.input.value;t&&t.length>0&&(this.close(),this.updateCallback(t))}setUpdateCallback(t,a){this.updateCallback=t,this.reason=a}}exports$u.PasswordPrompt=PasswordPrompt;const __CJS__export_default__$q=(module$u.exports==null?{}:module$u.exports).default||module$u.exports,__CJS__export_PasswordPrompt__=(module$u.exports==null?{}:module$u.exports).PasswordPrompt,__CJS__import__7__=Object.freeze(Object.defineProperty({__proto__:null,PasswordPrompt:__CJS__export_PasswordPrompt__,default:__CJS__export_default__$q},Symbol.toStringTag,{value:"Module"}));var module$t={exports:{}},exports$t=module$t.exports;Object.defineProperty(exports$t,"__esModule",{value:!0});exports$t.PDFAttachmentViewer=void 0;var _pdf$c=__CJS__export_default__$y||__CJS__import__0__$3;class PDFAttachmentViewer{constructor({container:t,eventBus:a,downloadManager:r}){this.container=t,this.eventBus=a,this.downloadManager=r,this.reset(),this.eventBus._on("fileattachmentannotation",this._appendAttachment.bind(this))}reset(t=!1){this.attachments=null,this.container.textContent="",t||(this._renderedCapability=(0,_pdf$c.createPromiseCapability)())}_dispatchEvent(t){this._renderedCapability.resolve(),this.eventBus.dispatch("attachmentsloaded",{source:this,attachmentsCount:t})}_bindPdfLink(t,a,r){if(this.downloadManager.disableCreateObjectURL)throw new Error('bindPdfLink: Unsupported "disableCreateObjectURL" value.');let i;t.onclick=function(){i||(i=(0,_pdf$c.createObjectURL)(a,"application/pdf"));let p;return p="?file="+encodeURIComponent(i+"#"+r),window.open(p),!1}}_bindLink(t,a,r){t.onclick=()=>(this.downloadManager.downloadData(a,r,""),!1)}render({attachments:t,keepRenderedCapability:a=!1}){let r=0;if(this.attachments&&this.reset(a===!0),this.attachments=t||null,!t){this._dispatchEvent(r);return}const i=Object.keys(t).sort(function(p,e){return p.toLowerCase().localeCompare(e.toLowerCase())});r=i.length;for(let p=0;p<r;p++){const e=t[i[p]],N=(0,_pdf$c.removeNullCharacters)((0,_pdf$c.getFilenameFromUrl)(e.filename)),w=document.createElement("div");w.className="attachmentsItem";const $=document.createElement("button");$.textContent=N,/\.pdf$/i.test(N)&&!this.downloadManager.disableCreateObjectURL?this._bindPdfLink($,e.content,N):this._bindLink($,e.content,N),w.appendChild($),this.container.appendChild(w)}this._dispatchEvent(r)}_appendAttachment({id:t,filename:a,content:r}){this._renderedCapability.promise.then(()=>{let i=this.attachments;if(!i)i=Object.create(null);else for(const p in i)if(t===p)return;i[t]={filename:a,content:r},this.render({attachments:i,keepRenderedCapability:!0})})}}exports$t.PDFAttachmentViewer=PDFAttachmentViewer;const __CJS__export_default__$p=(module$t.exports==null?{}:module$t.exports).default||module$t.exports,__CJS__export_PDFAttachmentViewer__=(module$t.exports==null?{}:module$t.exports).PDFAttachmentViewer,__CJS__import__8__=Object.freeze(Object.defineProperty({__proto__:null,PDFAttachmentViewer:__CJS__export_PDFAttachmentViewer__,default:__CJS__export_default__$p},Symbol.toStringTag,{value:"Module"}));var module$s={exports:{}},exports$s=module$s.exports;Object.defineProperty(exports$s,"__esModule",{value:!0});exports$s.PDFDocumentProperties=void 0;var _pdf$b=__CJS__export_default__$y||__CJS__import__0__$3,_ui_utils$g=__CJS__export_default__$V||__CJS__import__0__$5;const DEFAULT_FIELD_CONTENT="-",NON_METRIC_LOCALES=["en-us","en-lr","my"],US_PAGE_NAMES={"8.5x11":"Letter","8.5x14":"Legal"},METRIC_PAGE_NAMES={"297x420":"A3","210x297":"A4"};function getPageName(x,t,a){const r=t?x.width:x.height,i=t?x.height:x.width;return a[`${r}x${i}`]}class PDFDocumentProperties{constructor({overlayName:t,fields:a,container:r,closeButton:i},p,e,N=_ui_utils$g.NullL10n){this.overlayName=t,this.fields=a,this.container=r,this.overlayManager=p,this.l10n=N,this._reset(),i&&i.addEventListener("click",this.close.bind(this)),this.overlayManager.register(this.overlayName,this.container,this.close.bind(this)),e&&(e._on("pagechanging",w=>{this._currentPageNumber=w.pageNumber}),e._on("rotationchanging",w=>{this._pagesRotation=w.pagesRotation})),this._isNonMetricLocale=!0,N.getLanguage().then(w=>{this._isNonMetricLocale=NON_METRIC_LOCALES.includes(w)})}open(){const t=a=>{Object.defineProperty(this,"fieldData",{value:Object.freeze(a),writable:!1,enumerable:!0,configurable:!0})};Promise.all([this.overlayManager.open(this.overlayName),this._dataAvailableCapability.promise]).then(()=>{const a=this._currentPageNumber,r=this._pagesRotation;if(this.fieldData&&a===this.fieldData._currentPageNumber&&r===this.fieldData._pagesRotation){this._updateUI();return}this.pdfDocument.getMetadata().then(({info:i,metadata:p,contentDispositionFilename:e})=>Promise.all([i,p,e||(0,_ui_utils$g.getPDFFileNameFromURL)(this.url||""),this._parseFileSize(this.maybeFileSize),this._parseDate(i.CreationDate),this._parseDate(i.ModDate),this.pdfDocument.getPage(a).then(N=>this._parsePageSize((0,_ui_utils$g.getPageSizeInches)(N),r)),this._parseLinearization(i.IsLinearized)])).then(([i,p,e,N,w,$,U,m])=>(t({fileName:e,fileSize:N,title:i.Title,author:i.Author,subject:i.Subject,keywords:i.Keywords,creationDate:w,modificationDate:$,creator:i.Creator,producer:i.Producer,version:i.PDFFormatVersion,pageCount:this.pdfDocument.numPages,pageSize:U,linearized:m,_currentPageNumber:a,_pagesRotation:r}),this._updateUI(),this.pdfDocument.getDownloadInfo())).then(({length:i})=>(this.maybeFileSize=i,this._parseFileSize(i))).then(i=>{if(i===this.fieldData.fileSize)return;const p=Object.assign(Object.create(null),this.fieldData);p.fileSize=i,t(p),this._updateUI()})})}close(){this.overlayManager.close(this.overlayName)}setDocument(t,a=null){this.pdfDocument&&(this._reset(),this._updateUI(!0)),t&&(this.pdfDocument=t,this.url=a,this._dataAvailableCapability.resolve())}setFileSize(t){Number.isInteger(t)&&t>0&&(this.maybeFileSize=t)}_reset(){this.pdfDocument=null,this.url=null,this.maybeFileSize=0,delete this.fieldData,this._dataAvailableCapability=(0,_pdf$b.createPromiseCapability)(),this._currentPageNumber=1,this._pagesRotation=0}_updateUI(t=!1){if(t||!this.fieldData){for(const a in this.fields)this.fields[a].textContent=DEFAULT_FIELD_CONTENT;return}if(this.overlayManager.active===this.overlayName)for(const a in this.fields){const r=this.fieldData[a];this.fields[a].textContent=r||r===0?r:DEFAULT_FIELD_CONTENT}}async _parseFileSize(t=0){const a=t/1024;if(a){if(a<1024)return this.l10n.get("document_properties_kb",{size_kb:(+a.toPrecision(3)).toLocaleString(),size_b:t.toLocaleString()},"{{size_kb}} KB ({{size_b}} bytes)")}else return;return this.l10n.get("document_properties_mb",{size_mb:(+(a/1024).toPrecision(3)).toLocaleString(),size_b:t.toLocaleString()},"{{size_mb}} MB ({{size_b}} bytes)")}async _parsePageSize(t,a){if(!t)return;a%180!==0&&(t={width:t.height,height:t.width});const r=(0,_ui_utils$g.isPortraitOrientation)(t);let i={width:Math.round(t.width*100)/100,height:Math.round(t.height*100)/100},p={width:Math.round(t.width*25.4*10)/10,height:Math.round(t.height*25.4*10)/10},e=null,N=getPageName(i,r,US_PAGE_NAMES)||getPageName(p,r,METRIC_PAGE_NAMES);if(!N&&!(Number.isInteger(p.width)&&Number.isInteger(p.height))){const w={width:t.width*25.4,height:t.height*25.4},$={width:Math.round(p.width),height:Math.round(p.height)};Math.abs(w.width-$.width)<.1&&Math.abs(w.height-$.height)<.1&&(N=getPageName($,r,METRIC_PAGE_NAMES),N&&(i={width:Math.round($.width/25.4*100)/100,height:Math.round($.height/25.4*100)/100},p=$))}return N&&(e=this.l10n.get("document_properties_page_size_name_"+N.toLowerCase(),null,N)),Promise.all([this._isNonMetricLocale?i:p,this.l10n.get("document_properties_page_size_unit_"+(this._isNonMetricLocale?"inches":"millimeters"),null,this._isNonMetricLocale?"in":"mm"),e,this.l10n.get("document_properties_page_size_orientation_"+(r?"portrait":"landscape"),null,r?"portrait":"landscape")]).then(([{width:w,height:$},U,m,n])=>this.l10n.get("document_properties_page_size_dimension_"+(m?"name_":"")+"string",{width:w.toLocaleString(),height:$.toLocaleString(),unit:U,name:m,orientation:n},"{{width}} × {{height}} {{unit}} ("+(m?"{{name}}, ":"")+"{{orientation}})"))}async _parseDate(t){const a=_pdf$b.PDFDateString.toDateObject(t);if(a)return this.l10n.get("document_properties_date_string",{date:a.toLocaleDateString(),time:a.toLocaleTimeString()},"{{date}}, {{time}}")}_parseLinearization(t){return this.l10n.get("document_properties_linearized_"+(t?"yes":"no"),null,t?"Yes":"No")}}exports$s.PDFDocumentProperties=PDFDocumentProperties;const __CJS__export_default__$o=(module$s.exports==null?{}:module$s.exports).default||module$s.exports,__CJS__export_PDFDocumentProperties__=(module$s.exports==null?{}:module$s.exports).PDFDocumentProperties,__CJS__import__9__=Object.freeze(Object.defineProperty({__proto__:null,PDFDocumentProperties:__CJS__export_PDFDocumentProperties__,default:__CJS__export_default__$o},Symbol.toStringTag,{value:"Module"}));var module$r={exports:{}},exports$r=module$r.exports;Object.defineProperty(exports$r,"__esModule",{value:!0});exports$r.getCharacterType=getCharacterType;exports$r.CharacterType=void 0;const CharacterType={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};exports$r.CharacterType=CharacterType;function isAlphabeticalScript(x){return x<11904}function isAscii(x){return(x&65408)===0}function isAsciiAlpha(x){return x>=97&&x<=122||x>=65&&x<=90}function isAsciiDigit(x){return x>=48&&x<=57}function isAsciiSpace(x){return x===32||x===9||x===13||x===10}function isHan(x){return x>=13312&&x<=40959||x>=63744&&x<=64255}function isKatakana(x){return x>=12448&&x<=12543}function isHiragana(x){return x>=12352&&x<=12447}function isHalfwidthKatakana(x){return x>=65376&&x<=65439}function isThai(x){return(x&65408)===3584}function getCharacterType(x){return isAlphabeticalScript(x)?isAscii(x)?isAsciiSpace(x)?CharacterType.SPACE:isAsciiAlpha(x)||isAsciiDigit(x)||x===95?CharacterType.ALPHA_LETTER:CharacterType.PUNCT:isThai(x)?CharacterType.THAI_LETTER:x===160?CharacterType.SPACE:CharacterType.ALPHA_LETTER:isHan(x)?CharacterType.HAN_LETTER:isKatakana(x)?CharacterType.KATAKANA_LETTER:isHiragana(x)?CharacterType.HIRAGANA_LETTER:isHalfwidthKatakana(x)?CharacterType.HALFWIDTH_KATAKANA_LETTER:CharacterType.ALPHA_LETTER}const __CJS__export_default__$n=(module$r.exports==null?{}:module$r.exports).default||module$r.exports,__CJS__export_getCharacterType__=(module$r.exports==null?{}:module$r.exports).getCharacterType,__CJS__export_CharacterType__=(module$r.exports==null?{}:module$r.exports).CharacterType,__CJS__import__2__$3=Object.freeze(Object.defineProperty({__proto__:null,CharacterType:__CJS__export_CharacterType__,default:__CJS__export_default__$n,getCharacterType:__CJS__export_getCharacterType__},Symbol.toStringTag,{value:"Module"}));var module$q={exports:{}},exports$q=module$q.exports;Object.defineProperty(exports$q,"__esModule",{value:!0});exports$q.PDFFindController=exports$q.FindState=void 0;var _ui_utils$f=__CJS__export_default__$V||__CJS__import__0__$5,_pdf$a=__CJS__export_default__$y||__CJS__import__0__$3,_pdf_find_utils=__CJS__export_default__$n||__CJS__import__2__$3;const FindState={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};exports$q.FindState=FindState;const FIND_TIMEOUT=250,MATCH_SCROLL_OFFSET_TOP=-50,MATCH_SCROLL_OFFSET_LEFT=-400,CHARACTERS_TO_NORMALIZE={"‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"};let normalizationRegex=null;function normalize(x){if(!normalizationRegex){const t=Object.keys(CHARACTERS_TO_NORMALIZE).join("");normalizationRegex=new RegExp(`[${t}]`,"g")}return x.replace(normalizationRegex,function(t){return CHARACTERS_TO_NORMALIZE[t]})}class PDFFindController{constructor({linkService:t,eventBus:a}){this._linkService=t,this._eventBus=a||(0,_ui_utils$f.getGlobalEventBus)(),this._reset(),a._on("findbarclose",this._onFindBarClose.bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this._state}setDocument(t){this._pdfDocument&&this._reset(),t&&(this._pdfDocument=t,this._firstPageCapability.resolve())}executeCommand(t,a){if(!a)return;const r=this._pdfDocument;(this._state===null||this._shouldDirtyMatch(t,a))&&(this._dirtyMatch=!0),this._state=a,t!=="findhighlightallchange"&&this._updateUIState(FindState.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||r&&this._pdfDocument!==r)return;this._extractText();const i=!this._highlightMatches,p=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),t==="find"?this._findTimeout=setTimeout(()=>{this._nextMatch(),this._findTimeout=null},FIND_TIMEOUT):this._dirtyMatch?this._nextMatch():t==="findagain"?(this._nextMatch(),i&&this._state.highlightAll&&this._updateAllPages()):t==="findhighlightallchange"?(p?this._nextMatch():this._highlightMatches=!0,this._updateAllPages()):this._nextMatch()})}scrollMatchIntoView({element:t=null,pageIndex:a=-1,matchIndex:r=-1}){if(!this._scrollMatches||!t)return;if(r===-1||r!==this._selected.matchIdx)return;if(a===-1||a!==this._selected.pageIdx)return;this._scrollMatches=!1;const i={top:MATCH_SCROLL_OFFSET_TOP,left:MATCH_SCROLL_OFFSET_LEFT};(0,_ui_utils$f.scrollIntoView)(t,i,!0)}_reset(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=Object.create(null),this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,_pdf$a.createPromiseCapability)()}get _query(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,this._normalizedQuery=normalize(this._state.query)),this._normalizedQuery}_shouldDirtyMatch(t,a){if(a.query!==this._state.query)return!0;switch(t){case"findagain":const r=this._selected.pageIdx+1,i=this._linkService;return r>=1&&r<=i.pagesCount&&r!==i.page&&!i.isPageVisible(r);case"findhighlightallchange":return!1}return!0}_prepareMatches(t,a,r){function i(p){const e=t[p],N=t[p+1];if(p<t.length-1&&e.match===N.match)return e.skipped=!0,!0;for(let w=p-1;w>=0;w--){const $=t[w];if(!$.skipped){if($.match+$.matchLength<e.match)break;if($.match+$.matchLength>=e.match+e.matchLength)return e.skipped=!0,!0}}return!1}t.sort(function(p,e){return p.match===e.match?p.matchLength-e.matchLength:p.match-e.match});for(let p=0,e=t.length;p<e;p++)i(p)||(a.push(t[p].match),r.push(t[p].matchLength))}_isEntireWord(t,a,r){if(a>0){const p=t.charCodeAt(a),e=t.charCodeAt(a-1);if((0,_pdf_find_utils.getCharacterType)(p)===(0,_pdf_find_utils.getCharacterType)(e))return!1}const i=a+r-1;if(i<t.length-1){const p=t.charCodeAt(i),e=t.charCodeAt(i+1);if((0,_pdf_find_utils.getCharacterType)(p)===(0,_pdf_find_utils.getCharacterType)(e))return!1}return!0}_calculatePhraseMatch(t,a,r,i){const p=[],e=t.length;let N=-e;for(;N=r.indexOf(t,N+e),N!==-1;)i&&!this._isEntireWord(r,N,e)||p.push(N);this._pageMatches[a]=p}_calculateWordMatch(t,a,r,i){const p=[],e=t.match(/\S+/g);for(let N=0,w=e.length;N<w;N++){const $=e[N],U=$.length;let m=-U;for(;m=r.indexOf($,m+U),m!==-1;)i&&!this._isEntireWord(r,m,U)||p.push({match:m,matchLength:U,skipped:!1})}this._pageMatchesLength[a]=[],this._pageMatches[a]=[],this._prepareMatches(p,this._pageMatches[a],this._pageMatchesLength[a])}_calculateMatch(t){let a=this._pageContents[t],r=this._query;const{caseSensitive:i,entireWord:p,phraseSearch:e}=this._state;if(r.length===0)return;i||(a=a.toLowerCase(),r=r.toLowerCase()),e?this._calculatePhraseMatch(r,t,a,p):this._calculateWordMatch(r,t,a,p),this._state.highlightAll&&this._updatePage(t),this._resumePageIdx===t&&(this._resumePageIdx=null,this._nextPageMatch());const N=this._pageMatches[t].length;N>0&&(this._matchesCountTotal+=N,this._updateUIResultsCount())}_extractText(){if(this._extractTextPromises.length>0)return;let t=Promise.resolve();for(let a=0,r=this._linkService.pagesCount;a<r;a++){const i=(0,_pdf$a.createPromiseCapability)();this._extractTextPromises[a]=i.promise,t=t.then(()=>this._pdfDocument.getPage(a+1).then(p=>p.getTextContent({normalizeWhitespace:!0})).then(p=>{const e=p.items,N=[];for(let w=0,$=e.length;w<$;w++)N.push(e[w].str);this._pageContents[a]=normalize(N.join("")),i.resolve(a)},p=>{console.error(`Unable to get text content for page ${a+1}`,p),this._pageContents[a]="",i.resolve(a)}))}}_updatePage(t){this._scrollMatches&&this._selected.pageIdx===t&&(this._linkService.page=t+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:t})}_updateAllPages(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}_nextMatch(){const t=this._state.findPrevious,a=this._linkService.page-1,r=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=a,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this._updateAllPages();for(let p=0;p<r;p++)this._pendingFindMatches[p]!==!0&&(this._pendingFindMatches[p]=!0,this._extractTextPromises[p].then(e=>{delete this._pendingFindMatches[e],this._calculateMatch(e)}))}if(this._query===""){this._updateUIState(FindState.FOUND);return}if(this._resumePageIdx)return;const i=this._offset;if(this._pagesToSearch=r,i.matchIdx!==null){const p=this._pageMatches[i.pageIdx].length;if(!t&&i.matchIdx+1<p||t&&i.matchIdx>0){i.matchIdx=t?i.matchIdx-1:i.matchIdx+1,this._updateMatch(!0);return}this._advanceOffsetPage(t)}this._nextPageMatch()}_matchesReady(t){const a=this._offset,r=t.length,i=this._state.findPrevious;return r?(a.matchIdx=i?r-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(i),a.wrapped&&(a.matchIdx=null,this._pagesToSearch<0)?(this._updateMatch(!1),!0):!1)}_nextPageMatch(){this._resumePageIdx!==null&&console.error("There can only be one pending page.");let t=null;do{const a=this._offset.pageIdx;if(t=this._pageMatches[a],!t){this._resumePageIdx=a;break}}while(!this._matchesReady(t))}_advanceOffsetPage(t){const a=this._offset,r=this._linkService.pagesCount;a.pageIdx=t?a.pageIdx-1:a.pageIdx+1,a.matchIdx=null,this._pagesToSearch--,(a.pageIdx>=r||a.pageIdx<0)&&(a.pageIdx=t?r-1:0,a.wrapped=!0)}_updateMatch(t=!1){let a=FindState.NOT_FOUND;const r=this._offset.wrapped;if(this._offset.wrapped=!1,t){const i=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,a=r?FindState.WRAPPED:FindState.FOUND,i!==-1&&i!==this._selected.pageIdx&&this._updatePage(i)}this._updateUIState(a,this._state.findPrevious),this._selected.pageIdx!==-1&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}_onFindBarClose(t){const a=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||a&&this._pdfDocument!==a||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),this._updateUIState(FindState.FOUND),this._highlightMatches=!1,this._updateAllPages())})}_requestMatchesCount(){const{pageIdx:t,matchIdx:a}=this._selected;let r=0,i=this._matchesCountTotal;if(a!==-1){for(let p=0;p<t;p++)r+=this._pageMatches[p]&&this._pageMatches[p].length||0;r+=a+1}return(r<1||r>i)&&(r=i=0),{current:r,total:i}}_updateUIResultsCount(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}_updateUIState(t,a){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:t,previous:a,matchesCount:this._requestMatchesCount()})}}exports$q.PDFFindController=PDFFindController;const __CJS__export_default__$m=(module$q.exports==null?{}:module$q.exports).default||module$q.exports,__CJS__export_FindState__=(module$q.exports==null?{}:module$q.exports).FindState,__CJS__export_PDFFindController__=(module$q.exports==null?{}:module$q.exports).PDFFindController,__CJS__import__11__=Object.freeze(Object.defineProperty({__proto__:null,FindState:__CJS__export_FindState__,PDFFindController:__CJS__export_PDFFindController__,default:__CJS__export_default__$m},Symbol.toStringTag,{value:"Module"}));var module$p={exports:{}},exports$p=module$p.exports;Object.defineProperty(exports$p,"__esModule",{value:!0});exports$p.PDFFindBar=void 0;var _ui_utils$e=__CJS__export_default__$V||__CJS__import__0__$5,_pdf_find_controller$1=__CJS__export_default__$m||__CJS__import__11__;const MATCHES_COUNT_LIMIT=1e3;class PDFFindBar{constructor(t,a,r=_ui_utils$e.NullL10n){this.opened=!1,this.bar=t.bar||null,this.toggleButton=t.toggleButton||null,this.findField=t.findField||null,this.highlightAll=t.highlightAllCheckbox||null,this.caseSensitive=t.caseSensitiveCheckbox||null,this.entireWord=t.entireWordCheckbox||null,this.findMsg=t.findMsg||null,this.findResultsCount=t.findResultsCount||null,this.findPreviousButton=t.findPreviousButton||null,this.findNextButton=t.findNextButton||null,this.eventBus=a||(0,_ui_utils$e.getGlobalEventBus)(),this.l10n=r,this.toggleButton.addEventListener("click",()=>{this.toggle()}),this.findField.addEventListener("input",()=>{this.dispatchEvent("")}),this.bar.addEventListener("keydown",i=>{switch(i.keyCode){case 13:i.target===this.findField&&this.dispatchEvent("again",i.shiftKey);break;case 27:this.close();break}}),this.findPreviousButton.addEventListener("click",()=>{this.dispatchEvent("again",!0)}),this.findNextButton.addEventListener("click",()=>{this.dispatchEvent("again",!1)}),this.highlightAll.addEventListener("click",()=>{this.dispatchEvent("highlightallchange")}),this.caseSensitive.addEventListener("click",()=>{this.dispatchEvent("casesensitivitychange")}),this.entireWord.addEventListener("click",()=>{this.dispatchEvent("entirewordchange")}),this.eventBus._on("resize",this._adjustWidth.bind(this))}reset(){this.updateUIState()}dispatchEvent(t,a){this.eventBus.dispatch("find",{source:this,type:t,query:this.findField.value,phraseSearch:!0,caseSensitive:this.caseSensitive.checked,entireWord:this.entireWord.checked,highlightAll:this.highlightAll.checked,findPrevious:a})}updateUIState(t,a,r){let i=!1,p="",e="";switch(t){case _pdf_find_controller$1.FindState.FOUND:break;case _pdf_find_controller$1.FindState.PENDING:e="pending";break;case _pdf_find_controller$1.FindState.NOT_FOUND:p=this.l10n.get("find_not_found",null,"Phrase not found"),i=!0;break;case _pdf_find_controller$1.FindState.WRAPPED:a?p=this.l10n.get("find_reached_top",null,"Reached top of document, continued from bottom"):p=this.l10n.get("find_reached_bottom",null,"Reached end of document, continued from top");break}this.findField.classList.toggle("notFound",i),this.findField.setAttribute("data-status",e),Promise.resolve(p).then(N=>{this.findMsg.textContent=N,this._adjustWidth()}),this.updateResultsCount(r)}updateResultsCount({current:t=0,total:a=0}={}){if(!this.findResultsCount)return;const r=MATCHES_COUNT_LIMIT;let i="";a>0&&(a>r?i=this.l10n.get("find_match_count_limit",{limit:r},"More than {{limit}} matches"):i=this.l10n.get("find_match_count",{current:t,total:a},"{{current}} of {{total}} match"+(a!==1?"es":""))),Promise.resolve(i).then(p=>{this.findResultsCount.textContent=p,this.findResultsCount.classList.toggle("hidden",!a),this._adjustWidth()})}open(){this.opened||(this.opened=!0,this.toggleButton.classList.add("toggled"),this.bar.classList.remove("hidden")),this.findField.select(),this.findField.focus(),this._adjustWidth()}close(){this.opened&&(this.opened=!1,this.toggleButton.classList.remove("toggled"),this.bar.classList.add("hidden"),this.eventBus.dispatch("findbarclose",{source:this}))}toggle(){this.opened?this.close():this.open()}_adjustWidth(){if(!this.opened)return;this.bar.classList.remove("wrapContainers");const t=this.bar.clientHeight,a=this.bar.firstElementChild.clientHeight;t>a&&this.bar.classList.add("wrapContainers")}}exports$p.PDFFindBar=PDFFindBar;const __CJS__export_default__$l=(module$p.exports==null?{}:module$p.exports).default||module$p.exports,__CJS__export_PDFFindBar__=(module$p.exports==null?{}:module$p.exports).PDFFindBar,__CJS__import__10__=Object.freeze(Object.defineProperty({__proto__:null,PDFFindBar:__CJS__export_PDFFindBar__,default:__CJS__export_default__$l},Symbol.toStringTag,{value:"Module"}));var module$o={exports:{}},exports$o=module$o.exports;Object.defineProperty(exports$o,"__esModule",{value:!0});exports$o.isDestHashesEqual=isDestHashesEqual;exports$o.isDestArraysEqual=isDestArraysEqual;exports$o.PDFHistory=void 0;var _ui_utils$d=__CJS__export_default__$V||__CJS__import__0__$5;const HASH_CHANGE_TIMEOUT=1e3,POSITION_UPDATED_THRESHOLD=50,UPDATE_VIEWAREA_TIMEOUT=1e3;function getCurrentHash(){return document.location.hash}class PDFHistory{constructor({linkService:t,eventBus:a}){this.linkService=t,this.eventBus=a||(0,_ui_utils$d.getGlobalEventBus)(),this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this._isViewerInPresentationMode=!1,this.eventBus._on("presentationmodechanged",r=>{this._isViewerInPresentationMode=r.active||r.switchInProgress}),this.eventBus._on("pagesinit",()=>{this._isPagesLoaded=!1;const r=i=>{this.eventBus._off("pagesloaded",r),this._isPagesLoaded=!!i.pagesCount};this.eventBus._on("pagesloaded",r)})}initialize({fingerprint:t,resetHistory:a=!1,updateUrl:r=!1}){if(!t||typeof t!="string"){console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');return}this._initialized&&this.reset();const i=this._fingerprint!==""&&this._fingerprint!==t;this._fingerprint=t,this._updateUrl=r===!0,this._initialized=!0,this._bindEvents();const p=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=getCurrentHash(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(p,!0)||a){const{hash:N,page:w,rotation:$}=this._parseCurrentHash();if(!N||i||a){this._pushOrReplaceState(null,!0);return}this._pushOrReplaceState({hash:N,page:w,rotation:$},!0);return}const e=p.destination;this._updateInternalState(e,p.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),e.rotation!==void 0&&(this._initialRotation=e.rotation),e.dest?(this._initialBookmark=JSON.stringify(e.dest),this._destination.page=null):e.hash?this._initialBookmark=e.hash:e.page&&(this._initialBookmark=`page=${e.page}`)}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:t=null,explicitDest:a,pageNumber:r}){if(!this._initialized)return;if(t&&typeof t!="string"){console.error(`PDFHistory.push: "${t}" is not a valid namedDest parameter.`);return}else if(Array.isArray(a)){if(!(Number.isInteger(r)&&r>0&&r<=this.linkService.pagesCount)&&(r!==null||this._destination)){console.error(`PDFHistory.push: "${r}" is not a valid pageNumber parameter.`);return}}else{console.error(`PDFHistory.push: "${a}" is not a valid explicitDest parameter.`);return}const i=t||JSON.stringify(a);if(!i)return;let p=!1;if(this._destination&&(isDestHashesEqual(this._destination.hash,i)||isDestArraysEqual(this._destination.dest,a))){if(this._destination.page)return;p=!0}this._popStateInProgress&&!p||(this._pushOrReplaceState({dest:a,hash:i,page:r,rotation:this.linkService.rotation},p),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushCurrentPosition(){!this._initialized||this._popStateInProgress||this._tryPushCurrentPosition()}back(){if(!this._initialized||this._popStateInProgress)return;const t=window.history.state;this._isValidState(t)&&t.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const t=window.history.state;this._isValidState(t)&&t.uid<this._maxUid&&window.history.forward()}get popStateInProgress(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}_pushOrReplaceState(t,a=!1){const r=a||!this._destination,i={fingerprint:this._fingerprint,uid:r?this._uid:this._uid+1,destination:t};this._updateInternalState(t,i.uid);let p;if(this._updateUrl&&t&&t.hash){const e=document.location.href.split("#")[0];e.startsWith("file://")||(p=`${e}#${t.hash}`)}r?window.history.replaceState(i,"",p):(this._maxUid=this._uid,window.history.pushState(i,"",p))}_tryPushCurrentPosition(t=!1){if(!this._position)return;let a=this._position;if(t&&(a=Object.assign(Object.create(null),this._position),a.temporary=!0),!this._destination){this._pushOrReplaceState(a);return}if(this._destination.temporary){this._pushOrReplaceState(a,!0);return}if(this._destination.hash===a.hash||!this._destination.page&&this._numPositionUpdates<=POSITION_UPDATED_THRESHOLD)return;let r=!1;if(this._destination.page>=a.first&&this._destination.page<=a.page){if(this._destination.dest||!this._destination.first)return;r=!0}this._pushOrReplaceState(a,r)}_isValidState(t,a=!1){if(!t)return!1;if(t.fingerprint!==this._fingerprint)if(a){if(typeof t.fingerprint!="string"||t.fingerprint.length!==this._fingerprint.length)return!1;const[r]=performance.getEntriesByType("navigation");if(!r||r.type!=="reload")return!1}else return!1;return!(!Number.isInteger(t.uid)||t.uid<0||t.destination===null||typeof t.destination!="object")}_updateInternalState(t,a,r=!1){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),r&&t&&t.temporary&&delete t.temporary,this._destination=t,this._uid=a,this._numPositionUpdates=0}_parseCurrentHash(){const t=unescape(getCurrentHash()).substring(1);let a=(0,_ui_utils$d.parseQueryString)(t).page|0;return Number.isInteger(a)&&a>0&&a<=this.linkService.pagesCount||(a=null),{hash:t,page:a,rotation:this.linkService.rotation}}_updateViewarea({location:t}){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?`page=${t.pageNumber}`:t.pdfOpenParams.substring(1),page:this.linkService.page,first:t.pageNumber,rotation:t.rotation},!this._popStateInProgress&&(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(()=>{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null},UPDATE_VIEWAREA_TIMEOUT))}_popState({state:t}){const a=getCurrentHash(),r=this._currentHash!==a;if(this._currentHash=a,!t){this._uid++;const{hash:p,page:e,rotation:N}=this._parseCurrentHash();this._pushOrReplaceState({hash:p,page:e,rotation:N},!0);return}if(!this._isValidState(t))return;this._popStateInProgress=!0,r&&(this._blockHashChange++,(0,_ui_utils$d.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:HASH_CHANGE_TIMEOUT}).then(()=>{this._blockHashChange--}));const i=t.destination;this._updateInternalState(i,t.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),(0,_ui_utils$d.isValidRotation)(i.rotation)&&(this.linkService.rotation=i.rotation),i.dest?this.linkService.navigateTo(i.dest):i.hash?this.linkService.setHash(i.hash):i.page&&(this.linkService.page=i.page),Promise.resolve().then(()=>{this._popStateInProgress=!1})}_pageHide(){(!this._destination||this._destination.temporary)&&this._tryPushCurrentPosition()}_bindEvents(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}_unbindEvents(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}exports$o.PDFHistory=PDFHistory;function isDestHashesEqual(x,t){if(typeof x!="string"||typeof t!="string")return!1;if(x===t)return!0;const{nameddest:a}=(0,_ui_utils$d.parseQueryString)(x);return a===t}function isDestArraysEqual(x,t){function a(r,i){if(typeof r!=typeof i||Array.isArray(r)||Array.isArray(i))return!1;if(r!==null&&typeof r=="object"&&i!==null){if(Object.keys(r).length!==Object.keys(i).length)return!1;for(const p in r)if(!a(r[p],i[p]))return!1;return!0}return r===i||Number.isNaN(r)&&Number.isNaN(i)}if(!(Array.isArray(x)&&Array.isArray(t))||x.length!==t.length)return!1;for(let r=0,i=x.length;r<i;r++)if(!a(x[r],t[r]))return!1;return!0}const __CJS__export_default__$k=(module$o.exports==null?{}:module$o.exports).default||module$o.exports,__CJS__export_isDestHashesEqual__=(module$o.exports==null?{}:module$o.exports).isDestHashesEqual,__CJS__export_isDestArraysEqual__=(module$o.exports==null?{}:module$o.exports).isDestArraysEqual,__CJS__export_PDFHistory__=(module$o.exports==null?{}:module$o.exports).PDFHistory,__CJS__import__12__=Object.freeze(Object.defineProperty({__proto__:null,PDFHistory:__CJS__export_PDFHistory__,default:__CJS__export_default__$k,isDestArraysEqual:__CJS__export_isDestArraysEqual__,isDestHashesEqual:__CJS__export_isDestHashesEqual__},Symbol.toStringTag,{value:"Module"}));var module$n={exports:{}},exports$n=module$n.exports;Object.defineProperty(exports$n,"__esModule",{value:!0});exports$n.SimpleLinkService=exports$n.PDFLinkService=void 0;var _ui_utils$c=__CJS__export_default__$V||__CJS__import__0__$5;class PDFLinkService{constructor({eventBus:t,externalLinkTarget:a=null,externalLinkRel:r=null,externalLinkEnabled:i=!0,ignoreDestinationZoom:p=!1}={}){this.eventBus=t||(0,_ui_utils$c.getGlobalEventBus)(),this.externalLinkTarget=a,this.externalLinkRel=r,this.externalLinkEnabled=i,this._ignoreDestinationZoom=p,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}setDocument(t,a=null){this.baseUrl=a,this.pdfDocument=t,this._pagesRefCache=Object.create(null)}setViewer(t){this.pdfViewer=t}setHistory(t){this.pdfHistory=t}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(t){this.pdfViewer.currentPageNumber=t}get rotation(){return this.pdfViewer.pagesRotation}set rotation(t){this.pdfViewer.pagesRotation=t}navigateTo(t){const a=({namedDest:r,explicitDest:i})=>{const p=i[0];let e;if(p instanceof Object){if(e=this._cachedPageNumber(p),e===null){this.pdfDocument.getPageIndex(p).then(N=>{this.cachePageRef(N+1,p),a({namedDest:r,explicitDest:i})}).catch(()=>{console.error(`PDFLinkService.navigateTo: "${p}" is not a valid page reference, for dest="${t}".`)});return}}else if(Number.isInteger(p))e=p+1;else{console.error(`PDFLinkService.navigateTo: "${p}" is not a valid destination reference, for dest="${t}".`);return}if(!e||e<1||e>this.pagesCount){console.error(`PDFLinkService.navigateTo: "${e}" is not a valid page number, for dest="${t}".`);return}this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:r,explicitDest:i,pageNumber:e})),this.pdfViewer.scrollPageIntoView({pageNumber:e,destArray:i,ignoreDestinationZoom:this._ignoreDestinationZoom})};new Promise((r,i)=>{if(typeof t=="string"){this.pdfDocument.getDestination(t).then(p=>{r({namedDest:t,explicitDest:p})});return}r({namedDest:"",explicitDest:t})}).then(r=>{if(!Array.isArray(r.explicitDest)){console.error(`PDFLinkService.navigateTo: "${r.explicitDest}" is not a valid destination array, for dest="${t}".`);return}a(r)})}getDestinationHash(t){if(typeof t=="string")return this.getAnchorUrl("#"+escape(t));if(Array.isArray(t)){const a=JSON.stringify(t);return this.getAnchorUrl("#"+escape(a))}return this.getAnchorUrl("")}getAnchorUrl(t){return(this.baseUrl||"")+t}setHash(t){let a,r;if(t.includes("=")){const i=(0,_ui_utils$c.parseQueryString)(t);if("search"in i&&this.eventBus.dispatch("findfromurlhash",{source:this,query:i.search.replace(/"/g,""),phraseSearch:i.phrase==="true"}),"nameddest"in i){this.navigateTo(i.nameddest);return}if("page"in i&&(a=i.page|0||1),"zoom"in i){const p=i.zoom.split(","),e=p[0],N=parseFloat(e);e.includes("Fit")?e==="Fit"||e==="FitB"?r=[null,{name:e}]:e==="FitH"||e==="FitBH"||e==="FitV"||e==="FitBV"?r=[null,{name:e},p.length>1?p[1]|0:null]:e==="FitR"?p.length!==5?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):r=[null,{name:e},p[1]|0,p[2]|0,p[3]|0,p[4]|0]:console.error(`PDFLinkService.setHash: "${e}" is not a valid zoom value.`):r=[null,{name:"XYZ"},p.length>1?p[1]|0:null,p.length>2?p[2]|0:null,N?N/100:e]}r?this.pdfViewer.scrollPageIntoView({pageNumber:a||this.page,destArray:r,allowNegativeOffset:!0}):a&&(this.page=a),"pagemode"in i&&this.eventBus.dispatch("pagemode",{source:this,mode:i.pagemode})}else{r=unescape(t);try{r=JSON.parse(r),Array.isArray(r)||(r=r.toString())}catch{}if(typeof r=="string"||isValidExplicitDestination(r)){this.navigateTo(r);return}console.error(`PDFLinkService.setHash: "${unescape(t)}" is not a valid destination.`)}}executeNamedAction(t){switch(t){case"GoBack":this.pdfHistory&&this.pdfHistory.back();break;case"GoForward":this.pdfHistory&&this.pdfHistory.forward();break;case"NextPage":this.page<this.pagesCount&&this.page++;break;case"PrevPage":this.page>1&&this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1;break}this.eventBus.dispatch("namedaction",{source:this,action:t})}cachePageRef(t,a){if(!a)return;const r=a.gen===0?`${a.num}R`:`${a.num}R${a.gen}`;this._pagesRefCache[r]=t}_cachedPageNumber(t){const a=t.gen===0?`${t.num}R`:`${t.num}R${t.gen}`;return this._pagesRefCache&&this._pagesRefCache[a]||null}isPageVisible(t){return this.pdfViewer.isPageVisible(t)}}exports$n.PDFLinkService=PDFLinkService;function isValidExplicitDestination(x){if(!Array.isArray(x))return!1;const t=x.length;if(t<2)return!1;const a=x[0];if(!(typeof a=="object"&&Number.isInteger(a.num)&&Number.isInteger(a.gen))&&!(Number.isInteger(a)&&a>=0))return!1;const r=x[1];if(!(typeof r=="object"&&typeof r.name=="string"))return!1;let i=!0;switch(r.name){case"XYZ":if(t!==5)return!1;break;case"Fit":case"FitB":return t===2;case"FitH":case"FitBH":case"FitV":case"FitBV":if(t!==3)return!1;break;case"FitR":if(t!==6)return!1;i=!1;break;default:return!1}for(let p=2;p<t;p++){const e=x[p];if(!(typeof e=="number"||i&&e===null))return!1}return!0}class SimpleLinkService{constructor(){this.externalLinkTarget=null,this.externalLinkRel=null,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=!1}get pagesCount(){return 0}get page(){return 0}set page(t){}get rotation(){return 0}set rotation(t){}navigateTo(t){}getDestinationHash(t){return"#"}getAnchorUrl(t){return"#"}setHash(t){}executeNamedAction(t){}cachePageRef(t,a){}isPageVisible(t){return!0}}exports$n.SimpleLinkService=SimpleLinkService;const __CJS__export_default__$j=(module$n.exports==null?{}:module$n.exports).default||module$n.exports,__CJS__export_PDFLinkService__=(module$n.exports==null?{}:module$n.exports).PDFLinkService,__CJS__export_SimpleLinkService__=(module$n.exports==null?{}:module$n.exports).SimpleLinkService,__CJS__import__13__=Object.freeze(Object.defineProperty({__proto__:null,PDFLinkService:__CJS__export_PDFLinkService__,SimpleLinkService:__CJS__export_SimpleLinkService__,default:__CJS__export_default__$j},Symbol.toStringTag,{value:"Module"}));var module$m={exports:{}},exports$m=module$m.exports;Object.defineProperty(exports$m,"__esModule",{value:!0});exports$m.PDFOutlineViewer=void 0;var _pdf$9=__CJS__export_default__$y||__CJS__import__0__$3;const DEFAULT_TITLE="–";class PDFOutlineViewer{constructor({container:t,linkService:a,eventBus:r}){this.container=t,this.linkService=a,this.eventBus=r,this.reset(),r._on("toggleoutlinetree",this.toggleOutlineTree.bind(this))}reset(){this.outline=null,this.lastToggleIsShow=!0,this.container.textContent="",this.container.classList.remove("outlineWithDeepNesting")}_dispatchEvent(t){this.eventBus.dispatch("outlineloaded",{source:this,outlineCount:t})}_bindLink(t,{url:a,newWindow:r,dest:i}){const{linkService:p}=this;if(a){(0,_pdf$9.addLinkAttributes)(t,{url:a,target:r?_pdf$9.LinkTarget.BLANK:p.externalLinkTarget,rel:p.externalLinkRel,enabled:p.externalLinkEnabled});return}t.href=p.getDestinationHash(i),t.onclick=()=>(i&&p.navigateTo(i),!1)}_setStyles(t,{bold:a,italic:r}){a&&(t.style.fontWeight="bold"),r&&(t.style.fontStyle="italic")}_addToggleButton(t,{count:a,items:r}){const i=document.createElement("div");i.className="outlineItemToggler",a<0&&Math.abs(a)===r.length&&i.classList.add("outlineItemsHidden"),i.onclick=p=>{if(p.stopPropagation(),i.classList.toggle("outlineItemsHidden"),p.shiftKey){const e=!i.classList.contains("outlineItemsHidden");this._toggleOutlineItem(t,e)}},t.insertBefore(i,t.firstChild)}_toggleOutlineItem(t,a=!1){this.lastToggleIsShow=a;for(const r of t.querySelectorAll(".outlineItemToggler"))r.classList.toggle("outlineItemsHidden",!a)}toggleOutlineTree(){this.outline&&this._toggleOutlineItem(this.container,!this.lastToggleIsShow)}render({outline:t}){let a=0;if(this.outline&&this.reset(),this.outline=t||null,!t){this._dispatchEvent(a);return}const r=document.createDocumentFragment(),i=[{parent:r,items:this.outline}];let p=!1;for(;i.length>0;){const e=i.shift();for(const N of e.items){const w=document.createElement("div");w.className="outlineItem";const $=document.createElement("a");if(this._bindLink($,N),this._setStyles($,N),$.textContent=(0,_pdf$9.removeNullCharacters)(N.title)||DEFAULT_TITLE,w.appendChild($),N.items.length>0){p=!0,this._addToggleButton(w,N);const U=document.createElement("div");U.className="outlineItems",w.appendChild(U),i.push({parent:U,items:N.items})}e.parent.appendChild(w),a++}}p&&(this.container.classList.add("outlineWithDeepNesting"),this.lastToggleIsShow=r.querySelectorAll(".outlineItemsHidden").length===0),this.container.appendChild(r),this._dispatchEvent(a)}}exports$m.PDFOutlineViewer=PDFOutlineViewer;const __CJS__export_default__$i=(module$m.exports==null?{}:module$m.exports).default||module$m.exports,__CJS__export_PDFOutlineViewer__=(module$m.exports==null?{}:module$m.exports).PDFOutlineViewer,__CJS__import__14__=Object.freeze(Object.defineProperty({__proto__:null,PDFOutlineViewer:__CJS__export_PDFOutlineViewer__,default:__CJS__export_default__$i},Symbol.toStringTag,{value:"Module"}));var module$l={exports:{}},exports$l=module$l.exports;Object.defineProperty(exports$l,"__esModule",{value:!0});exports$l.PDFPresentationMode=void 0;var _ui_utils$b=__CJS__export_default__$V||__CJS__import__0__$5;const DELAY_BEFORE_RESETTING_SWITCH_IN_PROGRESS=1500,DELAY_BEFORE_HIDING_CONTROLS=3e3,ACTIVE_SELECTOR="pdfPresentationMode",CONTROLS_SELECTOR="pdfPresentationModeControls",MOUSE_SCROLL_COOLDOWN_TIME=50,PAGE_SWITCH_THRESHOLD=.1,SWIPE_MIN_DISTANCE_THRESHOLD=50,SWIPE_ANGLE_THRESHOLD=Math.PI/6;class PDFPresentationMode{constructor({container:t,pdfViewer:a,eventBus:r,contextMenuItems:i=null}){this.container=t,this.pdfViewer=a,this.eventBus=r,this.active=!1,this.args=null,this.contextMenuOpen=!1,this.mouseScrollTimeStamp=0,this.mouseScrollDelta=0,this.touchSwipeState=null,i&&(i.contextFirstPage.addEventListener("click",()=>{this.contextMenuOpen=!1,this.eventBus.dispatch("firstpage",{source:this})}),i.contextLastPage.addEventListener("click",()=>{this.contextMenuOpen=!1,this.eventBus.dispatch("lastpage",{source:this})}),i.contextPageRotateCw.addEventListener("click",()=>{this.contextMenuOpen=!1,this.eventBus.dispatch("rotatecw",{source:this})}),i.contextPageRotateCcw.addEventListener("click",()=>{this.contextMenuOpen=!1,this.eventBus.dispatch("rotateccw",{source:this})}))}request(){if(this.switchInProgress||this.active||!this.pdfViewer.pagesCount)return!1;if(this._addFullscreenChangeListeners(),this._setSwitchInProgress(),this._notifyStateChange(),this.container.requestFullscreen)this.container.requestFullscreen();else if(this.container.mozRequestFullScreen)this.container.mozRequestFullScreen();else if(this.container.webkitRequestFullscreen)this.container.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);else if(this.container.msRequestFullscreen)this.container.msRequestFullscreen();else return!1;return this.args={page:this.pdfViewer.currentPageNumber,previousScale:this.pdfViewer.currentScaleValue},!0}_mouseWheel(t){if(!this.active)return;t.preventDefault();const a=(0,_ui_utils$b.normalizeWheelEventDelta)(t),r=new Date().getTime(),i=this.mouseScrollTimeStamp;if(!(r>i&&r-i<MOUSE_SCROLL_COOLDOWN_TIME)&&((this.mouseScrollDelta>0&&a<0||this.mouseScrollDelta<0&&a>0)&&this._resetMouseScrollState(),this.mouseScrollDelta+=a,Math.abs(this.mouseScrollDelta)>=PAGE_SWITCH_THRESHOLD)){const p=this.mouseScrollDelta;this._resetMouseScrollState(),(p>0?this._goToPreviousPage():this._goToNextPage())&&(this.mouseScrollTimeStamp=r)}}get isFullscreen(){return!!(document.fullscreenElement||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement)}_goToPreviousPage(){const t=this.pdfViewer.currentPageNumber;return t<=1?!1:(this.pdfViewer.currentPageNumber=t-1,!0)}_goToNextPage(){const t=this.pdfViewer.currentPageNumber;return t>=this.pdfViewer.pagesCount?!1:(this.pdfViewer.currentPageNumber=t+1,!0)}_notifyStateChange(){this.eventBus.dispatch("presentationmodechanged",{source:this,active:this.active,switchInProgress:!!this.switchInProgress})}_setSwitchInProgress(){this.switchInProgress&&clearTimeout(this.switchInProgress),this.switchInProgress=setTimeout(()=>{this._removeFullscreenChangeListeners(),delete this.switchInProgress,this._notifyStateChange()},DELAY_BEFORE_RESETTING_SWITCH_IN_PROGRESS)}_resetSwitchInProgress(){this.switchInProgress&&(clearTimeout(this.switchInProgress),delete this.switchInProgress)}_enter(){this.active=!0,this._resetSwitchInProgress(),this._notifyStateChange(),this.container.classList.add(ACTIVE_SELECTOR),setTimeout(()=>{this.pdfViewer.currentPageNumber=this.args.page,this.pdfViewer.currentScaleValue="page-fit"},0),this._addWindowListeners(),this._showControls(),this.contextMenuOpen=!1,this.container.setAttribute("contextmenu","viewerContextMenu"),window.getSelection().removeAllRanges()}_exit(){const t=this.pdfViewer.currentPageNumber;this.container.classList.remove(ACTIVE_SELECTOR),setTimeout(()=>{this.active=!1,this._removeFullscreenChangeListeners(),this._notifyStateChange(),this.pdfViewer.currentScaleValue=this.args.previousScale,this.pdfViewer.currentPageNumber=t,this.args=null},0),this._removeWindowListeners(),this._hideControls(),this._resetMouseScrollState(),this.container.removeAttribute("contextmenu"),this.contextMenuOpen=!1}_mouseDown(t){if(this.contextMenuOpen){this.contextMenuOpen=!1,t.preventDefault();return}t.button===0&&(t.target.href&&t.target.classList.contains("internalLink")||(t.preventDefault(),t.shiftKey?this._goToPreviousPage():this._goToNextPage()))}_contextMenu(){this.contextMenuOpen=!0}_showControls(){this.controlsTimeout?clearTimeout(this.controlsTimeout):this.container.classList.add(CONTROLS_SELECTOR),this.controlsTimeout=setTimeout(()=>{this.container.classList.remove(CONTROLS_SELECTOR),delete this.controlsTimeout},DELAY_BEFORE_HIDING_CONTROLS)}_hideControls(){this.controlsTimeout&&(clearTimeout(this.controlsTimeout),this.container.classList.remove(CONTROLS_SELECTOR),delete this.controlsTimeout)}_resetMouseScrollState(){this.mouseScrollTimeStamp=0,this.mouseScrollDelta=0}_touchSwipe(t){if(this.active){if(t.touches.length>1){this.touchSwipeState=null;return}switch(t.type){case"touchstart":this.touchSwipeState={startX:t.touches[0].pageX,startY:t.touches[0].pageY,endX:t.touches[0].pageX,endY:t.touches[0].pageY};break;case"touchmove":if(this.touchSwipeState===null)return;this.touchSwipeState.endX=t.touches[0].pageX,this.touchSwipeState.endY=t.touches[0].pageY,t.preventDefault();break;case"touchend":if(this.touchSwipeState===null)return;let a=0;const r=this.touchSwipeState.endX-this.touchSwipeState.startX,i=this.touchSwipeState.endY-this.touchSwipeState.startY,p=Math.abs(Math.atan2(i,r));Math.abs(r)>SWIPE_MIN_DISTANCE_THRESHOLD&&(p<=SWIPE_ANGLE_THRESHOLD||p>=Math.PI-SWIPE_ANGLE_THRESHOLD)?a=r:Math.abs(i)>SWIPE_MIN_DISTANCE_THRESHOLD&&Math.abs(p-Math.PI/2)<=SWIPE_ANGLE_THRESHOLD&&(a=i),a>0?this._goToPreviousPage():a<0&&this._goToNextPage();break}}}_addWindowListeners(){this.showControlsBind=this._showControls.bind(this),this.mouseDownBind=this._mouseDown.bind(this),this.mouseWheelBind=this._mouseWheel.bind(this),this.resetMouseScrollStateBind=this._resetMouseScrollState.bind(this),this.contextMenuBind=this._contextMenu.bind(this),this.touchSwipeBind=this._touchSwipe.bind(this),window.addEventListener("mousemove",this.showControlsBind),window.addEventListener("mousedown",this.mouseDownBind),window.addEventListener("wheel",this.mouseWheelBind),window.addEventListener("keydown",this.resetMouseScrollStateBind),window.addEventListener("contextmenu",this.contextMenuBind),window.addEventListener("touchstart",this.touchSwipeBind),window.addEventListener("touchmove",this.touchSwipeBind),window.addEventListener("touchend",this.touchSwipeBind)}_removeWindowListeners(){window.removeEventListener("mousemove",this.showControlsBind),window.removeEventListener("mousedown",this.mouseDownBind),window.removeEventListener("wheel",this.mouseWheelBind),window.removeEventListener("keydown",this.resetMouseScrollStateBind),window.removeEventListener("contextmenu",this.contextMenuBind),window.removeEventListener("touchstart",this.touchSwipeBind),window.removeEventListener("touchmove",this.touchSwipeBind),window.removeEventListener("touchend",this.touchSwipeBind),delete this.showControlsBind,delete this.mouseDownBind,delete this.mouseWheelBind,delete this.resetMouseScrollStateBind,delete this.contextMenuBind,delete this.touchSwipeBind}_fullscreenChange(){this.isFullscreen?this._enter():this._exit()}_addFullscreenChangeListeners(){this.fullscreenChangeBind=this._fullscreenChange.bind(this),window.addEventListener("fullscreenchange",this.fullscreenChangeBind),window.addEventListener("mozfullscreenchange",this.fullscreenChangeBind),window.addEventListener("webkitfullscreenchange",this.fullscreenChangeBind),window.addEventListener("MSFullscreenChange",this.fullscreenChangeBind)}_removeFullscreenChangeListeners(){window.removeEventListener("fullscreenchange",this.fullscreenChangeBind),window.removeEventListener("mozfullscreenchange",this.fullscreenChangeBind),window.removeEventListener("webkitfullscreenchange",this.fullscreenChangeBind),window.removeEventListener("MSFullscreenChange",this.fullscreenChangeBind),delete this.fullscreenChangeBind}}exports$l.PDFPresentationMode=PDFPresentationMode;const __CJS__export_default__$h=(module$l.exports==null?{}:module$l.exports).default||module$l.exports,__CJS__export_PDFPresentationMode__=(module$l.exports==null?{}:module$l.exports).PDFPresentationMode,__CJS__import__15__=Object.freeze(Object.defineProperty({__proto__:null,PDFPresentationMode:__CJS__export_PDFPresentationMode__,default:__CJS__export_default__$h},Symbol.toStringTag,{value:"Module"}));var module$k={exports:{}},exports$k=module$k.exports;Object.defineProperty(exports$k,"__esModule",{value:!0});exports$k.PDFSidebarResizer=void 0;var _ui_utils$a=__CJS__export_default__$V||__CJS__import__0__$5;const SIDEBAR_WIDTH_VAR="--sidebar-width",SIDEBAR_MIN_WIDTH=200,SIDEBAR_RESIZING_CLASS="sidebarResizing";class PDFSidebarResizer{constructor(t,a,r=_ui_utils$a.NullL10n){if(this.enabled=!1,this.isRTL=!1,this.sidebarOpen=!1,this.doc=document.documentElement,this._width=null,this._outerContainerWidth=null,this._boundEvents=Object.create(null),this.outerContainer=t.outerContainer,this.resizer=t.resizer,this.eventBus=a,this.l10n=r,typeof CSS>"u"||typeof CSS.supports!="function"||!CSS.supports(SIDEBAR_WIDTH_VAR,`calc(-1 * ${SIDEBAR_MIN_WIDTH}px)`)){console.warn("PDFSidebarResizer: The browser does not support resizing of the sidebar.");return}this.enabled=!0,this.resizer.classList.remove("hidden"),this.l10n.getDirection().then(i=>{this.isRTL=i==="rtl"}),this._addEventListeners()}get outerContainerWidth(){return this._outerContainerWidth||(this._outerContainerWidth=this.outerContainer.clientWidth),this._outerContainerWidth}_updateWidth(t=0){if(!this.enabled)return!1;const a=(0,_ui_utils$a.clamp)(t,SIDEBAR_MIN_WIDTH,Math.floor(this.outerContainerWidth/2));return a===this._width?!1:(this._width=a,this.doc.style.setProperty(SIDEBAR_WIDTH_VAR,`${a}px`),!0)}_mouseMove(t){let a=t.clientX;this.isRTL&&(a=this.outerContainerWidth-a),this._updateWidth(a)}_mouseUp(t){this.outerContainer.classList.remove(SIDEBAR_RESIZING_CLASS),this.eventBus.dispatch("resize",{source:this});const a=this._boundEvents;window.removeEventListener("mousemove",a.mouseMove),window.removeEventListener("mouseup",a.mouseUp)}_addEventListeners(){if(!this.enabled)return;const t=this._boundEvents;t.mouseMove=this._mouseMove.bind(this),t.mouseUp=this._mouseUp.bind(this),this.resizer.addEventListener("mousedown",a=>{a.button===0&&(this.outerContainer.classList.add(SIDEBAR_RESIZING_CLASS),window.addEventListener("mousemove",t.mouseMove),window.addEventListener("mouseup",t.mouseUp))}),this.eventBus._on("sidebarviewchanged",a=>{this.sidebarOpen=!!(a&&a.view)}),this.eventBus._on("resize",a=>{if(!a||a.source!==window||(this._outerContainerWidth=null,!this._width))return;if(!this.sidebarOpen){this._updateWidth(this._width);return}this.outerContainer.classList.add(SIDEBAR_RESIZING_CLASS);const r=this._updateWidth(this._width);Promise.resolve().then(()=>{this.outerContainer.classList.remove(SIDEBAR_RESIZING_CLASS),r&&this.eventBus.dispatch("resize",{source:this})})})}}exports$k.PDFSidebarResizer=PDFSidebarResizer;const __CJS__export_default__$g=(module$k.exports==null?{}:module$k.exports).default||module$k.exports,__CJS__export_PDFSidebarResizer__=(module$k.exports==null?{}:module$k.exports).PDFSidebarResizer,__CJS__import__16__=Object.freeze(Object.defineProperty({__proto__:null,PDFSidebarResizer:__CJS__export_PDFSidebarResizer__,default:__CJS__export_default__$g},Symbol.toStringTag,{value:"Module"}));var module$j={exports:{}},exports$j=module$j.exports;Object.defineProperty(exports$j,"__esModule",{value:!0});exports$j.PDFThumbnailView=void 0;var _pdf$8=__CJS__export_default__$y||__CJS__import__0__$3,_ui_utils$9=__CJS__export_default__$V||__CJS__import__0__$5,_pdf_rendering_queue$3=__CJS__export_default__$t||__CJS__import__4__$1;const MAX_NUM_SCALING_STEPS=3,THUMBNAIL_CANVAS_BORDER_WIDTH=1,THUMBNAIL_WIDTH=98,TempImageFactory=function x(){let t=null;return{getCanvas(a,r){let i=t;i||(i=document.createElement("canvas"),t=i),i.width=a,i.height=r,i.mozOpaque=!0;const p=i.getContext("2d",{alpha:!1});return p.save(),p.fillStyle="rgb(255, 255, 255)",p.fillRect(0,0,a,r),p.restore(),i},destroyCanvas(){const a=t;a&&(a.width=0,a.height=0),t=null}}}();class PDFThumbnailView{constructor({container:t,id:a,defaultViewport:r,linkService:i,renderingQueue:p,disableCanvasToImageConversion:e=!1,l10n:N=_ui_utils$9.NullL10n}){this.id=a,this.renderingId="thumbnail"+a,this.pageLabel=null,this.pdfPage=null,this.rotation=0,this.viewport=r,this.pdfPageRotate=r.rotation,this.linkService=i,this.renderingQueue=p,this.renderTask=null,this.renderingState=_pdf_rendering_queue$3.RenderingStates.INITIAL,this.resume=null,this.disableCanvasToImageConversion=e,this.pageWidth=this.viewport.width,this.pageHeight=this.viewport.height,this.pageRatio=this.pageWidth/this.pageHeight,this.canvasWidth=THUMBNAIL_WIDTH,this.canvasHeight=this.canvasWidth/this.pageRatio|0,this.scale=this.canvasWidth/this.pageWidth,this.l10n=N;const w=document.createElement("a");w.href=i.getAnchorUrl("#page="+a),this._thumbPageTitle.then(n=>{w.title=n}),w.onclick=function(){return i.page=a,!1},this.anchor=w;const $=document.createElement("div");$.className="thumbnail",$.setAttribute("data-page-number",this.id),this.div=$;const U=document.createElement("div");U.className="thumbnailSelectionRing";const m=2*THUMBNAIL_CANVAS_BORDER_WIDTH;U.style.width=this.canvasWidth+m+"px",U.style.height=this.canvasHeight+m+"px",this.ring=U,$.appendChild(U),w.appendChild($),t.appendChild(w)}setPdfPage(t){this.pdfPage=t,this.pdfPageRotate=t.rotate;const a=(this.rotation+this.pdfPageRotate)%360;this.viewport=t.getViewport({scale:1,rotation:a}),this.reset()}reset(){this.cancelRendering(),this.renderingState=_pdf_rendering_queue$3.RenderingStates.INITIAL,this.pageWidth=this.viewport.width,this.pageHeight=this.viewport.height,this.pageRatio=this.pageWidth/this.pageHeight,this.canvasHeight=this.canvasWidth/this.pageRatio|0,this.scale=this.canvasWidth/this.pageWidth,this.div.removeAttribute("data-loaded");const t=this.ring,a=t.childNodes;for(let i=a.length-1;i>=0;i--)t.removeChild(a[i]);const r=2*THUMBNAIL_CANVAS_BORDER_WIDTH;t.style.width=this.canvasWidth+r+"px",t.style.height=this.canvasHeight+r+"px",this.canvas&&(this.canvas.width=0,this.canvas.height=0,delete this.canvas),this.image&&(this.image.removeAttribute("src"),delete this.image)}update(t){typeof t<"u"&&(this.rotation=t);const a=(this.rotation+this.pdfPageRotate)%360;this.viewport=this.viewport.clone({scale:1,rotation:a}),this.reset()}cancelRendering(){this.renderTask&&(this.renderTask.cancel(),this.renderTask=null),this.resume=null}_getPageDrawContext(t=!1){const a=document.createElement("canvas");this.canvas=a,a.mozOpaque=!0;const r=a.getContext("2d",{alpha:!1}),i=(0,_ui_utils$9.getOutputScale)(r);return a.width=this.canvasWidth*i.sx|0,a.height=this.canvasHeight*i.sy|0,a.style.width=this.canvasWidth+"px",a.style.height=this.canvasHeight+"px",!t&&i.scaled&&r.scale(i.sx,i.sy),r}_convertCanvasToImage(){if(!this.canvas||this.renderingState!==_pdf_rendering_queue$3.RenderingStates.FINISHED)return;const t="thumbnailImage";if(this.disableCanvasToImageConversion){this.canvas.className=t,this._thumbPageCanvas.then(r=>{this.canvas.setAttribute("aria-label",r)}),this.div.setAttribute("data-loaded",!0),this.ring.appendChild(this.canvas);return}const a=document.createElement("img");a.className=t,this._thumbPageCanvas.then(r=>{a.setAttribute("aria-label",r)}),a.style.width=this.canvasWidth+"px",a.style.height=this.canvasHeight+"px",a.src=this.canvas.toDataURL(),this.image=a,this.div.setAttribute("data-loaded",!0),this.ring.appendChild(a),this.canvas.width=0,this.canvas.height=0,delete this.canvas}draw(){if(this.renderingState!==_pdf_rendering_queue$3.RenderingStates.INITIAL)return console.error("Must be in new state before drawing"),Promise.resolve(void 0);const{pdfPage:t}=this;if(!t)return this.renderingState=_pdf_rendering_queue$3.RenderingStates.FINISHED,Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=_pdf_rendering_queue$3.RenderingStates.RUNNING;const a=(0,_pdf$8.createPromiseCapability)(),r=$=>{if(w===this.renderTask&&(this.renderTask=null),$ instanceof _pdf$8.RenderingCancelledException){a.resolve(void 0);return}this.renderingState=_pdf_rendering_queue$3.RenderingStates.FINISHED,this._convertCanvasToImage(),$?a.reject($):a.resolve(void 0)},i=this._getPageDrawContext(),p=this.viewport.clone({scale:this.scale}),e=$=>{if(!this.renderingQueue.isHighestPriority(this)){this.renderingState=_pdf_rendering_queue$3.RenderingStates.PAUSED,this.resume=()=>{this.renderingState=_pdf_rendering_queue$3.RenderingStates.RUNNING,$()};return}$()},N={canvasContext:i,viewport:p},w=this.renderTask=t.render(N);return w.onContinue=e,w.promise.then(function(){r(null)},function($){r($)}),a.promise}setImage(t){if(this.renderingState!==_pdf_rendering_queue$3.RenderingStates.INITIAL)return;const a=t.canvas;if(!a)return;this.pdfPage||this.setPdfPage(t.pdfPage),this.renderingState=_pdf_rendering_queue$3.RenderingStates.FINISHED;const r=this._getPageDrawContext(!0),i=r.canvas;if(a.width<=2*i.width){r.drawImage(a,0,0,a.width,a.height,0,0,i.width,i.height),this._convertCanvasToImage();return}let p=i.width<<MAX_NUM_SCALING_STEPS,e=i.height<<MAX_NUM_SCALING_STEPS;const N=TempImageFactory.getCanvas(p,e),w=N.getContext("2d");for(;p>a.width||e>a.height;)p>>=1,e>>=1;for(w.drawImage(a,0,0,a.width,a.height,0,0,p,e);p>2*i.width;)w.drawImage(N,0,0,p,e,0,0,p>>1,e>>1),p>>=1,e>>=1;r.drawImage(N,0,0,p,e,0,0,i.width,i.height),this._convertCanvasToImage()}get _thumbPageTitle(){return this.l10n.get("thumb_page_title",{page:this.pageLabel!==null?this.pageLabel:this.id},"Page {{page}}")}get _thumbPageCanvas(){return this.l10n.get("thumb_page_canvas",{page:this.pageLabel!==null?this.pageLabel:this.id},"Thumbnail of Page {{page}}")}setPageLabel(t){this.pageLabel=typeof t=="string"?t:null,this._thumbPageTitle.then(a=>{this.anchor.title=a}),this.renderingState===_pdf_rendering_queue$3.RenderingStates.FINISHED&&this._thumbPageCanvas.then(a=>{this.image?this.image.setAttribute("aria-label",a):this.disableCanvasToImageConversion&&this.canvas&&this.canvas.setAttribute("aria-label",a)})}static cleanup(){TempImageFactory.destroyCanvas()}}exports$j.PDFThumbnailView=PDFThumbnailView;const __CJS__export_default__$f=(module$j.exports==null?{}:module$j.exports).default||module$j.exports,__CJS__export_PDFThumbnailView__=(module$j.exports==null?{}:module$j.exports).PDFThumbnailView,__CJS__import__1__$2=Object.freeze(Object.defineProperty({__proto__:null,PDFThumbnailView:__CJS__export_PDFThumbnailView__,default:__CJS__export_default__$f},Symbol.toStringTag,{value:"Module"}));var module$i={exports:{}},exports$i=module$i.exports;Object.defineProperty(exports$i,"__esModule",{value:!0});exports$i.PDFThumbnailViewer=void 0;var _ui_utils$8=__CJS__export_default__$V||__CJS__import__0__$5,_pdf_thumbnail_view=__CJS__export_default__$f||__CJS__import__1__$2;const THUMBNAIL_SCROLL_MARGIN=-19,THUMBNAIL_SELECTED_CLASS="selected";class PDFThumbnailViewer{constructor({container:t,linkService:a,renderingQueue:r,l10n:i=_ui_utils$8.NullL10n}){this.container=t,this.linkService=a,this.renderingQueue=r,this.l10n=i,this.scroll=(0,_ui_utils$8.watchScroll)(this.container,this._scrollUpdated.bind(this)),this._resetView()}_scrollUpdated(){this.renderingQueue.renderHighestPriority()}getThumbnail(t){return this._thumbnails[t]}_getVisibleThumbs(){return(0,_ui_utils$8.getVisibleElements)(this.container,this._thumbnails)}scrollThumbnailIntoView(t){if(!this.pdfDocument)return;const a=this._thumbnails[t-1];if(!a){console.error('scrollThumbnailIntoView: Invalid "pageNumber" parameter.');return}t!==this._currentPageNumber&&(this._thumbnails[this._currentPageNumber-1].div.classList.remove(THUMBNAIL_SELECTED_CLASS),a.div.classList.add(THUMBNAIL_SELECTED_CLASS));const r=this._getVisibleThumbs(),i=r.views.length;if(i>0){const p=r.first.id,e=i>1?r.last.id:p;let N=!1;t<=p||t>=e?N=!0:r.views.some(function(w){return w.id!==t?!1:(N=w.percent<100,!0)}),N&&(0,_ui_utils$8.scrollIntoView)(a.div,{top:THUMBNAIL_SCROLL_MARGIN})}this._currentPageNumber=t}get pagesRotation(){return this._pagesRotation}set pagesRotation(t){if(!(0,_ui_utils$8.isValidRotation)(t))throw new Error("Invalid thumbnails rotation angle.");if(this.pdfDocument&&this._pagesRotation!==t){this._pagesRotation=t;for(let a=0,r=this._thumbnails.length;a<r;a++)this._thumbnails[a].update(t)}}cleanup(){_pdf_thumbnail_view.PDFThumbnailView.cleanup()}_resetView(){this._thumbnails=[],this._currentPageNumber=1,this._pageLabels=null,this._pagesRotation=0,this._pagesRequests=new WeakMap,this.container.textContent=""}setDocument(t){this.pdfDocument&&(this._cancelRendering(),this._resetView()),this.pdfDocument=t,t&&t.getPage(1).then(a=>{const r=t.numPages,i=a.getViewport({scale:1});for(let N=1;N<=r;++N){const w=new _pdf_thumbnail_view.PDFThumbnailView({container:this.container,id:N,defaultViewport:i.clone(),linkService:this.linkService,renderingQueue:this.renderingQueue,disableCanvasToImageConversion:!1,l10n:this.l10n});this._thumbnails.push(w)}const p=this._thumbnails[0];p&&p.setPdfPage(a),this._thumbnails[this._currentPageNumber-1].div.classList.add(THUMBNAIL_SELECTED_CLASS)}).catch(a=>{console.error("Unable to initialize thumbnail viewer",a)})}_cancelRendering(){for(let t=0,a=this._thumbnails.length;t<a;t++)this._thumbnails[t]&&this._thumbnails[t].cancelRendering()}setPageLabels(t){if(this.pdfDocument){t?Array.isArray(t)&&this.pdfDocument.numPages===t.length?this._pageLabels=t:(this._pageLabels=null,console.error("PDFThumbnailViewer_setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let a=0,r=this._thumbnails.length;a<r;a++){const i=this._pageLabels&&this._pageLabels[a];this._thumbnails[a].setPageLabel(i)}}}_ensurePdfPageLoaded(t){if(t.pdfPage)return Promise.resolve(t.pdfPage);if(this._pagesRequests.has(t))return this._pagesRequests.get(t);const a=this.pdfDocument.getPage(t.id).then(r=>(t.pdfPage||t.setPdfPage(r),this._pagesRequests.delete(t),r)).catch(r=>{console.error("Unable to get page for thumb view",r),this._pagesRequests.delete(t)});return this._pagesRequests.set(t,a),a}forceRendering(){const t=this._getVisibleThumbs(),a=this.renderingQueue.getHighestPriority(t,this._thumbnails,this.scroll.down);return a?(this._ensurePdfPageLoaded(a).then(()=>{this.renderingQueue.renderView(a)}),!0):!1}}exports$i.PDFThumbnailViewer=PDFThumbnailViewer;const __CJS__export_default__$e=(module$i.exports==null?{}:module$i.exports).default||module$i.exports,__CJS__export_PDFThumbnailViewer__=(module$i.exports==null?{}:module$i.exports).PDFThumbnailViewer,__CJS__import__17__=Object.freeze(Object.defineProperty({__proto__:null,PDFThumbnailViewer:__CJS__export_PDFThumbnailViewer__,default:__CJS__export_default__$e},Symbol.toStringTag,{value:"Module"}));var module$h={exports:{}},exports$h=module$h.exports;Object.defineProperty(exports$h,"__esModule",{value:!0});exports$h.DefaultAnnotationLayerFactory=exports$h.AnnotationLayerBuilder=void 0;var _pdf$7=__CJS__export_default__$y||__CJS__import__0__$3,_ui_utils$7=__CJS__export_default__$V||__CJS__import__0__$5,_pdf_link_service$2=__CJS__export_default__$j||__CJS__import__13__;class AnnotationLayerBuilder{constructor({pageDiv:t,pdfPage:a,linkService:r,downloadManager:i,imageResourcesPath:p="",renderInteractiveForms:e=!1,l10n:N=_ui_utils$7.NullL10n}){this.pageDiv=t,this.pdfPage=a,this.linkService=r,this.downloadManager=i,this.imageResourcesPath=p,this.renderInteractiveForms=e,this.l10n=N,this.div=null,this._cancelled=!1}render(t,a="display"){this.pdfPage.getAnnotations({intent:a}).then(r=>{if(this._cancelled)return;const i={viewport:t.clone({dontFlip:!0}),div:this.div,annotations:r,page:this.pdfPage,imageResourcesPath:this.imageResourcesPath,renderInteractiveForms:this.renderInteractiveForms,linkService:this.linkService,downloadManager:this.downloadManager};if(this.div)_pdf$7.AnnotationLayer.update(i);else{if(r.length===0)return;this.div=document.createElement("div"),this.div.className="annotationLayer",this.pageDiv.appendChild(this.div),i.div=this.div,_pdf$7.AnnotationLayer.render(i),this.l10n.translate(this.div)}})}cancel(){this._cancelled=!0}hide(){this.div&&this.div.setAttribute("hidden","true")}}exports$h.AnnotationLayerBuilder=AnnotationLayerBuilder;class DefaultAnnotationLayerFactory{createAnnotationLayerBuilder(t,a,r="",i=!1,p=_ui_utils$7.NullL10n){return new AnnotationLayerBuilder({pageDiv:t,pdfPage:a,imageResourcesPath:r,renderInteractiveForms:i,linkService:new _pdf_link_service$2.SimpleLinkService,l10n:p})}}exports$h.DefaultAnnotationLayerFactory=DefaultAnnotationLayerFactory;const __CJS__export_default__$d=(module$h.exports==null?{}:module$h.exports).default||module$h.exports,__CJS__export_AnnotationLayerBuilder__=(module$h.exports==null?{}:module$h.exports).AnnotationLayerBuilder,__CJS__export_DefaultAnnotationLayerFactory__=(module$h.exports==null?{}:module$h.exports).DefaultAnnotationLayerFactory,__CJS__import__2__$2=Object.freeze(Object.defineProperty({__proto__:null,AnnotationLayerBuilder:__CJS__export_AnnotationLayerBuilder__,DefaultAnnotationLayerFactory:__CJS__export_DefaultAnnotationLayerFactory__,default:__CJS__export_default__$d},Symbol.toStringTag,{value:"Module"}));var module$g={exports:{}},exports$g=module$g.exports;Object.defineProperty(exports$g,"__esModule",{value:!0});exports$g.PDFPageView=void 0;var _ui_utils$6=__CJS__export_default__$V||__CJS__import__0__$5,_pdf$6=__CJS__export_default__$y||__CJS__import__0__$3,_pdf_rendering_queue$2=__CJS__export_default__$t||__CJS__import__4__$1,_viewer_compatibility=__CJS__export_default__$x||__CJS__import__3__$2;const MAX_CANVAS_PIXELS=_viewer_compatibility.viewerCompatibilityParams.maxCanvasPixels||16777216;class PDFPageView{constructor(t){const a=t.container,r=t.defaultViewport;this.id=t.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=t.scale||_ui_utils$6.DEFAULT_SCALE,this.viewport=r,this.pdfPageRotate=r.rotation,this.hasRestrictedScaling=!1,this.textLayerMode=Number.isInteger(t.textLayerMode)?t.textLayerMode:_ui_utils$6.TextLayerMode.ENABLE,this.imageResourcesPath=t.imageResourcesPath||"",this.renderInteractiveForms=t.renderInteractiveForms||!1,this.useOnlyCssZoom=t.useOnlyCssZoom||!1,this.maxCanvasPixels=t.maxCanvasPixels||MAX_CANVAS_PIXELS,this.eventBus=t.eventBus||(0,_ui_utils$6.getGlobalEventBus)(),this.renderingQueue=t.renderingQueue,this.textLayerFactory=t.textLayerFactory,this.annotationLayerFactory=t.annotationLayerFactory,this.renderer=t.renderer||_ui_utils$6.RendererType.CANVAS,this.enableWebGL=t.enableWebGL||!1,this.l10n=t.l10n||_ui_utils$6.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=_pdf_rendering_queue$2.RenderingStates.INITIAL,this.resume=null,this.error=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null;const i=document.createElement("div");i.className="page",i.style.width=Math.floor(this.viewport.width)+"px",i.style.height=Math.floor(this.viewport.height)+"px",i.setAttribute("data-page-number",this.id),this.div=i,a.appendChild(i)}setPdfPage(t){this.pdfPage=t,this.pdfPageRotate=t.rotate;const a=(this.rotation+this.pdfPageRotate)%360;this.viewport=t.getViewport({scale:this.scale*_ui_utils$6.CSS_UNITS,rotation:a}),this.stats=t.stats,this.reset()}destroy(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}_resetZoomLayer(t=!1){if(!this.zoomLayer)return;const a=this.zoomLayer.firstChild;this.paintedViewportMap.delete(a),a.width=0,a.height=0,t&&this.zoomLayer.remove(),this.zoomLayer=null}reset(t=!1,a=!1){this.cancelRendering(a),this.renderingState=_pdf_rendering_queue$2.RenderingStates.INITIAL;const r=this.div;r.style.width=Math.floor(this.viewport.width)+"px",r.style.height=Math.floor(this.viewport.height)+"px";const i=r.childNodes,p=t&&this.zoomLayer||null,e=a&&this.annotationLayer&&this.annotationLayer.div||null;for(let N=i.length-1;N>=0;N--){const w=i[N];p===w||e===w||r.removeChild(w)}r.removeAttribute("data-loaded"),e?this.annotationLayer.hide():this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),p||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon",r.appendChild(this.loadingIconDiv)}update(t,a){this.scale=t||this.scale,typeof a<"u"&&(this.rotation=a);const r=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*_ui_utils$6.CSS_UNITS,rotation:r}),this.svg){this.cssTransform(this.svg,!0),this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});return}let i=!1;if(this.canvas&&this.maxCanvasPixels>0){const p=this.outputScale;(Math.floor(this.viewport.width)*p.sx|0)*(Math.floor(this.viewport.height)*p.sy|0)>this.maxCanvasPixels&&(i=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&i){this.cssTransform(this.canvas,!0),this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});return}!this.zoomLayer&&!this.canvas.hasAttribute("hidden")&&(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform(this.zoomLayer.firstChild),this.reset(!0,!0)}cancelRendering(t=!1){this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!t&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null)}cssTransform(t,a=!1){const r=this.viewport.width,i=this.viewport.height,p=this.div;t.style.width=t.parentNode.style.width=p.style.width=Math.floor(r)+"px",t.style.height=t.parentNode.style.height=p.style.height=Math.floor(i)+"px";const e=this.viewport.rotation-this.paintedViewportMap.get(t).rotation,N=Math.abs(e);let w=1,$=1;(N===90||N===270)&&(w=i/r,$=r/i);const U="rotate("+e+"deg) scale("+w+","+$+")";if(t.style.transform=U,this.textLayer){const m=this.textLayer.viewport,n=this.viewport.rotation-m.rotation,J=Math.abs(n);let O=r/m.width;(J===90||J===270)&&(O=r/m.height);const L=this.textLayer.textLayerDiv;let M,P;switch(J){case 0:M=P=0;break;case 90:M=0,P="-"+L.style.height;break;case 180:M="-"+L.style.width,P="-"+L.style.height;break;case 270:M="-"+L.style.width,P=0;break;default:console.error("Bad rotation value.");break}L.style.transform="rotate("+J+"deg) scale("+O+", "+O+") translate("+M+", "+P+")",L.style.transformOrigin="0% 0%"}a&&this.annotationLayer&&this.annotationLayer.render(this.viewport,"display")}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(t,a){return this.viewport.convertToPdfPoint(t,a)}draw(){this.renderingState!==_pdf_rendering_queue$2.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:t,pdfPage:a}=this;if(!a)return this.renderingState=_pdf_rendering_queue$2.RenderingStates.FINISHED,this.loadingIconDiv&&(t.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=_pdf_rendering_queue$2.RenderingStates.RUNNING;const r=document.createElement("div");r.style.width=t.style.width,r.style.height=t.style.height,r.classList.add("canvasWrapper"),this.annotationLayer&&this.annotationLayer.div?t.insertBefore(r,this.annotationLayer.div):t.appendChild(r);let i=null;if(this.textLayerMode!==_ui_utils$6.TextLayerMode.DISABLE&&this.textLayerFactory){const $=document.createElement("div");$.className="textLayer",$.style.width=r.style.width,$.style.height=r.style.height,this.annotationLayer&&this.annotationLayer.div?t.insertBefore($,this.annotationLayer.div):t.appendChild($),i=this.textLayerFactory.createTextLayerBuilder($,this.id-1,this.viewport,this.textLayerMode===_ui_utils$6.TextLayerMode.ENABLE_ENHANCE,this.eventBus)}this.textLayer=i;let p=null;this.renderingQueue&&(p=$=>{if(!this.renderingQueue.isHighestPriority(this)){this.renderingState=_pdf_rendering_queue$2.RenderingStates.PAUSED,this.resume=()=>{this.renderingState=_pdf_rendering_queue$2.RenderingStates.RUNNING,$()};return}$()});const e=async $=>{if(N===this.paintTask&&(this.paintTask=null),$ instanceof _pdf$6.RenderingCancelledException){this.error=null;return}if(this.renderingState=_pdf_rendering_queue$2.RenderingStates.FINISHED,this.loadingIconDiv&&(t.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),this._resetZoomLayer(!0),this.error=$,this.stats=a.stats,this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!1,timestamp:performance.now()}),$)throw $},N=this.renderer===_ui_utils$6.RendererType.SVG?this.paintOnSvg(r):this.paintOnCanvas(r);N.onRenderContinue=p,this.paintTask=N;const w=N.promise.then(function(){return e(null).then(function(){if(i){const $=a.streamTextContent({normalizeWhitespace:!0});i.setTextContentStream($),i.render()}})},function($){return e($)});return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(t,a,this.imageResourcesPath,this.renderInteractiveForms,this.l10n)),this.annotationLayer.render(this.viewport,"display")),t.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),w}paintOnCanvas(t){const a=(0,_pdf$6.createPromiseCapability)(),r={promise:a.promise,onRenderContinue(L){L()},cancel(){O.cancel()}},i=this.viewport,p=document.createElement("canvas");this.l10n.get("page_canvas",{page:this.id},"Page {{page}}").then(L=>{p.setAttribute("aria-label",L)}),p.setAttribute("hidden","hidden");let e=!0;const N=function(){e&&(p.removeAttribute("hidden"),e=!1)};t.appendChild(p),this.canvas=p,p.mozOpaque=!0;const w=p.getContext("2d",{alpha:!1}),$=(0,_ui_utils$6.getOutputScale)(w);if(this.outputScale=$,this.useOnlyCssZoom){const L=i.clone({scale:_ui_utils$6.CSS_UNITS});$.sx*=L.width/i.width,$.sy*=L.height/i.height,$.scaled=!0}if(this.maxCanvasPixels>0){const L=i.width*i.height,M=Math.sqrt(this.maxCanvasPixels/L);$.sx>M||$.sy>M?($.sx=M,$.sy=M,$.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}const U=(0,_ui_utils$6.approximateFraction)($.sx),m=(0,_ui_utils$6.approximateFraction)($.sy);p.width=(0,_ui_utils$6.roundToDivide)(i.width*$.sx,U[0]),p.height=(0,_ui_utils$6.roundToDivide)(i.height*$.sy,m[0]),p.style.width=(0,_ui_utils$6.roundToDivide)(i.width,U[1])+"px",p.style.height=(0,_ui_utils$6.roundToDivide)(i.height,m[1])+"px",this.paintedViewportMap.set(p,i);const n=$.scaled?[$.sx,0,0,$.sy,0,0]:null,J={canvasContext:w,transform:n,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms},O=this.pdfPage.render(J);return O.onContinue=function(L){N(),r.onRenderContinue?r.onRenderContinue(L):L()},O.promise.then(function(){N(),a.resolve(void 0)},function(L){N(),a.reject(L)}),r}paintOnSvg(t){let a=!1;const r=()=>{if(a)throw new _pdf$6.RenderingCancelledException(`Rendering cancelled, page ${this.id}`,"svg")},i=this.pdfPage,p=this.viewport.clone({scale:_ui_utils$6.CSS_UNITS});return{promise:i.getOperatorList().then(N=>(r(),new _pdf$6.SVGGraphics(i.commonObjs,i.objs).getSVG(N,p).then($=>{r(),this.svg=$,this.paintedViewportMap.set($,p),$.style.width=t.style.width,$.style.height=t.style.height,this.renderingState=_pdf_rendering_queue$2.RenderingStates.FINISHED,t.appendChild($)}))),onRenderContinue(N){N()},cancel(){a=!0}}}setPageLabel(t){this.pageLabel=typeof t=="string"?t:null,this.pageLabel!==null?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}}exports$g.PDFPageView=PDFPageView;const __CJS__export_default__$c=(module$g.exports==null?{}:module$g.exports).default||module$g.exports,__CJS__export_PDFPageView__=(module$g.exports==null?{}:module$g.exports).PDFPageView,__CJS__import__4__=Object.freeze(Object.defineProperty({__proto__:null,PDFPageView:__CJS__export_PDFPageView__,default:__CJS__export_default__$c},Symbol.toStringTag,{value:"Module"}));var module$f={exports:{}},exports$f=module$f.exports;Object.defineProperty(exports$f,"__esModule",{value:!0});exports$f.DefaultTextLayerFactory=exports$f.TextLayerBuilder=void 0;var _ui_utils$5=__CJS__export_default__$V||__CJS__import__0__$5,_pdf$5=__CJS__export_default__$y||__CJS__import__0__$3;const EXPAND_DIVS_TIMEOUT=300;class TextLayerBuilder{constructor({textLayerDiv:t,eventBus:a,pageIndex:r,viewport:i,findController:p=null,enhanceTextSelection:e=!1}){this.textLayerDiv=t,this.eventBus=a||(0,_ui_utils$5.getGlobalEventBus)(),this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageIdx=r,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=i,this.textDivs=[],this.findController=p,this.textLayerRenderTask=null,this.enhanceTextSelection=e,this._onUpdateTextLayerMatches=null,this._bindMouse()}_finishRendering(){if(this.renderingDone=!0,!this.enhanceTextSelection){const t=document.createElement("div");t.className="endOfContent",this.textLayerDiv.appendChild(t)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}render(t=0){if(!(this.textContent||this.textContentStream)||this.renderingDone)return;this.cancel(),this.textDivs=[];const a=document.createDocumentFragment();this.textLayerRenderTask=(0,_pdf$5.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:a,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:t,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(()=>{this.textLayerDiv.appendChild(a),this._finishRendering(),this._updateMatches()},function(r){}),this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=r=>{(r.pageIndex===this.pageIdx||r.pageIndex===-1)&&this._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches))}cancel(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null)}setTextContentStream(t){this.cancel(),this.textContentStream=t}setTextContent(t){this.cancel(),this.textContent=t}_convertMatches(t,a){if(!t)return[];const{findController:r,textContentItemsStr:i}=this;let p=0,e=0;const N=i.length-1,w=r.state.query.length,$=[];for(let U=0,m=t.length;U<m;U++){let n=t[U];for(;p!==N&&n>=e+i[p].length;)e+=i[p].length,p++;p===i.length&&console.error("Could not find a matching mapping");const J={begin:{divIdx:p,offset:n-e}};for(a?n+=a[U]:n+=w;p!==N&&n>e+i[p].length;)e+=i[p].length,p++;J.end={divIdx:p,offset:n-e},$.push(J)}return $}_renderMatches(t){if(t.length===0)return;const{findController:a,pageIdx:r,textContentItemsStr:i,textDivs:p}=this,e=r===a.selected.pageIdx,N=a.selected.matchIdx,w=a.state.highlightAll;let $=null;const U={offset:void 0};function m(L,M){const P=L.divIdx;p[P].textContent="",n(P,0,L.offset,M)}function n(L,M,P,b){const _=p[L],d=i[L].substring(M,P),c=document.createTextNode(d);if(b){const h=document.createElement("span");h.className=b,h.appendChild(c),_.appendChild(h);return}_.appendChild(c)}let J=N,O=J+1;if(w)J=0,O=t.length;else if(!e)return;for(let L=J;L<O;L++){const M=t[L],P=M.begin,b=M.end,_=e&&L===N,d=_?" selected":"";if(_&&a.scrollMatchIntoView({element:p[P.divIdx],pageIndex:r,matchIndex:N}),!$||P.divIdx!==$.divIdx?($!==null&&n($.divIdx,$.offset,U.offset),m(P)):n($.divIdx,$.offset,P.offset),P.divIdx===b.divIdx)n(P.divIdx,P.offset,b.offset,"highlight"+d);else{n(P.divIdx,P.offset,U.offset,"highlight begin"+d);for(let c=P.divIdx+1,h=b.divIdx;c<h;c++)p[c].className="highlight middle"+d;m(b,"highlight end"+d)}$=b}$&&n($.divIdx,$.offset,U.offset)}_updateMatches(){if(!this.renderingDone)return;const{findController:t,matches:a,pageIdx:r,textContentItemsStr:i,textDivs:p}=this;let e=-1;for(let $=0,U=a.length;$<U;$++){const m=a[$],n=Math.max(e,m.begin.divIdx);for(let J=n,O=m.end.divIdx;J<=O;J++){const L=p[J];L.textContent=i[J],L.className=""}e=m.end.divIdx+1}if(!t||!t.highlightMatches)return;const N=t.pageMatches[r]||null,w=t.pageMatchesLength[r]||null;this.matches=this._convertMatches(N,w),this._renderMatches(this.matches)}_bindMouse(){const t=this.textLayerDiv;let a=null;t.addEventListener("mousedown",r=>{if(this.enhanceTextSelection&&this.textLayerRenderTask){this.textLayerRenderTask.expandTextDivs(!0),a&&(clearTimeout(a),a=null);return}const i=t.querySelector(".endOfContent");if(!i)return;let p=r.target!==t;if(p=p&&window.getComputedStyle(i).getPropertyValue("-moz-user-select")!=="none",p){const e=t.getBoundingClientRect(),N=Math.max(0,(r.pageY-e.top)/e.height);i.style.top=(N*100).toFixed(2)+"%"}i.classList.add("active")}),t.addEventListener("mouseup",()=>{if(this.enhanceTextSelection&&this.textLayerRenderTask){a=setTimeout(()=>{this.textLayerRenderTask&&this.textLayerRenderTask.expandTextDivs(!1),a=null},EXPAND_DIVS_TIMEOUT);return}const r=t.querySelector(".endOfContent");r&&(r.style.top="",r.classList.remove("active"))})}}exports$f.TextLayerBuilder=TextLayerBuilder;class DefaultTextLayerFactory{createTextLayerBuilder(t,a,r,i=!1,p){return new TextLayerBuilder({textLayerDiv:t,pageIndex:a,viewport:r,enhanceTextSelection:i,eventBus:p})}}exports$f.DefaultTextLayerFactory=DefaultTextLayerFactory;const __CJS__export_default__$b=(module$f.exports==null?{}:module$f.exports).default||module$f.exports,__CJS__export_TextLayerBuilder__=(module$f.exports==null?{}:module$f.exports).TextLayerBuilder,__CJS__export_DefaultTextLayerFactory__=(module$f.exports==null?{}:module$f.exports).DefaultTextLayerFactory,__CJS__import__6__=Object.freeze(Object.defineProperty({__proto__:null,DefaultTextLayerFactory:__CJS__export_DefaultTextLayerFactory__,TextLayerBuilder:__CJS__export_TextLayerBuilder__,default:__CJS__export_default__$b},Symbol.toStringTag,{value:"Module"}));var module$e={exports:{}},exports$e=module$e.exports;Object.defineProperty(exports$e,"__esModule",{value:!0});exports$e.BaseViewer=void 0;var _ui_utils$4=__CJS__export_default__$V||__CJS__import__0__$5,_pdf_rendering_queue$1=__CJS__export_default__$t||__CJS__import__4__$1,_annotation_layer_builder=__CJS__export_default__$d||__CJS__import__2__$2,_pdf$4=__CJS__export_default__$y||__CJS__import__0__$3,_pdf_page_view=__CJS__export_default__$c||__CJS__import__4__,_pdf_link_service$1=__CJS__export_default__$j||__CJS__import__13__,_text_layer_builder=__CJS__export_default__$b||__CJS__import__6__;const DEFAULT_CACHE_SIZE=10;function PDFPageViewBuffer(x){const t=[];this.push=function(a){const r=t.indexOf(a);r>=0&&t.splice(r,1),t.push(a),t.length>x&&t.shift().destroy()},this.resize=function(a,r){if(x=a,r){const i=new Set;for(let p=0,e=r.length;p<e;++p)i.add(r[p].id);(0,_ui_utils$4.moveToEndOfArray)(t,function(p){return i.has(p.id)})}for(;t.length>x;)t.shift().destroy()}}function isSameScale(x,t){return t===x||Math.abs(t-x)<1e-15}class BaseViewer{constructor(t){if(this.constructor===BaseViewer)throw new Error("Cannot initialize BaseViewer.");this._name=this.constructor.name,this.container=t.container,this.viewer=t.viewer||t.container.firstElementChild,this.eventBus=t.eventBus||(0,_ui_utils$4.getGlobalEventBus)(),this.linkService=t.linkService||new _pdf_link_service$1.SimpleLinkService,this.downloadManager=t.downloadManager||null,this.findController=t.findController||null,this.removePageBorders=t.removePageBorders||!1,this.textLayerMode=Number.isInteger(t.textLayerMode)?t.textLayerMode:_ui_utils$4.TextLayerMode.ENABLE,this.imageResourcesPath=t.imageResourcesPath||"",this.renderInteractiveForms=t.renderInteractiveForms||!1,this.enablePrintAutoRotate=t.enablePrintAutoRotate||!1,this.renderer=t.renderer||_ui_utils$4.RendererType.CANVAS,this.enableWebGL=t.enableWebGL||!1,this.useOnlyCssZoom=t.useOnlyCssZoom||!1,this.maxCanvasPixels=t.maxCanvasPixels,this.l10n=t.l10n||_ui_utils$4.NullL10n,this.defaultRenderingQueue=!t.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new _pdf_rendering_queue$1.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=t.renderingQueue,this.scroll=(0,_ui_utils$4.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=_ui_utils$4.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then(()=>{this.eventBus.dispatch("baseviewerinit",{source:this})})}get pagesCount(){return this._pages.length}getPageView(t){return this._pages[t]}get pageViewsReady(){return this._pagesCapability.settled?this._pages.every(function(t){return t&&t.pdfPage}):!1}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(t){if(!Number.isInteger(t))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(t,!0)||console.error(`${this._name}.currentPageNumber: "${t}" is not a valid page.`))}_setCurrentPageNumber(t,a=!1){return this._currentPageNumber===t?(a&&this._resetCurrentPageView(),!0):0<t&&t<=this.pagesCount?(this._currentPageNumber=t,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:t,pageLabel:this._pageLabels&&this._pageLabels[t-1]}),a&&this._resetCurrentPageView(),!0):!1}get currentPageLabel(){return this._pageLabels&&this._pageLabels[this._currentPageNumber-1]}set currentPageLabel(t){if(!this.pdfDocument)return;let a=t|0;if(this._pageLabels){const r=this._pageLabels.indexOf(t);r>=0&&(a=r+1)}this._setCurrentPageNumber(a,!0)||console.error(`${this._name}.currentPageLabel: "${t}" is not a valid page.`)}get currentScale(){return this._currentScale!==_ui_utils$4.UNKNOWN_SCALE?this._currentScale:_ui_utils$4.DEFAULT_SCALE}set currentScale(t){if(isNaN(t))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(t,!1)}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(t){this.pdfDocument&&this._setScale(t,!1)}get pagesRotation(){return this._pagesRotation}set pagesRotation(t){if(!(0,_ui_utils$4.isValidRotation)(t))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument||this._pagesRotation===t)return;this._pagesRotation=t;const a=this._currentPageNumber;for(let r=0,i=this._pages.length;r<i;r++){const p=this._pages[r];p.update(p.scale,t)}this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:t,pageNumber:a}),this.defaultRenderingQueue&&this.update()}get firstPagePromise(){return this.pdfDocument?this._firstPageCapability.promise:null}get onePageRendered(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}get pagesPromise(){return this.pdfDocument?this._pagesCapability.promise:null}get _setDocumentViewerElement(){throw new Error("Not implemented: _setDocumentViewerElement")}setDocument(t){if(this.pdfDocument&&(this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null)),this.pdfDocument=t,!t)return;const a=t.numPages,r=t.getPage(1);this._pagesCapability.promise.then(()=>{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:a})}),this._onBeforeDraw=i=>{const p=this._pages[i.pageNumber-1];p&&this._buffer.push(p)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=i=>{i.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve(),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null)},this.eventBus._on("pagerendered",this._onAfterDraw),r.then(i=>{this._firstPageCapability.resolve(i);const p=this.currentScale,e=i.getViewport({scale:p*_ui_utils$4.CSS_UNITS}),N=this.textLayerMode!==_ui_utils$4.TextLayerMode.DISABLE?this:null;for(let $=1;$<=a;++$){const U=new _pdf_page_view.PDFPageView({container:this._setDocumentViewerElement,eventBus:this.eventBus,id:$,scale:p,defaultViewport:e.clone(),renderingQueue:this.renderingQueue,textLayerFactory:N,textLayerMode:this.textLayerMode,annotationLayerFactory:this,imageResourcesPath:this.imageResourcesPath,renderInteractiveForms:this.renderInteractiveForms,renderer:this.renderer,enableWebGL:this.enableWebGL,useOnlyCssZoom:this.useOnlyCssZoom,maxCanvasPixels:this.maxCanvasPixels,l10n:this.l10n});this._pages.push(U)}const w=this._pages[0];w&&(w.setPdfPage(i),this.linkService.cachePageRef(1,i.ref)),this._spreadMode!==_ui_utils$4.SpreadMode.NONE&&this._updateSpreadMode(),this._onePageRenderedCapability.promise.then(()=>{if(this.findController&&this.findController.setDocument(t),t.loadingParams.disableAutoFetch||a>7500){this._pagesCapability.resolve();return}let $=a-1;if($<=0){this._pagesCapability.resolve();return}for(let U=2;U<=a;++U)t.getPage(U).then(m=>{const n=this._pages[U-1];n.pdfPage||n.setPdfPage(m),this.linkService.cachePageRef(U,m.ref),--$===0&&this._pagesCapability.resolve()},m=>{console.error(`Unable to get page ${U} to initialize viewer`,m),--$===0&&this._pagesCapability.resolve()})}),this.eventBus.dispatch("pagesinit",{source:this}),this.defaultRenderingQueue&&this.update()}).catch(i=>{console.error("Unable to initialize viewer",i)})}setPageLabels(t){if(this.pdfDocument){t?Array.isArray(t)&&this.pdfDocument.numPages===t.length?this._pageLabels=t:(this._pageLabels=null,console.error(`${this._name}.setPageLabels: Invalid page labels.`)):this._pageLabels=null;for(let a=0,r=this._pages.length;a<r;a++){const i=this._pages[a],p=this._pageLabels&&this._pageLabels[a];i.setPageLabel(p)}}}_resetView(){this._pages=[],this._currentPageNumber=1,this._currentScale=_ui_utils$4.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this._buffer=new PDFPageViewBuffer(DEFAULT_CACHE_SIZE),this._location=null,this._pagesRotation=0,this._pagesRequests=new WeakMap,this._firstPageCapability=(0,_pdf$4.createPromiseCapability)(),this._onePageRenderedCapability=(0,_pdf$4.createPromiseCapability)(),this._pagesCapability=(0,_pdf$4.createPromiseCapability)(),this._scrollMode=_ui_utils$4.ScrollMode.VERTICAL,this._spreadMode=_ui_utils$4.SpreadMode.NONE,this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),this.viewer.textContent="",this._updateScrollMode()}_scrollUpdate(){this.pagesCount!==0&&this.update()}_scrollIntoView({pageDiv:t,pageSpot:a=null,pageNumber:r=null}){(0,_ui_utils$4.scrollIntoView)(t,a)}_setScaleUpdatePages(t,a,r=!1,i=!1){if(this._currentScaleValue=a.toString(),isSameScale(this._currentScale,t)){i&&this.eventBus.dispatch("scalechanging",{source:this,scale:t,presetValue:a});return}for(let p=0,e=this._pages.length;p<e;p++)this._pages[p].update(t);if(this._currentScale=t,!r){let p=this._currentPageNumber,e;this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)&&(p=this._location.pageNumber,e=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:p,destArray:e,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:t,presetValue:i?a:void 0}),this.defaultRenderingQueue&&this.update()}_setScale(t,a=!1){let r=parseFloat(t);if(r>0)this._setScaleUpdatePages(r,t,a,!1);else{const i=this._pages[this._currentPageNumber-1];if(!i)return;const p=this.isInPresentationMode||this.removePageBorders;let e=p?0:_ui_utils$4.SCROLLBAR_PADDING,N=p?0:_ui_utils$4.VERTICAL_PADDING;!p&&this._isScrollModeHorizontal&&([e,N]=[N,e]);const w=(this.container.clientWidth-e)/i.width*i.scale,$=(this.container.clientHeight-N)/i.height*i.scale;switch(t){case"page-actual":r=1;break;case"page-width":r=w;break;case"page-height":r=$;break;case"page-fit":r=Math.min(w,$);break;case"auto":const U=(0,_ui_utils$4.isPortraitOrientation)(i)?w:Math.min($,w);r=Math.min(_ui_utils$4.MAX_AUTO_SCALE,U);break;default:console.error(`${this._name}._setScale: "${t}" is an unknown zoom value.`);return}this._setScaleUpdatePages(r,t,a,!0)}}_resetCurrentPageView(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0);const t=this._pages[this._currentPageNumber-1];this._scrollIntoView({pageDiv:t.div})}scrollPageIntoView({pageNumber:t,destArray:a=null,allowNegativeOffset:r=!1,ignoreDestinationZoom:i=!1}){if(!this.pdfDocument)return;const p=Number.isInteger(t)&&this._pages[t-1];if(!p){console.error(`${this._name}.scrollPageIntoView: "${t}" is not a valid pageNumber parameter.`);return}if(this.isInPresentationMode||!a){this._setCurrentPageNumber(t,!0);return}let e=0,N=0,w=0,$=0,U,m;const n=p.rotation%180!==0,J=(n?p.height:p.width)/p.scale/_ui_utils$4.CSS_UNITS,O=(n?p.width:p.height)/p.scale/_ui_utils$4.CSS_UNITS;let L=0;switch(a[1].name){case"XYZ":e=a[2],N=a[3],L=a[4],e=e!==null?e:0,N=N!==null?N:O;break;case"Fit":case"FitB":L="page-fit";break;case"FitH":case"FitBH":N=a[2],L="page-width",N===null&&this._location&&(e=this._location.left,N=this._location.top);break;case"FitV":case"FitBV":e=a[2],w=J,$=O,L="page-height";break;case"FitR":e=a[2],N=a[3],w=a[4]-e,$=a[5]-N;const _=this.removePageBorders?0:_ui_utils$4.SCROLLBAR_PADDING,d=this.removePageBorders?0:_ui_utils$4.VERTICAL_PADDING;U=(this.container.clientWidth-_)/w/_ui_utils$4.CSS_UNITS,m=(this.container.clientHeight-d)/$/_ui_utils$4.CSS_UNITS,L=Math.min(Math.abs(U),Math.abs(m));break;default:console.error(`${this._name}.scrollPageIntoView: "${a[1].name}" is not a valid destination type.`);return}if(i||(L&&L!==this._currentScale?this.currentScaleValue=L:this._currentScale===_ui_utils$4.UNKNOWN_SCALE&&(this.currentScaleValue=_ui_utils$4.DEFAULT_SCALE_VALUE)),L==="page-fit"&&!a[4]){this._scrollIntoView({pageDiv:p.div,pageNumber:t});return}const M=[p.viewport.convertToViewportPoint(e,N),p.viewport.convertToViewportPoint(e+w,N+$)];let P=Math.min(M[0][0],M[1][0]),b=Math.min(M[0][1],M[1][1]);r||(P=Math.max(P,0),b=Math.max(b,0)),this._scrollIntoView({pageDiv:p.div,pageSpot:{left:P,top:b},pageNumber:t})}_updateLocation(t){const a=this._currentScale,r=this._currentScaleValue,i=parseFloat(r)===a?Math.round(a*1e4)/100:r,p=t.id;let e="#page="+p;e+="&zoom="+i;const N=this._pages[p-1],w=this.container,$=N.getPagePoint(w.scrollLeft-t.x,w.scrollTop-t.y),U=Math.round($[0]),m=Math.round($[1]);e+=","+U+","+m,this._location={pageNumber:p,scale:i,top:m,left:U,rotation:this._pagesRotation,pdfOpenParams:e}}_updateHelper(t){throw new Error("Not implemented: _updateHelper")}update(){const t=this._getVisiblePages(),a=t.views,r=a.length;if(r===0)return;const i=Math.max(DEFAULT_CACHE_SIZE,2*r+1);this._buffer.resize(i,a),this.renderingQueue.renderHighestPriority(t),this._updateHelper(a),this._updateLocation(t.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}containsElement(t){return this.container.contains(t)}focus(){this.container.focus()}get _isScrollModeHorizontal(){return this.isInPresentationMode?!1:this._scrollMode===_ui_utils$4.ScrollMode.HORIZONTAL}get isInPresentationMode(){return this.presentationModeState===_ui_utils$4.PresentationModeState.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===_ui_utils$4.PresentationModeState.CHANGING}get isHorizontalScrollbarEnabled(){return this.isInPresentationMode?!1:this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return this.isInPresentationMode?!1:this.container.scrollHeight>this.container.clientHeight}_getCurrentVisiblePage(){if(!this.pagesCount)return{views:[]};const t=this._pages[this._currentPageNumber-1],a=t.div,r={id:t.id,x:a.offsetLeft+a.clientLeft,y:a.offsetTop+a.clientTop,view:t};return{first:r,last:r,views:[r]}}_getVisiblePages(){return(0,_ui_utils$4.getVisibleElements)(this.container,this._pages,!0,this._isScrollModeHorizontal)}isPageVisible(t){return this.pdfDocument?t<1||t>this.pagesCount?(console.error(`${this._name}.isPageVisible: "${t}" is out of bounds.`),!1):this._getVisiblePages().views.some(function(a){return a.id===t}):!1}cleanup(){for(let t=0,a=this._pages.length;t<a;t++)this._pages[t]&&this._pages[t].renderingState!==_pdf_rendering_queue$1.RenderingStates.FINISHED&&this._pages[t].reset()}_cancelRendering(){for(let t=0,a=this._pages.length;t<a;t++)this._pages[t]&&this._pages[t].cancelRendering()}_ensurePdfPageLoaded(t){if(t.pdfPage)return Promise.resolve(t.pdfPage);if(this._pagesRequests.has(t))return this._pagesRequests.get(t);const a=this.pdfDocument.getPage(t.id).then(r=>(t.pdfPage||t.setPdfPage(r),this._pagesRequests.delete(t),r)).catch(r=>{console.error("Unable to get page for page view",r),this._pagesRequests.delete(t)});return this._pagesRequests.set(t,a),a}forceRendering(t){const a=t||this._getVisiblePages(),r=this._isScrollModeHorizontal?this.scroll.right:this.scroll.down,i=this.renderingQueue.getHighestPriority(a,this._pages,r);return i?(this._ensurePdfPageLoaded(i).then(()=>{this.renderingQueue.renderView(i)}),!0):!1}createTextLayerBuilder(t,a,r,i=!1,p){return new _text_layer_builder.TextLayerBuilder({textLayerDiv:t,eventBus:p,pageIndex:a,viewport:r,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:this.isInPresentationMode?!1:i})}createAnnotationLayerBuilder(t,a,r="",i=!1,p=_ui_utils$4.NullL10n){return new _annotation_layer_builder.AnnotationLayerBuilder({pageDiv:t,pdfPage:a,imageResourcesPath:r,renderInteractiveForms:i,linkService:this.linkService,downloadManager:this.downloadManager,l10n:p})}get hasEqualPageSizes(){const t=this._pages[0];for(let a=1,r=this._pages.length;a<r;++a){const i=this._pages[a];if(i.width!==t.width||i.height!==t.height)return!1}return!0}getPagesOverview(){const t=this._pages.map(function(r){const i=r.pdfPage.getViewport({scale:1});return{width:i.width,height:i.height,rotation:i.rotation}});if(!this.enablePrintAutoRotate)return t;const a=(0,_ui_utils$4.isPortraitOrientation)(t[0]);return t.map(function(r){return a===(0,_ui_utils$4.isPortraitOrientation)(r)?r:{width:r.height,height:r.width,rotation:(r.rotation+90)%360}})}get scrollMode(){return this._scrollMode}set scrollMode(t){if(this._scrollMode!==t){if(!(0,_ui_utils$4.isValidScrollMode)(t))throw new Error(`Invalid scroll mode: ${t}`);this._scrollMode=t,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:t}),this._updateScrollMode(this._currentPageNumber)}}_updateScrollMode(t=null){const a=this._scrollMode,r=this.viewer;r.classList.toggle("scrollHorizontal",a===_ui_utils$4.ScrollMode.HORIZONTAL),r.classList.toggle("scrollWrapped",a===_ui_utils$4.ScrollMode.WRAPPED),!(!this.pdfDocument||!t)&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(t,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(t){if(this._spreadMode!==t){if(!(0,_ui_utils$4.isValidSpreadMode)(t))throw new Error(`Invalid spread mode: ${t}`);this._spreadMode=t,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:t}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(t=null){if(!this.pdfDocument)return;const a=this.viewer,r=this._pages;if(a.textContent="",this._spreadMode===_ui_utils$4.SpreadMode.NONE)for(let i=0,p=r.length;i<p;++i)a.appendChild(r[i].div);else{const i=this._spreadMode-1;let p=null;for(let e=0,N=r.length;e<N;++e)p===null?(p=document.createElement("div"),p.className="spread",a.appendChild(p)):e%2===i&&(p=p.cloneNode(!1),a.appendChild(p)),p.appendChild(r[e].div)}t&&(this._setCurrentPageNumber(t,!0),this.update())}}exports$e.BaseViewer=BaseViewer;const __CJS__export_default__$a=(module$e.exports==null?{}:module$e.exports).default||module$e.exports,__CJS__export_BaseViewer__=(module$e.exports==null?{}:module$e.exports).BaseViewer,__CJS__import__0__$1=Object.freeze(Object.defineProperty({__proto__:null,BaseViewer:__CJS__export_BaseViewer__,default:__CJS__export_default__$a},Symbol.toStringTag,{value:"Module"}));var module$d={exports:{}},exports$d=module$d.exports;Object.defineProperty(exports$d,"__esModule",{value:!0});exports$d.PDFViewer=void 0;var _base_viewer$1=__CJS__export_default__$a||__CJS__import__0__$1,_pdf$3=__CJS__export_default__$y||__CJS__import__0__$3;class PDFViewer extends _base_viewer$1.BaseViewer{get _setDocumentViewerElement(){return(0,_pdf$3.shadow)(this,"_setDocumentViewerElement",this.viewer)}_scrollIntoView({pageDiv:t,pageSpot:a=null,pageNumber:r=null}){if(!a&&!this.isInPresentationMode){const i=t.offsetLeft+t.clientLeft,p=i+t.clientWidth,{scrollLeft:e,clientWidth:N}=this.container;(this._isScrollModeHorizontal||i<e||p>e+N)&&(a={left:0,top:0})}super._scrollIntoView({pageDiv:t,pageSpot:a,pageNumber:r})}_getVisiblePages(){return this.isInPresentationMode?this._getCurrentVisiblePage():super._getVisiblePages()}_updateHelper(t){if(this.isInPresentationMode)return;let a=this._currentPageNumber,r=!1;for(const i of t){if(i.percent<100)break;if(i.id===a){r=!0;break}}r||(a=t[0].id),this._setCurrentPageNumber(a)}}exports$d.PDFViewer=PDFViewer;const __CJS__export_default__$9=(module$d.exports==null?{}:module$d.exports).default||module$d.exports,__CJS__export_PDFViewer__=(module$d.exports==null?{}:module$d.exports).PDFViewer,__CJS__import__18__=Object.freeze(Object.defineProperty({__proto__:null,PDFViewer:__CJS__export_PDFViewer__,default:__CJS__export_default__$9},Symbol.toStringTag,{value:"Module"}));var module$c={exports:{}},exports$c=module$c.exports;Object.defineProperty(exports$c,"__esModule",{value:!0});exports$c.PDFSinglePageViewer=void 0;var _base_viewer=__CJS__export_default__$a||__CJS__import__0__$1,_pdf$2=__CJS__export_default__$y||__CJS__import__0__$3;class PDFSinglePageViewer extends _base_viewer.BaseViewer{constructor(t){super(t),this.eventBus._on("pagesinit",a=>{this._ensurePageViewVisible()})}get _setDocumentViewerElement(){return(0,_pdf$2.shadow)(this,"_setDocumentViewerElement",this._shadowViewer)}_resetView(){super._resetView(),this._previousPageNumber=1,this._shadowViewer=document.createDocumentFragment(),this._updateScrollDown=null}_ensurePageViewVisible(){const t=this._pages[this._currentPageNumber-1],a=this._pages[this._previousPageNumber-1],r=this.viewer.childNodes;switch(r.length){case 0:this.viewer.appendChild(t.div);break;case 1:if(r[0]!==a.div)throw new Error("_ensurePageViewVisible: Unexpected previously visible page.");if(t===a)break;this._shadowViewer.appendChild(a.div),this.viewer.appendChild(t.div),this.container.scrollTop=0;break;default:throw new Error("_ensurePageViewVisible: Only one page should be visible at a time.")}this._previousPageNumber=this._currentPageNumber}_scrollUpdate(){this._updateScrollDown&&this._updateScrollDown(),super._scrollUpdate()}_scrollIntoView({pageDiv:t,pageSpot:a=null,pageNumber:r=null}){r&&this._setCurrentPageNumber(r);const i=this._currentPageNumber>=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),super._scrollIntoView({pageDiv:t,pageSpot:a,pageNumber:r}),this._updateScrollDown=()=>{this.scroll.down=i,this._updateScrollDown=null}}_getVisiblePages(){return this._getCurrentVisiblePage()}_updateHelper(t){}get _isScrollModeHorizontal(){return(0,_pdf$2.shadow)(this,"_isScrollModeHorizontal",!1)}_updateScrollMode(){}_updateSpreadMode(){}}exports$c.PDFSinglePageViewer=PDFSinglePageViewer;const __CJS__export_default__$8=(module$c.exports==null?{}:module$c.exports).default||module$c.exports,__CJS__export_PDFSinglePageViewer__=(module$c.exports==null?{}:module$c.exports).PDFSinglePageViewer,__CJS__import__2__$1=Object.freeze(Object.defineProperty({__proto__:null,PDFSinglePageViewer:__CJS__export_PDFSinglePageViewer__,default:__CJS__export_default__$8},Symbol.toStringTag,{value:"Module"}));var module$b={exports:{}},exports$b=module$b.exports;Object.defineProperty(exports$b,"__esModule",{value:!0});exports$b.SecondaryToolbar=void 0;var _ui_utils$3=__CJS__export_default__$V||__CJS__import__0__$5,_pdf_cursor_tools$1=__CJS__export_default__$u||__CJS__import__3__$1,_pdf_single_page_viewer=__CJS__export_default__$8||__CJS__import__2__$1;class SecondaryToolbar{constructor(t,a,r){this.toolbar=t.toolbar,this.toggleButton=t.toggleButton,this.toolbarButtonContainer=t.toolbarButtonContainer,this.buttons=[{element:t.presentationModeButton,eventName:"presentationmode",close:!0},{element:t.openFileButton,eventName:"openfile",close:!0},{element:t.printButton,eventName:"print",close:!0},{element:t.downloadButton,eventName:"download",close:!0},{element:t.viewBookmarkButton,eventName:null,close:!0},{element:t.firstPageButton,eventName:"firstpage",close:!0},{element:t.lastPageButton,eventName:"lastpage",close:!0},{element:t.pageRotateCwButton,eventName:"rotatecw",close:!1},{element:t.pageRotateCcwButton,eventName:"rotateccw",close:!1},{element:t.cursorSelectToolButton,eventName:"switchcursortool",eventDetails:{tool:_pdf_cursor_tools$1.CursorTool.SELECT},close:!0},{element:t.cursorHandToolButton,eventName:"switchcursortool",eventDetails:{tool:_pdf_cursor_tools$1.CursorTool.HAND},close:!0},{element:t.scrollVerticalButton,eventName:"switchscrollmode",eventDetails:{mode:_ui_utils$3.ScrollMode.VERTICAL},close:!0},{element:t.scrollHorizontalButton,eventName:"switchscrollmode",eventDetails:{mode:_ui_utils$3.ScrollMode.HORIZONTAL},close:!0},{element:t.scrollWrappedButton,eventName:"switchscrollmode",eventDetails:{mode:_ui_utils$3.ScrollMode.WRAPPED},close:!0},{element:t.spreadNoneButton,eventName:"switchspreadmode",eventDetails:{mode:_ui_utils$3.SpreadMode.NONE},close:!0},{element:t.spreadOddButton,eventName:"switchspreadmode",eventDetails:{mode:_ui_utils$3.SpreadMode.ODD},close:!0},{element:t.spreadEvenButton,eventName:"switchspreadmode",eventDetails:{mode:_ui_utils$3.SpreadMode.EVEN},close:!0},{element:t.documentPropertiesButton,eventName:"documentproperties",close:!0}],this.items={firstPage:t.firstPageButton,lastPage:t.lastPageButton,pageRotateCw:t.pageRotateCwButton,pageRotateCcw:t.pageRotateCcwButton},this.mainContainer=a,this.eventBus=r,this.opened=!1,this.containerHeight=null,this.previousContainerHeight=null,this.reset(),this._bindClickListeners(),this._bindCursorToolsListener(t),this._bindScrollModeListener(t),this._bindSpreadModeListener(t),this.eventBus._on("resize",this._setMaxHeight.bind(this)),this.eventBus._on("baseviewerinit",i=>{i.source instanceof _pdf_single_page_viewer.PDFSinglePageViewer?this.toolbarButtonContainer.classList.add("hiddenScrollModeButtons","hiddenSpreadModeButtons"):this.toolbarButtonContainer.classList.remove("hiddenScrollModeButtons","hiddenSpreadModeButtons")})}get isOpen(){return this.opened}setPageNumber(t){this.pageNumber=t,this._updateUIState()}setPagesCount(t){this.pagesCount=t,this._updateUIState()}reset(){this.pageNumber=0,this.pagesCount=0,this._updateUIState(),this.eventBus.dispatch("secondarytoolbarreset",{source:this})}_updateUIState(){this.items.firstPage.disabled=this.pageNumber<=1,this.items.lastPage.disabled=this.pageNumber>=this.pagesCount,this.items.pageRotateCw.disabled=this.pagesCount===0,this.items.pageRotateCcw.disabled=this.pagesCount===0}_bindClickListeners(){this.toggleButton.addEventListener("click",this.toggle.bind(this));for(const{element:t,eventName:a,close:r,eventDetails:i}of this.buttons)t.addEventListener("click",p=>{if(a!==null){const e={source:this};for(const N in i)e[N]=i[N];this.eventBus.dispatch(a,e)}r&&this.close()})}_bindCursorToolsListener(t){this.eventBus._on("cursortoolchanged",function({tool:a}){t.cursorSelectToolButton.classList.toggle("toggled",a===_pdf_cursor_tools$1.CursorTool.SELECT),t.cursorHandToolButton.classList.toggle("toggled",a===_pdf_cursor_tools$1.CursorTool.HAND)})}_bindScrollModeListener(t){function a({mode:r}){t.scrollVerticalButton.classList.toggle("toggled",r===_ui_utils$3.ScrollMode.VERTICAL),t.scrollHorizontalButton.classList.toggle("toggled",r===_ui_utils$3.ScrollMode.HORIZONTAL),t.scrollWrappedButton.classList.toggle("toggled",r===_ui_utils$3.ScrollMode.WRAPPED);const i=r===_ui_utils$3.ScrollMode.HORIZONTAL;t.spreadNoneButton.disabled=i,t.spreadOddButton.disabled=i,t.spreadEvenButton.disabled=i}this.eventBus._on("scrollmodechanged",a),this.eventBus._on("secondarytoolbarreset",r=>{r.source===this&&a({mode:_ui_utils$3.ScrollMode.VERTICAL})})}_bindSpreadModeListener(t){function a({mode:r}){t.spreadNoneButton.classList.toggle("toggled",r===_ui_utils$3.SpreadMode.NONE),t.spreadOddButton.classList.toggle("toggled",r===_ui_utils$3.SpreadMode.ODD),t.spreadEvenButton.classList.toggle("toggled",r===_ui_utils$3.SpreadMode.EVEN)}this.eventBus._on("spreadmodechanged",a),this.eventBus._on("secondarytoolbarreset",r=>{r.source===this&&a({mode:_ui_utils$3.SpreadMode.NONE})})}open(){this.opened||(this.opened=!0,this._setMaxHeight(),this.toggleButton.classList.add("toggled"),this.toolbar.classList.remove("hidden"))}close(){this.opened&&(this.opened=!1,this.toolbar.classList.add("hidden"),this.toggleButton.classList.remove("toggled"))}toggle(){this.opened?this.close():this.open()}_setMaxHeight(){this.opened&&(this.containerHeight=this.mainContainer.clientHeight,this.containerHeight!==this.previousContainerHeight&&(this.toolbarButtonContainer.style.maxHeight=`${this.containerHeight-_ui_utils$3.SCROLLBAR_PADDING}px`,this.previousContainerHeight=this.containerHeight))}}exports$b.SecondaryToolbar=SecondaryToolbar;const __CJS__export_default__$7=(module$b.exports==null?{}:module$b.exports).default||module$b.exports,__CJS__export_SecondaryToolbar__=(module$b.exports==null?{}:module$b.exports).SecondaryToolbar,__CJS__import__19__=Object.freeze(Object.defineProperty({__proto__:null,SecondaryToolbar:__CJS__export_SecondaryToolbar__,default:__CJS__export_default__$7},Symbol.toStringTag,{value:"Module"}));var module$a={exports:{}},exports$a=module$a.exports;Object.defineProperty(exports$a,"__esModule",{value:!0});exports$a.Toolbar=void 0;var _ui_utils$2=__CJS__export_default__$V||__CJS__import__0__$5;const PAGE_NUMBER_LOADING_INDICATOR="visiblePageIsLoading",SCALE_SELECT_CONTAINER_WIDTH=140,SCALE_SELECT_WIDTH=162;class Toolbar{constructor(t,a,r=_ui_utils$2.NullL10n){this.toolbar=t.container,this.eventBus=a,this.l10n=r,this.buttons=[{element:t.previous,eventName:"previouspage"},{element:t.next,eventName:"nextpage"},{element:t.zoomIn,eventName:"zoomin"},{element:t.zoomOut,eventName:"zoomout"},{element:t.openFile,eventName:"openfile"},{element:t.print,eventName:"print"},{element:t.presentationModeButton,eventName:"presentationmode"},{element:t.download,eventName:"download"},{element:t.viewBookmark,eventName:null}],this.items={numPages:t.numPages,pageNumber:t.pageNumber,scaleSelectContainer:t.scaleSelectContainer,scaleSelect:t.scaleSelect,customScaleOption:t.customScaleOption,previous:t.previous,next:t.next,zoomIn:t.zoomIn,zoomOut:t.zoomOut},this._wasLocalized=!1,this.reset(),this._bindListeners()}setPageNumber(t,a){this.pageNumber=t,this.pageLabel=a,this._updateUIState(!1)}setPagesCount(t,a){this.pagesCount=t,this.hasPageLabels=a,this._updateUIState(!0)}setPageScale(t,a){this.pageScaleValue=(t||a).toString(),this.pageScale=a,this._updateUIState(!1)}reset(){this.pageNumber=0,this.pageLabel=null,this.hasPageLabels=!1,this.pagesCount=0,this.pageScaleValue=_ui_utils$2.DEFAULT_SCALE_VALUE,this.pageScale=_ui_utils$2.DEFAULT_SCALE,this._updateUIState(!0),this.updateLoadingIndicatorState()}_bindListeners(){const{pageNumber:t,scaleSelect:a}=this.items,r=this;for(const{element:i,eventName:p}of this.buttons)i.addEventListener("click",e=>{p!==null&&this.eventBus.dispatch(p,{source:this})});t.addEventListener("click",function(){this.select()}),t.addEventListener("change",function(){r.eventBus.dispatch("pagenumberchanged",{source:r,value:this.value})}),a.addEventListener("change",function(){this.value!=="custom"&&r.eventBus.dispatch("scalechanged",{source:r,value:this.value})}),a.oncontextmenu=_ui_utils$2.noContextMenuHandler,this.eventBus._on("localized",()=>{this._wasLocalized=!0,this._adjustScaleWidth(),this._updateUIState(!0)})}_updateUIState(t=!1){if(!this._wasLocalized)return;const{pageNumber:a,pagesCount:r,pageScaleValue:i,pageScale:p,items:e}=this;t&&(this.hasPageLabels?e.pageNumber.type="text":(e.pageNumber.type="number",this.l10n.get("of_pages",{pagesCount:r},"of {{pagesCount}}").then(w=>{e.numPages.textContent=w})),e.pageNumber.max=r),this.hasPageLabels?(e.pageNumber.value=this.pageLabel,this.l10n.get("page_of_pages",{pageNumber:a,pagesCount:r},"({{pageNumber}} of {{pagesCount}})").then(w=>{e.numPages.textContent=w})):e.pageNumber.value=a,e.previous.disabled=a<=1,e.next.disabled=a>=r,e.zoomOut.disabled=p<=_ui_utils$2.MIN_SCALE,e.zoomIn.disabled=p>=_ui_utils$2.MAX_SCALE;const N=Math.round(p*1e4)/100;this.l10n.get("page_scale_percent",{scale:N},"{{scale}}%").then(w=>{let $=!1;for(const U of e.scaleSelect.options){if(U.value!==i){U.selected=!1;continue}U.selected=!0,$=!0}$||(e.customScaleOption.textContent=w,e.customScaleOption.selected=!0)})}updateLoadingIndicatorState(t=!1){this.items.pageNumber.classList.toggle(PAGE_NUMBER_LOADING_INDICATOR,t)}async _adjustScaleWidth(){const{items:t,l10n:a}=this,r=Promise.all([a.get("page_scale_auto",null,"Automatic Zoom"),a.get("page_scale_actual",null,"Actual Size"),a.get("page_scale_fit",null,"Page Fit"),a.get("page_scale_width",null,"Page Width")]);let i=document.createElement("canvas");i.mozOpaque=!0;let p=i.getContext("2d",{alpha:!1});await _ui_utils$2.animationStarted;const{fontSize:e,fontFamily:N}=getComputedStyle(t.scaleSelect);p.font=`${e} ${N}`;let w=0;for(const U of await r){const{width:m}=p.measureText(U);m>w&&(w=m)}const $=SCALE_SELECT_WIDTH-SCALE_SELECT_CONTAINER_WIDTH;w+=1.5*$,w>SCALE_SELECT_CONTAINER_WIDTH&&(t.scaleSelect.style.width=`${w+$}px`,t.scaleSelectContainer.style.width=`${w}px`),i.width=0,i.height=0,i=p=null}}exports$a.Toolbar=Toolbar;const __CJS__export_default__$6=(module$a.exports==null?{}:module$a.exports).default||module$a.exports,__CJS__export_Toolbar__=(module$a.exports==null?{}:module$a.exports).Toolbar,__CJS__import__20__=Object.freeze(Object.defineProperty({__proto__:null,Toolbar:__CJS__export_Toolbar__,default:__CJS__export_default__$6},Symbol.toStringTag,{value:"Module"}));var module$9={exports:{}},exports$9=module$9.exports;Object.defineProperty(exports$9,"__esModule",{value:!0});exports$9.ViewHistory=void 0;const DEFAULT_VIEW_HISTORY_CACHE_SIZE=20;class ViewHistory{constructor(t,a=DEFAULT_VIEW_HISTORY_CACHE_SIZE){this.fingerprint=t,this.cacheSize=a,this._initializedPromise=this._readFromStorage().then(r=>{const i=JSON.parse(r||"{}");if(!("files"in i))i.files=[];else for(;i.files.length>=this.cacheSize;)i.files.shift();let p=-1;for(let e=0,N=i.files.length;e<N;e++)if(i.files[e].fingerprint===this.fingerprint){p=e;break}p===-1&&(p=i.files.push({fingerprint:this.fingerprint})-1),this.file=i.files[p],this.database=i})}async _writeToStorage(){const t=JSON.stringify(this.database);localStorage.setItem("pdfjs.history",t)}async _readFromStorage(){return localStorage.getItem("pdfjs.history")}async set(t,a){return await this._initializedPromise,this.file[t]=a,this._writeToStorage()}async setMultiple(t){await this._initializedPromise;for(const a in t)this.file[a]=t[a];return this._writeToStorage()}async get(t,a){await this._initializedPromise;const r=this.file[t];return r!==void 0?r:a}async getMultiple(t){await this._initializedPromise;const a=Object.create(null);for(const r in t){const i=this.file[r];a[r]=i!==void 0?i:t[r]}return a}}exports$9.ViewHistory=ViewHistory;const __CJS__export_default__$5=(module$9.exports==null?{}:module$9.exports).default||module$9.exports,__CJS__export_ViewHistory__=(module$9.exports==null?{}:module$9.exports).ViewHistory,__CJS__import__21__=Object.freeze(Object.defineProperty({__proto__:null,ViewHistory:__CJS__export_ViewHistory__,default:__CJS__export_default__$5},Symbol.toStringTag,{value:"Module"}));var module$8={exports:{}},exports$8=module$8.exports;Object.defineProperty(exports$8,"__esModule",{value:!0});exports$8.PDFPrintServiceFactory=exports$8.DefaultExternalServices=exports$8.PDFViewerApplication=void 0;var _ui_utils$1=__CJS__export_default__$V||__CJS__import__0__$5,_app_options$1=__CJS__export_default__$w||__CJS__import__2__$4,_pdf$1=__CJS__export_default__$y||__CJS__import__0__$3,_pdf_cursor_tools=__CJS__export_default__$u||__CJS__import__3__$1,_pdf_rendering_queue=__CJS__export_default__$t||__CJS__import__4__$1,_pdf_sidebar=__CJS__export_default__$s||__CJS__import__5__,_overlay_manager=__CJS__export_default__$r||__CJS__import__6__$1,_password_prompt=__CJS__export_default__$q||__CJS__import__7__,_pdf_attachment_viewer=__CJS__export_default__$p||__CJS__import__8__,_pdf_document_properties=__CJS__export_default__$o||__CJS__import__9__,_pdf_find_bar=__CJS__export_default__$l||__CJS__import__10__,_pdf_find_controller=__CJS__export_default__$m||__CJS__import__11__,_pdf_history=__CJS__export_default__$k||__CJS__import__12__,_pdf_link_service=__CJS__export_default__$j||__CJS__import__13__,_pdf_outline_viewer=__CJS__export_default__$i||__CJS__import__14__,_pdf_presentation_mode=__CJS__export_default__$h||__CJS__import__15__,_pdf_sidebar_resizer=__CJS__export_default__$g||__CJS__import__16__,_pdf_thumbnail_viewer=__CJS__export_default__$e||__CJS__import__17__,_pdf_viewer=__CJS__export_default__$9||__CJS__import__18__,_secondary_toolbar=__CJS__export_default__$7||__CJS__import__19__,_toolbar=__CJS__export_default__$6||__CJS__import__20__,_view_history=__CJS__export_default__$5||__CJS__import__21__;const DEFAULT_SCALE_DELTA=1.1,DISABLE_AUTO_FETCH_LOADING_BAR_TIMEOUT=5e3,FORCE_PAGES_LOADED_TIMEOUT=1e4,WHEEL_ZOOM_DISABLED_TIMEOUT=1e3,ViewOnLoad={UNKNOWN:-1,INITIAL:1};class DefaultExternalServices{constructor(){throw new Error("Cannot initialize DefaultExternalServices.")}static updateFindControlState(t){}static updateFindMatchesCount(t){}static initPassiveLoading(t){}static fallback(t,a){}static reportTelemetry(t){}static createDownloadManager(t){throw new Error("Not implemented: createDownloadManager")}static createPreferences(){throw new Error("Not implemented: createPreferences")}static createL10n(t){throw new Error("Not implemented: createL10n")}static get supportsIntegratedFind(){return(0,_pdf$1.shadow)(this,"supportsIntegratedFind",!1)}static get supportsDocumentFonts(){return(0,_pdf$1.shadow)(this,"supportsDocumentFonts",!0)}static get supportedMouseWheelZoomModifierKeys(){return(0,_pdf$1.shadow)(this,"supportedMouseWheelZoomModifierKeys",{ctrlKey:!0,metaKey:!0})}}exports$8.DefaultExternalServices=DefaultExternalServices;const PDFViewerApplication={initialBookmark:document.location.hash.substring(1),_initializedCapability:(0,_pdf$1.createPromiseCapability)(),fellback:!1,appConfig:null,pdfDocument:null,pdfLoadingTask:null,printService:null,pdfViewer:null,pdfThumbnailViewer:null,pdfRenderingQueue:null,pdfPresentationMode:null,pdfDocumentProperties:null,pdfLinkService:null,pdfHistory:null,pdfSidebar:null,pdfSidebarResizer:null,pdfOutlineViewer:null,pdfAttachmentViewer:null,pdfCursorTools:null,store:null,downloadManager:null,overlayManager:null,preferences:null,toolbar:null,secondaryToolbar:null,eventBus:null,l10n:null,isInitialViewSet:!1,downloadComplete:!1,isViewerEmbedded:window.parent!==window,url:"",baseUrl:"",externalServices:DefaultExternalServices,_boundEvents:{},contentDispositionFilename:null,async initialize(x){this.preferences=this.externalServices.createPreferences(),this.appConfig=x,await this._readPreferences(),await this._parseHashParameters(),await this._initializeL10n(),this.isViewerEmbedded&&_app_options$1.AppOptions.get("externalLinkTarget")===_pdf$1.LinkTarget.NONE&&_app_options$1.AppOptions.set("externalLinkTarget",_pdf$1.LinkTarget.TOP),await this._initializeViewerComponents(),this.bindEvents(),this.bindWindowEvents();const t=x.appContainer||document.documentElement;this.l10n.translate(t).then(()=>{this.eventBus.dispatch("localized",{source:this})}),this._initializedCapability.resolve()},async _readPreferences(){if(_app_options$1.AppOptions.get("disablePreferences")!==!0)try{const x=await this.preferences.getAll();for(const t in x)_app_options$1.AppOptions.set(t,x[t])}catch(x){console.error(`_readPreferences: "${x.message}".`)}},async _parseHashParameters(){if(!_app_options$1.AppOptions.get("pdfBugEnabled"))return;const x=document.location.hash.substring(1);if(!x)return;const t=(0,_ui_utils$1.parseQueryString)(x),a=[];if("disableworker"in t&&t.disableworker==="true"&&a.push(loadFakeWorker()),"disablerange"in t&&_app_options$1.AppOptions.set("disableRange",t.disablerange==="true"),"disablestream"in t&&_app_options$1.AppOptions.set("disableStream",t.disablestream==="true"),"disableautofetch"in t&&_app_options$1.AppOptions.set("disableAutoFetch",t.disableautofetch==="true"),"disablefontface"in t&&_app_options$1.AppOptions.set("disableFontFace",t.disablefontface==="true"),"disablehistory"in t&&_app_options$1.AppOptions.set("disableHistory",t.disablehistory==="true"),"webgl"in t&&_app_options$1.AppOptions.set("enableWebGL",t.webgl==="true"),"verbosity"in t&&_app_options$1.AppOptions.set("verbosity",t.verbosity|0),"textlayer"in t)switch(t.textlayer){case"off":_app_options$1.AppOptions.set("textLayerMode",_ui_utils$1.TextLayerMode.DISABLE);break;case"visible":case"shadow":case"hover":this.appConfig.viewerContainer.classList.add("textLayer-"+t.textlayer);break}if("pdfbug"in t){_app_options$1.AppOptions.set("pdfBug",!0);const r=t.pdfbug.split(",");a.push(loadAndEnablePDFBug(r))}return"locale"in t&&_app_options$1.AppOptions.set("locale",t.locale),Promise.all(a).catch(r=>{console.error(`_parseHashParameters: "${r.message}".`)})},async _initializeL10n(){this.l10n=this.externalServices.createL10n({locale:_app_options$1.AppOptions.get("locale")});const x=await this.l10n.getDirection();document.getElementsByTagName("html")[0].dir=x},async _initializeViewerComponents(){const x=this.appConfig;this.overlayManager=new _overlay_manager.OverlayManager;const t=x.eventBus||new _ui_utils$1.EventBus({dispatchToDOM:_app_options$1.AppOptions.get("eventBusDispatchToDOM")});this.eventBus=t;const a=new _pdf_rendering_queue.PDFRenderingQueue;a.onIdle=this.cleanup.bind(this),this.pdfRenderingQueue=a;const r=new _pdf_link_service.PDFLinkService({eventBus:t,externalLinkTarget:_app_options$1.AppOptions.get("externalLinkTarget"),externalLinkRel:_app_options$1.AppOptions.get("externalLinkRel"),ignoreDestinationZoom:_app_options$1.AppOptions.get("ignoreDestinationZoom")});this.pdfLinkService=r;const i=this.externalServices.createDownloadManager({disableCreateObjectURL:_app_options$1.AppOptions.get("disableCreateObjectURL")});this.downloadManager=i;const p=new _pdf_find_controller.PDFFindController({linkService:r,eventBus:t});this.findController=p;const e=x.mainContainer,N=x.viewerContainer;this.pdfViewer=new _pdf_viewer.PDFViewer({container:e,viewer:N,eventBus:t,renderingQueue:a,linkService:r,downloadManager:i,findController:p,renderer:_app_options$1.AppOptions.get("renderer"),enableWebGL:_app_options$1.AppOptions.get("enableWebGL"),l10n:this.l10n,textLayerMode:_app_options$1.AppOptions.get("textLayerMode"),imageResourcesPath:_app_options$1.AppOptions.get("imageResourcesPath"),renderInteractiveForms:_app_options$1.AppOptions.get("renderInteractiveForms"),enablePrintAutoRotate:_app_options$1.AppOptions.get("enablePrintAutoRotate"),useOnlyCssZoom:_app_options$1.AppOptions.get("useOnlyCssZoom"),maxCanvasPixels:_app_options$1.AppOptions.get("maxCanvasPixels")}),a.setViewer(this.pdfViewer),r.setViewer(this.pdfViewer),this.pdfThumbnailViewer=new _pdf_thumbnail_viewer.PDFThumbnailViewer({container:x.sidebar.thumbnailView,renderingQueue:a,linkService:r,l10n:this.l10n}),a.setThumbnailViewer(this.pdfThumbnailViewer),this.pdfHistory=new _pdf_history.PDFHistory({linkService:r,eventBus:t}),r.setHistory(this.pdfHistory),this.supportsIntegratedFind||(this.findBar=new _pdf_find_bar.PDFFindBar(x.findBar,t,this.l10n)),this.pdfDocumentProperties=new _pdf_document_properties.PDFDocumentProperties(x.documentProperties,this.overlayManager,t,this.l10n),this.pdfCursorTools=new _pdf_cursor_tools.PDFCursorTools({container:e,eventBus:t,cursorToolOnLoad:_app_options$1.AppOptions.get("cursorToolOnLoad")}),this.toolbar=new _toolbar.Toolbar(x.toolbar,t,this.l10n),this.secondaryToolbar=new _secondary_toolbar.SecondaryToolbar(x.secondaryToolbar,e,t),this.supportsFullscreen&&(this.pdfPresentationMode=new _pdf_presentation_mode.PDFPresentationMode({container:e,pdfViewer:this.pdfViewer,eventBus:t,contextMenuItems:x.fullscreen})),this.passwordPrompt=new _password_prompt.PasswordPrompt(x.passwordOverlay,this.overlayManager,this.l10n),this.pdfOutlineViewer=new _pdf_outline_viewer.PDFOutlineViewer({container:x.sidebar.outlineView,eventBus:t,linkService:r}),this.pdfAttachmentViewer=new _pdf_attachment_viewer.PDFAttachmentViewer({container:x.sidebar.attachmentsView,eventBus:t,downloadManager:i}),this.pdfSidebar=new _pdf_sidebar.PDFSidebar({elements:x.sidebar,pdfViewer:this.pdfViewer,pdfThumbnailViewer:this.pdfThumbnailViewer,eventBus:t,l10n:this.l10n}),this.pdfSidebar.onToggled=this.forceRendering.bind(this),this.pdfSidebarResizer=new _pdf_sidebar_resizer.PDFSidebarResizer(x.sidebarResizer,t,this.l10n)},run(x){this.initialize(x).then(webViewerInitialized)},get initialized(){return this._initializedCapability.settled},get initializedPromise(){return this._initializedCapability.promise},zoomIn(x){if(this.pdfViewer.isInPresentationMode)return;let t=this.pdfViewer.currentScale;do t=(t*DEFAULT_SCALE_DELTA).toFixed(2),t=Math.ceil(t*10)/10,t=Math.min(_ui_utils$1.MAX_SCALE,t);while(--x>0&&t<_ui_utils$1.MAX_SCALE);this.pdfViewer.currentScaleValue=t},zoomOut(x){if(this.pdfViewer.isInPresentationMode)return;let t=this.pdfViewer.currentScale;do t=(t/DEFAULT_SCALE_DELTA).toFixed(2),t=Math.floor(t*10)/10,t=Math.max(_ui_utils$1.MIN_SCALE,t);while(--x>0&&t>_ui_utils$1.MIN_SCALE);this.pdfViewer.currentScaleValue=t},zoomReset(){this.pdfViewer.isInPresentationMode||(this.pdfViewer.currentScaleValue=_ui_utils$1.DEFAULT_SCALE_VALUE)},get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0},set page(x){this.pdfViewer.currentPageNumber=x},get page(){return this.pdfViewer.currentPageNumber},get printing(){return!!this.printService},get supportsPrinting(){return PDFPrintServiceFactory.instance.supportsPrinting},get supportsFullscreen(){let x;const t=document.documentElement;return x=!!(t.requestFullscreen||t.mozRequestFullScreen||t.webkitRequestFullScreen||t.msRequestFullscreen),(document.fullscreenEnabled===!1||document.mozFullScreenEnabled===!1||document.webkitFullscreenEnabled===!1||document.msFullscreenEnabled===!1)&&(x=!1),(0,_pdf$1.shadow)(this,"supportsFullscreen",x)},get supportsIntegratedFind(){return this.externalServices.supportsIntegratedFind},get supportsDocumentFonts(){return this.externalServices.supportsDocumentFonts},get loadingBar(){const x=new _ui_utils$1.ProgressBar("#loadingBar");return(0,_pdf$1.shadow)(this,"loadingBar",x)},get supportedMouseWheelZoomModifierKeys(){return this.externalServices.supportedMouseWheelZoomModifierKeys},initPassiveLoading(){throw new Error("Not implemented: initPassiveLoading")},setTitleUsingUrl(x=""){this.url=x,this.baseUrl=x.split("#")[0];let t=(0,_ui_utils$1.getPDFFileNameFromURL)(x,"");if(!t)try{t=decodeURIComponent((0,_pdf$1.getFilenameFromUrl)(x))||x}catch{t=x}this.setTitle(t)},setTitle(x){this.isViewerEmbedded||(document.title=x)},async close(){if(this.appConfig.errorWrapper.container.setAttribute("hidden","true"),!this.pdfLoadingTask)return;const t=this.pdfLoadingTask.destroy();return this.pdfLoadingTask=null,this.pdfDocument&&(this.pdfDocument=null,this.pdfThumbnailViewer.setDocument(null),this.pdfViewer.setDocument(null),this.pdfLinkService.setDocument(null),this.pdfDocumentProperties.setDocument(null)),this.store=null,this.isInitialViewSet=!1,this.downloadComplete=!1,this.url="",this.baseUrl="",this.contentDispositionFilename=null,this.pdfSidebar.reset(),this.pdfOutlineViewer.reset(),this.pdfAttachmentViewer.reset(),this.pdfHistory&&this.pdfHistory.reset(),this.findBar&&this.findBar.reset(),this.toolbar.reset(),this.secondaryToolbar.reset(),typeof PDFBug<"u"&&PDFBug.cleanup(),t},async open(x,t){this.pdfLoadingTask&&await this.close();const a=_app_options$1.AppOptions.getAll(_app_options$1.OptionKind.WORKER);for(const e in a)_pdf$1.GlobalWorkerOptions[e]=a[e];const r=Object.create(null);typeof x=="string"?(this.setTitleUsingUrl(x),r.url=x):x&&"byteLength"in x?r.data=x:x.url&&x.originalUrl&&(this.setTitleUsingUrl(x.originalUrl),r.url=x.url);const i=_app_options$1.AppOptions.getAll(_app_options$1.OptionKind.API);for(const e in i){let N=i[e];r[e]=N}if(t)for(const e in t){const N=t[e];e==="length"&&this.pdfDocumentProperties.setFileSize(N),r[e]=N}const p=(0,_pdf$1.getDocument)(r);return this.pdfLoadingTask=p,p.onPassword=(e,N)=>{this.pdfLinkService.externalLinkEnabled=!1,this.passwordPrompt.setUpdateCallback(e,N),this.passwordPrompt.open()},p.onProgress=({loaded:e,total:N})=>{this.progress(e/N)},p.onUnsupportedFeature=this.fallback.bind(this),p.promise.then(e=>{this.load(e)},e=>{if(p!==this.pdfLoadingTask)return;const N=e&&e.message;let w;return e instanceof _pdf$1.InvalidPDFException?w=this.l10n.get("invalid_file_error",null,"Invalid or corrupted PDF file."):e instanceof _pdf$1.MissingPDFException?w=this.l10n.get("missing_file_error",null,"Missing PDF file."):e instanceof _pdf$1.UnexpectedResponseException?w=this.l10n.get("unexpected_response_error",null,"Unexpected server response."):w=this.l10n.get("loading_error",null,"An error occurred while loading the PDF."),w.then($=>{throw this.error($,{message:N}),new Error($)})})},download(){function x(){r.downloadUrl(t,a)}const t=this.baseUrl,a=this.contentDispositionFilename||(0,_ui_utils$1.getPDFFileNameFromURL)(this.url),r=this.downloadManager;if(r.onerror=i=>{this.error(`PDF failed to download: ${i}`)},!this.pdfDocument||!this.downloadComplete){x();return}this.pdfDocument.getData().then(function(i){const p=new Blob([i],{type:"application/pdf"});r.download(p,t,a)}).catch(x)},fallback(x){this.fellback||(this.fellback=!0,this.externalServices.fallback({featureId:x,url:this.baseUrl},function(a){a&&PDFViewerApplication.download()}))},error(x,t){const a=[this.l10n.get("error_version_info",{version:_pdf$1.version||"?",build:_pdf$1.build||"?"},"PDF.js v{{version}} (build: {{build}})")];t&&(a.push(this.l10n.get("error_message",{message:t.message},"Message: {{message}}")),t.stack?a.push(this.l10n.get("error_stack",{stack:t.stack},"Stack: {{stack}}")):(t.filename&&a.push(this.l10n.get("error_file",{file:t.filename},"File: {{file}}")),t.lineNumber&&a.push(this.l10n.get("error_line",{line:t.lineNumber},"Line: {{line}}"))));const r=this.appConfig.errorWrapper,i=r.container;i.removeAttribute("hidden");const p=r.errorMessage;p.textContent=x;const e=r.closeButton;e.onclick=function(){i.setAttribute("hidden","true")};const N=r.errorMoreInfo,w=r.moreInfoButton,$=r.lessInfoButton;w.onclick=function(){N.removeAttribute("hidden"),w.setAttribute("hidden","true"),$.removeAttribute("hidden"),N.style.height=N.scrollHeight+"px"},$.onclick=function(){N.setAttribute("hidden","true"),w.removeAttribute("hidden"),$.setAttribute("hidden","true")},w.oncontextmenu=_ui_utils$1.noContextMenuHandler,$.oncontextmenu=_ui_utils$1.noContextMenuHandler,e.oncontextmenu=_ui_utils$1.noContextMenuHandler,w.removeAttribute("hidden"),$.setAttribute("hidden","true"),Promise.all(a).then(U=>{N.value=U.join(`
|
|
6
|
+
`)})},progress(x){if(this.downloadComplete)return;const t=Math.round(x*100);(t>this.loadingBar.percent||isNaN(t))&&(this.loadingBar.percent=t,(this.pdfDocument?this.pdfDocument.loadingParams.disableAutoFetch:_app_options$1.AppOptions.get("disableAutoFetch"))&&t&&(this.disableAutoFetchLoadingBarTimeout&&(clearTimeout(this.disableAutoFetchLoadingBarTimeout),this.disableAutoFetchLoadingBarTimeout=null),this.loadingBar.show(),this.disableAutoFetchLoadingBarTimeout=setTimeout(()=>{this.loadingBar.hide(),this.disableAutoFetchLoadingBarTimeout=null},DISABLE_AUTO_FETCH_LOADING_BAR_TIMEOUT)))},load(x){this.pdfDocument=x,x.getDownloadInfo().then(()=>{this.downloadComplete=!0,this.loadingBar.hide(),N.then(()=>{this.eventBus.dispatch("documentloaded",{source:this})})});const t=x.getPageLayout().catch(function(){}),a=x.getPageMode().catch(function(){}),r=x.getOpenAction().catch(function(){});this.toolbar.setPagesCount(x.numPages,!1),this.secondaryToolbar.setPagesCount(x.numPages);const i=this.store=new _view_history.ViewHistory(x.fingerprint);let p;p=null,this.pdfLinkService.setDocument(x,p),this.pdfDocumentProperties.setDocument(x,this.url);const e=this.pdfViewer;e.setDocument(x);const{firstPagePromise:N,onePageRendered:w,pagesPromise:$}=e,U=this.pdfThumbnailViewer;U.setDocument(x),N.then(m=>{this.loadingBar.setWidth(this.appConfig.viewerContainer);const n=i.getMultiple({page:null,zoom:_ui_utils$1.DEFAULT_SCALE_VALUE,scrollLeft:"0",scrollTop:"0",rotation:null,sidebarView:_pdf_sidebar.SidebarView.UNKNOWN,scrollMode:_ui_utils$1.ScrollMode.UNKNOWN,spreadMode:_ui_utils$1.SpreadMode.UNKNOWN}).catch(()=>{});Promise.all([_ui_utils$1.animationStarted,n,t,a,r]).then(async([J,O={},L,M,P])=>{const b=_app_options$1.AppOptions.get("viewOnLoad");this._initializePdfHistory({fingerprint:x.fingerprint,viewOnLoad:b,initialDest:P&&P.dest});const _=this.initialBookmark,d=_app_options$1.AppOptions.get("defaultZoomValue");let c=d?`zoom=${d}`:null,h=null,f=_app_options$1.AppOptions.get("sidebarViewOnLoad"),g=_app_options$1.AppOptions.get("scrollModeOnLoad"),v=_app_options$1.AppOptions.get("spreadModeOnLoad");O.page&&b!==ViewOnLoad.INITIAL&&(c=`page=${O.page}&zoom=${d||O.zoom},${O.scrollLeft},${O.scrollTop}`,h=parseInt(O.rotation,10),f===_pdf_sidebar.SidebarView.UNKNOWN&&(f=O.sidebarView|0),g===_ui_utils$1.ScrollMode.UNKNOWN&&(g=O.scrollMode|0),v===_ui_utils$1.SpreadMode.UNKNOWN&&(v=O.spreadMode|0)),M&&f===_pdf_sidebar.SidebarView.UNKNOWN&&(f=apiPageModeToSidebarView(M)),L&&v===_ui_utils$1.SpreadMode.UNKNOWN&&(v=apiPageLayoutToSpreadMode(L)),this.setInitialView(c,{rotation:h,sidebarView:f,scrollMode:g,spreadMode:v}),this.eventBus.dispatch("documentinit",{source:this}),this.isViewerEmbedded||e.focus(),await Promise.race([$,new Promise(s=>{setTimeout(s,FORCE_PAGES_LOADED_TIMEOUT)})]),!(!_&&!c)&&(e.hasEqualPageSizes||(this.initialBookmark=_,e.currentScaleValue=e.currentScaleValue,this.setInitialView(c)))}).catch(()=>{this.setInitialView()}).then(function(){e.update()})}),x.getPageLabels().then(m=>{if(!m||_app_options$1.AppOptions.get("disablePageLabels"))return;const n=m.length;if(n!==this.pagesCount){console.error("The number of Page Labels does not match the number of pages in the document.");return}let J=0;for(;J<n&&m[J]===(J+1).toString();)J++;J!==n&&(e.setPageLabels(m),U.setPageLabels(m),this.toolbar.setPagesCount(x.numPages,!0),this.toolbar.setPageNumber(e.currentPageNumber,e.currentPageLabel))}),$.then(async()=>{const[m,n]=await Promise.all([r,x.getJavaScript()]);let J=!1;if(m&&m.action==="Print"&&(J=!0),n&&(n.some(O=>O?(console.warn("Warning: JavaScript is not supported"),this.fallback(_pdf$1.UNSUPPORTED_FEATURES.javaScript),!0):!1),!J)){for(const O of n)if(O&&_ui_utils$1.AutoPrintRegExp.test(O)){J=!0;break}}this.supportsPrinting&&J&&setTimeout(function(){window.print()})}),w.then(()=>{x.getOutline().then(m=>{this.pdfOutlineViewer.render({outline:m})}),x.getAttachments().then(m=>{this.pdfAttachmentViewer.render({attachments:m})})}),x.getMetadata().then(({info:m,metadata:n,contentDispositionFilename:J})=>{this.documentInfo=m,this.metadata=n,this.contentDispositionFilename=J;let O;const L=m&&m.Title;L&&(O=L);const M=n&&n.get("dc:title");M&&M!=="Untitled"&&!/[\uFFF0-\uFFFF]/g.test(M)&&(O=M),O?this.setTitle(`${O} - ${J||document.title}`):J&&this.setTitle(J),m.IsAcroFormPresent&&(console.warn("Warning: AcroForm/XFA is not supported"),this.fallback(_pdf$1.UNSUPPORTED_FEATURES.forms));let P="other";["1.0","1.1","1.2","1.3","1.4","1.5","1.6","1.7","1.8","1.9","2.0","2.1","2.2","2.3"].includes(m.PDFFormatVersion)&&(P=`v${m.PDFFormatVersion.replace(".","_")}`);let _="other";const d=["acrobat distiller","acrobat pdfwriter","adobe livecycle","adobe pdf library","adobe photoshop","ghostscript","tcpdf","cairo","dvipdfm","dvips","pdftex","pdfkit","itext","prince","quarkxpress","mac os x","microsoft","openoffice","oracle","luradocument","pdf-xchange","antenna house","aspose.cells","fpdf"];if(m.Producer){const h=m.Producer.toLowerCase();d.some(function(f){return h.includes(f)?(_=f.replace(/[ .\-]/g,"_"),!0):!1})}let c=null;m.IsAcroFormPresent&&(c=m.IsXFAPresent?"xfa":"acroform"),this.externalServices.reportTelemetry({type:"documentInfo",version:P,generator:_,formType:c})})},_initializePdfHistory({fingerprint:x,viewOnLoad:t,initialDest:a=null}){_app_options$1.AppOptions.get("disableHistory")||this.isViewerEmbedded||(this.pdfHistory.initialize({fingerprint:x,resetHistory:t===ViewOnLoad.INITIAL,updateUrl:_app_options$1.AppOptions.get("historyUpdateUrl")}),this.pdfHistory.initialBookmark&&(this.initialBookmark=this.pdfHistory.initialBookmark,this.initialRotation=this.pdfHistory.initialRotation),a&&!this.initialBookmark&&t===ViewOnLoad.UNKNOWN&&(this.initialBookmark=JSON.stringify(a),this.pdfHistory.push({explicitDest:a,pageNumber:null})))},setInitialView(x,{rotation:t,sidebarView:a,scrollMode:r,spreadMode:i}={}){const p=N=>{(0,_ui_utils$1.isValidRotation)(N)&&(this.pdfViewer.pagesRotation=N)},e=(N,w)=>{(0,_ui_utils$1.isValidScrollMode)(N)&&(this.pdfViewer.scrollMode=N),(0,_ui_utils$1.isValidSpreadMode)(w)&&(this.pdfViewer.spreadMode=w)};this.isInitialViewSet=!0,this.pdfSidebar.setInitialView(a),e(r,i),this.initialBookmark?(p(this.initialRotation),delete this.initialRotation,this.pdfLinkService.setHash(this.initialBookmark),this.initialBookmark=null):x&&(p(t),this.pdfLinkService.setHash(x)),this.toolbar.setPageNumber(this.pdfViewer.currentPageNumber,this.pdfViewer.currentPageLabel),this.secondaryToolbar.setPageNumber(this.pdfViewer.currentPageNumber),this.pdfViewer.currentScaleValue||(this.pdfViewer.currentScaleValue=_ui_utils$1.DEFAULT_SCALE_VALUE)},cleanup(){this.pdfDocument&&(this.pdfViewer.cleanup(),this.pdfThumbnailViewer.cleanup(),this.pdfViewer.renderer!==_ui_utils$1.RendererType.SVG&&this.pdfDocument.cleanup())},forceRendering(){this.pdfRenderingQueue.printing=this.printing,this.pdfRenderingQueue.isThumbnailViewEnabled=this.pdfSidebar.isThumbnailViewVisible,this.pdfRenderingQueue.renderHighestPriority()},beforePrint(){if(this.printService)return;if(!this.supportsPrinting){this.l10n.get("printing_not_supported",null,"Warning: Printing is not fully supported by this browser.").then(r=>{this.error(r)});return}if(!this.pdfViewer.pageViewsReady){this.l10n.get("printing_not_ready",null,"Warning: The PDF is not fully loaded for printing.").then(r=>{window.alert(r)});return}const x=this.pdfViewer.getPagesOverview(),t=this.appConfig.printContainer,a=PDFPrintServiceFactory.instance.createPrintService(this.pdfDocument,x,t,this.l10n);this.printService=a,this.forceRendering(),a.layout(),this.externalServices.reportTelemetry({type:"print"})},afterPrint(){this.printService&&(this.printService.destroy(),this.printService=null),this.forceRendering()},rotatePages(x){if(!this.pdfDocument)return;const t=(this.pdfViewer.pagesRotation+360+x)%360;this.pdfViewer.pagesRotation=t},requestPresentationMode(){this.pdfPresentationMode&&this.pdfPresentationMode.request()},bindEvents(){const{eventBus:x,_boundEvents:t}=this;t.beforePrint=this.beforePrint.bind(this),t.afterPrint=this.afterPrint.bind(this),x._on("resize",webViewerResize),x._on("hashchange",webViewerHashchange),x._on("beforeprint",t.beforePrint),x._on("afterprint",t.afterPrint),x._on("pagerendered",webViewerPageRendered),x._on("updateviewarea",webViewerUpdateViewarea),x._on("pagechanging",webViewerPageChanging),x._on("scalechanging",webViewerScaleChanging),x._on("rotationchanging",webViewerRotationChanging),x._on("sidebarviewchanged",webViewerSidebarViewChanged),x._on("pagemode",webViewerPageMode),x._on("namedaction",webViewerNamedAction),x._on("presentationmodechanged",webViewerPresentationModeChanged),x._on("presentationmode",webViewerPresentationMode),x._on("print",webViewerPrint),x._on("download",webViewerDownload),x._on("firstpage",webViewerFirstPage),x._on("lastpage",webViewerLastPage),x._on("nextpage",webViewerNextPage),x._on("previouspage",webViewerPreviousPage),x._on("zoomin",webViewerZoomIn),x._on("zoomout",webViewerZoomOut),x._on("zoomreset",webViewerZoomReset),x._on("pagenumberchanged",webViewerPageNumberChanged),x._on("scalechanged",webViewerScaleChanged),x._on("rotatecw",webViewerRotateCw),x._on("rotateccw",webViewerRotateCcw),x._on("switchscrollmode",webViewerSwitchScrollMode),x._on("scrollmodechanged",webViewerScrollModeChanged),x._on("switchspreadmode",webViewerSwitchSpreadMode),x._on("spreadmodechanged",webViewerSpreadModeChanged),x._on("documentproperties",webViewerDocumentProperties),x._on("find",webViewerFind),x._on("findfromurlhash",webViewerFindFromUrlHash),x._on("updatefindmatchescount",webViewerUpdateFindMatchesCount),x._on("updatefindcontrolstate",webViewerUpdateFindControlState),x._on("fileinputchange",webViewerFileInputChange),x._on("openfile",webViewerOpenFile)},bindWindowEvents(){const{eventBus:x,_boundEvents:t}=this;t.windowResize=()=>{x.dispatch("resize",{source:window})},t.windowHashChange=()=>{x.dispatch("hashchange",{source:window,hash:document.location.hash.substring(1)})},t.windowBeforePrint=()=>{x.dispatch("beforeprint",{source:window})},t.windowAfterPrint=()=>{x.dispatch("afterprint",{source:window})},window.addEventListener("visibilitychange",webViewerVisibilityChange),window.addEventListener("wheel",webViewerWheel,{passive:!1}),window.addEventListener("click",webViewerClick),window.addEventListener("keydown",webViewerKeyDown),window.addEventListener("resize",t.windowResize),window.addEventListener("hashchange",t.windowHashChange),window.addEventListener("beforeprint",t.windowBeforePrint),window.addEventListener("afterprint",t.windowAfterPrint)},unbindEvents(){const{eventBus:x,_boundEvents:t}=this;x._off("resize",webViewerResize),x._off("hashchange",webViewerHashchange),x._off("beforeprint",t.beforePrint),x._off("afterprint",t.afterPrint),x._off("pagerendered",webViewerPageRendered),x._off("updateviewarea",webViewerUpdateViewarea),x._off("pagechanging",webViewerPageChanging),x._off("scalechanging",webViewerScaleChanging),x._off("rotationchanging",webViewerRotationChanging),x._off("sidebarviewchanged",webViewerSidebarViewChanged),x._off("pagemode",webViewerPageMode),x._off("namedaction",webViewerNamedAction),x._off("presentationmodechanged",webViewerPresentationModeChanged),x._off("presentationmode",webViewerPresentationMode),x._off("print",webViewerPrint),x._off("download",webViewerDownload),x._off("firstpage",webViewerFirstPage),x._off("lastpage",webViewerLastPage),x._off("nextpage",webViewerNextPage),x._off("previouspage",webViewerPreviousPage),x._off("zoomin",webViewerZoomIn),x._off("zoomout",webViewerZoomOut),x._off("zoomreset",webViewerZoomReset),x._off("pagenumberchanged",webViewerPageNumberChanged),x._off("scalechanged",webViewerScaleChanged),x._off("rotatecw",webViewerRotateCw),x._off("rotateccw",webViewerRotateCcw),x._off("switchscrollmode",webViewerSwitchScrollMode),x._off("scrollmodechanged",webViewerScrollModeChanged),x._off("switchspreadmode",webViewerSwitchSpreadMode),x._off("spreadmodechanged",webViewerSpreadModeChanged),x._off("documentproperties",webViewerDocumentProperties),x._off("find",webViewerFind),x._off("findfromurlhash",webViewerFindFromUrlHash),x._off("updatefindmatchescount",webViewerUpdateFindMatchesCount),x._off("updatefindcontrolstate",webViewerUpdateFindControlState),x._off("fileinputchange",webViewerFileInputChange),x._off("openfile",webViewerOpenFile),t.beforePrint=null,t.afterPrint=null},unbindWindowEvents(){const{_boundEvents:x}=this;window.removeEventListener("visibilitychange",webViewerVisibilityChange),window.removeEventListener("wheel",webViewerWheel),window.removeEventListener("click",webViewerClick),window.removeEventListener("keydown",webViewerKeyDown),window.removeEventListener("resize",x.windowResize),window.removeEventListener("hashchange",x.windowHashChange),window.removeEventListener("beforeprint",x.windowBeforePrint),window.removeEventListener("afterprint",x.windowAfterPrint),x.windowResize=null,x.windowHashChange=null,x.windowBeforePrint=null,x.windowAfterPrint=null}};exports$8.PDFViewerApplication=PDFViewerApplication;let validateFileURL;{const x=["null","http://mozilla.github.io","https://mozilla.github.io"];validateFileURL=function(t){if(t!==void 0)try{const a=new URL(window.location.href).origin||"null";if(x.includes(a))return;const{origin:r,protocol:i}=new URL(t,window.location.href);if(r!==a&&i!=="blob:")throw new Error("file origin does not match viewer's")}catch(a){const r=a&&a.message;throw PDFViewerApplication.l10n.get("loading_error",null,"An error occurred while loading the PDF.").then(i=>{PDFViewerApplication.error(i,{message:r})}),a}}}async function loadFakeWorker(){return _pdf$1.GlobalWorkerOptions.workerSrc||(_pdf$1.GlobalWorkerOptions.workerSrc=_app_options$1.AppOptions.get("workerSrc")),(0,_pdf$1.loadScript)(_pdf$1.PDFWorker.getWorkerSrc())}function loadAndEnablePDFBug(x){const t=PDFViewerApplication.appConfig;return(0,_pdf$1.loadScript)(t.debuggerScriptPath).then(function(){PDFBug.enable(x),PDFBug.init({OPS:_pdf$1.OPS},t.mainContainer)})}function webViewerInitialized(){const x=PDFViewerApplication.appConfig;let t;const a=document.location.search.substring(1),r=(0,_ui_utils$1.parseQueryString)(a);t="file"in r?r.file:_app_options$1.AppOptions.get("defaultUrl"),validateFileURL(t);const i=document.createElement("input");i.id=x.openFileInputName,i.className="fileInput",i.setAttribute("type","file"),i.oncontextmenu=_ui_utils$1.noContextMenuHandler,document.body.appendChild(i),!window.File||!window.FileReader||!window.FileList||!window.Blob?(x.toolbar.openFile.setAttribute("hidden","true"),x.secondaryToolbar.openFileButton.setAttribute("hidden","true")):i.value=null,i.addEventListener("change",function(p){const e=p.target.files;!e||e.length===0||PDFViewerApplication.eventBus.dispatch("fileinputchange",{source:this,fileInput:p.target})}),x.mainContainer.addEventListener("dragover",function(p){p.preventDefault(),p.dataTransfer.dropEffect="move"}),x.mainContainer.addEventListener("drop",function(p){p.preventDefault();const e=p.dataTransfer.files;!e||e.length===0||PDFViewerApplication.eventBus.dispatch("fileinputchange",{source:this,fileInput:p.dataTransfer})}),PDFViewerApplication.supportsDocumentFonts||(_app_options$1.AppOptions.set("disableFontFace",!0),PDFViewerApplication.l10n.get("web_fonts_disabled",null,"Web fonts are disabled: unable to use embedded PDF fonts.").then(p=>{console.warn(p)})),PDFViewerApplication.supportsPrinting||(x.toolbar.print.classList.add("hidden"),x.secondaryToolbar.printButton.classList.add("hidden")),PDFViewerApplication.supportsFullscreen||(x.toolbar.presentationModeButton.classList.add("hidden"),x.secondaryToolbar.presentationModeButton.classList.add("hidden")),PDFViewerApplication.supportsIntegratedFind&&x.toolbar.viewFind.classList.add("hidden"),x.mainContainer.addEventListener("transitionend",function(p){p.target===this&&PDFViewerApplication.eventBus.dispatch("resize",{source:this})},!0);try{webViewerOpenFileViaURL(t)}catch(p){PDFViewerApplication.l10n.get("loading_error",null,"An error occurred while loading the PDF.").then(e=>{PDFViewerApplication.error(e,p)})}}let webViewerOpenFileViaURL;webViewerOpenFileViaURL=function(x){if(x&&x.lastIndexOf("file:",0)===0){PDFViewerApplication.setTitleUsingUrl(x);const t=new XMLHttpRequest;t.onload=function(){PDFViewerApplication.open(new Uint8Array(t.response))},t.open("GET",x),t.responseType="arraybuffer",t.send();return}x&&PDFViewerApplication.open(x)};function webViewerPageRendered(x){const t=x.pageNumber,a=t-1,r=PDFViewerApplication.pdfViewer.getPageView(a);t===PDFViewerApplication.page&&PDFViewerApplication.toolbar.updateLoadingIndicatorState(!1),r&&(PDFViewerApplication.pdfSidebar.isThumbnailViewVisible&&PDFViewerApplication.pdfThumbnailViewer.getThumbnail(a).setImage(r),typeof Stats<"u"&&Stats.enabled&&r.stats&&Stats.add(t,r.stats),r.error&&PDFViewerApplication.l10n.get("rendering_error",null,"An error occurred while rendering the page.").then(i=>{PDFViewerApplication.error(i,r.error)}),PDFViewerApplication.externalServices.reportTelemetry({type:"pageInfo",timestamp:x.timestamp}),PDFViewerApplication.pdfDocument.getStats().then(function(i){PDFViewerApplication.externalServices.reportTelemetry({type:"documentStats",stats:i})}))}function webViewerPageMode({mode:x}){let t;switch(x){case"thumbs":t=_pdf_sidebar.SidebarView.THUMBS;break;case"bookmarks":case"outline":t=_pdf_sidebar.SidebarView.OUTLINE;break;case"attachments":t=_pdf_sidebar.SidebarView.ATTACHMENTS;break;case"none":t=_pdf_sidebar.SidebarView.NONE;break;default:console.error('Invalid "pagemode" hash parameter: '+x);return}PDFViewerApplication.pdfSidebar.switchView(t,!0)}function webViewerNamedAction(x){switch(x.action){case"GoToPage":PDFViewerApplication.appConfig.toolbar.pageNumber.select();break;case"Find":PDFViewerApplication.supportsIntegratedFind||PDFViewerApplication.findBar.toggle();break}}function webViewerPresentationModeChanged({active:x,switchInProgress:t}){let a=_ui_utils$1.PresentationModeState.NORMAL;t?a=_ui_utils$1.PresentationModeState.CHANGING:x&&(a=_ui_utils$1.PresentationModeState.FULLSCREEN),PDFViewerApplication.pdfViewer.presentationModeState=a}function webViewerSidebarViewChanged(x){PDFViewerApplication.pdfRenderingQueue.isThumbnailViewEnabled=PDFViewerApplication.pdfSidebar.isThumbnailViewVisible;const t=PDFViewerApplication.store;t&&PDFViewerApplication.isInitialViewSet&&t.set("sidebarView",x.view).catch(function(){})}function webViewerUpdateViewarea(x){const t=x.location,a=PDFViewerApplication.store;a&&PDFViewerApplication.isInitialViewSet&&a.setMultiple({page:t.pageNumber,zoom:t.scale,scrollLeft:t.left,scrollTop:t.top,rotation:t.rotation}).catch(function(){});const r=PDFViewerApplication.pdfLinkService.getAnchorUrl(t.pdfOpenParams);PDFViewerApplication.appConfig.toolbar.viewBookmark.href=r,PDFViewerApplication.appConfig.secondaryToolbar.viewBookmarkButton.href=r;const p=PDFViewerApplication.pdfViewer.getPageView(PDFViewerApplication.page-1).renderingState!==_pdf_rendering_queue.RenderingStates.FINISHED;PDFViewerApplication.toolbar.updateLoadingIndicatorState(p)}function webViewerScrollModeChanged(x){const t=PDFViewerApplication.store;t&&PDFViewerApplication.isInitialViewSet&&t.set("scrollMode",x.mode).catch(function(){})}function webViewerSpreadModeChanged(x){const t=PDFViewerApplication.store;t&&PDFViewerApplication.isInitialViewSet&&t.set("spreadMode",x.mode).catch(function(){})}function webViewerResize(){const{pdfDocument:x,pdfViewer:t}=PDFViewerApplication;if(!x)return;const a=t.currentScaleValue;(a==="auto"||a==="page-fit"||a==="page-width")&&(t.currentScaleValue=a),t.update()}function webViewerHashchange(x){const t=x.hash;t&&(PDFViewerApplication.isInitialViewSet?PDFViewerApplication.pdfHistory.popStateInProgress||PDFViewerApplication.pdfLinkService.setHash(t):PDFViewerApplication.initialBookmark=t)}let webViewerFileInputChange,webViewerOpenFile;webViewerFileInputChange=function(x){if(PDFViewerApplication.pdfViewer&&PDFViewerApplication.pdfViewer.isInPresentationMode)return;const t=x.fileInput.files[0];if(URL.createObjectURL&&!_app_options$1.AppOptions.get("disableCreateObjectURL")){let r=URL.createObjectURL(t);t.name&&(r={url:r,originalUrl:t.name}),PDFViewerApplication.open(r)}else{PDFViewerApplication.setTitleUsingUrl(t.name);const r=new FileReader;r.onload=function(p){const e=p.target.result;PDFViewerApplication.open(new Uint8Array(e))},r.readAsArrayBuffer(t)}const a=PDFViewerApplication.appConfig;a.toolbar.viewBookmark.setAttribute("hidden","true"),a.secondaryToolbar.viewBookmarkButton.setAttribute("hidden","true"),a.toolbar.download.setAttribute("hidden","true"),a.secondaryToolbar.downloadButton.setAttribute("hidden","true")},webViewerOpenFile=function(x){const t=PDFViewerApplication.appConfig.openFileInputName;document.getElementById(t).click()};function webViewerPresentationMode(){PDFViewerApplication.requestPresentationMode()}function webViewerPrint(){window.print()}function webViewerDownload(){PDFViewerApplication.download()}function webViewerFirstPage(){PDFViewerApplication.pdfDocument&&(PDFViewerApplication.page=1)}function webViewerLastPage(){PDFViewerApplication.pdfDocument&&(PDFViewerApplication.page=PDFViewerApplication.pagesCount)}function webViewerNextPage(){PDFViewerApplication.page++}function webViewerPreviousPage(){PDFViewerApplication.page--}function webViewerZoomIn(){PDFViewerApplication.zoomIn()}function webViewerZoomOut(){PDFViewerApplication.zoomOut()}function webViewerZoomReset(){PDFViewerApplication.zoomReset()}function webViewerPageNumberChanged(x){const t=PDFViewerApplication.pdfViewer;x.value!==""&&(t.currentPageLabel=x.value),x.value!==t.currentPageNumber.toString()&&x.value!==t.currentPageLabel&&PDFViewerApplication.toolbar.setPageNumber(t.currentPageNumber,t.currentPageLabel)}function webViewerScaleChanged(x){PDFViewerApplication.pdfViewer.currentScaleValue=x.value}function webViewerRotateCw(){PDFViewerApplication.rotatePages(90)}function webViewerRotateCcw(){PDFViewerApplication.rotatePages(-90)}function webViewerSwitchScrollMode(x){PDFViewerApplication.pdfViewer.scrollMode=x.mode}function webViewerSwitchSpreadMode(x){PDFViewerApplication.pdfViewer.spreadMode=x.mode}function webViewerDocumentProperties(){PDFViewerApplication.pdfDocumentProperties.open()}function webViewerFind(x){PDFViewerApplication.findController.executeCommand("find"+x.type,{query:x.query,phraseSearch:x.phraseSearch,caseSensitive:x.caseSensitive,entireWord:x.entireWord,highlightAll:x.highlightAll,findPrevious:x.findPrevious})}function webViewerFindFromUrlHash(x){PDFViewerApplication.findController.executeCommand("find",{query:x.query,phraseSearch:x.phraseSearch,caseSensitive:!1,entireWord:!1,highlightAll:!0,findPrevious:!1})}function webViewerUpdateFindMatchesCount({matchesCount:x}){PDFViewerApplication.supportsIntegratedFind?PDFViewerApplication.externalServices.updateFindMatchesCount(x):PDFViewerApplication.findBar.updateResultsCount(x)}function webViewerUpdateFindControlState({state:x,previous:t,matchesCount:a}){PDFViewerApplication.supportsIntegratedFind?PDFViewerApplication.externalServices.updateFindControlState({result:x,findPrevious:t,matchesCount:a}):PDFViewerApplication.findBar.updateUIState(x,t,a)}function webViewerScaleChanging(x){PDFViewerApplication.toolbar.setPageScale(x.presetValue,x.scale),PDFViewerApplication.pdfViewer.update()}function webViewerRotationChanging(x){PDFViewerApplication.pdfThumbnailViewer.pagesRotation=x.pagesRotation,PDFViewerApplication.forceRendering(),PDFViewerApplication.pdfViewer.currentPageNumber=x.pageNumber}function webViewerPageChanging(x){const t=x.pageNumber;if(PDFViewerApplication.toolbar.setPageNumber(t,x.pageLabel||null),PDFViewerApplication.secondaryToolbar.setPageNumber(t),PDFViewerApplication.pdfSidebar.isThumbnailViewVisible&&PDFViewerApplication.pdfThumbnailViewer.scrollThumbnailIntoView(t),typeof Stats<"u"&&Stats.enabled){const a=PDFViewerApplication.pdfViewer.getPageView(t-1);a&&a.stats&&Stats.add(t,a.stats)}}function webViewerVisibilityChange(x){document.visibilityState==="visible"&&setZoomDisabledTimeout()}let zoomDisabledTimeout=null;function setZoomDisabledTimeout(){zoomDisabledTimeout&&clearTimeout(zoomDisabledTimeout),zoomDisabledTimeout=setTimeout(function(){zoomDisabledTimeout=null},WHEEL_ZOOM_DISABLED_TIMEOUT)}function webViewerWheel(x){const{pdfViewer:t,supportedMouseWheelZoomModifierKeys:a}=PDFViewerApplication;if(!t.isInPresentationMode)if(x.ctrlKey&&a.ctrlKey||x.metaKey&&a.metaKey){if(x.preventDefault(),zoomDisabledTimeout||document.visibilityState==="hidden")return;const r=t.currentScale,e=(0,_ui_utils$1.normalizeWheelEventDelta)(x)*3;e<0?PDFViewerApplication.zoomOut(-e):PDFViewerApplication.zoomIn(e);const N=t.currentScale;if(r!==N){const w=N/r-1,$=t.container.getBoundingClientRect(),U=x.clientX-$.left,m=x.clientY-$.top;t.container.scrollLeft+=U*w,t.container.scrollTop+=m*w}}else setZoomDisabledTimeout()}function webViewerClick(x){if(!PDFViewerApplication.secondaryToolbar.isOpen)return;const t=PDFViewerApplication.appConfig;(PDFViewerApplication.pdfViewer.containsElement(x.target)||t.toolbar.container.contains(x.target)&&x.target!==t.secondaryToolbar.toggleButton)&&PDFViewerApplication.secondaryToolbar.close()}function webViewerKeyDown(x){if(PDFViewerApplication.overlayManager.active)return;let t=!1,a=!1;const r=(x.ctrlKey?1:0)|(x.altKey?2:0)|(x.shiftKey?4:0)|(x.metaKey?8:0),i=PDFViewerApplication.pdfViewer,p=i&&i.isInPresentationMode;if(r===1||r===8||r===5||r===12)switch(x.keyCode){case 70:PDFViewerApplication.supportsIntegratedFind||(PDFViewerApplication.findBar.open(),t=!0);break;case 71:if(!PDFViewerApplication.supportsIntegratedFind){const w=PDFViewerApplication.findController.state;w&&PDFViewerApplication.findController.executeCommand("findagain",{query:w.query,phraseSearch:w.phraseSearch,caseSensitive:w.caseSensitive,entireWord:w.entireWord,highlightAll:w.highlightAll,findPrevious:r===5||r===12}),t=!0}break;case 61:case 107:case 187:case 171:p||PDFViewerApplication.zoomIn(),t=!0;break;case 173:case 109:case 189:p||PDFViewerApplication.zoomOut(),t=!0;break;case 48:case 96:p||(setTimeout(function(){PDFViewerApplication.zoomReset()}),t=!1);break;case 38:(p||PDFViewerApplication.page>1)&&(PDFViewerApplication.page=1,t=!0,a=!0);break;case 40:(p||PDFViewerApplication.page<PDFViewerApplication.pagesCount)&&(PDFViewerApplication.page=PDFViewerApplication.pagesCount,t=!0,a=!0);break}if(r===1||r===8)switch(x.keyCode){case 83:PDFViewerApplication.download(),t=!0;break}if(r===3||r===10)switch(x.keyCode){case 80:PDFViewerApplication.requestPresentationMode(),t=!0;break;case 71:PDFViewerApplication.appConfig.toolbar.pageNumber.select(),t=!0;break}if(t){a&&!p&&i.focus(),x.preventDefault();return}const e=document.activeElement||document.querySelector(":focus"),N=e&&e.tagName.toUpperCase();if(!((N==="INPUT"||N==="TEXTAREA"||N==="SELECT"||e&&e.isContentEditable)&&x.keyCode!==27)){if(r===0){let w=0,$=!1;switch(x.keyCode){case 38:case 33:i.isVerticalScrollbarEnabled&&($=!0),w=-1;break;case 8:p||($=!0),w=-1;break;case 37:i.isHorizontalScrollbarEnabled&&($=!0);case 75:case 80:w=-1;break;case 27:PDFViewerApplication.secondaryToolbar.isOpen&&(PDFViewerApplication.secondaryToolbar.close(),t=!0),!PDFViewerApplication.supportsIntegratedFind&&PDFViewerApplication.findBar.opened&&(PDFViewerApplication.findBar.close(),t=!0);break;case 40:case 34:i.isVerticalScrollbarEnabled&&($=!0),w=1;break;case 13:case 32:p||($=!0),w=1;break;case 39:i.isHorizontalScrollbarEnabled&&($=!0);case 74:case 78:w=1;break;case 36:(p||PDFViewerApplication.page>1)&&(PDFViewerApplication.page=1,t=!0,a=!0);break;case 35:(p||PDFViewerApplication.page<PDFViewerApplication.pagesCount)&&(PDFViewerApplication.page=PDFViewerApplication.pagesCount,t=!0,a=!0);break;case 83:PDFViewerApplication.pdfCursorTools.switchTool(_pdf_cursor_tools.CursorTool.SELECT);break;case 72:PDFViewerApplication.pdfCursorTools.switchTool(_pdf_cursor_tools.CursorTool.HAND);break;case 82:PDFViewerApplication.rotatePages(90);break;case 115:PDFViewerApplication.pdfSidebar.toggle();break}w!==0&&(!$||i.currentScaleValue==="page-fit")&&(w>0?PDFViewerApplication.page<PDFViewerApplication.pagesCount&&PDFViewerApplication.page++:PDFViewerApplication.page>1&&PDFViewerApplication.page--,t=!0)}if(r===4)switch(x.keyCode){case 13:case 32:if(!p&&i.currentScaleValue!=="page-fit")break;PDFViewerApplication.page>1&&PDFViewerApplication.page--,t=!0;break;case 82:PDFViewerApplication.rotatePages(-90);break}!t&&!p&&(x.keyCode>=33&&x.keyCode<=40||x.keyCode===32&&N!=="BUTTON")&&(a=!0),a&&!i.containsElement(e)&&i.focus(),t&&x.preventDefault()}}function apiPageLayoutToSpreadMode(x){switch(x){case"SinglePage":case"OneColumn":return _ui_utils$1.SpreadMode.NONE;case"TwoColumnLeft":case"TwoPageLeft":return _ui_utils$1.SpreadMode.ODD;case"TwoColumnRight":case"TwoPageRight":return _ui_utils$1.SpreadMode.EVEN}return _ui_utils$1.SpreadMode.NONE}function apiPageModeToSidebarView(x){switch(x){case"UseNone":return _pdf_sidebar.SidebarView.NONE;case"UseThumbs":return _pdf_sidebar.SidebarView.THUMBS;case"UseOutlines":return _pdf_sidebar.SidebarView.OUTLINE;case"UseAttachments":return _pdf_sidebar.SidebarView.ATTACHMENTS}return _pdf_sidebar.SidebarView.NONE}const PDFPrintServiceFactory={instance:{supportsPrinting:!1,createPrintService(){throw new Error("Not implemented: createPrintService")}}};exports$8.PDFPrintServiceFactory=PDFPrintServiceFactory;const __CJS__export_default__$4=(module$8.exports==null?{}:module$8.exports).default||module$8.exports,__CJS__export_PDFViewerApplication__=(module$8.exports==null?{}:module$8.exports).PDFViewerApplication,__CJS__export_DefaultExternalServices__=(module$8.exports==null?{}:module$8.exports).DefaultExternalServices,__CJS__export_PDFPrintServiceFactory__=(module$8.exports==null?{}:module$8.exports).PDFPrintServiceFactory,__CJS__import__1__$1=Object.freeze(Object.defineProperty({__proto__:null,DefaultExternalServices:__CJS__export_DefaultExternalServices__,PDFPrintServiceFactory:__CJS__export_PDFPrintServiceFactory__,PDFViewerApplication:__CJS__export_PDFViewerApplication__,default:__CJS__export_default__$4},Symbol.toStringTag,{value:"Module"})),PDF_FILE_INPUT_ID="pdfFileInput",locale={default_locale:"zh",locales:{zh:{previous:{title:"上一页"},previous_label:{textContent:"上一页"},next:{title:"下一页"},next_label:{textContent:"下一页"},page:{title:"页面"},of_pages:{textContent:"/ {{pagesCount}}"},page_of_pages:{textContent:"({{pageNumber}} / {{pagesCount}})"},zoom_out:{title:"缩小"},zoom_out_label:{textContent:"缩小"},zoom_in:{title:"放大"},zoom_in_label:{textContent:"放大"},zoom:{title:"缩放"},presentation_mode:{title:"切换到演示模式"},presentation_mode_label:{textContent:"演示模式"},open_file:{title:"打开文件"},open_file_label:{textContent:"打开"},print:{title:"打印"},print_label:{textContent:"打印"},download:{title:"下载"},download_label:{textContent:"下载"},bookmark:{title:"当前在看的内容(复制或在新窗口中打开)"},bookmark_label:{textContent:"当前在看"},save:{title:"保存"},save_label:{textContent:"保存"},bookmark1:{title:"当前页面(在当前页面查看 URL)"},bookmark1_label:{textContent:"当前页面"},open_in_app:{title:"在应用中打开"},open_in_app_label:{textContent:"在应用中打开"},tools:{title:"工具"},tools_label:{textContent:"工具"},first_page:{title:"转到第一页"},first_page_label:{textContent:"转到第一页"},last_page:{title:"转到最后一页"},last_page_label:{textContent:"转到最后一页"},page_rotate_cw:{title:"顺时针旋转"},page_rotate_cw_label:{textContent:"顺时针旋转"},page_rotate_ccw:{title:"逆时针旋转"},page_rotate_ccw_label:{textContent:"逆时针旋转"},cursor_text_select_tool:{title:"启用文本选择工具"},cursor_text_select_tool_label:{textContent:"文本选择工具"},cursor_hand_tool:{title:"启用手形工具"},cursor_hand_tool_label:{textContent:"手形工具"},scroll_page:{title:"使用页面滚动"},scroll_page_label:{textContent:"页面滚动"},scroll_vertical:{title:"使用垂直滚动"},scroll_vertical_label:{textContent:"垂直滚动"},scroll_horizontal:{title:"使用水平滚动"},scroll_horizontal_label:{textContent:"水平滚动"},scroll_wrapped:{title:"使用平铺滚动"},scroll_wrapped_label:{textContent:"平铺滚动"},spread_none:{title:"不加入衔接页"},spread_none_label:{textContent:"单页视图"},spread_odd:{title:"加入衔接页使奇数页作为起始页"},spread_odd_label:{textContent:"双页视图"},spread_even:{title:"加入衔接页使偶数页作为起始页"},spread_even_label:{textContent:"书籍视图"},document_properties:{title:"文档属性…"},document_properties_label:{textContent:"文档属性…"},document_properties_file_name:{textContent:"文件名:"},document_properties_file_size:{textContent:"文件大小:"},document_properties_kb:{textContent:"{{size_kb}} KB ({{size_b}} 字节)"},document_properties_mb:{textContent:"{{size_mb}} MB ({{size_b}} 字节)"},document_properties_title:{textContent:"标题:"},document_properties_author:{textContent:"作者:"},document_properties_subject:{textContent:"主题:"},document_properties_keywords:{textContent:"关键词:"},document_properties_creation_date:{textContent:"创建日期:"},document_properties_modification_date:{textContent:"修改日期:"},document_properties_date_string:{textContent:"{{date}}, {{time}}"},document_properties_creator:{textContent:"创建者:"},document_properties_producer:{textContent:"PDF 生成器:"},document_properties_version:{textContent:"PDF 版本:"},document_properties_page_count:{textContent:"页数:"},document_properties_page_size:{textContent:"页面大小:"},document_properties_page_size_unit_inches:{textContent:"英寸"},document_properties_page_size_unit_millimeters:{textContent:"毫米"},document_properties_page_size_orientation_portrait:{textContent:"纵向"},document_properties_page_size_orientation_landscape:{textContent:"横向"},document_properties_page_size_name_a3:{textContent:"A3"},document_properties_page_size_name_a4:{textContent:"A4"},document_properties_page_size_name_letter:{textContent:"文本"},document_properties_page_size_name_legal:{textContent:"法律"},document_properties_page_size_dimension_string:{textContent:"{{width}} × {{height}} {{unit}}({{orientation}})"},document_properties_page_size_dimension_name_string:{textContent:"{{width}} × {{height}} {{unit}}({{name}},{{orientation}})"},document_properties_linearized:{textContent:"快速 Web 视图:"},document_properties_linearized_yes:{textContent:"是"},document_properties_linearized_no:{textContent:"否"},document_properties_close:{textContent:"关闭"},print_progress_message:{textContent:"正在准备打印文档…"},print_progress_percent:{textContent:"{{progress}}%"},print_progress_close:{textContent:"取消"},toggle_sidebar:{title:"切换侧栏"},toggle_sidebar_notification2:{title:"切换侧栏(文档所含的大纲/附件/图层)"},toggle_sidebar_label:{textContent:"切换侧栏"},document_outline:{title:"显示文档大纲(双击展开/折叠所有项)"},document_outline_label:{textContent:"文档大纲"},attachments:{title:"显示附件"},attachments_label:{textContent:"附件"},layers:{title:"显示图层(双击即可将所有图层重置为默认状态)"},layers_label:{textContent:"图层"},thumbs:{title:"显示缩略图"},thumbs_label:{textContent:"缩略图"},current_outline_item:{title:"查找当前大纲项目"},current_outline_item_label:{textContent:"当前大纲项目"},findbar:{title:"在文档中查找"},findbar_label:{textContent:"查找"},additional_layers:{textContent:"其他图层"},page_landmark:{textContent:"第 {{page}} 页"},thumb_page_title:{textContent:"第 {{page}} 页"},thumb_page_canvas:{textContent:"页面 {{page}} 的缩略图"},find_input:{title:"查找",placeholder:"在文档中查找…"},find_previous:{title:"查找词语上一次出现的位置"},find_previous_label:{textContent:"上一页"},find_next:{title:"查找词语后一次出现的位置"},find_next_label:{textContent:"下一页"},find_highlight:{textContent:"全部高亮显示"},find_match_case_label:{textContent:"区分大小写"},find_match_diacritics_label:{textContent:"匹配变音符号"},find_entire_word_label:{textContent:"全词匹配"},find_reached_top:{textContent:"到达文档开头,从末尾继续"},find_reached_bottom:{textContent:"到达文档末尾,从开头继续"},find_match_count:{textContent:"{[ plural(total) ]}"},"find_match_count[one]":{textContent:"第 {{current}} 项,共匹配 {{total}} 项"},"find_match_count[two]":{textContent:"第 {{current}} 项,共匹配 {{total}} 项"},"find_match_count[few]":{textContent:"第 {{current}} 项,共匹配 {{total}} 项"},"find_match_count[many]":{textContent:"第 {{current}} 项,共匹配 {{total}} 项"},"find_match_count[other]":{textContent:"第 {{current}} 项,共匹配 {{total}} 项"},find_match_count_limit:{textContent:"{[ plural(limit) ]}"},"find_match_count_limit[zero]":{textContent:"超过 {{limit}} 项匹配"},"find_match_count_limit[one]":{textContent:"超过 {{limit}} 项匹配"},"find_match_count_limit[two]":{textContent:"超过 {{limit}} 项匹配"},"find_match_count_limit[few]":{textContent:"超过 {{limit}} 项匹配"},"find_match_count_limit[many]":{textContent:"超过 {{limit}} 项匹配"},"find_match_count_limit[other]":{textContent:"超过 {{limit}} 项匹配"},find_not_found:{textContent:"找不到指定词语"},error_more_info:{textContent:"更多信息"},error_less_info:{textContent:"更少信息"},error_close:{textContent:"关闭"},error_version_info:{textContent:"PDF.js v{{version}} (build: {{build}})"},error_message:{textContent:"信息:{{message}}"},error_stack:{textContent:"堆栈:{{stack}}"},error_file:{textContent:"文件:{{file}}"},error_line:{textContent:"行号:{{line}}"},page_scale_width:{textContent:"适合页宽"},page_scale_fit:{textContent:"适合页面"},page_scale_auto:{textContent:"自动缩放"},page_scale_actual:{textContent:"实际大小"},page_scale_percent:{textContent:"{{scale}}%"},loading:{textContent:"正在加载…"},loading_error:{textContent:"加载 PDF 时发生错误。"},invalid_file_error:{textContent:"无效或损坏的 PDF 文件。"},missing_file_error:{textContent:"缺少 PDF 文件。"},unexpected_response_error:{textContent:"意外的服务器响应。"},rendering_error:{textContent:"渲染页面时发生错误。"},annotation_date_string:{textContent:"{{date}},{{time}}"},text_annotation_type:{alt:"[{{type}} 注释]"},password_label:{textContent:"输入密码以打开此 PDF 文件。"},password_invalid:{textContent:"密码无效。请重试。"},password_ok:{textContent:"确定"},password_cancel:{textContent:"取消"},printing_not_supported:{textContent:"警告:此浏览器尚未完整支持打印功能。"},printing_not_ready:{textContent:"警告:此 PDF 未完成加载,无法打印。"},web_fonts_disabled:{textContent:"Web 字体已被禁用:无法使用嵌入的 PDF 字体。"},editor_free_text2:{title:"文本"},editor_free_text2_label:{textContent:"文本"},editor_ink2:{title:"绘图"},editor_ink2_label:{textContent:"绘图"},free_text2_default_content:{textContent:"开始输入…"},editor_free_text_color:{textContent:"颜色"},editor_free_text_size:{textContent:"字号"},editor_ink_color:{textContent:"颜色"},editor_ink_thickness:{textContent:"粗细"},editor_ink_opacity:{textContent:"不透明度"},editor_free_text2_aria_label:{textContent:"文本编辑器"},editor_ink2_aria_label:{textContent:"绘图编辑器"},editor_ink_canvas_aria_label:{textContent:"用户创建图像"}}}},getEl=document.getElementById.bind(document),getAppConfig=(x={})=>({appContainer:getEl("pdf"),mainContainer:getEl("viewerContainer"),viewerContainer:getEl("viewer"),eventBus:null,toolbar:{container:getEl("toolbarViewer"),numPages:getEl(x.numPages||"numPages"),pageNumber:getEl(x.pageNumber||"pageNumber"),scaleSelectContainer:getEl("scaleSelectContainer"),scaleSelect:getEl("scaleSelect"),customScaleOption:getEl("customScaleOption"),previous:getEl(x.previousPage||"previous"),next:getEl(x.nextPage||"next"),zoomIn:getEl(x.zoomIn||"zoomIn"),zoomOut:getEl(x.zoomOut||"zoomOut"),viewFind:getEl(x.toggleFindbar||"viewFind"),openFile:getEl(x.openFile||"openFile"),print:getEl(x.print||"print"),presentationModeButton:getEl(x.presentationMode||"presentationMode"),download:getEl(x.download||"download"),viewBookmark:getEl(x.viewBookmark||"viewBookmark")},secondaryToolbar:{toolbar:getEl("secondaryToolbar"),toggleButton:getEl("secondaryToolbarToggle"),toolbarButtonContainer:getEl("secondaryToolbarButtonContainer"),presentationModeButton:getEl("secondaryPresentationMode"),openFileButton:getEl("secondaryOpenFile"),printButton:getEl("secondaryPrint"),downloadButton:getEl("secondaryDownload"),viewBookmarkButton:getEl("secondaryViewBookmark"),firstPageButton:getEl(x.firstPage||"firstPage"),lastPageButton:getEl(x.lastPage||"lastPage"),pageRotateCwButton:getEl(x.pageRotateCw||"pageRotateCw"),pageRotateCcwButton:getEl(x.pageRotateCcw||"pageRotateCcw"),cursorSelectToolButton:getEl(x.cursorSelectTool||"cursorSelectTool"),cursorHandToolButton:getEl(x.cursorHandTool||"cursorHandTool"),scrollVerticalButton:getEl(x.scrollVertical||"scrollVertical"),scrollHorizontalButton:getEl(x.scrollHorizontal||"scrollHorizontal"),scrollWrappedButton:getEl(x.scrollWrapped||"scrollWrapped"),spreadNoneButton:getEl(x.spreadNone||"spreadNone"),spreadOddButton:getEl(x.spreadOdd||"spreadOdd"),spreadEvenButton:getEl(x.spreadEven||"spreadEven"),documentPropertiesButton:getEl(x.documentProperties||"documentProperties")},fullscreen:{contextFirstPage:getEl("contextFirstPage"),contextLastPage:getEl("contextLastPage"),contextPageRotateCw:getEl("contextPageRotateCw"),contextPageRotateCcw:getEl("contextPageRotateCcw")},sidebar:{outerContainer:getEl("outerContainer"),viewerContainer:getEl("viewerContainer"),toggleButton:getEl(x.sidebarToggle||"sidebarToggle"),thumbnailButton:getEl(x.viewThumbnail||"viewThumbnail"),outlineButton:getEl(x.viewOutline||"viewOutline"),attachmentsButton:getEl(x.viewAttachments||"viewAttachments"),thumbnailView:getEl("thumbnailView"),outlineView:getEl("outlineView"),attachmentsView:getEl("attachmentsView")},sidebarResizer:{outerContainer:getEl("outerContainer"),resizer:getEl("sidebarResizer")},findBar:{bar:getEl(x.findbar||"findbar"),toggleButton:getEl(x.toggleFindbar||"viewFind"),findField:getEl(x.findInput||"findInput"),highlightAllCheckbox:getEl(x.findHighlightAll||"findHighlightAll"),caseSensitiveCheckbox:getEl(x.findMatchCase||"findMatchCase"),entireWordCheckbox:getEl(x.findEntireWord||"findEntireWord"),findMsg:getEl(x.findMessage||"findMsg"),findResultsCount:getEl(x.findResultsCount||"findResultsCount"),findPreviousButton:getEl(x.findPrevious||"findPrevious"),findNextButton:getEl(x.findNext||"findNext")},passwordOverlay:{overlayName:"passwordOverlay",container:getEl("passwordOverlay"),label:getEl("passwordText"),input:getEl("password"),submitButton:getEl("passwordSubmit"),cancelButton:getEl("passwordCancel")},documentProperties:{overlayName:"documentPropertiesOverlay",container:getEl("documentPropertiesOverlay"),closeButton:getEl("documentPropertiesClose"),fields:{fileName:getEl("fileNameField"),fileSize:getEl("fileSizeField"),title:getEl("titleField"),author:getEl("authorField"),subject:getEl("subjectField"),keywords:getEl("keywordsField"),creationDate:getEl("creationDateField"),modificationDate:getEl("modificationDateField"),creator:getEl("creatorField"),producer:getEl("producerField"),version:getEl("versionField"),pageCount:getEl("pageCountField"),pageSize:getEl("pageSizeField"),linearized:getEl("linearizedField")}},errorWrapper:{container:getEl("errorWrapper"),errorMessage:getEl("errorMessage"),closeButton:getEl("errorClose"),errorMoreInfo:getEl("errorMoreInfo"),moreInfoButton:getEl("errorShowMore"),lessInfoButton:getEl("errorShowLess")},printContainer:getEl("printContainer"),openFileInputName:PDF_FILE_INPUT_ID}),toolbarConfig={sidebar:{viewThumbnail:!0,viewOutline:!0,viewAttachments:!0},secondaryToolbar:{secondaryPresentationMode:!0,secondaryOpenFile:!0,secondaryPrint:!0,secondaryDownload:!0,secondaryViewBookmark:!0,firstPage:!0,lastPage:!0,pageRotateCw:!0,pageRotateCcw:!0,cursorSelectTool:!0,cursorHandTool:!0,scrollVertical:!0,scrollHorizontal:!0,scrollWrapped:!0,spreadNone:!0,spreadOdd:!0,spreadEven:!0,documentProperties:!0},toolbar:{toolbarViewerLeft:{findbar:!0,previous:!0,next:!0,pageNumber:!0},toolbarViewerRight:{presentationMode:!0,openFile:!0,print:!0,download:!0,viewBookmark:!0},toolbarViewerMiddle:{zoomOut:!0,zoomIn:!0,scaleSelectContainer:!0}},errorWrapper:!0},getToolbarConfigValue=(x,t)=>{const a=t.split(".");let r=x[a[0]];for(let i=1;i<a.length&&typeof r=="object";i++)r=r[a[i]];return r};var module$7={exports:{}},exports$7=module$7.exports;(function x(t,a){typeof exports$7=="object"&&typeof module$7=="object"?module$7.exports=a():typeof define=="function"&&define.amd?define("pdfjs-dist/build/pdf",[],a):typeof exports$7=="object"?exports$7["pdfjs-dist/build/pdf"]=a():t["pdfjs-dist/build/pdf"]=t.pdfjsLib=a()})(void 0,function(){return function(x){var t={};function a(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return x[r].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=x,a.c=t,a.d=function(r,i,p){a.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:p})},a.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},a.t=function(r,i){if(i&1&&(r=a(r)),i&8||i&4&&typeof r=="object"&&r&&r.__esModule)return r;var p=Object.create(null);if(a.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:r}),i&2&&typeof r!="string")for(var e in r)a.d(p,e,(function(N){return r[N]}).bind(null,e));return p},a.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return a.d(i,"a",i),i},a.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},a.p="",a(a.s=0)}([function(x,t,a){var r=a(1),i=a(190),p=a(205),e=a(206),N=a(194),w=a(207),$=a(199),U=a(196);{var m=a(48),n=m.isNodeJS;if(n){var J=a(208).PDFNodeStream;i.setPDFNetworkStreamFactory(function(M){return new J(M)})}else{var O=a(211).PDFNetworkStream,L;N.isFetchSupported()&&(L=a(212).PDFFetchStream),i.setPDFNetworkStreamFactory(function(M){return L&&N.isValidFetchUrl(M.url)?new L(M):new O(M)})}}t.build=i.build,t.version=i.version,t.getDocument=i.getDocument,t.LoopbackPort=i.LoopbackPort,t.PDFDataRangeTransport=i.PDFDataRangeTransport,t.PDFWorker=i.PDFWorker,t.renderTextLayer=p.renderTextLayer,t.AnnotationLayer=e.AnnotationLayer,t.createPromiseCapability=r.createPromiseCapability,t.PasswordResponses=r.PasswordResponses,t.InvalidPDFException=r.InvalidPDFException,t.MissingPDFException=r.MissingPDFException,t.SVGGraphics=w.SVGGraphics,t.NativeImageDecoding=r.NativeImageDecoding,t.CMapCompressionType=r.CMapCompressionType,t.PermissionFlag=r.PermissionFlag,t.UnexpectedResponseException=r.UnexpectedResponseException,t.OPS=r.OPS,t.VerbosityLevel=r.VerbosityLevel,t.UNSUPPORTED_FEATURES=r.UNSUPPORTED_FEATURES,t.createValidAbsoluteUrl=r.createValidAbsoluteUrl,t.createObjectURL=r.createObjectURL,t.removeNullCharacters=r.removeNullCharacters,t.shadow=r.shadow,t.Util=r.Util,t.RenderingCancelledException=N.RenderingCancelledException,t.getFilenameFromUrl=N.getFilenameFromUrl,t.LinkTarget=N.LinkTarget,t.addLinkAttributes=N.addLinkAttributes,t.loadScript=N.loadScript,t.PDFDateString=N.PDFDateString,t.GlobalWorkerOptions=$.GlobalWorkerOptions,t.apiCompatibilityParams=U.apiCompatibilityParams},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=re,t.arraysToBytes=ie,t.assert=y,t.bytesToString=ae,t.createPromiseCapability=Fe,t.getVerbosityLevel=R,t.info=E,t.isArrayBuffer=Te,t.isArrayEqual=ke,t.isBool=se,t.isEmptyObj=ue,t.isNum=pe,t.isString=we,t.isSameOrigin=I,t.createValidAbsoluteUrl=V,t.removeNullCharacters=ne,t.setVerbosityLevel=S,t.shadow=B,t.string32=de,t.stringToBytes=te,t.stringToPDFString=Se,t.stringToUTF8String=_e,t.utf8StringToString=ge,t.warn=A,t.unreachable=C,t.IsEvalSupportedCached=t.IsLittleEndianCached=t.createObjectURL=t.FormatError=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.NativeImageDecoding=t.MissingPDFException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=t.BaseException=void 0,a(2);function r(he,Ee){for(var ve=0;ve<Ee.length;ve++){var ye=Ee[ve];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(he,ye.key,ye)}}function i(he,Ee,ve){return ve&&r(he,ve),he}function p(he){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(ve){return typeof ve}:p=function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve},p(he)}function e(he,Ee){if(!(he instanceof Ee))throw new TypeError("Cannot call a class as a function")}function N(he,Ee){return Ee&&(p(Ee)==="object"||typeof Ee=="function")?Ee:w(he)}function w(he){if(he===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return he}function $(he){return $=Object.setPrototypeOf?Object.getPrototypeOf:function(ve){return ve.__proto__||Object.getPrototypeOf(ve)},$(he)}function U(he,Ee){if(typeof Ee!="function"&&Ee!==null)throw new TypeError("Super expression must either be null or a function");he.prototype=Object.create(Ee&&Ee.prototype,{constructor:{value:he,writable:!0,configurable:!0}}),Ee&&m(he,Ee)}function m(he,Ee){return m=Object.setPrototypeOf||function(ye,Oe){return ye.__proto__=Oe,ye},m(he,Ee)}var n=[1,0,0,1,0,0];t.IDENTITY_MATRIX=n;var J=[.001,0,0,.001,0,0];t.FONT_IDENTITY_MATRIX=J;var O={NONE:"none",DECODE:"decode",DISPLAY:"display"};t.NativeImageDecoding=O;var L={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.PermissionFlag=L;var M={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};t.TextRenderingMode=M;var P={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.ImageKind=P;var b={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};t.AnnotationType=b;var _={MARKED:"Marked",REVIEW:"Review"};t.AnnotationStateModelType=_;var d={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationMarkedState=d;var c={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReviewState=c;var h={GROUP:"Group",REPLY:"R"};t.AnnotationReplyType=h;var f={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFlag=f;var g={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};t.AnnotationFieldFlag=g;var v={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.AnnotationBorderStyleType=v;var s={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.StreamType=s;var o={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};t.FontType=o;var u={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=u;var l={NONE:0,BINARY:1,STREAM:2};t.CMapCompressionType=l;var F={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};t.OPS=F;var T={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"};t.UNSUPPORTED_FEATURES=T;var D={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};t.PasswordResponses=D;var k=u.WARNINGS;function S(he){Number.isInteger(he)&&(k=he)}function R(){return k}function E(he){k>=u.INFOS&&console.log("Info: ".concat(he))}function A(he){k>=u.WARNINGS&&console.log("Warning: ".concat(he))}function C(he){throw new Error(he)}function y(he,Ee){he||C(Ee)}function I(he,Ee){var ve;try{if(ve=new URL(he),!ve.origin||ve.origin==="null")return!1}catch{return!1}var ye=new URL(Ee,ve);return ve.origin===ye.origin}function H(he){if(!he)return!1;switch(he.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function V(he,Ee){if(!he)return null;try{var ve=Ee?new URL(he,Ee):new URL(he);if(H(ve))return ve}catch{}return null}function B(he,Ee,ve){return Object.defineProperty(he,Ee,{value:ve,enumerable:!0,configurable:!0,writable:!1}),ve}var W=function(){function Ee(ve){this.constructor===Ee&&C("Cannot initialize BaseException."),this.message=ve,this.name=this.constructor.name}return Ee.prototype=new Error,Ee.constructor=Ee,Ee}();t.BaseException=W;var G=function(he){U(Ee,he);function Ee(ve,ye){var Oe;return e(this,Ee),Oe=N(this,$(Ee).call(this,ve)),Oe.code=ye,Oe}return Ee}(W);t.PasswordException=G;var q=function(he){U(Ee,he);function Ee(ve,ye){var Oe;return e(this,Ee),Oe=N(this,$(Ee).call(this,ve)),Oe.details=ye,Oe}return Ee}(W);t.UnknownErrorException=q;var z=function(he){U(Ee,he);function Ee(){return e(this,Ee),N(this,$(Ee).apply(this,arguments))}return Ee}(W);t.InvalidPDFException=z;var j=function(he){U(Ee,he);function Ee(){return e(this,Ee),N(this,$(Ee).apply(this,arguments))}return Ee}(W);t.MissingPDFException=j;var Y=function(he){U(Ee,he);function Ee(ve,ye){var Oe;return e(this,Ee),Oe=N(this,$(Ee).call(this,ve)),Oe.status=ye,Oe}return Ee}(W);t.UnexpectedResponseException=Y;var K=function(he){U(Ee,he);function Ee(){return e(this,Ee),N(this,$(Ee).apply(this,arguments))}return Ee}(W);t.FormatError=K;var Z=function(he){U(Ee,he);function Ee(){return e(this,Ee),N(this,$(Ee).apply(this,arguments))}return Ee}(W);t.AbortException=Z;var ee=/\x00/g;function ne(he){return typeof he!="string"?(A("The argument for removeNullCharacters must be a string."),he):he.replace(ee,"")}function ae(he){y(he!==null&&p(he)==="object"&&he.length!==void 0,"Invalid argument for bytesToString");var Ee=he.length,ve=8192;if(Ee<ve)return String.fromCharCode.apply(null,he);for(var ye=[],Oe=0;Oe<Ee;Oe+=ve){var Ne=Math.min(Oe+ve,Ee),Ge=he.subarray(Oe,Ne);ye.push(String.fromCharCode.apply(null,Ge))}return ye.join("")}function te(he){y(typeof he=="string","Invalid argument for stringToBytes");for(var Ee=he.length,ve=new Uint8Array(Ee),ye=0;ye<Ee;++ye)ve[ye]=he.charCodeAt(ye)&255;return ve}function re(he){return he.length!==void 0?he.length:(y(he.byteLength!==void 0),he.byteLength)}function ie(he){var Ee=he.length;if(Ee===1&&he[0]instanceof Uint8Array)return he[0];for(var ve=0,ye=0;ye<Ee;ye++)ve+=re(he[ye]);for(var Oe=0,Ne=new Uint8Array(ve),Ge=0;Ge<Ee;Ge++){var ze=he[Ge];ze instanceof Uint8Array||(typeof ze=="string"?ze=te(ze):ze=new Uint8Array(ze));var tt=ze.byteLength;Ne.set(ze,Oe),Oe+=tt}return Ne}function de(he){return String.fromCharCode(he>>24&255,he>>16&255,he>>8&255,he&255)}function oe(){var he=new Uint8Array(4);he[0]=1;var Ee=new Uint32Array(he.buffer,0,1);return Ee[0]===1}var le={get value(){return B(this,"value",oe())}};t.IsLittleEndianCached=le;function me(){try{return new Function(""),!0}catch{return!1}}var Pe={get value(){return B(this,"value",me())}};t.IsEvalSupportedCached=Pe;var Ce=["rgb(",0,",",0,",",0,")"],xe=function(){function he(){e(this,he)}return i(he,null,[{key:"makeCssRgb",value:function(ve,ye,Oe){return Ce[1]=ve,Ce[3]=ye,Ce[5]=Oe,Ce.join("")}},{key:"transform",value:function(ve,ye){return[ve[0]*ye[0]+ve[2]*ye[1],ve[1]*ye[0]+ve[3]*ye[1],ve[0]*ye[2]+ve[2]*ye[3],ve[1]*ye[2]+ve[3]*ye[3],ve[0]*ye[4]+ve[2]*ye[5]+ve[4],ve[1]*ye[4]+ve[3]*ye[5]+ve[5]]}},{key:"applyTransform",value:function(ve,ye){var Oe=ve[0]*ye[0]+ve[1]*ye[2]+ye[4],Ne=ve[0]*ye[1]+ve[1]*ye[3]+ye[5];return[Oe,Ne]}},{key:"applyInverseTransform",value:function(ve,ye){var Oe=ye[0]*ye[3]-ye[1]*ye[2],Ne=(ve[0]*ye[3]-ve[1]*ye[2]+ye[2]*ye[5]-ye[4]*ye[3])/Oe,Ge=(-ve[0]*ye[1]+ve[1]*ye[0]+ye[4]*ye[1]-ye[5]*ye[0])/Oe;return[Ne,Ge]}},{key:"getAxialAlignedBoundingBox",value:function(ve,ye){var Oe=he.applyTransform(ve,ye),Ne=he.applyTransform(ve.slice(2,4),ye),Ge=he.applyTransform([ve[0],ve[3]],ye),ze=he.applyTransform([ve[2],ve[1]],ye);return[Math.min(Oe[0],Ne[0],Ge[0],ze[0]),Math.min(Oe[1],Ne[1],Ge[1],ze[1]),Math.max(Oe[0],Ne[0],Ge[0],ze[0]),Math.max(Oe[1],Ne[1],Ge[1],ze[1])]}},{key:"inverseTransform",value:function(ve){var ye=ve[0]*ve[3]-ve[1]*ve[2];return[ve[3]/ye,-ve[1]/ye,-ve[2]/ye,ve[0]/ye,(ve[2]*ve[5]-ve[4]*ve[3])/ye,(ve[4]*ve[1]-ve[5]*ve[0])/ye]}},{key:"apply3dTransform",value:function(ve,ye){return[ve[0]*ye[0]+ve[1]*ye[1]+ve[2]*ye[2],ve[3]*ye[0]+ve[4]*ye[1]+ve[5]*ye[2],ve[6]*ye[0]+ve[7]*ye[1]+ve[8]*ye[2]]}},{key:"singularValueDecompose2dScale",value:function(ve){var ye=[ve[0],ve[2],ve[1],ve[3]],Oe=ve[0]*ye[0]+ve[1]*ye[2],Ne=ve[0]*ye[1]+ve[1]*ye[3],Ge=ve[2]*ye[0]+ve[3]*ye[2],ze=ve[2]*ye[1]+ve[3]*ye[3],tt=(Oe+ze)/2,rt=Math.sqrt((Oe+ze)*(Oe+ze)-4*(Oe*ze-Ge*Ne))/2,xt=tt+rt||1,ft=tt-rt||1;return[Math.sqrt(xt),Math.sqrt(ft)]}},{key:"normalizeRect",value:function(ve){var ye=ve.slice(0);return ve[0]>ve[2]&&(ye[0]=ve[2],ye[2]=ve[0]),ve[1]>ve[3]&&(ye[1]=ve[3],ye[3]=ve[1]),ye}},{key:"intersect",value:function(ve,ye){function Oe(tt,rt){return tt-rt}var Ne=[ve[0],ve[2],ye[0],ye[2]].sort(Oe),Ge=[ve[1],ve[3],ye[1],ye[3]].sort(Oe),ze=[];if(ve=he.normalizeRect(ve),ye=he.normalizeRect(ye),Ne[0]===ve[0]&&Ne[1]===ye[0]||Ne[0]===ye[0]&&Ne[1]===ve[0])ze[0]=Ne[1],ze[2]=Ne[2];else return null;if(Ge[0]===ve[1]&&Ge[1]===ye[1]||Ge[0]===ye[1]&&Ge[1]===ve[1])ze[1]=Ge[1],ze[3]=Ge[2];else return null;return ze}}]),he}();t.Util=xe;var be=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function Se(he){var Ee=he.length,ve=[];if(he[0]==="þ"&&he[1]==="ÿ")for(var ye=2;ye<Ee;ye+=2)ve.push(String.fromCharCode(he.charCodeAt(ye)<<8|he.charCodeAt(ye+1)));else if(he[0]==="ÿ"&&he[1]==="þ")for(var Oe=2;Oe<Ee;Oe+=2)ve.push(String.fromCharCode(he.charCodeAt(Oe+1)<<8|he.charCodeAt(Oe)));else for(var Ne=0;Ne<Ee;++Ne){var Ge=be[he.charCodeAt(Ne)];ve.push(Ge?String.fromCharCode(Ge):he.charAt(Ne))}return ve.join("")}function _e(he){return decodeURIComponent(escape(he))}function ge(he){return unescape(encodeURIComponent(he))}function ue(he){for(var Ee in he)return!1;return!0}function se(he){return typeof he=="boolean"}function pe(he){return typeof he=="number"}function we(he){return typeof he=="string"}function Te(he){return p(he)==="object"&&he!==null&&he.byteLength!==void 0}function ke(he,Ee){return he.length!==Ee.length?!1:he.every(function(ve,ye){return ve===Ee[ye]})}function Fe(){var he=Object.create(null),Ee=!1;return Object.defineProperty(he,"settled",{get:function(){return Ee}}),he.promise=new Promise(function(ve,ye){he.resolve=function(Oe){Ee=!0,ve(Oe)},he.reject=function(Oe){Ee=!0,ye(Oe)}}),he}var Le=function(){var Ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(ye,Oe){var Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!Ne&&URL.createObjectURL){var Ge=new Blob([ye],{type:Oe});return URL.createObjectURL(Ge)}for(var ze="data:".concat(Oe,";base64,"),tt=0,rt=ye.length;tt<rt;tt+=3){var xt=ye[tt]&255,ft=ye[tt+1]&255,lt=ye[tt+2]&255,ht=xt>>2,St=(xt&3)<<4|ft>>4,wt=tt+1<rt?(ft&15)<<2|lt>>6:64,vt=tt+2<rt?lt&63:64;ze+=Ee[ht]+Ee[St]+Ee[wt]+Ee[vt]}return ze}}();t.createObjectURL=Le},function(x,t,a){function r($){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(m){return typeof m}:r=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},r($)}if(typeof globalThis>"u"||!globalThis._pdfjsCompatibilityChecked){(typeof globalThis>"u"||globalThis.Math!==Math)&&(globalThis=a(3)),globalThis._pdfjsCompatibilityChecked=!0;var i=a(48),p=i.isNodeJS,e=(typeof window>"u"?"undefined":r(window))==="object"&&(typeof document>"u"?"undefined":r(document))==="object",N=typeof navigator<"u"&&navigator.userAgent||"",w=/Trident/.test(N);(function(){globalThis.btoa||!p||(globalThis.btoa=function(U){return Buffer.from(U,"binary").toString("base64")})})(),function(){globalThis.atob||!p||(globalThis.atob=function(U){return Buffer.from(U,"base64").toString("binary")})}(),function(){e&&(typeof Element.prototype.remove<"u"||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}))}(),function(){if(!(!e||p)){var U=document.createElement("div");if(U.classList.add("testOne","testTwo"),!(U.classList.contains("testOne")===!0&&U.classList.contains("testTwo")===!0)){var m=DOMTokenList.prototype.add,n=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var J=arguments.length,O=new Array(J),L=0;L<J;L++)O[L]=arguments[L];for(var M=0,P=O;M<P.length;M++){var b=P[M];m.call(this,b)}},DOMTokenList.prototype.remove=function(){for(var J=arguments.length,O=new Array(J),L=0;L<J;L++)O[L]=arguments[L];for(var M=0,P=O;M<P.length;M++){var b=P[M];n.call(this,b)}}}}}(),function(){if(!(!e||p)){var U=document.createElement("div");U.classList.toggle("test",0)!==!1&&(DOMTokenList.prototype.toggle=function(m){var n=arguments.length>1?!!arguments[1]:!this.contains(m);return this[n?"add":"remove"](m),n})}}(),function(){if(!(!e||!w)){var U=window.history.pushState,m=window.history.replaceState;window.history.pushState=function(n,J,O){var L=O===void 0?[n,J]:[n,J,O];U.apply(this,L)},window.history.replaceState=function(n,J,O){var L=O===void 0?[n,J]:[n,J,O];m.apply(this,L)}}}(),function(){String.prototype.startsWith||a(49)}(),function(){String.prototype.endsWith||a(60)}(),function(){String.prototype.includes||a(62)}(),function(){Array.prototype.includes||a(64)}(),function(){Array.from||a(72)}(),function(){Object.assign||a(94)}(),function(){Math.log2||(Math.log2=a(97))}(),function(){Number.isNaN||(Number.isNaN=a(99))}(),function(){Number.isInteger||(Number.isInteger=a(101))}(),function(){globalThis.Promise&&globalThis.Promise.allSettled||(globalThis.Promise=a(104))}(),function(){globalThis.URL=a(128)}(),function(){var U=!1;if(typeof ReadableStream<"u")try{new ReadableStream({start:function(n){n.close()}}),U=!0}catch{}U||(globalThis.ReadableStream=a(135).ReadableStream)}(),function(){globalThis.Map&&globalThis.Map.prototype.entries||(globalThis.Map=a(136))}(),function(){globalThis.Set&&globalThis.Set.prototype.entries||(globalThis.Set=a(143))}(),function(){globalThis.WeakMap||(globalThis.WeakMap=a(145))}(),function(){globalThis.WeakSet||(globalThis.WeakSet=a(151))}(),function(){String.prototype.codePointAt||a(153)}(),function(){String.fromCodePoint||(String.fromCodePoint=a(155))}(),function(){globalThis.Symbol||a(157)}(),function(){String.prototype.padStart||a(180)}(),function(){String.prototype.padEnd||a(185)}(),function(){Object.values||(Object.values=a(187))}()}},function(x,t,a){a(4),x.exports=a(6)},function(x,t,a){var r=a(5),i=a(6);r({global:!0},{globalThis:i})},function(x,t,a){var r=a(6),i=a(7).f,p=a(21),e=a(24),N=a(25),w=a(35),$=a(47);x.exports=function(U,m){var n=U.target,J=U.global,O=U.stat,L,M,P,b,_,d;if(J?M=r:O?M=r[n]||N(n,{}):M=(r[n]||{}).prototype,M)for(P in m){if(_=m[P],U.noTargetGet?(d=i(M,P),b=d&&d.value):b=M[P],L=$(J?P:n+(O?".":"#")+P,U.forced),!L&&b!==void 0){if(typeof _==typeof b)continue;w(_,b)}(U.sham||b&&b.sham)&&p(_,"sham",!0),e(M,P,_,U)}}},function(x,t){var a=function(r){return r&&r.Math==Math&&r};x.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof global=="object"&&global)||Function("return this")()},function(x,t,a){var r=a(8),i=a(10),p=a(11),e=a(12),N=a(16),w=a(18),$=a(19),U=Object.getOwnPropertyDescriptor;t.f=r?U:function(n,J){if(n=e(n),J=N(J,!0),$)try{return U(n,J)}catch{}if(w(n,J))return p(!i.f.call(n,J),n[J])}},function(x,t,a){var r=a(9);x.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(x,t){x.exports=function(a){try{return!!a()}catch{return!0}}},function(x,t,a){var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,p=i&&!r.call({1:2},1);t.f=p?function(N){var w=i(this,N);return!!w&&w.enumerable}:r},function(x,t){x.exports=function(a,r){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:r}}},function(x,t,a){var r=a(13),i=a(15);x.exports=function(p){return r(i(p))}},function(x,t,a){var r=a(9),i=a(14),p="".split;x.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return i(e)=="String"?p.call(e,""):Object(e)}:Object},function(x,t){var a={}.toString;x.exports=function(r){return a.call(r).slice(8,-1)}},function(x,t){x.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},function(x,t,a){var r=a(17);x.exports=function(i,p){if(!r(i))return i;var e,N;if(p&&typeof(e=i.toString)=="function"&&!r(N=e.call(i))||typeof(e=i.valueOf)=="function"&&!r(N=e.call(i))||!p&&typeof(e=i.toString)=="function"&&!r(N=e.call(i)))return N;throw TypeError("Can't convert object to primitive value")}},function(x,t){x.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}},function(x,t){var a={}.hasOwnProperty;x.exports=function(r,i){return a.call(r,i)}},function(x,t,a){var r=a(8),i=a(9),p=a(20);x.exports=!r&&!i(function(){return Object.defineProperty(p("div"),"a",{get:function(){return 7}}).a!=7})},function(x,t,a){var r=a(6),i=a(17),p=r.document,e=i(p)&&i(p.createElement);x.exports=function(N){return e?p.createElement(N):{}}},function(x,t,a){var r=a(8),i=a(22),p=a(11);x.exports=r?function(e,N,w){return i.f(e,N,p(1,w))}:function(e,N,w){return e[N]=w,e}},function(x,t,a){var r=a(8),i=a(19),p=a(23),e=a(16),N=Object.defineProperty;t.f=r?N:function($,U,m){if(p($),U=e(U,!0),p(m),i)try{return N($,U,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&($[U]=m.value),$}},function(x,t,a){var r=a(17);x.exports=function(i){if(!r(i))throw TypeError(String(i)+" is not an object");return i}},function(x,t,a){var r=a(6),i=a(21),p=a(18),e=a(25),N=a(26),w=a(28),$=w.get,U=w.enforce,m=String(String).split("String");(x.exports=function(n,J,O,L){var M=L?!!L.unsafe:!1,P=L?!!L.enumerable:!1,b=L?!!L.noTargetGet:!1;if(typeof O=="function"&&(typeof J=="string"&&!p(O,"name")&&i(O,"name",J),U(O).source=m.join(typeof J=="string"?J:"")),n===r){P?n[J]=O:e(J,O);return}else M?!b&&n[J]&&(P=!0):delete n[J];P?n[J]=O:i(n,J,O)})(Function.prototype,"toString",function(){return typeof this=="function"&&$(this).source||N(this)})},function(x,t,a){var r=a(6),i=a(21);x.exports=function(p,e){try{i(r,p,e)}catch{r[p]=e}return e}},function(x,t,a){var r=a(27),i=Function.toString;typeof r.inspectSource!="function"&&(r.inspectSource=function(p){return i.call(p)}),x.exports=r.inspectSource},function(x,t,a){var r=a(6),i=a(25),p="__core-js_shared__",e=r[p]||i(p,{});x.exports=e},function(x,t,a){var r=a(29),i=a(6),p=a(17),e=a(21),N=a(18),w=a(30),$=a(34),U=i.WeakMap,m,n,J,O=function(c){return J(c)?n(c):m(c,{})},L=function(c){return function(h){var f;if(!p(h)||(f=n(h)).type!==c)throw TypeError("Incompatible receiver, "+c+" required");return f}};if(r){var M=new U,P=M.get,b=M.has,_=M.set;m=function(c,h){return _.call(M,c,h),h},n=function(c){return P.call(M,c)||{}},J=function(c){return b.call(M,c)}}else{var d=w("state");$[d]=!0,m=function(c,h){return e(c,d,h),h},n=function(c){return N(c,d)?c[d]:{}},J=function(c){return N(c,d)}}x.exports={set:m,get:n,has:J,enforce:O,getterFor:L}},function(x,t,a){var r=a(6),i=a(26),p=r.WeakMap;x.exports=typeof p=="function"&&/native code/.test(i(p))},function(x,t,a){var r=a(31),i=a(33),p=r("keys");x.exports=function(e){return p[e]||(p[e]=i(e))}},function(x,t,a){var r=a(32),i=a(27);(x.exports=function(p,e){return i[p]||(i[p]=e!==void 0?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(x,t){x.exports=!1},function(x,t){var a=0,r=Math.random();x.exports=function(i){return"Symbol("+String(i===void 0?"":i)+")_"+(++a+r).toString(36)}},function(x,t){x.exports={}},function(x,t,a){var r=a(18),i=a(36),p=a(7),e=a(22);x.exports=function(N,w){for(var $=i(w),U=e.f,m=p.f,n=0;n<$.length;n++){var J=$[n];r(N,J)||U(N,J,m(w,J))}}},function(x,t,a){var r=a(37),i=a(39),p=a(46),e=a(23);x.exports=r("Reflect","ownKeys")||function(w){var $=i.f(e(w)),U=p.f;return U?$.concat(U(w)):$}},function(x,t,a){var r=a(38),i=a(6),p=function(e){return typeof e=="function"?e:void 0};x.exports=function(e,N){return arguments.length<2?p(r[e])||p(i[e]):r[e]&&r[e][N]||i[e]&&i[e][N]}},function(x,t,a){var r=a(6);x.exports=r},function(x,t,a){var r=a(40),i=a(45),p=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(N){return r(N,p)}},function(x,t,a){var r=a(18),i=a(12),p=a(41).indexOf,e=a(34);x.exports=function(N,w){var $=i(N),U=0,m=[],n;for(n in $)!r(e,n)&&r($,n)&&m.push(n);for(;w.length>U;)r($,n=w[U++])&&(~p(m,n)||m.push(n));return m}},function(x,t,a){var r=a(12),i=a(42),p=a(44),e=function(N){return function(w,$,U){var m=r(w),n=i(m.length),J=p(U,n),O;if(N&&$!=$){for(;n>J;)if(O=m[J++],O!=O)return!0}else for(;n>J;J++)if((N||J in m)&&m[J]===$)return N||J||0;return!N&&-1}};x.exports={includes:e(!0),indexOf:e(!1)}},function(x,t,a){var r=a(43),i=Math.min;x.exports=function(p){return p>0?i(r(p),9007199254740991):0}},function(x,t){var a=Math.ceil,r=Math.floor;x.exports=function(i){return isNaN(i=+i)?0:(i>0?r:a)(i)}},function(x,t,a){var r=a(43),i=Math.max,p=Math.min;x.exports=function(e,N){var w=r(e);return w<0?i(w+N,0):p(w,N)}},function(x,t){x.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(x,t){t.f=Object.getOwnPropertySymbols},function(x,t,a){var r=a(9),i=/#|\.prototype\./,p=function(U,m){var n=N[e(U)];return n==$?!0:n==w?!1:typeof m=="function"?r(m):!!m},e=p.normalize=function(U){return String(U).replace(i,".").toLowerCase()},N=p.data={},w=p.NATIVE="N",$=p.POLYFILL="P";x.exports=p},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;function r(p){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(N){return typeof N}:r=function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},r(p)}var i=(typeof process>"u"?"undefined":r(process))==="object"&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;t.isNodeJS=i},function(x,t,a){a(50);var r=a(57);x.exports=r("String","startsWith")},function(x,t,a){var r=a(5),i=a(7).f,p=a(42),e=a(51),N=a(15),w=a(56),$=a(32),U="".startsWith,m=Math.min,n=w("startsWith"),J=!$&&!n&&!!function(){var O=i(String.prototype,"startsWith");return O&&!O.writable}();r({target:"String",proto:!0,forced:!J&&!n},{startsWith:function(L){var M=String(N(this));e(L);var P=p(m(arguments.length>1?arguments[1]:void 0,M.length)),b=String(L);return U?U.call(M,b,P):M.slice(P,P+b.length)===b}})},function(x,t,a){var r=a(52);x.exports=function(i){if(r(i))throw TypeError("The method doesn't accept regular expressions");return i}},function(x,t,a){var r=a(17),i=a(14),p=a(53),e=p("match");x.exports=function(N){var w;return r(N)&&((w=N[e])!==void 0?!!w:i(N)=="RegExp")}},function(x,t,a){var r=a(6),i=a(31),p=a(18),e=a(33),N=a(54),w=a(55),$=i("wks"),U=r.Symbol,m=w?U:U&&U.withoutSetter||e;x.exports=function(n){return p($,n)||(N&&p(U,n)?$[n]=U[n]:$[n]=m("Symbol."+n)),$[n]}},function(x,t,a){var r=a(9);x.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},function(x,t,a){var r=a(54);x.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(x,t,a){var r=a(53),i=r("match");x.exports=function(p){var e=/./;try{"/./"[p](e)}catch{try{return e[i]=!1,"/./"[p](e)}catch{}}return!1}},function(x,t,a){var r=a(6),i=a(58),p=Function.call;x.exports=function(e,N,w){return i(p,r[e].prototype[N],w)}},function(x,t,a){var r=a(59);x.exports=function(i,p,e){if(r(i),p===void 0)return i;switch(e){case 0:return function(){return i.call(p)};case 1:return function(N){return i.call(p,N)};case 2:return function(N,w){return i.call(p,N,w)};case 3:return function(N,w,$){return i.call(p,N,w,$)}}return function(){return i.apply(p,arguments)}}},function(x,t){x.exports=function(a){if(typeof a!="function")throw TypeError(String(a)+" is not a function");return a}},function(x,t,a){a(61);var r=a(57);x.exports=r("String","endsWith")},function(x,t,a){var r=a(5),i=a(7).f,p=a(42),e=a(51),N=a(15),w=a(56),$=a(32),U="".endsWith,m=Math.min,n=w("endsWith"),J=!$&&!n&&!!function(){var O=i(String.prototype,"endsWith");return O&&!O.writable}();r({target:"String",proto:!0,forced:!J&&!n},{endsWith:function(L){var M=String(N(this));e(L);var P=arguments.length>1?arguments[1]:void 0,b=p(M.length),_=P===void 0?b:m(p(P),b),d=String(L);return U?U.call(M,d,_):M.slice(_-d.length,_)===d}})},function(x,t,a){a(63);var r=a(57);x.exports=r("String","includes")},function(x,t,a){var r=a(5),i=a(51),p=a(15),e=a(56);r({target:"String",proto:!0,forced:!e("includes")},{includes:function(w){return!!~String(p(this)).indexOf(i(w),arguments.length>1?arguments[1]:void 0)}})},function(x,t,a){a(65);var r=a(57);x.exports=r("Array","includes")},function(x,t,a){var r=a(5),i=a(41).includes,p=a(66),e=a(71),N=e("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!N},{includes:function($){return i(this,$,arguments.length>1?arguments[1]:void 0)}}),p("includes")},function(x,t,a){var r=a(53),i=a(67),p=a(22),e=r("unscopables"),N=Array.prototype;N[e]==null&&p.f(N,e,{configurable:!0,value:i(null)}),x.exports=function(w){N[e][w]=!0}},function(x,t,a){var r=a(23),i=a(68),p=a(45),e=a(34),N=a(70),w=a(20),$=a(30),U=">",m="<",n="prototype",J="script",O=$("IE_PROTO"),L=function(){},M=function(c){return m+J+U+c+m+"/"+J+U},P=function(c){c.write(M("")),c.close();var h=c.parentWindow.Object;return c=null,h},b=function(){var c=w("iframe"),h="java"+J+":",f;return c.style.display="none",N.appendChild(c),c.src=String(h),f=c.contentWindow.document,f.open(),f.write(M("document.F=Object")),f.close(),f.F},_,d=function(){try{_=document.domain&&new ActiveXObject("htmlfile")}catch{}d=_?P(_):b();for(var c=p.length;c--;)delete d[n][p[c]];return d()};e[O]=!0,x.exports=Object.create||function(h,f){var g;return h!==null?(L[n]=r(h),g=new L,L[n]=null,g[O]=h):g=d(),f===void 0?g:i(g,f)}},function(x,t,a){var r=a(8),i=a(22),p=a(23),e=a(69);x.exports=r?Object.defineProperties:function(w,$){p(w);for(var U=e($),m=U.length,n=0,J;m>n;)i.f(w,J=U[n++],$[J]);return w}},function(x,t,a){var r=a(40),i=a(45);x.exports=Object.keys||function(e){return r(e,i)}},function(x,t,a){var r=a(37);x.exports=r("document","documentElement")},function(x,t,a){var r=a(8),i=a(9),p=a(18),e=Object.defineProperty,N={},w=function($){throw $};x.exports=function($,U){if(p(N,$))return N[$];U||(U={});var m=[][$],n=p(U,"ACCESSORS")?U.ACCESSORS:!1,J=p(U,0)?U[0]:w,O=p(U,1)?U[1]:void 0;return N[$]=!!m&&!i(function(){if(n&&!r)return!0;var L={length:-1};n?e(L,1,{enumerable:!0,get:w}):L[1]=1,m.call(L,J,O)})}},function(x,t,a){a(73),a(85);var r=a(38);x.exports=r.Array.from},function(x,t,a){var r=a(74).charAt,i=a(28),p=a(75),e="String Iterator",N=i.set,w=i.getterFor(e);p(String,"String",function($){N(this,{type:e,string:String($),index:0})},function(){var U=w(this),m=U.string,n=U.index,J;return n>=m.length?{value:void 0,done:!0}:(J=r(m,n),U.index+=J.length,{value:J,done:!1})})},function(x,t,a){var r=a(43),i=a(15),p=function(e){return function(N,w){var $=String(i(N)),U=r(w),m=$.length,n,J;return U<0||U>=m?e?"":void 0:(n=$.charCodeAt(U),n<55296||n>56319||U+1===m||(J=$.charCodeAt(U+1))<56320||J>57343?e?$.charAt(U):n:e?$.slice(U,U+2):(n-55296<<10)+(J-56320)+65536)}};x.exports={codeAt:p(!1),charAt:p(!0)}},function(x,t,a){var r=a(5),i=a(76),p=a(78),e=a(83),N=a(81),w=a(21),$=a(24),U=a(53),m=a(32),n=a(82),J=a(77),O=J.IteratorPrototype,L=J.BUGGY_SAFARI_ITERATORS,M=U("iterator"),P="keys",b="values",_="entries",d=function(){return this};x.exports=function(c,h,f,g,v,s,o){i(f,h,g);var u=function(C){if(C===v&&k)return k;if(!L&&C in T)return T[C];switch(C){case P:return function(){return new f(this,C)};case b:return function(){return new f(this,C)};case _:return function(){return new f(this,C)}}return function(){return new f(this)}},l=h+" Iterator",F=!1,T=c.prototype,D=T[M]||T["@@iterator"]||v&&T[v],k=!L&&D||u(v),S=h=="Array"&&T.entries||D,R,E,A;if(S&&(R=p(S.call(new c)),O!==Object.prototype&&R.next&&(!m&&p(R)!==O&&(e?e(R,O):typeof R[M]!="function"&&w(R,M,d)),N(R,l,!0,!0),m&&(n[l]=d))),v==b&&D&&D.name!==b&&(F=!0,k=function(){return D.call(this)}),(!m||o)&&T[M]!==k&&w(T,M,k),n[h]=k,v)if(E={values:u(b),keys:s?k:u(P),entries:u(_)},o)for(A in E)(L||F||!(A in T))&&$(T,A,E[A]);else r({target:h,proto:!0,forced:L||F},E);return E}},function(x,t,a){var r=a(77).IteratorPrototype,i=a(67),p=a(11),e=a(81),N=a(82),w=function(){return this};x.exports=function($,U,m){var n=U+" Iterator";return $.prototype=i(r,{next:p(1,m)}),e($,n,!1,!0),N[n]=w,$}},function(x,t,a){var r=a(78),i=a(21),p=a(18),e=a(53),N=a(32),w=e("iterator"),$=!1,U=function(){return this},m,n,J;[].keys&&(J=[].keys(),"next"in J?(n=r(r(J)),n!==Object.prototype&&(m=n)):$=!0),m==null&&(m={}),!N&&!p(m,w)&&i(m,w,U),x.exports={IteratorPrototype:m,BUGGY_SAFARI_ITERATORS:$}},function(x,t,a){var r=a(18),i=a(79),p=a(30),e=a(80),N=p("IE_PROTO"),w=Object.prototype;x.exports=e?Object.getPrototypeOf:function($){return $=i($),r($,N)?$[N]:typeof $.constructor=="function"&&$ instanceof $.constructor?$.constructor.prototype:$ instanceof Object?w:null}},function(x,t,a){var r=a(15);x.exports=function(i){return Object(r(i))}},function(x,t,a){var r=a(9);x.exports=!r(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})},function(x,t,a){var r=a(22).f,i=a(18),p=a(53),e=p("toStringTag");x.exports=function(N,w,$){N&&!i(N=$?N:N.prototype,e)&&r(N,e,{configurable:!0,value:w})}},function(x,t){x.exports={}},function(x,t,a){var r=a(23),i=a(84);x.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var p=!1,e={},N;try{N=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,N.call(e,[]),p=e instanceof Array}catch{}return function($,U){return r($),i(U),p?N.call($,U):$.__proto__=U,$}}():void 0)},function(x,t,a){var r=a(17);x.exports=function(i){if(!r(i)&&i!==null)throw TypeError("Can't set "+String(i)+" as a prototype");return i}},function(x,t,a){var r=a(5),i=a(86),p=a(93),e=!p(function(N){Array.from(N)});r({target:"Array",stat:!0,forced:e},{from:i})},function(x,t,a){var r=a(58),i=a(79),p=a(87),e=a(88),N=a(42),w=a(89),$=a(90);x.exports=function(m){var n=i(m),J=typeof this=="function"?this:Array,O=arguments.length,L=O>1?arguments[1]:void 0,M=L!==void 0,P=$(n),b=0,_,d,c,h,f,g;if(M&&(L=r(L,O>2?arguments[2]:void 0,2)),P!=null&&!(J==Array&&e(P)))for(h=P.call(n),f=h.next,d=new J;!(c=f.call(h)).done;b++)g=M?p(h,L,[c.value,b],!0):c.value,w(d,b,g);else for(_=N(n.length),d=new J(_);_>b;b++)g=M?L(n[b],b):n[b],w(d,b,g);return d.length=b,d}},function(x,t,a){var r=a(23);x.exports=function(i,p,e,N){try{return N?p(r(e)[0],e[1]):p(e)}catch($){var w=i.return;throw w!==void 0&&r(w.call(i)),$}}},function(x,t,a){var r=a(53),i=a(82),p=r("iterator"),e=Array.prototype;x.exports=function(N){return N!==void 0&&(i.Array===N||e[p]===N)}},function(x,t,a){var r=a(16),i=a(22),p=a(11);x.exports=function(e,N,w){var $=r(N);$ in e?i.f(e,$,p(0,w)):e[$]=w}},function(x,t,a){var r=a(91),i=a(82),p=a(53),e=p("iterator");x.exports=function(N){if(N!=null)return N[e]||N["@@iterator"]||i[r(N)]}},function(x,t,a){var r=a(92),i=a(14),p=a(53),e=p("toStringTag"),N=i(function(){return arguments}())=="Arguments",w=function($,U){try{return $[U]}catch{}};x.exports=r?i:function($){var U,m,n;return $===void 0?"Undefined":$===null?"Null":typeof(m=w(U=Object($),e))=="string"?m:N?i(U):(n=i(U))=="Object"&&typeof U.callee=="function"?"Arguments":n}},function(x,t,a){var r=a(53),i=r("toStringTag"),p={};p[i]="z",x.exports=String(p)==="[object z]"},function(x,t,a){var r=a(53),i=r("iterator"),p=!1;try{var e=0,N={next:function(){return{done:!!e++}},return:function(){p=!0}};N[i]=function(){return this},Array.from(N,function(){throw 2})}catch{}x.exports=function(w,$){if(!$&&!p)return!1;var U=!1;try{var m={};m[i]=function(){return{next:function(){return{done:U=!0}}}},w(m)}catch{}return U}},function(x,t,a){a(95);var r=a(38);x.exports=r.Object.assign},function(x,t,a){var r=a(5),i=a(96);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(x,t,a){var r=a(8),i=a(9),p=a(69),e=a(46),N=a(10),w=a(79),$=a(13),U=Object.assign,m=Object.defineProperty;x.exports=!U||i(function(){if(r&&U({b:1},U(m({},"a",{enumerable:!0,get:function(){m(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var n={},J={},O=Symbol(),L="abcdefghijklmnopqrst";return n[O]=7,L.split("").forEach(function(M){J[M]=M}),U({},n)[O]!=7||p(U({},J)).join("")!=L})?function(J,O){for(var L=w(J),M=arguments.length,P=1,b=e.f,_=N.f;M>P;)for(var d=$(arguments[P++]),c=b?p(d).concat(b(d)):p(d),h=c.length,f=0,g;h>f;)g=c[f++],(!r||_.call(d,g))&&(L[g]=d[g]);return L}:U},function(x,t,a){a(98);var r=a(38);x.exports=r.Math.log2},function(x,t,a){var r=a(5),i=Math.log,p=Math.LN2;r({target:"Math",stat:!0},{log2:function(N){return i(N)/p}})},function(x,t,a){a(100);var r=a(38);x.exports=r.Number.isNaN},function(x,t,a){var r=a(5);r({target:"Number",stat:!0},{isNaN:function(p){return p!=p}})},function(x,t,a){a(102);var r=a(38);x.exports=r.Number.isInteger},function(x,t,a){var r=a(5),i=a(103);r({target:"Number",stat:!0},{isInteger:i})},function(x,t,a){var r=a(17),i=Math.floor;x.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(x,t,a){a(105),a(73),a(107),a(110),a(126),a(127);var r=a(38);x.exports=r.Promise},function(x,t,a){var r=a(92),i=a(24),p=a(106);r||i(Object.prototype,"toString",p,{unsafe:!0})},function(x,t,a){var r=a(92),i=a(91);x.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(x,t,a){var r=a(6),i=a(108),p=a(109),e=a(21),N=a(53),w=N("iterator"),$=N("toStringTag"),U=p.values;for(var m in i){var n=r[m],J=n&&n.prototype;if(J){if(J[w]!==U)try{e(J,w,U)}catch{J[w]=U}if(J[$]||e(J,$,m),i[m]){for(var O in p)if(J[O]!==p[O])try{e(J,O,p[O])}catch{J[O]=p[O]}}}}},function(x,t){x.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(x,t,a){var r=a(12),i=a(66),p=a(82),e=a(28),N=a(75),w="Array Iterator",$=e.set,U=e.getterFor(w);x.exports=N(Array,"Array",function(m,n){$(this,{type:w,target:r(m),index:0,kind:n})},function(){var m=U(this),n=m.target,J=m.kind,O=m.index++;return!n||O>=n.length?(m.target=void 0,{value:void 0,done:!0}):J=="keys"?{value:O,done:!1}:J=="values"?{value:n[O],done:!1}:{value:[O,n[O]],done:!1}},"values"),p.Arguments=p.Array,i("keys"),i("values"),i("entries")},function(x,t,a){var r=a(5),i=a(32),p=a(6),e=a(37),N=a(111),w=a(24),$=a(112),U=a(81),m=a(113),n=a(17),J=a(59),O=a(114),L=a(14),M=a(26),P=a(115),b=a(93),_=a(116),d=a(117).set,c=a(120),h=a(121),f=a(123),g=a(122),v=a(124),s=a(28),o=a(47),u=a(53),l=a(125),F=u("species"),T="Promise",D=s.get,k=s.set,S=s.getterFor(T),R=N,E=p.TypeError,A=p.document,C=p.process,y=e("fetch"),I=g.f,H=I,V=L(C)=="process",B=!!(A&&A.createEvent&&p.dispatchEvent),W="unhandledrejection",G="rejectionhandled",q=0,z=1,j=2,Y=1,K=2,Z,ee,ne,ae,te=o(T,function(){var Se=M(R)!==String(R);if(!Se&&(l===66||!V&&typeof PromiseRejectionEvent!="function")||i&&!R.prototype.finally)return!0;if(l>=51&&/native code/.test(R))return!1;var _e=R.resolve(1),ge=function(se){se(function(){},function(){})},ue=_e.constructor={};return ue[F]=ge,!(_e.then(function(){})instanceof ge)}),re=te||!b(function(Se){R.all(Se).catch(function(){})}),ie=function(Se){var _e;return n(Se)&&typeof(_e=Se.then)=="function"?_e:!1},de=function(Se,_e,ge){if(!_e.notified){_e.notified=!0;var ue=_e.reactions;c(function(){for(var se=_e.value,pe=_e.state==z,we=0;ue.length>we;){var Te=ue[we++],ke=pe?Te.ok:Te.fail,Fe=Te.resolve,Le=Te.reject,he=Te.domain,Ee,ve,ye;try{ke?(pe||(_e.rejection===K&&Pe(Se,_e),_e.rejection=Y),ke===!0?Ee=se:(he&&he.enter(),Ee=ke(se),he&&(he.exit(),ye=!0)),Ee===Te.promise?Le(E("Promise-chain cycle")):(ve=ie(Ee))?ve.call(Ee,Fe,Le):Fe(Ee)):Le(se)}catch(Oe){he&&!ye&&he.exit(),Le(Oe)}}_e.reactions=[],_e.notified=!1,ge&&!_e.rejection&&le(Se,_e)})}},oe=function(Se,_e,ge){var ue,se;B?(ue=A.createEvent("Event"),ue.promise=_e,ue.reason=ge,ue.initEvent(Se,!1,!0),p.dispatchEvent(ue)):ue={promise:_e,reason:ge},(se=p["on"+Se])?se(ue):Se===W&&f("Unhandled promise rejection",ge)},le=function(Se,_e){d.call(p,function(){var ge=_e.value,ue=me(_e),se;if(ue&&(se=v(function(){V?C.emit("unhandledRejection",ge,Se):oe(W,Se,ge)}),_e.rejection=V||me(_e)?K:Y,se.error))throw se.value})},me=function(Se){return Se.rejection!==Y&&!Se.parent},Pe=function(Se,_e){d.call(p,function(){V?C.emit("rejectionHandled",Se):oe(G,Se,_e.value)})},Ce=function(Se,_e,ge,ue){return function(se){Se(_e,ge,se,ue)}},xe=function(Se,_e,ge,ue){_e.done||(_e.done=!0,ue&&(_e=ue),_e.value=ge,_e.state=j,de(Se,_e,!0))},be=function(Se,_e,ge,ue){if(!_e.done){_e.done=!0,ue&&(_e=ue);try{if(Se===ge)throw E("Promise can't be resolved itself");var se=ie(ge);se?c(function(){var pe={done:!1};try{se.call(ge,Ce(be,Se,pe,_e),Ce(xe,Se,pe,_e))}catch(we){xe(Se,pe,we,_e)}}):(_e.value=ge,_e.state=z,de(Se,_e,!1))}catch(pe){xe(Se,{done:!1},pe,_e)}}};te&&(R=function(_e){O(this,R,T),J(_e),Z.call(this);var ge=D(this);try{_e(Ce(be,this,ge),Ce(xe,this,ge))}catch(ue){xe(this,ge,ue)}},Z=function(_e){k(this,{type:T,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:q,value:void 0})},Z.prototype=$(R.prototype,{then:function(_e,ge){var ue=S(this),se=I(_(this,R));return se.ok=typeof _e=="function"?_e:!0,se.fail=typeof ge=="function"&&ge,se.domain=V?C.domain:void 0,ue.parent=!0,ue.reactions.push(se),ue.state!=q&&de(this,ue,!1),se.promise},catch:function(Se){return this.then(void 0,Se)}}),ee=function(){var Se=new Z,_e=D(Se);this.promise=Se,this.resolve=Ce(be,Se,_e),this.reject=Ce(xe,Se,_e)},g.f=I=function(Se){return Se===R||Se===ne?new ee(Se):H(Se)},!i&&typeof N=="function"&&(ae=N.prototype.then,w(N.prototype,"then",function(_e,ge){var ue=this;return new R(function(se,pe){ae.call(ue,se,pe)}).then(_e,ge)},{unsafe:!0}),typeof y=="function"&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(_e){return h(R,y.apply(p,arguments))}}))),r({global:!0,wrap:!0,forced:te},{Promise:R}),U(R,T,!1,!0),m(T),ne=e(T),r({target:T,stat:!0,forced:te},{reject:function(_e){var ge=I(this);return ge.reject.call(void 0,_e),ge.promise}}),r({target:T,stat:!0,forced:i||te},{resolve:function(_e){return h(i&&this===ne?R:this,_e)}}),r({target:T,stat:!0,forced:re},{all:function(_e){var ge=this,ue=I(ge),se=ue.resolve,pe=ue.reject,we=v(function(){var Te=J(ge.resolve),ke=[],Fe=0,Le=1;P(_e,function(he){var Ee=Fe++,ve=!1;ke.push(void 0),Le++,Te.call(ge,he).then(function(ye){ve||(ve=!0,ke[Ee]=ye,--Le||se(ke))},pe)}),--Le||se(ke)});return we.error&&pe(we.value),ue.promise},race:function(_e){var ge=this,ue=I(ge),se=ue.reject,pe=v(function(){var we=J(ge.resolve);P(_e,function(Te){we.call(ge,Te).then(ue.resolve,se)})});return pe.error&&se(pe.value),ue.promise}})},function(x,t,a){var r=a(6);x.exports=r.Promise},function(x,t,a){var r=a(24);x.exports=function(i,p,e){for(var N in p)r(i,N,p[N],e);return i}},function(x,t,a){var r=a(37),i=a(22),p=a(53),e=a(8),N=p("species");x.exports=function(w){var $=r(w),U=i.f;e&&$&&!$[N]&&U($,N,{configurable:!0,get:function(){return this}})}},function(x,t){x.exports=function(a,r,i){if(!(a instanceof r))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return a}},function(x,t,a){var r=a(23),i=a(88),p=a(42),e=a(58),N=a(90),w=a(87),$=function(m,n){this.stopped=m,this.result=n},U=x.exports=function(m,n,J,O,L){var M=e(n,J,O?2:1),P,b,_,d,c,h,f;if(L)P=m;else{if(b=N(m),typeof b!="function")throw TypeError("Target is not iterable");if(i(b)){for(_=0,d=p(m.length);d>_;_++)if(c=O?M(r(f=m[_])[0],f[1]):M(m[_]),c&&c instanceof $)return c;return new $(!1)}P=b.call(m)}for(h=P.next;!(f=h.call(P)).done;)if(c=w(P,M,f.value,O),typeof c=="object"&&c&&c instanceof $)return c;return new $(!1)};U.stop=function(m){return new $(!0,m)}},function(x,t,a){var r=a(23),i=a(59),p=a(53),e=p("species");x.exports=function(N,w){var $=r(N).constructor,U;return $===void 0||(U=r($)[e])==null?w:i(U)}},function(x,t,a){var r=a(6),i=a(9),p=a(14),e=a(58),N=a(70),w=a(20),$=a(118),U=r.location,m=r.setImmediate,n=r.clearImmediate,J=r.process,O=r.MessageChannel,L=r.Dispatch,M=0,P={},b="onreadystatechange",_,d,c,h=function(s){if(P.hasOwnProperty(s)){var o=P[s];delete P[s],o()}},f=function(s){return function(){h(s)}},g=function(s){h(s.data)},v=function(s){r.postMessage(s+"",U.protocol+"//"+U.host)};(!m||!n)&&(m=function(o){for(var u=[],l=1;arguments.length>l;)u.push(arguments[l++]);return P[++M]=function(){(typeof o=="function"?o:Function(o)).apply(void 0,u)},_(M),M},n=function(o){delete P[o]},p(J)=="process"?_=function(s){J.nextTick(f(s))}:L&&L.now?_=function(s){L.now(f(s))}:O&&!$?(d=new O,c=d.port2,d.port1.onmessage=g,_=e(c.postMessage,c,1)):r.addEventListener&&typeof postMessage=="function"&&!r.importScripts&&!i(v)?(_=v,r.addEventListener("message",g,!1)):b in w("script")?_=function(s){N.appendChild(w("script"))[b]=function(){N.removeChild(this),h(s)}}:_=function(s){setTimeout(f(s),0)}),x.exports={set:m,clear:n}},function(x,t,a){var r=a(119);x.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(x,t,a){var r=a(37);x.exports=r("navigator","userAgent")||""},function(x,t,a){var r=a(6),i=a(7).f,p=a(14),e=a(117).set,N=a(118),w=r.MutationObserver||r.WebKitMutationObserver,$=r.process,U=r.Promise,m=p($)=="process",n=i(r,"queueMicrotask"),J=n&&n.value,O,L,M,P,b,_,d,c;J||(O=function(){var h,f;for(m&&(h=$.domain)&&h.exit();L;){f=L.fn,L=L.next;try{f()}catch(g){throw L?P():M=void 0,g}}M=void 0,h&&h.enter()},m?P=function(){$.nextTick(O)}:w&&!N?(b=!0,_=document.createTextNode(""),new w(O).observe(_,{characterData:!0}),P=function(){_.data=b=!b}):U&&U.resolve?(d=U.resolve(void 0),c=d.then,P=function(){c.call(d,O)}):P=function(){e.call(r,O)}),x.exports=J||function(h){var f={fn:h,next:void 0};M&&(M.next=f),L||(L=f,P()),M=f}},function(x,t,a){var r=a(23),i=a(17),p=a(122);x.exports=function(e,N){if(r(e),i(N)&&N.constructor===e)return N;var w=p.f(e),$=w.resolve;return $(N),w.promise}},function(x,t,a){var r=a(59),i=function(p){var e,N;this.promise=new p(function(w,$){if(e!==void 0||N!==void 0)throw TypeError("Bad Promise constructor");e=w,N=$}),this.resolve=r(e),this.reject=r(N)};x.exports.f=function(p){return new i(p)}},function(x,t,a){var r=a(6);x.exports=function(i,p){var e=r.console;e&&e.error&&(arguments.length===1?e.error(i):e.error(i,p))}},function(x,t){x.exports=function(a){try{return{error:!1,value:a()}}catch(r){return{error:!0,value:r}}}},function(x,t,a){var r=a(6),i=a(119),p=r.process,e=p&&p.versions,N=e&&e.v8,w,$;N?(w=N.split("."),$=w[0]+w[1]):i&&(w=i.match(/Edge\/(\d+)/),(!w||w[1]>=74)&&(w=i.match(/Chrome\/(\d+)/),w&&($=w[1]))),x.exports=$&&+$},function(x,t,a){var r=a(5),i=a(59),p=a(122),e=a(124),N=a(115);r({target:"Promise",stat:!0},{allSettled:function($){var U=this,m=p.f(U),n=m.resolve,J=m.reject,O=e(function(){var L=i(U.resolve),M=[],P=0,b=1;N($,function(_){var d=P++,c=!1;M.push(void 0),b++,L.call(U,_).then(function(h){c||(c=!0,M[d]={status:"fulfilled",value:h},--b||n(M))},function(h){c||(c=!0,M[d]={status:"rejected",reason:h},--b||n(M))})}),--b||n(M)});return O.error&&J(O.value),m.promise}})},function(x,t,a){var r=a(5),i=a(32),p=a(111),e=a(9),N=a(37),w=a(116),$=a(121),U=a(24),m=!!p&&e(function(){p.prototype.finally.call({then:function(){}},function(){})});r({target:"Promise",proto:!0,real:!0,forced:m},{finally:function(n){var J=w(this,N("Promise")),O=typeof n=="function";return this.then(O?function(L){return $(J,n()).then(function(){return L})}:n,O?function(L){return $(J,n()).then(function(){throw L})}:n)}}),!i&&typeof p=="function"&&!p.prototype.finally&&U(p.prototype,"finally",N("Promise").prototype.finally)},function(x,t,a){a(129),a(134),a(132);var r=a(38);x.exports=r.URL},function(x,t,a){a(73);var r=a(5),i=a(8),p=a(130),e=a(6),N=a(68),w=a(24),$=a(114),U=a(18),m=a(96),n=a(86),J=a(74).codeAt,O=a(131),L=a(81),M=a(132),P=a(28),b=e.URL,_=M.URLSearchParams,d=M.getState,c=P.set,h=P.getterFor("URL"),f=Math.floor,g=Math.pow,v="Invalid authority",s="Invalid scheme",o="Invalid host",u="Invalid port",l=/[A-Za-z]/,F=/[\d+\-.A-Za-z]/,T=/\d/,D=/^(0x|0X)/,k=/^[0-7]+$/,S=/^\d+$/,R=/^[\dA-Fa-f]+$/,E=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,A=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,C=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,y=/[\u0009\u000A\u000D]/g,I,H=function(fe,Ie){var De,$e,Ue;if(Ie.charAt(0)=="["){if(Ie.charAt(Ie.length-1)!="]"||(De=B(Ie.slice(1,-1)),!De))return o;fe.host=De}else if(ee(fe)){if(Ie=O(Ie),E.test(Ie)||(De=V(Ie),De===null))return o;fe.host=De}else{if(A.test(Ie))return o;for(De="",$e=n(Ie),Ue=0;Ue<$e.length;Ue++)De+=K($e[Ue],q);fe.host=De}},V=function(fe){var Ie=fe.split("."),De,$e,Ue,it,Xe,dt,At;if(Ie.length&&Ie[Ie.length-1]==""&&Ie.pop(),De=Ie.length,De>4)return fe;for($e=[],Ue=0;Ue<De;Ue++){if(it=Ie[Ue],it=="")return fe;if(Xe=10,it.length>1&&it.charAt(0)=="0"&&(Xe=D.test(it)?16:8,it=it.slice(Xe==8?1:2)),it==="")dt=0;else{if(!(Xe==10?S:Xe==8?k:R).test(it))return fe;dt=parseInt(it,Xe)}$e.push(dt)}for(Ue=0;Ue<De;Ue++)if(dt=$e[Ue],Ue==De-1){if(dt>=g(256,5-De))return null}else if(dt>255)return null;for(At=$e.pop(),Ue=0;Ue<$e.length;Ue++)At+=$e[Ue]*g(256,3-Ue);return At},B=function(fe){var Ie=[0,0,0,0,0,0,0,0],De=0,$e=null,Ue=0,it,Xe,dt,At,Tt,Ot,Be,Ft=function(){return fe.charAt(Ue)};if(Ft()==":"){if(fe.charAt(1)!=":")return;Ue+=2,De++,$e=De}for(;Ft();){if(De==8)return;if(Ft()==":"){if($e!==null)return;Ue++,De++,$e=De;continue}for(it=Xe=0;Xe<4&&R.test(Ft());)it=it*16+parseInt(Ft(),16),Ue++,Xe++;if(Ft()=="."){if(Xe==0||(Ue-=Xe,De>6))return;for(dt=0;Ft();){if(At=null,dt>0)if(Ft()=="."&&dt<4)Ue++;else return;if(!T.test(Ft()))return;for(;T.test(Ft());){if(Tt=parseInt(Ft(),10),At===null)At=Tt;else{if(At==0)return;At=At*10+Tt}if(At>255)return;Ue++}Ie[De]=Ie[De]*256+At,dt++,(dt==2||dt==4)&&De++}if(dt!=4)return;break}else if(Ft()==":"){if(Ue++,!Ft())return}else if(Ft())return;Ie[De++]=it}if($e!==null)for(Ot=De-$e,De=7;De!=0&&Ot>0;)Be=Ie[De],Ie[De--]=Ie[$e+Ot-1],Ie[$e+--Ot]=Be;else if(De!=8)return;return Ie},W=function(fe){for(var Ie=null,De=1,$e=null,Ue=0,it=0;it<8;it++)fe[it]!==0?(Ue>De&&(Ie=$e,De=Ue),$e=null,Ue=0):($e===null&&($e=it),++Ue);return Ue>De&&(Ie=$e,De=Ue),Ie},G=function(fe){var Ie,De,$e,Ue;if(typeof fe=="number"){for(Ie=[],De=0;De<4;De++)Ie.unshift(fe%256),fe=f(fe/256);return Ie.join(".")}else if(typeof fe=="object"){for(Ie="",$e=W(fe),De=0;De<8;De++)Ue&&fe[De]===0||(Ue&&(Ue=!1),$e===De?(Ie+=De?":":"::",Ue=!0):(Ie+=fe[De].toString(16),De<7&&(Ie+=":")));return"["+Ie+"]"}return fe},q={},z=m({},q,{" ":1,'"':1,"<":1,">":1,"`":1}),j=m({},z,{"#":1,"?":1,"{":1,"}":1}),Y=m({},j,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),K=function(fe,Ie){var De=J(fe,0);return De>32&&De<127&&!U(Ie,fe)?fe:encodeURIComponent(fe)},Z={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ee=function(fe){return U(Z,fe.scheme)},ne=function(fe){return fe.username!=""||fe.password!=""},ae=function(fe){return!fe.host||fe.cannotBeABaseURL||fe.scheme=="file"},te=function(fe,Ie){var De;return fe.length==2&&l.test(fe.charAt(0))&&((De=fe.charAt(1))==":"||!Ie&&De=="|")},re=function(fe){var Ie;return fe.length>1&&te(fe.slice(0,2))&&(fe.length==2||(Ie=fe.charAt(2))==="/"||Ie==="\\"||Ie==="?"||Ie==="#")},ie=function(fe){var Ie=fe.path,De=Ie.length;De&&(fe.scheme!="file"||De!=1||!te(Ie[0],!0))&&Ie.pop()},de=function(fe){return fe==="."||fe.toLowerCase()==="%2e"},oe=function(fe){return fe=fe.toLowerCase(),fe===".."||fe==="%2e."||fe===".%2e"||fe==="%2e%2e"},le={},me={},Pe={},Ce={},xe={},be={},Se={},_e={},ge={},ue={},se={},pe={},we={},Te={},ke={},Fe={},Le={},he={},Ee={},ve={},ye={},Oe=function(fe,Ie,De,$e){var Ue=De||le,it=0,Xe="",dt=!1,At=!1,Tt=!1,Ot,Be,Ft,Jt;for(De||(fe.scheme="",fe.username="",fe.password="",fe.host=null,fe.port=null,fe.path=[],fe.query=null,fe.fragment=null,fe.cannotBeABaseURL=!1,Ie=Ie.replace(C,"")),Ie=Ie.replace(y,""),Ot=n(Ie);it<=Ot.length;){switch(Be=Ot[it],Ue){case le:if(Be&&l.test(Be))Xe+=Be.toLowerCase(),Ue=me;else{if(De)return s;Ue=Pe;continue}break;case me:if(Be&&(F.test(Be)||Be=="+"||Be=="-"||Be=="."))Xe+=Be.toLowerCase();else if(Be==":"){if(De&&(ee(fe)!=U(Z,Xe)||Xe=="file"&&(ne(fe)||fe.port!==null)||fe.scheme=="file"&&!fe.host))return;if(fe.scheme=Xe,De){ee(fe)&&Z[fe.scheme]==fe.port&&(fe.port=null);return}Xe="",fe.scheme=="file"?Ue=Te:ee(fe)&&$e&&$e.scheme==fe.scheme?Ue=Ce:ee(fe)?Ue=_e:Ot[it+1]=="/"?(Ue=xe,it++):(fe.cannotBeABaseURL=!0,fe.path.push(""),Ue=Ee)}else{if(De)return s;Xe="",Ue=Pe,it=0;continue}break;case Pe:if(!$e||$e.cannotBeABaseURL&&Be!="#")return s;if($e.cannotBeABaseURL&&Be=="#"){fe.scheme=$e.scheme,fe.path=$e.path.slice(),fe.query=$e.query,fe.fragment="",fe.cannotBeABaseURL=!0,Ue=ye;break}Ue=$e.scheme=="file"?Te:be;continue;case Ce:if(Be=="/"&&Ot[it+1]=="/")Ue=ge,it++;else{Ue=be;continue}break;case xe:if(Be=="/"){Ue=ue;break}else{Ue=he;continue}case be:if(fe.scheme=$e.scheme,Be==I)fe.username=$e.username,fe.password=$e.password,fe.host=$e.host,fe.port=$e.port,fe.path=$e.path.slice(),fe.query=$e.query;else if(Be=="/"||Be=="\\"&&ee(fe))Ue=Se;else if(Be=="?")fe.username=$e.username,fe.password=$e.password,fe.host=$e.host,fe.port=$e.port,fe.path=$e.path.slice(),fe.query="",Ue=ve;else if(Be=="#")fe.username=$e.username,fe.password=$e.password,fe.host=$e.host,fe.port=$e.port,fe.path=$e.path.slice(),fe.query=$e.query,fe.fragment="",Ue=ye;else{fe.username=$e.username,fe.password=$e.password,fe.host=$e.host,fe.port=$e.port,fe.path=$e.path.slice(),fe.path.pop(),Ue=he;continue}break;case Se:if(ee(fe)&&(Be=="/"||Be=="\\"))Ue=ge;else if(Be=="/")Ue=ue;else{fe.username=$e.username,fe.password=$e.password,fe.host=$e.host,fe.port=$e.port,Ue=he;continue}break;case _e:if(Ue=ge,Be!="/"||Xe.charAt(it+1)!="/")continue;it++;break;case ge:if(Be!="/"&&Be!="\\"){Ue=ue;continue}break;case ue:if(Be=="@"){dt&&(Xe="%40"+Xe),dt=!0,Ft=n(Xe);for(var or=0;or<Ft.length;or++){var dr=Ft[or];if(dr==":"&&!Tt){Tt=!0;continue}var Qt=K(dr,Y);Tt?fe.password+=Qt:fe.username+=Qt}Xe=""}else if(Be==I||Be=="/"||Be=="?"||Be=="#"||Be=="\\"&&ee(fe)){if(dt&&Xe=="")return v;it-=n(Xe).length+1,Xe="",Ue=se}else Xe+=Be;break;case se:case pe:if(De&&fe.scheme=="file"){Ue=Fe;continue}else if(Be==":"&&!At){if(Xe=="")return o;if(Jt=H(fe,Xe),Jt)return Jt;if(Xe="",Ue=we,De==pe)return}else if(Be==I||Be=="/"||Be=="?"||Be=="#"||Be=="\\"&&ee(fe)){if(ee(fe)&&Xe=="")return o;if(De&&Xe==""&&(ne(fe)||fe.port!==null))return;if(Jt=H(fe,Xe),Jt)return Jt;if(Xe="",Ue=Le,De)return;continue}else Be=="["?At=!0:Be=="]"&&(At=!1),Xe+=Be;break;case we:if(T.test(Be))Xe+=Be;else if(Be==I||Be=="/"||Be=="?"||Be=="#"||Be=="\\"&&ee(fe)||De){if(Xe!=""){var er=parseInt(Xe,10);if(er>65535)return u;fe.port=ee(fe)&&er===Z[fe.scheme]?null:er,Xe=""}if(De)return;Ue=Le;continue}else return u;break;case Te:if(fe.scheme="file",Be=="/"||Be=="\\")Ue=ke;else if($e&&$e.scheme=="file")if(Be==I)fe.host=$e.host,fe.path=$e.path.slice(),fe.query=$e.query;else if(Be=="?")fe.host=$e.host,fe.path=$e.path.slice(),fe.query="",Ue=ve;else if(Be=="#")fe.host=$e.host,fe.path=$e.path.slice(),fe.query=$e.query,fe.fragment="",Ue=ye;else{re(Ot.slice(it).join(""))||(fe.host=$e.host,fe.path=$e.path.slice(),ie(fe)),Ue=he;continue}else{Ue=he;continue}break;case ke:if(Be=="/"||Be=="\\"){Ue=Fe;break}$e&&$e.scheme=="file"&&!re(Ot.slice(it).join(""))&&(te($e.path[0],!0)?fe.path.push($e.path[0]):fe.host=$e.host),Ue=he;continue;case Fe:if(Be==I||Be=="/"||Be=="\\"||Be=="?"||Be=="#"){if(!De&&te(Xe))Ue=he;else if(Xe==""){if(fe.host="",De)return;Ue=Le}else{if(Jt=H(fe,Xe),Jt)return Jt;if(fe.host=="localhost"&&(fe.host=""),De)return;Xe="",Ue=Le}continue}else Xe+=Be;break;case Le:if(ee(fe)){if(Ue=he,Be!="/"&&Be!="\\")continue}else if(!De&&Be=="?")fe.query="",Ue=ve;else if(!De&&Be=="#")fe.fragment="",Ue=ye;else if(Be!=I&&(Ue=he,Be!="/"))continue;break;case he:if(Be==I||Be=="/"||Be=="\\"&&ee(fe)||!De&&(Be=="?"||Be=="#")){if(oe(Xe)?(ie(fe),Be!="/"&&!(Be=="\\"&&ee(fe))&&fe.path.push("")):de(Xe)?Be!="/"&&!(Be=="\\"&&ee(fe))&&fe.path.push(""):(fe.scheme=="file"&&!fe.path.length&&te(Xe)&&(fe.host&&(fe.host=""),Xe=Xe.charAt(0)+":"),fe.path.push(Xe)),Xe="",fe.scheme=="file"&&(Be==I||Be=="?"||Be=="#"))for(;fe.path.length>1&&fe.path[0]==="";)fe.path.shift();Be=="?"?(fe.query="",Ue=ve):Be=="#"&&(fe.fragment="",Ue=ye)}else Xe+=K(Be,j);break;case Ee:Be=="?"?(fe.query="",Ue=ve):Be=="#"?(fe.fragment="",Ue=ye):Be!=I&&(fe.path[0]+=K(Be,q));break;case ve:!De&&Be=="#"?(fe.fragment="",Ue=ye):Be!=I&&(Be=="'"&&ee(fe)?fe.query+="%27":Be=="#"?fe.query+="%23":fe.query+=K(Be,q));break;case ye:Be!=I&&(fe.fragment+=K(Be,z));break}it++}},Ne=function(Ie){var De=$(this,Ne,"URL"),$e=arguments.length>1?arguments[1]:void 0,Ue=String(Ie),it=c(De,{type:"URL"}),Xe,dt;if($e!==void 0){if($e instanceof Ne)Xe=h($e);else if(dt=Oe(Xe={},String($e)),dt)throw TypeError(dt)}if(dt=Oe(it,Ue,null,Xe),dt)throw TypeError(dt);var At=it.searchParams=new _,Tt=d(At);Tt.updateSearchParams(it.query),Tt.updateURL=function(){it.query=String(At)||null},i||(De.href=ze.call(De),De.origin=tt.call(De),De.protocol=rt.call(De),De.username=xt.call(De),De.password=ft.call(De),De.host=lt.call(De),De.hostname=ht.call(De),De.port=St.call(De),De.pathname=wt.call(De),De.search=vt.call(De),De.searchParams=bt.call(De),De.hash=qt.call(De))},Ge=Ne.prototype,ze=function(){var fe=h(this),Ie=fe.scheme,De=fe.username,$e=fe.password,Ue=fe.host,it=fe.port,Xe=fe.path,dt=fe.query,At=fe.fragment,Tt=Ie+":";return Ue!==null?(Tt+="//",ne(fe)&&(Tt+=De+($e?":"+$e:"")+"@"),Tt+=G(Ue),it!==null&&(Tt+=":"+it)):Ie=="file"&&(Tt+="//"),Tt+=fe.cannotBeABaseURL?Xe[0]:Xe.length?"/"+Xe.join("/"):"",dt!==null&&(Tt+="?"+dt),At!==null&&(Tt+="#"+At),Tt},tt=function(){var fe=h(this),Ie=fe.scheme,De=fe.port;if(Ie=="blob")try{return new URL(Ie.path[0]).origin}catch{return"null"}return Ie=="file"||!ee(fe)?"null":Ie+"://"+G(fe.host)+(De!==null?":"+De:"")},rt=function(){return h(this).scheme+":"},xt=function(){return h(this).username},ft=function(){return h(this).password},lt=function(){var fe=h(this),Ie=fe.host,De=fe.port;return Ie===null?"":De===null?G(Ie):G(Ie)+":"+De},ht=function(){var fe=h(this).host;return fe===null?"":G(fe)},St=function(){var fe=h(this).port;return fe===null?"":String(fe)},wt=function(){var fe=h(this),Ie=fe.path;return fe.cannotBeABaseURL?Ie[0]:Ie.length?"/"+Ie.join("/"):""},vt=function(){var fe=h(this).query;return fe?"?"+fe:""},bt=function(){return h(this).searchParams},qt=function(){var fe=h(this).fragment;return fe?"#"+fe:""},Mt=function(fe,Ie){return{get:fe,set:Ie,configurable:!0,enumerable:!0}};if(i&&N(Ge,{href:Mt(ze,function(fe){var Ie=h(this),De=String(fe),$e=Oe(Ie,De);if($e)throw TypeError($e);d(Ie.searchParams).updateSearchParams(Ie.query)}),origin:Mt(tt),protocol:Mt(rt,function(fe){var Ie=h(this);Oe(Ie,String(fe)+":",le)}),username:Mt(xt,function(fe){var Ie=h(this),De=n(String(fe));if(!ae(Ie)){Ie.username="";for(var $e=0;$e<De.length;$e++)Ie.username+=K(De[$e],Y)}}),password:Mt(ft,function(fe){var Ie=h(this),De=n(String(fe));if(!ae(Ie)){Ie.password="";for(var $e=0;$e<De.length;$e++)Ie.password+=K(De[$e],Y)}}),host:Mt(lt,function(fe){var Ie=h(this);Ie.cannotBeABaseURL||Oe(Ie,String(fe),se)}),hostname:Mt(ht,function(fe){var Ie=h(this);Ie.cannotBeABaseURL||Oe(Ie,String(fe),pe)}),port:Mt(St,function(fe){var Ie=h(this);ae(Ie)||(fe=String(fe),fe==""?Ie.port=null:Oe(Ie,fe,we))}),pathname:Mt(wt,function(fe){var Ie=h(this);Ie.cannotBeABaseURL||(Ie.path=[],Oe(Ie,fe+"",Le))}),search:Mt(vt,function(fe){var Ie=h(this);fe=String(fe),fe==""?Ie.query=null:(fe.charAt(0)=="?"&&(fe=fe.slice(1)),Ie.query="",Oe(Ie,fe,ve)),d(Ie.searchParams).updateSearchParams(Ie.query)}),searchParams:Mt(bt),hash:Mt(qt,function(fe){var Ie=h(this);if(fe=String(fe),fe==""){Ie.fragment=null;return}fe.charAt(0)=="#"&&(fe=fe.slice(1)),Ie.fragment="",Oe(Ie,fe,ye)})}),w(Ge,"toJSON",function(){return ze.call(this)},{enumerable:!0}),w(Ge,"toString",function(){return ze.call(this)},{enumerable:!0}),b){var Zt=b.createObjectURL,zt=b.revokeObjectURL;Zt&&w(Ne,"createObjectURL",function(Ie){return Zt.apply(b,arguments)}),zt&&w(Ne,"revokeObjectURL",function(Ie){return zt.apply(b,arguments)})}L(Ne,"URL"),r({global:!0,forced:!p,sham:!i},{URL:Ne})},function(x,t,a){var r=a(9),i=a(53),p=a(32),e=i("iterator");x.exports=!r(function(){var N=new URL("b?a=1&b=2&c=3","http://a"),w=N.searchParams,$="";return N.pathname="c%20d",w.forEach(function(U,m){w.delete("b"),$+=m+U}),p&&!N.toJSON||!w.sort||N.href!=="http://a/c%20d?a=1&c=3"||w.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!w[e]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||$!=="a1c3"||new URL("http://x",void 0).host!=="x"})},function(x,t,a){var r=2147483647,i=36,p=1,e=26,N=38,w=700,$=72,U=128,m="-",n=/[^\0-\u007E]/,J=/[.\u3002\uFF0E\uFF61]/g,O="Overflow: input needs wider integers to process",L=i-p,M=Math.floor,P=String.fromCharCode,b=function(h){for(var f=[],g=0,v=h.length;g<v;){var s=h.charCodeAt(g++);if(s>=55296&&s<=56319&&g<v){var o=h.charCodeAt(g++);(o&64512)==56320?f.push(((s&1023)<<10)+(o&1023)+65536):(f.push(s),g--)}else f.push(s)}return f},_=function(h){return h+22+75*(h<26)},d=function(h,f,g){var v=0;for(h=g?M(h/w):h>>1,h+=M(h/f);h>L*e>>1;v+=i)h=M(h/L);return M(v+(L+1)*h/(h+N))},c=function(h){var f=[];h=b(h);var g=h.length,v=U,s=0,o=$,u,l;for(u=0;u<h.length;u++)l=h[u],l<128&&f.push(P(l));var F=f.length,T=F;for(F&&f.push(m);T<g;){var D=r;for(u=0;u<h.length;u++)l=h[u],l>=v&&l<D&&(D=l);var k=T+1;if(D-v>M((r-s)/k))throw RangeError(O);for(s+=(D-v)*k,v=D,u=0;u<h.length;u++){if(l=h[u],l<v&&++s>r)throw RangeError(O);if(l==v){for(var S=s,R=i;;R+=i){var E=R<=o?p:R>=o+e?e:R-o;if(S<E)break;var A=S-E,C=i-E;f.push(P(_(E+A%C))),S=M(A/C)}f.push(P(_(S))),o=d(s,k,T==F),s=0,++T}}++s,++v}return f.join("")};x.exports=function(h){var f=[],g=h.toLowerCase().replace(J,".").split("."),v,s;for(v=0;v<g.length;v++)s=g[v],f.push(n.test(s)?"xn--"+c(s):s);return f.join(".")}},function(x,t,a){a(109);var r=a(5),i=a(37),p=a(130),e=a(24),N=a(112),w=a(81),$=a(76),U=a(28),m=a(114),n=a(18),J=a(58),O=a(91),L=a(23),M=a(17),P=a(67),b=a(11),_=a(133),d=a(90),c=a(53),h=i("fetch"),f=i("Headers"),g=c("iterator"),v="URLSearchParams",s=v+"Iterator",o=U.set,u=U.getterFor(v),l=U.getterFor(s),F=/\+/g,T=Array(4),D=function(G){return T[G-1]||(T[G-1]=RegExp("((?:%[\\da-f]{2}){"+G+"})","gi"))},k=function(G){try{return decodeURIComponent(G)}catch{return G}},S=function(G){var q=G.replace(F," "),z=4;try{return decodeURIComponent(q)}catch{for(;z;)q=q.replace(D(z--),k);return q}},R=/[!'()~]|%20/g,E={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},A=function(G){return E[G]},C=function(G){return encodeURIComponent(G).replace(R,A)},y=function(G,q){if(q)for(var z=q.split("&"),j=0,Y,K;j<z.length;)Y=z[j++],Y.length&&(K=Y.split("="),G.push({key:S(K.shift()),value:S(K.join("="))}))},I=function(G){this.entries.length=0,y(this.entries,G)},H=function(G,q){if(G<q)throw TypeError("Not enough arguments")},V=$(function(q,z){o(this,{type:s,iterator:_(u(q).entries),kind:z})},"Iterator",function(){var q=l(this),z=q.kind,j=q.iterator.next(),Y=j.value;return j.done||(j.value=z==="keys"?Y.key:z==="values"?Y.value:[Y.key,Y.value]),j}),B=function(){m(this,B,v);var q=arguments.length>0?arguments[0]:void 0,z=this,j=[],Y,K,Z,ee,ne,ae,te,re,ie;if(o(z,{type:v,entries:j,updateURL:function(){},updateSearchParams:I}),q!==void 0)if(M(q))if(Y=d(q),typeof Y=="function")for(K=Y.call(q),Z=K.next;!(ee=Z.call(K)).done;){if(ne=_(L(ee.value)),ae=ne.next,(te=ae.call(ne)).done||(re=ae.call(ne)).done||!ae.call(ne).done)throw TypeError("Expected sequence with length 2");j.push({key:te.value+"",value:re.value+""})}else for(ie in q)n(q,ie)&&j.push({key:ie,value:q[ie]+""});else y(j,typeof q=="string"?q.charAt(0)==="?"?q.slice(1):q:q+"")},W=B.prototype;N(W,{append:function(q,z){H(arguments.length,2);var j=u(this);j.entries.push({key:q+"",value:z+""}),j.updateURL()},delete:function(G){H(arguments.length,1);for(var q=u(this),z=q.entries,j=G+"",Y=0;Y<z.length;)z[Y].key===j?z.splice(Y,1):Y++;q.updateURL()},get:function(q){H(arguments.length,1);for(var z=u(this).entries,j=q+"",Y=0;Y<z.length;Y++)if(z[Y].key===j)return z[Y].value;return null},getAll:function(q){H(arguments.length,1);for(var z=u(this).entries,j=q+"",Y=[],K=0;K<z.length;K++)z[K].key===j&&Y.push(z[K].value);return Y},has:function(q){H(arguments.length,1);for(var z=u(this).entries,j=q+"",Y=0;Y<z.length;)if(z[Y++].key===j)return!0;return!1},set:function(q,z){H(arguments.length,1);for(var j=u(this),Y=j.entries,K=!1,Z=q+"",ee=z+"",ne=0,ae;ne<Y.length;ne++)ae=Y[ne],ae.key===Z&&(K?Y.splice(ne--,1):(K=!0,ae.value=ee));K||Y.push({key:Z,value:ee}),j.updateURL()},sort:function(){var q=u(this),z=q.entries,j=z.slice(),Y,K,Z;for(z.length=0,Z=0;Z<j.length;Z++){for(Y=j[Z],K=0;K<Z;K++)if(z[K].key>Y.key){z.splice(K,0,Y);break}K===Z&&z.push(Y)}q.updateURL()},forEach:function(q){for(var z=u(this).entries,j=J(q,arguments.length>1?arguments[1]:void 0,3),Y=0,K;Y<z.length;)K=z[Y++],j(K.value,K.key,this)},keys:function(){return new V(this,"keys")},values:function(){return new V(this,"values")},entries:function(){return new V(this,"entries")}},{enumerable:!0}),e(W,g,W.entries),e(W,"toString",function(){for(var q=u(this).entries,z=[],j=0,Y;j<q.length;)Y=q[j++],z.push(C(Y.key)+"="+C(Y.value));return z.join("&")},{enumerable:!0}),w(B,v),r({global:!0,forced:!p},{URLSearchParams:B}),!p&&typeof h=="function"&&typeof f=="function"&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(q){var z=[q],j,Y,K;return arguments.length>1&&(j=arguments[1],M(j)&&(Y=j.body,O(Y)===v&&(K=j.headers?new f(j.headers):new f,K.has("content-type")||K.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),j=P(j,{body:b(0,String(Y)),headers:b(0,K)}))),z.push(j)),h.apply(this,z)}}),x.exports={URLSearchParams:B,getState:u}},function(x,t,a){var r=a(23),i=a(90);x.exports=function(p){var e=i(p);if(typeof e!="function")throw TypeError(String(p)+" is not iterable");return r(e.call(p))}},function(x,t,a){var r=a(5);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(x,t,a){(function(r,i){i(t)})(this,function(r){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol:function(X){return"Symbol("+X+")"};function p(){}var e=Number.isNaN||function(X){return X!==X},N=p;function w(X){return typeof X=="object"&&X!==null||typeof X=="function"}function $(X){return X.slice()}function U(X,Q,ce,Ae,Re){new Uint8Array(X).set(new Uint8Array(ce,Ae,Re),Q)}function m(X){return!(n(X)===!1||X===1/0)}function n(X){return!(typeof X!="number"||e(X)||X<0)}function J(X,Q,ce){if(typeof X!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(X,Q,ce)}function O(X,Q,ce,Ae){var Re=X[Q];if(Re!==void 0){if(typeof Re!="function")throw new TypeError(Re+" is not a method");switch(ce){case 0:return function(){return M(Re,X,Ae)};case 1:return function(He){var je=[He].concat(Ae);return M(Re,X,je)}}}return function(){return s(void 0)}}function L(X,Q,ce){var Ae=X[Q];if(Ae!==void 0)return J(Ae,X,ce)}function M(X,Q,ce){try{return s(J(X,Q,ce))}catch(Ae){return o(Ae)}}function P(X){return X}function b(X){return!1}function _(X){if(X=Number(X),e(X)||X<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return X}function d(X){if(X===void 0)return function(){return 1};if(typeof X!="function")throw new TypeError("size property of a queuing strategy must be a function");return function(Q){return X(Q)}}var c=Promise,h=Promise.prototype.then,f=Promise.resolve.bind(c),g=Promise.reject.bind(c);function v(X){return new c(X)}function s(X){return f(X)}function o(X){return g(X)}function u(X,Q,ce){return h.call(X,Q,ce)}function l(X,Q,ce){u(u(X,Q,ce),void 0,N)}function F(X,Q){l(X,Q)}function T(X,Q){l(X,void 0,Q)}function D(X,Q,ce){return u(X,Q,ce)}function k(X){u(X,void 0,N)}var S=16384,R=function(){function X(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(X.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),X.prototype.push=function(Q){var ce=this._back,Ae=ce;ce._elements.length===S-1&&(Ae={_elements:[],_next:void 0}),ce._elements.push(Q),Ae!==ce&&(this._back=Ae,ce._next=Ae),++this._size},X.prototype.shift=function(){var Q=this._front,ce=Q,Ae=this._cursor,Re=Ae+1,He=Q._elements,je=He[Ae];return Re===S&&(ce=Q._next,Re=0),--this._size,this._cursor=Re,Q!==ce&&(this._front=ce),He[Ae]=void 0,je},X.prototype.forEach=function(Q){for(var ce=this._cursor,Ae=this._front,Re=Ae._elements;(ce!==Re.length||Ae._next!==void 0)&&!(ce===Re.length&&(Ae=Ae._next,Re=Ae._elements,ce=0,Re.length===0));)Q(Re[ce]),++ce},X.prototype.peek=function(){var Q=this._front,ce=this._cursor;return Q._elements[ce]},X}();function E(X,Q,ce){var Ae=null;ce===!0&&(Ae=Object.prototype);var Re=Object.create(Ae);return Re.value=X,Re.done=Q,Re}function A(X,Q){X._forAuthorCode=!0,X._ownerReadableStream=Q,Q._reader=X,Q._state==="readable"?H(X):Q._state==="closed"?B(X):V(X,Q._storedError)}function C(X,Q){var ce=X._ownerReadableStream;return lr(ce,Q)}function y(X){X._ownerReadableStream._state==="readable"?W(X,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):G(X,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),X._ownerReadableStream._reader=void 0,X._ownerReadableStream=void 0}function I(X){return new TypeError("Cannot "+X+" a stream using a released reader")}function H(X){X._closedPromise=v(function(Q,ce){X._closedPromise_resolve=Q,X._closedPromise_reject=ce})}function V(X,Q){H(X),W(X,Q)}function B(X){H(X),q(X)}function W(X,Q){k(X._closedPromise),X._closedPromise_reject(Q),X._closedPromise_resolve=void 0,X._closedPromise_reject=void 0}function G(X,Q){V(X,Q)}function q(X){X._closedPromise_resolve(void 0),X._closedPromise_resolve=void 0,X._closedPromise_reject=void 0}var z=i("[[CancelSteps]]"),j=i("[[PullSteps]]");function Y(X,Q){Q===void 0&&(Q=!1);var ce=new ae(X);return ce._forAuthorCode=Q,ce}function K(X){var Q=v(function(ce,Ae){var Re={_resolve:ce,_reject:Ae};X._reader._readRequests.push(Re)});return Q}function Z(X,Q,ce){var Ae=X._reader,Re=Ae._readRequests.shift();Re._resolve(E(Q,ce,Ae._forAuthorCode))}function ee(X){return X._reader._readRequests.length}function ne(X){var Q=X._reader;return!(Q===void 0||!te(Q))}var ae=function(){function X(Q){if(Kt(Q)===!1)throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(ar(Q)===!0)throw new TypeError("This stream has already been locked for exclusive reading by another reader");A(this,Q),this._readRequests=new R}return Object.defineProperty(X.prototype,"closed",{get:function(){return te(this)?this._closedPromise:o(ie("closed"))},enumerable:!0,configurable:!0}),X.prototype.cancel=function(Q){return te(this)?this._ownerReadableStream===void 0?o(I("cancel")):C(this,Q):o(ie("cancel"))},X.prototype.read=function(){return te(this)?this._ownerReadableStream===void 0?o(I("read from")):re(this):o(ie("read"))},X.prototype.releaseLock=function(){if(!te(this))throw ie("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");y(this)}},X}();function te(X){return!(!w(X)||!Object.prototype.hasOwnProperty.call(X,"_readRequests"))}function re(X){var Q=X._ownerReadableStream;return Q._disturbed=!0,Q._state==="closed"?s(E(void 0,!0,X._forAuthorCode)):Q._state==="errored"?o(Q._storedError):Q._readableStreamController[j]()}function ie(X){return new TypeError("ReadableStreamDefaultReader.prototype."+X+" can only be used on a ReadableStreamDefaultReader")}var de,oe;typeof i.asyncIterator=="symbol"&&(oe=(de={},de[i.asyncIterator]=function(){return this},de),Object.defineProperty(oe,i.asyncIterator,{enumerable:!1}));var le={next:function(){if(Pe(this)===!1)return o(Ce("next"));var X=this._asyncIteratorReader;return X._ownerReadableStream===void 0?o(I("iterate")):D(re(X),function(Q){var ce=Q.done;ce&&y(X);var Ae=Q.value;return E(Ae,ce,!0)})},return:function(X){if(Pe(this)===!1)return o(Ce("next"));var Q=this._asyncIteratorReader;if(Q._ownerReadableStream===void 0)return o(I("finish iterating"));if(Q._readRequests.length>0)return o(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(this._preventCancel===!1){var ce=C(Q,X);return y(Q),D(ce,function(){return E(X,!0,!0)})}return y(Q),s(E(X,!0,!0))}};oe!==void 0&&Object.setPrototypeOf(le,oe),Object.defineProperty(le,"next",{enumerable:!1}),Object.defineProperty(le,"return",{enumerable:!1});function me(X,Q){Q===void 0&&(Q=!1);var ce=Y(X),Ae=Object.create(le);return Ae._asyncIteratorReader=ce,Ae._preventCancel=!!Q,Ae}function Pe(X){return!(!w(X)||!Object.prototype.hasOwnProperty.call(X,"_asyncIteratorReader"))}function Ce(X){return new TypeError("ReadableStreamAsyncIterator."+X+" can only be used on a ReadableSteamAsyncIterator")}function xe(X){var Q=X._queue.shift();return X._queueTotalSize-=Q.size,X._queueTotalSize<0&&(X._queueTotalSize=0),Q.value}function be(X,Q,ce){if(ce=Number(ce),!m(ce))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");X._queue.push({value:Q,size:ce}),X._queueTotalSize+=ce}function Se(X){var Q=X._queue.peek();return Q.value}function _e(X){X._queue=new R,X._queueTotalSize=0}var ge=i("[[AbortSteps]]"),ue=i("[[ErrorSteps]]"),se=function(){function X(Q,ce){Q===void 0&&(Q={}),ce===void 0&&(ce={}),Te(this);var Ae=ce.size,Re=ce.highWaterMark,He=Q.type;if(He!==void 0)throw new RangeError("Invalid type is specified");var je=d(Ae);Re===void 0&&(Re=1),Re=_(Re),Xe(this,Q,Re,je)}return Object.defineProperty(X.prototype,"locked",{get:function(){if(ke(this)===!1)throw Me("locked");return Fe(this)},enumerable:!0,configurable:!0}),X.prototype.abort=function(Q){return ke(this)===!1?o(Me("abort")):Fe(this)===!0?o(new TypeError("Cannot abort a stream that already has a writer")):Le(this,Q)},X.prototype.close=function(){return ke(this)===!1?o(Me("close")):Fe(this)===!0?o(new TypeError("Cannot close a stream that already has a writer")):rt(this)===!0?o(new TypeError("Cannot close an already-closing stream")):he(this)},X.prototype.getWriter=function(){if(ke(this)===!1)throw Me("getWriter");return pe(this)},X}();function pe(X){return new wt(X)}function we(X,Q,ce,Ae,Re,He){Re===void 0&&(Re=1),He===void 0&&(He=function(){return 1});var je=Object.create(se.prototype);Te(je);var Ze=Object.create($e.prototype);return it(je,Ze,X,Q,ce,Ae,Re,He),je}function Te(X){X._state="writable",X._storedError=void 0,X._writer=void 0,X._writableStreamController=void 0,X._writeRequests=new R,X._inFlightWriteRequest=void 0,X._closeRequest=void 0,X._inFlightCloseRequest=void 0,X._pendingAbortRequest=void 0,X._backpressure=!1}function ke(X){return!(!w(X)||!Object.prototype.hasOwnProperty.call(X,"_writableStreamController"))}function Fe(X){return X._writer!==void 0}function Le(X,Q){var ce=X._state;if(ce==="closed"||ce==="errored")return s(void 0);if(X._pendingAbortRequest!==void 0)return X._pendingAbortRequest._promise;var Ae=!1;ce==="erroring"&&(Ae=!0,Q=void 0);var Re=v(function(He,je){X._pendingAbortRequest={_promise:void 0,_resolve:He,_reject:je,_reason:Q,_wasAlreadyErroring:Ae}});return X._pendingAbortRequest._promise=Re,Ae===!1&&ye(X,Q),Re}function he(X){var Q=X._state;if(Q==="closed"||Q==="errored")return o(new TypeError("The stream (in "+Q+" state) is not in the writable state and cannot be closed"));var ce=v(function(Re,He){var je={_resolve:Re,_reject:He};X._closeRequest=je}),Ae=X._writer;return Ae!==void 0&&X._backpressure===!0&&Q==="writable"&&mt(Ae),At(X._writableStreamController),ce}function Ee(X){var Q=v(function(ce,Ae){var Re={_resolve:ce,_reject:Ae};X._writeRequests.push(Re)});return Q}function ve(X,Q){var ce=X._state;if(ce==="writable"){ye(X,Q);return}Oe(X)}function ye(X,Q){var ce=X._writableStreamController;X._state="erroring",X._storedError=Q;var Ae=X._writer;Ae!==void 0&&zt(Ae,Q),xt(X)===!1&&ce._started===!0&&Oe(X)}function Oe(X){X._state="errored",X._writableStreamController[ue]();var Q=X._storedError;if(X._writeRequests.forEach(function(Re){Re._reject(Q)}),X._writeRequests=new R,X._pendingAbortRequest===void 0){ht(X);return}var ce=X._pendingAbortRequest;if(X._pendingAbortRequest=void 0,ce._wasAlreadyErroring===!0){ce._reject(Q),ht(X);return}var Ae=X._writableStreamController[ge](ce._reason);l(Ae,function(){ce._resolve(),ht(X)},function(Re){ce._reject(Re),ht(X)})}function Ne(X){X._inFlightWriteRequest._resolve(void 0),X._inFlightWriteRequest=void 0}function Ge(X,Q){X._inFlightWriteRequest._reject(Q),X._inFlightWriteRequest=void 0,ve(X,Q)}function ze(X){X._inFlightCloseRequest._resolve(void 0),X._inFlightCloseRequest=void 0;var Q=X._state;Q==="erroring"&&(X._storedError=void 0,X._pendingAbortRequest!==void 0&&(X._pendingAbortRequest._resolve(),X._pendingAbortRequest=void 0)),X._state="closed";var ce=X._writer;ce!==void 0&&st(ce)}function tt(X,Q){X._inFlightCloseRequest._reject(Q),X._inFlightCloseRequest=void 0,X._pendingAbortRequest!==void 0&&(X._pendingAbortRequest._reject(Q),X._pendingAbortRequest=void 0),ve(X,Q)}function rt(X){return!(X._closeRequest===void 0&&X._inFlightCloseRequest===void 0)}function xt(X){return!(X._inFlightWriteRequest===void 0&&X._inFlightCloseRequest===void 0)}function ft(X){X._inFlightCloseRequest=X._closeRequest,X._closeRequest=void 0}function lt(X){X._inFlightWriteRequest=X._writeRequests.shift()}function ht(X){X._closeRequest!==void 0&&(X._closeRequest._reject(X._storedError),X._closeRequest=void 0);var Q=X._writer;Q!==void 0&&et(Q,X._storedError)}function St(X,Q){var ce=X._writer;ce!==void 0&&Q!==X._backpressure&&(Q===!0?Ct(ce):mt(ce)),X._backpressure=Q}var wt=function(){function X(Q){if(ke(Q)===!1)throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(Fe(Q)===!0)throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=Q,Q._writer=this;var ce=Q._state;if(ce==="writable")rt(Q)===!1&&Q._backpressure===!0?at(this):ot(this),We(this);else if(ce==="erroring")ct(this,Q._storedError),We(this);else if(ce==="closed")ot(this),Ke(this);else{var Ae=Q._storedError;ct(this,Ae),Ye(this,Ae)}}return Object.defineProperty(X.prototype,"closed",{get:function(){return vt(this)===!1?o(Ve("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"desiredSize",{get:function(){if(vt(this)===!1)throw Ve("desiredSize");if(this._ownerWritableStream===void 0)throw Je("desiredSize");return fe(this)},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"ready",{get:function(){return vt(this)===!1?o(Ve("ready")):this._readyPromise},enumerable:!0,configurable:!0}),X.prototype.abort=function(Q){return vt(this)===!1?o(Ve("abort")):this._ownerWritableStream===void 0?o(Je("abort")):bt(this,Q)},X.prototype.close=function(){if(vt(this)===!1)return o(Ve("close"));var Q=this._ownerWritableStream;return Q===void 0?o(Je("close")):rt(Q)===!0?o(new TypeError("Cannot close an already-closing stream")):qt(this)},X.prototype.releaseLock=function(){if(vt(this)===!1)throw Ve("releaseLock");var Q=this._ownerWritableStream;Q!==void 0&&Ie(this)},X.prototype.write=function(Q){return vt(this)===!1?o(Ve("write")):this._ownerWritableStream===void 0?o(Je("write to")):De(this,Q)},X}();function vt(X){return!(!w(X)||!Object.prototype.hasOwnProperty.call(X,"_ownerWritableStream"))}function bt(X,Q){var ce=X._ownerWritableStream;return Le(ce,Q)}function qt(X){var Q=X._ownerWritableStream;return he(Q)}function Mt(X){var Q=X._ownerWritableStream,ce=Q._state;return rt(Q)===!0||ce==="closed"?s(void 0):ce==="errored"?o(Q._storedError):qt(X)}function Zt(X,Q){X._closedPromiseState==="pending"?et(X,Q):qe(X,Q)}function zt(X,Q){X._readyPromiseState==="pending"?Et(X,Q):gt(X,Q)}function fe(X){var Q=X._ownerWritableStream,ce=Q._state;return ce==="errored"||ce==="erroring"?null:ce==="closed"?0:Ot(Q._writableStreamController)}function Ie(X){var Q=X._ownerWritableStream,ce=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");zt(X,ce),Zt(X,ce),Q._writer=void 0,X._ownerWritableStream=void 0}function De(X,Q){var ce=X._ownerWritableStream,Ae=ce._writableStreamController,Re=Tt(Ae,Q);if(ce!==X._ownerWritableStream)return o(Je("write to"));var He=ce._state;if(He==="errored")return o(ce._storedError);if(rt(ce)===!0||He==="closed")return o(new TypeError("The stream is closing or closed and cannot be written to"));if(He==="erroring")return o(ce._storedError);var je=Ee(ce);return Be(Ae,Q,Re),je}var $e=function(){function X(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return X.prototype.error=function(Q){if(Ue(this)===!1)throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");var ce=this._controlledWritableStream._state;ce==="writable"&&er(this,Q)},X.prototype[ge]=function(Q){var ce=this._abortAlgorithm(Q);return dt(this),ce},X.prototype[ue]=function(){_e(this)},X}();function Ue(X){return!(!w(X)||!Object.prototype.hasOwnProperty.call(X,"_controlledWritableStream"))}function it(X,Q,ce,Ae,Re,He,je,Ze){Q._controlledWritableStream=X,X._writableStreamController=Q,Q._queue=void 0,Q._queueTotalSize=void 0,_e(Q),Q._started=!1,Q._strategySizeAlgorithm=Ze,Q._strategyHWM=je,Q._writeAlgorithm=Ae,Q._closeAlgorithm=Re,Q._abortAlgorithm=He;var pt=Qt(Q);St(X,pt);var kt=ce(),Lt=s(kt);l(Lt,function(){Q._started=!0,Ft(Q)},function(Bt){Q._started=!0,ve(X,Bt)})}function Xe(X,Q,ce,Ae){var Re=Object.create($e.prototype);function He(){return L(Q,"start",[Re])}var je=O(Q,"write",1,[Re]),Ze=O(Q,"close",0,[]),pt=O(Q,"abort",1,[]);it(X,Re,He,je,Ze,pt,ce,Ae)}function dt(X){X._writeAlgorithm=void 0,X._closeAlgorithm=void 0,X._abortAlgorithm=void 0,X._strategySizeAlgorithm=void 0}function At(X){be(X,"close",0),Ft(X)}function Tt(X,Q){try{return X._strategySizeAlgorithm(Q)}catch(ce){return Jt(X,ce),1}}function Ot(X){return X._strategyHWM-X._queueTotalSize}function Be(X,Q,ce){var Ae={chunk:Q};try{be(X,Ae,ce)}catch(je){Jt(X,je);return}var Re=X._controlledWritableStream;if(rt(Re)===!1&&Re._state==="writable"){var He=Qt(X);St(Re,He)}Ft(X)}function Ft(X){var Q=X._controlledWritableStream;if(X._started!==!1&&Q._inFlightWriteRequest===void 0){var ce=Q._state;if(ce==="erroring"){Oe(Q);return}if(X._queue.length!==0){var Ae=Se(X);Ae==="close"?or(X):dr(X,Ae.chunk)}}}function Jt(X,Q){X._controlledWritableStream._state==="writable"&&er(X,Q)}function or(X){var Q=X._controlledWritableStream;ft(Q),xe(X);var ce=X._closeAlgorithm();dt(X),l(ce,function(){ze(Q)},function(Ae){tt(Q,Ae)})}function dr(X,Q){var ce=X._controlledWritableStream;lt(ce);var Ae=X._writeAlgorithm(Q);l(Ae,function(){Ne(ce);var Re=ce._state;if(xe(X),rt(ce)===!1&&Re==="writable"){var He=Qt(X);St(ce,He)}Ft(X)},function(Re){ce._state==="writable"&&dt(X),Ge(ce,Re)})}function Qt(X){var Q=Ot(X);return Q<=0}function er(X,Q){var ce=X._controlledWritableStream;dt(X),ye(ce,Q)}function Me(X){return new TypeError("WritableStream.prototype."+X+" can only be used on a WritableStream")}function Ve(X){return new TypeError("WritableStreamDefaultWriter.prototype."+X+" can only be used on a WritableStreamDefaultWriter")}function Je(X){return new TypeError("Cannot "+X+" a stream using a released writer")}function We(X){X._closedPromise=v(function(Q,ce){X._closedPromise_resolve=Q,X._closedPromise_reject=ce,X._closedPromiseState="pending"})}function Ye(X,Q){We(X),et(X,Q)}function Ke(X){We(X),st(X)}function et(X,Q){k(X._closedPromise),X._closedPromise_reject(Q),X._closedPromise_resolve=void 0,X._closedPromise_reject=void 0,X._closedPromiseState="rejected"}function qe(X,Q){Ye(X,Q)}function st(X){X._closedPromise_resolve(void 0),X._closedPromise_resolve=void 0,X._closedPromise_reject=void 0,X._closedPromiseState="resolved"}function at(X){X._readyPromise=v(function(Q,ce){X._readyPromise_resolve=Q,X._readyPromise_reject=ce}),X._readyPromiseState="pending"}function ct(X,Q){at(X),Et(X,Q)}function ot(X){at(X),mt(X)}function Et(X,Q){k(X._readyPromise),X._readyPromise_reject(Q),X._readyPromise_resolve=void 0,X._readyPromise_reject=void 0,X._readyPromiseState="rejected"}function Ct(X){at(X)}function gt(X,Q){ct(X,Q)}function mt(X){X._readyPromise_resolve(void 0),X._readyPromise_resolve=void 0,X._readyPromise_reject=void 0,X._readyPromiseState="fulfilled"}function _t(X){if(typeof X!="object"||X===null)return!1;try{return typeof X.aborted=="boolean"}catch{return!1}}var Qe=typeof DOMException<"u"?DOMException:void 0;function Nt(X){if(!(typeof X=="function"||typeof X=="object"))return!1;try{return new X,!0}catch{return!1}}function nt(){var X=function(ce,Ae){this.message=ce||"",this.name=Ae||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return X.prototype=Object.create(Error.prototype),Object.defineProperty(X.prototype,"constructor",{value:X,writable:!0,configurable:!0}),X}var Rt=Nt(Qe)?Qe:nt();function ut(X,Q,ce,Ae,Re,He){var je=Y(X),Ze=pe(Q);X._disturbed=!0;var pt=!1,kt=s(void 0);return v(function(Lt,Bt){var Ut;if(He!==void 0){if(Ut=function(){var yt=new Rt("Aborted","AbortError"),Vt=[];Ae===!1&&Vt.push(function(){return Q._state==="writable"?Le(Q,yt):s(void 0)}),Re===!1&&Vt.push(function(){return X._state==="readable"?lr(X,yt):s(void 0)}),ir(function(){return Promise.all(Vt.map(function(Wt){return Wt()}))},!0,yt)},He.aborted===!0){Ut();return}He.addEventListener("abort",Ut)}function br(){return v(function(yt,Vt){function Wt(Ir){Ir?yt():u(Sr(),Wt,Vt)}Wt(!1)})}function Sr(){return pt===!0?s(!0):u(Ze._readyPromise,function(){return u(re(je),function(yt){var Vt=yt.value,Wt=yt.done;return Wt===!0?!0:(kt=u(De(Ze,Vt),void 0,p),!1)})})}if(tr(X,je._closedPromise,function(yt){Ae===!1?ir(function(){return Le(Q,yt)},!0,yt):fr(!0,yt)}),tr(Q,Ze._closedPromise,function(yt){Re===!1?ir(function(){return lr(X,yt)},!0,yt):fr(!0,yt)}),cr(X,je._closedPromise,function(){ce===!1?ir(function(){return Mt(Ze)}):fr()}),rt(Q)===!0||Q._state==="closed"){var nr=new TypeError("the destination writable stream closed before all data could be piped to it");Re===!1?ir(function(){return lr(X,nr)},!0,nr):fr(!0,nr)}k(br());function Ht(){var yt=kt;return u(kt,function(){return yt!==kt?Ht():void 0})}function tr(yt,Vt,Wt){yt._state==="errored"?Wt(yt._storedError):T(Vt,Wt)}function cr(yt,Vt,Wt){yt._state==="closed"?Wt():F(Vt,Wt)}function ir(yt,Vt,Wt){if(pt===!0)return;pt=!0,Q._state==="writable"&&rt(Q)===!1?F(Ht(),Ir):Ir();function Ir(){l(yt(),function(){return pr(Vt,Wt)},function($a){return pr(!0,$a)})}}function fr(yt,Vt){pt!==!0&&(pt=!0,Q._state==="writable"&&rt(Q)===!1?F(Ht(),function(){return pr(yt,Vt)}):pr(yt,Vt))}function pr(yt,Vt){Ie(Ze),y(je),He!==void 0&&He.removeEventListener("abort",Ut),yt?Bt(Vt):Lt(void 0)}})}var Pt=function(){function X(){throw new TypeError}return Object.defineProperty(X.prototype,"desiredSize",{get:function(){if(jt(this)===!1)throw Cr("desiredSize");return gr(this)},enumerable:!0,configurable:!0}),X.prototype.close=function(){if(jt(this)===!1)throw Cr("close");if(rr(this)===!1)throw new TypeError("The stream is not in a state that permits close");Dt(this)},X.prototype.enqueue=function(Q){if(jt(this)===!1)throw Cr("enqueue");if(rr(this)===!1)throw new TypeError("The stream is not in a state that permits enqueue");return It(this,Q)},X.prototype.error=function(Q){if(jt(this)===!1)throw Cr("error");$t(this,Q)},X.prototype[z]=function(Q){_e(this);var ce=this._cancelAlgorithm(Q);return Yt(this),ce},X.prototype[j]=function(){var Q=this._controlledReadableStream;if(this._queue.length>0){var ce=xe(this);return this._closeRequested===!0&&this._queue.length===0?(Yt(this),vr(Q)):Xt(this),s(E(ce,!1,Q._reader._forAuthorCode))}var Ae=K(Q);return Xt(this),Ae},X}();function jt(X){return!(!w(X)||!Object.prototype.hasOwnProperty.call(X,"_controlledReadableStream"))}function Xt(X){var Q=Gt(X);if(Q!==!1){if(X._pulling===!0){X._pullAgain=!0;return}X._pulling=!0;var ce=X._pullAlgorithm();l(ce,function(){X._pulling=!1,X._pullAgain===!0&&(X._pullAgain=!1,Xt(X))},function(Ae){$t(X,Ae)})}}function Gt(X){var Q=X._controlledReadableStream;if(rr(X)===!1||X._started===!1)return!1;if(ar(Q)===!0&&ee(Q)>0)return!0;var ce=gr(X);return ce>0}function Yt(X){X._pullAlgorithm=void 0,X._cancelAlgorithm=void 0,X._strategySizeAlgorithm=void 0}function Dt(X){var Q=X._controlledReadableStream;X._closeRequested=!0,X._queue.length===0&&(Yt(X),vr(Q))}function It(X,Q){var ce=X._controlledReadableStream;if(ar(ce)===!0&&ee(ce)>0)Z(ce,Q,!1);else{var Ae=void 0;try{Ae=X._strategySizeAlgorithm(Q)}catch(Re){throw $t(X,Re),Re}try{be(X,Q,Ae)}catch(Re){throw $t(X,Re),Re}}Xt(X)}function $t(X,Q){var ce=X._controlledReadableStream;ce._state==="readable"&&(_e(X),Yt(X),Zr(ce,Q))}function gr(X){var Q=X._controlledReadableStream,ce=Q._state;return ce==="errored"?null:ce==="closed"?0:X._strategyHWM-X._queueTotalSize}function Lr(X){return Gt(X)!==!0}function rr(X){var Q=X._controlledReadableStream._state;return X._closeRequested===!1&&Q==="readable"}function yr(X,Q,ce,Ae,Re,He,je){Q._controlledReadableStream=X,Q._queue=void 0,Q._queueTotalSize=void 0,_e(Q),Q._started=!1,Q._closeRequested=!1,Q._pullAgain=!1,Q._pulling=!1,Q._strategySizeAlgorithm=je,Q._strategyHWM=He,Q._pullAlgorithm=Ae,Q._cancelAlgorithm=Re,X._readableStreamController=Q;var Ze=ce();l(s(Ze),function(){Q._started=!0,Xt(Q)},function(pt){$t(Q,pt)})}function na(X,Q,ce,Ae){var Re=Object.create(Pt.prototype);function He(){return L(Q,"start",[Re])}var je=O(Q,"pull",0,[Re]),Ze=O(Q,"cancel",1,[]);yr(X,Re,He,je,Ze,ce,Ae)}function Cr(X){return new TypeError("ReadableStreamDefaultController.prototype."+X+" can only be used on a ReadableStreamDefaultController")}function ia(X,Q){var ce=Y(X),Ae=!1,Re=!1,He=!1,je,Ze,pt,kt,Lt,Bt=v(function(Ht){Lt=Ht});function Ut(){if(Ae===!0)return s(void 0);Ae=!0;var Ht=D(re(ce),function(tr){Ae=!1;var cr=tr.done;if(cr===!0){Re===!1&&Dt(pt._readableStreamController),He===!1&&Dt(kt._readableStreamController);return}var ir=tr.value,fr=ir,pr=ir;Re===!1&&It(pt._readableStreamController,fr),He===!1&&It(kt._readableStreamController,pr)});return k(Ht),s(void 0)}function br(Ht){if(Re=!0,je=Ht,He===!0){var tr=$([je,Ze]),cr=lr(X,tr);Lt(cr)}return Bt}function Sr(Ht){if(He=!0,Ze=Ht,Re===!0){var tr=$([je,Ze]),cr=lr(X,tr);Lt(cr)}return Bt}function nr(){}return pt=Vr(nr,Ut,br),kt=Vr(nr,Ut,Sr),T(ce._closedPromise,function(Ht){$t(pt._readableStreamController,Ht),$t(kt._readableStreamController,Ht)}),[pt,kt]}var oa=Number.isInteger||function(X){return typeof X=="number"&&isFinite(X)&&Math.floor(X)===X},sa=function(){function X(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(X.prototype,"view",{get:function(){if(Or(this)===!1)throw Br("view");return this._view},enumerable:!0,configurable:!0}),X.prototype.respond=function(Q){if(Or(this)===!1)throw Br("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");b(this._view.buffer),ma(this._associatedReadableByteStreamController,Q)},X.prototype.respondWithNewView=function(Q){if(Or(this)===!1)throw Br("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(Q))throw new TypeError("You can only respond with array buffer views");b(Q.buffer),xa(this._associatedReadableByteStreamController,Q)},X}(),la=function(){function X(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(X.prototype,"byobRequest",{get:function(){if(hr(this)===!1)throw xr("byobRequest");if(this._byobRequest===void 0&&this._pendingPullIntos.length>0){var Q=this._pendingPullIntos.peek(),ce=new Uint8Array(Q.buffer,Q.byteOffset+Q.bytesFilled,Q.byteLength-Q.bytesFilled),Ae=Object.create(sa.prototype);ba(Ae,this,ce),this._byobRequest=Ae}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"desiredSize",{get:function(){if(hr(this)===!1)throw xr("desiredSize");return jr(this)},enumerable:!0,configurable:!0}),X.prototype.close=function(){if(hr(this)===!1)throw xr("close");if(this._closeRequested===!0)throw new TypeError("The stream has already been closed; do not close it again!");var Q=this._controlledReadableByteStream._state;if(Q!=="readable")throw new TypeError("The stream (in "+Q+" state) is not in the readable state and cannot be closed");pa(this)},X.prototype.enqueue=function(Q){if(hr(this)===!1)throw xr("enqueue");if(this._closeRequested===!0)throw new TypeError("stream is closed or draining");var ce=this._controlledReadableByteStream._state;if(ce!=="readable")throw new TypeError("The stream (in "+ce+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(Q))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");b(Q.buffer),ga(this,Q)},X.prototype.error=function(Q){if(hr(this)===!1)throw xr("error");mr(this,Q)},X.prototype[z]=function(Q){if(this._pendingPullIntos.length>0){var ce=this._pendingPullIntos.peek();ce.bytesFilled=0}_e(this);var Ae=this._cancelAlgorithm(Q);return Ar(this),Ae},X.prototype[j]=function(){var Q=this._controlledReadableByteStream;if(this._queueTotalSize>0){var ce=this._queue.shift();this._queueTotalSize-=ce.byteLength,Wr(this);var Ae=void 0;try{Ae=new Uint8Array(ce.buffer,ce.byteOffset,ce.byteLength)}catch(pt){return o(pt)}return s(E(Ae,!1,Q._reader._forAuthorCode))}var Re=this._autoAllocateChunkSize;if(Re!==void 0){var He=void 0;try{He=new ArrayBuffer(Re)}catch(pt){return o(pt)}var je={buffer:He,byteOffset:0,byteLength:Re,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(je)}var Ze=K(Q);return sr(this),Ze},X}();function hr(X){return!(!w(X)||!Object.prototype.hasOwnProperty.call(X,"_controlledReadableByteStream"))}function Or(X){return!(!w(X)||!Object.prototype.hasOwnProperty.call(X,"_associatedReadableByteStreamController"))}function sr(X){var Q=fa(X);if(Q!==!1){if(X._pulling===!0){X._pullAgain=!0;return}X._pulling=!0;var ce=X._pullAlgorithm();l(ce,function(){X._pulling=!1,X._pullAgain===!0&&(X._pullAgain=!1,sr(X))},function(Ae){mr(X,Ae)})}}function ua(X){Nr(X),X._pendingPullIntos=new R}function Mr(X,Q){var ce=!1;X._state==="closed"&&(ce=!0);var Ae=Jr(Q);Q.readerType==="default"?Z(X,Ae,ce):ya(X,Ae,ce)}function Jr(X){var Q=X.bytesFilled,ce=X.elementSize;return new X.ctor(X.buffer,X.byteOffset,Q/ce)}function wr(X,Q,ce,Ae){X._queue.push({buffer:Q,byteOffset:ce,byteLength:Ae}),X._queueTotalSize+=Ae}function Gr(X,Q){var ce=Q.elementSize,Ae=Q.bytesFilled-Q.bytesFilled%ce,Re=Math.min(X._queueTotalSize,Q.byteLength-Q.bytesFilled),He=Q.bytesFilled+Re,je=He-He%ce,Ze=Re,pt=!1;je>Ae&&(Ze=je-Q.bytesFilled,pt=!0);for(var kt=X._queue;Ze>0;){var Lt=kt.peek(),Bt=Math.min(Ze,Lt.byteLength),Ut=Q.byteOffset+Q.bytesFilled;U(Q.buffer,Ut,Lt.buffer,Lt.byteOffset,Bt),Lt.byteLength===Bt?kt.shift():(Lt.byteOffset+=Bt,Lt.byteLength-=Bt),X._queueTotalSize-=Bt,Hr(X,Bt,Q),Ze-=Bt}return pt}function Hr(X,Q,ce){Nr(X),ce.bytesFilled+=Q}function Wr(X){X._queueTotalSize===0&&X._closeRequested===!0?(Ar(X),vr(X._controlledReadableByteStream)):sr(X)}function Nr(X){X._byobRequest!==void 0&&(X._byobRequest._associatedReadableByteStreamController=void 0,X._byobRequest._view=void 0,X._byobRequest=void 0)}function zr(X){for(;X._pendingPullIntos.length>0;){if(X._queueTotalSize===0)return;var Q=X._pendingPullIntos.peek();Gr(X,Q)===!0&&($r(X),Mr(X._controlledReadableByteStream,Q))}}function ca(X,Q){var ce=X._controlledReadableByteStream,Ae=1;Q.constructor!==DataView&&(Ae=Q.constructor.BYTES_PER_ELEMENT);var Re=Q.constructor,He=Q.buffer,je={buffer:He,byteOffset:Q.byteOffset,byteLength:Q.byteLength,bytesFilled:0,elementSize:Ae,ctor:Re,readerType:"byob"};if(X._pendingPullIntos.length>0)return X._pendingPullIntos.push(je),Xr(ce);if(ce._state==="closed"){var Ze=new Re(je.buffer,je.byteOffset,0);return s(E(Ze,!0,ce._reader._forAuthorCode))}if(X._queueTotalSize>0){if(Gr(X,je)===!0){var pt=Jr(je);return Wr(X),s(E(pt,!1,ce._reader._forAuthorCode))}if(X._closeRequested===!0){var kt=new TypeError("Insufficient bytes to fill elements in the given buffer");return mr(X,kt),o(kt)}}X._pendingPullIntos.push(je);var Lt=Xr(ce);return sr(X),Lt}function da(X,Q){Q.buffer=Q.buffer;var ce=X._controlledReadableByteStream;if(Ur(ce)===!0)for(;Yr(ce)>0;){var Ae=$r(X);Mr(ce,Ae)}}function ha(X,Q,ce){if(ce.bytesFilled+Q>ce.byteLength)throw new RangeError("bytesWritten out of range");if(Hr(X,Q,ce),!(ce.bytesFilled<ce.elementSize)){$r(X);var Ae=ce.bytesFilled%ce.elementSize;if(Ae>0){var Re=ce.byteOffset+ce.bytesFilled,He=ce.buffer.slice(Re-Ae,Re);wr(X,He,0,He.byteLength)}ce.buffer=ce.buffer,ce.bytesFilled-=Ae,Mr(X._controlledReadableByteStream,ce),zr(X)}}function qr(X,Q){var ce=X._pendingPullIntos.peek(),Ae=X._controlledReadableByteStream;if(Ae._state==="closed"){if(Q!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");da(X,ce)}else ha(X,Q,ce);sr(X)}function $r(X){var Q=X._pendingPullIntos.shift();return Nr(X),Q}function fa(X){var Q=X._controlledReadableByteStream;if(Q._state!=="readable"||X._closeRequested===!0||X._started===!1)return!1;if(ne(Q)===!0&&ee(Q)>0||Ur(Q)===!0&&Yr(Q)>0)return!0;var ce=jr(X);return ce>0}function Ar(X){X._pullAlgorithm=void 0,X._cancelAlgorithm=void 0}function pa(X){var Q=X._controlledReadableByteStream;if(X._queueTotalSize>0){X._closeRequested=!0;return}if(X._pendingPullIntos.length>0){var ce=X._pendingPullIntos.peek();if(ce.bytesFilled>0){var Ae=new TypeError("Insufficient bytes to fill elements in the given buffer");throw mr(X,Ae),Ae}}Ar(X),vr(Q)}function ga(X,Q){var ce=X._controlledReadableByteStream,Ae=Q.buffer,Re=Q.byteOffset,He=Q.byteLength,je=Ae;if(ne(ce)===!0)if(ee(ce)===0)wr(X,je,Re,He);else{var Ze=new Uint8Array(je,Re,He);Z(ce,Ze,!1)}else Ur(ce)===!0?(wr(X,je,Re,He),zr(X)):wr(X,je,Re,He);sr(X)}function mr(X,Q){var ce=X._controlledReadableByteStream;ce._state==="readable"&&(ua(X),_e(X),Ar(X),Zr(ce,Q))}function jr(X){var Q=X._controlledReadableByteStream,ce=Q._state;return ce==="errored"?null:ce==="closed"?0:X._strategyHWM-X._queueTotalSize}function ma(X,Q){if(Q=Number(Q),m(Q)===!1)throw new RangeError("bytesWritten must be a finite");qr(X,Q)}function xa(X,Q){var ce=X._pendingPullIntos.peek();if(ce.byteOffset+ce.bytesFilled!==Q.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(ce.byteLength!==Q.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");ce.buffer=Q.buffer,qr(X,Q.byteLength)}function _a(X,Q,ce,Ae,Re,He,je){Q._controlledReadableByteStream=X,Q._pullAgain=!1,Q._pulling=!1,Q._byobRequest=void 0,Q._queue=Q._queueTotalSize=void 0,_e(Q),Q._closeRequested=!1,Q._started=!1,Q._strategyHWM=_(He),Q._pullAlgorithm=Ae,Q._cancelAlgorithm=Re,Q._autoAllocateChunkSize=je,Q._pendingPullIntos=new R,X._readableStreamController=Q;var Ze=ce();l(s(Ze),function(){Q._started=!0,sr(Q)},function(pt){mr(Q,pt)})}function va(X,Q,ce){var Ae=Object.create(la.prototype);function Re(){return L(Q,"start",[Ae])}var He=O(Q,"pull",0,[Ae]),je=O(Q,"cancel",1,[]),Ze=Q.autoAllocateChunkSize;if(Ze!==void 0&&(Ze=Number(Ze),oa(Ze)===!1||Ze<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");_a(X,Ae,Re,He,je,ce,Ze)}function ba(X,Q,ce){X._associatedReadableByteStreamController=Q,X._view=ce}function Br(X){return new TypeError("ReadableStreamBYOBRequest.prototype."+X+" can only be used on a ReadableStreamBYOBRequest")}function xr(X){return new TypeError("ReadableByteStreamController.prototype."+X+" can only be used on a ReadableByteStreamController")}function Sa(X,Q){var ce=new Ca(X);return ce._forAuthorCode=Q,ce}function Xr(X){var Q=v(function(ce,Ae){var Re={_resolve:ce,_reject:Ae};X._reader._readIntoRequests.push(Re)});return Q}function ya(X,Q,ce){var Ae=X._reader,Re=Ae._readIntoRequests.shift();Re._resolve(E(Q,ce,Ae._forAuthorCode))}function Yr(X){return X._reader._readIntoRequests.length}function Ur(X){var Q=X._reader;return!(Q===void 0||!_r(Q))}var Ca=function(){function X(Q){if(!Kt(Q))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(hr(Q._readableStreamController)===!1)throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(ar(Q))throw new TypeError("This stream has already been locked for exclusive reading by another reader");A(this,Q),this._readIntoRequests=new R}return Object.defineProperty(X.prototype,"closed",{get:function(){return _r(this)?this._closedPromise:o(Er("closed"))},enumerable:!0,configurable:!0}),X.prototype.cancel=function(Q){return _r(this)?this._ownerReadableStream===void 0?o(I("cancel")):C(this,Q):o(Er("cancel"))},X.prototype.read=function(Q){return _r(this)?this._ownerReadableStream===void 0?o(I("read from")):ArrayBuffer.isView(Q)?(b(Q.buffer),Q.byteLength===0?o(new TypeError("view must have non-zero byteLength")):wa(this,Q)):o(new TypeError("view must be an array buffer view")):o(Er("read"))},X.prototype.releaseLock=function(){if(!_r(this))throw Er("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");y(this)}},X}();function _r(X){return!(!w(X)||!Object.prototype.hasOwnProperty.call(X,"_readIntoRequests"))}function wa(X,Q){var ce=X._ownerReadableStream;return ce._disturbed=!0,ce._state==="errored"?o(ce._storedError):ca(ce._readableStreamController,Q)}function Er(X){return new TypeError("ReadableStreamBYOBReader.prototype."+X+" can only be used on a ReadableStreamBYOBReader")}var Fr=function(){function X(Q,ce){Q===void 0&&(Q={}),ce===void 0&&(ce={}),Kr(this);var Ae=ce.size,Re=ce.highWaterMark,He=Q.type,je=String(He);if(je==="bytes"){if(Ae!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");Re===void 0&&(Re=0),Re=_(Re),va(this,Q,Re)}else if(He===void 0){var Ze=d(Ae);Re===void 0&&(Re=1),Re=_(Re),na(this,Q,Re,Ze)}else throw new RangeError("Invalid type is specified")}return Object.defineProperty(X.prototype,"locked",{get:function(){if(Kt(this)===!1)throw ur("locked");return ar(this)},enumerable:!0,configurable:!0}),X.prototype.cancel=function(Q){return Kt(this)===!1?o(ur("cancel")):ar(this)===!0?o(new TypeError("Cannot cancel a stream that already has a reader")):lr(this,Q)},X.prototype.getReader=function(Q){var ce=(Q===void 0?{}:Q).mode;if(Kt(this)===!1)throw ur("getReader");if(ce===void 0)return Y(this,!0);if(ce=String(ce),ce==="byob")return Sa(this,!0);throw new RangeError("Invalid mode is specified")},X.prototype.pipeThrough=function(Q,ce){var Ae=Q.writable,Re=Q.readable,He=ce===void 0?{}:ce,je=He.preventClose,Ze=He.preventAbort,pt=He.preventCancel,kt=He.signal;if(Kt(this)===!1)throw ur("pipeThrough");if(ke(Ae)===!1)throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(Kt(Re)===!1)throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(je=!!je,Ze=!!Ze,pt=!!pt,kt!==void 0&&!_t(kt))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(ar(this)===!0)throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(Fe(Ae)===!0)throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var Lt=ut(this,Ae,je,Ze,pt,kt);return k(Lt),Re},X.prototype.pipeTo=function(Q,ce){var Ae=ce===void 0?{}:ce,Re=Ae.preventClose,He=Ae.preventAbort,je=Ae.preventCancel,Ze=Ae.signal;return Kt(this)===!1?o(ur("pipeTo")):ke(Q)===!1?o(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(Re=!!Re,He=!!He,je=!!je,Ze!==void 0&&!_t(Ze)?o(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")):ar(this)===!0?o(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):Fe(Q)===!0?o(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):ut(this,Q,Re,He,je,Ze))},X.prototype.tee=function(){if(Kt(this)===!1)throw ur("tee");var Q=ia(this);return $(Q)},X.prototype.getIterator=function(Q){var ce=(Q===void 0?{}:Q).preventCancel,Ae=ce===void 0?!1:ce;if(Kt(this)===!1)throw ur("getIterator");return me(this,Ae)},X}();typeof i.asyncIterator=="symbol"&&Object.defineProperty(Fr.prototype,i.asyncIterator,{value:Fr.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});function Vr(X,Q,ce,Ae,Re){Ae===void 0&&(Ae=1),Re===void 0&&(Re=function(){return 1});var He=Object.create(Fr.prototype);Kr(He);var je=Object.create(Pt.prototype);return yr(He,je,X,Q,ce,Ae,Re),He}function Kr(X){X._state="readable",X._reader=void 0,X._storedError=void 0,X._disturbed=!1}function Kt(X){return!(!w(X)||!Object.prototype.hasOwnProperty.call(X,"_readableStreamController"))}function ar(X){return X._reader!==void 0}function lr(X,Q){if(X._disturbed=!0,X._state==="closed")return s(void 0);if(X._state==="errored")return o(X._storedError);vr(X);var ce=X._readableStreamController[z](Q);return D(ce,p)}function vr(X){X._state="closed";var Q=X._reader;Q!==void 0&&(te(Q)&&(Q._readRequests.forEach(function(ce){ce._resolve(E(void 0,!0,Q._forAuthorCode))}),Q._readRequests=new R),q(Q))}function Zr(X,Q){X._state="errored",X._storedError=Q;var ce=X._reader;ce!==void 0&&(te(ce)?(ce._readRequests.forEach(function(Ae){Ae._reject(Q)}),ce._readRequests=new R):(ce._readIntoRequests.forEach(function(Ae){Ae._reject(Q)}),ce._readIntoRequests=new R),W(ce,Q))}function ur(X){return new TypeError("ReadableStream.prototype."+X+" can only be used on a ReadableStream")}var Aa=function(){function X(Q){var ce=Q.highWaterMark;this.highWaterMark=ce}return X.prototype.size=function(Q){return Q.byteLength},X}(),Ea=function(){function X(Q){var ce=Q.highWaterMark;this.highWaterMark=ce}return X.prototype.size=function(){return 1},X}(),Fa=function(){function X(Q,ce,Ae){Q===void 0&&(Q={}),ce===void 0&&(ce={}),Ae===void 0&&(Ae={});var Re=ce.size,He=ce.highWaterMark,je=Ae.size,Ze=Ae.highWaterMark,pt=Q.writableType;if(pt!==void 0)throw new RangeError("Invalid writable type specified");var kt=d(Re);He===void 0&&(He=1),He=_(He);var Lt=Q.readableType;if(Lt!==void 0)throw new RangeError("Invalid readable type specified");var Bt=d(je);Ze===void 0&&(Ze=0),Ze=_(Ze);var Ut,br=v(function(nr){Ut=nr});Pa(this,br,He,kt,Ze,Bt),Ra(this,Q);var Sr=L(Q,"start",[this._transformStreamController]);Ut(Sr)}return Object.defineProperty(X.prototype,"readable",{get:function(){if(Qr(this)===!1)throw aa("readable");return this._readable},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"writable",{get:function(){if(Qr(this)===!1)throw aa("writable");return this._writable},enumerable:!0,configurable:!0}),X}();function Pa(X,Q,ce,Ae,Re,He){function je(){return Q}function Ze(Ut){return La(X,Ut)}function pt(Ut){return Oa(X,Ut)}function kt(){return Ma(X)}X._writable=we(je,Ze,kt,pt,ce,Ae);function Lt(){return Na(X)}function Bt(Ut){return kr(X,Ut),s(void 0)}X._readable=Vr(je,Lt,Bt,Re,He),X._backpressure=void 0,X._backpressureChangePromise=void 0,X._backpressureChangePromise_resolve=void 0,Tr(X,!0),X._transformStreamController=void 0}function Qr(X){return!(!w(X)||!Object.prototype.hasOwnProperty.call(X,"_transformStreamController"))}function Pr(X,Q){$t(X._readable._readableStreamController,Q),kr(X,Q)}function kr(X,Q){ea(X._transformStreamController),Jt(X._writable._writableStreamController,Q),X._backpressure===!0&&Tr(X,!1)}function Tr(X,Q){X._backpressureChangePromise!==void 0&&X._backpressureChangePromise_resolve(),X._backpressureChangePromise=v(function(ce){X._backpressureChangePromise_resolve=ce}),X._backpressure=Q}var ka=function(){function X(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Object.defineProperty(X.prototype,"desiredSize",{get:function(){if(Rr(this)===!1)throw Dr("desiredSize");var Q=this._controlledTransformStream._readable._readableStreamController;return gr(Q)},enumerable:!0,configurable:!0}),X.prototype.enqueue=function(Q){if(Rr(this)===!1)throw Dr("enqueue");ta(this,Q)},X.prototype.error=function(Q){if(Rr(this)===!1)throw Dr("error");Da(this,Q)},X.prototype.terminate=function(){if(Rr(this)===!1)throw Dr("terminate");Ia(this)},X}();function Rr(X){return!(!w(X)||!Object.prototype.hasOwnProperty.call(X,"_controlledTransformStream"))}function Ta(X,Q,ce,Ae){Q._controlledTransformStream=X,X._transformStreamController=Q,Q._transformAlgorithm=ce,Q._flushAlgorithm=Ae}function Ra(X,Q){var ce=Object.create(ka.prototype),Ae=function(je){try{return ta(ce,je),s(void 0)}catch(Ze){return o(Ze)}},Re=Q.transform;if(Re!==void 0){if(typeof Re!="function")throw new TypeError("transform is not a method");Ae=function(je){return M(Re,Q,[je,ce])}}var He=O(Q,"flush",0,[ce]);Ta(X,ce,Ae,He)}function ea(X){X._transformAlgorithm=void 0,X._flushAlgorithm=void 0}function ta(X,Q){var ce=X._controlledTransformStream,Ae=ce._readable._readableStreamController;if(rr(Ae)===!1)throw new TypeError("Readable side is not in a state that permits enqueue");try{It(Ae,Q)}catch(He){throw kr(ce,He),ce._readable._storedError}var Re=Lr(Ae);Re!==ce._backpressure&&Tr(ce,!0)}function Da(X,Q){Pr(X._controlledTransformStream,Q)}function ra(X,Q){var ce=X._transformAlgorithm(Q);return D(ce,void 0,function(Ae){throw Pr(X._controlledTransformStream,Ae),Ae})}function Ia(X){var Q=X._controlledTransformStream,ce=Q._readable._readableStreamController;rr(ce)===!0&&Dt(ce);var Ae=new TypeError("TransformStream terminated");kr(Q,Ae)}function La(X,Q){var ce=X._transformStreamController;if(X._backpressure===!0){var Ae=X._backpressureChangePromise;return D(Ae,function(){var Re=X._writable,He=Re._state;if(He==="erroring")throw Re._storedError;return ra(ce,Q)})}return ra(ce,Q)}function Oa(X,Q){return Pr(X,Q),s(void 0)}function Ma(X){var Q=X._readable,ce=X._transformStreamController,Ae=ce._flushAlgorithm();return ea(ce),D(Ae,function(){if(Q._state==="errored")throw Q._storedError;var Re=Q._readableStreamController;rr(Re)===!0&&Dt(Re)},function(Re){throw Pr(X,Re),Q._storedError})}function Na(X){return Tr(X,!1),X._backpressureChangePromise}function Dr(X){return new TypeError("TransformStreamDefaultController.prototype."+X+" can only be used on a TransformStreamDefaultController")}function aa(X){return new TypeError("TransformStream.prototype."+X+" can only be used on a TransformStream")}r.ByteLengthQueuingStrategy=Aa,r.CountQueuingStrategy=Ea,r.ReadableStream=Fr,r.TransformStream=Fa,r.WritableStream=se,Object.defineProperty(r,"__esModule",{value:!0})})},function(x,t,a){a(137),a(105),a(73),a(107);var r=a(38);x.exports=r.Map},function(x,t,a){var r=a(138),i=a(142);x.exports=r("Map",function(p){return function(){return p(this,arguments.length?arguments[0]:void 0)}},i)},function(x,t,a){var r=a(5),i=a(6),p=a(47),e=a(24),N=a(139),w=a(115),$=a(114),U=a(17),m=a(9),n=a(93),J=a(81),O=a(141);x.exports=function(L,M,P){var b=L.indexOf("Map")!==-1,_=L.indexOf("Weak")!==-1,d=b?"set":"add",c=i[L],h=c&&c.prototype,f=c,g={},v=function(T){var D=h[T];e(h,T,T=="add"?function(S){return D.call(this,S===0?0:S),this}:T=="delete"?function(k){return _&&!U(k)?!1:D.call(this,k===0?0:k)}:T=="get"?function(S){return _&&!U(S)?void 0:D.call(this,S===0?0:S)}:T=="has"?function(S){return _&&!U(S)?!1:D.call(this,S===0?0:S)}:function(S,R){return D.call(this,S===0?0:S,R),this})};if(p(L,typeof c!="function"||!(_||h.forEach&&!m(function(){new c().entries().next()}))))f=P.getConstructor(M,L,b,d),N.REQUIRED=!0;else if(p(L,!0)){var s=new f,o=s[d](_?{}:-0,1)!=s,u=m(function(){s.has(1)}),l=n(function(T){new c(T)}),F=!_&&m(function(){for(var T=new c,D=5;D--;)T[d](D,D);return!T.has(-0)});l||(f=M(function(T,D){$(T,f,L);var k=O(new c,T,f);return D!=null&&w(D,k[d],k,b),k}),f.prototype=h,h.constructor=f),(u||F)&&(v("delete"),v("has"),b&&v("get")),(F||o)&&v(d),_&&h.clear&&delete h.clear}return g[L]=f,r({global:!0,forced:f!=c},g),J(f,L),_||P.setStrong(f,L,b),f}},function(x,t,a){var r=a(34),i=a(17),p=a(18),e=a(22).f,N=a(33),w=a(140),$=N("meta"),U=0,m=Object.isExtensible||function(){return!0},n=function(P){e(P,$,{value:{objectID:"O"+ ++U,weakData:{}}})},J=function(P,b){if(!i(P))return typeof P=="symbol"?P:(typeof P=="string"?"S":"P")+P;if(!p(P,$)){if(!m(P))return"F";if(!b)return"E";n(P)}return P[$].objectID},O=function(P,b){if(!p(P,$)){if(!m(P))return!0;if(!b)return!1;n(P)}return P[$].weakData},L=function(P){return w&&M.REQUIRED&&m(P)&&!p(P,$)&&n(P),P},M=x.exports={REQUIRED:!1,fastKey:J,getWeakData:O,onFreeze:L};r[$]=!0},function(x,t,a){var r=a(9);x.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(x,t,a){var r=a(17),i=a(83);x.exports=function(p,e,N){var w,$;return i&&typeof(w=e.constructor)=="function"&&w!==N&&r($=w.prototype)&&$!==N.prototype&&i(p,$),p}},function(x,t,a){var r=a(22).f,i=a(67),p=a(112),e=a(58),N=a(114),w=a(115),$=a(75),U=a(113),m=a(8),n=a(139).fastKey,J=a(28),O=J.set,L=J.getterFor;x.exports={getConstructor:function(M,P,b,_){var d=M(function(g,v){N(g,d,P),O(g,{type:P,index:i(null),first:void 0,last:void 0,size:0}),m||(g.size=0),v!=null&&w(v,g[_],g,b)}),c=L(P),h=function(g,v,s){var o=c(g),u=f(g,v),l,F;return u?u.value=s:(o.last=u={index:F=n(v,!0),key:v,value:s,previous:l=o.last,next:void 0,removed:!1},o.first||(o.first=u),l&&(l.next=u),m?o.size++:g.size++,F!=="F"&&(o.index[F]=u)),g},f=function(g,v){var s=c(g),o=n(v),u;if(o!=="F")return s.index[o];for(u=s.first;u;u=u.next)if(u.key==v)return u};return p(d.prototype,{clear:function(){for(var v=this,s=c(v),o=s.index,u=s.first;u;)u.removed=!0,u.previous&&(u.previous=u.previous.next=void 0),delete o[u.index],u=u.next;s.first=s.last=void 0,m?s.size=0:v.size=0},delete:function(g){var v=this,s=c(v),o=f(v,g);if(o){var u=o.next,l=o.previous;delete s.index[o.index],o.removed=!0,l&&(l.next=u),u&&(u.previous=l),s.first==o&&(s.first=u),s.last==o&&(s.last=l),m?s.size--:v.size--}return!!o},forEach:function(v){for(var s=c(this),o=e(v,arguments.length>1?arguments[1]:void 0,3),u;u=u?u.next:s.first;)for(o(u.value,u.key,this);u&&u.removed;)u=u.previous},has:function(v){return!!f(this,v)}}),p(d.prototype,b?{get:function(v){var s=f(this,v);return s&&s.value},set:function(v,s){return h(this,v===0?0:v,s)}}:{add:function(v){return h(this,v=v===0?0:v,v)}}),m&&r(d.prototype,"size",{get:function(){return c(this).size}}),d},setStrong:function(M,P,b){var _=P+" Iterator",d=L(P),c=L(_);$(M,P,function(h,f){O(this,{type:_,target:h,state:d(h),kind:f,last:void 0})},function(){for(var h=c(this),f=h.kind,g=h.last;g&&g.removed;)g=g.previous;return!h.target||!(h.last=g=g?g.next:h.state.first)?(h.target=void 0,{value:void 0,done:!0}):f=="keys"?{value:g.key,done:!1}:f=="values"?{value:g.value,done:!1}:{value:[g.key,g.value],done:!1}},b?"entries":"values",!b,!0),U(P)}}},function(x,t,a){a(144),a(105),a(73),a(107);var r=a(38);x.exports=r.Set},function(x,t,a){var r=a(138),i=a(142);x.exports=r("Set",function(p){return function(){return p(this,arguments.length?arguments[0]:void 0)}},i)},function(x,t,a){a(105),a(146),a(107);var r=a(38);x.exports=r.WeakMap},function(x,t,a){var r=a(6),i=a(112),p=a(139),e=a(138),N=a(147),w=a(17),$=a(28).enforce,U=a(29),m=!r.ActiveXObject&&"ActiveXObject"in r,n=Object.isExtensible,J,O=function(c){return function(){return c(this,arguments.length?arguments[0]:void 0)}},L=x.exports=e("WeakMap",O,N);if(U&&m){J=N.getConstructor(O,"WeakMap",!0),p.REQUIRED=!0;var M=L.prototype,P=M.delete,b=M.has,_=M.get,d=M.set;i(M,{delete:function(c){if(w(c)&&!n(c)){var h=$(this);return h.frozen||(h.frozen=new J),P.call(this,c)||h.frozen.delete(c)}return P.call(this,c)},has:function(h){if(w(h)&&!n(h)){var f=$(this);return f.frozen||(f.frozen=new J),b.call(this,h)||f.frozen.has(h)}return b.call(this,h)},get:function(h){if(w(h)&&!n(h)){var f=$(this);return f.frozen||(f.frozen=new J),b.call(this,h)?_.call(this,h):f.frozen.get(h)}return _.call(this,h)},set:function(h,f){if(w(h)&&!n(h)){var g=$(this);g.frozen||(g.frozen=new J),b.call(this,h)?d.call(this,h,f):g.frozen.set(h,f)}else d.call(this,h,f);return this}})}},function(x,t,a){var r=a(112),i=a(139).getWeakData,p=a(23),e=a(17),N=a(114),w=a(115),$=a(148),U=a(18),m=a(28),n=m.set,J=m.getterFor,O=$.find,L=$.findIndex,M=0,P=function(d){return d.frozen||(d.frozen=new b)},b=function(){this.entries=[]},_=function(d,c){return O(d.entries,function(h){return h[0]===c})};b.prototype={get:function(d){var c=_(this,d);if(c)return c[1]},has:function(d){return!!_(this,d)},set:function(d,c){var h=_(this,d);h?h[1]=c:this.entries.push([d,c])},delete:function(d){var c=L(this.entries,function(h){return h[0]===d});return~c&&this.entries.splice(c,1),!!~c}},x.exports={getConstructor:function(d,c,h,f){var g=d(function(o,u){N(o,g,c),n(o,{type:c,id:M++,frozen:void 0}),u!=null&&w(u,o[f],o,h)}),v=J(c),s=function(o,u,l){var F=v(o),T=i(p(u),!0);return T===!0?P(F).set(u,l):T[F.id]=l,o};return r(g.prototype,{delete:function(o){var u=v(this);if(!e(o))return!1;var l=i(o);return l===!0?P(u).delete(o):l&&U(l,u.id)&&delete l[u.id]},has:function(u){var l=v(this);if(!e(u))return!1;var F=i(u);return F===!0?P(l).has(u):F&&U(F,l.id)}}),r(g.prototype,h?{get:function(u){var l=v(this);if(e(u)){var F=i(u);return F===!0?P(l).get(u):F?F[l.id]:void 0}},set:function(u,l){return s(this,u,l)}}:{add:function(u){return s(this,u,!0)}}),g}}},function(x,t,a){var r=a(58),i=a(13),p=a(79),e=a(42),N=a(149),w=[].push,$=function(U){var m=U==1,n=U==2,J=U==3,O=U==4,L=U==6,M=U==5||L;return function(P,b,_,d){for(var c=p(P),h=i(c),f=r(b,_,3),g=e(h.length),v=0,s=d||N,o=m?s(P,g):n?s(P,0):void 0,u,l;g>v;v++)if((M||v in h)&&(u=h[v],l=f(u,v,c),U)){if(m)o[v]=l;else if(l)switch(U){case 3:return!0;case 5:return u;case 6:return v;case 2:w.call(o,u)}else if(O)return!1}return L?-1:J||O?O:o}};x.exports={forEach:$(0),map:$(1),filter:$(2),some:$(3),every:$(4),find:$(5),findIndex:$(6)}},function(x,t,a){var r=a(17),i=a(150),p=a(53),e=p("species");x.exports=function(N,w){var $;return i(N)&&($=N.constructor,typeof $=="function"&&($===Array||i($.prototype))?$=void 0:r($)&&($=$[e],$===null&&($=void 0))),new($===void 0?Array:$)(w===0?0:w)}},function(x,t,a){var r=a(14);x.exports=Array.isArray||function(p){return r(p)=="Array"}},function(x,t,a){a(105),a(152),a(107);var r=a(38);x.exports=r.WeakSet},function(x,t,a){var r=a(138),i=a(147);r("WeakSet",function(p){return function(){return p(this,arguments.length?arguments[0]:void 0)}},i)},function(x,t,a){a(154);var r=a(57);x.exports=r("String","codePointAt")},function(x,t,a){var r=a(5),i=a(74).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return i(this,e)}})},function(x,t,a){a(156);var r=a(38);x.exports=r.String.fromCodePoint},function(x,t,a){var r=a(5),i=a(44),p=String.fromCharCode,e=String.fromCodePoint,N=!!e&&e.length!=1;r({target:"String",stat:!0,forced:N},{fromCodePoint:function($){for(var U=[],m=arguments.length,n=0,J;m>n;){if(J=+arguments[n++],i(J,1114111)!==J)throw RangeError(J+" is not a valid code point");U.push(J<65536?p(J):p(((J-=65536)>>10)+55296,J%1024+56320))}return U.join("")}})},function(x,t,a){a(158),a(105),a(160),a(164),a(165),a(166),a(167),a(168),a(169),a(170),a(171),a(172),a(173),a(174),a(175),a(176),a(177),a(178),a(179);var r=a(38);x.exports=r.Symbol},function(x,t,a){var r=a(5),i=a(9),p=a(150),e=a(17),N=a(79),w=a(42),$=a(89),U=a(149),m=a(159),n=a(53),J=a(125),O=n("isConcatSpreadable"),L=9007199254740991,M="Maximum allowed index exceeded",P=J>=51||!i(function(){var c=[];return c[O]=!1,c.concat()[0]!==c}),b=m("concat"),_=function(c){if(!e(c))return!1;var h=c[O];return h!==void 0?!!h:p(c)},d=!P||!b;r({target:"Array",proto:!0,forced:d},{concat:function(h){var f=N(this),g=U(f,0),v=0,s,o,u,l,F;for(s=-1,u=arguments.length;s<u;s++)if(F=s===-1?f:arguments[s],_(F)){if(l=w(F.length),v+l>L)throw TypeError(M);for(o=0;o<l;o++,v++)o in F&&$(g,v,F[o])}else{if(v>=L)throw TypeError(M);$(g,v++,F)}return g.length=v,g}})},function(x,t,a){var r=a(9),i=a(53),p=a(125),e=i("species");x.exports=function(N){return p>=51||!r(function(){var w=[],$=w.constructor={};return $[e]=function(){return{foo:1}},w[N](Boolean).foo!==1})}},function(x,t,a){var r=a(5),i=a(6),p=a(37),e=a(32),N=a(8),w=a(54),$=a(55),U=a(9),m=a(18),n=a(150),J=a(17),O=a(23),L=a(79),M=a(12),P=a(16),b=a(11),_=a(67),d=a(69),c=a(39),h=a(161),f=a(46),g=a(7),v=a(22),s=a(10),o=a(21),u=a(24),l=a(31),F=a(30),T=a(34),D=a(33),k=a(53),S=a(162),R=a(163),E=a(81),A=a(28),C=a(148).forEach,y=F("hidden"),I="Symbol",H="prototype",V=k("toPrimitive"),B=A.set,W=A.getterFor(I),G=Object[H],q=i.Symbol,z=p("JSON","stringify"),j=g.f,Y=v.f,K=h.f,Z=s.f,ee=l("symbols"),ne=l("op-symbols"),ae=l("string-to-symbol-registry"),te=l("symbol-to-string-registry"),re=l("wks"),ie=i.QObject,de=!ie||!ie[H]||!ie[H].findChild,oe=N&&U(function(){return _(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a!=7})?function(se,pe,we){var Te=j(G,pe);Te&&delete G[pe],Y(se,pe,we),Te&&se!==G&&Y(G,pe,Te)}:Y,le=function(se,pe){var we=ee[se]=_(q[H]);return B(we,{type:I,tag:se,description:pe}),N||(we.description=pe),we},me=$?function(se){return typeof se=="symbol"}:function(se){return Object(se)instanceof q},Pe=function(pe,we,Te){pe===G&&Pe(ne,we,Te),O(pe);var ke=P(we,!0);return O(Te),m(ee,ke)?(Te.enumerable?(m(pe,y)&&pe[y][ke]&&(pe[y][ke]=!1),Te=_(Te,{enumerable:b(0,!1)})):(m(pe,y)||Y(pe,y,b(1,{})),pe[y][ke]=!0),oe(pe,ke,Te)):Y(pe,ke,Te)},Ce=function(pe,we){O(pe);var Te=M(we),ke=d(Te).concat(ge(Te));return C(ke,function(Fe){(!N||be.call(Te,Fe))&&Pe(pe,Fe,Te[Fe])}),pe},xe=function(pe,we){return we===void 0?_(pe):Ce(_(pe),we)},be=function(pe){var we=P(pe,!0),Te=Z.call(this,we);return this===G&&m(ee,we)&&!m(ne,we)?!1:Te||!m(this,we)||!m(ee,we)||m(this,y)&&this[y][we]?Te:!0},Se=function(pe,we){var Te=M(pe),ke=P(we,!0);if(!(Te===G&&m(ee,ke)&&!m(ne,ke))){var Fe=j(Te,ke);return Fe&&m(ee,ke)&&!(m(Te,y)&&Te[y][ke])&&(Fe.enumerable=!0),Fe}},_e=function(pe){var we=K(M(pe)),Te=[];return C(we,function(ke){!m(ee,ke)&&!m(T,ke)&&Te.push(ke)}),Te},ge=function(pe){var we=pe===G,Te=K(we?ne:M(pe)),ke=[];return C(Te,function(Fe){m(ee,Fe)&&(!we||m(G,Fe))&&ke.push(ee[Fe])}),ke};if(w||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var pe=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),we=D(pe),Te=function(ke){this===G&&Te.call(ne,ke),m(this,y)&&m(this[y],we)&&(this[y][we]=!1),oe(this,we,b(1,ke))};return N&&de&&oe(G,we,{configurable:!0,set:Te}),le(we,pe)},u(q[H],"toString",function(){return W(this).tag}),u(q,"withoutSetter",function(se){return le(D(se),se)}),s.f=be,v.f=Pe,g.f=Se,c.f=h.f=_e,f.f=ge,S.f=function(se){return le(k(se),se)},N&&(Y(q[H],"description",{configurable:!0,get:function(){return W(this).description}}),e||u(G,"propertyIsEnumerable",be,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!w,sham:!w},{Symbol:q}),C(d(re),function(se){R(se)}),r({target:I,stat:!0,forced:!w},{for:function(se){var pe=String(se);if(m(ae,pe))return ae[pe];var we=q(pe);return ae[pe]=we,te[we]=pe,we},keyFor:function(pe){if(!me(pe))throw TypeError(pe+" is not a symbol");if(m(te,pe))return te[pe]},useSetter:function(){de=!0},useSimple:function(){de=!1}}),r({target:"Object",stat:!0,forced:!w,sham:!N},{create:xe,defineProperty:Pe,defineProperties:Ce,getOwnPropertyDescriptor:Se}),r({target:"Object",stat:!0,forced:!w},{getOwnPropertyNames:_e,getOwnPropertySymbols:ge}),r({target:"Object",stat:!0,forced:U(function(){f.f(1)})},{getOwnPropertySymbols:function(pe){return f.f(L(pe))}}),z){var ue=!w||U(function(){var se=q();return z([se])!="[null]"||z({a:se})!="{}"||z(Object(se))!="{}"});r({target:"JSON",stat:!0,forced:ue},{stringify:function(pe,we,Te){for(var ke=[pe],Fe=1,Le;arguments.length>Fe;)ke.push(arguments[Fe++]);if(Le=we,!(!J(we)&&pe===void 0||me(pe)))return n(we)||(we=function(he,Ee){if(typeof Le=="function"&&(Ee=Le.call(this,he,Ee)),!me(Ee))return Ee}),ke[1]=we,z.apply(null,ke)}})}q[H][V]||o(q[H],V,q[H].valueOf),E(q,I),T[y]=!0},function(x,t,a){var r=a(12),i=a(39).f,p={}.toString,e=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],N=function(w){try{return i(w)}catch{return e.slice()}};x.exports.f=function($){return e&&p.call($)=="[object Window]"?N($):i(r($))}},function(x,t,a){var r=a(53);t.f=r},function(x,t,a){var r=a(38),i=a(18),p=a(162),e=a(22).f;x.exports=function(N){var w=r.Symbol||(r.Symbol={});i(w,N)||e(w,N,{value:p.f(N)})}},function(x,t,a){var r=a(163);r("asyncIterator")},function(x,t,a){var r=a(5),i=a(8),p=a(6),e=a(18),N=a(17),w=a(22).f,$=a(35),U=p.Symbol;if(i&&typeof U=="function"&&(!("description"in U.prototype)||U().description!==void 0)){var m={},n=function(){var b=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),_=this instanceof n?new U(b):b===void 0?U():U(b);return b===""&&(m[_]=!0),_};$(n,U);var J=n.prototype=U.prototype;J.constructor=n;var O=J.toString,L=String(U("test"))=="Symbol(test)",M=/^Symbol\((.*)\)[^)]+$/;w(J,"description",{configurable:!0,get:function(){var b=N(this)?this.valueOf():this,_=O.call(b);if(e(m,b))return"";var d=L?_.slice(7,-1):_.replace(M,"$1");return d===""?void 0:d}}),r({global:!0,forced:!0},{Symbol:n})}},function(x,t,a){var r=a(163);r("hasInstance")},function(x,t,a){var r=a(163);r("isConcatSpreadable")},function(x,t,a){var r=a(163);r("iterator")},function(x,t,a){var r=a(163);r("match")},function(x,t,a){var r=a(163);r("matchAll")},function(x,t,a){var r=a(163);r("replace")},function(x,t,a){var r=a(163);r("search")},function(x,t,a){var r=a(163);r("species")},function(x,t,a){var r=a(163);r("split")},function(x,t,a){var r=a(163);r("toPrimitive")},function(x,t,a){var r=a(163);r("toStringTag")},function(x,t,a){var r=a(163);r("unscopables")},function(x,t,a){var r=a(81);r(Math,"Math",!0)},function(x,t,a){var r=a(6),i=a(81);i(r.JSON,"JSON",!0)},function(x,t,a){a(181);var r=a(57);x.exports=r("String","padStart")},function(x,t,a){var r=a(5),i=a(182).start,p=a(184);r({target:"String",proto:!0,forced:p},{padStart:function(N){return i(this,N,arguments.length>1?arguments[1]:void 0)}})},function(x,t,a){var r=a(42),i=a(183),p=a(15),e=Math.ceil,N=function(w){return function($,U,m){var n=String(p($)),J=n.length,O=m===void 0?" ":String(m),L=r(U),M,P;return L<=J||O==""?n:(M=L-J,P=i.call(O,e(M/O.length)),P.length>M&&(P=P.slice(0,M)),w?n+P:P+n)}};x.exports={start:N(!1),end:N(!0)}},function(x,t,a){var r=a(43),i=a(15);x.exports="".repeat||function(e){var N=String(i(this)),w="",$=r(e);if($<0||$==1/0)throw RangeError("Wrong number of repetitions");for(;$>0;($>>>=1)&&(N+=N))$&1&&(w+=N);return w}},function(x,t,a){var r=a(119);x.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},function(x,t,a){a(186);var r=a(57);x.exports=r("String","padEnd")},function(x,t,a){var r=a(5),i=a(182).end,p=a(184);r({target:"String",proto:!0,forced:p},{padEnd:function(N){return i(this,N,arguments.length>1?arguments[1]:void 0)}})},function(x,t,a){a(188);var r=a(38);x.exports=r.Object.values},function(x,t,a){var r=a(5),i=a(189).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},function(x,t,a){var r=a(8),i=a(69),p=a(12),e=a(10).f,N=function(w){return function($){for(var U=p($),m=i(U),n=m.length,J=0,O=[],L;n>J;)L=m[J++],(!r||e.call(U,L))&&O.push(w?[L,U[L]]:U[L]);return O}};x.exports={entries:N(!0),values:N(!1)}},function(module,exports,__w_pdfjs_require__){Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _regenerator=_interopRequireDefault(__w_pdfjs_require__(191)),_util=__w_pdfjs_require__(1),_display_utils=__w_pdfjs_require__(194),_font_loader=__w_pdfjs_require__(195),_api_compatibility=__w_pdfjs_require__(196),_canvas=__w_pdfjs_require__(197),_worker_options=__w_pdfjs_require__(199),_is_node=__w_pdfjs_require__(48),_message_handler=__w_pdfjs_require__(200),_metadata=__w_pdfjs_require__(201),_transport_stream=__w_pdfjs_require__(203),_webgl=__w_pdfjs_require__(204);function _interopRequireDefault(x){return x&&x.__esModule?x:{default:x}}function _slicedToArray(x,t){return _arrayWithHoles(x)||_iterableToArrayLimit(x,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(x,t){if(Symbol.iterator in Object(x)||Object.prototype.toString.call(x)==="[object Arguments]"){var a=[],r=!0,i=!1,p=void 0;try{for(var e=x[Symbol.iterator](),N;!(r=(N=e.next()).done)&&(a.push(N.value),!(t&&a.length===t));r=!0);}catch(w){i=!0,p=w}finally{try{!r&&e.return!=null&&e.return()}finally{if(i)throw p}}return a}}function _arrayWithHoles(x){if(Array.isArray(x))return x}function asyncGeneratorStep(x,t,a,r,i,p,e){try{var N=x[p](e),w=N.value}catch($){a($);return}N.done?t(w):Promise.resolve(w).then(r,i)}function _asyncToGenerator(x){return function(){var t=this,a=arguments;return new Promise(function(r,i){var p=x.apply(t,a);function e(w){asyncGeneratorStep(p,r,i,e,N,"next",w)}function N(w){asyncGeneratorStep(p,r,i,e,N,"throw",w)}e(void 0)})}}function _toConsumableArray(x){return _arrayWithoutHoles(x)||_iterableToArray(x)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(x){if(Symbol.iterator in Object(x)||Object.prototype.toString.call(x)==="[object Arguments]")return Array.from(x)}function _arrayWithoutHoles(x){if(Array.isArray(x)){for(var t=0,a=new Array(x.length);t<x.length;t++)a[t]=x[t];return a}}function _classCallCheck(x,t){if(!(x instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(x,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(x,r.key,r)}}function _createClass(x,t,a){return t&&_defineProperties(x.prototype,t),a&&_defineProperties(x,a),x}function _typeof(x){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(a){return typeof a}:_typeof=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(x)}var DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,createPDFNetworkStream;function setPDFNetworkStreamFactory(x){createPDFNetworkStream=x}function getDocument(x){var t=new PDFDocumentLoadingTask,a;if(typeof x=="string")a={url:x};else if((0,_util.isArrayBuffer)(x))a={data:x};else if(x instanceof PDFDataRangeTransport)a={range:x};else{if(_typeof(x)!=="object")throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!x.url&&!x.data&&!x.range)throw new Error("Invalid parameter object: need either .data, .range or .url");a=x}var r=Object.create(null),i=null,p=null;for(var e in a){if(e==="url"&&typeof window<"u"){r[e]=new URL(a[e],window.location).href;continue}else if(e==="range"){i=a[e];continue}else if(e==="worker"){p=a[e];continue}else if(e==="data"&&!(a[e]instanceof Uint8Array)){var N=a[e];if(typeof N=="string")r[e]=(0,_util.stringToBytes)(N);else if(_typeof(N)==="object"&&N!==null&&!isNaN(N.length))r[e]=new Uint8Array(N);else if((0,_util.isArrayBuffer)(N))r[e]=new Uint8Array(N);else throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");continue}r[e]=a[e]}r.rangeChunkSize=r.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,r.CMapReaderFactory=r.CMapReaderFactory||_display_utils.DOMCMapReaderFactory,r.ignoreErrors=r.stopAtErrors!==!0,r.pdfBug=r.pdfBug===!0;var w=Object.values(_util.NativeImageDecoding);if((r.nativeImageDecoderSupport===void 0||!w.includes(r.nativeImageDecoderSupport))&&(r.nativeImageDecoderSupport=_api_compatibility.apiCompatibilityParams.nativeImageDecoderSupport||_util.NativeImageDecoding.DECODE),Number.isInteger(r.maxImageSize)||(r.maxImageSize=-1),typeof r.isEvalSupported!="boolean"&&(r.isEvalSupported=!0),typeof r.disableFontFace!="boolean"&&(r.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),typeof r.disableRange!="boolean"&&(r.disableRange=!1),typeof r.disableStream!="boolean"&&(r.disableStream=!1),typeof r.disableAutoFetch!="boolean"&&(r.disableAutoFetch=!1),typeof r.disableCreateObjectURL!="boolean"&&(r.disableCreateObjectURL=_api_compatibility.apiCompatibilityParams.disableCreateObjectURL||!1),(0,_util.setVerbosityLevel)(r.verbosity),!p){var $={verbosity:r.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};p=$.port?PDFWorker.fromPort($):new PDFWorker($),t._worker=p}var U=t.docId;return p.promise.then(function(){if(t.destroyed)throw new Error("Loading aborted");return _fetchDocument(p,r,i,U).then(function(m){if(t.destroyed)throw new Error("Loading aborted");var n;i?n=new _transport_stream.PDFDataTransportStream({length:r.length,initialData:r.initialData,progressiveDone:r.progressiveDone,disableRange:r.disableRange,disableStream:r.disableStream},i):r.data||(n=createPDFNetworkStream({url:r.url,length:r.length,httpHeaders:r.httpHeaders,withCredentials:r.withCredentials,rangeChunkSize:r.rangeChunkSize,disableRange:r.disableRange,disableStream:r.disableStream}));var J=new _message_handler.MessageHandler(U,m,p.port);J.postMessageTransfers=p.postMessageTransfers;var O=new WorkerTransport(J,t,n,r);t._transport=O,J.send("Ready",null)})}).catch(t._capability.reject),t}function _fetchDocument(x,t,a,r){return x.destroyed?Promise.reject(new Error("Worker was destroyed")):(a&&(t.length=a.length,t.initialData=a.initialData,t.progressiveDone=a.progressiveDone),x.messageHandler.sendWithPromise("GetDocRequest",{docId:r,apiVersion:"2.4.456",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,disableCreateObjectURL:t.disableCreateObjectURL,postMessageTransfers:x.postMessageTransfers,docBaseUrl:t.docBaseUrl,nativeImageDecoderSupport:t.nativeImageDecoderSupport,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported}).then(function(i){if(x.destroyed)throw new Error("Worker was destroyed");return i}))}var PDFDocumentLoadingTask=function(){var t=0,a=function(){function r(){_classCallCheck(this,r),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+t++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(r,[{key:"destroy",value:function(){var p=this;this.destroyed=!0;var e=this._transport?this._transport.destroy():Promise.resolve();return e.then(function(){p._transport=null,p._worker&&(p._worker.destroy(),p._worker=null)})}},{key:"then",value:function(p,e){throw new Error("Removed API method: PDFDocumentLoadingTask.then, use the `promise` getter instead.")}},{key:"promise",get:function(){return this._capability.promise}}]),r}();return a}(),PDFDataRangeTransport=function(){function x(t,a){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;_classCallCheck(this,x),this.length=t,this.initialData=a,this.progressiveDone=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(x,[{key:"addRangeListener",value:function(a){this._rangeListeners.push(a)}},{key:"addProgressListener",value:function(a){this._progressListeners.push(a)}},{key:"addProgressiveReadListener",value:function(a){this._progressiveReadListeners.push(a)}},{key:"addProgressiveDoneListener",value:function(a){this._progressiveDoneListeners.push(a)}},{key:"onDataRange",value:function(a,r){var i=!0,p=!1,e=void 0;try{for(var N=this._rangeListeners[Symbol.iterator](),w;!(i=(w=N.next()).done);i=!0){var $=w.value;$(a,r)}}catch(U){p=!0,e=U}finally{try{!i&&N.return!=null&&N.return()}finally{if(p)throw e}}}},{key:"onDataProgress",value:function(a,r){var i=this;this._readyCapability.promise.then(function(){var p=!0,e=!1,N=void 0;try{for(var w=i._progressListeners[Symbol.iterator](),$;!(p=($=w.next()).done);p=!0){var U=$.value;U(a,r)}}catch(m){e=!0,N=m}finally{try{!p&&w.return!=null&&w.return()}finally{if(e)throw N}}})}},{key:"onDataProgressiveRead",value:function(a){var r=this;this._readyCapability.promise.then(function(){var i=!0,p=!1,e=void 0;try{for(var N=r._progressiveReadListeners[Symbol.iterator](),w;!(i=(w=N.next()).done);i=!0){var $=w.value;$(a)}}catch(U){p=!0,e=U}finally{try{!i&&N.return!=null&&N.return()}finally{if(p)throw e}}})}},{key:"onDataProgressiveDone",value:function(){var a=this;this._readyCapability.promise.then(function(){var r=!0,i=!1,p=void 0;try{for(var e=a._progressiveDoneListeners[Symbol.iterator](),N;!(r=(N=e.next()).done);r=!0){var w=N.value;w()}}catch($){i=!0,p=$}finally{try{!r&&e.return!=null&&e.return()}finally{if(i)throw p}}})}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(a,r){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),x}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function x(t,a){_classCallCheck(this,x),this._pdfInfo=t,this._transport=a}return _createClass(x,[{key:"getPage",value:function(a){return this._transport.getPage(a)}},{key:"getPageIndex",value:function(a){return this._transport.getPageIndex(a)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(a){return this._transport.getDestination(a)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getOpenActionDestination",value:function(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then(function(a){return a&&a.dest?a.dest:null})}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){return this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}}]),x}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function x(t,a,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;_classCallCheck(this,x),this._pageIndex=t,this._pageInfo=a,this._transport=r,this._stats=i?new _display_utils.StatTimer:null,this._pdfBug=i,this.commonObjs=r.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return _createClass(x,[{key:"getViewport",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=a.scale,i=a.rotation,p=i===void 0?this.rotate:i,e=a.offsetX,N=e===void 0?0:e,w=a.offsetY,$=w===void 0?0:w,U=a.dontFlip,m=U===void 0?!1:U;if(arguments.length>1||typeof arguments[0]=="number")throw new Error("PDFPageProxy.getViewport is called with obsolete arguments.");return new _display_utils.PageViewport({viewBox:this.view,scale:r,rotation:p,offsetX:N,offsetY:$,dontFlip:m})}},{key:"getAnnotations",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=a.intent,i=r===void 0?null:r;return(!this.annotationsPromise||this.annotationsIntent!==i)&&(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,i),this.annotationsIntent=i),this.annotationsPromise}},{key:"render",value:function(a){var r=this,i=a.canvasContext,p=a.viewport,e=a.intent,N=e===void 0?"display":e,w=a.enableWebGL,$=w===void 0?!1:w,U=a.renderInteractiveForms,m=U===void 0?!1:U,n=a.transform,J=n===void 0?null:n,O=a.imageLayer,L=O===void 0?null:O,M=a.canvasFactory,P=M===void 0?null:M,b=a.background,_=b===void 0?null:b;this._stats&&this._stats.time("Overall");var d=N==="print"?"print":"display";this.pendingCleanup=!1,this.intentStates[d]||(this.intentStates[d]=Object.create(null));var c=this.intentStates[d];c.streamReaderCancelTimeout&&(clearTimeout(c.streamReaderCancelTimeout),c.streamReaderCancelTimeout=null);var h=P||new _display_utils.DOMCanvasFactory,f=new _webgl.WebGLContext({enable:$});c.displayReadyCapability||(c.displayReadyCapability=(0,_util.createPromiseCapability)(),c.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:d,renderInteractiveForms:m===!0}));var g=function(u){var l=c.renderTasks.indexOf(v);l>=0&&c.renderTasks.splice(l,1),(r.cleanupAfterRender||d==="print")&&(r.pendingCleanup=!0),r._tryCleanup(),u?(v.capability.reject(u),r._abortOperatorList({intentState:c,reason:u})):v.capability.resolve(),r._stats&&(r._stats.timeEnd("Rendering"),r._stats.timeEnd("Overall"))},v=new InternalRenderTask({callback:g,params:{canvasContext:i,viewport:p,transform:J,imageLayer:L,background:_},objs:this.objs,commonObjs:this.commonObjs,operatorList:c.operatorList,pageIndex:this._pageIndex,canvasFactory:h,webGLContext:f,useRequestAnimationFrame:d!=="print",pdfBug:this._pdfBug});c.renderTasks||(c.renderTasks=[]),c.renderTasks.push(v);var s=v.task;return c.displayReadyCapability.promise.then(function(o){if(r.pendingCleanup){g();return}r._stats&&r._stats.time("Rendering"),v.initializeGraphics(o),v.operatorListChanged()}).catch(g),s}},{key:"getOperatorList",value:function(){function a(){if(i.operatorList.lastChunk){i.opListReadCapability.resolve(i.operatorList);var e=i.renderTasks.indexOf(p);e>=0&&i.renderTasks.splice(e,1)}}var r="oplist";this.intentStates[r]||(this.intentStates[r]=Object.create(null));var i=this.intentStates[r],p;return i.opListReadCapability||(p={},p.operatorListChanged=a,i.opListReadCapability=(0,_util.createPromiseCapability)(),i.renderTasks=[],i.renderTasks.push(p),i.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:r})),i.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=a.normalizeWhitespace,i=r===void 0?!1:r,p=a.disableCombineTextItems,e=p===void 0?!1:p,N=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:i===!0,combineTextItems:e!==!0},{highWaterMark:N,size:function($){return $.items.length}})}},{key:"getTextContent",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=this.streamTextContent(a);return new Promise(function(i,p){function e(){N.read().then(function($){var U,m=$.value,n=$.done;if(n){i(w);return}Object.assign(w.styles,m.styles),(U=w.items).push.apply(U,_toConsumableArray(m.items)),e()},p)}var N=r.getReader(),w={items:[],styles:Object.create(null)};e()})}},{key:"_destroy",value:function(){var a=this;this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var r=[];return Object.keys(this.intentStates).forEach(function(i){var p=a.intentStates[i];a._abortOperatorList({intentState:p,reason:new Error("Page was destroyed."),force:!0}),i!=="oplist"&&p.renderTasks.forEach(function(e){var N=e.capability.promise.catch(function(){});r.push(N),e.cancel()})}),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(r)}},{key:"cleanup",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.pendingCleanup=!0,this._tryCleanup(a)}},{key:"_tryCleanup",value:function(){var a=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return!this.pendingCleanup||Object.keys(this.intentStates).some(function(i){var p=a.intentStates[i];return p.renderTasks.length!==0||!p.operatorList.lastChunk})?!1:(Object.keys(this.intentStates).forEach(function(i){delete a.intentStates[i]}),this.objs.clear(),this.annotationsPromise=null,r&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0)}},{key:"_startRenderPage",value:function(a,r){var i=this.intentStates[r];i&&(this._stats&&this._stats.timeEnd("Page Request"),i.displayReadyCapability&&i.displayReadyCapability.resolve(a))}},{key:"_renderPageChunk",value:function(a,r){for(var i=0,p=a.length;i<p;i++)r.operatorList.fnArray.push(a.fnArray[i]),r.operatorList.argsArray.push(a.argsArray[i]);r.operatorList.lastChunk=a.lastChunk;for(var e=0;e<r.renderTasks.length;e++)r.renderTasks[e].operatorListChanged();a.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(a){var r=this;(0,_util.assert)(a.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');var i=this._transport.messageHandler.sendWithStream("GetOperatorList",a),p=i.getReader(),e=this.intentStates[a.intent];e.streamReader=p;var N=function w(){p.read().then(function($){var U=$.value,m=$.done;if(m){e.streamReader=null;return}r._transport.destroyed||(r._renderPageChunk(U,e),w())},function($){if(e.streamReader=null,!r._transport.destroyed){if(e.operatorList){e.operatorList.lastChunk=!0;for(var U=0;U<e.renderTasks.length;U++)e.renderTasks[U].operatorListChanged();r._tryCleanup()}if(e.displayReadyCapability)e.displayReadyCapability.reject($);else if(e.opListReadCapability)e.opListReadCapability.reject($);else throw $}})};N()}},{key:"_abortOperatorList",value:function(a){var r=this,i=a.intentState,p=a.reason,e=a.force,N=e===void 0?!1:e;if((0,_util.assert)(p instanceof Error||_typeof(p)==="object"&&p!==null,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),!!i.streamReader){if(!N){if(i.renderTasks.length!==0)return;if(p instanceof _display_utils.RenderingCancelledException){i.streamReaderCancelTimeout=setTimeout(function(){r._abortOperatorList({intentState:i,reason:p,force:!0}),i.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT);return}}i.streamReader.cancel(new _util.AbortException(p&&p.message)),i.streamReader=null,!this._transport.destroyed&&(Object.keys(this.intentStates).some(function(w){return r.intentStates[w]===i?(delete r.intentStates[w],!0):!1}),this.cleanup())}}},{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"stats",get:function(){return this._stats}}]),x}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function x(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;_classCallCheck(this,x),this._listeners=[],this._defer=t,this._deferred=Promise.resolve(void 0)}return _createClass(x,[{key:"postMessage",value:function(a,r){var i=this;function p(w){if(_typeof(w)!=="object"||w===null)return w;if(e.has(w))return e.get(w);var $,U;if(($=w.buffer)&&(0,_util.isArrayBuffer)($)){var m=r&&r.includes($);return m?U=new w.constructor($,w.byteOffset,w.byteLength):U=new w.constructor(w),e.set(w,U),U}U=Array.isArray(w)?[]:{},e.set(w,U);for(var n in w){for(var J=void 0,O=w;!(J=Object.getOwnPropertyDescriptor(O,n));)O=Object.getPrototypeOf(O);if(!(typeof J.value>"u")){if(typeof J.value=="function"){if(w.hasOwnProperty&&w.hasOwnProperty(n))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(w[n]));continue}U[n]=p(J.value)}}return U}if(!this._defer){this._listeners.forEach(function(w){w.call(i,{data:a})});return}var e=new WeakMap,N={data:p(a)};this._deferred.then(function(){i._listeners.forEach(function(w){w.call(i,N)})})}},{key:"addEventListener",value:function(a,r){this._listeners.push(r)}},{key:"removeEventListener",value:function(a,r){var i=this._listeners.indexOf(r);this._listeners.splice(i,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),x}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS&&typeof require=="function")isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if((typeof document>"u"?"undefined":_typeof(document))==="object"&&"currentScript"in document){var pdfjsFilePath=document.currentScript&&document.currentScript.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(typeof fallbackWorkerSrc<"u")return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var x;try{x=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch{}return x||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref8=_asyncToGenerator(_regenerator.default.mark(function _callee(){var mainWorkerMessageHandler,worker;return _regenerator.default.wrap(function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler(),!mainWorkerMessageHandler){_context.next=3;break}return _context.abrupt("return",mainWorkerMessageHandler);case 3:if(!(_is_node.isNodeJS&&typeof require=="function")){_context.next=6;break}return worker=eval("require")(_getWorkerSrc()),_context.abrupt("return",worker.WorkerMessageHandler);case 6:return _context.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context.stop()}},_callee)}));return function x(){return _ref8.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(x){var t="importScripts('"+x+"');";return URL.createObjectURL(new Blob([t]))}var PDFWorker=function(){function x(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=t.name,r=a===void 0?null:a,i=t.port,p=i===void 0?null:i,e=t.verbosity,N=e===void 0?(0,_util.getVerbosityLevel)():e;if(_classCallCheck(this,x),p&&pdfWorkerPorts.has(p))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=r,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=N,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,p){pdfWorkerPorts.set(p,this),this._initializeFromPort(p);return}this._initialize()}return _createClass(x,[{key:"_initializeFromPort",value:function(a){this._port=a,this._messageHandler=new _message_handler.MessageHandler("main","worker",a),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var a=this;if(typeof Worker<"u"&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var r=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,r)||(r=createCDNWrapper(new URL(r,window.location).href));var i=new Worker(r),p=new _message_handler.MessageHandler("main","worker",i),e=function(){i.removeEventListener("error",N),p.destroy(),i.terminate(),a.destroyed?a._readyCapability.reject(new Error("Worker was destroyed")):a._setupFakeWorker()},N=function(){a._webWorker||e()};i.addEventListener("error",N),p.on("test",function($){if(i.removeEventListener("error",N),a.destroyed){e();return}$?(a._messageHandler=p,a._port=i,a._webWorker=i,$.supportTransfers||(a.postMessageTransfers=!1),a._readyCapability.resolve(),p.send("configure",{verbosity:a.verbosity})):(a._setupFakeWorker(),p.destroy(),i.terminate())}),p.on("ready",function($){if(i.removeEventListener("error",N),a.destroyed){e();return}try{w()}catch{a._setupFakeWorker()}});var w=function(){var U=new Uint8Array([a.postMessageTransfers?255:0]);try{p.send("test",U,[U.buffer])}catch{(0,_util.warn)("Cannot use postMessage transfers."),U[0]=0,p.send("test",U)}};w();return}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var a=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then(function(r){if(a.destroyed){a._readyCapability.reject(new Error("Worker was destroyed"));return}var i=new LoopbackPort;a._port=i;var p="fake"+nextFakeWorkerId++,e=new _message_handler.MessageHandler(p+"_worker",p,i);r.setup(e,i);var N=new _message_handler.MessageHandler(p,p+"_worker",i);a._messageHandler=N,a._readyCapability.resolve(),N.send("configure",{verbosity:a.verbosity})}).catch(function(r){a._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(r.message,'".')))})}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}}],[{key:"fromPort",value:function(a){if(!a||!a.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(a.port)?pdfWorkerPorts.get(a.port):new x(a)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),x}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function x(t,a,r,i){_classCallCheck(this,x),this.messageHandler=t,this.loadingTask=a,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:a.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=i,this.CMapReaderFactory=new i.CMapReaderFactory({baseUrl:i.cMapUrl,isCompressed:i.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(x,[{key:"destroy",value:function(){var a=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var r=[];this.pageCache.forEach(function(p){p&&r.push(p._destroy())}),this.pageCache.length=0,this.pagePromises.length=0;var i=this.messageHandler.sendWithPromise("Terminate",null);return r.push(i),Promise.all(r).then(function(){a.fontLoader.clear(),a._networkStream&&a._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),a.messageHandler&&(a.messageHandler.destroy(),a.messageHandler=null),a.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var a=this,r=this.messageHandler,i=this.loadingTask;r.on("GetReader",function(p,e){(0,_util.assert)(a._networkStream),a._fullReader=a._networkStream.getFullReader(),a._fullReader.onProgress=function(N){a._lastProgress={loaded:N.loaded,total:N.total}},e.onPull=function(){a._fullReader.read().then(function(N){var w=N.value,$=N.done;if($){e.close();return}(0,_util.assert)((0,_util.isArrayBuffer)(w)),e.enqueue(new Uint8Array(w),1,[w])}).catch(function(N){e.error(N)})},e.onCancel=function(N){a._fullReader.cancel(N)}}),r.on("ReaderHeadersReady",function(p){var e=(0,_util.createPromiseCapability)(),N=a._fullReader;return N.headersReady.then(function(){(!N.isStreamingSupported||!N.isRangeSupported)&&(a._lastProgress&&i.onProgress&&i.onProgress(a._lastProgress),N.onProgress=function(w){i.onProgress&&i.onProgress({loaded:w.loaded,total:w.total})}),e.resolve({isStreamingSupported:N.isStreamingSupported,isRangeSupported:N.isRangeSupported,contentLength:N.contentLength})},e.reject),e.promise}),r.on("GetRangeReader",function(p,e){(0,_util.assert)(a._networkStream);var N=a._networkStream.getRangeReader(p.begin,p.end);if(!N){e.close();return}e.onPull=function(){N.read().then(function(w){var $=w.value,U=w.done;if(U){e.close();return}(0,_util.assert)((0,_util.isArrayBuffer)($)),e.enqueue(new Uint8Array($),1,[$])}).catch(function(w){e.error(w)})},e.onCancel=function(w){N.cancel(w)}}),r.on("GetDoc",function(p){var e=p.pdfInfo;a._numPages=e.numPages,i._capability.resolve(new PDFDocumentProxy(e,a))}),r.on("DocException",function(p){var e;switch(p.name){case"PasswordException":e=new _util.PasswordException(p.message,p.code);break;case"InvalidPDFException":e=new _util.InvalidPDFException(p.message);break;case"MissingPDFException":e=new _util.MissingPDFException(p.message);break;case"UnexpectedResponseException":e=new _util.UnexpectedResponseException(p.message,p.status);break;case"UnknownErrorException":e=new _util.UnknownErrorException(p.message,p.details);break}i._capability.reject(e)}),r.on("PasswordRequest",function(p){if(a._passwordCapability=(0,_util.createPromiseCapability)(),i.onPassword){var e=function(w){a._passwordCapability.resolve({password:w})};try{i.onPassword(e,p.code)}catch(N){a._passwordCapability.reject(N)}}else a._passwordCapability.reject(new _util.PasswordException(p.message,p.code));return a._passwordCapability.promise}),r.on("DataLoaded",function(p){i.onProgress&&i.onProgress({loaded:p.length,total:p.length}),a.downloadInfoCapability.resolve(p)}),r.on("StartRenderPage",function(p){if(!a.destroyed){var e=a.pageCache[p.pageIndex];e._startRenderPage(p.transparency,p.intent)}}),r.on("commonobj",function(p){if(!a.destroyed){var e=_slicedToArray(p,3),N=e[0],w=e[1],$=e[2];if(!a.commonObjs.has(N))switch(w){case"Font":var U=a._params;if("error"in $){var m=$.error;(0,_util.warn)("Error during font loading: ".concat(m)),a.commonObjs.resolve(N,m);break}var n=null;U.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(n={registerFont:function(L,M){globalThis.FontInspector.fontAdded(L,M)}});var J=new _font_loader.FontFaceObject($,{isEvalSupported:U.isEvalSupported,disableFontFace:U.disableFontFace,ignoreErrors:U.ignoreErrors,onUnsupportedFeature:a._onUnsupportedFeature.bind(a),fontRegistry:n});a.fontLoader.bind(J).then(function(){a.commonObjs.resolve(N,J)},function(O){r.sendWithPromise("FontFallback",{id:N}).finally(function(){a.commonObjs.resolve(N,J)})});break;case"FontPath":case"FontType3Res":a.commonObjs.resolve(N,$);break;default:throw new Error("Got unknown common object type ".concat(w))}}}),r.on("obj",function(p){if(!a.destroyed){var e=_slicedToArray(p,4),N=e[0],w=e[1],$=e[2],U=e[3],m=a.pageCache[w];if(!m.objs.has(N))switch($){case"JpegStream":return new Promise(function(J,O){var L=new Image;L.onload=function(){J(L)},L.onerror=function(){O(new Error("Error during JPEG image loading")),(0,_display_utils.releaseImageResources)(L)},L.src=U}).then(function(J){m.objs.resolve(N,J)});case"Image":m.objs.resolve(N,U);var n=8e6;U&&"data"in U&&U.data.length>n&&(m.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type ".concat($))}}}),r.on("DocProgress",function(p){a.destroyed||i.onProgress&&i.onProgress({loaded:p.loaded,total:p.total})}),r.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),r.on("JpegDecode",function(p){if(a.destroyed)return Promise.reject(new Error("Worker was destroyed"));if(typeof document>"u")return Promise.reject(new Error('"document" is not defined.'));var e=_slicedToArray(p,2),N=e[0],w=e[1];return w!==3&&w!==1?Promise.reject(new Error("Only 3 components or 1 component can be returned")):new Promise(function($,U){var m=new Image;m.onload=function(){var n=m.width,J=m.height,O=n*J,L=O*4,M=new Uint8ClampedArray(O*w),P=document.createElement("canvas");P.width=n,P.height=J;var b=P.getContext("2d");b.drawImage(m,0,0);var _=b.getImageData(0,0,n,J).data;if(w===3)for(var d=0,c=0;d<L;d+=4,c+=3)M[c]=_[d],M[c+1]=_[d+1],M[c+2]=_[d+2];else if(w===1)for(var h=0,f=0;h<L;h+=4,f++)M[f]=_[h];$({data:M,width:n,height:J}),(0,_display_utils.releaseImageResources)(m),P.width=0,P.height=0,P=null,b=null},m.onerror=function(){U(new Error("JpegDecode failed to load image")),(0,_display_utils.releaseImageResources)(m)},m.src=N})}),r.on("FetchBuiltInCMap",function(p,e){if(a.destroyed){e.error(new Error("Worker was destroyed"));return}var N=!1;e.onPull=function(){if(N){e.close();return}N=!0,a.CMapReaderFactory.fetch(p).then(function(w){e.enqueue(w,1,[w.cMapData.buffer])}).catch(function(w){e.error(w)})}})}},{key:"_onUnsupportedFeature",value:function(a){var r=a.featureId;this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(r)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(a){var r=this;if(!Number.isInteger(a)||a<=0||a>this._numPages)return Promise.reject(new Error("Invalid page request"));var i=a-1;if(i in this.pagePromises)return this.pagePromises[i];var p=this.messageHandler.sendWithPromise("GetPage",{pageIndex:i}).then(function(e){if(r.destroyed)throw new Error("Transport destroyed");var N=new PDFPageProxy(i,e,r,r._params.pdfBug);return r.pageCache[i]=N,N});return this.pagePromises[i]=p,p}},{key:"getPageIndex",value:function(a){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:a}).catch(function(r){return Promise.reject(new Error(r))})}},{key:"getAnnotations",value:function(a,r){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:a,intent:r})}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(a){return typeof a!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:a})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var a=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then(function(r){return{info:r[0],metadata:r[1]?new _metadata.Metadata(r[1]):null,contentDispositionFilename:a._fullReader?a._fullReader.filename:null}})}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var a=this;return this.messageHandler.sendWithPromise("Cleanup",null).then(function(){for(var r=0,i=a.pageCache.length;r<i;r++){var p=a.pageCache[r];if(p){var e=p.cleanup();if(!e)throw new Error("startCleanup: Page ".concat(r+1," is currently rendering."))}}a.commonObjs.clear(),a.fontLoader.clear()})}},{key:"loadingParams",get:function(){var a=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:a.disableAutoFetch,disableCreateObjectURL:a.disableCreateObjectURL,disableFontFace:a.disableFontFace,nativeImageDecoderSupport:a.nativeImageDecoderSupport})}}]),x}(),PDFObjects=function(){function x(){_classCallCheck(this,x),this._objs=Object.create(null)}return _createClass(x,[{key:"_ensureObj",value:function(a){return this._objs[a]?this._objs[a]:this._objs[a]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(r)return this._ensureObj(a).capability.promise.then(r),null;var i=this._objs[a];if(!i||!i.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(a,"."));return i.data}},{key:"has",value:function(a){var r=this._objs[a];return r?r.resolved:!1}},{key:"resolve",value:function(a,r){var i=this._ensureObj(a);i.resolved=!0,i.data=r,i.capability.resolve(r)}},{key:"clear",value:function(){for(var a in this._objs){var r=this._objs[a].data;typeof Image<"u"&&r instanceof Image&&(0,_display_utils.releaseImageResources)(r)}this._objs=Object.create(null)}}]),x}(),RenderTask=function(){function x(t){_classCallCheck(this,x),this._internalRenderTask=t,this.onContinue=null}return _createClass(x,[{key:"cancel",value:function(){this._internalRenderTask.cancel()}},{key:"then",value:function(a,r){throw new Error("Removed API method: RenderTask.then, use the `promise` getter instead.")}},{key:"promise",get:function(){return this._internalRenderTask.capability.promise}}]),x}(),InternalRenderTask=function x(){var t=new WeakSet,a=function(){function r(i){var p=i.callback,e=i.params,N=i.objs,w=i.commonObjs,$=i.operatorList,U=i.pageIndex,m=i.canvasFactory,n=i.webGLContext,J=i.useRequestAnimationFrame,O=J===void 0?!1:J,L=i.pdfBug,M=L===void 0?!1:L;_classCallCheck(this,r),this.callback=p,this.params=e,this.objs=N,this.commonObjs=w,this.operatorListIdx=null,this.operatorList=$,this._pageIndex=U,this.canvasFactory=m,this.webGLContext=n,this._pdfBug=M,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=O===!0&&typeof window<"u",this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=e.canvasContext.canvas}return _createClass(r,[{key:"initializeGraphics",value:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.cancelled){if(this._canvas){if(t.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.");t.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var e=this.params,N=e.canvasContext,w=e.viewport,$=e.transform,U=e.imageLayer,m=e.background;this.gfx=new _canvas.CanvasGraphics(N,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,U),this.gfx.beginDrawing({transform:$,viewport:w,transparency:p,background:m}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&t.delete(this._canvas),this.callback(p||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}this.stepper&&this.stepper.updateOperatorList(this.operatorList),!this.running&&this._continue()}},{key:"_continue",value:function(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var p=this;this._useRequestAnimationFrame?window.requestAnimationFrame(function(){p._nextBound().catch(p.cancel.bind(p))}):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}},{key:"_next",value:function(){var i=_asyncToGenerator(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(!this.cancelled){w.next=2;break}return w.abrupt("return");case 2: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(),this._canvas&&t.delete(this._canvas),this.callback()));case 4:case"end":return w.stop()}},e,this)}));function p(){return i.apply(this,arguments)}return p}()}]),r}();return a}(),version="2.4.456";exports.version=version;var build="228a591c";exports.build=build},function(x,t,a){x.exports=a(192)},function(x,t,a){(function(r){function i(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(w){return typeof w}:i=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},i(e)}var p=function(e){var N=Object.prototype,w=N.hasOwnProperty,$,U=typeof Symbol=="function"?Symbol:{},m=U.iterator||"@@iterator",n=U.asyncIterator||"@@asyncIterator",J=U.toStringTag||"@@toStringTag";function O(A,C,y,I){var H=C&&C.prototype instanceof c?C:c,V=Object.create(H.prototype),B=new S(I||[]);return V._invoke=F(A,y,B),V}e.wrap=O;function L(A,C,y){try{return{type:"normal",arg:A.call(C,y)}}catch(I){return{type:"throw",arg:I}}}var M="suspendedStart",P="suspendedYield",b="executing",_="completed",d={};function c(){}function h(){}function f(){}var g={};g[m]=function(){return this};var v=Object.getPrototypeOf,s=v&&v(v(R([])));s&&s!==N&&w.call(s,m)&&(g=s);var o=f.prototype=c.prototype=Object.create(g);h.prototype=o.constructor=f,f.constructor=h,f[J]=h.displayName="GeneratorFunction";function u(A){["next","throw","return"].forEach(function(C){A[C]=function(y){return this._invoke(C,y)}})}e.isGeneratorFunction=function(A){var C=typeof A=="function"&&A.constructor;return C?C===h||(C.displayName||C.name)==="GeneratorFunction":!1},e.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,f):(A.__proto__=f,J in A||(A[J]="GeneratorFunction")),A.prototype=Object.create(o),A},e.awrap=function(A){return{__await:A}};function l(A,C){function y(V,B,W,G){var q=L(A[V],A,B);if(q.type==="throw")G(q.arg);else{var z=q.arg,j=z.value;return j&&i(j)==="object"&&w.call(j,"__await")?C.resolve(j.__await).then(function(Y){y("next",Y,W,G)},function(Y){y("throw",Y,W,G)}):C.resolve(j).then(function(Y){z.value=Y,W(z)},function(Y){return y("throw",Y,W,G)})}}var I;function H(V,B){function W(){return new C(function(G,q){y(V,B,G,q)})}return I=I?I.then(W,W):W()}this._invoke=H}u(l.prototype),l.prototype[n]=function(){return this},e.AsyncIterator=l,e.async=function(A,C,y,I,H){H===void 0&&(H=Promise);var V=new l(O(A,C,y,I),H);return e.isGeneratorFunction(C)?V:V.next().then(function(B){return B.done?B.value:V.next()})};function F(A,C,y){var I=M;return function(V,B){if(I===b)throw new Error("Generator is already running");if(I===_){if(V==="throw")throw B;return E()}for(y.method=V,y.arg=B;;){var W=y.delegate;if(W){var G=T(W,y);if(G){if(G===d)continue;return G}}if(y.method==="next")y.sent=y._sent=y.arg;else if(y.method==="throw"){if(I===M)throw I=_,y.arg;y.dispatchException(y.arg)}else y.method==="return"&&y.abrupt("return",y.arg);I=b;var q=L(A,C,y);if(q.type==="normal"){if(I=y.done?_:P,q.arg===d)continue;return{value:q.arg,done:y.done}}else q.type==="throw"&&(I=_,y.method="throw",y.arg=q.arg)}}}function T(A,C){var y=A.iterator[C.method];if(y===$){if(C.delegate=null,C.method==="throw"){if(A.iterator.return&&(C.method="return",C.arg=$,T(A,C),C.method==="throw"))return d;C.method="throw",C.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var I=L(y,A.iterator,C.arg);if(I.type==="throw")return C.method="throw",C.arg=I.arg,C.delegate=null,d;var H=I.arg;if(!H)return C.method="throw",C.arg=new TypeError("iterator result is not an object"),C.delegate=null,d;if(H.done)C[A.resultName]=H.value,C.next=A.nextLoc,C.method!=="return"&&(C.method="next",C.arg=$);else return H;return C.delegate=null,d}u(o),o[J]="Generator",o[m]=function(){return this},o.toString=function(){return"[object Generator]"};function D(A){var C={tryLoc:A[0]};1 in A&&(C.catchLoc=A[1]),2 in A&&(C.finallyLoc=A[2],C.afterLoc=A[3]),this.tryEntries.push(C)}function k(A){var C=A.completion||{};C.type="normal",delete C.arg,A.completion=C}function S(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(D,this),this.reset(!0)}e.keys=function(A){var C=[];for(var y in A)C.push(y);return C.reverse(),function I(){for(;C.length;){var H=C.pop();if(H in A)return I.value=H,I.done=!1,I}return I.done=!0,I}};function R(A){if(A){var C=A[m];if(C)return C.call(A);if(typeof A.next=="function")return A;if(!isNaN(A.length)){var y=-1,I=function H(){for(;++y<A.length;)if(w.call(A,y))return H.value=A[y],H.done=!1,H;return H.value=$,H.done=!0,H};return I.next=I}}return{next:E}}e.values=R;function E(){return{value:$,done:!0}}return S.prototype={constructor:S,reset:function(C){if(this.prev=0,this.next=0,this.sent=this._sent=$,this.done=!1,this.delegate=null,this.method="next",this.arg=$,this.tryEntries.forEach(k),!C)for(var y in this)y.charAt(0)==="t"&&w.call(this,y)&&!isNaN(+y.slice(1))&&(this[y]=$)},stop:function(){this.done=!0;var C=this.tryEntries[0],y=C.completion;if(y.type==="throw")throw y.arg;return this.rval},dispatchException:function(C){if(this.done)throw C;var y=this;function I(q,z){return B.type="throw",B.arg=C,y.next=q,z&&(y.method="next",y.arg=$),!!z}for(var H=this.tryEntries.length-1;H>=0;--H){var V=this.tryEntries[H],B=V.completion;if(V.tryLoc==="root")return I("end");if(V.tryLoc<=this.prev){var W=w.call(V,"catchLoc"),G=w.call(V,"finallyLoc");if(W&&G){if(this.prev<V.catchLoc)return I(V.catchLoc,!0);if(this.prev<V.finallyLoc)return I(V.finallyLoc)}else if(W){if(this.prev<V.catchLoc)return I(V.catchLoc,!0)}else if(G){if(this.prev<V.finallyLoc)return I(V.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(C,y){for(var I=this.tryEntries.length-1;I>=0;--I){var H=this.tryEntries[I];if(H.tryLoc<=this.prev&&w.call(H,"finallyLoc")&&this.prev<H.finallyLoc){var V=H;break}}V&&(C==="break"||C==="continue")&&V.tryLoc<=y&&y<=V.finallyLoc&&(V=null);var B=V?V.completion:{};return B.type=C,B.arg=y,V?(this.method="next",this.next=V.finallyLoc,d):this.complete(B)},complete:function(C,y){if(C.type==="throw")throw C.arg;return C.type==="break"||C.type==="continue"?this.next=C.arg:C.type==="return"?(this.rval=this.arg=C.arg,this.method="return",this.next="end"):C.type==="normal"&&y&&(this.next=y),d},finish:function(C){for(var y=this.tryEntries.length-1;y>=0;--y){var I=this.tryEntries[y];if(I.finallyLoc===C)return this.complete(I.completion,I.afterLoc),k(I),d}},catch:function(C){for(var y=this.tryEntries.length-1;y>=0;--y){var I=this.tryEntries[y];if(I.tryLoc===C){var H=I.completion;if(H.type==="throw"){var V=H.arg;k(I)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(C,y,I){return this.delegate={iterator:R(C),resultName:y,nextLoc:I},this.method==="next"&&(this.arg=$),d}},e}(i(r)==="object"?r.exports:{});try{regeneratorRuntime=p}catch{Function("r","regeneratorRuntime = r")(p)}}).call(this,a(193)(x))},function(x,t,a){x.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=v,t.getFilenameFromUrl=s,t.isFetchSupported=u,t.isValidFetchUrl=l,t.loadScript=F,t.deprecated=T,t.releaseImageResources=D,t.PDFDateString=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.RenderingCancelledException=t.PageViewport=void 0;var r=p(a(191)),i=a(1);function p(R){return R&&R.__esModule?R:{default:R}}function e(R){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(A){return typeof A}:e=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},e(R)}function N(R,E){return E&&(e(E)==="object"||typeof E=="function")?E:w(R)}function w(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function $(R){return $=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},$(R)}function U(R,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(E&&E.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),E&&m(R,E)}function m(R,E){return m=Object.setPrototypeOf||function(C,y){return C.__proto__=y,C},m(R,E)}function n(R,E,A,C,y,I,H){try{var V=R[I](H),B=V.value}catch(W){A(W);return}V.done?E(B):Promise.resolve(B).then(C,y)}function J(R){return function(){var E=this,A=arguments;return new Promise(function(C,y){var I=R.apply(E,A);function H(B){n(I,C,y,H,V,"next",B)}function V(B){n(I,C,y,H,V,"throw",B)}H(void 0)})}}function O(R,E){if(!(R instanceof E))throw new TypeError("Cannot call a class as a function")}function L(R,E){for(var A=0;A<E.length;A++){var C=E[A];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(R,C.key,C)}}function M(R,E,A){return E&&L(R.prototype,E),A&&L(R,A),R}var P="noopener noreferrer nofollow";t.DEFAULT_LINK_REL=P;var b="http://www.w3.org/2000/svg",_=function(){function R(){O(this,R)}return M(R,[{key:"create",value:function(A,C){if(A<=0||C<=0)throw new Error("Invalid canvas size");var y=document.createElement("canvas"),I=y.getContext("2d");return y.width=A,y.height=C,{canvas:y,context:I}}},{key:"reset",value:function(A,C,y){if(!A.canvas)throw new Error("Canvas is not specified");if(C<=0||y<=0)throw new Error("Invalid canvas size");A.canvas.width=C,A.canvas.height=y}},{key:"destroy",value:function(A){if(!A.canvas)throw new Error("Canvas is not specified");A.canvas.width=0,A.canvas.height=0,A.canvas=null,A.context=null}}]),R}();t.DOMCanvasFactory=_;var d=function(){function R(E){var A=E.baseUrl,C=A===void 0?null:A,y=E.isCompressed,I=y===void 0?!1:y;O(this,R),this.baseUrl=C,this.isCompressed=I}return M(R,[{key:"fetch",value:function(E){function A(C){return E.apply(this,arguments)}return A.toString=function(){return E.toString()},A}(function(){var E=J(r.default.mark(function A(C){var y=this,I,H,V;return r.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if(I=C.name,this.baseUrl){W.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(I){W.next=5;break}throw new Error("CMap name must be specified.");case 5:if(H=this.baseUrl+I+(this.isCompressed?".bcmap":""),V=this.isCompressed?i.CMapCompressionType.BINARY:i.CMapCompressionType.NONE,!(u()&&l(H,document.baseURI))){W.next=9;break}return W.abrupt("return",fetch(H).then(function(){var G=J(r.default.mark(function q(z){var j;return r.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(z.ok){K.next=2;break}throw new Error(z.statusText);case 2:if(!y.isCompressed){K.next=10;break}return K.t0=Uint8Array,K.next=6,z.arrayBuffer();case 6:K.t1=K.sent,j=new K.t0(K.t1),K.next=15;break;case 10:return K.t2=i.stringToBytes,K.next=13,z.text();case 13:K.t3=K.sent,j=(0,K.t2)(K.t3);case 15:return K.abrupt("return",{cMapData:j,compressionType:V});case 16:case"end":return K.stop()}},q)}));return function(q){return G.apply(this,arguments)}}()).catch(function(G){throw new Error("Unable to load ".concat(y.isCompressed?"binary ":"")+"CMap at: ".concat(H))}));case 9:return W.abrupt("return",new Promise(function(G,q){var z=new XMLHttpRequest;z.open("GET",H,!0),y.isCompressed&&(z.responseType="arraybuffer"),z.onreadystatechange=function(){if(z.readyState===XMLHttpRequest.DONE){if(z.status===200||z.status===0){var j;if(y.isCompressed&&z.response?j=new Uint8Array(z.response):!y.isCompressed&&z.responseText&&(j=(0,i.stringToBytes)(z.responseText)),j){G({cMapData:j,compressionType:V});return}}q(new Error(z.statusText))}},z.send(null)}).catch(function(G){throw new Error("Unable to load ".concat(y.isCompressed?"binary ":"")+"CMap at: ".concat(H))}));case 10:case"end":return W.stop()}},A,this)}));return function(A){return E.apply(this,arguments)}}())}]),R}();t.DOMCMapReaderFactory=d;var c=function(){function R(){O(this,R)}return M(R,[{key:"create",value:function(A,C){(0,i.assert)(A>0&&C>0,"Invalid SVG dimensions");var y=document.createElementNS(b,"svg:svg");return y.setAttribute("version","1.1"),y.setAttribute("width",A+"px"),y.setAttribute("height",C+"px"),y.setAttribute("preserveAspectRatio","none"),y.setAttribute("viewBox","0 0 "+A+" "+C),y}},{key:"createElement",value:function(A){return(0,i.assert)(typeof A=="string","Invalid SVG element type"),document.createElementNS(b,A)}}]),R}();t.DOMSVGFactory=c;var h=function(){function R(E){var A=E.viewBox,C=E.scale,y=E.rotation,I=E.offsetX,H=I===void 0?0:I,V=E.offsetY,B=V===void 0?0:V,W=E.dontFlip,G=W===void 0?!1:W;O(this,R),this.viewBox=A,this.scale=C,this.rotation=y,this.offsetX=H,this.offsetY=B;var q=(A[2]+A[0])/2,z=(A[3]+A[1])/2,j,Y,K,Z;switch(y=y%360,y=y<0?y+360:y,y){case 180:j=-1,Y=0,K=0,Z=1;break;case 90:j=0,Y=1,K=1,Z=0;break;case 270:j=0,Y=-1,K=-1,Z=0;break;default:j=1,Y=0,K=0,Z=-1;break}G&&(K=-K,Z=-Z);var ee,ne,ae,te;j===0?(ee=Math.abs(z-A[1])*C+H,ne=Math.abs(q-A[0])*C+B,ae=Math.abs(A[3]-A[1])*C,te=Math.abs(A[2]-A[0])*C):(ee=Math.abs(q-A[0])*C+H,ne=Math.abs(z-A[1])*C+B,ae=Math.abs(A[2]-A[0])*C,te=Math.abs(A[3]-A[1])*C),this.transform=[j*C,Y*C,K*C,Z*C,ee-j*C*q-K*C*z,ne-Y*C*q-Z*C*z],this.width=ae,this.height=te}return M(R,[{key:"clone",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=A.scale,y=C===void 0?this.scale:C,I=A.rotation,H=I===void 0?this.rotation:I,V=A.offsetX,B=V===void 0?this.offsetX:V,W=A.offsetY,G=W===void 0?this.offsetY:W,q=A.dontFlip,z=q===void 0?!1:q;return new R({viewBox:this.viewBox.slice(),scale:y,rotation:H,offsetX:B,offsetY:G,dontFlip:z})}},{key:"convertToViewportPoint",value:function(A,C){return i.Util.applyTransform([A,C],this.transform)}},{key:"convertToViewportRectangle",value:function(A){var C=i.Util.applyTransform([A[0],A[1]],this.transform),y=i.Util.applyTransform([A[2],A[3]],this.transform);return[C[0],C[1],y[0],y[1]]}},{key:"convertToPdfPoint",value:function(A,C){return i.Util.applyInverseTransform([A,C],this.transform)}}]),R}();t.PageViewport=h;var f=function(R){U(E,R);function E(A,C){var y;return O(this,E),y=N(this,$(E).call(this,A)),y.type=C,y}return E}(i.BaseException);t.RenderingCancelledException=f;var g={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};t.LinkTarget=g;function v(R){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=E.url,C=E.target,y=E.rel,I=E.enabled,H=I===void 0?!0:I;(0,i.assert)(A&&typeof A=="string",'addLinkAttributes: A valid "url" parameter must provided.');var V=(0,i.removeNullCharacters)(A);H?R.href=R.title=V:(R.href="",R.title="Disabled: ".concat(V),R.onclick=function(){return!1});var B="";switch(C){case g.NONE:break;case g.SELF:B="_self";break;case g.BLANK:B="_blank";break;case g.PARENT:B="_parent";break;case g.TOP:B="_top";break}R.target=B,R.rel=typeof y=="string"?y:P}function s(R){var E=R.indexOf("#"),A=R.indexOf("?"),C=Math.min(E>0?E:R.length,A>0?A:R.length);return R.substring(R.lastIndexOf("/",C)+1,C)}var o=function(){function R(){O(this,R),this.started=Object.create(null),this.times=[]}return M(R,[{key:"time",value:function(A){A in this.started&&(0,i.warn)("Timer is already running for ".concat(A)),this.started[A]=Date.now()}},{key:"timeEnd",value:function(A){A in this.started||(0,i.warn)("Timer has not been started for ".concat(A)),this.times.push({name:A,start:this.started[A],end:Date.now()}),delete this.started[A]}},{key:"toString",value:function(){var A=[],C=0,y=!0,I=!1,H=void 0;try{for(var V=this.times[Symbol.iterator](),B;!(y=(B=V.next()).done);y=!0){var W=B.value,G=W.name;G.length>C&&(C=G.length)}}catch(ne){I=!0,H=ne}finally{try{!y&&V.return!=null&&V.return()}finally{if(I)throw H}}var q=!0,z=!1,j=void 0;try{for(var Y=this.times[Symbol.iterator](),K;!(q=(K=Y.next()).done);q=!0){var Z=K.value,ee=Z.end-Z.start;A.push("".concat(Z.name.padEnd(C)," ").concat(ee,`ms
|
|
7
|
+
`))}}catch(ne){z=!0,j=ne}finally{try{!q&&Y.return!=null&&Y.return()}finally{if(z)throw j}}return A.join("")}}]),R}();t.StatTimer=o;function u(){return typeof fetch<"u"&&typeof Response<"u"&&"body"in Response.prototype&&typeof ReadableStream<"u"}function l(R,E){try{var A=E?new URL(R,E):new URL(R),C=A.protocol;return C==="http:"||C==="https:"}catch{return!1}}function F(R){return new Promise(function(E,A){var C=document.createElement("script");C.src=R,C.onload=E,C.onerror=function(){A(new Error("Cannot load script at: ".concat(C.src)))},(document.head||document.documentElement).appendChild(C)})}function T(R){console.log("Deprecated API usage: "+R)}function D(R){(0,i.assert)(R instanceof Image,"Invalid `img` parameter.");var E=R.src;typeof E=="string"&&E.startsWith("blob:")&&URL.revokeObjectURL&&URL.revokeObjectURL(E),R.removeAttribute("src")}var k,S=function(){function R(){O(this,R)}return M(R,null,[{key:"toDateObject",value:function(A){if(!A||!(0,i.isString)(A))return null;k||(k=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var C=k.exec(A);if(!C)return null;var y=parseInt(C[1],10),I=parseInt(C[2],10);I=I>=1&&I<=12?I-1:0;var H=parseInt(C[3],10);H=H>=1&&H<=31?H:1;var V=parseInt(C[4],10);V=V>=0&&V<=23?V:0;var B=parseInt(C[5],10);B=B>=0&&B<=59?B:0;var W=parseInt(C[6],10);W=W>=0&&W<=59?W:0;var G=C[7]||"Z",q=parseInt(C[8],10);q=q>=0&&q<=23?q:0;var z=parseInt(C[9],10)||0;return z=z>=0&&z<=59?z:0,G==="-"?(V+=q,B+=z):G==="+"&&(V-=q,B-=z),new Date(Date.UTC(y,I,H,V,B,W))}}]),R}();t.PDFDateString=S},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var r=p(a(191)),i=a(1);function p(d){return d&&d.__esModule?d:{default:d}}function e(d){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(h){return typeof h}:e=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},e(d)}function N(d,c){return c&&(e(c)==="object"||typeof c=="function")?c:w(d)}function w(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function $(d){return $=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},$(d)}function U(d,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(c&&c.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),c&&m(d,c)}function m(d,c){return m=Object.setPrototypeOf||function(f,g){return f.__proto__=g,f},m(d,c)}function n(d,c,h,f,g,v,s){try{var o=d[v](s),u=o.value}catch(l){h(l);return}o.done?c(u):Promise.resolve(u).then(f,g)}function J(d){return function(){var c=this,h=arguments;return new Promise(function(f,g){var v=d.apply(c,h);function s(u){n(v,f,g,s,o,"next",u)}function o(u){n(v,f,g,s,o,"throw",u)}s(void 0)})}}function O(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function L(d,c){for(var h=0;h<c.length;h++){var f=c[h];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(d,f.key,f)}}function M(d,c,h){return c&&L(d.prototype,c),d}var P=function(){function d(c){var h=c.docId,f=c.onUnsupportedFeature;O(this,d),this.constructor===d&&(0,i.unreachable)("Cannot initialize BaseFontLoader."),this.docId=h,this._onUnsupportedFeature=f,this.nativeFontFaces=[],this.styleElement=null}return M(d,[{key:"addNativeFontFace",value:function(h){this.nativeFontFaces.push(h),document.fonts.add(h)}},{key:"insertRule",value:function(h){var f=this.styleElement;f||(f=this.styleElement=document.createElement("style"),f.id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),document.documentElement.getElementsByTagName("head")[0].appendChild(f));var g=f.sheet;g.insertRule(h,g.cssRules.length)}},{key:"clear",value:function(){this.nativeFontFaces.forEach(function(h){document.fonts.delete(h)}),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:function(){var c=J(r.default.mark(function f(g){var v=this,s,o;return r.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!(g.attached||g.missingFile)){l.next=2;break}return l.abrupt("return");case 2:if(g.attached=!0,!this.isFontLoadingAPISupported){l.next=19;break}if(s=g.createNativeFontFace(),!s){l.next=18;break}return this.addNativeFontFace(s),l.prev=7,l.next=10,s.loaded;case 10:l.next=18;break;case 12:throw l.prev=12,l.t0=l.catch(7),this._onUnsupportedFeature({featureId:i.UNSUPPORTED_FEATURES.font}),(0,i.warn)("Failed to load font '".concat(s.family,"': '").concat(l.t0,"'.")),g.disableFontFace=!0,l.t0;case 18:return l.abrupt("return");case 19:if(o=g.createFontFaceRule(),!o){l.next=26;break}if(this.insertRule(o),!this.isSyncFontLoadingSupported){l.next=24;break}return l.abrupt("return");case 24:return l.next=26,new Promise(function(F){var T=v._queueLoadingCallback(F);v._prepareFontLoadEvent([o],[g],T)});case 26:case"end":return l.stop()}},f,this,[[7,12]])}));function h(f){return c.apply(this,arguments)}return h}()},{key:"_queueLoadingCallback",value:function(h){(0,i.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"_prepareFontLoadEvent",value:function(h,f,g){(0,i.unreachable)("Abstract method `_prepareFontLoadEvent`.")}},{key:"isFontLoadingAPISupported",get:function(){var h=typeof document<"u"&&!!document.fonts;return(0,i.shadow)(this,"isFontLoadingAPISupported",h)}},{key:"isSyncFontLoadingSupported",get:function(){(0,i.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,i.unreachable)("Abstract method `_loadTestFont`.")}}]),d}(),b;t.FontLoader=b,t.FontLoader=b=function(d){U(c,d);function c(h){var f;return O(this,c),f=N(this,$(c).call(this,h)),f.loadingContext={requests:[],nextRequestId:0},f.loadTestFontId=0,f}return M(c,[{key:"_queueLoadingCallback",value:function(f){function g(){for((0,i.assert)(!s.done,"completeRequest() cannot be called twice."),s.done=!0;v.requests.length>0&&v.requests[0].done;){var o=v.requests.shift();setTimeout(o.callback,0)}}var v=this.loadingContext,s={id:"pdfjs-font-loading-".concat(v.nextRequestId++),done:!1,complete:g,callback:f};return v.requests.push(s),s}},{key:"_prepareFontLoadEvent",value:function(f,g,v){function s(G,q){return G.charCodeAt(q)<<24|G.charCodeAt(q+1)<<16|G.charCodeAt(q+2)<<8|G.charCodeAt(q+3)&255}function o(G,q,z,j){var Y=G.substring(0,q),K=G.substring(q+z);return Y+j+K}var u,l,F=document.createElement("canvas");F.width=1,F.height=1;var T=F.getContext("2d"),D=0;function k(G,q){if(D++,D>30){(0,i.warn)("Load test font never loaded."),q();return}T.font="30px "+G,T.fillText(".",0,20);var z=T.getImageData(0,0,1,1);if(z.data[3]>0){q();return}setTimeout(k.bind(null,G,q))}var S="lt".concat(Date.now()).concat(this.loadTestFontId++),R=this._loadTestFont,E=976;R=o(R,E,S.length,S);var A=16,C=1482184792,y=s(R,A);for(u=0,l=S.length-3;u<l;u+=4)y=y-C+s(S,u)|0;u<S.length&&(y=y-C+s(S+"XXX",u)|0),R=o(R,A,4,(0,i.string32)(y));var I="url(data:font/opentype;base64,".concat(btoa(R),");"),H='@font-face {font-family:"'.concat(S,'";src:').concat(I,"}");this.insertRule(H);var V=[];for(u=0,l=g.length;u<l;u++)V.push(g[u].loadedName);V.push(S);var B=document.createElement("div");for(B.style.visibility="hidden",B.style.width=B.style.height="10px",B.style.position="absolute",B.style.top=B.style.left="0px",u=0,l=V.length;u<l;++u){var W=document.createElement("span");W.textContent="Hi",W.style.fontFamily=V[u],B.appendChild(W)}document.body.appendChild(B),k(S,function(){document.body.removeChild(B),v.complete()})}},{key:"isSyncFontLoadingSupported",get:function(){var f=!1;if(typeof navigator>"u")f=!0;else{var g=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);g&&g[1]>=14&&(f=!0)}return(0,i.shadow)(this,"isSyncFontLoadingSupported",f)}},{key:"_loadTestFont",get:function(){var f=function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};return(0,i.shadow)(this,"_loadTestFont",f())}}]),c}(P);var _=function(){function d(c,h){var f=h.isEvalSupported,g=f===void 0?!0:f,v=h.disableFontFace,s=v===void 0?!1:v,o=h.ignoreErrors,u=o===void 0?!1:o,l=h.onUnsupportedFeature,F=l===void 0?null:l,T=h.fontRegistry,D=T===void 0?null:T;O(this,d),this.compiledGlyphs=Object.create(null);for(var k in c)this[k]=c[k];this.isEvalSupported=g!==!1,this.disableFontFace=s===!0,this.ignoreErrors=u===!0,this._onUnsupportedFeature=F,this.fontRegistry=D}return M(d,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var h=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),h}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var h=(0,i.bytesToString)(new Uint8Array(this.data)),f="url(data:".concat(this.mimetype,";base64,").concat(btoa(h),");"),g='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(f,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,f),g}},{key:"getPathGenerator",value:function(h,f){if(this.compiledGlyphs[f]!==void 0)return this.compiledGlyphs[f];var g,v;try{g=h.get(this.loadedName+"_path_"+f)}catch(F){if(!this.ignoreErrors)throw F;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:i.UNSUPPORTED_FEATURES.font}),(0,i.warn)('getPathGenerator - ignoring character: "'.concat(F,'".')),this.compiledGlyphs[f]=function(T,D){}}if(this.isEvalSupported&&i.IsEvalSupportedCached.value){for(var s,o="",u=0,l=g.length;u<l;u++)v=g[u],v.args!==void 0?s=v.args.join(","):s="",o+="c."+v.cmd+"("+s+`);
|
|
8
|
+
`;return this.compiledGlyphs[f]=new Function("c","size",o)}return this.compiledGlyphs[f]=function(F,T){for(var D=0,k=g.length;D<k;D++)v=g[D],v.cmd==="scale"&&(v.args=[T,-T]),F[v.cmd].apply(F,v.args)}}}]),d}();t.FontFaceObject=_},function(x,t,a){var r=Object.create(null);{var i=a(48),p=i.isNodeJS,e=typeof navigator<"u"&&navigator.userAgent||"",N=/Trident/.test(e),w=/CriOS/.test(e);(function(){(N||w)&&(r.disableCreateObjectURL=!0)})(),function(){p&&(r.disableFontFace=!0,r.nativeImageDecoderSupport="none")}()}t.apiCompatibilityParams=Object.freeze(r)},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var r=a(1),i=a(198),p=16,e=100,N=4096,w=.65,$=1e3,U=16;function m(M){M.mozCurrentTransform||(M._originalSave=M.save,M._originalRestore=M.restore,M._originalRotate=M.rotate,M._originalScale=M.scale,M._originalTranslate=M.translate,M._originalTransform=M.transform,M._originalSetTransform=M.setTransform,M._transformMatrix=M._transformMatrix||[1,0,0,1,0,0],M._transformStack=[],Object.defineProperty(M,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(M,"mozCurrentTransformInverse",{get:function(){var b=this._transformMatrix,_=b[0],d=b[1],c=b[2],h=b[3],f=b[4],g=b[5],v=_*h-d*c,s=d*c-_*h;return[h/v,d/s,c/s,_/v,(h*f-c*g)/s,(d*f-_*g)/v]}}),M.save=function(){var b=this._transformMatrix;this._transformStack.push(b),this._transformMatrix=b.slice(0,6),this._originalSave()},M.restore=function(){var b=this._transformStack.pop();b&&(this._transformMatrix=b,this._originalRestore())},M.translate=function(b,_){var d=this._transformMatrix;d[4]=d[0]*b+d[2]*_+d[4],d[5]=d[1]*b+d[3]*_+d[5],this._originalTranslate(b,_)},M.scale=function(b,_){var d=this._transformMatrix;d[0]=d[0]*b,d[1]=d[1]*b,d[2]=d[2]*_,d[3]=d[3]*_,this._originalScale(b,_)},M.transform=function(b,_,d,c,h,f){var g=this._transformMatrix;this._transformMatrix=[g[0]*b+g[2]*_,g[1]*b+g[3]*_,g[0]*d+g[2]*c,g[1]*d+g[3]*c,g[0]*h+g[2]*f+g[4],g[1]*h+g[3]*f+g[5]],M._originalTransform(b,_,d,c,h,f)},M.setTransform=function(b,_,d,c,h,f){this._transformMatrix=[b,_,d,c,h,f],M._originalSetTransform(b,_,d,c,h,f)},M.rotate=function(b){var _=Math.cos(b),d=Math.sin(b),c=this._transformMatrix;this._transformMatrix=[c[0]*_+c[2]*d,c[1]*_+c[3]*d,c[0]*-d+c[2]*_,c[1]*-d+c[3]*_,c[4],c[5]],this._originalRotate(b)})}var n=function(){function P(b){this.canvasFactory=b,this.cache=Object.create(null)}return P.prototype={getCanvas:function(_,d,c,h){var f;return this.cache[_]!==void 0?(f=this.cache[_],this.canvasFactory.reset(f,d,c),f.context.setTransform(1,0,0,1,0,0)):(f=this.canvasFactory.create(d,c),this.cache[_]=f),h&&m(f.context),f},clear:function(){for(var _ in this.cache){var d=this.cache[_];this.canvasFactory.destroy(d),delete this.cache[_]}}},P}();function J(M){var P=1e3,b=M.width,_=M.height,d,c,h,f=b+1,g=new Uint8Array(f*(_+1)),v=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),s=b+7&-8,o=M.data,u=new Uint8Array(s*_),l=0,F;for(d=0,F=o.length;d<F;d++)for(var T=128,D=o[d];T>0;)u[l++]=D&T?0:255,T>>=1;var k=0;for(l=0,u[l]!==0&&(g[0]=1,++k),c=1;c<b;c++)u[l]!==u[l+1]&&(g[c]=u[l]?2:1,++k),l++;for(u[l]!==0&&(g[c]=2,++k),d=1;d<_;d++){l=d*s,h=d*f,u[l-s]!==u[l]&&(g[h]=u[l]?1:8,++k);var S=(u[l]?4:0)+(u[l-s]?8:0);for(c=1;c<b;c++)S=(S>>2)+(u[l+1]?4:0)+(u[l-s+1]?8:0),v[S]&&(g[h+c]=v[S],++k),l++;if(u[l-s]!==u[l]&&(g[h+c]=u[l]?2:4,++k),k>P)return null}for(l=s*(_-1),h=d*f,u[l]!==0&&(g[h]=8,++k),c=1;c<b;c++)u[l]!==u[l+1]&&(g[h+c]=u[l]?4:8,++k),l++;if(u[l]!==0&&(g[h+c]=4,++k),k>P)return null;var R=new Int32Array([0,f,-1,0,-f,0,0,0,1]),E=[];for(d=0;k&&d<=_;d++){for(var A=d*f,C=A+b;A<C&&!g[A];)A++;if(A!==C){var y=[A%f,d],I=g[A],H=A,V;do{var B=R[I];do A+=B;while(!g[A]);V=g[A],V!==5&&V!==10?(I=V,g[A]=0):(I=V&51*I>>4,g[A]&=I>>2|I<<2),y.push(A%f),y.push(A/f|0),g[A]||--k}while(H!==A);E.push(y),--d}}var W=function(q){q.save(),q.scale(1/b,-1/_),q.translate(0,-_),q.beginPath();for(var z=0,j=E.length;z<j;z++){var Y=E[z];q.moveTo(Y[0],Y[1]);for(var K=2,Z=Y.length;K<Z;K+=2)q.lineTo(Y[K],Y[K+1])}q.fill(),q.beginPath(),q.restore()};return W}var O=function(){function P(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=r.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=r.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=r.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.resumeSMaskCtx=null}return P.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(_,d){this.x=_,this.y=d}},P}(),L=function(){var P=15,b=10;function _(S,R,E,A,C,y){this.ctx=S,this.current=new O,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=R,this.objs=E,this.canvasFactory=A,this.webGLContext=C,this.imageLayer=y,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new n(this.canvasFactory),S&&m(S),this._cachedGetSinglePixelWidth=null}function d(S,R){if(typeof ImageData<"u"&&R instanceof ImageData){S.putImageData(R,0,0);return}var E=R.height,A=R.width,C=E%U,y=(E-C)/U,I=C===0?y:y+1,H=S.createImageData(A,U),V=0,B,W=R.data,G=H.data,q,z,j,Y;if(R.kind===r.ImageKind.GRAYSCALE_1BPP){var K=W.byteLength,Z=new Uint32Array(G.buffer,0,G.byteLength>>2),ee=Z.length,ne=A+7>>3,ae=4294967295,te=r.IsLittleEndianCached.value?4278190080:255;for(q=0;q<I;q++){for(j=q<y?U:C,B=0,z=0;z<j;z++){for(var re=K-V,ie=0,de=re>ne?A:re*8-7,oe=de&-8,le=0,me=0;ie<oe;ie+=8)me=W[V++],Z[B++]=me&128?ae:te,Z[B++]=me&64?ae:te,Z[B++]=me&32?ae:te,Z[B++]=me&16?ae:te,Z[B++]=me&8?ae:te,Z[B++]=me&4?ae:te,Z[B++]=me&2?ae:te,Z[B++]=me&1?ae:te;for(;ie<de;ie++)le===0&&(me=W[V++],le=128),Z[B++]=me&le?ae:te,le>>=1}for(;B<ee;)Z[B++]=0;S.putImageData(H,0,q*U)}}else if(R.kind===r.ImageKind.RGBA_32BPP){for(z=0,Y=A*U*4,q=0;q<y;q++)G.set(W.subarray(V,V+Y)),V+=Y,S.putImageData(H,0,z),z+=U;q<I&&(Y=A*C*4,G.set(W.subarray(V,V+Y)),S.putImageData(H,0,z))}else if(R.kind===r.ImageKind.RGB_24BPP)for(j=U,Y=A*j,q=0;q<I;q++){for(q>=y&&(j=C,Y=A*j),B=0,z=Y;z--;)G[B++]=W[V++],G[B++]=W[V++],G[B++]=W[V++],G[B++]=255;S.putImageData(H,0,q*U)}else throw new Error("bad image kind: ".concat(R.kind))}function c(S,R){for(var E=R.height,A=R.width,C=E%U,y=(E-C)/U,I=C===0?y:y+1,H=S.createImageData(A,U),V=0,B=R.data,W=H.data,G=0;G<I;G++){for(var q=G<y?U:C,z=3,j=0;j<q;j++)for(var Y=0,K=0;K<A;K++){if(!Y){var Z=B[V++];Y=128}W[z]=Z&Y?0:255,z+=4,Y>>=1}S.putImageData(H,0,G*U)}}function h(S,R){for(var E=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],A=0,C=E.length;A<C;A++){var y=E[A];S[y]!==void 0&&(R[y]=S[y])}S.setLineDash!==void 0&&(R.setLineDash(S.getLineDash()),R.lineDashOffset=S.lineDashOffset)}function f(S){S.strokeStyle="#000000",S.fillStyle="#000000",S.fillRule="nonzero",S.globalAlpha=1,S.lineWidth=1,S.lineCap="butt",S.lineJoin="miter",S.miterLimit=10,S.globalCompositeOperation="source-over",S.font="10px sans-serif",S.setLineDash!==void 0&&(S.setLineDash([]),S.lineDashOffset=0)}function g(S,R,E,A){for(var C=S.length,y=3;y<C;y+=4){var I=S[y];if(I===0)S[y-3]=R,S[y-2]=E,S[y-1]=A;else if(I<255){var H=255-I;S[y-3]=S[y-3]*I+R*H>>8,S[y-2]=S[y-2]*I+E*H>>8,S[y-1]=S[y-1]*I+A*H>>8}}}function v(S,R,E){for(var A=S.length,C=1/255,y=3;y<A;y+=4){var I=E?E[S[y]]:S[y];R[y]=R[y]*I*C|0}}function s(S,R,E){for(var A=S.length,C=3;C<A;C+=4){var y=S[C-3]*77+S[C-2]*152+S[C-1]*28;R[C]=E?R[C]*E[y>>8]>>8:R[C]*y>>16}}function o(S,R,E,A,C,y,I){var H=!!y,V=H?y[0]:0,B=H?y[1]:0,W=H?y[2]:0,G;C==="Luminosity"?G=s:G=v;for(var q=1048576,z=Math.min(A,Math.ceil(q/E)),j=0;j<A;j+=z){var Y=Math.min(z,A-j),K=S.getImageData(0,j,E,Y),Z=R.getImageData(0,j,E,Y);H&&g(K.data,V,B,W),G(K.data,Z.data,I),S.putImageData(Z,0,j)}}function u(S,R,E,A){var C=R.canvas,y=R.context;S.setTransform(R.scaleX,0,0,R.scaleY,R.offsetX,R.offsetY);var I=R.backdrop||null;if(!R.transferMap&&A.isEnabled){var H=A.composeSMask({layer:E.canvas,mask:C,properties:{subtype:R.subtype,backdrop:I}});S.setTransform(1,0,0,1,0,0),S.drawImage(H,R.offsetX,R.offsetY);return}o(y,E,C.width,C.height,R.subtype,I,R.transferMap),S.drawImage(C,0,0)}var l=["butt","round","square"],F=["miter","round","bevel"],T={},D={};_.prototype={beginDrawing:function(R){var E=R.transform,A=R.viewport,C=R.transparency,y=C===void 0?!1:C,I=R.background,H=I===void 0?null:I,V=this.ctx.canvas.width,B=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=H||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,V,B),this.ctx.restore(),y){var W=this.cachedCanvases.getCanvas("transparent",V,B,!0);this.compositeCtx=this.ctx,this.transparentCanvas=W.canvas,this.ctx=W.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),f(this.ctx),E&&this.ctx.transform.apply(this.ctx,E),this.ctx.transform.apply(this.ctx,A.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(R,E,A,C){var y=R.argsArray,I=R.fnArray,H=E||0,V=y.length;if(V===H)return H;for(var B=V-H>b&&typeof A=="function",W=B?Date.now()+P:0,G=0,q=this.commonObjs,z=this.objs,j;;){if(C!==void 0&&H===C.nextBreakPoint)return C.breakIt(H,A),H;if(j=I[H],j!==r.OPS.dependency)this[j].apply(this,y[H]);else{var Y=!0,K=!1,Z=void 0;try{for(var ee=y[H][Symbol.iterator](),ne;!(Y=(ne=ee.next()).done);Y=!0){var ae=ne.value,te=ae.startsWith("g_")?q:z;if(!te.has(ae))return te.get(ae,A),H}}catch(re){K=!0,Z=re}finally{try{!Y&&ee.return!=null&&ee.return()}finally{if(K)throw Z}}}if(H++,H===V)return H;if(B&&++G>b){if(Date.now()>W)return A(),H;G=0}}},endDrawing:function(){this.current.activeSMask!==null&&this.endSMaskGroup(),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),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(R){this.current.lineWidth=R,this.ctx.lineWidth=R},setLineCap:function(R){this.ctx.lineCap=l[R]},setLineJoin:function(R){this.ctx.lineJoin=F[R]},setMiterLimit:function(R){this.ctx.miterLimit=R},setDash:function(R,E){var A=this.ctx;A.setLineDash!==void 0&&(A.setLineDash(R),A.lineDashOffset=E)},setRenderingIntent:function(R){},setFlatness:function(R){},setGState:function(R){for(var E=0,A=R.length;E<A;E++){var C=R[E],y=C[0],I=C[1];switch(y){case"LW":this.setLineWidth(I);break;case"LC":this.setLineCap(I);break;case"LJ":this.setLineJoin(I);break;case"ML":this.setMiterLimit(I);break;case"D":this.setDash(I[0],I[1]);break;case"RI":this.setRenderingIntent(I);break;case"FL":this.setFlatness(I);break;case"Font":this.setFont(I[0],I[1]);break;case"CA":this.current.strokeAlpha=C[1];break;case"ca":this.current.fillAlpha=C[1],this.ctx.globalAlpha=C[1];break;case"BM":this.ctx.globalCompositeOperation=I;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=I?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null;break}}},beginSMaskGroup:function(){var R=this.current.activeSMask,E=R.canvas.width,A=R.canvas.height,C="smaskGroupAt"+this.groupLevel,y=this.cachedCanvases.getCanvas(C,E,A,!0),I=this.ctx,H=I.mozCurrentTransform;this.ctx.save();var V=y.context;V.scale(1/R.scaleX,1/R.scaleY),V.translate(-R.offsetX,-R.offsetY),V.transform.apply(V,H),R.startTransformInverse=V.mozCurrentTransformInverse,h(I,V),this.ctx=V,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(I),this.groupLevel++},suspendSMaskGroup:function(){var R=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),u(this.ctx,this.current.activeSMask,R,this.webGLContext),this.ctx.restore(),this.ctx.save(),h(R,this.ctx),this.current.resumeSMaskCtx=R;var E=r.Util.transform(this.current.activeSMask.startTransformInverse,R.mozCurrentTransform);this.ctx.transform.apply(this.ctx,E),R.save(),R.setTransform(1,0,0,1,0,0),R.clearRect(0,0,R.canvas.width,R.canvas.height),R.restore()},resumeSMaskGroup:function(){var R=this.current.resumeSMaskCtx,E=this.ctx;this.ctx=R,this.groupStack.push(E),this.groupLevel++},endSMaskGroup:function(){var R=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),u(this.ctx,this.current.activeSMask,R,this.webGLContext),this.ctx.restore(),h(R,this.ctx);var E=r.Util.transform(this.current.activeSMask.startTransformInverse,R.mozCurrentTransform);this.ctx.transform.apply(this.ctx,E)},save:function(){this.ctx.save();var R=this.current;this.stateStack.push(R),this.current=R.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),this.current.activeSMask!==null&&(this.stateStack.length===0||this.stateStack[this.stateStack.length-1].activeSMask!==this.current.activeSMask)&&this.endSMaskGroup(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(R,E,A,C,y,I){this.ctx.transform(R,E,A,C,y,I),this._cachedGetSinglePixelWidth=null},constructPath:function(R,E){for(var A=this.ctx,C=this.current,y=C.x,I=C.y,H=0,V=0,B=R.length;H<B;H++)switch(R[H]|0){case r.OPS.rectangle:y=E[V++],I=E[V++];var W=E[V++],G=E[V++];W===0&&(W=this.getSinglePixelWidth()),G===0&&(G=this.getSinglePixelWidth());var q=y+W,z=I+G;this.ctx.moveTo(y,I),this.ctx.lineTo(q,I),this.ctx.lineTo(q,z),this.ctx.lineTo(y,z),this.ctx.lineTo(y,I),this.ctx.closePath();break;case r.OPS.moveTo:y=E[V++],I=E[V++],A.moveTo(y,I);break;case r.OPS.lineTo:y=E[V++],I=E[V++],A.lineTo(y,I);break;case r.OPS.curveTo:y=E[V+4],I=E[V+5],A.bezierCurveTo(E[V],E[V+1],E[V+2],E[V+3],y,I),V+=6;break;case r.OPS.curveTo2:A.bezierCurveTo(y,I,E[V],E[V+1],E[V+2],E[V+3]),y=E[V+2],I=E[V+3],V+=4;break;case r.OPS.curveTo3:y=E[V+2],I=E[V+3],A.bezierCurveTo(E[V],E[V+1],y,I,y,I),V+=4;break;case r.OPS.closePath:A.closePath();break}C.setCurrentPoint(y,I)},closePath:function(){this.ctx.closePath()},stroke:function(R){R=typeof R<"u"?R:!0;var E=this.ctx,A=this.current.strokeColor;if(E.globalAlpha=this.current.strokeAlpha,A&&A.hasOwnProperty("type")&&A.type==="Pattern"){E.save();var C=E.mozCurrentTransform,y=r.Util.singularValueDecompose2dScale(C)[0];E.strokeStyle=A.getPattern(E,this),E.lineWidth=Math.max(this.getSinglePixelWidth()*w,this.current.lineWidth*y),E.stroke(),E.restore()}else E.lineWidth=Math.max(this.getSinglePixelWidth()*w,this.current.lineWidth),E.stroke();R&&this.consumePath(),E.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(R){R=typeof R<"u"?R:!0;var E=this.ctx,A=this.current.fillColor,C=this.current.patternFill,y=!1;C&&(E.save(),this.baseTransform&&E.setTransform.apply(E,this.baseTransform),E.fillStyle=A.getPattern(E,this),y=!0),this.pendingEOFill?(E.fill("evenodd"),this.pendingEOFill=!1):E.fill(),y&&E.restore(),R&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=T},eoClip:function(){this.pendingClip=D},beginText:function(){this.current.textMatrix=r.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var R=this.pendingTextPaths,E=this.ctx;if(R===void 0){E.beginPath();return}E.save(),E.beginPath();for(var A=0;A<R.length;A++){var C=R[A];E.setTransform.apply(E,C.transform),E.translate(C.x,C.y),C.addToPath(E,C.fontSize)}E.restore(),E.clip(),E.beginPath(),delete this.pendingTextPaths},setCharSpacing:function(R){this.current.charSpacing=R},setWordSpacing:function(R){this.current.wordSpacing=R},setHScale:function(R){this.current.textHScale=R/100},setLeading:function(R){this.current.leading=-R},setFont:function(R,E){var A=this.commonObjs.get(R),C=this.current;if(!A)throw new Error("Can't find font for ".concat(R));if(C.fontMatrix=A.fontMatrix?A.fontMatrix:r.FONT_IDENTITY_MATRIX,(C.fontMatrix[0]===0||C.fontMatrix[3]===0)&&(0,r.warn)("Invalid font matrix for font "+R),E<0?(E=-E,C.fontDirection=-1):C.fontDirection=1,this.current.font=A,this.current.fontSize=E,!A.isType3Font){var y=A.loadedName||"sans-serif",I="normal";A.black?I="900":A.bold&&(I="bold");var H=A.italic?"italic":"normal",V='"'.concat(y,'", ').concat(A.fallbackName),B=E;E<p?B=p:E>e&&(B=e),this.current.fontSizeScale=E/B,this.ctx.font="".concat(H," ").concat(I," ").concat(B,"px ").concat(V)}},setTextRenderingMode:function(R){this.current.textRenderingMode=R},setTextRise:function(R){this.current.textRise=R},moveText:function(R,E){this.current.x=this.current.lineX+=R,this.current.y=this.current.lineY+=E},setLeadingMoveText:function(R,E){this.setLeading(-E),this.moveText(R,E)},setTextMatrix:function(R,E,A,C,y,I){this.current.textMatrix=[R,E,A,C,y,I],this.current.textMatrixScale=Math.sqrt(R*R+E*E),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(R,E,A,C){var y=this.ctx,I=this.current,H=I.font,V=I.textRenderingMode,B=I.fontSize/I.fontSizeScale,W=V&r.TextRenderingMode.FILL_STROKE_MASK,G=!!(V&r.TextRenderingMode.ADD_TO_PATH_FLAG),q=I.patternFill&&H.data,z;if((H.disableFontFace||G||q)&&(z=H.getPathGenerator(this.commonObjs,R)),H.disableFontFace||q?(y.save(),y.translate(E,A),y.beginPath(),z(y,B),C&&y.setTransform.apply(y,C),(W===r.TextRenderingMode.FILL||W===r.TextRenderingMode.FILL_STROKE)&&y.fill(),(W===r.TextRenderingMode.STROKE||W===r.TextRenderingMode.FILL_STROKE)&&y.stroke(),y.restore()):((W===r.TextRenderingMode.FILL||W===r.TextRenderingMode.FILL_STROKE)&&y.fillText(R,E,A),(W===r.TextRenderingMode.STROKE||W===r.TextRenderingMode.FILL_STROKE)&&y.strokeText(R,E,A)),G){var j=this.pendingTextPaths||(this.pendingTextPaths=[]);j.push({transform:y.mozCurrentTransform,x:E,y:A,fontSize:B,addToPath:z})}},get isFontSubpixelAAEnabled(){var S=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10),R=S.context;R.scale(1.5,1),R.fillText("I",0,10);for(var E=R.getImageData(0,0,10,10).data,A=!1,C=3;C<E.length;C+=4)if(E[C]>0&&E[C]<255){A=!0;break}return(0,r.shadow)(this,"isFontSubpixelAAEnabled",A)},showText:function(R){var E=this.current,A=E.font;if(A.isType3Font)return this.showType3Text(R);var C=E.fontSize;if(C!==0){var y=this.ctx,I=E.fontSizeScale,H=E.charSpacing,V=E.wordSpacing,B=E.fontDirection,W=E.textHScale*B,G=R.length,q=A.vertical,z=q?1:-1,j=A.defaultVMetrics,Y=C*E.fontMatrix[0],K=E.textRenderingMode===r.TextRenderingMode.FILL&&!A.disableFontFace&&!E.patternFill;y.save();var Z;if(E.patternFill){y.save();var ee=E.fillColor.getPattern(y,this);Z=y.mozCurrentTransform,y.restore(),y.fillStyle=ee}y.transform.apply(y,E.textMatrix),y.translate(E.x,E.y+E.textRise),B>0?y.scale(W,-1):y.scale(W,1);var ne=E.lineWidth,ae=E.textMatrixScale;if(ae===0||ne===0){var te=E.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;(te===r.TextRenderingMode.STROKE||te===r.TextRenderingMode.FILL_STROKE)&&(this._cachedGetSinglePixelWidth=null,ne=this.getSinglePixelWidth()*w)}else ne/=ae;I!==1&&(y.scale(I,I),ne/=I),y.lineWidth=ne;var re=0,ie;for(ie=0;ie<G;++ie){var de=R[ie];if((0,r.isNum)(de)){re+=z*de*C/1e3;continue}var oe=!1,le=(de.isSpace?V:0)+H,me=de.fontChar,Pe=de.accent,Ce,xe,be,Se,_e=de.width;if(q){var ge,ue,se;ge=de.vmetric||j,ue=de.vmetric?ge[1]:_e*.5,ue=-ue*Y,se=ge[2]*Y,_e=ge?-ge[0]:_e,Ce=ue/I,xe=(re+se)/I}else Ce=re/I,xe=0;if(A.remeasure&&_e>0){var pe=y.measureText(me).width*1e3/C*I;if(_e<pe&&this.isFontSubpixelAAEnabled){var we=_e/pe;oe=!0,y.save(),y.scale(we,1),Ce/=we}else _e!==pe&&(Ce+=(_e-pe)/2e3*C/I)}(de.isInFont||A.missingFile)&&(K&&!Pe?y.fillText(me,Ce,xe):(this.paintChar(me,Ce,xe,Z),Pe&&(be=Ce+Pe.offset.x/I,Se=xe-Pe.offset.y/I,this.paintChar(Pe.fontChar,be,Se,Z))));var Te;q?Te=_e*Y-le*B:Te=_e*Y+le*B,re+=Te,oe&&y.restore()}q?E.y-=re:E.x+=re*W,y.restore()}},showType3Text:function(R){var E=this.ctx,A=this.current,C=A.font,y=A.fontSize,I=A.fontDirection,H=C.vertical?1:-1,V=A.charSpacing,B=A.wordSpacing,W=A.textHScale*I,G=A.fontMatrix||r.FONT_IDENTITY_MATRIX,q=R.length,z=A.textRenderingMode===r.TextRenderingMode.INVISIBLE,j,Y,K,Z;if(!(z||y===0)){for(this._cachedGetSinglePixelWidth=null,E.save(),E.transform.apply(E,A.textMatrix),E.translate(A.x,A.y),E.scale(W,I),j=0;j<q;++j){if(Y=R[j],(0,r.isNum)(Y)){Z=H*Y*y/1e3,this.ctx.translate(Z,0),A.x+=Z*W;continue}var ee=(Y.isSpace?B:0)+V,ne=C.charProcOperatorList[Y.operatorListId];if(!ne){(0,r.warn)('Type3 character "'.concat(Y.operatorListId,'" is not available.'));continue}this.processingType3=Y,this.save(),E.scale(y,y),E.transform.apply(E,G),this.executeOperatorList(ne),this.restore();var ae=r.Util.applyTransform([Y.width,0],G);K=ae[0]*y+ee,E.translate(K,0),A.x+=K*W}E.restore(),this.processingType3=null}},setCharWidth:function(R,E){},setCharWidthAndBounds:function(R,E,A,C,y,I){this.ctx.rect(A,C,y-A,I-C),this.clip(),this.endPath()},getColorN_Pattern:function(R){var E=this,A;if(R[0]==="TilingPattern"){var C=R[1],y=this.baseTransform||this.ctx.mozCurrentTransform.slice(),I={createCanvasGraphics:function(V){return new _(V,E.commonObjs,E.objs,E.canvasFactory,E.webGLContext)}};A=new i.TilingPattern(R,C,this.ctx,I,y)}else A=(0,i.getShadingPatternFromIR)(R);return A},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(R,E,A){var C=r.Util.makeCssRgb(R,E,A);this.ctx.strokeStyle=C,this.current.strokeColor=C},setFillRGBColor:function(R,E,A){var C=r.Util.makeCssRgb(R,E,A);this.ctx.fillStyle=C,this.current.fillColor=C,this.current.patternFill=!1},shadingFill:function(R){var E=this.ctx;this.save();var A=(0,i.getShadingPatternFromIR)(R);E.fillStyle=A.getPattern(E,this,!0);var C=E.mozCurrentTransformInverse;if(C){var y=E.canvas,I=y.width,H=y.height,V=r.Util.applyTransform([0,0],C),B=r.Util.applyTransform([0,H],C),W=r.Util.applyTransform([I,0],C),G=r.Util.applyTransform([I,H],C),q=Math.min(V[0],B[0],W[0],G[0]),z=Math.min(V[1],B[1],W[1],G[1]),j=Math.max(V[0],B[0],W[0],G[0]),Y=Math.max(V[1],B[1],W[1],G[1]);this.ctx.fillRect(q,z,j-q,Y-z)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,r.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,r.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(R,E){if(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(R)&&R.length===6&&this.transform.apply(this,R),this.baseTransform=this.ctx.mozCurrentTransform,E){var A=E[2]-E[0],C=E[3]-E[1];this.ctx.rect(E[0],E[1],A,C),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(R){this.save();var E=this.ctx;R.isolated||(0,r.info)("TODO: Support non-isolated groups."),R.knockout&&(0,r.warn)("Knockout groups not supported.");var A=E.mozCurrentTransform;if(R.matrix&&E.transform.apply(E,R.matrix),!R.bbox)throw new Error("Bounding box is required.");var C=r.Util.getAxialAlignedBoundingBox(R.bbox,E.mozCurrentTransform),y=[0,0,E.canvas.width,E.canvas.height];C=r.Util.intersect(C,y)||[0,0,0,0];var I=Math.floor(C[0]),H=Math.floor(C[1]),V=Math.max(Math.ceil(C[2])-I,1),B=Math.max(Math.ceil(C[3])-H,1),W=1,G=1;V>N&&(W=V/N,V=N),B>N&&(G=B/N,B=N);var q="groupAt"+this.groupLevel;R.smask&&(q+="_smask_"+this.smaskCounter++%2);var z=this.cachedCanvases.getCanvas(q,V,B,!0),j=z.context;j.scale(1/W,1/G),j.translate(-I,-H),j.transform.apply(j,A),R.smask?this.smaskStack.push({canvas:z.canvas,context:j,offsetX:I,offsetY:H,scaleX:W,scaleY:G,subtype:R.smask.subtype,backdrop:R.smask.backdrop,transferMap:R.smask.transferMap||null,startTransformInverse:null}):(E.setTransform(1,0,0,1,0,0),E.translate(I,H),E.scale(W,G)),h(E,j),this.ctx=j,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(E),this.groupLevel++,this.current.activeSMask=null},endGroup:function(R){this.groupLevel--;var E=this.ctx;this.ctx=this.groupStack.pop(),this.ctx.imageSmoothingEnabled!==void 0?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,R.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(E.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(R,E,A){if(this.save(),f(this.ctx),this.current=new O,Array.isArray(R)&&R.length===4){var C=R[2]-R[0],y=R[3]-R[1];this.ctx.rect(R[0],R[1],C,y),this.clip(),this.endPath()}this.transform.apply(this,E),this.transform.apply(this,A)},endAnnotation:function(){this.restore()},paintJpegXObject:function(R,E,A){var C=this.processingType3?this.commonObjs.get(R):this.objs.get(R);if(!C){(0,r.warn)("Dependent image isn't ready yet");return}this.save();var y=this.ctx;if(y.scale(1/E,-1/A),y.drawImage(C,0,0,C.width,C.height,0,-A,E,A),this.imageLayer){var I=y.mozCurrentTransformInverse,H=this.getCanvasPosition(0,0);this.imageLayer.appendImage({objId:R,left:H[0],top:H[1],width:E/I[0],height:A/I[3]})}this.restore()},paintImageMaskXObject:function(R){var E=this.ctx,A=R.width,C=R.height,y=this.current.fillColor,I=this.current.patternFill,H=this.processingType3;if(H&&H.compiled===void 0&&(A<=$&&C<=$?H.compiled=J({data:R.data,width:A,height:C}):H.compiled=null),H&&H.compiled){H.compiled(E);return}var V=this.cachedCanvases.getCanvas("maskCanvas",A,C),B=V.context;B.save(),c(B,R),B.globalCompositeOperation="source-in",B.fillStyle=I?y.getPattern(B,this):y,B.fillRect(0,0,A,C),B.restore(),this.paintInlineImageXObject(V.canvas)},paintImageMaskXObjectRepeat:function(R,E,A,C){var y=R.width,I=R.height,H=this.current.fillColor,V=this.current.patternFill,B=this.cachedCanvases.getCanvas("maskCanvas",y,I),W=B.context;W.save(),c(W,R),W.globalCompositeOperation="source-in",W.fillStyle=V?H.getPattern(W,this):H,W.fillRect(0,0,y,I),W.restore();for(var G=this.ctx,q=0,z=C.length;q<z;q+=2)G.save(),G.transform(E,0,0,A,C[q],C[q+1]),G.scale(1,-1),G.drawImage(B.canvas,0,0,y,I,0,-1,1,1),G.restore()},paintImageMaskXObjectGroup:function(R){for(var E=this.ctx,A=this.current.fillColor,C=this.current.patternFill,y=0,I=R.length;y<I;y++){var H=R[y],V=H.width,B=H.height,W=this.cachedCanvases.getCanvas("maskCanvas",V,B),G=W.context;G.save(),c(G,H),G.globalCompositeOperation="source-in",G.fillStyle=C?A.getPattern(G,this):A,G.fillRect(0,0,V,B),G.restore(),E.save(),E.transform.apply(E,H.transform),E.scale(1,-1),E.drawImage(W.canvas,0,0,V,B,0,-1,1,1),E.restore()}},paintImageXObject:function(R){var E=this.processingType3?this.commonObjs.get(R):this.objs.get(R);if(!E){(0,r.warn)("Dependent image isn't ready yet");return}this.paintInlineImageXObject(E)},paintImageXObjectRepeat:function(R,E,A,C){var y=this.processingType3?this.commonObjs.get(R):this.objs.get(R);if(!y){(0,r.warn)("Dependent image isn't ready yet");return}for(var I=y.width,H=y.height,V=[],B=0,W=C.length;B<W;B+=2)V.push({transform:[E,0,0,A,C[B],C[B+1]],x:0,y:0,w:I,h:H});this.paintInlineImageXObjectGroup(y,V)},paintInlineImageXObject:function(R){var E=R.width,A=R.height,C=this.ctx;this.save(),C.scale(1/E,-1/A);var y=C.mozCurrentTransformInverse,I=y[0],H=y[1],V=Math.max(Math.sqrt(I*I+H*H),1),B=y[2],W=y[3],G=Math.max(Math.sqrt(B*B+W*W),1),q,z;if(typeof HTMLElement=="function"&&R instanceof HTMLElement||!R.data)q=R;else{z=this.cachedCanvases.getCanvas("inlineImage",E,A);var j=z.context;d(j,R),q=z.canvas}for(var Y=E,K=A,Z="prescale1";V>2&&Y>1||G>2&&K>1;){var ee=Y,ne=K;V>2&&Y>1&&(ee=Math.ceil(Y/2),V/=Y/ee),G>2&&K>1&&(ne=Math.ceil(K/2),G/=K/ne),z=this.cachedCanvases.getCanvas(Z,ee,ne),j=z.context,j.clearRect(0,0,ee,ne),j.drawImage(q,0,0,Y,K,0,0,ee,ne),q=z.canvas,Y=ee,K=ne,Z=Z==="prescale1"?"prescale2":"prescale1"}if(C.drawImage(q,0,0,Y,K,0,-A,E,A),this.imageLayer){var ae=this.getCanvasPosition(0,-A);this.imageLayer.appendImage({imgData:R,left:ae[0],top:ae[1],width:E/y[0],height:A/y[3]})}this.restore()},paintInlineImageXObjectGroup:function(R,E){var A=this.ctx,C=R.width,y=R.height,I=this.cachedCanvases.getCanvas("inlineImage",C,y),H=I.context;d(H,R);for(var V=0,B=E.length;V<B;V++){var W=E[V];if(A.save(),A.transform.apply(A,W.transform),A.scale(1,-1),A.drawImage(I.canvas,W.x,W.y,W.w,W.h,0,-1,1,1),this.imageLayer){var G=this.getCanvasPosition(W.x,W.y);this.imageLayer.appendImage({imgData:R,left:G[0],top:G[1],width:C,height:y})}A.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,r.warn)("Unsupported 'paintXObject' command.")},markPoint:function(R){},markPointProps:function(R,E){},beginMarkedContent:function(R){},beginMarkedContentProps:function(R,E){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var R=this.ctx;this.pendingClip&&(this.pendingClip===D?R.clip("evenodd"):R.clip(),this.pendingClip=null),R.beginPath()},getSinglePixelWidth:function(R){if(this._cachedGetSinglePixelWidth===null){var E=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(E[0]*E[0]+E[1]*E[1],E[2]*E[2]+E[3]*E[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(R,E){var A=this.ctx.mozCurrentTransform;return[A[0]*R+A[2]*E+A[4],A[1]*R+A[3]*E+A[5]]}};for(var k in r.OPS)_.prototype[r.OPS[k]]=_.prototype[k];return _}();t.CanvasGraphics=L},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.getShadingPatternFromIR=N,t.TilingPattern=void 0;var r=a(1),i={};function p($,U){if(!(!U||typeof Path2D>"u")){var m=U[2]-U[0],n=U[3]-U[1],J=new Path2D;J.rect(U[0],U[1],m,n),$.clip(J)}}i.RadialAxial={fromIR:function(U){var m=U[1],n=U[2],J=U[3],O=U[4],L=U[5],M=U[6],P=U[7];return{type:"Pattern",getPattern:function(_){p(_,n);var d;m==="axial"?d=_.createLinearGradient(O[0],O[1],L[0],L[1]):m==="radial"&&(d=_.createRadialGradient(O[0],O[1],M,L[0],L[1],P));for(var c=0,h=J.length;c<h;++c){var f=J[c];d.addColorStop(f[0],f[1])}return d}}}};var e=function(){function U(J,O,L,M,P,b,_,d){var c=O.coords,h=O.colors,f=J.data,g=J.width*4,v;c[L+1]>c[M+1]&&(v=L,L=M,M=v,v=b,b=_,_=v),c[M+1]>c[P+1]&&(v=M,M=P,P=v,v=_,_=d,d=v),c[L+1]>c[M+1]&&(v=L,L=M,M=v,v=b,b=_,_=v);var s=(c[L]+O.offsetX)*O.scaleX,o=(c[L+1]+O.offsetY)*O.scaleY,u=(c[M]+O.offsetX)*O.scaleX,l=(c[M+1]+O.offsetY)*O.scaleY,F=(c[P]+O.offsetX)*O.scaleX,T=(c[P+1]+O.offsetY)*O.scaleY;if(!(o>=T))for(var D=h[b],k=h[b+1],S=h[b+2],R=h[_],E=h[_+1],A=h[_+2],C=h[d],y=h[d+1],I=h[d+2],H=Math.round(o),V=Math.round(T),B,W,G,q,z,j,Y,K,Z=H;Z<=V;Z++){if(Z<l){var ee=void 0;Z<o?ee=0:o===l?ee=1:ee=(o-Z)/(o-l),B=s-(s-u)*ee,W=D-(D-R)*ee,G=k-(k-E)*ee,q=S-(S-A)*ee}else{var ne=void 0;Z>T?ne=1:l===T?ne=0:ne=(l-Z)/(l-T),B=u-(u-F)*ne,W=R-(R-C)*ne,G=E-(E-y)*ne,q=A-(A-I)*ne}var ae=void 0;Z<o?ae=0:Z>T?ae=1:ae=(o-Z)/(o-T),z=s-(s-F)*ae,j=D-(D-C)*ae,Y=k-(k-y)*ae,K=S-(S-I)*ae;for(var te=Math.round(Math.min(B,z)),re=Math.round(Math.max(B,z)),ie=g*Z+te*4,de=te;de<=re;de++){var oe=(B-de)/(B-z);oe<0?oe=0:oe>1&&(oe=1),f[ie++]=W-(W-j)*oe|0,f[ie++]=G-(G-Y)*oe|0,f[ie++]=q-(q-K)*oe|0,f[ie++]=255}}}function m(J,O,L){var M=O.coords,P=O.colors,b,_;switch(O.type){case"lattice":var d=O.verticesPerRow,c=Math.floor(M.length/d)-1,h=d-1;for(b=0;b<c;b++)for(var f=b*d,g=0;g<h;g++,f++)U(J,L,M[f],M[f+1],M[f+d],P[f],P[f+1],P[f+d]),U(J,L,M[f+d+1],M[f+1],M[f+d],P[f+d+1],P[f+1],P[f+d]);break;case"triangles":for(b=0,_=M.length;b<_;b+=3)U(J,L,M[b],M[b+1],M[b+2],P[b],P[b+1],P[b+2]);break;default:throw new Error("illegal figure")}}function n(J,O,L,M,P,b,_,d){var c=1.1,h=3e3,f=2,g=Math.floor(J[0]),v=Math.floor(J[1]),s=Math.ceil(J[2])-g,o=Math.ceil(J[3])-v,u=Math.min(Math.ceil(Math.abs(s*O[0]*c)),h),l=Math.min(Math.ceil(Math.abs(o*O[1]*c)),h),F=s/u,T=o/l,D={coords:L,colors:M,offsetX:-g,offsetY:-v,scaleX:1/F,scaleY:1/T},k=u+f*2,S=l+f*2,R,E,A,C;if(d.isEnabled)R=d.drawFigures({width:u,height:l,backgroundColor:b,figures:P,context:D}),E=_.getCanvas("mesh",k,S,!1),E.context.drawImage(R,f,f),R=E.canvas;else{E=_.getCanvas("mesh",k,S,!1);var y=E.context,I=y.createImageData(u,l);if(b){var H=I.data;for(A=0,C=H.length;A<C;A+=4)H[A]=b[0],H[A+1]=b[1],H[A+2]=b[2],H[A+3]=255}for(A=0;A<P.length;A++)m(I,P[A],D);y.putImageData(I,f,f),R=E.canvas}return{canvas:R,offsetX:g-f*F,offsetY:v-f*T,scaleX:F,scaleY:T}}return n}();i.Mesh={fromIR:function(U){var m=U[2],n=U[3],J=U[4],O=U[5],L=U[6],M=U[7],P=U[8];return{type:"Pattern",getPattern:function(_,d,c){p(_,M);var h;if(c)h=r.Util.singularValueDecompose2dScale(_.mozCurrentTransform);else if(h=r.Util.singularValueDecompose2dScale(d.baseTransform),L){var f=r.Util.singularValueDecompose2dScale(L);h=[h[0]*f[0],h[1]*f[1]]}var g=e(O,h,m,n,J,c?null:P,d.cachedCanvases,d.webGLContext);return c||(_.setTransform.apply(_,d.baseTransform),L&&_.transform.apply(_,L)),_.translate(g.offsetX,g.offsetY),_.scale(g.scaleX,g.scaleY),_.createPattern(g.canvas,"no-repeat")}}}},i.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};function N($){var U=i[$[0]];if(!U)throw new Error("Unknown IR type: ".concat($[0]));return U.fromIR($)}var w=function(){var U={COLORED:1,UNCOLORED:2},m=3e3;function n(J,O,L,M,P){this.operatorList=J[2],this.matrix=J[3]||[1,0,0,1,0,0],this.bbox=J[4],this.xstep=J[5],this.ystep=J[6],this.paintType=J[7],this.tilingType=J[8],this.color=O,this.canvasGraphicsFactory=M,this.baseTransform=P,this.type="Pattern",this.ctx=L}return n.prototype={createPatternCanvas:function(O){var L=this.operatorList,M=this.bbox,P=this.xstep,b=this.ystep,_=this.paintType,d=this.tilingType,c=this.color,h=this.canvasGraphicsFactory;(0,r.info)("TilingType: "+d);var f=M[0],g=M[1],v=M[2],s=M[3],o=r.Util.singularValueDecompose2dScale(this.matrix),u=r.Util.singularValueDecompose2dScale(this.baseTransform),l=[o[0]*u[0],o[1]*u[1]],F=this.getSizeAndScale(P,this.ctx.canvas.width,l[0]),T=this.getSizeAndScale(b,this.ctx.canvas.height,l[1]),D=O.cachedCanvases.getCanvas("pattern",F.size,T.size,!0),k=D.context,S=h.createCanvasGraphics(k);return S.groupLevel=O.groupLevel,this.setFillAndStrokeStyleToContext(S,_,c),S.transform(F.scale,0,0,T.scale,0,0),S.transform(1,0,0,1,-f,-g),this.clipBbox(S,M,f,g,v,s),S.executeOperatorList(L),this.ctx.transform(1,0,0,1,f,g),this.ctx.scale(1/F.scale,1/T.scale),D.canvas},getSizeAndScale:function(O,L,M){O=Math.abs(O);var P=Math.max(m,L),b=Math.ceil(O*M);return b>=P?b=P:M=b/O,{scale:M,size:b}},clipBbox:function(O,L,M,P,b,_){if(Array.isArray(L)&&L.length===4){var d=b-M,c=_-P;O.ctx.rect(M,P,d,c),O.clip(),O.endPath()}},setFillAndStrokeStyleToContext:function(O,L,M){var P=O.ctx,b=O.current;switch(L){case U.COLORED:var _=this.ctx;P.fillStyle=_.fillStyle,P.strokeStyle=_.strokeStyle,b.fillColor=_.fillStyle,b.strokeColor=_.strokeStyle;break;case U.UNCOLORED:var d=r.Util.makeCssRgb(M[0],M[1],M[2]);P.fillStyle=d,P.strokeStyle=d,b.fillColor=d,b.strokeColor=d;break;default:throw new r.FormatError("Unsupported paint type: ".concat(L))}},getPattern:function(O,L){O=this.ctx,O.setTransform.apply(O,this.baseTransform),O.transform.apply(O,this.matrix);var M=this.createPatternCanvas(L);return O.createPattern(M,"repeat")}},n}();t.TilingPattern=w},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;var r=Object.create(null);t.GlobalWorkerOptions=r,r.workerPort=r.workerPort===void 0?null:r.workerPort,r.workerSrc=r.workerSrc===void 0?"":r.workerSrc},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=p(a(191)),i=a(1);function p(M){return M&&M.__esModule?M:{default:M}}function e(M,P,b,_,d,c,h){try{var f=M[c](h),g=f.value}catch(v){b(v);return}f.done?P(g):Promise.resolve(g).then(_,d)}function N(M){return function(){var P=this,b=arguments;return new Promise(function(_,d){var c=M.apply(P,b);function h(g){e(c,_,d,h,f,"next",g)}function f(g){e(c,_,d,h,f,"throw",g)}h(void 0)})}}function w(M,P){if(!(M instanceof P))throw new TypeError("Cannot call a class as a function")}function $(M,P){for(var b=0;b<P.length;b++){var _=P[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(M,_.key,_)}}function U(M,P,b){return P&&$(M.prototype,P),M}function m(M){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(b){return typeof b}:m=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},m(M)}var n={DATA:1,ERROR:2},J={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function O(M){if(m(M)!=="object"||M===null)return M;switch(M.name){case"AbortException":return new i.AbortException(M.message);case"MissingPDFException":return new i.MissingPDFException(M.message);case"UnexpectedResponseException":return new i.UnexpectedResponseException(M.message,M.status);case"UnknownErrorException":return new i.UnknownErrorException(M.message,M.details);default:return new i.UnknownErrorException(M.message,M.toString())}}var L=function(){function M(P,b,_){var d=this;w(this,M),this.sourceName=P,this.targetName=b,this.comObj=_,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(c){var h=c.data;if(h.targetName===d.sourceName){if(h.stream){d._processStreamMessage(h);return}if(h.callback){var f=h.callbackId,g=d.callbackCapabilities[f];if(!g)throw new Error("Cannot resolve callback ".concat(f));if(delete d.callbackCapabilities[f],h.callback===n.DATA)g.resolve(h.data);else if(h.callback===n.ERROR)g.reject(O(h.reason));else throw new Error("Unexpected callback case");return}var v=d.actionHandler[h.action];if(!v)throw new Error("Unknown action from worker: ".concat(h.action));if(h.callbackId){var s=d.sourceName,o=h.sourceName;new Promise(function(u){u(v(h.data))}).then(function(u){_.postMessage({sourceName:s,targetName:o,callback:n.DATA,callbackId:h.callbackId,data:u})},function(u){_.postMessage({sourceName:s,targetName:o,callback:n.ERROR,callbackId:h.callbackId,reason:O(u)})});return}if(h.streamId){d._createStreamSink(h);return}v(h.data)}},_.addEventListener("message",this._onComObjOnMessage)}return U(M,[{key:"on",value:function(b,_){var d=this.actionHandler;if(d[b])throw new Error('There is already an actionName called "'.concat(b,'"'));d[b]=_}},{key:"send",value:function(b,_,d){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:b,data:_},d)}},{key:"sendWithPromise",value:function(b,_,d){var c=this.callbackId++,h=(0,i.createPromiseCapability)();this.callbackCapabilities[c]=h;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:b,callbackId:c,data:_},d)}catch(f){h.reject(f)}return h.promise}},{key:"sendWithStream",value:function(b,_,d,c){var h=this,f=this.streamId++,g=this.sourceName,v=this.targetName,s=this.comObj;return new ReadableStream({start:function(u){var l=(0,i.createPromiseCapability)();return h.streamControllers[f]={controller:u,startCall:l,pullCall:null,cancelCall:null,isClosed:!1},h._postMessage({sourceName:g,targetName:v,action:b,streamId:f,data:_,desiredSize:u.desiredSize},c),l.promise},pull:function(u){var l=(0,i.createPromiseCapability)();return h.streamControllers[f].pullCall=l,s.postMessage({sourceName:g,targetName:v,stream:J.PULL,streamId:f,desiredSize:u.desiredSize}),l.promise},cancel:function(u){(0,i.assert)(u instanceof Error,"cancel must have a valid reason");var l=(0,i.createPromiseCapability)();return h.streamControllers[f].cancelCall=l,h.streamControllers[f].isClosed=!0,s.postMessage({sourceName:g,targetName:v,stream:J.CANCEL,streamId:f,reason:O(u)}),l.promise}},d)}},{key:"_createStreamSink",value:function(b){var _=this,d=this.actionHandler[b.action],c=b.streamId,h=this.sourceName,f=b.sourceName,g=this.comObj,v={enqueue:function(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,l=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var F=this.desiredSize;this.desiredSize-=u,F>0&&this.desiredSize<=0&&(this.sinkCapability=(0,i.createPromiseCapability)(),this.ready=this.sinkCapability.promise),_._postMessage({sourceName:h,targetName:f,stream:J.ENQUEUE,streamId:c,chunk:o},l)}},close:function(){this.isCancelled||(this.isCancelled=!0,g.postMessage({sourceName:h,targetName:f,stream:J.CLOSE,streamId:c}),delete _.streamSinks[c])},error:function(o){(0,i.assert)(o instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,g.postMessage({sourceName:h,targetName:f,stream:J.ERROR,streamId:c,reason:O(o)}))},sinkCapability:(0,i.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:b.desiredSize,ready:null};v.sinkCapability.resolve(),v.ready=v.sinkCapability.promise,this.streamSinks[c]=v,new Promise(function(s){s(d(b.data,v))}).then(function(){g.postMessage({sourceName:h,targetName:f,stream:J.START_COMPLETE,streamId:c,success:!0})},function(s){g.postMessage({sourceName:h,targetName:f,stream:J.START_COMPLETE,streamId:c,reason:O(s)})})}},{key:"_processStreamMessage",value:function(b){var _=b.streamId,d=this.sourceName,c=b.sourceName,h=this.comObj;switch(b.stream){case J.START_COMPLETE:b.success?this.streamControllers[_].startCall.resolve():this.streamControllers[_].startCall.reject(O(b.reason));break;case J.PULL_COMPLETE:b.success?this.streamControllers[_].pullCall.resolve():this.streamControllers[_].pullCall.reject(O(b.reason));break;case J.PULL:if(!this.streamSinks[_]){h.postMessage({sourceName:d,targetName:c,stream:J.PULL_COMPLETE,streamId:_,success:!0});break}this.streamSinks[_].desiredSize<=0&&b.desiredSize>0&&this.streamSinks[_].sinkCapability.resolve(),this.streamSinks[_].desiredSize=b.desiredSize;var f=this.streamSinks[b.streamId].onPull;new Promise(function(v){v(f&&f())}).then(function(){h.postMessage({sourceName:d,targetName:c,stream:J.PULL_COMPLETE,streamId:_,success:!0})},function(v){h.postMessage({sourceName:d,targetName:c,stream:J.PULL_COMPLETE,streamId:_,reason:O(v)})});break;case J.ENQUEUE:if((0,i.assert)(this.streamControllers[_],"enqueue should have stream controller"),this.streamControllers[_].isClosed)break;this.streamControllers[_].controller.enqueue(b.chunk);break;case J.CLOSE:if((0,i.assert)(this.streamControllers[_],"close should have stream controller"),this.streamControllers[_].isClosed)break;this.streamControllers[_].isClosed=!0,this.streamControllers[_].controller.close(),this._deleteStreamController(_);break;case J.ERROR:(0,i.assert)(this.streamControllers[_],"error should have stream controller"),this.streamControllers[_].controller.error(O(b.reason)),this._deleteStreamController(_);break;case J.CANCEL_COMPLETE:b.success?this.streamControllers[_].cancelCall.resolve():this.streamControllers[_].cancelCall.reject(O(b.reason)),this._deleteStreamController(_);break;case J.CANCEL:if(!this.streamSinks[_])break;var g=this.streamSinks[b.streamId].onCancel;new Promise(function(v){v(g&&g(O(b.reason)))}).then(function(){h.postMessage({sourceName:d,targetName:c,stream:J.CANCEL_COMPLETE,streamId:_,success:!0})},function(v){h.postMessage({sourceName:d,targetName:c,stream:J.CANCEL_COMPLETE,streamId:_,reason:O(v)})}),this.streamSinks[_].sinkCapability.reject(O(b.reason)),this.streamSinks[_].isCancelled=!0,delete this.streamSinks[_];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){var P=N(r.default.mark(function _(d){return r.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Promise.allSettled([this.streamControllers[d].startCall,this.streamControllers[d].pullCall,this.streamControllers[d].cancelCall].map(function(f){return f&&f.promise}));case 2:delete this.streamControllers[d];case 3:case"end":return h.stop()}},_,this)}));function b(_){return P.apply(this,arguments)}return b}()},{key:"_postMessage",value:function(b,_){_&&this.postMessageTransfers?this.comObj.postMessage(b,_):this.comObj.postMessage(b)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),M}();t.MessageHandler=L},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=a(1),i=a(202);function p(J,O){return w(J)||N(J,O)||e()}function e(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function N(J,O){if(Symbol.iterator in Object(J)||Object.prototype.toString.call(J)==="[object Arguments]"){var L=[],M=!0,P=!1,b=void 0;try{for(var _=J[Symbol.iterator](),d;!(M=(d=_.next()).done)&&(L.push(d.value),!(O&&L.length===O));M=!0);}catch(c){P=!0,b=c}finally{try{!M&&_.return!=null&&_.return()}finally{if(P)throw b}}return L}}function w(J){if(Array.isArray(J))return J}function $(J,O){if(!(J instanceof O))throw new TypeError("Cannot call a class as a function")}function U(J,O){for(var L=0;L<O.length;L++){var M=O[L];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(J,M.key,M)}}function m(J,O,L){return O&&U(J.prototype,O),J}var n=function(){function J(O){$(this,J),(0,r.assert)(typeof O=="string","Metadata: input is not a string"),O=this._repair(O);var L=new i.SimpleXMLParser,M=L.parseFromString(O);this._metadataMap=new Map,M&&this._parse(M)}return m(J,[{key:"_repair",value:function(L){return L.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(M,P){for(var b=P.replace(/\\([0-3])([0-7])([0-7])/g,function(f,g,v,s){return String.fromCharCode(g*64+v*8+s*1)}).replace(/&(amp|apos|gt|lt|quot);/g,function(f,g){switch(g){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(g," isn't defined."))}),_="",d=0,c=b.length;d<c;d+=2){var h=b.charCodeAt(d)*256+b.charCodeAt(d+1);h>=32&&h<127&&h!==60&&h!==62&&h!==38?_+=String.fromCharCode(h):_+="&#x"+(65536+h).toString(16).substring(1)+";"}return">"+_})}},{key:"_parse",value:function(L){var M=L.documentElement;if(M.nodeName.toLowerCase()!=="rdf:rdf")for(M=M.firstChild;M&&M.nodeName.toLowerCase()!=="rdf:rdf";)M=M.nextSibling;var P=M?M.nodeName.toLowerCase():null;if(!(!M||P!=="rdf:rdf"||!M.hasChildNodes()))for(var b=M.childNodes,_=0,d=b.length;_<d;_++){var c=b[_];if(c.nodeName.toLowerCase()==="rdf:description"){for(var h=0,f=c.childNodes.length;h<f;h++)if(c.childNodes[h].nodeName.toLowerCase()!=="#text"){var g=c.childNodes[h],v=g.nodeName.toLowerCase();this._metadataMap.set(v,g.textContent.trim())}}}}},{key:"get",value:function(L){return this._metadataMap.has(L)?this._metadataMap.get(L):null}},{key:"getAll",value:function(){var L=Object.create(null),M=!0,P=!1,b=void 0;try{for(var _=this._metadataMap[Symbol.iterator](),d;!(M=(d=_.next()).done);M=!0){var c=p(d.value,2),h=c[0],f=c[1];L[h]=f}}catch(g){P=!0,b=g}finally{try{!M&&_.return!=null&&_.return()}finally{if(P)throw b}}return L}},{key:"has",value:function(L){return this._metadataMap.has(L)}}]),J}();t.Metadata=n},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleXMLParser=void 0;function r(g){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(s){return typeof s}:r=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},r(g)}function i(g,v){return N(g)||e(g,v)||p()}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function e(g,v){if(Symbol.iterator in Object(g)||Object.prototype.toString.call(g)==="[object Arguments]"){var s=[],o=!0,u=!1,l=void 0;try{for(var F=g[Symbol.iterator](),T;!(o=(T=F.next()).done)&&(s.push(T.value),!(v&&s.length===v));o=!0);}catch(D){u=!0,l=D}finally{try{!o&&F.return!=null&&F.return()}finally{if(u)throw l}}return s}}function N(g){if(Array.isArray(g))return g}function w(g,v){return v&&(r(v)==="object"||typeof v=="function")?v:$(g)}function $(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function U(g,v,s){return typeof Reflect<"u"&&Reflect.get?U=Reflect.get:U=function(u,l,F){var T=m(u,l);if(T){var D=Object.getOwnPropertyDescriptor(T,l);return D.get?D.get.call(F):D.value}},U(g,v,s||g)}function m(g,v){for(;!Object.prototype.hasOwnProperty.call(g,v)&&(g=n(g),g!==null););return g}function n(g){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},n(g)}function J(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),v&&O(g,v)}function O(g,v){return O=Object.setPrototypeOf||function(o,u){return o.__proto__=u,o},O(g,v)}function L(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function M(g,v){for(var s=0;s<v.length;s++){var o=v[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(g,o.key,o)}}function P(g,v,s){return v&&M(g.prototype,v),g}var b={NoError:0,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,UnterminatedElement:-9};function _(g,v){var s=g[v];return s===" "||s===`
|
|
9
|
+
`||s==="\r"||s===" "}function d(g){for(var v=0,s=g.length;v<s;v++)if(!_(g,v))return!1;return!0}var c=function(){function g(){L(this,g)}return P(g,[{key:"_resolveEntities",value:function(s){var o=this;return s.replace(/&([^;]+);/g,function(u,l){if(l.substring(0,2)==="#x")return String.fromCharCode(parseInt(l.substring(2),16));if(l.substring(0,1)==="#")return String.fromCharCode(parseInt(l.substring(1),10));switch(l){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return o.onResolveEntity(l)})}},{key:"_parseContent",value:function(s,o){var u=[],l=o;function F(){for(;l<s.length&&_(s,l);)++l}for(;l<s.length&&!_(s,l)&&s[l]!==">"&&s[l]!=="/";)++l;var T=s.substring(o,l);for(F();l<s.length&&s[l]!==">"&&s[l]!=="/"&&s[l]!=="?";){F();for(var D="",k="";l<s.length&&!_(s,l)&&s[l]!=="=";)D+=s[l],++l;if(F(),s[l]!=="=")return null;++l,F();var S=s[l];if(S!=='"'&&S!=="'")return null;var R=s.indexOf(S,++l);if(R<0)return null;k=s.substring(l,R),u.push({name:D,value:this._resolveEntities(k)}),l=R+1,F()}return{name:T,attributes:u,parsed:l-o}}},{key:"_parseProcessingInstruction",value:function(s,o){var u=o;function l(){for(;u<s.length&&_(s,u);)++u}for(;u<s.length&&!_(s,u)&&s[u]!==">"&&s[u]!=="/";)++u;var F=s.substring(o,u);l();for(var T=u;u<s.length&&(s[u]!=="?"||s[u+1]!==">");)++u;var D=s.substring(T,u);return{name:F,value:D,parsed:u-o}}},{key:"parseXml",value:function(s){for(var o=0;o<s.length;){var u=s[o],l=o;if(u==="<"){++l;var F=s[l],T=void 0;switch(F){case"/":if(++l,T=s.indexOf(">",l),T<0){this.onError(b.UnterminatedElement);return}this.onEndElement(s.substring(l,T)),l=T+1;break;case"?":++l;var D=this._parseProcessingInstruction(s,l);if(s.substring(l+D.parsed,l+D.parsed+2)!=="?>"){this.onError(b.UnterminatedXmlDeclaration);return}this.onPi(D.name,D.value),l+=D.parsed+2;break;case"!":if(s.substring(l+1,l+3)==="--"){if(T=s.indexOf("-->",l+3),T<0){this.onError(b.UnterminatedComment);return}this.onComment(s.substring(l+3,T)),l=T+3}else if(s.substring(l+1,l+8)==="[CDATA["){if(T=s.indexOf("]]>",l+8),T<0){this.onError(b.UnterminatedCdat);return}this.onCdata(s.substring(l+8,T)),l=T+3}else if(s.substring(l+1,l+8)==="DOCTYPE"){var k=s.indexOf("[",l+8),S=!1;if(T=s.indexOf(">",l+8),T<0){this.onError(b.UnterminatedDoctypeDeclaration);return}if(k>0&&T>k){if(T=s.indexOf("]>",l+8),T<0){this.onError(b.UnterminatedDoctypeDeclaration);return}S=!0}var R=s.substring(l+8,T+(S?1:0));this.onDoctype(R),l=T+(S?2:1)}else{this.onError(b.MalformedElement);return}break;default:var E=this._parseContent(s,l);if(E===null){this.onError(b.MalformedElement);return}var A=!1;if(s.substring(l+E.parsed,l+E.parsed+2)==="/>")A=!0;else if(s.substring(l+E.parsed,l+E.parsed+1)!==">"){this.onError(b.UnterminatedElement);return}this.onBeginElement(E.name,E.attributes,A),l+=E.parsed+(A?2:1);break}}else{for(;l<s.length&&s[l]!=="<";)l++;var C=s.substring(o,l);this.onText(this._resolveEntities(C))}o=l}}},{key:"onResolveEntity",value:function(s){return"&".concat(s,";")}},{key:"onPi",value:function(s,o){}},{key:"onComment",value:function(s){}},{key:"onCdata",value:function(s){}},{key:"onDoctype",value:function(s){}},{key:"onText",value:function(s){}},{key:"onBeginElement",value:function(s,o,u){}},{key:"onEndElement",value:function(s){}},{key:"onError",value:function(s){}}]),g}(),h=function(){function g(v,s){L(this,g),this.nodeName=v,this.nodeValue=s,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}return P(g,[{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}},{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var s=this.parentNode.childNodes;if(s){var o=s.indexOf(this);if(o!==-1)return s[o+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map(function(s){return s.textContent}).join(""):this.nodeValue||""}}]),g}(),f=function(g){J(v,g);function v(){var s;return L(this,v),s=w(this,n(v).call(this)),s._currentFragment=null,s._stack=null,s._errorCode=b.NoError,s}return P(v,[{key:"parseFromString",value:function(o){if(this._currentFragment=[],this._stack=[],this._errorCode=b.NoError,this.parseXml(o),this._errorCode===b.NoError){var u=i(this._currentFragment,1),l=u[0];if(l)return{documentElement:l}}}},{key:"onResolveEntity",value:function(o){switch(o){case"apos":return"'"}return U(n(v.prototype),"onResolveEntity",this).call(this,o)}},{key:"onText",value:function(o){if(!d(o)){var u=new h("#text",o);this._currentFragment.push(u)}}},{key:"onCdata",value:function(o){var u=new h("#text",o);this._currentFragment.push(u)}},{key:"onBeginElement",value:function(o,u,l){var F=new h(o);F.childNodes=[],this._currentFragment.push(F),!l&&(this._stack.push(this._currentFragment),this._currentFragment=F.childNodes)}},{key:"onEndElement",value:function(o){this._currentFragment=this._stack.pop()||[];var u=this._currentFragment[this._currentFragment.length-1];if(u)for(var l=0,F=u.childNodes.length;l<F;l++)u.childNodes[l].parentNode=u}},{key:"onError",value:function(o){this._errorCode=o}}]),v}(c);t.SimpleXMLParser=f},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var r=p(a(191)),i=a(1);function p(O){return O&&O.__esModule?O:{default:O}}function e(O,L,M,P,b,_,d){try{var c=O[_](d),h=c.value}catch(f){M(f);return}c.done?L(h):Promise.resolve(h).then(P,b)}function N(O){return function(){var L=this,M=arguments;return new Promise(function(P,b){var _=O.apply(L,M);function d(h){e(_,P,b,d,c,"next",h)}function c(h){e(_,P,b,d,c,"throw",h)}d(void 0)})}}function w(O,L){if(!(O instanceof L))throw new TypeError("Cannot call a class as a function")}function $(O,L){for(var M=0;M<L.length;M++){var P=L[M];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(O,P.key,P)}}function U(O,L,M){return L&&$(O.prototype,L),O}var m=function(){function O(L,M){var P=this;w(this,O),(0,i.assert)(M),this._queuedChunks=[],this._progressiveDone=L.progressiveDone||!1;var b=L.initialData;if(b&&b.length>0){var _=new Uint8Array(b).buffer;this._queuedChunks.push(_)}this._pdfDataRangeTransport=M,this._isStreamingSupported=!L.disableStream,this._isRangeSupported=!L.disableRange,this._contentLength=L.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(function(d,c){P._onReceiveData({begin:d,chunk:c})}),this._pdfDataRangeTransport.addProgressListener(function(d,c){P._onProgress({loaded:d,total:c})}),this._pdfDataRangeTransport.addProgressiveReadListener(function(d){P._onReceiveData({chunk:d})}),this._pdfDataRangeTransport.addProgressiveDoneListener(function(){P._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}return U(O,[{key:"_onReceiveData",value:function(M){var P=new Uint8Array(M.chunk).buffer;if(M.begin===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(P):this._queuedChunks.push(P);else{var b=this._rangeReaders.some(function(_){return _._begin!==M.begin?!1:(_._enqueue(P),!0)});(0,i.assert)(b)}}},{key:"_onProgress",value:function(M){if(M.total===void 0){var P=this._rangeReaders[0];P&&P.onProgress&&P.onProgress({loaded:M.loaded})}else{var b=this._fullRequestReader;b&&b.onProgress&&b.onProgress({loaded:M.loaded,total:M.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(M){var P=this._rangeReaders.indexOf(M);P>=0&&this._rangeReaders.splice(P,1)}},{key:"getFullReader",value:function(){(0,i.assert)(!this._fullRequestReader);var M=this._queuedChunks;return this._queuedChunks=null,new n(this,M,this._progressiveDone)}},{key:"getRangeReader",value:function(M,P){if(P<=this._progressiveDataLength)return null;var b=new J(this,M,P);return this._pdfDataRangeTransport.requestDataRange(M,P),this._rangeReaders.push(b),b}},{key:"cancelAllRequests",value:function(M){this._fullRequestReader&&this._fullRequestReader.cancel(M);var P=this._rangeReaders.slice(0);P.forEach(function(b){b.cancel(M)}),this._pdfDataRangeTransport.abort()}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),O}();t.PDFDataTransportStream=m;var n=function(){function O(L,M){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;w(this,O),this._stream=L,this._done=P||!1,this._filename=null,this._queuedChunks=M||[],this._loaded=0;var b=!0,_=!1,d=void 0;try{for(var c=this._queuedChunks[Symbol.iterator](),h;!(b=(h=c.next()).done);b=!0){var f=h.value;this._loaded+=f.byteLength}}catch(g){_=!0,d=g}finally{try{!b&&c.return!=null&&c.return()}finally{if(_)throw d}}this._requests=[],this._headersReady=Promise.resolve(),L._fullRequestReader=this,this.onProgress=null}return U(O,[{key:"_enqueue",value:function(M){if(!this._done){if(this._requests.length>0){var P=this._requests.shift();P.resolve({value:M,done:!1})}else this._queuedChunks.push(M);this._loaded+=M.byteLength}}},{key:"read",value:function(){var L=N(r.default.mark(function P(){var b,_;return r.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(!(this._queuedChunks.length>0)){c.next=3;break}return b=this._queuedChunks.shift(),c.abrupt("return",{value:b,done:!1});case 3:if(!this._done){c.next=5;break}return c.abrupt("return",{value:void 0,done:!0});case 5:return _=(0,i.createPromiseCapability)(),this._requests.push(_),c.abrupt("return",_.promise);case 8:case"end":return c.stop()}},P,this)}));function M(){return L.apply(this,arguments)}return M}()},{key:"cancel",value:function(M){this._done=!0,this._requests.forEach(function(P){P.resolve({value:void 0,done:!0})}),this._requests=[]}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}}]),O}(),J=function(){function O(L,M,P){w(this,O),this._stream=L,this._begin=M,this._end=P,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return U(O,[{key:"_enqueue",value:function(M){if(!this._done){if(this._requests.length===0)this._queuedChunk=M;else{var P=this._requests.shift();P.resolve({value:M,done:!1}),this._requests.forEach(function(b){b.resolve({value:void 0,done:!0})}),this._requests=[]}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"read",value:function(){var L=N(r.default.mark(function P(){var b,_;return r.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(!this._queuedChunk){c.next=4;break}return b=this._queuedChunk,this._queuedChunk=null,c.abrupt("return",{value:b,done:!1});case 4:if(!this._done){c.next=6;break}return c.abrupt("return",{value:void 0,done:!0});case 6:return _=(0,i.createPromiseCapability)(),this._requests.push(_),c.abrupt("return",_.promise);case 9:case"end":return c.stop()}},P,this)}));function M(){return L.apply(this,arguments)}return M}()},{key:"cancel",value:function(M){this._done=!0,this._requests.forEach(function(P){P.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}},{key:"isStreamingSupported",get:function(){return!1}}]),O}()},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLContext=void 0;var r=a(1);function i($,U){if(!($ instanceof U))throw new TypeError("Cannot call a class as a function")}function p($,U){for(var m=0;m<U.length;m++){var n=U[m];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty($,n.key,n)}}function e($,U,m){return U&&p($.prototype,U),$}var N=function(){function $(U){var m=U.enable,n=m===void 0?!1:m;i(this,$),this._enabled=n===!0}return e($,[{key:"composeSMask",value:function(m){var n=m.layer,J=m.mask,O=m.properties;return w.composeSMask(n,J,O)}},{key:"drawFigures",value:function(m){var n=m.width,J=m.height,O=m.backgroundColor,L=m.figures,M=m.context;return w.drawFigures(n,J,O,L,M)}},{key:"clear",value:function(){w.cleanup()}},{key:"isEnabled",get:function(){var m=this._enabled;return m&&(m=w.tryInitGL()),(0,r.shadow)(this,"isEnabled",m)}}]),$}();t.WebGLContext=N;var w=function(){function U(u,l,F){var T=u.createShader(F);u.shaderSource(T,l),u.compileShader(T);var D=u.getShaderParameter(T,u.COMPILE_STATUS);if(!D){var k=u.getShaderInfoLog(T);throw new Error("Error during shader compilation: "+k)}return T}function m(u,l){return U(u,l,u.VERTEX_SHADER)}function n(u,l){return U(u,l,u.FRAGMENT_SHADER)}function J(u,l){for(var F=u.createProgram(),T=0,D=l.length;T<D;++T)u.attachShader(F,l[T]);u.linkProgram(F);var k=u.getProgramParameter(F,u.LINK_STATUS);if(!k){var S=u.getProgramInfoLog(F);throw new Error("Error during program linking: "+S)}return F}function O(u,l,F){u.activeTexture(F);var T=u.createTexture();return u.bindTexture(u.TEXTURE_2D,T),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_S,u.CLAMP_TO_EDGE),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_T,u.CLAMP_TO_EDGE),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MIN_FILTER,u.NEAREST),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MAG_FILTER,u.NEAREST),u.texImage2D(u.TEXTURE_2D,0,u.RGBA,u.RGBA,u.UNSIGNED_BYTE,l),T}var L,M;function P(){L||(M=document.createElement("canvas"),L=M.getContext("webgl",{premultipliedalpha:!1}))}var b=" attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } ",_=" precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ",d=null;function c(){var u,l;P(),u=M,M=null,l=L,L=null;var F=m(l,b),T=n(l,_),D=J(l,[F,T]);l.useProgram(D);var k={};k.gl=l,k.canvas=u,k.resolutionLocation=l.getUniformLocation(D,"u_resolution"),k.positionLocation=l.getAttribLocation(D,"a_position"),k.backdropLocation=l.getUniformLocation(D,"u_backdrop"),k.subtypeLocation=l.getUniformLocation(D,"u_subtype");var S=l.getAttribLocation(D,"a_texCoord"),R=l.getUniformLocation(D,"u_image"),E=l.getUniformLocation(D,"u_mask"),A=l.createBuffer();l.bindBuffer(l.ARRAY_BUFFER,A),l.bufferData(l.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),l.STATIC_DRAW),l.enableVertexAttribArray(S),l.vertexAttribPointer(S,2,l.FLOAT,!1,0,0),l.uniform1i(R,0),l.uniform1i(E,1),d=k}function h(u,l,F){var T=u.width,D=u.height;d||c();var k=d,S=k.canvas,R=k.gl;S.width=T,S.height=D,R.viewport(0,0,R.drawingBufferWidth,R.drawingBufferHeight),R.uniform2f(k.resolutionLocation,T,D),F.backdrop?R.uniform4f(k.resolutionLocation,F.backdrop[0],F.backdrop[1],F.backdrop[2],1):R.uniform4f(k.resolutionLocation,0,0,0,0),R.uniform1i(k.subtypeLocation,F.subtype==="Luminosity"?1:0);var E=O(R,u,R.TEXTURE0),A=O(R,l,R.TEXTURE1),C=R.createBuffer();return R.bindBuffer(R.ARRAY_BUFFER,C),R.bufferData(R.ARRAY_BUFFER,new Float32Array([0,0,T,0,0,D,0,D,T,0,T,D]),R.STATIC_DRAW),R.enableVertexAttribArray(k.positionLocation),R.vertexAttribPointer(k.positionLocation,2,R.FLOAT,!1,0,0),R.clearColor(0,0,0,0),R.enable(R.BLEND),R.blendFunc(R.ONE,R.ONE_MINUS_SRC_ALPHA),R.clear(R.COLOR_BUFFER_BIT),R.drawArrays(R.TRIANGLES,0,6),R.flush(),R.deleteTexture(E),R.deleteTexture(A),R.deleteBuffer(C),S}var f=" attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } ",g=" precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ",v=null;function s(){var u,l;P(),u=M,M=null,l=L,L=null;var F=m(l,f),T=n(l,g),D=J(l,[F,T]);l.useProgram(D);var k={};k.gl=l,k.canvas=u,k.resolutionLocation=l.getUniformLocation(D,"u_resolution"),k.scaleLocation=l.getUniformLocation(D,"u_scale"),k.offsetLocation=l.getUniformLocation(D,"u_offset"),k.positionLocation=l.getAttribLocation(D,"a_position"),k.colorLocation=l.getAttribLocation(D,"a_color"),v=k}function o(u,l,F,T,D){v||s();var k=v,S=k.canvas,R=k.gl;S.width=u,S.height=l,R.viewport(0,0,R.drawingBufferWidth,R.drawingBufferHeight),R.uniform2f(k.resolutionLocation,u,l);var E=0,A,C,y;for(A=0,C=T.length;A<C;A++)switch(T[A].type){case"lattice":y=T[A].coords.length/T[A].verticesPerRow|0,E+=(y-1)*(T[A].verticesPerRow-1)*6;break;case"triangles":E+=T[A].coords.length;break}var I=new Float32Array(E*2),H=new Uint8Array(E*3),V=D.coords,B=D.colors,W=0,G=0;for(A=0,C=T.length;A<C;A++){var q=T[A],z=q.coords,j=q.colors;switch(q.type){case"lattice":var Y=q.verticesPerRow;y=z.length/Y|0;for(var K=1;K<y;K++)for(var Z=K*Y+1,ee=1;ee<Y;ee++,Z++)I[W]=V[z[Z-Y-1]],I[W+1]=V[z[Z-Y-1]+1],I[W+2]=V[z[Z-Y]],I[W+3]=V[z[Z-Y]+1],I[W+4]=V[z[Z-1]],I[W+5]=V[z[Z-1]+1],H[G]=B[j[Z-Y-1]],H[G+1]=B[j[Z-Y-1]+1],H[G+2]=B[j[Z-Y-1]+2],H[G+3]=B[j[Z-Y]],H[G+4]=B[j[Z-Y]+1],H[G+5]=B[j[Z-Y]+2],H[G+6]=B[j[Z-1]],H[G+7]=B[j[Z-1]+1],H[G+8]=B[j[Z-1]+2],I[W+6]=I[W+2],I[W+7]=I[W+3],I[W+8]=I[W+4],I[W+9]=I[W+5],I[W+10]=V[z[Z]],I[W+11]=V[z[Z]+1],H[G+9]=H[G+3],H[G+10]=H[G+4],H[G+11]=H[G+5],H[G+12]=H[G+6],H[G+13]=H[G+7],H[G+14]=H[G+8],H[G+15]=B[j[Z]],H[G+16]=B[j[Z]+1],H[G+17]=B[j[Z]+2],W+=12,G+=18;break;case"triangles":for(var ne=0,ae=z.length;ne<ae;ne++)I[W]=V[z[ne]],I[W+1]=V[z[ne]+1],H[G]=B[j[ne]],H[G+1]=B[j[ne]+1],H[G+2]=B[j[ne]+2],W+=2,G+=3;break}}F?R.clearColor(F[0]/255,F[1]/255,F[2]/255,1):R.clearColor(0,0,0,0),R.clear(R.COLOR_BUFFER_BIT);var te=R.createBuffer();R.bindBuffer(R.ARRAY_BUFFER,te),R.bufferData(R.ARRAY_BUFFER,I,R.STATIC_DRAW),R.enableVertexAttribArray(k.positionLocation),R.vertexAttribPointer(k.positionLocation,2,R.FLOAT,!1,0,0);var re=R.createBuffer();return R.bindBuffer(R.ARRAY_BUFFER,re),R.bufferData(R.ARRAY_BUFFER,H,R.STATIC_DRAW),R.enableVertexAttribArray(k.colorLocation),R.vertexAttribPointer(k.colorLocation,3,R.UNSIGNED_BYTE,!1,0,0),R.uniform2f(k.scaleLocation,D.scaleX,D.scaleY),R.uniform2f(k.offsetLocation,D.offsetX,D.offsetY),R.drawArrays(R.TRIANGLES,0,E),R.flush(),R.deleteBuffer(te),R.deleteBuffer(re),S}return{tryInitGL:function(){try{return P(),!!L}catch{}return!1},composeSMask:h,drawFigures:o,cleanup:function(){d&&d.canvas&&(d.canvas.width=0,d.canvas.height=0),v&&v.canvas&&(v.canvas.width=0,v.canvas.height=0),d=null,v=null}}}()},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.renderTextLayer=void 0;var r=a(1),i=function(){var e=1e5,N=/\S/;function w(M){return!N.test(M)}function $(M,P,b){var _=document.createElement("span"),d={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(M._textDivs.push(_),w(P.str)){d.isWhitespace=!0,M._textDivProperties.set(_,d);return}var c=r.Util.transform(M._viewport.transform,P.transform),h=Math.atan2(c[1],c[0]),f=b[P.fontName];f.vertical&&(h+=Math.PI/2);var g=Math.sqrt(c[2]*c[2]+c[3]*c[3]),v=g;f.ascent?v=f.ascent*v:f.descent&&(v=(1+f.descent)*v);var s,o;if(h===0?(s=c[4],o=c[5]-v):(s=c[4]+v*Math.sin(h),o=c[5]-v*Math.cos(h)),_.style.left="".concat(s,"px"),_.style.top="".concat(o,"px"),_.style.fontSize="".concat(g,"px"),_.style.fontFamily=f.fontFamily,_.textContent=P.str,M._fontInspectorEnabled&&(_.dataset.fontName=P.fontName),h!==0&&(d.angle=h*(180/Math.PI)),P.str.length>1&&(f.vertical?d.canvasWidth=P.height*M._viewport.scale:d.canvasWidth=P.width*M._viewport.scale),M._textDivProperties.set(_,d),M._textContentStream&&M._layoutText(_),M._enhanceTextSelection){var u=1,l=0;h!==0&&(u=Math.cos(h),l=Math.sin(h));var F=(f.vertical?P.height:P.width)*M._viewport.scale,T=g,D,k;h!==0?(D=[u,l,-l,u,s,o],k=r.Util.getAxialAlignedBoundingBox([0,0,F,T],D)):k=[s,o,s+F,o+T],M._bounds.push({left:k[0],top:k[1],right:k[2],bottom:k[3],div:_,size:[F,T],m:D})}}function U(M){if(!M._canceled){var P=M._textDivs,b=M._capability,_=P.length;if(_>e){M._renderingDone=!0,b.resolve();return}if(!M._textContentStream)for(var d=0;d<_;d++)M._layoutText(P[d]);M._renderingDone=!0,b.resolve()}}function m(M){for(var P=M._bounds,b=M._viewport,_=n(b.width,b.height,P),d=0;d<_.length;d++){var c=P[d].div,h=M._textDivProperties.get(c);if(h.angle===0){h.paddingLeft=P[d].left-_[d].left,h.paddingTop=P[d].top-_[d].top,h.paddingRight=_[d].right-P[d].right,h.paddingBottom=_[d].bottom-P[d].bottom,M._textDivProperties.set(c,h);continue}var f=_[d],g=P[d],v=g.m,s=v[0],o=v[1],u=[[0,0],[0,g.size[1]],[g.size[0],0],g.size],l=new Float64Array(64);u.forEach(function(D,k){var S=r.Util.applyTransform(D,v);l[k+0]=s&&(f.left-S[0])/s,l[k+4]=o&&(f.top-S[1])/o,l[k+8]=s&&(f.right-S[0])/s,l[k+12]=o&&(f.bottom-S[1])/o,l[k+16]=o&&(f.left-S[0])/-o,l[k+20]=s&&(f.top-S[1])/s,l[k+24]=o&&(f.right-S[0])/-o,l[k+28]=s&&(f.bottom-S[1])/s,l[k+32]=s&&(f.left-S[0])/-s,l[k+36]=o&&(f.top-S[1])/-o,l[k+40]=s&&(f.right-S[0])/-s,l[k+44]=o&&(f.bottom-S[1])/-o,l[k+48]=o&&(f.left-S[0])/o,l[k+52]=s&&(f.top-S[1])/-s,l[k+56]=o&&(f.right-S[0])/o,l[k+60]=s&&(f.bottom-S[1])/-s});var F=function(k,S,R){for(var E=0,A=0;A<R;A++){var C=k[S++];C>0&&(E=E?Math.min(C,E):C)}return E},T=1+Math.min(Math.abs(s),Math.abs(o));h.paddingLeft=F(l,32,16)/T,h.paddingTop=F(l,48,16)/T,h.paddingRight=F(l,0,16)/T,h.paddingBottom=F(l,16,16)/T,M._textDivProperties.set(c,h)}}function n(M,P,b){var _=b.map(function(c,h){return{x1:c.left,y1:c.top,x2:c.right,y2:c.bottom,index:h,x1New:void 0,x2New:void 0}});J(M,_);var d=new Array(b.length);return _.forEach(function(c){var h=c.index;d[h]={left:c.x1New,top:0,right:c.x2New,bottom:0}}),b.map(function(c,h){var f=d[h],g=_[h];g.x1=c.top,g.y1=M-f.right,g.x2=c.bottom,g.y2=M-f.left,g.index=h,g.x1New=void 0,g.x2New=void 0}),J(P,_),_.forEach(function(c){var h=c.index;d[h].top=c.x1New,d[h].bottom=c.x2New}),d}function J(M,P){P.sort(function(d,c){return d.x1-c.x1||d.index-c.index});var b={x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0},_=[{start:-1/0,end:1/0,boundary:b}];P.forEach(function(d){for(var c=0;c<_.length&&_[c].end<=d.y1;)c++;for(var h=_.length-1;h>=0&&_[h].start>=d.y2;)h--;var f,g,v,s,o=-1/0;for(v=c;v<=h;v++){f=_[v],g=f.boundary;var u;g.x2>d.x1?u=g.index>d.index?g.x1New:d.x1:g.x2New===void 0?u=(g.x2+d.x1)/2:u=g.x2New,u>o&&(o=u)}for(d.x1New=o,v=c;v<=h;v++)f=_[v],g=f.boundary,g.x2New===void 0?g.x2>d.x1?g.index>d.index&&(g.x2New=g.x2):g.x2New=o:g.x2New>o&&(g.x2New=Math.max(o,g.x2));var l=[],F=null;for(v=c;v<=h;v++){f=_[v],g=f.boundary;var T=g.x2>d.x2?g:d;F===T?l[l.length-1].end=f.end:(l.push({start:f.start,end:f.end,boundary:T}),F=T)}for(_[c].start<d.y1&&(l[0].start=d.y1,l.unshift({start:_[c].start,end:d.y1,boundary:_[c].boundary})),d.y2<_[h].end&&(l[l.length-1].end=d.y2,l.push({start:d.y2,end:_[h].end,boundary:_[h].boundary})),v=c;v<=h;v++)if(f=_[v],g=f.boundary,g.x2New===void 0){var D=!1;for(s=c-1;!D&&s>=0&&_[s].start>=g.y1;s--)D=_[s].boundary===g;for(s=h+1;!D&&s<_.length&&_[s].end<=g.y2;s++)D=_[s].boundary===g;for(s=0;!D&&s<l.length;s++)D=l[s].boundary===g;D||(g.x2New=o)}Array.prototype.splice.apply(_,[c,h-c+1].concat(l))}),_.forEach(function(d){var c=d.boundary;c.x2New===void 0&&(c.x2New=Math.max(M,c.x2))})}function O(M){var P=this,b=M.textContent,_=M.textContentStream,d=M.container,c=M.viewport,h=M.textDivs,f=M.textContentItemsStr,g=M.enhanceTextSelection;this._textContent=b,this._textContentStream=_,this._container=d,this._viewport=c,this._textDivs=h||[],this._textContentItemsStr=f||[],this._enhanceTextSelection=!!g,this._fontInspectorEnabled=!!(globalThis.FontInspector&&globalThis.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,r.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(function(){P._layoutTextCtx&&(P._layoutTextCtx.canvas.width=0,P._layoutTextCtx.canvas.height=0,P._layoutTextCtx=null)}).catch(function(){})}O.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new r.AbortException("TextLayer task cancelled.")),this._reader=null),this._renderTimer!==null&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems:function(P,b){for(var _=0,d=P.length;_<d;_++)this._textContentItemsStr.push(P[_].str),$(this,P[_],b)},_layoutText:function(P){var b=this._textDivProperties.get(P);if(!b.isWhitespace){var _="";if(b.canvasWidth!==0){var d=P.style,c=d.fontSize,h=d.fontFamily;(c!==this._layoutTextLastFontSize||h!==this._layoutTextLastFontFamily)&&(this._layoutTextCtx.font="".concat(c," ").concat(h),this._layoutTextLastFontSize=c,this._layoutTextLastFontFamily=h);var f=this._layoutTextCtx.measureText(P.textContent),g=f.width;g>0&&(b.scale=b.canvasWidth/g,_="scaleX(".concat(b.scale,")"))}b.angle!==0&&(_="rotate(".concat(b.angle,"deg) ").concat(_)),_.length>0&&(this._enhanceTextSelection&&(b.originalTransform=_),P.style.transform=_),this._textDivProperties.set(P,b),this._container.appendChild(P)}},_render:function(P){var b=this,_=(0,r.createPromiseCapability)(),d=Object.create(null),c=document.createElement("canvas");if(c.mozOpaque=!0,this._layoutTextCtx=c.getContext("2d",{alpha:!1}),this._textContent){var h=this._textContent.items,f=this._textContent.styles;this._processItems(h,f),_.resolve()}else if(this._textContentStream){var g=function v(){b._reader.read().then(function(s){var o=s.value,u=s.done;if(u){_.resolve();return}Object.assign(d,o.styles),b._processItems(o.items,d),v()},_.reject)};this._reader=this._textContentStream.getReader(),g()}else throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');_.promise.then(function(){d=null,P?b._renderTimer=setTimeout(function(){U(b),b._renderTimer=null},P):U(b)},this._capability.reject)},expandTextDivs:function(P){if(!(!this._enhanceTextSelection||!this._renderingDone)){this._bounds!==null&&(m(this),this._bounds=null);for(var b=[],_=[],d=0,c=this._textDivs.length;d<c;d++){var h=this._textDivs[d],f=this._textDivProperties.get(h);f.isWhitespace||(P?(b.length=0,_.length=0,f.originalTransform&&b.push(f.originalTransform),f.paddingTop>0?(_.push("".concat(f.paddingTop,"px")),b.push("translateY(".concat(-f.paddingTop,"px)"))):_.push(0),f.paddingRight>0?_.push("".concat(f.paddingRight/f.scale,"px")):_.push(0),f.paddingBottom>0?_.push("".concat(f.paddingBottom,"px")):_.push(0),f.paddingLeft>0?(_.push("".concat(f.paddingLeft/f.scale,"px")),b.push("translateX(".concat(-f.paddingLeft/f.scale,"px)"))):_.push(0),h.style.padding=_.join(" "),b.length&&(h.style.transform=b.join(" "))):(h.style.padding=null,h.style.transform=f.originalTransform))}}}};function L(M){var P=new O({textContent:M.textContent,textContentStream:M.textContentStream,container:M.container,viewport:M.viewport,textDivs:M.textDivs,textContentItemsStr:M.textContentItemsStr,enhanceTextSelection:M.enhanceTextSelection});return P._render(M.timeout),P}return L}();t.renderTextLayer=i},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var r=a(194),i=a(1);function p(B,W,G){return typeof Reflect<"u"&&Reflect.get?p=Reflect.get:p=function(z,j,Y){var K=e(z,j);if(K){var Z=Object.getOwnPropertyDescriptor(K,j);return Z.get?Z.get.call(Y):Z.value}},p(B,W,G||B)}function e(B,W){for(;!Object.prototype.hasOwnProperty.call(B,W)&&(B=U(B),B!==null););return B}function N(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?N=function(G){return typeof G}:N=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},N(B)}function w(B,W){return W&&(N(W)==="object"||typeof W=="function")?W:$(B)}function $(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function U(B){return U=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},U(B)}function m(B,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(W&&W.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),W&&n(B,W)}function n(B,W){return n=Object.setPrototypeOf||function(q,z){return q.__proto__=z,q},n(B,W)}function J(B,W){if(!(B instanceof W))throw new TypeError("Cannot call a class as a function")}function O(B,W){for(var G=0;G<W.length;G++){var q=W[G];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(B,q.key,q)}}function L(B,W,G){return W&&O(B.prototype,W),G&&O(B,G),B}var M=function(){function B(){J(this,B)}return L(B,null,[{key:"create",value:function(G){var q=G.data.annotationType;switch(q){case i.AnnotationType.LINK:return new b(G);case i.AnnotationType.TEXT:return new _(G);case i.AnnotationType.WIDGET:var z=G.data.fieldType;switch(z){case"Tx":return new c(G);case"Btn":return G.data.radioButton?new f(G):G.data.checkBox?new h(G):new g(G);case"Ch":return new v(G)}return new d(G);case i.AnnotationType.POPUP:return new s(G);case i.AnnotationType.FREETEXT:return new u(G);case i.AnnotationType.LINE:return new l(G);case i.AnnotationType.SQUARE:return new F(G);case i.AnnotationType.CIRCLE:return new T(G);case i.AnnotationType.POLYLINE:return new D(G);case i.AnnotationType.CARET:return new S(G);case i.AnnotationType.INK:return new R(G);case i.AnnotationType.POLYGON:return new k(G);case i.AnnotationType.HIGHLIGHT:return new E(G);case i.AnnotationType.UNDERLINE:return new A(G);case i.AnnotationType.SQUIGGLY:return new C(G);case i.AnnotationType.STRIKEOUT:return new y(G);case i.AnnotationType.STAMP:return new I(G);case i.AnnotationType.FILEATTACHMENT:return new H(G);default:return new P(G)}}}]),B}(),P=function(){function B(W){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;J(this,B),this.isRenderable=G,this.data=W.data,this.layer=W.layer,this.page=W.page,this.viewport=W.viewport,this.linkService=W.linkService,this.downloadManager=W.downloadManager,this.imageResourcesPath=W.imageResourcesPath,this.renderInteractiveForms=W.renderInteractiveForms,this.svgFactory=W.svgFactory,G&&(this.container=this._createContainer(q))}return L(B,[{key:"_createContainer",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,q=this.data,z=this.page,j=this.viewport,Y=document.createElement("section"),K=q.rect[2]-q.rect[0],Z=q.rect[3]-q.rect[1];Y.setAttribute("data-annotation-id",q.id);var ee=i.Util.normalizeRect([q.rect[0],z.view[3]-q.rect[1]+z.view[1],q.rect[2],z.view[3]-q.rect[3]+z.view[1]]);if(Y.style.transform="matrix(".concat(j.transform.join(","),")"),Y.style.transformOrigin="-".concat(ee[0],"px -").concat(ee[1],"px"),!G&&q.borderStyle.width>0){Y.style.borderWidth="".concat(q.borderStyle.width,"px"),q.borderStyle.style!==i.AnnotationBorderStyleType.UNDERLINE&&(K=K-2*q.borderStyle.width,Z=Z-2*q.borderStyle.width);var ne=q.borderStyle.horizontalCornerRadius,ae=q.borderStyle.verticalCornerRadius;if(ne>0||ae>0){var te="".concat(ne,"px / ").concat(ae,"px");Y.style.borderRadius=te}switch(q.borderStyle.style){case i.AnnotationBorderStyleType.SOLID:Y.style.borderStyle="solid";break;case i.AnnotationBorderStyleType.DASHED:Y.style.borderStyle="dashed";break;case i.AnnotationBorderStyleType.BEVELED:(0,i.warn)("Unimplemented border style: beveled");break;case i.AnnotationBorderStyleType.INSET:(0,i.warn)("Unimplemented border style: inset");break;case i.AnnotationBorderStyleType.UNDERLINE:Y.style.borderBottomStyle="solid";break}q.color?Y.style.borderColor=i.Util.makeCssRgb(q.color[0]|0,q.color[1]|0,q.color[2]|0):Y.style.borderWidth=0}return Y.style.left="".concat(ee[0],"px"),Y.style.top="".concat(ee[1],"px"),Y.style.width="".concat(K,"px"),Y.style.height="".concat(Z,"px"),Y}},{key:"_createPopup",value:function(G,q,z){q||(q=document.createElement("div"),q.style.height=G.style.height,q.style.width=G.style.width,G.appendChild(q));var j=new o({container:G,trigger:q,color:z.color,title:z.title,modificationDate:z.modificationDate,contents:z.contents,hideWrapper:!0}),Y=j.render();Y.style.left=G.style.width,G.appendChild(Y)}},{key:"render",value:function(){(0,i.unreachable)("Abstract method `AnnotationElement.render` called")}}]),B}(),b=function(B){m(W,B);function W(G){J(this,W);var q=!!(G.data.url||G.data.dest||G.data.action);return w(this,U(W).call(this,G,q))}return L(W,[{key:"render",value:function(){this.container.className="linkAnnotation";var q=this.data,z=this.linkService,j=document.createElement("a");return q.url?(0,r.addLinkAttributes)(j,{url:q.url,target:q.newWindow?r.LinkTarget.BLANK:z.externalLinkTarget,rel:z.externalLinkRel,enabled:z.externalLinkEnabled}):q.action?this._bindNamedAction(j,q.action):this._bindLink(j,q.dest),this.container.appendChild(j),this.container}},{key:"_bindLink",value:function(q,z){var j=this;q.href=this.linkService.getDestinationHash(z),q.onclick=function(){return z&&j.linkService.navigateTo(z),!1},z&&(q.className="internalLink")}},{key:"_bindNamedAction",value:function(q,z){var j=this;q.href=this.linkService.getAnchorUrl(""),q.onclick=function(){return j.linkService.executeNamedAction(z),!1},q.className="internalLink"}}]),W}(P),_=function(B){m(W,B);function W(G){J(this,W);var q=!!(G.data.hasPopup||G.data.title||G.data.contents);return w(this,U(W).call(this,G,q))}return L(W,[{key:"render",value:function(){this.container.className="textAnnotation";var q=document.createElement("img");return q.style.height=this.container.style.height,q.style.width=this.container.style.width,q.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",q.alt="[{{type}} Annotation]",q.dataset.l10nId="text_annotation_type",q.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,q,this.data),this.container.appendChild(q),this.container}}]),W}(P),d=function(B){m(W,B);function W(){return J(this,W),w(this,U(W).apply(this,arguments))}return L(W,[{key:"render",value:function(){return this.container}}]),W}(P),c=function(B){m(W,B);function W(G){J(this,W);var q=G.renderInteractiveForms||!G.data.hasAppearance&&!!G.data.fieldValue;return w(this,U(W).call(this,G,q))}return L(W,[{key:"render",value:function(){var q=["left","center","right"];this.container.className="textWidgetAnnotation";var z=null;if(this.renderInteractiveForms){if(this.data.multiLine?(z=document.createElement("textarea"),z.textContent=this.data.fieldValue):(z=document.createElement("input"),z.type="text",z.setAttribute("value",this.data.fieldValue)),z.disabled=this.data.readOnly,this.data.maxLen!==null&&(z.maxLength=this.data.maxLen),this.data.comb){var j=this.data.rect[2]-this.data.rect[0],Y=j/this.data.maxLen;z.classList.add("comb"),z.style.letterSpacing="calc(".concat(Y,"px - 1ch)")}}else{z=document.createElement("div"),z.textContent=this.data.fieldValue,z.style.verticalAlign="middle",z.style.display="table-cell";var K=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(K=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(z,K)}return this.data.textAlignment!==null&&(z.style.textAlign=q[this.data.textAlignment]),this.container.appendChild(z),this.container}},{key:"_setTextStyle",value:function(q,z){var j=q.style;if(j.fontSize="".concat(this.data.fontSize,"px"),j.direction=this.data.fontDirection<0?"rtl":"ltr",!!z){var Y="normal";z.black?Y="900":z.bold&&(Y="bold"),j.fontWeight=Y,j.fontStyle=z.italic?"italic":"normal";var K=z.loadedName?'"'.concat(z.loadedName,'", '):"",Z=z.fallbackName||"Helvetica, sans-serif";j.fontFamily=K+Z}}}]),W}(d),h=function(B){m(W,B);function W(G){return J(this,W),w(this,U(W).call(this,G,G.renderInteractiveForms))}return L(W,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation checkBox";var q=document.createElement("input");return q.disabled=this.data.readOnly,q.type="checkbox",this.data.fieldValue&&this.data.fieldValue!=="Off"&&q.setAttribute("checked",!0),this.container.appendChild(q),this.container}}]),W}(d),f=function(B){m(W,B);function W(G){return J(this,W),w(this,U(W).call(this,G,G.renderInteractiveForms))}return L(W,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var q=document.createElement("input");return q.disabled=this.data.readOnly,q.type="radio",q.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&q.setAttribute("checked",!0),this.container.appendChild(q),this.container}}]),W}(d),g=function(B){m(W,B);function W(){return J(this,W),w(this,U(W).apply(this,arguments))}return L(W,[{key:"render",value:function(){var q=p(U(W.prototype),"render",this).call(this);return q.className="buttonWidgetAnnotation pushButton",q}}]),W}(b),v=function(B){m(W,B);function W(G){return J(this,W),w(this,U(W).call(this,G,G.renderInteractiveForms))}return L(W,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var q=document.createElement("select");q.disabled=this.data.readOnly,this.data.combo||(q.size=this.data.options.length,this.data.multiSelect&&(q.multiple=!0));var z=!0,j=!1,Y=void 0;try{for(var K=this.data.options[Symbol.iterator](),Z;!(z=(Z=K.next()).done);z=!0){var ee=Z.value,ne=document.createElement("option");ne.textContent=ee.displayValue,ne.value=ee.exportValue,this.data.fieldValue.includes(ee.displayValue)&&ne.setAttribute("selected",!0),q.appendChild(ne)}}catch(ae){j=!0,Y=ae}finally{try{!z&&K.return!=null&&K.return()}finally{if(j)throw Y}}return this.container.appendChild(q),this.container}}]),W}(d),s=function(B){m(W,B);function W(G){J(this,W);var q=!!(G.data.title||G.data.contents);return w(this,U(W).call(this,G,q))}return L(W,[{key:"render",value:function(){var q=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",q.includes(this.data.parentType))return this.container;var z='[data-annotation-id="'.concat(this.data.parentId,'"]'),j=this.layer.querySelector(z);if(!j)return this.container;var Y=new o({container:this.container,trigger:j,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),K=parseFloat(j.style.left),Z=parseFloat(j.style.width);return this.container.style.transformOrigin="-".concat(K+Z,"px -").concat(j.style.top),this.container.style.left="".concat(K+Z,"px"),this.container.appendChild(Y.render()),this.container}}]),W}(P),o=function(){function B(W){J(this,B),this.container=W.container,this.trigger=W.trigger,this.color=W.color,this.title=W.title,this.modificationDate=W.modificationDate,this.contents=W.contents,this.hideWrapper=W.hideWrapper||!1,this.pinned=!1}return L(B,[{key:"render",value:function(){var G=.7,q=document.createElement("div");q.className="popupWrapper",this.hideElement=this.hideWrapper?q:this.container,this.hideElement.setAttribute("hidden",!0);var z=document.createElement("div");z.className="popup";var j=this.color;if(j){var Y=G*(255-j[0])+j[0],K=G*(255-j[1])+j[1],Z=G*(255-j[2])+j[2];z.style.backgroundColor=i.Util.makeCssRgb(Y|0,K|0,Z|0)}var ee=document.createElement("h1");ee.textContent=this.title,z.appendChild(ee);var ne=r.PDFDateString.toDateObject(this.modificationDate);if(ne){var ae=document.createElement("span");ae.textContent="{{date}}, {{time}}",ae.dataset.l10nId="annotation_date_string",ae.dataset.l10nArgs=JSON.stringify({date:ne.toLocaleDateString(),time:ne.toLocaleTimeString()}),z.appendChild(ae)}var te=this._formatContents(this.contents);return z.appendChild(te),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),z.addEventListener("click",this._hide.bind(this,!0)),q.appendChild(z),q}},{key:"_formatContents",value:function(G){for(var q=document.createElement("p"),z=G.split(/(?:\r\n?|\n)/),j=0,Y=z.length;j<Y;++j){var K=z[j];q.appendChild(document.createTextNode(K)),j<Y-1&&q.appendChild(document.createElement("br"))}return q}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;G&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;G&&(this.pinned=!1),!this.hideElement.hasAttribute("hidden")&&!this.pinned&&(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),B}(),u=function(B){m(W,B);function W(G){J(this,W);var q=!!(G.data.hasPopup||G.data.title||G.data.contents);return w(this,U(W).call(this,G,q,!0))}return L(W,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),W}(P),l=function(B){m(W,B);function W(G){J(this,W);var q=!!(G.data.hasPopup||G.data.title||G.data.contents);return w(this,U(W).call(this,G,q,!0))}return L(W,[{key:"render",value:function(){this.container.className="lineAnnotation";var q=this.data,z=q.rect[2]-q.rect[0],j=q.rect[3]-q.rect[1],Y=this.svgFactory.create(z,j),K=this.svgFactory.createElement("svg:line");return K.setAttribute("x1",q.rect[2]-q.lineCoordinates[0]),K.setAttribute("y1",q.rect[3]-q.lineCoordinates[1]),K.setAttribute("x2",q.rect[2]-q.lineCoordinates[2]),K.setAttribute("y2",q.rect[3]-q.lineCoordinates[3]),K.setAttribute("stroke-width",q.borderStyle.width||1),K.setAttribute("stroke","transparent"),Y.appendChild(K),this.container.append(Y),this._createPopup(this.container,K,q),this.container}}]),W}(P),F=function(B){m(W,B);function W(G){J(this,W);var q=!!(G.data.hasPopup||G.data.title||G.data.contents);return w(this,U(W).call(this,G,q,!0))}return L(W,[{key:"render",value:function(){this.container.className="squareAnnotation";var q=this.data,z=q.rect[2]-q.rect[0],j=q.rect[3]-q.rect[1],Y=this.svgFactory.create(z,j),K=q.borderStyle.width,Z=this.svgFactory.createElement("svg:rect");return Z.setAttribute("x",K/2),Z.setAttribute("y",K/2),Z.setAttribute("width",z-K),Z.setAttribute("height",j-K),Z.setAttribute("stroke-width",K||1),Z.setAttribute("stroke","transparent"),Z.setAttribute("fill","none"),Y.appendChild(Z),this.container.append(Y),this._createPopup(this.container,Z,q),this.container}}]),W}(P),T=function(B){m(W,B);function W(G){J(this,W);var q=!!(G.data.hasPopup||G.data.title||G.data.contents);return w(this,U(W).call(this,G,q,!0))}return L(W,[{key:"render",value:function(){this.container.className="circleAnnotation";var q=this.data,z=q.rect[2]-q.rect[0],j=q.rect[3]-q.rect[1],Y=this.svgFactory.create(z,j),K=q.borderStyle.width,Z=this.svgFactory.createElement("svg:ellipse");return Z.setAttribute("cx",z/2),Z.setAttribute("cy",j/2),Z.setAttribute("rx",z/2-K/2),Z.setAttribute("ry",j/2-K/2),Z.setAttribute("stroke-width",K||1),Z.setAttribute("stroke","transparent"),Z.setAttribute("fill","none"),Y.appendChild(Z),this.container.append(Y),this._createPopup(this.container,Z,q),this.container}}]),W}(P),D=function(B){m(W,B);function W(G){var q;J(this,W);var z=!!(G.data.hasPopup||G.data.title||G.data.contents);return q=w(this,U(W).call(this,G,z,!0)),q.containerClassName="polylineAnnotation",q.svgElementName="svg:polyline",q}return L(W,[{key:"render",value:function(){this.container.className=this.containerClassName;var q=this.data,z=q.rect[2]-q.rect[0],j=q.rect[3]-q.rect[1],Y=this.svgFactory.create(z,j),K=[],Z=!0,ee=!1,ne=void 0;try{for(var ae=q.vertices[Symbol.iterator](),te;!(Z=(te=ae.next()).done);Z=!0){var re=te.value,ie=re.x-q.rect[0],de=q.rect[3]-re.y;K.push(ie+","+de)}}catch(le){ee=!0,ne=le}finally{try{!Z&&ae.return!=null&&ae.return()}finally{if(ee)throw ne}}K=K.join(" ");var oe=this.svgFactory.createElement(this.svgElementName);return oe.setAttribute("points",K),oe.setAttribute("stroke-width",q.borderStyle.width||1),oe.setAttribute("stroke","transparent"),oe.setAttribute("fill","none"),Y.appendChild(oe),this.container.append(Y),this._createPopup(this.container,oe,q),this.container}}]),W}(P),k=function(B){m(W,B);function W(G){var q;return J(this,W),q=w(this,U(W).call(this,G)),q.containerClassName="polygonAnnotation",q.svgElementName="svg:polygon",q}return W}(D),S=function(B){m(W,B);function W(G){J(this,W);var q=!!(G.data.hasPopup||G.data.title||G.data.contents);return w(this,U(W).call(this,G,q,!0))}return L(W,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),W}(P),R=function(B){m(W,B);function W(G){var q;J(this,W);var z=!!(G.data.hasPopup||G.data.title||G.data.contents);return q=w(this,U(W).call(this,G,z,!0)),q.containerClassName="inkAnnotation",q.svgElementName="svg:polyline",q}return L(W,[{key:"render",value:function(){this.container.className=this.containerClassName;var q=this.data,z=q.rect[2]-q.rect[0],j=q.rect[3]-q.rect[1],Y=this.svgFactory.create(z,j),K=!0,Z=!1,ee=void 0;try{for(var ne=q.inkLists[Symbol.iterator](),ae;!(K=(ae=ne.next()).done);K=!0){var te=ae.value,re=[],ie=!0,de=!1,oe=void 0;try{for(var le=te[Symbol.iterator](),me;!(ie=(me=le.next()).done);ie=!0){var Pe=me.value,Ce=Pe.x-q.rect[0],xe=q.rect[3]-Pe.y;re.push("".concat(Ce,",").concat(xe))}}catch(Se){de=!0,oe=Se}finally{try{!ie&&le.return!=null&&le.return()}finally{if(de)throw oe}}re=re.join(" ");var be=this.svgFactory.createElement(this.svgElementName);be.setAttribute("points",re),be.setAttribute("stroke-width",q.borderStyle.width||1),be.setAttribute("stroke","transparent"),be.setAttribute("fill","none"),this._createPopup(this.container,be,q),Y.appendChild(be)}}catch(Se){Z=!0,ee=Se}finally{try{!K&&ne.return!=null&&ne.return()}finally{if(Z)throw ee}}return this.container.append(Y),this.container}}]),W}(P),E=function(B){m(W,B);function W(G){J(this,W);var q=!!(G.data.hasPopup||G.data.title||G.data.contents);return w(this,U(W).call(this,G,q,!0))}return L(W,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),W}(P),A=function(B){m(W,B);function W(G){J(this,W);var q=!!(G.data.hasPopup||G.data.title||G.data.contents);return w(this,U(W).call(this,G,q,!0))}return L(W,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),W}(P),C=function(B){m(W,B);function W(G){J(this,W);var q=!!(G.data.hasPopup||G.data.title||G.data.contents);return w(this,U(W).call(this,G,q,!0))}return L(W,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),W}(P),y=function(B){m(W,B);function W(G){J(this,W);var q=!!(G.data.hasPopup||G.data.title||G.data.contents);return w(this,U(W).call(this,G,q,!0))}return L(W,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),W}(P),I=function(B){m(W,B);function W(G){J(this,W);var q=!!(G.data.hasPopup||G.data.title||G.data.contents);return w(this,U(W).call(this,G,q,!0))}return L(W,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),W}(P),H=function(B){m(W,B);function W(G){var q;J(this,W),q=w(this,U(W).call(this,G,!0));var z=q.data.file,j=z.filename,Y=z.content;return q.filename=(0,r.getFilenameFromUrl)(j),q.content=Y,q.linkService.eventBus&&q.linkService.eventBus.dispatch("fileattachmentannotation",{source:$(q),id:(0,i.stringToPDFString)(j),filename:j,content:Y}),q}return L(W,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var q=document.createElement("div");return q.style.height=this.container.style.height,q.style.width=this.container.style.width,q.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&(this.data.title||this.data.contents)&&this._createPopup(this.container,q,this.data),this.container.appendChild(q),this.container}},{key:"_download",value:function(){if(!this.downloadManager){(0,i.warn)("Download cannot be started due to unavailable download manager");return}this.downloadManager.downloadData(this.content,this.filename,"")}}]),W}(P),V=function(){function B(){J(this,B)}return L(B,null,[{key:"render",value:function(G){var q=[],z=[],j=!0,Y=!1,K=void 0;try{for(var Z=G.annotations[Symbol.iterator](),ee;!(j=(ee=Z.next()).done);j=!0){var ne=ee.value;if(ne){if(ne.annotationType===i.AnnotationType.POPUP){z.push(ne);continue}q.push(ne)}}}catch(de){Y=!0,K=de}finally{try{!j&&Z.return!=null&&Z.return()}finally{if(Y)throw K}}z.length&&q.push.apply(q,z);for(var ae=0,te=q;ae<te.length;ae++){var re=te[ae],ie=M.create({data:re,layer:G.div,page:G.page,viewport:G.viewport,linkService:G.linkService,downloadManager:G.downloadManager,imageResourcesPath:G.imageResourcesPath||"",renderInteractiveForms:G.renderInteractiveForms||!1,svgFactory:new r.DOMSVGFactory});ie.isRenderable&&G.div.appendChild(ie.render())}}},{key:"update",value:function(G){var q=!0,z=!1,j=void 0;try{for(var Y=G.annotations[Symbol.iterator](),K;!(q=(K=Y.next()).done);q=!0){var Z=K.value,ee=G.div.querySelector('[data-annotation-id="'.concat(Z.id,'"]'));ee&&(ee.style.transform="matrix(".concat(G.viewport.transform.join(","),")"))}}catch(ne){z=!0,j=ne}finally{try{!q&&Y.return!=null&&Y.return()}finally{if(z)throw j}}G.div.removeAttribute("hidden")}}]),B}();t.AnnotationLayer=V},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var r=a(1),i=a(194),p=a(48);function e(T){return $(T)||w(T)||N()}function N(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function w(T){if(Symbol.iterator in Object(T)||Object.prototype.toString.call(T)==="[object Arguments]")return Array.from(T)}function $(T){if(Array.isArray(T)){for(var D=0,k=new Array(T.length);D<T.length;D++)k[D]=T[D];return k}}function U(T,D){return J(T)||n(T,D)||m()}function m(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function n(T,D){if(Symbol.iterator in Object(T)||Object.prototype.toString.call(T)==="[object Arguments]"){var k=[],S=!0,R=!1,E=void 0;try{for(var A=T[Symbol.iterator](),C;!(S=(C=A.next()).done)&&(k.push(C.value),!(D&&k.length===D));S=!0);}catch(y){R=!0,E=y}finally{try{!S&&A.return!=null&&A.return()}finally{if(R)throw E}}return k}}function J(T){if(Array.isArray(T))return T}function O(T,D){if(!(T instanceof D))throw new TypeError("Cannot call a class as a function")}function L(T,D){for(var k=0;k<D.length;k++){var S=D[k];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(T,S.key,S)}}function M(T,D,k){return D&&L(T.prototype,D),T}var P=function(){throw new Error("Not implemented: SVGGraphics")};t.SVGGraphics=P;{var b=function(D){var k=[],S=[],R=!0,E=!1,A=void 0;try{for(var C=D[Symbol.iterator](),y;!(R=(y=C.next()).done);R=!0){var I=y.value;if(I.fn==="save"){k.push({fnId:92,fn:"group",items:[]}),S.push(k),k=k[k.length-1].items;continue}I.fn==="restore"?k=S.pop():k.push(I)}}catch(H){E=!0,A=H}finally{try{!R&&C.return!=null&&C.return()}finally{if(E)throw A}}return k},_=function(D){if(Number.isInteger(D))return D.toString();var k=D.toFixed(10),S=k.length-1;if(k[S]!=="0")return k;do S--;while(k[S]==="0");return k.substring(0,k[S]==="."?S:S+1)},d=function(D){if(D[4]===0&&D[5]===0){if(D[1]===0&&D[2]===0)return D[0]===1&&D[3]===1?"":"scale(".concat(_(D[0])," ").concat(_(D[3]),")");if(D[0]===D[3]&&D[1]===-D[2]){var k=Math.acos(D[0])*180/Math.PI;return"rotate(".concat(_(k),")")}}else if(D[0]===1&&D[1]===0&&D[2]===0&&D[3]===1)return"translate(".concat(_(D[4])," ").concat(_(D[5]),")");return"matrix(".concat(_(D[0])," ").concat(_(D[1])," ").concat(_(D[2])," ").concat(_(D[3])," ").concat(_(D[4])," ")+"".concat(_(D[5]),")")},c={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},h="http://www.w3.org/XML/1998/namespace",f="http://www.w3.org/1999/xlink",g=["butt","round","square"],v=["miter","round","bevel"],s=function(){for(var T=new Uint8Array([137,80,78,71,13,10,26,10]),D=12,k=new Int32Array(256),S=0;S<256;S++){for(var R=S,E=0;E<8;E++)R&1?R=3988292384^R>>1&2147483647:R=R>>1&2147483647;k[S]=R}function A(B,W,G){for(var q=-1,z=W;z<G;z++){var j=(q^B[z])&255,Y=k[j];q=q>>>8^Y}return q^-1}function C(B,W,G,q){var z=q,j=W.length;G[z]=j>>24&255,G[z+1]=j>>16&255,G[z+2]=j>>8&255,G[z+3]=j&255,z+=4,G[z]=B.charCodeAt(0)&255,G[z+1]=B.charCodeAt(1)&255,G[z+2]=B.charCodeAt(2)&255,G[z+3]=B.charCodeAt(3)&255,z+=4,G.set(W,z),z+=W.length;var Y=A(G,q+4,z);G[z]=Y>>24&255,G[z+1]=Y>>16&255,G[z+2]=Y>>8&255,G[z+3]=Y&255}function y(B,W,G){for(var q=1,z=0,j=W;j<G;++j)q=(q+(B[j]&255))%65521,z=(z+q)%65521;return z<<16|q}function I(B){if(!p.isNodeJS)return H(B);try{var W;parseInt(process.versions.node)>=8?W=B:W=Buffer.from(B);var G=(__viteBrowserExternal||__CJS__import__4__$2).deflateSync(W,{level:9});return G instanceof Uint8Array?G:new Uint8Array(G)}catch(q){(0,r.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+q)}return H(B)}function H(B){var W=B.length,G=65535,q=Math.ceil(W/G),z=new Uint8Array(2+W+q*5+4),j=0;z[j++]=120,z[j++]=156;for(var Y=0;W>G;)z[j++]=0,z[j++]=255,z[j++]=255,z[j++]=0,z[j++]=0,z.set(B.subarray(Y,Y+G),j),j+=G,Y+=G,W-=G;z[j++]=1,z[j++]=W&255,z[j++]=W>>8&255,z[j++]=~W&65535&255,z[j++]=(~W&65535)>>8&255,z.set(B.subarray(Y),j),j+=B.length-Y;var K=y(B,0,B.length);return z[j++]=K>>24&255,z[j++]=K>>16&255,z[j++]=K>>8&255,z[j++]=K&255,z}function V(B,W,G,q){var z=B.width,j=B.height,Y,K,Z,ee=B.data;switch(W){case r.ImageKind.GRAYSCALE_1BPP:K=0,Y=1,Z=z+7>>3;break;case r.ImageKind.RGB_24BPP:K=2,Y=8,Z=z*3;break;case r.ImageKind.RGBA_32BPP:K=6,Y=8,Z=z*4;break;default:throw new Error("invalid format")}for(var ne=new Uint8Array((1+Z)*j),ae=0,te=0,re=0;re<j;++re)ne[ae++]=0,ne.set(ee.subarray(te,te+Z),ae),te+=Z,ae+=Z;if(W===r.ImageKind.GRAYSCALE_1BPP&&q){ae=0;for(var ie=0;ie<j;ie++){ae++;for(var de=0;de<Z;de++)ne[ae++]^=255}}var oe=new Uint8Array([z>>24&255,z>>16&255,z>>8&255,z&255,j>>24&255,j>>16&255,j>>8&255,j&255,Y,K,0,0,0]),le=I(ne),me=T.length+D*3+oe.length+le.length,Pe=new Uint8Array(me),Ce=0;return Pe.set(T,Ce),Ce+=T.length,C("IHDR",oe,Pe,Ce),Ce+=D+oe.length,C("IDATA",le,Pe,Ce),Ce+=D+le.length,C("IEND",new Uint8Array(0),Pe,Ce),(0,r.createObjectURL)(Pe,"image/png",G)}return function(W,G,q){var z=W.kind===void 0?r.ImageKind.GRAYSCALE_1BPP:W.kind;return V(W,z,G,q)}}(),o=function(){function T(){O(this,T),this.fontSizeScale=1,this.fontWeight=c.fontWeight,this.fontSize=0,this.textMatrix=r.IDENTITY_MATRIX,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=r.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=c.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=""}return M(T,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(k,S){this.x=k,this.y=S}}]),T}(),u=0,l=0,F=0;t.SVGGraphics=P=function(){function T(D,k,S){O(this,T),this.svgFactory=new i.DOMSVGFactory,this.current=new o,this.transformMatrix=r.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=D,this.objs=k,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!S,this._operatorIdMapping=[];for(var R in r.OPS)this._operatorIdMapping[r.OPS[R]]=R}return M(T,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var k=this.current;this.extraStack.push(k),this.current=k.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(k){this.save(),this.executeOpTree(k),this.restore()}},{key:"loadDependencies",value:function(k){for(var S=this,R=k.fnArray,E=k.argsArray,A=0,C=R.length;A<C;A++)if(R[A]===r.OPS.dependency){var y=!0,I=!1,H=void 0;try{for(var V=function(){var q=W.value,z=q.startsWith("g_")?S.commonObjs:S.objs,j=new Promise(function(Y){z.get(q,Y)});S.current.dependencies.push(j)},B=E[A][Symbol.iterator](),W;!(y=(W=B.next()).done);y=!0)V()}catch(G){I=!0,H=G}finally{try{!y&&B.return!=null&&B.return()}finally{if(I)throw H}}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(k,S,R,E,A,C){var y=[k,S,R,E,A,C];this.transformMatrix=r.Util.transform(this.transformMatrix,y),this.tgrp=null}},{key:"getSVG",value:function(k,S){var R=this;this.viewport=S;var E=this._initialize(S);return this.loadDependencies(k).then(function(){return R.transformMatrix=r.IDENTITY_MATRIX,R.executeOpTree(R.convertOpList(k)),E})}},{key:"convertOpList",value:function(k){for(var S=this._operatorIdMapping,R=k.argsArray,E=k.fnArray,A=[],C=0,y=E.length;C<y;C++){var I=E[C];A.push({fnId:I,fn:S[I],args:R[C]})}return b(A)}},{key:"executeOpTree",value:function(k){var S=!0,R=!1,E=void 0;try{for(var A=k[Symbol.iterator](),C;!(S=(C=A.next()).done);S=!0){var y=C.value,I=y.fn,H=y.fnId,V=y.args;switch(H|0){case r.OPS.beginText:this.beginText();break;case r.OPS.dependency:break;case r.OPS.setLeading:this.setLeading(V);break;case r.OPS.setLeadingMoveText:this.setLeadingMoveText(V[0],V[1]);break;case r.OPS.setFont:this.setFont(V);break;case r.OPS.showText:this.showText(V[0]);break;case r.OPS.showSpacedText:this.showText(V[0]);break;case r.OPS.endText:this.endText();break;case r.OPS.moveText:this.moveText(V[0],V[1]);break;case r.OPS.setCharSpacing:this.setCharSpacing(V[0]);break;case r.OPS.setWordSpacing:this.setWordSpacing(V[0]);break;case r.OPS.setHScale:this.setHScale(V[0]);break;case r.OPS.setTextMatrix:this.setTextMatrix(V[0],V[1],V[2],V[3],V[4],V[5]);break;case r.OPS.setTextRise:this.setTextRise(V[0]);break;case r.OPS.setTextRenderingMode:this.setTextRenderingMode(V[0]);break;case r.OPS.setLineWidth:this.setLineWidth(V[0]);break;case r.OPS.setLineJoin:this.setLineJoin(V[0]);break;case r.OPS.setLineCap:this.setLineCap(V[0]);break;case r.OPS.setMiterLimit:this.setMiterLimit(V[0]);break;case r.OPS.setFillRGBColor:this.setFillRGBColor(V[0],V[1],V[2]);break;case r.OPS.setStrokeRGBColor:this.setStrokeRGBColor(V[0],V[1],V[2]);break;case r.OPS.setStrokeColorN:this.setStrokeColorN(V);break;case r.OPS.setFillColorN:this.setFillColorN(V);break;case r.OPS.shadingFill:this.shadingFill(V[0]);break;case r.OPS.setDash:this.setDash(V[0],V[1]);break;case r.OPS.setRenderingIntent:this.setRenderingIntent(V[0]);break;case r.OPS.setFlatness:this.setFlatness(V[0]);break;case r.OPS.setGState:this.setGState(V[0]);break;case r.OPS.fill:this.fill();break;case r.OPS.eoFill:this.eoFill();break;case r.OPS.stroke:this.stroke();break;case r.OPS.fillStroke:this.fillStroke();break;case r.OPS.eoFillStroke:this.eoFillStroke();break;case r.OPS.clip:this.clip("nonzero");break;case r.OPS.eoClip:this.clip("evenodd");break;case r.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case r.OPS.paintJpegXObject:this.paintJpegXObject(V[0],V[1],V[2]);break;case r.OPS.paintImageXObject:this.paintImageXObject(V[0]);break;case r.OPS.paintInlineImageXObject:this.paintInlineImageXObject(V[0]);break;case r.OPS.paintImageMaskXObject:this.paintImageMaskXObject(V[0]);break;case r.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(V[0],V[1]);break;case r.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case r.OPS.closePath:this.closePath();break;case r.OPS.closeStroke:this.closeStroke();break;case r.OPS.closeFillStroke:this.closeFillStroke();break;case r.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case r.OPS.nextLine:this.nextLine();break;case r.OPS.transform:this.transform(V[0],V[1],V[2],V[3],V[4],V[5]);break;case r.OPS.constructPath:this.constructPath(V[0],V[1]);break;case r.OPS.endPath:this.endPath();break;case 92:this.group(y.items);break;default:(0,r.warn)("Unimplemented operator ".concat(I));break}}}catch(B){R=!0,E=B}finally{try{!S&&A.return!=null&&A.return()}finally{if(R)throw E}}}},{key:"setWordSpacing",value:function(k){this.current.wordSpacing=k}},{key:"setCharSpacing",value:function(k){this.current.charSpacing=k}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(k,S,R,E,A,C){var y=this.current;y.textMatrix=y.lineMatrix=[k,S,R,E,A,C],y.textMatrixScale=Math.sqrt(k*k+S*S),y.x=y.lineX=0,y.y=y.lineY=0,y.xcoords=[],y.tspan=this.svgFactory.createElement("svg:tspan"),y.tspan.setAttributeNS(null,"font-family",y.fontFamily),y.tspan.setAttributeNS(null,"font-size","".concat(_(y.fontSize),"px")),y.tspan.setAttributeNS(null,"y",_(-y.y)),y.txtElement=this.svgFactory.createElement("svg:text"),y.txtElement.appendChild(y.tspan)}},{key:"beginText",value:function(){var k=this.current;k.x=k.lineX=0,k.y=k.lineY=0,k.textMatrix=r.IDENTITY_MATRIX,k.lineMatrix=r.IDENTITY_MATRIX,k.textMatrixScale=1,k.tspan=this.svgFactory.createElement("svg:tspan"),k.txtElement=this.svgFactory.createElement("svg:text"),k.txtgrp=this.svgFactory.createElement("svg:g"),k.xcoords=[]}},{key:"moveText",value:function(k,S){var R=this.current;R.x=R.lineX+=k,R.y=R.lineY+=S,R.xcoords=[],R.tspan=this.svgFactory.createElement("svg:tspan"),R.tspan.setAttributeNS(null,"font-family",R.fontFamily),R.tspan.setAttributeNS(null,"font-size","".concat(_(R.fontSize),"px")),R.tspan.setAttributeNS(null,"y",_(-R.y))}},{key:"showText",value:function(k){var S=this.current,R=S.font,E=S.fontSize;if(E!==0){var A=S.charSpacing,C=S.wordSpacing,y=S.fontDirection,I=S.textHScale*y,H=R.vertical,V=E*S.fontMatrix[0],B=0,W=!0,G=!1,q=void 0;try{for(var z=k[Symbol.iterator](),j;!(W=(j=z.next()).done);W=!0){var Y=j.value;if(Y===null){B+=y*C;continue}else if((0,r.isNum)(Y)){B+=-Y*E*.001;continue}var K=Y.width,Z=Y.fontChar,ee=(Y.isSpace?C:0)+A,ne=K*V+ee*y;if(!Y.isInFont&&!R.missingFile){B+=ne;continue}S.xcoords.push(S.x+B),S.tspan.textContent+=Z,B+=ne}}catch(ie){G=!0,q=ie}finally{try{!W&&z.return!=null&&z.return()}finally{if(G)throw q}}H?S.y-=B*I:S.x+=B*I,S.tspan.setAttributeNS(null,"x",S.xcoords.map(_).join(" ")),S.tspan.setAttributeNS(null,"y",_(-S.y)),S.tspan.setAttributeNS(null,"font-family",S.fontFamily),S.tspan.setAttributeNS(null,"font-size","".concat(_(S.fontSize),"px")),S.fontStyle!==c.fontStyle&&S.tspan.setAttributeNS(null,"font-style",S.fontStyle),S.fontWeight!==c.fontWeight&&S.tspan.setAttributeNS(null,"font-weight",S.fontWeight);var ae=S.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;if(ae===r.TextRenderingMode.FILL||ae===r.TextRenderingMode.FILL_STROKE?(S.fillColor!==c.fillColor&&S.tspan.setAttributeNS(null,"fill",S.fillColor),S.fillAlpha<1&&S.tspan.setAttributeNS(null,"fill-opacity",S.fillAlpha)):S.textRenderingMode===r.TextRenderingMode.ADD_TO_PATH?S.tspan.setAttributeNS(null,"fill","transparent"):S.tspan.setAttributeNS(null,"fill","none"),ae===r.TextRenderingMode.STROKE||ae===r.TextRenderingMode.FILL_STROKE){var te=1/(S.textMatrixScale||1);this._setStrokeAttributes(S.tspan,te)}var re=S.textMatrix;S.textRise!==0&&(re=re.slice(),re[5]+=S.textRise),S.txtElement.setAttributeNS(null,"transform","".concat(d(re)," scale(").concat(_(I),", -1)")),S.txtElement.setAttributeNS(h,"xml:space","preserve"),S.txtElement.appendChild(S.tspan),S.txtgrp.appendChild(S.txtElement),this._ensureTransformGroup().appendChild(S.txtElement)}}},{key:"setLeadingMoveText",value:function(k,S){this.setLeading(-S),this.moveText(k,S)}},{key:"addFontStyle",value:function(k){this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var S=(0,r.createObjectURL)(k.data,k.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(k.loadedName,'";')+" src: url(".concat(S,`); }
|
|
10
|
+
`)}},{key:"setFont",value:function(k){var S=this.current,R=this.commonObjs.get(k[0]),E=k[1];S.font=R,this.embedFonts&&R.data&&!this.embeddedFonts[R.loadedName]&&(this.addFontStyle(R),this.embeddedFonts[R.loadedName]=R),S.fontMatrix=R.fontMatrix?R.fontMatrix:r.FONT_IDENTITY_MATRIX;var A="normal";R.black?A="900":R.bold&&(A="bold");var C=R.italic?"italic":"normal";E<0?(E=-E,S.fontDirection=-1):S.fontDirection=1,S.fontSize=E,S.fontFamily=R.loadedName,S.fontWeight=A,S.fontStyle=C,S.tspan=this.svgFactory.createElement("svg:tspan"),S.tspan.setAttributeNS(null,"y",_(-S.y)),S.xcoords=[]}},{key:"endText",value:function(){var k=this.current;k.textRenderingMode&r.TextRenderingMode.ADD_TO_PATH_FLAG&&k.txtElement&&k.txtElement.hasChildNodes()&&(k.element=k.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(k){k>0&&(this.current.lineWidth=k)}},{key:"setLineCap",value:function(k){this.current.lineCap=g[k]}},{key:"setLineJoin",value:function(k){this.current.lineJoin=v[k]}},{key:"setMiterLimit",value:function(k){this.current.miterLimit=k}},{key:"setStrokeAlpha",value:function(k){this.current.strokeAlpha=k}},{key:"setStrokeRGBColor",value:function(k,S,R){this.current.strokeColor=r.Util.makeCssRgb(k,S,R)}},{key:"setFillAlpha",value:function(k){this.current.fillAlpha=k}},{key:"setFillRGBColor",value:function(k,S,R){this.current.fillColor=r.Util.makeCssRgb(k,S,R),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[]}},{key:"setStrokeColorN",value:function(k){this.current.strokeColor=this._makeColorN_Pattern(k)}},{key:"setFillColorN",value:function(k){this.current.fillColor=this._makeColorN_Pattern(k)}},{key:"shadingFill",value:function(k){var S=this.viewport.width,R=this.viewport.height,E=r.Util.inverseTransform(this.transformMatrix),A=r.Util.applyTransform([0,0],E),C=r.Util.applyTransform([0,R],E),y=r.Util.applyTransform([S,0],E),I=r.Util.applyTransform([S,R],E),H=Math.min(A[0],C[0],y[0],I[0]),V=Math.min(A[1],C[1],y[1],I[1]),B=Math.max(A[0],C[0],y[0],I[0]),W=Math.max(A[1],C[1],y[1],I[1]),G=this.svgFactory.createElement("svg:rect");G.setAttributeNS(null,"x",H),G.setAttributeNS(null,"y",V),G.setAttributeNS(null,"width",B-H),G.setAttributeNS(null,"height",W-V),G.setAttributeNS(null,"fill",this._makeShadingPattern(k)),this._ensureTransformGroup().appendChild(G)}},{key:"_makeColorN_Pattern",value:function(k){return k[0]==="TilingPattern"?this._makeTilingPattern(k):this._makeShadingPattern(k)}},{key:"_makeTilingPattern",value:function(k){var S=k[1],R=k[2],E=k[3]||r.IDENTITY_MATRIX,A=U(k[4],4),C=A[0],y=A[1],I=A[2],H=A[3],V=k[5],B=k[6],W=k[7],G="shading".concat(F++),q=r.Util.applyTransform([C,y],E),z=U(q,2),j=z[0],Y=z[1],K=r.Util.applyTransform([I,H],E),Z=U(K,2),ee=Z[0],ne=Z[1],ae=r.Util.singularValueDecompose2dScale(E),te=U(ae,2),re=te[0],ie=te[1],de=V*re,oe=B*ie,le=this.svgFactory.createElement("svg:pattern");le.setAttributeNS(null,"id",G),le.setAttributeNS(null,"patternUnits","userSpaceOnUse"),le.setAttributeNS(null,"width",de),le.setAttributeNS(null,"height",oe),le.setAttributeNS(null,"x","".concat(j)),le.setAttributeNS(null,"y","".concat(Y));var me=this.svg,Pe=this.transformMatrix,Ce=this.current.fillColor,xe=this.current.strokeColor,be=this.svgFactory.create(ee-j,ne-Y);if(this.svg=be,this.transformMatrix=E,W===2){var Se=r.Util.makeCssRgb.apply(r.Util,e(S));this.current.fillColor=Se,this.current.strokeColor=Se}return this.executeOpTree(this.convertOpList(R)),this.svg=me,this.transformMatrix=Pe,this.current.fillColor=Ce,this.current.strokeColor=xe,le.appendChild(be.childNodes[0]),this.defs.appendChild(le),"url(#".concat(G,")")}},{key:"_makeShadingPattern",value:function(k){switch(k[0]){case"RadialAxial":var S="shading".concat(F++),R=k[3],E;switch(k[1]){case"axial":var A=k[4],C=k[5];E=this.svgFactory.createElement("svg:linearGradient"),E.setAttributeNS(null,"id",S),E.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),E.setAttributeNS(null,"x1",A[0]),E.setAttributeNS(null,"y1",A[1]),E.setAttributeNS(null,"x2",C[0]),E.setAttributeNS(null,"y2",C[1]);break;case"radial":var y=k[4],I=k[5],H=k[6],V=k[7];E=this.svgFactory.createElement("svg:radialGradient"),E.setAttributeNS(null,"id",S),E.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),E.setAttributeNS(null,"cx",I[0]),E.setAttributeNS(null,"cy",I[1]),E.setAttributeNS(null,"r",V),E.setAttributeNS(null,"fx",y[0]),E.setAttributeNS(null,"fy",y[1]),E.setAttributeNS(null,"fr",H);break;default:throw new Error("Unknown RadialAxial type: ".concat(k[1]))}var B=!0,W=!1,G=void 0;try{for(var q=R[Symbol.iterator](),z;!(B=(z=q.next()).done);B=!0){var j=z.value,Y=this.svgFactory.createElement("svg:stop");Y.setAttributeNS(null,"offset",j[0]),Y.setAttributeNS(null,"stop-color",j[1]),E.appendChild(Y)}}catch(K){W=!0,G=K}finally{try{!B&&q.return!=null&&q.return()}finally{if(W)throw G}}return this.defs.appendChild(E),"url(#".concat(S,")");case"Mesh":return(0,r.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(k[0]))}}},{key:"setDash",value:function(k,S){this.current.dashArray=k,this.current.dashPhase=S}},{key:"constructPath",value:function(k,S){var R=this.current,E=R.x,A=R.y,C=[],y=0,I=!0,H=!1,V=void 0;try{for(var B=k[Symbol.iterator](),W;!(I=(W=B.next()).done);I=!0){var G=W.value;switch(G|0){case r.OPS.rectangle:E=S[y++],A=S[y++];var q=S[y++],z=S[y++],j=E+q,Y=A+z;C.push("M",_(E),_(A),"L",_(j),_(A),"L",_(j),_(Y),"L",_(E),_(Y),"Z");break;case r.OPS.moveTo:E=S[y++],A=S[y++],C.push("M",_(E),_(A));break;case r.OPS.lineTo:E=S[y++],A=S[y++],C.push("L",_(E),_(A));break;case r.OPS.curveTo:E=S[y+4],A=S[y+5],C.push("C",_(S[y]),_(S[y+1]),_(S[y+2]),_(S[y+3]),_(E),_(A)),y+=6;break;case r.OPS.curveTo2:C.push("C",_(E),_(A),_(S[y]),_(S[y+1]),_(S[y+2]),_(S[y+3])),E=S[y+2],A=S[y+3],y+=4;break;case r.OPS.curveTo3:E=S[y+2],A=S[y+3],C.push("C",_(S[y]),_(S[y+1]),_(E),_(A),_(E),_(A)),y+=4;break;case r.OPS.closePath:C.push("Z");break}}}catch(K){H=!0,V=K}finally{try{!I&&B.return!=null&&B.return()}finally{if(H)throw V}}C=C.join(" "),R.path&&k.length>0&&k[0]!==r.OPS.rectangle&&k[0]!==r.OPS.moveTo?C=R.path.getAttributeNS(null,"d")+C:(R.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(R.path)),R.path.setAttributeNS(null,"d",C),R.path.setAttributeNS(null,"fill","none"),R.element=R.path,R.setCurrentPoint(E,A)}},{key:"endPath",value:function(){var k=this.current;if(k.path=null,!!this.pendingClip){if(!k.element){this.pendingClip=null;return}var S="clippath".concat(u++),R=this.svgFactory.createElement("svg:clipPath");R.setAttributeNS(null,"id",S),R.setAttributeNS(null,"transform",d(this.transformMatrix));var E=k.element.cloneNode(!0);this.pendingClip==="evenodd"?E.setAttributeNS(null,"clip-rule","evenodd"):E.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,R.appendChild(E),this.defs.appendChild(R),k.activeClipUrl&&(k.clipGroup=null,this.extraStack.forEach(function(A){A.clipGroup=null}),R.setAttributeNS(null,"clip-path",k.activeClipUrl)),k.activeClipUrl="url(#".concat(S,")"),this.tgrp=null}}},{key:"clip",value:function(k){this.pendingClip=k}},{key:"closePath",value:function(){var k=this.current;if(k.path){var S="".concat(k.path.getAttributeNS(null,"d"),"Z");k.path.setAttributeNS(null,"d",S)}}},{key:"setLeading",value:function(k){this.current.leading=-k}},{key:"setTextRise",value:function(k){this.current.textRise=k}},{key:"setTextRenderingMode",value:function(k){this.current.textRenderingMode=k}},{key:"setHScale",value:function(k){this.current.textHScale=k/100}},{key:"setRenderingIntent",value:function(k){}},{key:"setFlatness",value:function(k){}},{key:"setGState",value:function(k){var S=!0,R=!1,E=void 0;try{for(var A=k[Symbol.iterator](),C;!(S=(C=A.next()).done);S=!0){var y=U(C.value,2),I=y[0],H=y[1];switch(I){case"LW":this.setLineWidth(H);break;case"LC":this.setLineCap(H);break;case"LJ":this.setLineJoin(H);break;case"ML":this.setMiterLimit(H);break;case"D":this.setDash(H[0],H[1]);break;case"RI":this.setRenderingIntent(H);break;case"FL":this.setFlatness(H);break;case"Font":this.setFont(H);break;case"CA":this.setStrokeAlpha(H);break;case"ca":this.setFillAlpha(H);break;default:(0,r.warn)("Unimplemented graphic state operator ".concat(I));break}}}catch(V){R=!0,E=V}finally{try{!S&&A.return!=null&&A.return()}finally{if(R)throw E}}}},{key:"fill",value:function(){var k=this.current;k.element&&(k.element.setAttributeNS(null,"fill",k.fillColor),k.element.setAttributeNS(null,"fill-opacity",k.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var k=this.current;k.element&&(this._setStrokeAttributes(k.element),k.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(k){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,R=this.current,E=R.dashArray;S!==1&&E.length>0&&(E=E.map(function(A){return S*A})),k.setAttributeNS(null,"stroke",R.strokeColor),k.setAttributeNS(null,"stroke-opacity",R.strokeAlpha),k.setAttributeNS(null,"stroke-miterlimit",_(R.miterLimit)),k.setAttributeNS(null,"stroke-linecap",R.lineCap),k.setAttributeNS(null,"stroke-linejoin",R.lineJoin),k.setAttributeNS(null,"stroke-width",_(S*R.lineWidth)+"px"),k.setAttributeNS(null,"stroke-dasharray",E.map(_).join(" ")),k.setAttributeNS(null,"stroke-dashoffset",_(S*R.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var k=this.svgFactory.createElement("svg:rect");k.setAttributeNS(null,"x","0"),k.setAttributeNS(null,"y","0"),k.setAttributeNS(null,"width","1px"),k.setAttributeNS(null,"height","1px"),k.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(k)}},{key:"paintJpegXObject",value:function(k,S,R){var E=this.objs.get(k),A=this.svgFactory.createElement("svg:image");A.setAttributeNS(f,"xlink:href",E.src),A.setAttributeNS(null,"width",_(S)),A.setAttributeNS(null,"height",_(R)),A.setAttributeNS(null,"x","0"),A.setAttributeNS(null,"y",_(-R)),A.setAttributeNS(null,"transform","scale(".concat(_(1/S)," ").concat(_(-1/R),")")),this._ensureTransformGroup().appendChild(A)}},{key:"paintImageXObject",value:function(k){var S=this.objs.get(k);if(!S){(0,r.warn)("Dependent image with object ID ".concat(k," is not ready yet"));return}this.paintInlineImageXObject(S)}},{key:"paintInlineImageXObject",value:function(k,S){var R=k.width,E=k.height,A=s(k,this.forceDataSchema,!!S),C=this.svgFactory.createElement("svg:rect");C.setAttributeNS(null,"x","0"),C.setAttributeNS(null,"y","0"),C.setAttributeNS(null,"width",_(R)),C.setAttributeNS(null,"height",_(E)),this.current.element=C,this.clip("nonzero");var y=this.svgFactory.createElement("svg:image");y.setAttributeNS(f,"xlink:href",A),y.setAttributeNS(null,"x","0"),y.setAttributeNS(null,"y",_(-E)),y.setAttributeNS(null,"width",_(R)+"px"),y.setAttributeNS(null,"height",_(E)+"px"),y.setAttributeNS(null,"transform","scale(".concat(_(1/R)," ").concat(_(-1/E),")")),S?S.appendChild(y):this._ensureTransformGroup().appendChild(y)}},{key:"paintImageMaskXObject",value:function(k){var S=this.current,R=k.width,E=k.height,A=S.fillColor;S.maskId="mask".concat(l++);var C=this.svgFactory.createElement("svg:mask");C.setAttributeNS(null,"id",S.maskId);var y=this.svgFactory.createElement("svg:rect");y.setAttributeNS(null,"x","0"),y.setAttributeNS(null,"y","0"),y.setAttributeNS(null,"width",_(R)),y.setAttributeNS(null,"height",_(E)),y.setAttributeNS(null,"fill",A),y.setAttributeNS(null,"mask","url(#".concat(S.maskId,")")),this.defs.appendChild(C),this._ensureTransformGroup().appendChild(y),this.paintInlineImageXObject(k,C)}},{key:"paintFormXObjectBegin",value:function(k,S){if(Array.isArray(k)&&k.length===6&&this.transform(k[0],k[1],k[2],k[3],k[4],k[5]),S){var R=S[2]-S[0],E=S[3]-S[1],A=this.svgFactory.createElement("svg:rect");A.setAttributeNS(null,"x",S[0]),A.setAttributeNS(null,"y",S[1]),A.setAttributeNS(null,"width",_(R)),A.setAttributeNS(null,"height",_(E)),this.current.element=A,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(k){var S=this.svgFactory.create(k.width,k.height),R=this.svgFactory.createElement("svg:defs");S.appendChild(R),this.defs=R;var E=this.svgFactory.createElement("svg:g");return E.setAttributeNS(null,"transform",d(k.transform)),S.appendChild(E),this.svg=E,S}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var k=this.svgFactory.createElement("svg:g");k.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(k),this.current.clipGroup=k}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",d(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),T}()}},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var r=e(a(191)),i=a(1),p=a(209);function e(D){return D&&D.__esModule?D:{default:D}}function N(D){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?N=function(S){return typeof S}:N=function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},N(D)}function w(D,k){return k&&(N(k)==="object"||typeof k=="function")?k:$(D)}function $(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function U(D){return U=Object.setPrototypeOf?Object.getPrototypeOf:function(S){return S.__proto__||Object.getPrototypeOf(S)},U(D)}function m(D,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(k&&k.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),k&&n(D,k)}function n(D,k){return n=Object.setPrototypeOf||function(R,E){return R.__proto__=E,R},n(D,k)}function J(D,k,S,R,E,A,C){try{var y=D[A](C),I=y.value}catch(H){S(H);return}y.done?k(I):Promise.resolve(I).then(R,E)}function O(D){return function(){var k=this,S=arguments;return new Promise(function(R,E){var A=D.apply(k,S);function C(I){J(A,R,E,C,y,"next",I)}function y(I){J(A,R,E,C,y,"throw",I)}C(void 0)})}}function L(D,k){if(!(D instanceof k))throw new TypeError("Cannot call a class as a function")}function M(D,k){for(var S=0;S<k.length;S++){var R=k[S];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(D,R.key,R)}}function P(D,k,S){return k&&M(D.prototype,k),D}var b=__viteBrowserExternal||__CJS__import__4__$2,_=__viteBrowserExternal||__CJS__import__4__$2,d=__viteBrowserExternal||__CJS__import__4__$2,c=__viteBrowserExternal||__CJS__import__4__$2,h=/^file:\/\/\/[a-zA-Z]:\//;function f(D){var k=c.parse(D);return k.protocol==="file:"||k.host?k:/^[a-z]:[/\\]/i.test(D)?c.parse("file:///".concat(D)):(k.host||(k.protocol="file:"),k)}var g=function(){function D(k){L(this,D),this.source=k,this.url=f(k.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&k.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return P(D,[{key:"getFullReader",value:function(){return(0,i.assert)(!this._fullRequestReader),this._fullRequestReader=this.isFsUrl?new F(this):new u(this),this._fullRequestReader}},{key:"getRangeReader",value:function(S,R){if(R<=this._progressiveDataLength)return null;var E=this.isFsUrl?new T(this,S,R):new l(this,S,R);return this._rangeRequestReaders.push(E),E}},{key:"cancelAllRequests",value:function(S){this._fullRequestReader&&this._fullRequestReader.cancel(S);var R=this._rangeRequestReaders.slice(0);R.forEach(function(E){E.cancel(S)})}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),D}();t.PDFNodeStream=g;var v=function(){function D(k){L(this,D),this._url=k.url,this._done=!1,this._storedError=null,this.onProgress=null;var S=k.source;this._contentLength=S.length,this._loaded=0,this._filename=null,this._disableRange=S.disableRange||!1,this._rangeChunkSize=S.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!S.disableStream,this._isRangeSupported=!S.disableRange,this._readableStream=null,this._readCapability=(0,i.createPromiseCapability)(),this._headersCapability=(0,i.createPromiseCapability)()}return P(D,[{key:"read",value:function(){var k=O(r.default.mark(function R(){var E,A;return r.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,this._readCapability.promise;case 2:if(!this._done){y.next=4;break}return y.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){y.next=6;break}throw this._storedError;case 6:if(E=this._readableStream.read(),E!==null){y.next=10;break}return this._readCapability=(0,i.createPromiseCapability)(),y.abrupt("return",this.read());case 10:return this._loaded+=E.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),A=new Uint8Array(E).buffer,y.abrupt("return",{value:A,done:!1});case 14:case"end":return y.stop()}},R,this)}));function S(){return k.apply(this,arguments)}return S}()},{key:"cancel",value:function(S){if(!this._readableStream){this._error(S);return}this._readableStream.destroy(S)}},{key:"_error",value:function(S){this._storedError=S,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(S){var R=this;this._readableStream=S,S.on("readable",function(){R._readCapability.resolve()}),S.on("end",function(){S.destroy(),R._done=!0,R._readCapability.resolve()}),S.on("error",function(E){R._error(E)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new i.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),D}(),s=function(){function D(k){L(this,D),this._url=k.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,i.createPromiseCapability)();var S=k.source;this._isStreamingSupported=!S.disableStream}return P(D,[{key:"read",value:function(){var k=O(r.default.mark(function R(){var E,A;return r.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,this._readCapability.promise;case 2:if(!this._done){y.next=4;break}return y.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){y.next=6;break}throw this._storedError;case 6:if(E=this._readableStream.read(),E!==null){y.next=10;break}return this._readCapability=(0,i.createPromiseCapability)(),y.abrupt("return",this.read());case 10:return this._loaded+=E.length,this.onProgress&&this.onProgress({loaded:this._loaded}),A=new Uint8Array(E).buffer,y.abrupt("return",{value:A,done:!1});case 14:case"end":return y.stop()}},R,this)}));function S(){return k.apply(this,arguments)}return S}()},{key:"cancel",value:function(S){if(!this._readableStream){this._error(S);return}this._readableStream.destroy(S)}},{key:"_error",value:function(S){this._storedError=S,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(S){var R=this;this._readableStream=S,S.on("readable",function(){R._readCapability.resolve()}),S.on("end",function(){S.destroy(),R._done=!0,R._readCapability.resolve()}),S.on("error",function(E){R._error(E)}),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),D}();function o(D,k){return{protocol:D.protocol,auth:D.auth,host:D.hostname,port:D.port,path:D.path,method:"GET",headers:k}}var u=function(D){m(k,D);function k(S){var R;L(this,k),R=w(this,U(k).call(this,S));var E=function(C){if(C.statusCode===404){var y=new i.MissingPDFException('Missing PDF "'.concat(R._url,'".'));R._storedError=y,R._headersCapability.reject(y);return}R._headersCapability.resolve(),R._setReadableStream(C);var I=function(G){return R._readableStream.headers[G.toLowerCase()]},H=(0,p.validateRangeRequestCapabilities)({getResponseHeader:I,isHttp:S.isHttp,rangeChunkSize:R._rangeChunkSize,disableRange:R._disableRange}),V=H.allowRangeRequests,B=H.suggestedLength;R._isRangeSupported=V,R._contentLength=B||R._contentLength,R._filename=(0,p.extractFilenameFromHeader)(I)};return R._request=null,R._url.protocol==="http:"?R._request=_.request(o(R._url,S.httpHeaders),E):R._request=d.request(o(R._url,S.httpHeaders),E),R._request.on("error",function(A){R._storedError=A,R._headersCapability.reject(A)}),R._request.end(),R}return k}(v),l=function(D){m(k,D);function k(S,R,E){var A;L(this,k),A=w(this,U(k).call(this,S)),A._httpHeaders={};for(var C in S.httpHeaders){var y=S.httpHeaders[C];typeof y>"u"||(A._httpHeaders[C]=y)}A._httpHeaders.Range="bytes=".concat(R,"-").concat(E-1);var I=function(V){if(V.statusCode===404){var B=new i.MissingPDFException('Missing PDF "'.concat(A._url,'".'));A._storedError=B;return}A._setReadableStream(V)};return A._request=null,A._url.protocol==="http:"?A._request=_.request(o(A._url,A._httpHeaders),I):A._request=d.request(o(A._url,A._httpHeaders),I),A._request.on("error",function(H){A._storedError=H}),A._request.end(),A}return k}(s),F=function(D){m(k,D);function k(S){var R;L(this,k),R=w(this,U(k).call(this,S));var E=decodeURIComponent(R._url.path);return h.test(R._url.href)&&(E=E.replace(/^\//,"")),b.lstat(E,function(A,C){if(A){A.code==="ENOENT"&&(A=new i.MissingPDFException('Missing PDF "'.concat(E,'".'))),R._storedError=A,R._headersCapability.reject(A);return}R._contentLength=C.size,R._setReadableStream(b.createReadStream(E)),R._headersCapability.resolve()}),R}return k}(v),T=function(D){m(k,D);function k(S,R,E){var A;L(this,k),A=w(this,U(k).call(this,S));var C=decodeURIComponent(A._url.path);return h.test(A._url.href)&&(C=C.replace(/^\//,"")),A._setReadableStream(b.createReadStream(C,{start:R,end:E-1})),A}return k}(s)},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=N,t.extractFilenameFromHeader=e,t.validateRangeRequestCapabilities=p,t.validateResponseStatus=w;var r=a(1),i=a(210);function p($){var U=$.getResponseHeader,m=$.isHttp,n=$.rangeChunkSize,J=$.disableRange;(0,r.assert)(n>0,"Range chunk size must be larger than zero");var O={allowRangeRequests:!1,suggestedLength:void 0},L=parseInt(U("Content-Length"),10);if(!Number.isInteger(L)||(O.suggestedLength=L,L<=2*n)||J||!m||U("Accept-Ranges")!=="bytes")return O;var M=U("Content-Encoding")||"identity";return M!=="identity"||(O.allowRangeRequests=!0),O}function e($){var U=$("Content-Disposition");if(U){var m=(0,i.getFilenameFromContentDispositionHeader)(U);if(m.includes("%"))try{m=decodeURIComponent(m)}catch{}if(/\.pdf$/i.test(m))return m}return null}function N($,U){return $===404||$===0&&U.startsWith("file:")?new r.MissingPDFException('Missing PDF "'+U+'".'):new r.UnexpectedResponseException("Unexpected server response ("+$+') while retrieving PDF "'+U+'".',$)}function w($){return $===200||$===206}},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=N;function r(w,$){return e(w)||p(w,$)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function p(w,$){if(Symbol.iterator in Object(w)||Object.prototype.toString.call(w)==="[object Arguments]"){var U=[],m=!0,n=!1,J=void 0;try{for(var O=w[Symbol.iterator](),L;!(m=(L=O.next()).done)&&(U.push(L.value),!($&&U.length===$));m=!0);}catch(M){n=!0,J=M}finally{try{!m&&O.return!=null&&O.return()}finally{if(n)throw J}}return U}}function e(w){if(Array.isArray(w))return w}function N(w){var $=!0,U=O("filename\\*","i").exec(w);if(U){U=U[1];var m=b(U);return m=unescape(m),m=_(m),m=d(m),M(m)}if(U=P(w),U){var n=d(U);return M(n)}if(U=O("filename","i").exec(w),U){U=U[1];var J=b(U);return J=d(J),M(J)}function O(c,h){return new RegExp("(?:^|;)\\s*"+c+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',h)}function L(c,h){if(c){if(!/^[\x00-\xFF]+$/.test(h))return h;try{var f=new TextDecoder(c,{fatal:!0}),g=Array.from(h,function(v){return v.charCodeAt(0)&255});h=f.decode(new Uint8Array(g)),$=!1}catch{if(/^utf-?8$/i.test(c))try{h=decodeURIComponent(escape(h)),$=!1}catch{}}}return h}function M(c){return $&&/[\x80-\xff]/.test(c)&&(c=L("utf-8",c),$&&(c=L("iso-8859-1",c))),c}function P(c){for(var h=[],f,g=O("filename\\*((?!0\\d)\\d+)(\\*?)","ig");(f=g.exec(c))!==null;){var v=f,s=r(v,4),o=s[1],u=s[2],l=s[3];if(o=parseInt(o,10),o in h){if(o===0)break;continue}h[o]=[u,l]}for(var F=[],T=0;T<h.length&&T in h;++T){var D=r(h[T],2),k=D[0],S=D[1];S=b(S),k&&(S=unescape(S),T===0&&(S=_(S))),F.push(S)}return F.join("")}function b(c){if(c.startsWith('"')){for(var h=c.slice(1).split('\\"'),f=0;f<h.length;++f){var g=h[f].indexOf('"');g!==-1&&(h[f]=h[f].slice(0,g),h.length=f+1),h[f]=h[f].replace(/\\(.)/g,"$1")}c=h.join('"')}return c}function _(c){var h=c.indexOf("'");if(h===-1)return c;var f=c.slice(0,h),g=c.slice(h+1),v=g.replace(/^[^']*'/,"");return L(f,v)}function d(c){return!c.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(c)?c:c.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(h,f,g,v){if(g==="q"||g==="Q")return v=v.replace(/_/g," "),v=v.replace(/=([0-9a-fA-F]{2})/g,function(s,o){return String.fromCharCode(parseInt(o,16))}),L(f,v);try{v=atob(v)}catch{}return L(f,v)})}return""}},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var r=e(a(191)),i=a(1),p=a(209);function e(_){return _&&_.__esModule?_:{default:_}}function N(_,d,c,h,f,g,v){try{var s=_[g](v),o=s.value}catch(u){c(u);return}s.done?d(o):Promise.resolve(o).then(h,f)}function w(_){return function(){var d=this,c=arguments;return new Promise(function(h,f){var g=_.apply(d,c);function v(o){N(g,h,f,v,s,"next",o)}function s(o){N(g,h,f,v,s,"throw",o)}v(void 0)})}}function $(_,d){if(!(_ instanceof d))throw new TypeError("Cannot call a class as a function")}function U(_,d){for(var c=0;c<d.length;c++){var h=d[c];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(_,h.key,h)}}function m(_,d,c){return d&&U(_.prototype,d),_}var n=200,J=206;function O(_){var d=_.response;if(typeof d!="string")return d;var c=(0,i.stringToBytes)(d);return c.buffer}var L=function(){function _(d,c){$(this,_),this.url=d,c=c||{},this.isHttp=/^https?:/i.test(d),this.httpHeaders=this.isHttp&&c.httpHeaders||{},this.withCredentials=c.withCredentials||!1,this.getXhr=c.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return m(_,[{key:"requestRange",value:function(c,h,f){var g={begin:c,end:h};for(var v in f)g[v]=f[v];return this.request(g)}},{key:"requestFull",value:function(c){return this.request(c)}},{key:"request",value:function(c){var h=this.getXhr(),f=this.currXhrId++,g=this.pendingRequests[f]={xhr:h};h.open("GET",this.url),h.withCredentials=this.withCredentials;for(var v in this.httpHeaders){var s=this.httpHeaders[v];typeof s>"u"||h.setRequestHeader(v,s)}return this.isHttp&&"begin"in c&&"end"in c?(h.setRequestHeader("Range","bytes=".concat(c.begin,"-").concat(c.end-1)),g.expectedStatus=J):g.expectedStatus=n,h.responseType="arraybuffer",c.onError&&(h.onerror=function(o){c.onError(h.status)}),h.onreadystatechange=this.onStateChange.bind(this,f),h.onprogress=this.onProgress.bind(this,f),g.onHeadersReceived=c.onHeadersReceived,g.onDone=c.onDone,g.onError=c.onError,g.onProgress=c.onProgress,h.send(null),f}},{key:"onProgress",value:function(c,h){var f=this.pendingRequests[c];f&&f.onProgress&&f.onProgress(h)}},{key:"onStateChange",value:function(c,h){var f=this.pendingRequests[c];if(f){var g=f.xhr;if(g.readyState>=2&&f.onHeadersReceived&&(f.onHeadersReceived(),delete f.onHeadersReceived),g.readyState===4&&c in this.pendingRequests){if(delete this.pendingRequests[c],g.status===0&&this.isHttp){f.onError&&f.onError(g.status);return}var v=g.status||n,s=v===n&&f.expectedStatus===J;if(!s&&v!==f.expectedStatus){f.onError&&f.onError(g.status);return}var o=O(g);if(v===J){var u=g.getResponseHeader("Content-Range"),l=/bytes (\d+)-(\d+)\/(\d+)/.exec(u);f.onDone({begin:parseInt(l[1],10),chunk:o})}else o?f.onDone({begin:0,chunk:o}):f.onError&&f.onError(g.status)}}}},{key:"hasPendingRequests",value:function(){for(var c in this.pendingRequests)return!0;return!1}},{key:"getRequestXhr",value:function(c){return this.pendingRequests[c].xhr}},{key:"isPendingRequest",value:function(c){return c in this.pendingRequests}},{key:"abortAllRequests",value:function(){for(var c in this.pendingRequests)this.abortRequest(c|0)}},{key:"abortRequest",value:function(c){var h=this.pendingRequests[c].xhr;delete this.pendingRequests[c],h.abort()}}]),_}(),M=function(){function _(d){$(this,_),this._source=d,this._manager=new L(d.url,{httpHeaders:d.httpHeaders,withCredentials:d.withCredentials}),this._rangeChunkSize=d.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return m(_,[{key:"_onRangeRequestReaderClosed",value:function(c){var h=this._rangeRequestReaders.indexOf(c);h>=0&&this._rangeRequestReaders.splice(h,1)}},{key:"getFullReader",value:function(){return(0,i.assert)(!this._fullRequestReader),this._fullRequestReader=new P(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(c,h){var f=new b(this._manager,c,h);return f.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(f),f}},{key:"cancelAllRequests",value:function(c){this._fullRequestReader&&this._fullRequestReader.cancel(c);var h=this._rangeRequestReaders.slice(0);h.forEach(function(f){f.cancel(c)})}}]),_}();t.PDFNetworkStream=M;var P=function(){function _(d,c){$(this,_),this._manager=d;var h={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=c.url,this._fullRequestId=d.requestFull(h),this._headersReceivedCapability=(0,i.createPromiseCapability)(),this._disableRange=c.disableRange||!1,this._contentLength=c.length,this._rangeChunkSize=c.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}return m(_,[{key:"_onHeadersReceived",value:function(){var c=this._fullRequestId,h=this._manager.getRequestXhr(c),f=function(u){return h.getResponseHeader(u)},g=(0,p.validateRangeRequestCapabilities)({getResponseHeader:f,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),v=g.allowRangeRequests,s=g.suggestedLength;v&&(this._isRangeSupported=!0),this._contentLength=s||this._contentLength,this._filename=(0,p.extractFilenameFromHeader)(f),this._isRangeSupported&&this._manager.abortRequest(c),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(c){if(c)if(this._requests.length>0){var h=this._requests.shift();h.resolve({value:c.chunk,done:!1})}else this._cachedChunks.push(c.chunk);this._done=!0,!(this._cachedChunks.length>0)&&(this._requests.forEach(function(f){f.resolve({value:void 0,done:!0})}),this._requests=[])}},{key:"_onError",value:function(c){var h=this._url,f=(0,p.createResponseStatusError)(c,h);this._storedError=f,this._headersReceivedCapability.reject(f),this._requests.forEach(function(g){g.reject(f)}),this._requests=[],this._cachedChunks=[]}},{key:"_onProgress",value:function(c){this.onProgress&&this.onProgress({loaded:c.loaded,total:c.lengthComputable?c.total:this._contentLength})}},{key:"read",value:function(){var d=w(r.default.mark(function h(){var f,g;return r.default.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!this._storedError){s.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){s.next=5;break}return f=this._cachedChunks.shift(),s.abrupt("return",{value:f,done:!1});case 5:if(!this._done){s.next=7;break}return s.abrupt("return",{value:void 0,done:!0});case 7:return g=(0,i.createPromiseCapability)(),this._requests.push(g),s.abrupt("return",g.promise);case 10:case"end":return s.stop()}},h,this)}));function c(){return d.apply(this,arguments)}return c}()},{key:"cancel",value:function(c){this._done=!0,this._headersReceivedCapability.reject(c),this._requests.forEach(function(h){h.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}}]),_}(),b=function(){function _(d,c,h){$(this,_),this._manager=d;var f={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=d.requestRange(c,h,f),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}return m(_,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(c){var h=c.chunk;if(this._requests.length>0){var f=this._requests.shift();f.resolve({value:h,done:!1})}else this._queuedChunk=h;this._done=!0,this._requests.forEach(function(g){g.resolve({value:void 0,done:!0})}),this._requests=[],this._close()}},{key:"_onProgress",value:function(c){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:c.loaded})}},{key:"read",value:function(){var d=w(r.default.mark(function h(){var f,g;return r.default.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(this._queuedChunk===null){s.next=4;break}return f=this._queuedChunk,this._queuedChunk=null,s.abrupt("return",{value:f,done:!1});case 4:if(!this._done){s.next=6;break}return s.abrupt("return",{value:void 0,done:!0});case 6:return g=(0,i.createPromiseCapability)(),this._requests.push(g),s.abrupt("return",g.promise);case 9:case"end":return s.stop()}},h,this)}));function c(){return d.apply(this,arguments)}return c}()},{key:"cancel",value:function(c){this._done=!0,this._requests.forEach(function(h){h.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},{key:"isStreamingSupported",get:function(){return!1}}]),_}()},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var r=e(a(191)),i=a(1),p=a(209);function e(P){return P&&P.__esModule?P:{default:P}}function N(P,b,_,d,c,h,f){try{var g=P[h](f),v=g.value}catch(s){_(s);return}g.done?b(v):Promise.resolve(v).then(d,c)}function w(P){return function(){var b=this,_=arguments;return new Promise(function(d,c){var h=P.apply(b,_);function f(v){N(h,d,c,f,g,"next",v)}function g(v){N(h,d,c,f,g,"throw",v)}f(void 0)})}}function $(P,b){if(!(P instanceof b))throw new TypeError("Cannot call a class as a function")}function U(P,b){for(var _=0;_<b.length;_++){var d=b[_];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(P,d.key,d)}}function m(P,b,_){return b&&U(P.prototype,b),P}function n(P,b,_){return{method:"GET",headers:P,signal:_&&_.signal,mode:"cors",credentials:b?"include":"same-origin",redirect:"follow"}}function J(P){var b=new Headers;for(var _ in P){var d=P[_];typeof d>"u"||b.append(_,d)}return b}var O=function(){function P(b){$(this,P),this.source=b,this.isHttp=/^https?:/i.test(b.url),this.httpHeaders=this.isHttp&&b.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return m(P,[{key:"getFullReader",value:function(){return(0,i.assert)(!this._fullRequestReader),this._fullRequestReader=new L(this),this._fullRequestReader}},{key:"getRangeReader",value:function(_,d){if(d<=this._progressiveDataLength)return null;var c=new M(this,_,d);return this._rangeRequestReaders.push(c),c}},{key:"cancelAllRequests",value:function(_){this._fullRequestReader&&this._fullRequestReader.cancel(_);var d=this._rangeRequestReaders.slice(0);d.forEach(function(c){c.cancel(_)})}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),P}();t.PDFFetchStream=O;var L=function(){function P(b){var _=this;$(this,P),this._stream=b,this._reader=null,this._loaded=0,this._filename=null;var d=b.source;this._withCredentials=d.withCredentials||!1,this._contentLength=d.length,this._headersCapability=(0,i.createPromiseCapability)(),this._disableRange=d.disableRange||!1,this._rangeChunkSize=d.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),typeof AbortController<"u"&&(this._abortController=new AbortController),this._isStreamingSupported=!d.disableStream,this._isRangeSupported=!d.disableRange,this._headers=J(this._stream.httpHeaders);var c=d.url;fetch(c,n(this._headers,this._withCredentials,this._abortController)).then(function(h){if(!(0,p.validateResponseStatus)(h.status))throw(0,p.createResponseStatusError)(h.status,c);_._reader=h.body.getReader(),_._headersCapability.resolve();var f=function(u){return h.headers.get(u)},g=(0,p.validateRangeRequestCapabilities)({getResponseHeader:f,isHttp:_._stream.isHttp,rangeChunkSize:_._rangeChunkSize,disableRange:_._disableRange}),v=g.allowRangeRequests,s=g.suggestedLength;_._isRangeSupported=v,_._contentLength=s||_._contentLength,_._filename=(0,p.extractFilenameFromHeader)(f),!_._isStreamingSupported&&_._isRangeSupported&&_.cancel(new i.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}return m(P,[{key:"read",value:function(){var b=w(r.default.mark(function d(){var c,h,f,g;return r.default.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this._headersCapability.promise;case 2:return s.next=4,this._reader.read();case 4:if(c=s.sent,h=c.value,f=c.done,!f){s.next=9;break}return s.abrupt("return",{value:h,done:f});case 9:return this._loaded+=h.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),g=new Uint8Array(h).buffer,s.abrupt("return",{value:g,done:!1});case 13:case"end":return s.stop()}},d,this)}));function _(){return b.apply(this,arguments)}return _}()},{key:"cancel",value:function(_){this._reader&&this._reader.cancel(_),this._abortController&&this._abortController.abort()}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),P}(),M=function(){function P(b,_,d){var c=this;$(this,P),this._stream=b,this._reader=null,this._loaded=0;var h=b.source;this._withCredentials=h.withCredentials||!1,this._readCapability=(0,i.createPromiseCapability)(),this._isStreamingSupported=!h.disableStream,typeof AbortController<"u"&&(this._abortController=new AbortController),this._headers=J(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(_,"-").concat(d-1));var f=h.url;fetch(f,n(this._headers,this._withCredentials,this._abortController)).then(function(g){if(!(0,p.validateResponseStatus)(g.status))throw(0,p.createResponseStatusError)(g.status,f);c._readCapability.resolve(),c._reader=g.body.getReader()}),this.onProgress=null}return m(P,[{key:"read",value:function(){var b=w(r.default.mark(function d(){var c,h,f,g;return r.default.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this._readCapability.promise;case 2:return s.next=4,this._reader.read();case 4:if(c=s.sent,h=c.value,f=c.done,!f){s.next=9;break}return s.abrupt("return",{value:h,done:f});case 9:return this._loaded+=h.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),g=new Uint8Array(h).buffer,s.abrupt("return",{value:g,done:!1});case 13:case"end":return s.stop()}},d,this)}));function _(){return b.apply(this,arguments)}return _}()},{key:"cancel",value:function(_){this._reader&&this._reader.cancel(_),this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),P}()}])});(module$7.exports==null?{}:module$7.exports).default||module$7.exports;(module$7.exports==null?{}:module$7.exports).undefined;(module$7.exports==null?{}:module$7.exports).build;(module$7.exports==null?{}:module$7.exports).version;(module$7.exports==null?{}:module$7.exports).getDocument;(module$7.exports==null?{}:module$7.exports).LoopbackPort;(module$7.exports==null?{}:module$7.exports).PDFDataRangeTransport;(module$7.exports==null?{}:module$7.exports).PDFWorker;(module$7.exports==null?{}:module$7.exports).renderTextLayer;(module$7.exports==null?{}:module$7.exports).AnnotationLayer;(module$7.exports==null?{}:module$7.exports).createPromiseCapability;(module$7.exports==null?{}:module$7.exports).PasswordResponses;(module$7.exports==null?{}:module$7.exports).InvalidPDFException;(module$7.exports==null?{}:module$7.exports).MissingPDFException;(module$7.exports==null?{}:module$7.exports).SVGGraphics;(module$7.exports==null?{}:module$7.exports).NativeImageDecoding;(module$7.exports==null?{}:module$7.exports).CMapCompressionType;(module$7.exports==null?{}:module$7.exports).PermissionFlag;(module$7.exports==null?{}:module$7.exports).UnexpectedResponseException;(module$7.exports==null?{}:module$7.exports).OPS;(module$7.exports==null?{}:module$7.exports).VerbosityLevel;(module$7.exports==null?{}:module$7.exports).UNSUPPORTED_FEATURES;(module$7.exports==null?{}:module$7.exports).createValidAbsoluteUrl;(module$7.exports==null?{}:module$7.exports).createObjectURL;(module$7.exports==null?{}:module$7.exports).removeNullCharacters;(module$7.exports==null?{}:module$7.exports).shadow;(module$7.exports==null?{}:module$7.exports).Util;(module$7.exports==null?{}:module$7.exports).RenderingCancelledException;(module$7.exports==null?{}:module$7.exports).getFilenameFromUrl;(module$7.exports==null?{}:module$7.exports).LinkTarget;(module$7.exports==null?{}:module$7.exports).addLinkAttributes;(module$7.exports==null?{}:module$7.exports).loadScript;(module$7.exports==null?{}:module$7.exports).PDFDateString;(module$7.exports==null?{}:module$7.exports).GlobalWorkerOptions;(module$7.exports==null?{}:module$7.exports).apiCompatibilityParams;(module$7.exports==null?{}:module$7.exports).arrayByteLength;(module$7.exports==null?{}:module$7.exports).arraysToBytes;(module$7.exports==null?{}:module$7.exports).assert;(module$7.exports==null?{}:module$7.exports).bytesToString;(module$7.exports==null?{}:module$7.exports).getVerbosityLevel;(module$7.exports==null?{}:module$7.exports).info;(module$7.exports==null?{}:module$7.exports).isArrayBuffer;(module$7.exports==null?{}:module$7.exports).isArrayEqual;(module$7.exports==null?{}:module$7.exports).isBool;(module$7.exports==null?{}:module$7.exports).isEmptyObj;(module$7.exports==null?{}:module$7.exports).isNum;(module$7.exports==null?{}:module$7.exports).isString;(module$7.exports==null?{}:module$7.exports).isSameOrigin;(module$7.exports==null?{}:module$7.exports).setVerbosityLevel;(module$7.exports==null?{}:module$7.exports).string32;(module$7.exports==null?{}:module$7.exports).stringToBytes;(module$7.exports==null?{}:module$7.exports).stringToPDFString;(module$7.exports==null?{}:module$7.exports).stringToUTF8String;(module$7.exports==null?{}:module$7.exports).utf8StringToString;(module$7.exports==null?{}:module$7.exports).warn;(module$7.exports==null?{}:module$7.exports).unreachable;(module$7.exports==null?{}:module$7.exports).BaseException;(module$7.exports==null?{}:module$7.exports).FONT_IDENTITY_MATRIX;(module$7.exports==null?{}:module$7.exports).IDENTITY_MATRIX;(module$7.exports==null?{}:module$7.exports).AnnotationBorderStyleType;(module$7.exports==null?{}:module$7.exports).AnnotationFieldFlag;(module$7.exports==null?{}:module$7.exports).AnnotationFlag;(module$7.exports==null?{}:module$7.exports).AnnotationMarkedState;(module$7.exports==null?{}:module$7.exports).AnnotationReplyType;(module$7.exports==null?{}:module$7.exports).AnnotationReviewState;(module$7.exports==null?{}:module$7.exports).AnnotationStateModelType;(module$7.exports==null?{}:module$7.exports).AnnotationType;(module$7.exports==null?{}:module$7.exports).FontType;(module$7.exports==null?{}:module$7.exports).ImageKind;(module$7.exports==null?{}:module$7.exports).AbortException;(module$7.exports==null?{}:module$7.exports).PasswordException;(module$7.exports==null?{}:module$7.exports).StreamType;(module$7.exports==null?{}:module$7.exports).TextRenderingMode;(module$7.exports==null?{}:module$7.exports).UnknownErrorException;(module$7.exports==null?{}:module$7.exports).FormatError;(module$7.exports==null?{}:module$7.exports).IsLittleEndianCached;(module$7.exports==null?{}:module$7.exports).IsEvalSupportedCached;(module$7.exports==null?{}:module$7.exports).f;(module$7.exports==null?{}:module$7.exports).isNodeJS;(module$7.exports==null?{}:module$7.exports).ByteLengthQueuingStrategy;(module$7.exports==null?{}:module$7.exports).CountQueuingStrategy;(module$7.exports==null?{}:module$7.exports).ReadableStream;(module$7.exports==null?{}:module$7.exports).TransformStream;(module$7.exports==null?{}:module$7.exports).WritableStream;(module$7.exports==null?{}:module$7.exports).setPDFNetworkStreamFactory;(module$7.exports==null?{}:module$7.exports).PDFDocumentProxy;(module$7.exports==null?{}:module$7.exports).PDFPageProxy;(module$7.exports==null?{}:module$7.exports).wrap;(module$7.exports==null?{}:module$7.exports).isGeneratorFunction;(module$7.exports==null?{}:module$7.exports).mark;(module$7.exports==null?{}:module$7.exports).awrap;(module$7.exports==null?{}:module$7.exports).AsyncIterator;(module$7.exports==null?{}:module$7.exports).async;(module$7.exports==null?{}:module$7.exports).keys;(module$7.exports==null?{}:module$7.exports).values;(module$7.exports==null?{}:module$7.exports).isFetchSupported;(module$7.exports==null?{}:module$7.exports).isValidFetchUrl;(module$7.exports==null?{}:module$7.exports).deprecated;(module$7.exports==null?{}:module$7.exports).releaseImageResources;(module$7.exports==null?{}:module$7.exports).PageViewport;(module$7.exports==null?{}:module$7.exports).DEFAULT_LINK_REL;(module$7.exports==null?{}:module$7.exports).DOMCanvasFactory;(module$7.exports==null?{}:module$7.exports).DOMCMapReaderFactory;(module$7.exports==null?{}:module$7.exports).DOMSVGFactory;(module$7.exports==null?{}:module$7.exports).StatTimer;(module$7.exports==null?{}:module$7.exports).FontFaceObject;(module$7.exports==null?{}:module$7.exports).FontLoader;(module$7.exports==null?{}:module$7.exports).CanvasGraphics;(module$7.exports==null?{}:module$7.exports).getShadingPatternFromIR;(module$7.exports==null?{}:module$7.exports).TilingPattern;(module$7.exports==null?{}:module$7.exports).MessageHandler;(module$7.exports==null?{}:module$7.exports).Metadata;(module$7.exports==null?{}:module$7.exports).SimpleXMLParser;(module$7.exports==null?{}:module$7.exports).PDFDataTransportStream;(module$7.exports==null?{}:module$7.exports).WebGLContext;(module$7.exports==null?{}:module$7.exports).PDFNodeStream;(module$7.exports==null?{}:module$7.exports).createResponseStatusError;(module$7.exports==null?{}:module$7.exports).extractFilenameFromHeader;(module$7.exports==null?{}:module$7.exports).validateRangeRequestCapabilities;(module$7.exports==null?{}:module$7.exports).validateResponseStatus;(module$7.exports==null?{}:module$7.exports).getFilenameFromContentDispositionHeader;(module$7.exports==null?{}:module$7.exports).PDFNetworkStream;(module$7.exports==null?{}:module$7.exports).PDFFetchStream;var module$6={exports:{}},exports$6=module$6.exports;Object.defineProperty(exports$6,"__esModule",{value:!0});exports$6.BasePreferences=void 0;let defaultPreferences=null;function getDefaultPreferences(){return defaultPreferences||(defaultPreferences=Promise.resolve({cursorToolOnLoad:0,defaultZoomValue:"",disablePageLabels:!1,enablePrintAutoRotate:!1,enableWebGL:!1,eventBusDispatchToDOM:!1,externalLinkTarget:0,historyUpdateUrl:!1,ignoreDestinationZoom:!1,pdfBugEnabled:!1,renderer:"canvas",renderInteractiveForms:!1,sidebarViewOnLoad:-1,scrollModeOnLoad:-1,spreadModeOnLoad:-1,textLayerMode:1,useOnlyCssZoom:!1,viewOnLoad:0,disableAutoFetch:!1,disableFontFace:!1,disableRange:!1,disableStream:!1})),defaultPreferences}class BasePreferences{constructor(){if(this.constructor===BasePreferences)throw new Error("Cannot initialize BasePreferences.");this.prefs=null,this._initializedPromise=getDefaultPreferences().then(t=>(Object.defineProperty(this,"defaults",{value:Object.freeze(t),writable:!1,enumerable:!0,configurable:!1}),this.prefs=Object.assign(Object.create(null),t),this._readFromStorage(t))).then(t=>{if(t)for(const a in t){const r=this.defaults[a],i=t[a];r===void 0||typeof i!=typeof r||(this.prefs[a]=i)}})}async _writeToStorage(t){throw new Error("Not implemented: _writeToStorage")}async _readFromStorage(t){throw new Error("Not implemented: _readFromStorage")}async reset(){return await this._initializedPromise,this.prefs=Object.assign(Object.create(null),this.defaults),this._writeToStorage(this.defaults)}async set(t,a){await this._initializedPromise;const r=this.defaults[t];if(r===void 0)throw new Error(`Set preference: "${t}" is undefined.`);if(a===void 0)throw new Error("Set preference: no value is specified.");const i=typeof a,p=typeof r;if(i!==p)if(i==="number"&&p==="string")a=a.toString();else throw new Error(`Set preference: "${a}" is a ${i}, expected a ${p}.`);else if(i==="number"&&!Number.isInteger(a))throw new Error(`Set preference: "${a}" must be an integer.`);return this.prefs[t]=a,this._writeToStorage(this.prefs)}async get(t){await this._initializedPromise;const a=this.defaults[t];if(a===void 0)throw new Error(`Get preference: "${t}" is undefined.`);{const r=this.prefs[t];if(r!==void 0)return r}return a}async getAll(){const t=await this._initializedPromise;return console.log("res",t),Object.assign(Object.create(null),this.defaults,this.prefs)}}exports$6.BasePreferences=BasePreferences;const __CJS__export_default__$3=(module$6.exports==null?{}:module$6.exports).default||module$6.exports,__CJS__export_BasePreferences__=(module$6.exports==null?{}:module$6.exports).BasePreferences,__CJS__import__1__=Object.freeze(Object.defineProperty({__proto__:null,BasePreferences:__CJS__export_BasePreferences__,default:__CJS__export_default__$3},Symbol.toStringTag,{value:"Module"}));var module$5={exports:{}},exports$5=module$5.exports;Object.defineProperty(exports$5,"__esModule",{value:!0});exports$5.DownloadManager=void 0;var _pdf=__CJS__export_default__$y||__CJS__import__0__$3;const DISABLE_CREATE_OBJECT_URL=_pdf.apiCompatibilityParams.disableCreateObjectURL||!1;function download(x,t){const a=document.createElement("a");if(!a.click)throw new Error('DownloadManager: "a.click()" is not supported.');a.href=x,a.target="_parent","download"in a&&(a.download=t),(document.body||document.documentElement).appendChild(a),a.click(),a.remove()}class DownloadManager{constructor({disableCreateObjectURL:t=DISABLE_CREATE_OBJECT_URL}){this.disableCreateObjectURL=t}downloadUrl(t,a){(0,_pdf.createValidAbsoluteUrl)(t,"http://example.com")&&download(t+"#pdfjs.action=download",a)}downloadData(t,a,r){if(navigator.msSaveBlob){navigator.msSaveBlob(new Blob([t],{type:r}),a);return}const i=(0,_pdf.createObjectURL)(t,r,this.disableCreateObjectURL);download(i,a)}download(t,a,r){if(navigator.msSaveBlob){navigator.msSaveBlob(t,r)||this.downloadUrl(a,r);return}if(this.disableCreateObjectURL){this.downloadUrl(a,r);return}const i=URL.createObjectURL(t);download(i,r)}}exports$5.DownloadManager=DownloadManager;const __CJS__export_default__$2=(module$5.exports==null?{}:module$5.exports).default||module$5.exports,__CJS__export_DownloadManager__=(module$5.exports==null?{}:module$5.exports).DownloadManager,__CJS__import__2__=Object.freeze(Object.defineProperty({__proto__:null,DownloadManager:__CJS__export_DownloadManager__,default:__CJS__export_default__$2},Symbol.toStringTag,{value:"Module"}));document.webL10n=function(x,t,a){var r={},i="",p="textContent",e="",N={},w="loading",$=!0;function U(){return t.querySelectorAll('link[type="application/l10n"]')}function m(){var v=t.querySelector('script[type="application/l10n"]');return v?JSON.parse(v.innerHTML):null}function n(v){return v?v.querySelectorAll("*[data-l10n-id]"):[]}function J(v){if(!v)return{};var s=v.getAttribute("data-l10n-id"),o=v.getAttribute("data-l10n-args"),u={};if(o)try{u=JSON.parse(o)}catch{console.warn("could not parse arguments for #"+s)}return{id:s,args:u}}function O(v,s,o){s=s||function(F){},o=o||function(){};var u=new XMLHttpRequest;u.open("GET",v,$),u.overrideMimeType&&u.overrideMimeType("text/plain; charset=utf-8"),u.onreadystatechange=function(){u.readyState==4&&(u.status==200||u.status===0?s(u.responseText):o())},u.onerror=o,u.ontimeout=o;try{u.send(null)}catch{o()}}function L(v,s,o,u){var l=v.replace(/[^\/]*$/,"")||"./";function F(D){return D.lastIndexOf("\\")<0?D:D.replace(/\\\\/g,"\\").replace(/\\n/g,`
|
|
11
|
+
`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}function T(D,k){var S={},R=/^\s*|\s*$/,E=/^\s*#|^\s*$/,A=/^\s*\[(.*)\]\s*$/,C=/^\s*@import\s+url\((.*)\)\s*$/i,y=/^([^=\s]*)\s*=\s*(.+)$/;function I(V,B,W){var G=V.replace(R,"").split(/[\r\n]+/),q="*",z=s.split("-",1)[0],j=!1,Y="";function K(){for(;;){if(!G.length){W();return}var Z=G.shift();if(!E.test(Z)){if(B){if(Y=A.exec(Z),Y){q=Y[1].toLowerCase(),j=q!=="*"&&q!==s&&q!==z;continue}else if(j)continue;if(Y=C.exec(Z),Y){H(l+Y[1],K);return}}var ee=Z.match(y);ee&&ee.length==3&&(S[ee[1]]=F(ee[2]))}}}K()}function H(V,B){O(V,function(W){I(W,!1,B)},function(){console.warn(V+" not found."),B()})}I(D,!0,function(){k(S)})}O(v,function(D){i+=D,T(D,function(k){for(var S in k){var R,E,A=S.lastIndexOf(".");A>0?(R=S.substring(0,A),E=S.substring(A+1)):(R=S,E=p),r[R]||(r[R]={}),r[R][E]=k[S]}o&&o()})},u)}function M(v,s){v&&(v=v.toLowerCase()),s=s||function(){},P(),e=v;var o=U(),u=o.length;if(u===0){var l=m();if(l&&l.locales&&l.default_locale){if(console.log("using the embedded JSON directory, early way out"),r=l.locales[v],!r){var F=l.default_locale.toLowerCase();for(var T in l.locales)if(T=T.toLowerCase(),T===v){r=l.locales[v];break}else T===F&&(r=l.locales[F])}s()}else console.log("no resource to load, early way out");w="complete";return}var D=null,k=0;D=function(){k++,k>=u&&(s(),w="complete")};function S(A){var C=A.href;this.load=function(y,I){L(C,y,I,function(){console.warn(C+" not found."),console.warn('"'+y+'" resource not found'),e="",I()})}}for(var R=0;R<u;R++){var E=new S(o[R]);E.load(v,D)}}function P(){r={},i="",e=""}function b(v){var s={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3};function o(T,D){return D.indexOf(T)!==-1}function u(T,D,k){return D<=T&&T<=k}var l={0:function(T){return"other"},1:function(T){return u(T%100,3,10)?"few":T===0?"zero":u(T%100,11,99)?"many":T==2?"two":T==1?"one":"other"},2:function(T){return T!==0&&T%10===0?"many":T==2?"two":T==1?"one":"other"},3:function(T){return T==1?"one":"other"},4:function(T){return u(T,0,1)?"one":"other"},5:function(T){return u(T,0,2)&&T!=2?"one":"other"},6:function(T){return T===0?"zero":T%10==1&&T%100!=11?"one":"other"},7:function(T){return T==2?"two":T==1?"one":"other"},8:function(T){return u(T,3,6)?"few":u(T,7,10)?"many":T==2?"two":T==1?"one":"other"},9:function(T){return T===0||T!=1&&u(T%100,1,19)?"few":T==1?"one":"other"},10:function(T){return u(T%10,2,9)&&!u(T%100,11,19)?"few":T%10==1&&!u(T%100,11,19)?"one":"other"},11:function(T){return u(T%10,2,4)&&!u(T%100,12,14)?"few":T%10===0||u(T%10,5,9)||u(T%100,11,14)?"many":T%10==1&&T%100!=11?"one":"other"},12:function(T){return u(T,2,4)?"few":T==1?"one":"other"},13:function(T){return u(T%10,2,4)&&!u(T%100,12,14)?"few":T!=1&&u(T%10,0,1)||u(T%10,5,9)||u(T%100,12,14)?"many":T==1?"one":"other"},14:function(T){return u(T%100,3,4)?"few":T%100==2?"two":T%100==1?"one":"other"},15:function(T){return T===0||u(T%100,2,10)?"few":u(T%100,11,19)?"many":T==1?"one":"other"},16:function(T){return T%10==1&&T!=11?"one":"other"},17:function(T){return T==3?"few":T===0?"zero":T==6?"many":T==2?"two":T==1?"one":"other"},18:function(T){return T===0?"zero":u(T,0,2)&&T!==0&&T!=2?"one":"other"},19:function(T){return u(T,2,10)?"few":u(T,0,1)?"one":"other"},20:function(T){return(u(T%10,3,4)||T%10==9)&&!(u(T%100,10,19)||u(T%100,70,79)||u(T%100,90,99))?"few":T%1e6===0&&T!==0?"many":T%10==2&&!o(T%100,[12,72,92])?"two":T%10==1&&!o(T%100,[11,71,91])?"one":"other"},21:function(T){return T===0?"zero":T==1?"one":"other"},22:function(T){return u(T,0,1)||u(T,11,99)?"one":"other"},23:function(T){return u(T%10,1,2)||T%20===0?"one":"other"},24:function(T){return u(T,3,10)||u(T,13,19)?"few":o(T,[2,12])?"two":o(T,[1,11])?"one":"other"}},F=s[v.replace(/-.*$/,"")];return F in l?l[F]:(console.warn("plural form unknown for ["+v+"]"),function(){return"other"})}N.plural=function(v,s,o,u){var l=parseFloat(s);if(isNaN(l)||u!=p)return v;N._pluralRules||(N._pluralRules=b(e));var F="["+N._pluralRules(l)+"]";return l===0&&o+"[zero]"in r?v=r[o+"[zero]"][u]:l==1&&o+"[one]"in r?v=r[o+"[one]"][u]:l==2&&o+"[two]"in r?v=r[o+"[two]"][u]:o+F in r?v=r[o+F][u]:o+"[other]"in r&&(v=r[o+"[other]"][u]),v};function _(v,s,o){var u=r[v];if(!u){if(console.warn("#"+v+" is undefined."),!o)return null;u=o}var l={};for(var F in u){var T=u[F];T=d(T,s,v,F),T=c(T,s,v),l[F]=T}return l}function d(v,s,o,u){var l=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/,F=l.exec(v);if(!F||!F.length)return v;var T=F[1],D=F[2],k;if(s&&D in s?k=s[D]:D in r&&(k=r[D]),T in N){var S=N[T];v=S(v,k,o,u)}return v}function c(v,s,o){var u=/\{\{\s*(.+?)\s*\}\}/g;return v.replace(u,function(l,F){return s&&F in s?s[F]:F in r?r[F]:(console.log("argument {{"+F+"}} for #"+o+" is undefined."),l)})}function h(v){var s=J(v);if(s.id){var o=_(s.id,s.args);if(!o){console.warn("#"+s.id+" is undefined.");return}if(o[p]){if(f(v)===0)v[p]=o[p];else{for(var u=v.childNodes,l=!1,F=0,T=u.length;F<T;F++)u[F].nodeType===3&&/\S/.test(u[F].nodeValue)&&(l?u[F].nodeValue="":(u[F].nodeValue=o[p],l=!0));if(!l){var D=t.createTextNode(o[p]);v.insertBefore(D,v.firstChild)}}delete o[p]}for(var k in o)v[k]=o[k]}}function f(v){if(v.children)return v.children.length;if(typeof v.childElementCount<"u")return v.childElementCount;for(var s=0,o=0;o<v.childNodes.length;o++)s+=v.nodeType===1?1:0;return s}function g(v){v=v||t.documentElement;for(var s=n(v),o=s.length,u=0;u<o;u++)h(s[u]);h(v)}return{get:function(v,s,o){var u=v.lastIndexOf("."),l=p;u>0&&(l=v.substring(u+1),v=v.substring(0,u));var F;o&&(F={},F[l]=o);var T=_(v,s,F);return T&&l in T?T[l]:"{{"+v+"}}"},getData:function(){return r},getText:function(){return i},getLanguage:function(){return e},setLanguage:function(v,s){M(v,function(){s&&s()})},getDirection:function(){var v=["ar","he","fa","ps","ur"],s=e.split("-",1)[0];return v.indexOf(s)>=0?"rtl":"ltr"},translate:g,getReadyState:function(){return w},ready:function(v){if(v)w=="complete"||w=="interactive"?x.setTimeout(function(){v()}):t.addEventListener&&t.addEventListener("localized",function s(){t.removeEventListener("localized",s),v()});else return}}}(window,document);var module$4={exports:{}},exports$4=module$4.exports;Object.defineProperty(exports$4,"__esModule",{value:!0});exports$4.GenericL10n=void 0;const webL10n=document.webL10n;class GenericL10n{constructor(t){this._lang=t,this._ready=new Promise((a,r)=>{webL10n.setLanguage(t,()=>{a(webL10n)})})}async getLanguage(){return(await this._ready).getLanguage()}async getDirection(){return(await this._ready).getDirection()}async get(t,a,r){return(await this._ready).get(t,a,r)}async translate(t){return(await this._ready).translate(t)}}exports$4.GenericL10n=GenericL10n;const __CJS__export_default__$1=(module$4.exports==null?{}:module$4.exports).default||module$4.exports,__CJS__export_GenericL10n__=(module$4.exports==null?{}:module$4.exports).GenericL10n,__CJS__import__3__=Object.freeze(Object.defineProperty({__proto__:null,GenericL10n:__CJS__export_GenericL10n__,default:__CJS__export_default__$1},Symbol.toStringTag,{value:"Module"}));var module$3={exports:{}},exports$3=module$3.exports;Object.defineProperty(exports$3,"__esModule",{value:!0});exports$3.GenericCom=void 0;var _app$1=__CJS__export_default__$4||__CJS__import__1__$1,_preferences=__CJS__export_default__$3||__CJS__import__1__,_download_manager=__CJS__export_default__$2||__CJS__import__2__,_genericl10n=__CJS__export_default__$1||__CJS__import__3__;const GenericCom={};exports$3.GenericCom=GenericCom;class GenericPreferences extends _preferences.BasePreferences{async _writeToStorage(t){localStorage.setItem("pdfjs.preferences",JSON.stringify(t))}async _readFromStorage(t){return JSON.parse(localStorage.getItem("pdfjs.preferences"))}}class GenericExternalServices extends _app$1.DefaultExternalServices{static createDownloadManager(t){return new _download_manager.DownloadManager(t)}static createPreferences(){return new GenericPreferences}static createL10n({locale:t="en-US"}){return new _genericl10n.GenericL10n(t)}}_app$1.PDFViewerApplication.externalServices=GenericExternalServices;(module$3.exports==null?{}:module$3.exports).default||module$3.exports;(module$3.exports==null?{}:module$3.exports).GenericCom;var module$2={exports:{}},exports$2=module$2.exports;window.__nativePrint__=window.print.bind(window);Object.defineProperty(exports$2,"__esModule",{value:!0});exports$2.PDFPrintService=PDFPrintService;var _ui_utils=__CJS__export_default__$V||__CJS__import__0__$5,_app=__CJS__export_default__$4||__CJS__import__1__$1,_app_options=__CJS__export_default__$w||__CJS__import__2__$4;let activeService=null,overlayManager=null;function renderPage(x,t,a,r){const i=activeService.scratchCanvas,e=(_app_options.AppOptions.get("printResolution")||150)/72;i.width=Math.floor(r.width*e),i.height=Math.floor(r.height*e);const N=Math.floor(r.width*_ui_utils.CSS_UNITS)+"px",w=Math.floor(r.height*_ui_utils.CSS_UNITS)+"px",$=i.getContext("2d");return $.save(),$.fillStyle="rgb(255, 255, 255)",$.fillRect(0,0,i.width,i.height),$.restore(),t.getPage(a).then(function(U){const m={canvasContext:$,transform:[e,0,0,e,0,0],viewport:U.getViewport({scale:1,rotation:r.rotation}),intent:"print"};return U.render(m).promise}).then(function(){return{width:N,height:w}})}function PDFPrintService(x,t,a,r){this.pdfDocument=x,this.pagesOverview=t,this.printContainer=a,this.l10n=r||_ui_utils.NullL10n,this.disableCreateObjectURL=x.loadingParams.disableCreateObjectURL,this.currentPage=-1,this.scratchCanvas=document.createElement("canvas")}PDFPrintService.prototype={layout(){this.throwIfInactive();const x=document.querySelector("body");x.setAttribute("data-pdfjsprinting",!0),this.pagesOverview.every(function(r){return r.width===this.pagesOverview[0].width&&r.height===this.pagesOverview[0].height},this)||console.warn("Not all pages have the same size. The printed result may be incorrect!"),this.pageStyleSheet=document.createElement("style");const a=this.pagesOverview[0];this.pageStyleSheet.textContent="@supports ((size:A4) and (size:1pt 1pt)) {@page { size: "+a.width+"pt "+a.height+"pt;}}",x.appendChild(this.pageStyleSheet)},destroy(){if(activeService!==this)return;this.printContainer.textContent="",document.querySelector("body").removeAttribute("data-pdfjsprinting"),this.pageStyleSheet&&(this.pageStyleSheet.remove(),this.pageStyleSheet=null),this.scratchCanvas.width=this.scratchCanvas.height=0,this.scratchCanvas=null,activeService=null,ensureOverlay().then(function(){overlayManager.active==="printServiceOverlay"&&overlayManager.close("printServiceOverlay")})},renderPages(){const x=this.pagesOverview.length,t=(a,r)=>{if(this.throwIfInactive(),++this.currentPage>=x){renderProgress(x,x,this.l10n),a();return}const i=this.currentPage;renderProgress(i,x,this.l10n),renderPage(this,this.pdfDocument,i+1,this.pagesOverview[i]).then(this.useRenderedPage.bind(this)).then(function(){t(a,r)},r)};return new Promise(t)},useRenderedPage(x){this.throwIfInactive();const t=document.createElement("img");t.style.width=x.width,t.style.height=x.height;const a=this.scratchCanvas;"toBlob"in a&&!this.disableCreateObjectURL?a.toBlob(function(i){t.src=URL.createObjectURL(i)}):t.src=a.toDataURL();const r=document.createElement("div");return r.appendChild(t),this.printContainer.appendChild(r),new Promise(function(i,p){t.onload=i,t.onerror=p})},performPrint(){return this.throwIfInactive(),new Promise(x=>{setTimeout(()=>{if(!this.active){x();return}print.call(window),setTimeout(x,20)},0)})},get active(){return this===activeService},throwIfInactive(){if(!this.active)throw new Error("This print request was cancelled or completed.")}};const print=window.print;window.print=function(){if(activeService){console.warn("Ignored window.print() because of a pending print job.");return}ensureOverlay().then(function(){activeService&&overlayManager.open("printServiceOverlay")});try{dispatchEvent("beforeprint")}finally{if(!activeService){console.error("Expected print service to be initialized."),ensureOverlay().then(function(){overlayManager.active==="printServiceOverlay"&&overlayManager.close("printServiceOverlay")});return}const x=activeService;activeService.renderPages().then(function(){return x.performPrint()}).catch(function(){}).then(function(){x.active&&abort()})}};function dispatchEvent(x){const t=document.createEvent("CustomEvent");t.initCustomEvent(x,!1,!1,"custom"),window.dispatchEvent(t)}function abort(){activeService&&(activeService.destroy(),dispatchEvent("afterprint"))}function renderProgress(x,t,a){const r=document.getElementById("printServiceOverlay"),i=Math.round(100*x/t),p=r.querySelector("progress"),e=r.querySelector(".relative-progress");p.value=i,a.get("print_progress_percent",{progress:i},i+"%").then(N=>{e.textContent=N})}window.addEventListener("keydown",function(x){x.keyCode===80&&(x.ctrlKey||x.metaKey)&&!x.altKey&&(!x.shiftKey||window.chrome||window.opera)&&(window.print(),x.preventDefault(),x.stopImmediatePropagation?x.stopImmediatePropagation():x.stopPropagation())},!0);if("onbeforeprint"in window){const x=function(t){t.detail!=="custom"&&t.stopImmediatePropagation&&t.stopImmediatePropagation()};window.addEventListener("beforeprint",x),window.addEventListener("afterprint",x)}let overlayPromise;function ensureOverlay(){if(!overlayPromise){if(overlayManager=_app.PDFViewerApplication.overlayManager,!overlayManager)throw new Error("The overlay manager has not yet been initialized.");overlayPromise=overlayManager.register("printServiceOverlay",document.getElementById("printServiceOverlay"),abort,!0),document.getElementById("printCancel").onclick=abort}return overlayPromise}_app.PDFPrintServiceFactory.instance={supportsPrinting:!0,createPrintService(x,t,a,r){if(activeService)throw new Error("The print service is created and active.");return activeService=new PDFPrintService(x,t,a,r),activeService}};(module$2.exports==null?{}:module$2.exports).default||module$2.exports;(module$2.exports==null?{}:module$2.exports).PDFPrintService;var module$1={exports:{}},exports$1=module$1.exports;(function x(t,a){typeof exports$1=="object"&&typeof module$1=="object"?module$1.exports=a():typeof define=="function"&&define.amd?define("pdfjs-dist/build/pdf.worker",[],a):typeof exports$1=="object"?exports$1["pdfjs-dist/build/pdf.worker"]=a():t["pdfjs-dist/build/pdf.worker"]=t.pdfjsWorker=a()})(void 0,function(){return function(x){var t={};function a(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return x[r].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=x,a.c=t,a.d=function(r,i,p){a.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:p})},a.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},a.t=function(r,i){if(i&1&&(r=a(r)),i&8||i&4&&typeof r=="object"&&r&&r.__esModule)return r;var p=Object.create(null);if(a.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:r}),i&2&&typeof r!="string")for(var e in r)a.d(p,e,(function(N){return r[N]}).bind(null,e));return p},a.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return a.d(i,"a",i),i},a.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},a.p="",a(a.s=0)}([function(x,t,a){const r=a(1);t.WorkerMessageHandler=r.WorkerMessageHandler},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerMessageHandler=t.WorkerTask=void 0;var r=a(2),i=a(4),p=a(5),e=a(44),N=a(45),w=a(46),$=a(7),U=function(){function O(L){this.name=L,this.terminated=!1,this._capability=(0,r.createPromiseCapability)()}return O.prototype={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")}},O}();t.WorkerTask=U;var m={setup(J,O){var L=!1;J.on("test",function(P){if(L)return;if(L=!0,!(P instanceof Uint8Array)){J.send("test",null);return}const b=P[0]===255;J.postMessageTransfers=b,J.send("test",{supportTransfers:b})}),J.on("configure",function(P){(0,r.setVerbosityLevel)(P.verbosity)}),J.on("GetDocRequest",function(P){return m.createDocumentHandler(P,O)})},createDocumentHandler(J,O){var L,M=!1,P=null,b=[];const _=(0,r.getVerbosityLevel)(),d=J.apiVersion,c="2.4.456";if(d!==c)throw new Error(`The API version "${d}" does not match the Worker version "${c}".`);const h=[];for(const k in[])h.push(k);if(h.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+h.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");var f=J.docId,g=J.docBaseUrl,v=J.docId+"_worker",s=new N.MessageHandler(v,f,O);s.postMessageTransfers=J.postMessageTransfers;function o(){if(M)throw new Error("Worker was terminated")}function u(k){b.push(k)}function l(k){k.finish();var S=b.indexOf(k);b.splice(S,1)}async function F(k){await L.ensureDoc("checkHeader"),await L.ensureDoc("parseStartXRef"),await L.ensureDoc("parse",[k]),k||await L.ensureDoc("checkFirstPage");const[S,R]=await Promise.all([L.ensureDoc("numPages"),L.ensureDoc("fingerprint")]);return{numPages:S,fingerprint:R}}function T(k,S){var R=(0,r.createPromiseCapability)(),E,A=k.source;if(A.data){try{E=new p.LocalPdfManager(f,A.data,A.password,S,g),R.resolve(E)}catch(W){R.reject(W)}return R.promise}var C,y=[];try{C=new w.PDFWorkerStream(s)}catch(W){return R.reject(W),R.promise}var I=C.getFullReader();I.headersReady.then(function(){if(I.isRangeSupported){var W=A.disableAutoFetch||I.isStreamingSupported;E=new p.NetworkPdfManager(f,C,{msgHandler:s,password:A.password,length:I.contentLength,disableAutoFetch:W,rangeChunkSize:A.rangeChunkSize},S,g);for(let G=0;G<y.length;G++)E.sendProgressiveData(y[G]);y=[],R.resolve(E),P=null}}).catch(function(W){R.reject(W),P=null});var H=0,V=function(){var W=(0,r.arraysToBytes)(y);A.length&&W.length!==A.length&&(0,r.warn)("reported HTTP length is different from actual");try{E=new p.LocalPdfManager(f,W,A.password,S,g),R.resolve(E)}catch(G){R.reject(G)}y=[]},B=new Promise(function(W,G){var q=function(z){try{if(o(),z.done){E||V(),P=null;return}var j=z.value;H+=(0,r.arrayByteLength)(j),I.isStreamingSupported||s.send("DocProgress",{loaded:H,total:Math.max(H,I.contentLength||0)}),E?E.sendProgressiveData(j):y.push(j),I.read().then(q,G)}catch(Y){G(Y)}};I.read().then(q,G)});return B.catch(function(W){R.reject(W),P=null}),P=function(W){C.cancelAllRequests(W)},R.promise}function D(k){function S(C){o(),s.send("GetDoc",{pdfInfo:C})}function R(C){if(o(),C instanceof r.PasswordException){var y=new U(`PasswordException: response ${C.code}`);u(y),s.sendWithPromise("PasswordRequest",C).then(function(I){l(y),L.updatePassword(I.password),E()}).catch(function(){l(y),s.send("DocException",C)})}else C instanceof r.InvalidPDFException||C instanceof r.MissingPDFException||C instanceof r.UnexpectedResponseException||C instanceof r.UnknownErrorException?s.send("DocException",C):s.send("DocException",new r.UnknownErrorException(C.message,C.toString()))}function E(){o(),F(!1).then(S,function(y){if(o(),!(y instanceof $.XRefParseException)){R(y);return}L.requestLoadedStream(),L.onLoadedStream().then(function(){o(),F(!0).then(S,R)})},R)}o();var A={forceDataSchema:k.disableCreateObjectURL,maxImageSize:k.maxImageSize,disableFontFace:k.disableFontFace,nativeImageDecoderSupport:k.nativeImageDecoderSupport,ignoreErrors:k.ignoreErrors,isEvalSupported:k.isEvalSupported};T(k,A).then(function(C){if(M)throw C.terminate(new r.AbortException("Worker was terminated.")),new Error("Worker was terminated");L=C,L.onLoadedStream().then(function(y){s.send("DataLoaded",{length:y.bytes.byteLength})})}).then(E,R)}return s.on("GetPage",function(S){return L.getPage(S.pageIndex).then(function(R){return Promise.all([L.ensure(R,"rotate"),L.ensure(R,"ref"),L.ensure(R,"userUnit"),L.ensure(R,"view")]).then(function([E,A,C,y]){return{rotate:E,ref:A,userUnit:C,view:y}})})}),s.on("GetPageIndex",function(S){var R=i.Ref.get(S.ref.num,S.ref.gen),E=L.pdfDocument.catalog;return E.getPageIndex(R)}),s.on("GetDestinations",function(S){return L.ensureCatalog("destinations")}),s.on("GetDestination",function(S){return L.ensureCatalog("getDestination",[S.id])}),s.on("GetPageLabels",function(S){return L.ensureCatalog("pageLabels")}),s.on("GetPageLayout",function(S){return L.ensureCatalog("pageLayout")}),s.on("GetPageMode",function(S){return L.ensureCatalog("pageMode")}),s.on("GetViewerPreferences",function(k){return L.ensureCatalog("viewerPreferences")}),s.on("GetOpenAction",function(k){return L.ensureCatalog("openAction")}),s.on("GetAttachments",function(S){return L.ensureCatalog("attachments")}),s.on("GetJavaScript",function(S){return L.ensureCatalog("javaScript")}),s.on("GetOutline",function(S){return L.ensureCatalog("documentOutline")}),s.on("GetPermissions",function(k){return L.ensureCatalog("permissions")}),s.on("GetMetadata",function(S){return Promise.all([L.ensureDoc("documentInfo"),L.ensureCatalog("metadata")])}),s.on("GetData",function(S){return L.requestLoadedStream(),L.onLoadedStream().then(function(R){return R.bytes})}),s.on("GetStats",function(S){return L.pdfDocument.xref.stats}),s.on("GetAnnotations",function({pageIndex:k,intent:S}){return L.getPage(k).then(function(R){return R.getAnnotationsData(S)})}),s.on("GetOperatorList",function(S,R){var E=S.pageIndex;L.getPage(E).then(function(A){var C=new U(`GetOperatorList: page ${E}`);u(C);const y=_>=r.VerbosityLevel.INFOS?Date.now():0;A.getOperatorList({handler:s,sink:R,task:C,intent:S.intent,renderInteractiveForms:S.renderInteractiveForms}).then(function(I){l(C),y&&(0,r.info)(`page=${E+1} - getOperatorList: time=${Date.now()-y}ms, len=${I.length}`),R.close()},function(I){l(C),!C.terminated&&(s.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.unknown}),R.error(I))})})},this),s.on("GetTextContent",function(S,R){var E=S.pageIndex;R.onPull=function(A){},R.onCancel=function(A){},L.getPage(E).then(function(A){var C=new U("GetTextContent: page "+E);u(C);const y=_>=r.VerbosityLevel.INFOS?Date.now():0;A.extractTextContent({handler:s,task:C,sink:R,normalizeWhitespace:S.normalizeWhitespace,combineTextItems:S.combineTextItems}).then(function(){l(C),y&&(0,r.info)(`page=${E+1} - getTextContent: time=${Date.now()-y}ms`),R.close()},function(I){l(C),!C.terminated&&R.error(I)})})}),s.on("FontFallback",function(k){return L.fontFallback(k.id,s)}),s.on("Cleanup",function(S){return L.cleanup()}),s.on("Terminate",function(S){M=!0;const R=[];if(L){L.terminate(new r.AbortException("Worker was terminated."));const E=L.cleanup();R.push(E),L=null}else(0,i.clearPrimitiveCaches)();return P&&P(new r.AbortException("Worker was terminated.")),b.forEach(function(E){R.push(E.finished),E.terminate()}),Promise.all(R).then(function(){s.destroy(),s=null})}),s.on("Ready",function(S){D(J),J=null}),v},initializeFromPort(J){var O=new N.MessageHandler("worker","main",J);m.setup(O,J),O.send("ready",null)}};t.WorkerMessageHandler=m;function n(J){return typeof J.postMessage=="function"&&"onmessage"in J}typeof window>"u"&&!e.isNodeJS&&typeof self<"u"&&n(self)&&m.initializeFromPort(self)},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=z,t.arraysToBytes=j,t.assert=F,t.bytesToString=G,t.createPromiseCapability=Se,t.getVerbosityLevel=s,t.info=o,t.isArrayBuffer=xe,t.isArrayEqual=be,t.isBool=me,t.isEmptyObj=le,t.isNum=Pe,t.isString=Ce,t.isSameOrigin=T,t.createValidAbsoluteUrl=k,t.removeNullCharacters=W,t.setVerbosityLevel=v,t.shadow=S,t.string32=Y,t.stringToBytes=q,t.stringToPDFString=ie,t.stringToUTF8String=de,t.utf8StringToString=oe,t.warn=u,t.unreachable=l,t.IsEvalSupportedCached=t.IsLittleEndianCached=t.createObjectURL=t.FormatError=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.NativeImageDecoding=t.MissingPDFException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=t.BaseException=void 0,a(3);const r=[1,0,0,1,0,0];t.IDENTITY_MATRIX=r;const i=[.001,0,0,.001,0,0];t.FONT_IDENTITY_MATRIX=i;const p={NONE:"none",DECODE:"decode",DISPLAY:"display"};t.NativeImageDecoding=p;const e={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.PermissionFlag=e;const N={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};t.TextRenderingMode=N;const w={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.ImageKind=w;const $={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};t.AnnotationType=$;const U={MARKED:"Marked",REVIEW:"Review"};t.AnnotationStateModelType=U;const m={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationMarkedState=m;const n={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReviewState=n;const J={GROUP:"Group",REPLY:"R"};t.AnnotationReplyType=J;const O={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFlag=O;const L={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};t.AnnotationFieldFlag=L;const M={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.AnnotationBorderStyleType=M;const P={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.StreamType=P;const b={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};t.FontType=b;const _={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=_;const d={NONE:0,BINARY:1,STREAM:2};t.CMapCompressionType=d;const c={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};t.OPS=c;const h={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"};t.UNSUPPORTED_FEATURES=h;const f={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};t.PasswordResponses=f;let g=_.WARNINGS;function v(ge){Number.isInteger(ge)&&(g=ge)}function s(){return g}function o(ge){g>=_.INFOS&&console.log(`Info: ${ge}`)}function u(ge){g>=_.WARNINGS&&console.log(`Warning: ${ge}`)}function l(ge){throw new Error(ge)}function F(ge,ue){ge||l(ue)}function T(ge,ue){let se;try{if(se=new URL(ge),!se.origin||se.origin==="null")return!1}catch{return!1}const pe=new URL(ue,se);return se.origin===pe.origin}function D(ge){if(!ge)return!1;switch(ge.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function k(ge,ue){if(!ge)return null;try{const se=ue?new URL(ge,ue):new URL(ge);if(D(se))return se}catch{}return null}function S(ge,ue,se){return Object.defineProperty(ge,ue,{value:se,enumerable:!0,configurable:!0,writable:!1}),se}const R=function(){function ue(se){this.constructor===ue&&l("Cannot initialize BaseException."),this.message=se,this.name=this.constructor.name}return ue.prototype=new Error,ue.constructor=ue,ue}();t.BaseException=R;class E extends R{constructor(ue,se){super(ue),this.code=se}}t.PasswordException=E;class A extends R{constructor(ue,se){super(ue),this.details=se}}t.UnknownErrorException=A;class C extends R{}t.InvalidPDFException=C;class y extends R{}t.MissingPDFException=y;class I extends R{constructor(ue,se){super(ue),this.status=se}}t.UnexpectedResponseException=I;class H extends R{}t.FormatError=H;class V extends R{}t.AbortException=V;const B=/\x00/g;function W(ge){return typeof ge!="string"?(u("The argument for removeNullCharacters must be a string."),ge):ge.replace(B,"")}function G(ge){F(ge!==null&&typeof ge=="object"&&ge.length!==void 0,"Invalid argument for bytesToString");const ue=ge.length,se=8192;if(ue<se)return String.fromCharCode.apply(null,ge);const pe=[];for(let we=0;we<ue;we+=se){const Te=Math.min(we+se,ue),ke=ge.subarray(we,Te);pe.push(String.fromCharCode.apply(null,ke))}return pe.join("")}function q(ge){F(typeof ge=="string","Invalid argument for stringToBytes");const ue=ge.length,se=new Uint8Array(ue);for(let pe=0;pe<ue;++pe)se[pe]=ge.charCodeAt(pe)&255;return se}function z(ge){return ge.length!==void 0?ge.length:(F(ge.byteLength!==void 0),ge.byteLength)}function j(ge){const ue=ge.length;if(ue===1&&ge[0]instanceof Uint8Array)return ge[0];let se=0;for(let Te=0;Te<ue;Te++)se+=z(ge[Te]);let pe=0;const we=new Uint8Array(se);for(let Te=0;Te<ue;Te++){let ke=ge[Te];ke instanceof Uint8Array||(typeof ke=="string"?ke=q(ke):ke=new Uint8Array(ke));const Fe=ke.byteLength;we.set(ke,pe),pe+=Fe}return we}function Y(ge){return String.fromCharCode(ge>>24&255,ge>>16&255,ge>>8&255,ge&255)}function K(){const ge=new Uint8Array(4);return ge[0]=1,new Uint32Array(ge.buffer,0,1)[0]===1}const Z={get value(){return S(this,"value",K())}};t.IsLittleEndianCached=Z;function ee(){try{return new Function(""),!0}catch{return!1}}const ne={get value(){return S(this,"value",ee())}};t.IsEvalSupportedCached=ne;const ae=["rgb(",0,",",0,",",0,")"];class te{static makeCssRgb(ue,se,pe){return ae[1]=ue,ae[3]=se,ae[5]=pe,ae.join("")}static transform(ue,se){return[ue[0]*se[0]+ue[2]*se[1],ue[1]*se[0]+ue[3]*se[1],ue[0]*se[2]+ue[2]*se[3],ue[1]*se[2]+ue[3]*se[3],ue[0]*se[4]+ue[2]*se[5]+ue[4],ue[1]*se[4]+ue[3]*se[5]+ue[5]]}static applyTransform(ue,se){const pe=ue[0]*se[0]+ue[1]*se[2]+se[4],we=ue[0]*se[1]+ue[1]*se[3]+se[5];return[pe,we]}static applyInverseTransform(ue,se){const pe=se[0]*se[3]-se[1]*se[2],we=(ue[0]*se[3]-ue[1]*se[2]+se[2]*se[5]-se[4]*se[3])/pe,Te=(-ue[0]*se[1]+ue[1]*se[0]+se[4]*se[1]-se[5]*se[0])/pe;return[we,Te]}static getAxialAlignedBoundingBox(ue,se){const pe=te.applyTransform(ue,se),we=te.applyTransform(ue.slice(2,4),se),Te=te.applyTransform([ue[0],ue[3]],se),ke=te.applyTransform([ue[2],ue[1]],se);return[Math.min(pe[0],we[0],Te[0],ke[0]),Math.min(pe[1],we[1],Te[1],ke[1]),Math.max(pe[0],we[0],Te[0],ke[0]),Math.max(pe[1],we[1],Te[1],ke[1])]}static inverseTransform(ue){const se=ue[0]*ue[3]-ue[1]*ue[2];return[ue[3]/se,-ue[1]/se,-ue[2]/se,ue[0]/se,(ue[2]*ue[5]-ue[4]*ue[3])/se,(ue[4]*ue[1]-ue[5]*ue[0])/se]}static apply3dTransform(ue,se){return[ue[0]*se[0]+ue[1]*se[1]+ue[2]*se[2],ue[3]*se[0]+ue[4]*se[1]+ue[5]*se[2],ue[6]*se[0]+ue[7]*se[1]+ue[8]*se[2]]}static singularValueDecompose2dScale(ue){const se=[ue[0],ue[2],ue[1],ue[3]],pe=ue[0]*se[0]+ue[1]*se[2],we=ue[0]*se[1]+ue[1]*se[3],Te=ue[2]*se[0]+ue[3]*se[2],ke=ue[2]*se[1]+ue[3]*se[3],Fe=(pe+ke)/2,Le=Math.sqrt((pe+ke)*(pe+ke)-4*(pe*ke-Te*we))/2,he=Fe+Le||1,Ee=Fe-Le||1;return[Math.sqrt(he),Math.sqrt(Ee)]}static normalizeRect(ue){const se=ue.slice(0);return ue[0]>ue[2]&&(se[0]=ue[2],se[2]=ue[0]),ue[1]>ue[3]&&(se[1]=ue[3],se[3]=ue[1]),se}static intersect(ue,se){function pe(Fe,Le){return Fe-Le}const we=[ue[0],ue[2],se[0],se[2]].sort(pe),Te=[ue[1],ue[3],se[1],se[3]].sort(pe),ke=[];if(ue=te.normalizeRect(ue),se=te.normalizeRect(se),we[0]===ue[0]&&we[1]===se[0]||we[0]===se[0]&&we[1]===ue[0])ke[0]=we[1],ke[2]=we[2];else return null;if(Te[0]===ue[1]&&Te[1]===se[1]||Te[0]===se[1]&&Te[1]===ue[1])ke[1]=Te[1],ke[3]=Te[2];else return null;return ke}}t.Util=te;const re=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function ie(ge){const ue=ge.length,se=[];if(ge[0]==="þ"&&ge[1]==="ÿ")for(let pe=2;pe<ue;pe+=2)se.push(String.fromCharCode(ge.charCodeAt(pe)<<8|ge.charCodeAt(pe+1)));else if(ge[0]==="ÿ"&&ge[1]==="þ")for(let pe=2;pe<ue;pe+=2)se.push(String.fromCharCode(ge.charCodeAt(pe+1)<<8|ge.charCodeAt(pe)));else for(let pe=0;pe<ue;++pe){const we=re[ge.charCodeAt(pe)];se.push(we?String.fromCharCode(we):ge.charAt(pe))}return se.join("")}function de(ge){return decodeURIComponent(escape(ge))}function oe(ge){return unescape(encodeURIComponent(ge))}function le(ge){for(const ue in ge)return!1;return!0}function me(ge){return typeof ge=="boolean"}function Pe(ge){return typeof ge=="number"}function Ce(ge){return typeof ge=="string"}function xe(ge){return typeof ge=="object"&&ge!==null&&ge.byteLength!==void 0}function be(ge,ue){return ge.length!==ue.length?!1:ge.every(function(se,pe){return se===ue[pe]})}function Se(){const ge=Object.create(null);let ue=!1;return Object.defineProperty(ge,"settled",{get(){return ue}}),ge.promise=new Promise(function(se,pe){ge.resolve=function(we){ue=!0,se(we)},ge.reject=function(we){ue=!0,pe(we)}}),ge}const _e=function(){const ue="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(pe,we,Te=!1){if(!Te&&URL.createObjectURL){const Fe=new Blob([pe],{type:we});return URL.createObjectURL(Fe)}let ke=`data:${we};base64,`;for(let Fe=0,Le=pe.length;Fe<Le;Fe+=3){const he=pe[Fe]&255,Ee=pe[Fe+1]&255,ve=pe[Fe+2]&255,ye=he>>2,Oe=(he&3)<<4|Ee>>4,Ne=Fe+1<Le?(Ee&15)<<2|ve>>6:64,Ge=Fe+2<Le?ve&63:64;ke+=ue[ye]+ue[Oe]+ue[Ne]+ue[Ge]}return ke}}();t.createObjectURL=_e},function(x,t,a){},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.clearPrimitiveCaches=P,t.isEOF=U,t.isCmd=n,t.isDict=J,t.isName=m,t.isRef=O,t.isRefsEqual=L,t.isStream=M,t.RefSetCache=t.RefSet=t.Ref=t.Name=t.Dict=t.Cmd=t.EOF=void 0,a(2);var r={};t.EOF=r;var i=function(){let _=Object.create(null);function d(c){this.name=c}return d.prototype={},d.get=function(h){var f=_[h];return f||(_[h]=new d(h))},d._clearCache=function(){_=Object.create(null)},d}();t.Name=i;var p=function(){let _=Object.create(null);function d(c){this.cmd=c}return d.prototype={},d.get=function(h){var f=_[h];return f||(_[h]=new d(h))},d._clearCache=function(){_=Object.create(null)},d}();t.Cmd=p;var e=function(){var _=function(){return _};function d(c){this._map=Object.create(null),this.xref=c,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=_}return d.prototype={assignXref:function(h){this.xref=h},get(c,h,f){let g=this._map[c];return g===void 0&&h!==void 0&&(g=this._map[h],g===void 0&&f!==void 0&&(g=this._map[f])),g instanceof N&&this.xref?this.xref.fetch(g,this.suppressEncryption):g},async getAsync(c,h,f){let g=this._map[c];return g===void 0&&h!==void 0&&(g=this._map[h],g===void 0&&f!==void 0&&(g=this._map[f])),g instanceof N&&this.xref?this.xref.fetchAsync(g,this.suppressEncryption):g},getArray(c,h,f){let g=this.get(c,h,f);if(!Array.isArray(g)||!this.xref)return g;g=g.slice();for(let v=0,s=g.length;v<s;v++)g[v]instanceof N&&(g[v]=this.xref.fetch(g[v],this.suppressEncryption));return g},getRaw:function(h){return this._map[h]},getKeys:function(){return Object.keys(this._map)},set:function(h,f){this._map[h]=f},has:function(h){return this._map[h]!==void 0},forEach:function(h){for(var f in this._map)h(f,this.get(f))}},d.empty=new d(null),d.merge=function(c,h){const f=new d(c);for(let g=0,v=h.length;g<v;g++){const s=h[g];if(J(s))for(const o in s._map)f._map[o]===void 0&&(f._map[o]=s._map[o])}return f},d}();t.Dict=e;var N=function(){let _=Object.create(null);function d(c,h){this.num=c,this.gen=h}return d.prototype={toString:function(){return this.gen===0?`${this.num}R`:`${this.num}R${this.gen}`}},d.get=function(c,h){const f=h===0?`${c}R`:`${c}R${h}`,g=_[f];return g||(_[f]=new d(c,h))},d._clearCache=function(){_=Object.create(null)},d}();t.Ref=N;var w=function(){function _(){this.dict=Object.create(null)}return _.prototype={has:function(c){return c.toString()in this.dict},put:function(c){this.dict[c.toString()]=!0},remove:function(c){delete this.dict[c.toString()]}},_}();t.RefSet=w;var $=function(){function _(){this.dict=Object.create(null)}return _.prototype={get:function(c){return this.dict[c.toString()]},has:function(c){return c.toString()in this.dict},put:function(c,h){this.dict[c.toString()]=h},putAlias:function(c,h){this.dict[c.toString()]=this.get(h)},forEach:function(c){for(const h in this.dict)c(this.dict[h])},clear:function(){this.dict=Object.create(null)}},_}();t.RefSetCache=$;function U(b){return b===r}function m(b,_){return b instanceof i&&(_===void 0||b.name===_)}function n(b,_){return b instanceof p&&(_===void 0||b.cmd===_)}function J(b,_){return b instanceof e&&(_===void 0||m(b.get("Type"),_))}function O(b){return b instanceof N}function L(b,_){return b.num===_.num&&b.gen===_.gen}function M(b){return typeof b=="object"&&b!==null&&b.getBytes!==void 0}function P(){p._clearCache(),i._clearCache(),N._clearCache()}},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkPdfManager=t.LocalPdfManager=void 0;var r=a(2),i=a(6),p=a(7),e=a(8),N=a(11);class w{constructor(){this.constructor===w&&(0,r.unreachable)("Cannot initialize BasePdfManager.")}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){let n=null;if(this._docBaseUrl){const J=(0,r.createValidAbsoluteUrl)(this._docBaseUrl);J?n=J.href:(0,r.warn)(`Invalid absolute docBaseUrl: "${this._docBaseUrl}".`)}return(0,r.shadow)(this,"docBaseUrl",n)}onLoadedStream(){(0,r.unreachable)("Abstract method `onLoadedStream` called")}ensureDoc(n,J){return this.ensure(this.pdfDocument,n,J)}ensureXRef(n,J){return this.ensure(this.pdfDocument.xref,n,J)}ensureCatalog(n,J){return this.ensure(this.pdfDocument.catalog,n,J)}getPage(n){return this.pdfDocument.getPage(n)}fontFallback(n,J){return this.pdfDocument.fontFallback(n,J)}cleanup(){return this.pdfDocument.cleanup()}async ensure(n,J,O){(0,r.unreachable)("Abstract method `ensure` called")}requestRange(n,J){(0,r.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(){(0,r.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(n){(0,r.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(n){this._password=n}terminate(n){(0,r.unreachable)("Abstract method `terminate` called")}}class $ extends w{constructor(n,J,O,L,M){super(),this._docId=n,this._password=O,this._docBaseUrl=M,this.evaluatorOptions=L;const P=new N.Stream(J);this.pdfDocument=new e.PDFDocument(this,P),this._loadedStreamPromise=Promise.resolve(P)}async ensure(n,J,O){const L=n[J];return typeof L=="function"?L.apply(n,O):L}requestRange(n,J){return Promise.resolve()}requestLoadedStream(){}onLoadedStream(){return this._loadedStreamPromise}terminate(n){}}t.LocalPdfManager=$;class U extends w{constructor(n,J,O,L,M){super(),this._docId=n,this._password=O.password,this._docBaseUrl=M,this.msgHandler=O.msgHandler,this.evaluatorOptions=L,this.streamManager=new i.ChunkedStreamManager(J,{msgHandler:O.msgHandler,length:O.length,disableAutoFetch:O.disableAutoFetch,rangeChunkSize:O.rangeChunkSize}),this.pdfDocument=new e.PDFDocument(this,this.streamManager.getStream())}async ensure(n,J,O){try{const L=n[J];return typeof L=="function"?L.apply(n,O):L}catch(L){if(!(L instanceof p.MissingDataException))throw L;return await this.requestRange(L.begin,L.end),this.ensure(n,J,O)}}requestRange(n,J){return this.streamManager.requestRange(n,J)}requestLoadedStream(){this.streamManager.requestAllChunks()}sendProgressiveData(n){this.streamManager.onReceiveData({chunk:n})}onLoadedStream(){return this.streamManager.onLoadedStream()}terminate(n){this.streamManager.abort(n)}}t.NetworkPdfManager=U},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkedStreamManager=t.ChunkedStream=void 0;var r=a(2),i=a(7);class p{constructor(w,$,U){this.bytes=new Uint8Array(w),this.start=0,this.pos=0,this.end=w,this.chunkSize=$,this.loadedChunks=[],this.numChunksLoaded=0,this.numChunks=Math.ceil(w/$),this.manager=U,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){const w=[];for(let $=0,U=this.numChunks;$<U;++$)this.loadedChunks[$]||w.push($);return w}getBaseStreams(){return[this]}allChunksLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(w,$){const U=this.chunkSize;if(w%U!==0)throw new Error(`Bad begin offset: ${w}`);const m=w+$.byteLength;if(m%U!==0&&m!==this.bytes.length)throw new Error(`Bad end offset: ${m}`);this.bytes.set(new Uint8Array($),w);const n=Math.floor(w/U),J=Math.floor((m-1)/U)+1;for(let O=n;O<J;++O)this.loadedChunks[O]||(this.loadedChunks[O]=!0,++this.numChunksLoaded)}onReceiveProgressiveData(w){let $=this.progressiveDataLength;const U=Math.floor($/this.chunkSize);this.bytes.set(new Uint8Array(w),$),$+=w.byteLength,this.progressiveDataLength=$;const m=$>=this.end?this.numChunks:Math.floor($/this.chunkSize);for(let n=U;n<m;++n)this.loadedChunks[n]||(this.loadedChunks[n]=!0,++this.numChunksLoaded)}ensureByte(w){if(w<this.progressiveDataLength)return;const $=Math.floor(w/this.chunkSize);if($!==this.lastSuccessfulEnsureByteChunk){if(!this.loadedChunks[$])throw new i.MissingDataException(w,w+1);this.lastSuccessfulEnsureByteChunk=$}}ensureRange(w,$){if(w>=$||$<=this.progressiveDataLength)return;const U=this.chunkSize,m=Math.floor(w/U),n=Math.floor(($-1)/U)+1;for(let J=m;J<n;++J)if(!this.loadedChunks[J])throw new i.MissingDataException(w,$)}nextEmptyChunk(w){const $=this.numChunks;for(let U=0;U<$;++U){const m=(w+U)%$;if(!this.loadedChunks[m])return m}return null}hasChunk(w){return!!this.loadedChunks[w]}get length(){return this.end-this.start}get isEmpty(){return this.length===0}getByte(){const w=this.pos;return w>=this.end?-1:(w>=this.progressiveDataLength&&this.ensureByte(w),this.bytes[this.pos++])}getUint16(){const w=this.getByte(),$=this.getByte();return w===-1||$===-1?-1:(w<<8)+$}getInt32(){const w=this.getByte(),$=this.getByte(),U=this.getByte(),m=this.getByte();return(w<<24)+($<<16)+(U<<8)+m}getBytes(w,$=!1){const U=this.bytes,m=this.pos,n=this.end;if(!w){n>this.progressiveDataLength&&this.ensureRange(m,n);const L=U.subarray(m,n);return $?new Uint8ClampedArray(L):L}let J=m+w;J>n&&(J=n),J>this.progressiveDataLength&&this.ensureRange(m,J),this.pos=J;const O=U.subarray(m,J);return $?new Uint8ClampedArray(O):O}peekByte(){const w=this.getByte();return w!==-1&&this.pos--,w}peekBytes(w,$=!1){const U=this.getBytes(w,$);return this.pos-=U.length,U}getByteRange(w,$){return w<0&&(w=0),$>this.end&&($=this.end),$>this.progressiveDataLength&&this.ensureRange(w,$),this.bytes.subarray(w,$)}skip(w){w||(w=1),this.pos+=w}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(w,$,U){$?w+$>this.progressiveDataLength&&this.ensureRange(w,w+$):w>=this.progressiveDataLength&&this.ensureByte(w);function m(){}m.prototype=Object.create(this),m.prototype.getMissingChunks=function(){const J=this.chunkSize,O=Math.floor(this.start/J),L=Math.floor((this.end-1)/J)+1,M=[];for(let P=O;P<L;++P)this.loadedChunks[P]||M.push(P);return M},m.prototype.allChunksLoaded=function(){return this.numChunksLoaded===this.numChunks?!0:this.getMissingChunks().length===0};const n=new m;return n.pos=n.start=w,n.end=w+$||this.end,n.dict=U,n}}t.ChunkedStream=p;class e{constructor(w,$){this.length=$.length,this.chunkSize=$.rangeChunkSize,this.stream=new p(this.length,this.chunkSize,this),this.pdfNetworkStream=w,this.disableAutoFetch=$.disableAutoFetch,this.msgHandler=$.msgHandler,this.currRequestId=0,this.chunksNeededByRequest=Object.create(null),this.requestsByChunk=Object.create(null),this.promisesByRequest=Object.create(null),this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=(0,r.createPromiseCapability)()}onLoadedStream(){return this._loadedStreamCapability.promise}sendRequest(w,$){const U=this.pdfNetworkStream.getRangeReader(w,$);U.isStreamingSupported||(U.onProgress=this.onProgress.bind(this));let m=[],n=0;new Promise((O,L)=>{const M=P=>{try{if(!P.done){const _=P.value;m.push(_),n+=(0,r.arrayByteLength)(_),U.isStreamingSupported&&this.onProgress({loaded:n}),U.read().then(M,L);return}const b=(0,r.arraysToBytes)(m);m=null,O(b)}catch(b){L(b)}};U.read().then(M,L)}).then(O=>{this.aborted||this.onReceiveData({chunk:O,begin:w})})}requestAllChunks(){const w=this.stream.getMissingChunks();return this._requestChunks(w),this._loadedStreamCapability.promise}_requestChunks(w){const $=this.currRequestId++,U=Object.create(null);this.chunksNeededByRequest[$]=U;for(const O of w)this.stream.hasChunk(O)||(U[O]=!0);if((0,r.isEmptyObj)(U))return Promise.resolve();const m=(0,r.createPromiseCapability)();this.promisesByRequest[$]=m;const n=[];for(let O in U)O=O|0,O in this.requestsByChunk||(this.requestsByChunk[O]=[],n.push(O)),this.requestsByChunk[O].push($);if(!n.length)return m.promise;const J=this.groupChunks(n);for(const O of J){const L=O.beginChunk*this.chunkSize,M=Math.min(O.endChunk*this.chunkSize,this.length);this.sendRequest(L,M)}return m.promise}getStream(){return this.stream}requestRange(w,$){$=Math.min($,this.length);const U=this.getBeginChunk(w),m=this.getEndChunk($),n=[];for(let J=U;J<m;++J)n.push(J);return this._requestChunks(n)}requestRanges(w=[]){const $=[];for(const U of w){const m=this.getBeginChunk(U.begin),n=this.getEndChunk(U.end);for(let J=m;J<n;++J)$.includes(J)||$.push(J)}return $.sort(function(U,m){return U-m}),this._requestChunks($)}groupChunks(w){const $=[];let U=-1,m=-1;for(let n=0,J=w.length;n<J;++n){const O=w[n];U<0&&(U=O),m>=0&&m+1!==O&&($.push({beginChunk:U,endChunk:m+1}),U=O),n+1===w.length&&$.push({beginChunk:U,endChunk:O+1}),m=O}return $}onProgress(w){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+w.loaded,total:this.length})}onReceiveData(w){const $=w.chunk,U=w.begin===void 0,m=U?this.progressiveDataLength:w.begin,n=m+$.byteLength,J=Math.floor(m/this.chunkSize),O=n<this.length?Math.floor(n/this.chunkSize):Math.ceil(n/this.chunkSize);U?(this.stream.onReceiveProgressiveData($),this.progressiveDataLength=n):this.stream.onReceiveData(m,$),this.stream.allChunksLoaded()&&this._loadedStreamCapability.resolve(this.stream);const L=[];for(let M=J;M<O;++M){const P=this.requestsByChunk[M]||[];delete this.requestsByChunk[M];for(const b of P){const _=this.chunksNeededByRequest[b];M in _&&delete _[M],(0,r.isEmptyObj)(_)&&L.push(b)}}if(!this.disableAutoFetch&&(0,r.isEmptyObj)(this.requestsByChunk)){let M;if(this.stream.numChunksLoaded===1){const P=this.stream.numChunks-1;this.stream.hasChunk(P)||(M=P)}else M=this.stream.nextEmptyChunk(O);Number.isInteger(M)&&this._requestChunks([M])}for(const M of L){const P=this.promisesByRequest[M];delete this.promisesByRequest[M],P.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(w){this._loadedStreamCapability.reject(w)}getBeginChunk(w){return Math.floor(w/this.chunkSize)}getEndChunk(w){return Math.floor((w-1)/this.chunkSize)+1}abort(w){this.aborted=!0,this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(w);for(const $ in this.promisesByRequest)this.promisesByRequest[$].reject(w)}}t.ChunkedStreamManager=e},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.getLookupTableFactory=i,t.getInheritableProperty=w,t.toRomanNumerals=U,t.log2=m,t.readInt8=n,t.readUint16=J,t.readUint32=O,t.isWhiteSpace=L,t.XRefParseException=t.XRefEntryException=t.MissingDataException=void 0;var r=a(2);function i(M){let P;return function(){return M&&(P=Object.create(null),M(P),M=null),P}}class p extends r.BaseException{constructor(P,b){super(`Missing data [${P}, ${b})`),this.begin=P,this.end=b}}t.MissingDataException=p;class e extends r.BaseException{}t.XRefEntryException=e;class N extends r.BaseException{}t.XRefParseException=N;function w({dict:M,key:P,getArray:b=!1,stopWhenFound:_=!0}){let c=0,h;for(;M;){const f=b?M.getArray(P):M.get(P);if(f!==void 0){if(_)return f;h||(h=[]),h.push(f)}if(++c>100){(0,r.warn)(`getInheritableProperty: maximum loop count exceeded for "${P}"`);break}M=M.get("Parent")}return h}const $=["","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 U(M,P=!1){(0,r.assert)(Number.isInteger(M)&&M>0,"The number should be a positive integer.");const b=[];let _;for(;M>=1e3;)M-=1e3,b.push("M");_=M/100|0,M%=100,b.push($[_]),_=M/10|0,M%=10,b.push($[10+_]),b.push($[20+M]);const d=b.join("");return P?d.toLowerCase():d}function m(M){return M<=0?0:Math.ceil(Math.log2(M))}function n(M,P){return M[P]<<24>>24}function J(M,P){return M[P]<<8|M[P+1]}function O(M,P){return(M[P]<<24|M[P+1]<<16|M[P+2]<<8|M[P+3])>>>0}function L(M){return M===32||M===9||M===13||M===10}},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDocument=t.Page=void 0;var r=a(2),i=a(9),p=a(4),e=a(7),N=a(11),w=a(23),$=a(21),U=a(10),m=a(24),n=a(25),J=a(39);const O=1,L=[0,0,612,792];function M(s,o){return o==="display"&&s.viewable||o==="print"&&s.printable}class P{constructor({pdfManager:o,xref:u,pageIndex:l,pageDict:F,ref:T,fontCache:D,builtInCMapCache:k,pdfFunctionFactory:S}){this.pdfManager=o,this.pageIndex=l,this.pageDict=F,this.xref=u,this.ref=T,this.fontCache=D,this.builtInCMapCache=k,this.pdfFunctionFactory=S,this.evaluatorOptions=o.evaluatorOptions,this.resourcesPromise=null;const R={obj:0};this.idFactory={createObjId(){return`p${l}_${++R.obj}`},getDocId(){return`g_${o.docId}`}}}_getInheritableProperty(o,u=!1){const l=(0,e.getInheritableProperty)({dict:this.pageDict,key:o,getArray:u,stopWhenFound:!1});return Array.isArray(l)?l.length===1||!(0,p.isDict)(l[0])?l[0]:p.Dict.merge(this.xref,l):l}get content(){return this.pageDict.get("Contents")}get resources(){return(0,r.shadow)(this,"resources",this._getInheritableProperty("Resources")||p.Dict.empty)}_getBoundingBox(o){const u=this._getInheritableProperty(o,!0);if(Array.isArray(u)&&u.length===4){if(u[2]-u[0]!==0&&u[3]-u[1]!==0)return u;(0,r.warn)(`Empty /${o} entry.`)}return null}get mediaBox(){return(0,r.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||L)}get cropBox(){return(0,r.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let o=this.pageDict.get("UserUnit");return(!(0,r.isNum)(o)||o<=0)&&(o=O),(0,r.shadow)(this,"userUnit",o)}get view(){const{cropBox:o,mediaBox:u}=this;let l;if(o===u||(0,r.isArrayEqual)(o,u))l=u;else{const F=r.Util.intersect(o,u);F&&F[2]-F[0]!==0&&F[3]-F[1]!==0?l=F:(0,r.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,r.shadow)(this,"view",l||u)}get rotate(){let o=this._getInheritableProperty("Rotate")||0;return o%90!==0?o=0:o>=360?o=o%360:o<0&&(o=(o%360+360)%360),(0,r.shadow)(this,"rotate",o)}getContentStream(){const o=this.content;let u;if(Array.isArray(o)){const l=this.xref,F=[];for(const T of o)F.push(l.fetchIfRef(T));u=new N.StreamsSequenceStream(F)}else(0,p.isStream)(o)?u=o:u=new N.NullStream;return u}loadResources(o){return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then(()=>new i.ObjectLoader(this.resources,o,this.xref).load())}getOperatorList({handler:o,sink:u,task:l,intent:F,renderInteractiveForms:T}){const D=this.pdfManager.ensure(this,"getContentStream"),k=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),S=new n.PartialEvaluator({xref:this.xref,handler:o,pageIndex:this.pageIndex,idFactory:this.idFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,options:this.evaluatorOptions,pdfFunctionFactory:this.pdfFunctionFactory}),E=Promise.all([D,k]).then(([A])=>{const C=new m.OperatorList(F,u,this.pageIndex);return o.send("StartRenderPage",{transparency:S.hasBlendModes(this.resources),pageIndex:this.pageIndex,intent:F}),S.getOperatorList({stream:A,task:l,resources:this.resources,operatorList:C}).then(function(){return C})});return Promise.all([E,this._parsedAnnotations]).then(function([A,C]){if(C.length===0)return A.flush(!0),{length:A.totalLength};const y=[];for(const I of C)M(I,F)&&y.push(I.getOperatorList(S,l,T));return Promise.all(y).then(function(I){A.addOp(r.OPS.beginAnnotations,[]);for(const H of I)A.addOpList(H);return A.addOp(r.OPS.endAnnotations,[]),A.flush(!0),{length:A.totalLength}})})}extractTextContent({handler:o,task:u,normalizeWhitespace:l,sink:F,combineTextItems:T}){const D=this.pdfManager.ensure(this,"getContentStream"),k=this.loadResources(["ExtGState","XObject","Font"]);return Promise.all([D,k]).then(([R])=>new n.PartialEvaluator({xref:this.xref,handler:o,pageIndex:this.pageIndex,idFactory:this.idFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,options:this.evaluatorOptions,pdfFunctionFactory:this.pdfFunctionFactory}).getTextContent({stream:R,task:u,resources:this.resources,normalizeWhitespace:l,combineTextItems:T,sink:F}))}getAnnotationsData(o){return this._parsedAnnotations.then(function(u){const l=[];for(let F=0,T=u.length;F<T;F++)(!o||M(u[F],o))&&l.push(u[F].data);return l})}get annotations(){return(0,r.shadow)(this,"annotations",this._getInheritableProperty("Annots")||[])}get _parsedAnnotations(){const o=this.pdfManager.ensure(this,"annotations").then(()=>{const u=this.annotations,l=[];for(let F=0,T=u.length;F<T;F++)l.push(w.AnnotationFactory.create(this.xref,u[F],this.pdfManager,this.idFactory));return Promise.all(l).then(function(F){return F.filter(function(D){return!!D})},function(F){return(0,r.warn)(`_parsedAnnotations: "${F}".`),[]})});return(0,r.shadow)(this,"_parsedAnnotations",o)}}t.Page=P;const b=new Uint8Array([37,80,68,70,45]),_=new Uint8Array([115,116,97,114,116,120,114,101,102]),d=new Uint8Array([101,110,100,111,98,106]),c=1024,h="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",f=/^[1-9]\.[0-9]$/;function g(s,o,u=1024,l=!1){const F=o.length,T=s.peekBytes(u),D=T.length-F;if(D<=0)return!1;if(l){const k=F-1;let S=T.length-1;for(;S>=k;){let R=0;for(;R<F&&T[S-R]===o[k-R];)R++;if(R>=F)return s.pos+=S-k,!0;S--}}else{let k=0;for(;k<=D;){let S=0;for(;S<F&&T[k+S]===o[S];)S++;if(S>=F)return s.pos+=k,!0;k++}}return!1}class v{constructor(o,u){let l;if((0,p.isStream)(u))l=u;else if((0,r.isArrayBuffer)(u))l=new N.Stream(u);else throw new Error("PDFDocument: Unknown argument type");if(l.length<=0)throw new r.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=o,this.stream=l,this.xref=new i.XRef(l,o),this.pdfFunctionFactory=new J.PDFFunctionFactory({xref:this.xref,isEvalSupported:o.evaluatorOptions.isEvalSupported}),this._pagePromises=[]}parse(o){this.setup(o);const u=this.catalog.catDict.get("Version");(0,p.isName)(u)&&(this.pdfFormatVersion=u.name);try{if(this.acroForm=this.catalog.catDict.get("AcroForm"),this.acroForm){this.xfa=this.acroForm.get("XFA");const l=this.acroForm.get("Fields");(!Array.isArray(l)||l.length===0)&&!this.xfa&&(this.acroForm=null)}}catch(l){if(l instanceof e.MissingDataException)throw l;(0,r.info)("Cannot fetch AcroForm entry; assuming no AcroForms are present"),this.acroForm=null}try{const l=this.catalog.catDict.get("Collection");(0,p.isDict)(l)&&l.getKeys().length>0&&(this.collection=l)}catch(l){if(l instanceof e.MissingDataException)throw l;(0,r.info)("Cannot fetch Collection dictionary.")}}get linearization(){let o=null;try{o=U.Linearization.create(this.stream)}catch(u){if(u instanceof e.MissingDataException)throw u;(0,r.info)(u)}return(0,r.shadow)(this,"linearization",o)}get startXRef(){const o=this.stream;let u=0;if(this.linearization)o.reset(),g(o,d)&&(u=o.pos+6-o.start);else{const F=_.length;let T=!1,D=o.end;for(;!T&&D>0;)D-=1024-F,D<0&&(D=0),o.pos=D,T=g(o,_,1024,!0);if(T){o.skip(9);let k;do k=o.getByte();while((0,e.isWhiteSpace)(k));let S="";for(;k>=32&&k<=57;)S+=String.fromCharCode(k),k=o.getByte();u=parseInt(S,10),isNaN(u)&&(u=0)}}return(0,r.shadow)(this,"startXRef",u)}checkHeader(){const o=this.stream;if(o.reset(),!g(o,b))return;o.moveStart();const u=12;let l="",F;for(;(F=o.getByte())>32&&!(l.length>=u);)l+=String.fromCharCode(F);this.pdfFormatVersion||(this.pdfFormatVersion=l.substring(5))}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}setup(o){this.xref.parse(o),this.catalog=new i.Catalog(this.pdfManager,this.xref)}get numPages(){const o=this.linearization,u=o?o.numPages:this.catalog.numPages;return(0,r.shadow)(this,"numPages",u)}get documentInfo(){const o={Title:r.isString,Author:r.isString,Subject:r.isString,Keywords:r.isString,Creator:r.isString,Producer:r.isString,CreationDate:r.isString,ModDate:r.isString,Trapped:p.isName};let u=this.pdfFormatVersion;(typeof u!="string"||!f.test(u))&&((0,r.warn)(`Invalid PDF header version number: ${u}`),u=null);const l={PDFFormatVersion:u,IsLinearized:!!this.linearization,IsAcroFormPresent:!!this.acroForm,IsXFAPresent:!!this.xfa,IsCollectionPresent:!!this.collection};let F;try{F=this.xref.trailer.get("Info")}catch(T){if(T instanceof e.MissingDataException)throw T;(0,r.info)("The document information dictionary is invalid.")}if((0,p.isDict)(F))for(const T of F.getKeys()){const D=F.get(T);if(o[T])o[T](D)?l[T]=typeof D!="string"?D:(0,r.stringToPDFString)(D):(0,r.info)(`Bad value in document info for "${T}".`);else if(typeof T=="string"){let k;if((0,r.isString)(D))k=(0,r.stringToPDFString)(D);else if((0,p.isName)(D)||(0,r.isNum)(D)||(0,r.isBool)(D))k=D;else{(0,r.info)(`Unsupported value in document info for (custom) "${T}".`);continue}l.Custom||(l.Custom=Object.create(null)),l.Custom[T]=k}}return(0,r.shadow)(this,"documentInfo",l)}get fingerprint(){let o;const u=this.xref.trailer.get("ID");Array.isArray(u)&&u[0]&&(0,r.isString)(u[0])&&u[0]!==h?o=(0,r.stringToBytes)(u[0]):o=(0,$.calculateMD5)(this.stream.getByteRange(0,c),0,c);const l=[];for(let F=0,T=o.length;F<T;F++){const D=o[F].toString(16);l.push(D.padStart(2,"0"))}return(0,r.shadow)(this,"fingerprint",l.join(""))}_getLinearizationPage(o){const{catalog:u,linearization:l}=this;(0,r.assert)(l&&l.pageFirst===o);const F=p.Ref.get(l.objectNumberFirst,0);return this.xref.fetchAsync(F).then(T=>{if((0,p.isDict)(T,"Page")||(0,p.isDict)(T)&&!T.has("Type")&&T.has("Contents"))return F&&!u.pageKidsCountCache.has(F)&&u.pageKidsCountCache.put(F,1),[T,F];throw new r.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")}).catch(T=>((0,r.info)(T),u.getPageDict(o)))}getPage(o){if(this._pagePromises[o]!==void 0)return this._pagePromises[o];const{catalog:u,linearization:l}=this,F=l&&l.pageFirst===o?this._getLinearizationPage(o):u.getPageDict(o);return this._pagePromises[o]=F.then(([T,D])=>new P({pdfManager:this.pdfManager,xref:this.xref,pageIndex:o,pageDict:T,ref:D,fontCache:u.fontCache,builtInCMapCache:u.builtInCMapCache,pdfFunctionFactory:this.pdfFunctionFactory}))}checkFirstPage(){return this.getPage(0).catch(async o=>{if(o instanceof e.XRefEntryException)throw this._pagePromises.length=0,await this.cleanup(),new e.XRefParseException})}fontFallback(o,u){return this.catalog.fontFallback(o,u)}async cleanup(){return this.catalog?this.catalog.cleanup():(0,p.clearPrimitiveCaches)()}}t.PDFDocument=v},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.FileSpec=t.XRef=t.ObjectLoader=t.Catalog=void 0;var r=a(2),i=a(4),p=a(10),e=a(7),N=a(21),w=a(22);function $(P){return(0,i.isDict)(P)?P.get("D"):P}class U{constructor(b,_){if(this.pdfManager=b,this.xref=_,this.catDict=_.getCatalogObj(),!(0,i.isDict)(this.catDict))throw new r.FormatError("Catalog object is not a dictionary.");this.fontCache=new i.RefSetCache,this.builtInCMapCache=new Map,this.pageKidsCountCache=new i.RefSetCache}get metadata(){const b=this.catDict.getRaw("Metadata");if(!(0,i.isRef)(b))return(0,r.shadow)(this,"metadata",null);const _=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),d=this.xref.fetch(b,_);let c;if(d&&(0,i.isDict)(d.dict)){const h=d.dict.get("Type"),f=d.dict.get("Subtype");if((0,i.isName)(h,"Metadata")&&(0,i.isName)(f,"XML"))try{c=(0,r.stringToUTF8String)((0,r.bytesToString)(d.getBytes()))}catch(g){if(g instanceof e.MissingDataException)throw g;(0,r.info)("Skipping invalid metadata.")}}return(0,r.shadow)(this,"metadata",c)}get toplevelPagesDict(){const b=this.catDict.get("Pages");if(!(0,i.isDict)(b))throw new r.FormatError("Invalid top-level pages dictionary.");return(0,r.shadow)(this,"toplevelPagesDict",b)}get documentOutline(){let b=null;try{b=this._readDocumentOutline()}catch(_){if(_ instanceof e.MissingDataException)throw _;(0,r.warn)("Unable to read document outline.")}return(0,r.shadow)(this,"documentOutline",b)}_readDocumentOutline(){let b=this.catDict.get("Outlines");if(!(0,i.isDict)(b)||(b=b.getRaw("First"),!(0,i.isRef)(b)))return null;const _={items:[]},d=[{obj:b,parent:_}],c=new i.RefSet;c.put(b);const h=this.xref,f=new Uint8ClampedArray(3);for(;d.length>0;){const g=d.shift(),v=h.fetchIfRef(g.obj);if(v===null)continue;if(!v.has("Title"))throw new r.FormatError("Invalid outline item encountered.");const s={url:null,dest:null};U.parseDestDictionary({destDict:v,resultObj:s,docBaseUrl:this.pdfManager.docBaseUrl});const o=v.get("Title"),u=v.get("F")||0,l=v.getArray("C"),F=v.get("Count");let T=f;Array.isArray(l)&&l.length===3&&(l[0]!==0||l[1]!==0||l[2]!==0)&&(T=w.ColorSpace.singletons.rgb.getRgb(l,0));const D={dest:s.dest,url:s.url,unsafeUrl:s.unsafeUrl,newWindow:s.newWindow,title:(0,r.stringToPDFString)(o),color:T,count:Number.isInteger(F)?F:void 0,bold:!!(u&2),italic:!!(u&1),items:[]};g.parent.items.push(D),b=v.getRaw("First"),(0,i.isRef)(b)&&!c.has(b)&&(d.push({obj:b,parent:D}),c.put(b)),b=v.getRaw("Next"),(0,i.isRef)(b)&&!c.has(b)&&(d.push({obj:b,parent:g.parent}),c.put(b))}return _.items.length>0?_.items:null}get permissions(){let b=null;try{b=this._readPermissions()}catch(_){if(_ instanceof e.MissingDataException)throw _;(0,r.warn)("Unable to read permissions.")}return(0,r.shadow)(this,"permissions",b)}_readPermissions(){const b=this.xref.trailer.get("Encrypt");if(!(0,i.isDict)(b))return null;let _=b.get("P");if(!(0,r.isNum)(_))return null;_+=2**32;const d=[];for(const c in r.PermissionFlag){const h=r.PermissionFlag[c];_&h&&d.push(h)}return d}get numPages(){const b=this.toplevelPagesDict.get("Count");if(!Number.isInteger(b))throw new r.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,r.shadow)(this,"numPages",b)}get destinations(){const b=this._readDests(),_=Object.create(null);if(b instanceof J){const d=b.getAll();for(const c in d)_[c]=$(d[c])}else b instanceof i.Dict&&b.forEach(function(d,c){c&&(_[d]=$(c))});return(0,r.shadow)(this,"destinations",_)}getDestination(b){const _=this._readDests();return _ instanceof J||_ instanceof i.Dict?$(_.get(b)||null):null}_readDests(){const b=this.catDict.get("Names");if(b&&b.has("Dests"))return new J(b.getRaw("Dests"),this.xref);if(this.catDict.has("Dests"))return this.catDict.get("Dests")}get pageLabels(){let b=null;try{b=this._readPageLabels()}catch(_){if(_ instanceof e.MissingDataException)throw _;(0,r.warn)("Unable to read page labels.")}return(0,r.shadow)(this,"pageLabels",b)}_readPageLabels(){const b=this.catDict.getRaw("PageLabels");if(!b)return null;const _=new Array(this.numPages);let d=null,c="";const f=new O(b,this.xref).getAll();let g="",v=1;for(let s=0,o=this.numPages;s<o;s++){if(s in f){const u=f[s];if(!(0,i.isDict)(u))throw new r.FormatError("PageLabel is not a dictionary.");if(u.has("Type")&&!(0,i.isName)(u.get("Type"),"PageLabel"))throw new r.FormatError("Invalid type in PageLabel dictionary.");if(u.has("S")){const l=u.get("S");if(!(0,i.isName)(l))throw new r.FormatError("Invalid style in PageLabel dictionary.");d=l.name}else d=null;if(u.has("P")){const l=u.get("P");if(!(0,r.isString)(l))throw new r.FormatError("Invalid prefix in PageLabel dictionary.");c=(0,r.stringToPDFString)(l)}else c="";if(u.has("St")){const l=u.get("St");if(!(Number.isInteger(l)&&l>=1))throw new r.FormatError("Invalid start in PageLabel dictionary.");v=l}else v=1}switch(d){case"D":g=v;break;case"R":case"r":g=(0,e.toRomanNumerals)(v,d==="r");break;case"A":case"a":const u=26,T=d==="a"?97:65,D=v-1,k=String.fromCharCode(T+D%u),S=[];for(let R=0,E=D/u|0;R<=E;R++)S.push(k);g=S.join("");break;default:if(d)throw new r.FormatError(`Invalid style "${d}" in PageLabel dictionary.`);g=""}_[s]=c+g,v++}return _}get pageLayout(){const b=this.catDict.get("PageLayout");let _="";if((0,i.isName)(b))switch(b.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":_=b.name}return(0,r.shadow)(this,"pageLayout",_)}get pageMode(){const b=this.catDict.get("PageMode");let _="UseNone";if((0,i.isName)(b))switch(b.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":_=b.name}return(0,r.shadow)(this,"pageMode",_)}get viewerPreferences(){const b={HideToolbar:r.isBool,HideMenubar:r.isBool,HideWindowUI:r.isBool,FitWindow:r.isBool,CenterWindow:r.isBool,DisplayDocTitle:r.isBool,NonFullScreenPageMode:i.isName,Direction:i.isName,ViewArea:i.isName,ViewClip:i.isName,PrintArea:i.isName,PrintClip:i.isName,PrintScaling:i.isName,Duplex:i.isName,PickTrayByPDFSize:r.isBool,PrintPageRange:Array.isArray,NumCopies:Number.isInteger},_=this.catDict.get("ViewerPreferences"),d=Object.create(null);if((0,i.isDict)(_))for(const c in b){if(!_.has(c))continue;const h=_.get(c);if(!b[c](h)){(0,r.info)(`Bad value in ViewerPreferences for "${c}".`);continue}let f;switch(c){case"NonFullScreenPageMode":switch(h.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":f=h.name;break;default:f="UseNone"}break;case"Direction":switch(h.name){case"L2R":case"R2L":f=h.name;break;default:f="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":switch(h.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":f=h.name;break;default:f="CropBox"}break;case"PrintScaling":switch(h.name){case"None":case"AppDefault":f=h.name;break;default:f="AppDefault"}break;case"Duplex":switch(h.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":f=h.name;break;default:f="None"}break;case"PrintPageRange":if(h.length%2!==0)break;h.every((s,o,u)=>Number.isInteger(s)&&s>0&&(o===0||s>=u[o-1])&&s<=this.numPages)&&(f=h);break;case"NumCopies":h>0&&(f=h);break;default:(0,r.assert)(typeof h=="boolean"),f=h}f!==void 0?d[c]=f:(0,r.info)(`Bad value in ViewerPreferences for "${c}".`)}return(0,r.shadow)(this,"viewerPreferences",d)}get openAction(){const b=this.catDict.get("OpenAction");let _=null;if((0,i.isDict)(b)){const d=new i.Dict(this.xref);d.set("A",b);const c={url:null,dest:null,action:null};U.parseDestDictionary({destDict:d,resultObj:c}),Array.isArray(c.dest)?(_||(_=Object.create(null)),_.dest=c.dest):c.action&&(_||(_=Object.create(null)),_.action=c.action)}else Array.isArray(b)&&(_||(_=Object.create(null)),_.dest=b);return(0,r.shadow)(this,"openAction",_)}get attachments(){const b=this.catDict.get("Names");let _=null;if(b&&b.has("EmbeddedFiles")){const c=new J(b.getRaw("EmbeddedFiles"),this.xref).getAll();for(const h in c){const f=new L(c[h],this.xref);_||(_=Object.create(null)),_[(0,r.stringToPDFString)(h)]=f.serializable}}return(0,r.shadow)(this,"attachments",_)}get javaScript(){const b=this.catDict.get("Names");let _=null;function d(h){const f=h.get("S");if(!(0,i.isName)(f,"JavaScript"))return;let g=h.get("JS");if((0,i.isStream)(g))g=(0,r.bytesToString)(g.getBytes());else if(!(0,r.isString)(g))return;_||(_=[]),_.push((0,r.stringToPDFString)(g))}if(b&&b.has("JavaScript")){const f=new J(b.getRaw("JavaScript"),this.xref).getAll();for(const g in f){const v=f[g];(0,i.isDict)(v)&&d(v)}}const c=this.catDict.get("OpenAction");return(0,i.isDict)(c)&&(0,i.isName)(c.get("S"),"JavaScript")&&d(c),(0,r.shadow)(this,"javaScript",_)}fontFallback(b,_){const d=[];return this.fontCache.forEach(function(c){d.push(c)}),Promise.all(d).then(c=>{for(const h of c)if(h.loadedName===b){h.fallback(_);return}})}cleanup(){(0,i.clearPrimitiveCaches)(),this.pageKidsCountCache.clear();const b=[];return this.fontCache.forEach(function(_){b.push(_)}),Promise.all(b).then(_=>{for(const{dict:d}of _)delete d.translated;this.fontCache.clear(),this.builtInCMapCache.clear()})}getPageDict(b){const _=(0,r.createPromiseCapability)(),d=[this.catDict.getRaw("Pages")],c=new i.RefSet,h=this.xref,f=this.pageKidsCountCache;let g,v=0;function s(){for(;d.length;){const o=d.pop();if((0,i.isRef)(o)){if(g=f.get(o),g>0&&v+g<b){v+=g;continue}if(c.has(o)){_.reject(new r.FormatError("Pages tree contains circular reference."));return}c.put(o),h.fetchAsync(o).then(function(l){if((0,i.isDict)(l,"Page")||(0,i.isDict)(l)&&!l.has("Kids")){b===v?(o&&!f.has(o)&&f.put(o,1),_.resolve([l,o])):(v++,s());return}d.push(l),s()},_.reject);return}if(!(0,i.isDict)(o)){_.reject(new r.FormatError("Page dictionary kid reference points to wrong type of object."));return}if(g=o.get("Count"),Number.isInteger(g)&&g>=0){const l=o.objId;if(l&&!f.has(l)&&f.put(l,g),v+g<=b){v+=g;continue}}const u=o.get("Kids");if(!Array.isArray(u)){if((0,i.isName)(o.get("Type"),"Page")||!o.has("Type")&&o.has("Contents")){if(v===b){_.resolve([o,null]);return}v++;continue}_.reject(new r.FormatError("Page dictionary kids object is not an array."));return}for(let l=u.length-1;l>=0;l--)d.push(u[l])}_.reject(new Error(`Page index ${b} not found.`))}return s(),_.promise}getPageIndex(b){const _=this.xref;function d(f){let g=0,v;return _.fetchAsync(f).then(function(s){if((0,i.isRefsEqual)(f,b)&&!(0,i.isDict)(s,"Page")&&!((0,i.isDict)(s)&&!s.has("Type")&&s.has("Contents")))throw new r.FormatError("The reference does not point to a /Page dictionary.");if(!s)return null;if(!(0,i.isDict)(s))throw new r.FormatError("Node must be a dictionary.");return v=s.getRaw("Parent"),s.getAsync("Parent")}).then(function(s){if(!s)return null;if(!(0,i.isDict)(s))throw new r.FormatError("Parent must be a dictionary.");return s.getAsync("Kids")}).then(function(s){if(!s)return null;const o=[];let u=!1;for(let l=0,F=s.length;l<F;l++){const T=s[l];if(!(0,i.isRef)(T))throw new r.FormatError("Kid must be a reference.");if((0,i.isRefsEqual)(T,f)){u=!0;break}o.push(_.fetchAsync(T).then(function(D){if(!(0,i.isDict)(D))throw new r.FormatError("Kid node must be a dictionary.");D.has("Count")?g+=D.get("Count"):g++}))}if(!u)throw new r.FormatError("Kid reference not found in parent's kids.");return Promise.all(o).then(function(){return[g,v]})})}let c=0;function h(f){return d(f).then(function(g){if(!g)return c;const[v,s]=g;return c+=v,h(s)})}return h(b)}static parseDestDictionary(b){function _(o){return o.startsWith("www.")?`http://${o}`:o}function d(o){try{return(0,r.stringToUTF8String)(o)}catch{return o}}const c=b.destDict;if(!(0,i.isDict)(c)){(0,r.warn)("parseDestDictionary: `destDict` must be a dictionary.");return}const h=b.resultObj;if(typeof h!="object"){(0,r.warn)("parseDestDictionary: `resultObj` must be an object.");return}const f=b.docBaseUrl||null;let g=c.get("A"),v,s;if(!(0,i.isDict)(g)&&c.has("Dest")&&(g=c.get("Dest")),(0,i.isDict)(g)){const o=g.get("S");if(!(0,i.isName)(o)){(0,r.warn)("parseDestDictionary: Invalid type in Action dictionary.");return}const u=o.name;switch(u){case"URI":v=g.get("URI"),(0,i.isName)(v)?v="/"+v.name:(0,r.isString)(v)&&(v=_(v));break;case"GoTo":s=g.get("D");break;case"Launch":case"GoToR":const l=g.get("F");(0,i.isDict)(l)?v=l.get("F")||null:(0,r.isString)(l)&&(v=l);let F=g.get("D");if(F&&((0,i.isName)(F)&&(F=F.name),(0,r.isString)(v))){const R=v.split("#")[0];(0,r.isString)(F)?v=R+"#"+F:Array.isArray(F)&&(v=R+"#"+JSON.stringify(F))}const T=g.get("NewWindow");(0,r.isBool)(T)&&(h.newWindow=T);break;case"Named":const D=g.get("N");(0,i.isName)(D)&&(h.action=D.name);break;case"JavaScript":const k=g.get("JS");let S;if((0,i.isStream)(k)?S=(0,r.bytesToString)(k.getBytes()):(0,r.isString)(k)&&(S=k),S){const R=["app.launchURL","window.open"],A=new RegExp("^\\s*("+R.join("|").split(".").join("\\.")+`)\\((?:'|")([^'"]*)(?:'|")(?:,\\s*(\\w+)\\)|\\))`,"i").exec((0,r.stringToPDFString)(S));if(A&&A[2]){v=A[2],A[3]==="true"&&A[1]==="app.launchURL"&&(h.newWindow=!0);break}}default:(0,r.warn)(`parseDestDictionary: unsupported action type "${u}".`);break}}else c.has("Dest")&&(s=c.get("Dest"));if((0,r.isString)(v)){v=d(v);const o=(0,r.createValidAbsoluteUrl)(v,f);o&&(h.url=o.href),h.unsafeUrl=v}s&&((0,i.isName)(s)&&(s=s.name),((0,r.isString)(s)||Array.isArray(s))&&(h.dest=s))}}t.Catalog=U;var m=function(){function b(_,d){this.stream=_,this.pdfManager=d,this.entries=[],this.xrefstms=Object.create(null),this._cacheMap=new Map,this.stats={streamTypes:Object.create(null),fontTypes:Object.create(null)}}return b.prototype={setStartXRef:function(d){this.startXRefQueue=[d]},parse:function(d){var c;d?((0,r.warn)("Indexing all PDF objects"),c=this.indexObjects()):c=this.readXRef(),c.assignXref(this),this.trailer=c;let h;try{h=c.get("Encrypt")}catch(s){if(s instanceof e.MissingDataException)throw s;(0,r.warn)(`XRef.parse - Invalid "Encrypt" reference: "${s}".`)}if((0,i.isDict)(h)){var f=c.get("ID"),g=f&&f.length?f[0]:"";h.suppressEncryption=!0,this.encrypt=new N.CipherTransformFactory(h,g,this.pdfManager.password)}let v;try{v=c.get("Root")}catch(s){if(s instanceof e.MissingDataException)throw s;(0,r.warn)(`XRef.parse - Invalid "Root" reference: "${s}".`)}if((0,i.isDict)(v)&&v.has("Pages"))this.root=v;else throw d?new r.FormatError("Invalid root reference"):new e.XRefParseException},processXRefTable:function(d){"tableState"in this||(this.tableState={entryNum:0,streamPos:d.lexer.stream.pos,parserBuf1:d.buf1,parserBuf2:d.buf2});var c=this.readXRefTable(d);if(!(0,i.isCmd)(c,"trailer"))throw new r.FormatError("Invalid XRef table: could not find trailer dictionary");var h=d.getObj();if(!(0,i.isDict)(h)&&h.dict&&(h=h.dict),!(0,i.isDict)(h))throw new r.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,h},readXRefTable:function(d){var c=d.lexer.stream,h=this.tableState;c.pos=h.streamPos,d.buf1=h.parserBuf1,d.buf2=h.parserBuf2;for(var f;;){if(!("firstEntryNum"in h)||!("entryCount"in h)){if((0,i.isCmd)(f=d.getObj(),"trailer"))break;h.firstEntryNum=f,h.entryCount=d.getObj()}var g=h.firstEntryNum,v=h.entryCount;if(!Number.isInteger(g)||!Number.isInteger(v))throw new r.FormatError("Invalid XRef table: wrong types in subsection header");for(var s=h.entryNum;s<v;s++){h.streamPos=c.pos,h.entryNum=s,h.parserBuf1=d.buf1,h.parserBuf2=d.buf2;var o={};o.offset=d.getObj(),o.gen=d.getObj();var u=d.getObj();if(u instanceof i.Cmd)switch(u.cmd){case"f":o.free=!0;break;case"n":o.uncompressed=!0;break}if(!Number.isInteger(o.offset)||!Number.isInteger(o.gen)||!(o.free||o.uncompressed))throw new r.FormatError(`Invalid entry in XRef subsection: ${g}, ${v}`);s===0&&o.free&&g===1&&(g=0),this.entries[s+g]||(this.entries[s+g]=o)}h.entryNum=0,h.streamPos=c.pos,h.parserBuf1=d.buf1,h.parserBuf2=d.buf2,delete h.firstEntryNum,delete h.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new r.FormatError("Invalid XRef table: unexpected first object");return f},processXRefStream:function(d){if(!("streamState"in this)){var c=d.dict,h=c.get("W"),f=c.get("Index");f||(f=[0,c.get("Size")]),this.streamState={entryRanges:f,byteWidths:h,entryNum:0,streamPos:d.pos}}return this.readXRefStream(d),delete this.streamState,d.dict},readXRefStream:function(d){var c,h,f=this.streamState;d.pos=f.streamPos;for(var g=f.byteWidths,v=g[0],s=g[1],o=g[2],u=f.entryRanges;u.length>0;){var l=u[0],F=u[1];if(!Number.isInteger(l)||!Number.isInteger(F))throw new r.FormatError(`Invalid XRef range fields: ${l}, ${F}`);if(!Number.isInteger(v)||!Number.isInteger(s)||!Number.isInteger(o))throw new r.FormatError(`Invalid XRef entry fields length: ${l}, ${F}`);for(c=f.entryNum;c<F;++c){f.entryNum=c,f.streamPos=d.pos;var T=0,D=0,k=0;for(h=0;h<v;++h)T=T<<8|d.getByte();for(v===0&&(T=1),h=0;h<s;++h)D=D<<8|d.getByte();for(h=0;h<o;++h)k=k<<8|d.getByte();var S={};switch(S.offset=D,S.gen=k,T){case 0:S.free=!0;break;case 1:S.uncompressed=!0;break;case 2:break;default:throw new r.FormatError(`Invalid XRef entry type: ${T}`)}this.entries[l+c]||(this.entries[l+c]=S)}f.entryNum=0,f.streamPos=d.pos,u.splice(0,2)}},indexObjects:function(){var d=9,c=10,h=13,f=32,g=37,v=60;function s(K,Z){for(var ee="",ne=K[Z];ne!==c&&ne!==h&&ne!==v&&!(++Z>=K.length);)ee+=String.fromCharCode(ne),ne=K[Z];return ee}function o(K,Z,ee){for(var ne=ee.length,ae=K.length,te=0;Z<ae;){for(var re=0;re<ne&&K[Z+re]===ee[re];)++re;if(re>=ne)break;Z++,te++}return te}var u=/^(\d+)\s+(\d+)\s+obj\b/;const l=/\bendobj[\b\s]$/,F=/\s+(\d+\s+\d+\s+obj[\b\s<])$/,T=25;var D=new Uint8Array([116,114,97,105,108,101,114]),k=new Uint8Array([115,116,97,114,116,120,114,101,102]);const S=new Uint8Array([111,98,106]);var R=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var E=this.stream;E.pos=0;for(var A=E.getBytes(),C=E.start,y=A.length,I=[],H=[];C<y;){var V=A[C];if(V===d||V===c||V===h||V===f){++C;continue}if(V===g){do{if(++C,C>=y)break;V=A[C]}while(V!==c&&V!==h);continue}var B=s(A,C),W;if(B.startsWith("xref")&&(B.length===4||/\s/.test(B[4])))C+=o(A,C,D),I.push(C),C+=o(A,C,k);else if(W=u.exec(B)){const K=W[1]|0,Z=W[2]|0;(!this.entries[K]||this.entries[K].gen===Z)&&(this.entries[K]={offset:C-E.start,gen:Z,uncompressed:!0});let ee,ne=C+B.length;for(;ne<A.length;){const te=ne+o(A,ne,S)+4;ee=te-C;const re=Math.max(te-T,ne),ie=(0,r.bytesToString)(A.subarray(re,te));if(l.test(ie))break;{const de=F.exec(ie);if(de&&de[1]){(0,r.warn)('indexObjects: Found new "obj" inside of another "obj", caused by missing "endobj" -- trying to recover.'),ee-=de[1].length;break}}ne=te}const ae=A.subarray(C,C+ee);var G=o(ae,0,R);G<ee&&ae[G+5]<64&&(H.push(C-E.start),this.xrefstms[C-E.start]=1),C+=ee}else B.startsWith("trailer")&&(B.length===7||/\s/.test(B[7]))?(I.push(C),C+=o(A,C,k)):C+=B.length+1}var q,z;for(q=0,z=H.length;q<z;++q)this.startXRefQueue.push(H[q]),this.readXRef(!0);let j;for(q=0,z=I.length;q<z;++q){E.pos=I[q];const K=new p.Parser({lexer:new p.Lexer(E),xref:this,allowStreams:!0,recoveryMode:!0});var Y=K.getObj();if(!(0,i.isCmd)(Y,"trailer"))continue;const Z=K.getObj();if(!(0,i.isDict)(Z))continue;let ee;try{ee=Z.get("Root")}catch(ne){if(ne instanceof e.MissingDataException)throw ne;continue}if(!(!(0,i.isDict)(ee)||!ee.has("Pages"))){if(Z.has("ID"))return Z;j=Z}}if(j)return j;throw new r.InvalidPDFException("Invalid PDF structure.")},readXRef:function(d){var c=this.stream;const h=Object.create(null);try{for(;this.startXRefQueue.length;){var f=this.startXRefQueue[0];if(h[f]){(0,r.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}h[f]=!0,c.pos=f+c.start;const o=new p.Parser({lexer:new p.Lexer(c),xref:this,allowStreams:!0});var g=o.getObj(),v;if((0,i.isCmd)(g,"xref")){if(v=this.processXRefTable(o),this.topDict||(this.topDict=v),g=v.get("XRefStm"),Number.isInteger(g)){var s=g;s in this.xrefstms||(this.xrefstms[s]=1,this.startXRefQueue.push(s))}}else if(Number.isInteger(g)){if(!Number.isInteger(o.getObj())||!(0,i.isCmd)(o.getObj(),"obj")||!(0,i.isStream)(g=o.getObj()))throw new r.FormatError("Invalid XRef stream");if(v=this.processXRefStream(g),this.topDict||(this.topDict=v),!v)throw new r.FormatError("Failed to read XRef stream")}else throw new r.FormatError("Invalid XRef stream header");g=v.get("Prev"),Number.isInteger(g)?this.startXRefQueue.push(g):(0,i.isRef)(g)&&this.startXRefQueue.push(g.num),this.startXRefQueue.shift()}return this.topDict}catch(o){if(o instanceof e.MissingDataException)throw o;(0,r.info)("(while reading XRef): "+o)}if(!d)throw new e.XRefParseException},getEntry:function(d){var c=this.entries[d];return c&&!c.free&&c.offset?c:null},fetchIfRef:function(d,c){return d instanceof i.Ref?this.fetch(d,c):d},fetch:function(d,c){if(!(d instanceof i.Ref))throw new Error("ref object is not a reference");const h=d.num,f=this._cacheMap.get(h);if(f!==void 0)return f instanceof i.Dict&&!f.objId&&(f.objId=d.toString()),f;let g=this.getEntry(h);return g===null?(this._cacheMap.set(h,g),g):(g.uncompressed?g=this.fetchUncompressed(d,g,c):g=this.fetchCompressed(d,g,c),(0,i.isDict)(g)?g.objId=d.toString():(0,i.isStream)(g)&&(g.dict.objId=d.toString()),g)},fetchUncompressed(_,d,c=!1){var h=_.gen,f=_.num;if(d.gen!==h)throw new e.XRefEntryException(`Inconsistent generation in XRef: ${_}`);var g=this.stream.makeSubStream(d.offset+this.stream.start);const v=new p.Parser({lexer:new p.Lexer(g),xref:this,allowStreams:!0});var s=v.getObj(),o=v.getObj(),u=v.getObj();if(s!==f||o!==h||!(u instanceof i.Cmd))throw new e.XRefEntryException(`Bad (uncompressed) XRef entry: ${_}`);if(u.cmd!=="obj"){if(u.cmd.startsWith("obj")&&(f=parseInt(u.cmd.substring(3),10),!Number.isNaN(f)))return f;throw new e.XRefEntryException(`Bad (uncompressed) XRef entry: ${_}`)}return this.encrypt&&!c?d=v.getObj(this.encrypt.createCipherTransform(f,h)):d=v.getObj(),(0,i.isStream)(d)||this._cacheMap.set(f,d),d},fetchCompressed(_,d,c=!1){const h=d.offset,f=this.fetch(i.Ref.get(h,0));if(!(0,i.isStream)(f))throw new r.FormatError("bad ObjStm stream");const g=f.dict.get("First"),v=f.dict.get("N");if(!Number.isInteger(g)||!Number.isInteger(v))throw new r.FormatError("invalid first and n parameters for ObjStm stream");const s=new p.Parser({lexer:new p.Lexer(f),xref:this,allowStreams:!0}),o=new Array(v);for(let l=0;l<v;++l){const F=s.getObj();if(!Number.isInteger(F))throw new r.FormatError(`invalid object number in the ObjStm stream: ${F}`);const T=s.getObj();if(!Number.isInteger(T))throw new r.FormatError(`invalid object offset in the ObjStm stream: ${T}`);o[l]=F}const u=new Array(v);for(let l=0;l<v;++l){const F=s.getObj();if(u[l]=F,s.buf1 instanceof i.Cmd&&s.buf1.cmd==="endobj"&&s.shift(),(0,i.isStream)(F))continue;const T=o[l],D=this.entries[T];D&&D.offset===h&&D.gen===l&&this._cacheMap.set(T,F)}if(d=u[d.gen],d===void 0)throw new e.XRefEntryException(`Bad (compressed) XRef entry: ${_}`);return d},async fetchIfRefAsync(_,d){return _ instanceof i.Ref?this.fetchAsync(_,d):_},async fetchAsync(_,d){try{return this.fetch(_,d)}catch(c){if(!(c instanceof e.MissingDataException))throw c;return await this.pdfManager.requestRange(c.begin,c.end),this.fetchAsync(_,d)}},getCatalogObj:function(){return this.root}},b}();t.XRef=m;class n{constructor(b,_,d){this.constructor===n&&(0,r.unreachable)("Cannot initialize NameOrNumberTree."),this.root=b,this.xref=_,this._type=d}getAll(){const b=Object.create(null);if(!this.root)return b;const _=this.xref,d=new i.RefSet;d.put(this.root);const c=[this.root];for(;c.length>0;){const h=_.fetchIfRef(c.shift());if(!(0,i.isDict)(h))continue;if(h.has("Kids")){const g=h.get("Kids");for(let v=0,s=g.length;v<s;v++){const o=g[v];if(d.has(o))throw new r.FormatError(`Duplicate entry in "${this._type}" tree.`);c.push(o),d.put(o)}continue}const f=h.get(this._type);if(Array.isArray(f))for(let g=0,v=f.length;g<v;g+=2)b[_.fetchIfRef(f[g])]=_.fetchIfRef(f[g+1])}return b}get(b){if(!this.root)return null;const _=this.xref;let d=_.fetchIfRef(this.root),c=0;const h=10;for(;d.has("Kids");){if(++c>h)return(0,r.warn)(`Search depth limit reached for "${this._type}" tree.`),null;const g=d.get("Kids");if(!Array.isArray(g))return null;let v=0,s=g.length-1;for(;v<=s;){const o=v+s>>1,l=_.fetchIfRef(g[o]).get("Limits");if(b<_.fetchIfRef(l[0]))s=o-1;else if(b>_.fetchIfRef(l[1]))v=o+1;else{d=_.fetchIfRef(g[o]);break}}if(v>s)return null}const f=d.get(this._type);if(Array.isArray(f)){let g=0,v=f.length-2;for(;g<=v;){const s=g+v>>1,o=s+(s&1),u=_.fetchIfRef(f[o]);if(b<u)v=o-2;else if(b>u)g=o+2;else return _.fetchIfRef(f[o+1])}(0,r.info)(`Falling back to an exhaustive search, for key "${b}", in "${this._type}" tree.`);for(let s=0,o=f.length;s<o;s+=2)if(_.fetchIfRef(f[s])===b)return(0,r.warn)(`The "${b}" key was found at an incorrect, i.e. out-of-order, position in "${this._type}" tree.`),_.fetchIfRef(f[s+1])}return null}}class J extends n{constructor(b,_){super(b,_,"Names")}}class O extends n{constructor(b,_){super(b,_,"Nums")}}var L=function(){function b(d,c){!d||!(0,i.isDict)(d)||(this.xref=c,this.root=d,d.has("FS")&&(this.fs=d.get("FS")),this.description=d.has("Desc")?(0,r.stringToPDFString)(d.get("Desc")):"",d.has("RF")&&(0,r.warn)("Related file specifications are not supported"),this.contentAvailable=!0,d.has("EF")||(this.contentAvailable=!1,(0,r.warn)("Non-embedded file specifications are not supported")))}function _(d){return d.has("UF")?d.get("UF"):d.has("F")?d.get("F"):d.has("Unix")?d.get("Unix"):d.has("Mac")?d.get("Mac"):d.has("DOS")?d.get("DOS"):null}return b.prototype={get filename(){if(!this._filename&&this.root){var d=_(this.root)||"unnamed";this._filename=(0,r.stringToPDFString)(d).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename},get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=_(this.root.get("EF")));var d=null;if(this.contentRef){var c=this.xref,h=c.fetchIfRef(this.contentRef);h&&(0,i.isStream)(h)?d=h.getBytes():(0,r.warn)("Embedded file specification points to non-existing/invalid content")}else(0,r.warn)("Embedded file specification does not have a content");return d},get serializable(){return{filename:this.filename,content:this.content}}},b}();t.FileSpec=L;const M=function(){function P(d){return d instanceof i.Ref||d instanceof i.Dict||Array.isArray(d)||(0,i.isStream)(d)}function b(d,c){if(d instanceof i.Dict||(0,i.isStream)(d)){const h=d instanceof i.Dict?d:d.dict,f=h.getKeys();for(let g=0,v=f.length;g<v;g++){const s=h.getRaw(f[g]);P(s)&&c.push(s)}}else if(Array.isArray(d))for(let h=0,f=d.length;h<f;h++){const g=d[h];P(g)&&c.push(g)}}function _(d,c,h){this.dict=d,this.keys=c,this.xref=h,this.refSet=null}return _.prototype={async load(){if(!this.xref.stream.allChunksLoaded||this.xref.stream.allChunksLoaded())return;const{keys:d,dict:c}=this;this.refSet=new i.RefSet;const h=[];for(let f=0,g=d.length;f<g;f++){const v=c.getRaw(d[f]);v!==void 0&&h.push(v)}return this._walk(h)},async _walk(d){const c=[],h=[];for(;d.length;){let f=d.pop();if(f instanceof i.Ref){if(this.refSet.has(f))continue;try{this.refSet.put(f),f=this.xref.fetch(f)}catch(g){if(!(g instanceof e.MissingDataException))throw g;c.push(f),h.push({begin:g.begin,end:g.end})}}if(f&&f.getBaseStreams){const g=f.getBaseStreams();let v=!1;for(let s=0,o=g.length;s<o;s++){const u=g[s];u.allChunksLoaded&&!u.allChunksLoaded()&&(v=!0,h.push({begin:u.start,end:u.end}))}v&&c.push(f)}b(f,d)}if(h.length){await this.xref.stream.manager.requestRanges(h);for(let f=0,g=c.length;f<g;f++){const v=c[f];v instanceof i.Ref&&this.refSet.remove(v)}return this._walk(c)}this.refSet=null}},_}();t.ObjectLoader=M},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.Linearization=t.Lexer=void 0;var r=a(11),i=a(2),p=a(4),e=a(7),N=a(12),w=a(14),$=a(17),U=a(19);const m=1e3,n=5552;function J(_){const d=_.length;let c=1,h=0;for(let f=0;f<d;++f)c+=_[f]&255,h+=c;return h%65521<<16|c%65521}class O{constructor({lexer:d,xref:c,allowStreams:h=!1,recoveryMode:f=!1}){this.lexer=d,this.xref=c,this.allowStreams=h,this.recoveryMode=f,this.imageCache=Object.create(null),this.refill()}refill(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}shift(){this.buf2 instanceof p.Cmd&&this.buf2.cmd==="ID"?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}tryShift(){try{return this.shift(),!0}catch(d){if(d instanceof e.MissingDataException)throw d;return!1}}getObj(d=null){const c=this.buf1;if(this.shift(),c instanceof p.Cmd)switch(c.cmd){case"BI":return this.makeInlineImage(d);case"[":const h=[];for(;!(0,p.isCmd)(this.buf1,"]")&&!(0,p.isEOF)(this.buf1);)h.push(this.getObj(d));if((0,p.isEOF)(this.buf1)){if(!this.recoveryMode)throw new i.FormatError("End of file inside array");return h}return this.shift(),h;case"<<":const f=new p.Dict(this.xref);for(;!(0,p.isCmd)(this.buf1,">>")&&!(0,p.isEOF)(this.buf1);){if(!(0,p.isName)(this.buf1)){(0,i.info)("Malformed dictionary: key must be a name object"),this.shift();continue}const g=this.buf1.name;if(this.shift(),(0,p.isEOF)(this.buf1))break;f.set(g,this.getObj(d))}if((0,p.isEOF)(this.buf1)){if(!this.recoveryMode)throw new i.FormatError("End of file inside dictionary");return f}return(0,p.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(f,d):f:(this.shift(),f);default:return c}if(Number.isInteger(c)){if(Number.isInteger(this.buf1)&&(0,p.isCmd)(this.buf2,"R")){const h=p.Ref.get(c,this.buf1);return this.shift(),this.shift(),h}return c}return typeof c=="string"&&d?d.decryptString(c):c}findDefaultInlineStreamEnd(d){const u=d.pos;let l=0,F,T;for(;(F=d.getByte())!==-1;)if(l===0)l=F===69?1:0;else if(l===1)l=F===73?2:0;else if((0,i.assert)(l===2),F===32||F===10||F===13){T=d.pos;const k=d.peekBytes(10);for(let S=0,R=k.length;S<R;S++)if(F=k[S],!(F===0&&k[S+1]!==0)&&F!==10&&F!==13&&(F<32||F>127)){l=0;break}if(l===2)break}else l=0;F===-1&&((0,i.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),T&&((0,i.warn)('... trying to recover by using the last "EI" occurrence.'),d.skip(-(d.pos-T))));let D=4;return d.skip(-D),F=d.peekByte(),d.skip(D),(0,e.isWhiteSpace)(F)||D--,d.pos-D-u}findDCTDecodeInlineStreamEnd(d){const c=d.pos;let h=!1,f,g;for(;(f=d.getByte())!==-1;)if(f===255){switch(d.getByte()){case 0:break;case 255:d.skip(-1);break;case 217:h=!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:g=d.getUint16(),g>2?d.skip(g-2):d.skip(-2);break}if(h)break}const v=d.pos-c;return f===-1?((0,i.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),d.skip(-v),this.findDefaultInlineStreamEnd(d)):(this.inlineStreamSkipEI(d),v)}findASCII85DecodeInlineStreamEnd(d){const f=d.pos;let g;for(;(g=d.getByte())!==-1;)if(g===126){const s=d.pos;for(g=d.peekByte();(0,e.isWhiteSpace)(g);)d.skip(),g=d.peekByte();if(g===62){d.skip();break}if(d.pos>s){const o=d.peekBytes(2);if(o[0]===69&&o[1]===73)break}}const v=d.pos-f;return g===-1?((0,i.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),d.skip(-v),this.findDefaultInlineStreamEnd(d)):(this.inlineStreamSkipEI(d),v)}findASCIIHexDecodeInlineStreamEnd(d){const h=d.pos;let f;for(;(f=d.getByte())!==-1&&f!==62;);const g=d.pos-h;return f===-1?((0,i.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),d.skip(-g),this.findDefaultInlineStreamEnd(d)):(this.inlineStreamSkipEI(d),g)}inlineStreamSkipEI(d){let f=0,g;for(;(g=d.getByte())!==-1;)if(f===0)f=g===69?1:0;else if(f===1)f=g===73?2:0;else if(f===2)break}makeInlineImage(d){const c=this.lexer,h=c.stream,f=new p.Dict(this.xref);let g;for(;!(0,p.isCmd)(this.buf1,"ID")&&!(0,p.isEOF)(this.buf1);){if(!(0,p.isName)(this.buf1))throw new i.FormatError("Dictionary key must be a name object");const T=this.buf1.name;if(this.shift(),(0,p.isEOF)(this.buf1))break;f.set(T,this.getObj(d))}c.beginInlineImagePos!==-1&&(g=h.pos-c.beginInlineImagePos);const v=f.get("Filter","F");let s;if((0,p.isName)(v))s=v.name;else if(Array.isArray(v)){const T=this.xref.fetchIfRef(v[0]);(0,p.isName)(T)&&(s=T.name)}const o=h.pos;let u;s==="DCTDecode"||s==="DCT"?u=this.findDCTDecodeInlineStreamEnd(h):s==="ASCII85Decode"||s==="A85"?u=this.findASCII85DecodeInlineStreamEnd(h):s==="ASCIIHexDecode"||s==="AHx"?u=this.findASCIIHexDecodeInlineStreamEnd(h):u=this.findDefaultInlineStreamEnd(h);let l=h.makeSubStream(o,u,f),F;if(u<m&&g<n){const T=l.getBytes();l.reset();const D=h.pos;h.pos=c.beginInlineImagePos;const k=h.getBytes(g);h.pos=D,F=J(T)+"_"+J(k);const S=this.imageCache[F];if(S!==void 0)return this.buf2=p.Cmd.get("EI"),this.shift(),S.reset(),S}return d&&(l=d.createStream(l,u)),l=this.filter(l,f,u),l.dict=f,F!==void 0&&(l.cacheKey=`inline_${u}_${F}`,this.imageCache[F]=l),this.buf2=p.Cmd.get("EI"),this.shift(),l}_findStreamLength(d,c){const{stream:h}=this.lexer;h.pos=d;const f=2048,g=c.length;for(;h.pos<h.end;){const v=h.peekBytes(f),s=v.length-g;if(s<=0)break;let o=0;for(;o<s;){let u=0;for(;u<g&&v[o+u]===c[u];)u++;if(u>=g)return h.pos+=o,h.pos-d;o++}h.pos+=s}return-1}makeStream(d,c){const h=this.lexer;let f=h.stream;h.skipToNextLine();const g=f.pos-1;let v=d.get("Length");if(Number.isInteger(v)||((0,i.info)(`Bad length "${v}" in stream`),v=0),f.pos=g+v,h.nextChar(),this.tryShift()&&(0,p.isCmd)(this.buf2,"endstream"))this.shift();else{const s=new Uint8Array([101,110,100,115,116,114,101,97,109]);let o=this._findStreamLength(g,s);if(o<0){for(let l=1;l<=1;l++){const F=s.length-l,T=s.slice(0,F),D=this._findStreamLength(g,T);if(D>=0){const k=f.peekBytes(F+1)[F];if(!(0,e.isWhiteSpace)(k))break;(0,i.info)(`Found "${(0,i.bytesToString)(T)}" when searching for endstream command.`),o=D;break}}if(o<0)throw new i.FormatError("Missing endstream command.")}v=o,h.nextChar(),this.shift(),this.shift()}return this.shift(),f=f.makeSubStream(g,v,d),c&&(f=c.createStream(f,v)),f=this.filter(f,d,v),f.dict=d,f}filter(d,c,h){let f=c.get("Filter","F"),g=c.get("DecodeParms","DP");if((0,p.isName)(f))return Array.isArray(g)&&(0,i.warn)("/DecodeParms should not contain an Array, when /Filter contains a Name."),this.makeFilter(d,f.name,h,g);let v=h;if(Array.isArray(f)){const s=f,o=g;for(let u=0,l=s.length;u<l;++u){if(f=this.xref.fetchIfRef(s[u]),!(0,p.isName)(f))throw new i.FormatError(`Bad filter name "${f}"`);g=null,Array.isArray(o)&&u in o&&(g=this.xref.fetchIfRef(o[u])),d=this.makeFilter(d,f.name,v,g),v=null}}return d}makeFilter(d,c,h,f){if(h===0)return(0,i.warn)(`Empty "${c}" stream.`),new r.NullStream;try{const g=this.xref.stats.streamTypes;if(c==="FlateDecode"||c==="Fl")return g[i.StreamType.FLATE]=!0,f?new r.PredictorStream(new r.FlateStream(d,h),h,f):new r.FlateStream(d,h);if(c==="LZWDecode"||c==="LZW"){g[i.StreamType.LZW]=!0;let v=1;return f?(f.has("EarlyChange")&&(v=f.get("EarlyChange")),new r.PredictorStream(new r.LZWStream(d,h,v),h,f)):new r.LZWStream(d,h,v)}return c==="DCTDecode"||c==="DCT"?(g[i.StreamType.DCT]=!0,new $.JpegStream(d,h,d.dict,f)):c==="JPXDecode"||c==="JPX"?(g[i.StreamType.JPX]=!0,new U.JpxStream(d,h,d.dict,f)):c==="ASCII85Decode"||c==="A85"?(g[i.StreamType.A85]=!0,new r.Ascii85Stream(d,h)):c==="ASCIIHexDecode"||c==="AHx"?(g[i.StreamType.AHX]=!0,new r.AsciiHexStream(d,h)):c==="CCITTFaxDecode"||c==="CCF"?(g[i.StreamType.CCF]=!0,new N.CCITTFaxStream(d,h,f)):c==="RunLengthDecode"||c==="RL"?(g[i.StreamType.RLX]=!0,new r.RunLengthStream(d,h)):c==="JBIG2Decode"?(g[i.StreamType.JBIG]=!0,new w.Jbig2Stream(d,h,d.dict,f)):((0,i.warn)(`Filter "${c}" is not supported.`),d)}catch(g){if(g instanceof e.MissingDataException)throw g;return(0,i.warn)(`Invalid stream: "${g}"`),new r.NullStream}}}t.Parser=O;const L=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function M(_){return _>=48&&_<=57?_&15:_>=65&&_<=70||_>=97&&_<=102?(_&15)+9:-1}class P{constructor(d,c=null){this.stream=d,this.nextChar(),this.strBuf=[],this.knownCommands=c,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let d=this.currentChar,c=!1,h=0,f=0;if(d===45?(f=-1,d=this.nextChar(),d===45&&(d=this.nextChar())):d===43&&(f=1,d=this.nextChar()),d===10||d===13)do d=this.nextChar();while(d===10||d===13);if(d===46&&(h=10,d=this.nextChar()),d<48||d>57){if(h===10&&f===0&&((0,e.isWhiteSpace)(d)||d===-1))return(0,i.warn)("Lexer.getNumber - treating a single decimal point as zero."),0;throw new i.FormatError(`Invalid number: ${String.fromCharCode(d)} (charCode ${d})`)}f=f||1;let g=d-48,v=0,s=1;for(;(d=this.nextChar())>=0;)if(d>=48&&d<=57){const o=d-48;c?v=v*10+o:(h!==0&&(h*=10),g=g*10+o)}else if(d===46)if(h===0)h=1;else break;else if(d===45)(0,i.warn)("Badly formatted number: minus sign in the middle");else if(d===69||d===101){if(d=this.peekChar(),d===43||d===45)s=d===45?-1:1,this.nextChar();else if(d<48||d>57)break;c=!0}else break;return h!==0&&(g/=h),c&&(g*=10**(s*v)),f*g}getString(){let d=1,c=!1;const h=this.strBuf;h.length=0;let f=this.nextChar();for(;;){let g=!1;switch(f|0){case-1:(0,i.warn)("Unterminated string"),c=!0;break;case 40:++d,h.push("(");break;case 41:--d===0?(this.nextChar(),c=!0):h.push(")");break;case 92:switch(f=this.nextChar(),f){case-1:(0,i.warn)("Unterminated string"),c=!0;break;case 110:h.push(`
|
|
12
|
+
`);break;case 114:h.push("\r");break;case 116:h.push(" ");break;case 98:h.push("\b");break;case 102:h.push("\f");break;case 92:case 40:case 41:h.push(String.fromCharCode(f));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let v=f&15;f=this.nextChar(),g=!0,f>=48&&f<=55&&(v=(v<<3)+(f&15),f=this.nextChar(),f>=48&&f<=55&&(g=!1,v=(v<<3)+(f&15))),h.push(String.fromCharCode(v));break;case 13:this.peekChar()===10&&this.nextChar();break;case 10:break;default:h.push(String.fromCharCode(f));break}break;default:h.push(String.fromCharCode(f));break}if(c)break;g||(f=this.nextChar())}return h.join("")}getName(){let d,c;const h=this.strBuf;for(h.length=0;(d=this.nextChar())>=0&&!L[d];)if(d===35){if(d=this.nextChar(),L[d]){(0,i.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),h.push("#");break}const f=M(d);if(f!==-1){c=d,d=this.nextChar();const g=M(d);if(g===-1){if((0,i.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(d)}) in hexadecimal number.`),h.push("#",String.fromCharCode(c)),L[d])break;h.push(String.fromCharCode(d));continue}h.push(String.fromCharCode(f<<4|g))}else h.push("#",String.fromCharCode(d))}else h.push(String.fromCharCode(d));return h.length>127&&(0,i.warn)(`Name token is longer than allowed by the spec: ${h.length}`),p.Name.get(h.join(""))}_hexStringWarn(d){if(this._hexStringNumWarn++===5){(0,i.warn)("getHexString - ignoring additional invalid characters.");return}this._hexStringNumWarn>5||(0,i.warn)(`getHexString - ignoring invalid character: ${d}`)}getHexString(){const d=this.strBuf;d.length=0;let c=this.currentChar,h=!0,f,g;for(this._hexStringNumWarn=0;;)if(c<0){(0,i.warn)("Unterminated hex string");break}else if(c===62){this.nextChar();break}else if(L[c]===1){c=this.nextChar();continue}else{if(h){if(f=M(c),f===-1){this._hexStringWarn(c),c=this.nextChar();continue}}else{if(g=M(c),g===-1){this._hexStringWarn(c),c=this.nextChar();continue}d.push(String.fromCharCode(f<<4|g))}h=!h,c=this.nextChar()}return d.join("")}getObj(){let d=!1,c=this.currentChar;for(;;){if(c<0)return p.EOF;if(d)(c===10||c===13)&&(d=!1);else if(c===37)d=!0;else if(L[c]!==1)break;c=this.nextChar()}switch(c|0){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),p.Cmd.get("[");case 93:return this.nextChar(),p.Cmd.get("]");case 60:return c=this.nextChar(),c===60?(this.nextChar(),p.Cmd.get("<<")):this.getHexString();case 62:return c=this.nextChar(),c===62?(this.nextChar(),p.Cmd.get(">>")):p.Cmd.get(">");case 123:return this.nextChar(),p.Cmd.get("{");case 125:return this.nextChar(),p.Cmd.get("}");case 41:throw this.nextChar(),new i.FormatError(`Illegal character: ${c}`)}let h=String.fromCharCode(c);const f=this.knownCommands;let g=f&&f[h]!==void 0;for(;(c=this.nextChar())>=0&&!L[c];){const v=h+String.fromCharCode(c);if(g&&f[v]===void 0)break;if(h.length===128)throw new i.FormatError(`Command token too long: ${h.length}`);h=v,g=f&&f[h]!==void 0}return h==="true"?!0:h==="false"?!1:h==="null"?null:(h==="BI"&&(this.beginInlineImagePos=this.stream.pos),p.Cmd.get(h))}skipToNextLine(){let d=this.currentChar;for(;d>=0;){if(d===13){d=this.nextChar(),d===10&&this.nextChar();break}else if(d===10){this.nextChar();break}d=this.nextChar()}}}t.Lexer=P;class b{static create(d){function c(F,T,D=!1){const k=F.get(T);if(Number.isInteger(k)&&(D?k>=0:k>0))return k;throw new Error(`The "${T}" parameter in the linearization dictionary is invalid.`)}function h(F){const T=F.get("H");let D;if(Array.isArray(T)&&((D=T.length)===2||D===4)){for(let k=0;k<D;k++){const S=T[k];if(!(Number.isInteger(S)&&S>0))throw new Error(`Hint (${k}) in the linearization dictionary is invalid.`)}return T}throw new Error("Hint array in the linearization dictionary is invalid.")}const f=new O({lexer:new P(d),xref:null}),g=f.getObj(),v=f.getObj(),s=f.getObj(),o=f.getObj();let u,l;if(Number.isInteger(g)&&Number.isInteger(v)&&(0,p.isCmd)(s,"obj")&&(0,p.isDict)(o)&&(0,i.isNum)(u=o.get("Linearized"))&&u>0){if((l=c(o,"L"))!==d.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.')}else return null;return{length:l,hints:h(o),objectNumberFirst:c(o,"O"),endFirst:c(o,"E"),numPages:c(o,"N"),mainXRefEntriesOffset:c(o,"T"),pageFirst:o.has("P")?c(o,"P",!0):0}}}t.Linearization=b},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.LZWStream=t.StringStream=t.StreamsSequenceStream=t.Stream=t.RunLengthStream=t.PredictorStream=t.NullStream=t.FlateStream=t.DecodeStream=t.DecryptStream=t.AsciiHexStream=t.Ascii85Stream=void 0;var r=a(2),i=a(4),p=a(7),e=function(){function _(d,c,h,f){this.bytes=d instanceof Uint8Array?d:new Uint8Array(d),this.start=c||0,this.pos=this.start,this.end=c+h||this.bytes.length,this.dict=f}return _.prototype={get length(){return this.end-this.start},get isEmpty(){return this.length===0},getByte:function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},getUint16:function(){var c=this.getByte(),h=this.getByte();return c===-1||h===-1?-1:(c<<8)+h},getInt32:function(){var c=this.getByte(),h=this.getByte(),f=this.getByte(),g=this.getByte();return(c<<24)+(h<<16)+(f<<8)+g},getBytes(d,c=!1){var h=this.bytes,f=this.pos,g=this.end;if(!d){const o=h.subarray(f,g);return c?new Uint8ClampedArray(o):o}var v=f+d;v>g&&(v=g),this.pos=v;const s=h.subarray(f,v);return c?new Uint8ClampedArray(s):s},peekByte:function(){var c=this.getByte();return c!==-1&&this.pos--,c},peekBytes(d,c=!1){var h=this.getBytes(d,c);return this.pos-=h.length,h},getByteRange(d,c){return d<0&&(d=0),c>this.end&&(c=this.end),this.bytes.subarray(d,c)},skip:function(c){c||(c=1),this.pos+=c},reset:function(){this.pos=this.start},moveStart:function(){this.start=this.pos},makeSubStream:function(c,h,f){return new _(this.bytes.buffer,c,h,f)}},_}();t.Stream=e;var N=function(){function _(d){const c=(0,r.stringToBytes)(d);e.call(this,c)}return _.prototype=e.prototype,_}();t.StringStream=N;var w=function(){var _=new Uint8Array(0);function d(c){if(this._rawMinBufferLength=c||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=_,this.minBufferLength=512,c)for(;this.minBufferLength<c;)this.minBufferLength*=2}return d.prototype={get isEmpty(){for(;!this.eof&&this.bufferLength===0;)this.readBlock();return this.bufferLength===0},ensureBuffer:function(h){var f=this.buffer;if(h<=f.byteLength)return f;for(var g=this.minBufferLength;g<h;)g*=2;var v=new Uint8Array(g);return v.set(f),this.buffer=v},getByte:function(){for(var h=this.pos;this.bufferLength<=h;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]},getUint16:function(){var h=this.getByte(),f=this.getByte();return h===-1||f===-1?-1:(h<<8)+f},getInt32:function(){var h=this.getByte(),f=this.getByte(),g=this.getByte(),v=this.getByte();return(h<<24)+(f<<16)+(g<<8)+v},getBytes(c,h=!1){var f,g=this.pos;if(c){for(this.ensureBuffer(g+c),f=g+c;!this.eof&&this.bufferLength<f;)this.readBlock();var v=this.bufferLength;f>v&&(f=v)}else{for(;!this.eof;)this.readBlock();f=this.bufferLength}this.pos=f;const s=this.buffer.subarray(g,f);return h&&!(s instanceof Uint8ClampedArray)?new Uint8ClampedArray(s):s},peekByte:function(){var h=this.getByte();return h!==-1&&this.pos--,h},peekBytes(c,h=!1){var f=this.getBytes(c,h);return this.pos-=f.length,f},makeSubStream:function(h,f,g){for(var v=h+f;this.bufferLength<=v&&!this.eof;)this.readBlock();return new e(this.buffer,h,f,g)},getByteRange(c,h){(0,r.unreachable)("Should not call DecodeStream.getByteRange")},skip:function(h){h||(h=1),this.pos+=h},reset:function(){this.pos=0},getBaseStreams:function(){return this.str&&this.str.getBaseStreams?this.str.getBaseStreams():[]}},d}();t.DecodeStream=w;var $=function(){function _(d){this.streams=d;let c=0;for(let h=0,f=d.length;h<f;h++){const g=d[h];g instanceof w?c+=g._rawMinBufferLength:c+=g.length}w.call(this,c)}return _.prototype=Object.create(w.prototype),_.prototype.readBlock=function(){var c=this.streams;if(c.length===0){this.eof=!0;return}var h=c.shift(),f=h.getBytes(),g=this.bufferLength,v=g+f.length,s=this.ensureBuffer(v);s.set(f,g),this.bufferLength=v},_.prototype.getBaseStreams=function(){for(var c=[],h=0,f=this.streams.length;h<f;h++){var g=this.streams[h];g.getBaseStreams&&c.push(...g.getBaseStreams())}return c},_}();t.StreamsSequenceStream=$;var U=function(){var _=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),d=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]),c=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]),h=[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],f=[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];function g(v,s){this.str=v,this.dict=v.dict;var o=v.getByte(),u=v.getByte();if(o===-1||u===-1)throw new r.FormatError(`Invalid header in flate stream: ${o}, ${u}`);if((o&15)!==8)throw new r.FormatError(`Unknown compression method in flate stream: ${o}, ${u}`);if(((o<<8)+u)%31!==0)throw new r.FormatError(`Bad FCHECK in flate stream: ${o}, ${u}`);if(u&32)throw new r.FormatError(`FDICT bit set in flate stream: ${o}, ${u}`);this.codeSize=0,this.codeBuf=0,w.call(this,s)}return g.prototype=Object.create(w.prototype),g.prototype.getBits=function(s){for(var o=this.str,u=this.codeSize,l=this.codeBuf,F;u<s;){if((F=o.getByte())===-1)throw new r.FormatError("Bad encoding in flate stream");l|=F<<u,u+=8}return F=l&(1<<s)-1,this.codeBuf=l>>s,this.codeSize=u-=s,F},g.prototype.getCode=function(s){for(var o=this.str,u=s[0],l=s[1],F=this.codeSize,T=this.codeBuf,D;F<l&&(D=o.getByte())!==-1;)T|=D<<F,F+=8;var k=u[T&(1<<l)-1],S=k>>16,R=k&65535;if(S<1||F<S)throw new r.FormatError("Bad encoding in flate stream");return this.codeBuf=T>>S,this.codeSize=F-S,R},g.prototype.generateHuffmanTable=function(s){var o=s.length,u=0,l;for(l=0;l<o;++l)s[l]>u&&(u=s[l]);for(var F=1<<u,T=new Int32Array(F),D=1,k=0,S=2;D<=u;++D,k<<=1,S<<=1)for(var R=0;R<o;++R)if(s[R]===D){var E=0,A=k;for(l=0;l<D;++l)E=E<<1|A&1,A>>=1;for(l=E;l<F;l+=S)T[l]=D<<16|R;++k}return[T,u]},g.prototype.readBlock=function(){var s,o,u=this.str,l=this.getBits(3);if(l&1&&(this.eof=!0),l>>=1,l===0){var F;if((F=u.getByte())===-1)throw new r.FormatError("Bad block header in flate stream");var T=F;if((F=u.getByte())===-1)throw new r.FormatError("Bad block header in flate stream");if(T|=F<<8,(F=u.getByte())===-1)throw new r.FormatError("Bad block header in flate stream");var D=F;if((F=u.getByte())===-1)throw new r.FormatError("Bad block header in flate stream");if(D|=F<<8,D!==(~T&65535)&&(T!==0||D!==0))throw new r.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;const ae=this.bufferLength,te=ae+T;if(s=this.ensureBuffer(te),this.bufferLength=te,T===0)u.peekByte()===-1&&(this.eof=!0);else{const re=u.getBytes(T);s.set(re,ae),re.length<T&&(this.eof=!0)}return}var k,S;if(l===1)k=h,S=f;else if(l===2){var R=this.getBits(5)+257,E=this.getBits(5)+1,A=this.getBits(4)+4,C=new Uint8Array(_.length),y;for(y=0;y<A;++y)C[_[y]]=this.getBits(3);var I=this.generateHuffmanTable(C);o=0,y=0;for(var H=R+E,V=new Uint8Array(H),B,W,G;y<H;){var q=this.getCode(I);if(q===16)B=2,W=3,G=o;else if(q===17)B=3,W=3,G=o=0;else if(q===18)B=7,W=11,G=o=0;else{V[y++]=o=q;continue}for(var z=this.getBits(B)+W;z-- >0;)V[y++]=G}k=this.generateHuffmanTable(V.subarray(0,R)),S=this.generateHuffmanTable(V.subarray(R,H))}else throw new r.FormatError("Unknown block type in flate stream");s=this.buffer;for(var j=s?s.length:0,Y=this.bufferLength;;){var K=this.getCode(k);if(K<256){Y+1>=j&&(s=this.ensureBuffer(Y+1),j=s.length),s[Y++]=K;continue}if(K===256){this.bufferLength=Y;return}K-=257,K=d[K];var Z=K>>16;Z>0&&(Z=this.getBits(Z)),o=(K&65535)+Z,K=this.getCode(S),K=c[K],Z=K>>16,Z>0&&(Z=this.getBits(Z));var ee=(K&65535)+Z;Y+o>=j&&(s=this.ensureBuffer(Y+o),j=s.length);for(var ne=0;ne<o;++ne,++Y)s[Y]=s[Y-ee]}},g}();t.FlateStream=U;var m=function(){function _(d,c,h){if(!(0,i.isDict)(h))return d;var f=this.predictor=h.get("Predictor")||1;if(f<=1)return d;if(f!==2&&(f<10||f>15))throw new r.FormatError(`Unsupported predictor: ${f}`);f===2?this.readBlock=this.readBlockTiff:this.readBlock=this.readBlockPng,this.str=d,this.dict=d.dict;var g=this.colors=h.get("Colors")||1,v=this.bits=h.get("BitsPerComponent")||8,s=this.columns=h.get("Columns")||1;return this.pixBytes=g*v+7>>3,this.rowBytes=s*g*v+7>>3,w.call(this,c),this}return _.prototype=Object.create(w.prototype),_.prototype.readBlockTiff=function(){var c=this.rowBytes,h=this.bufferLength,f=this.ensureBuffer(h+c),g=this.bits,v=this.colors,s=this.str.getBytes(c);if(this.eof=!s.length,!this.eof){var o=0,u=0,l=0,F=0,T=h,D;if(g===1&&v===1)for(D=0;D<c;++D){var k=s[D]^o;k^=k>>1,k^=k>>2,k^=k>>4,o=(k&1)<<7,f[T++]=k}else if(g===8){for(D=0;D<v;++D)f[T++]=s[D];for(;D<c;++D)f[T]=f[T-v]+s[D],T++}else if(g===16){var S=v*2;for(D=0;D<S;++D)f[T++]=s[D];for(;D<c;D+=2){var R=((s[D]&255)<<8)+(s[D+1]&255)+((f[T-S]&255)<<8)+(f[T-S+1]&255);f[T++]=R>>8&255,f[T++]=R&255}}else{var E=new Uint8Array(v+1),A=(1<<g)-1,C=0,y=h,I=this.columns;for(D=0;D<I;++D)for(var H=0;H<v;++H)l<g&&(o=o<<8|s[C++]&255,l+=8),E[H]=E[H]+(o>>l-g)&A,l-=g,u=u<<g|E[H],F+=g,F>=8&&(f[y++]=u>>F-8&255,F-=8);F>0&&(f[y++]=(u<<8-F)+(o&(1<<8-F)-1))}this.bufferLength+=c}},_.prototype.readBlockPng=function(){var c=this.rowBytes,h=this.pixBytes,f=this.str.getByte(),g=this.str.getBytes(c);if(this.eof=!g.length,!this.eof){var v=this.bufferLength,s=this.ensureBuffer(v+c),o=s.subarray(v-c,v);o.length===0&&(o=new Uint8Array(c));var u,l=v,F,T;switch(f){case 0:for(u=0;u<c;++u)s[l++]=g[u];break;case 1:for(u=0;u<h;++u)s[l++]=g[u];for(;u<c;++u)s[l]=s[l-h]+g[u]&255,l++;break;case 2:for(u=0;u<c;++u)s[l++]=o[u]+g[u]&255;break;case 3:for(u=0;u<h;++u)s[l++]=(o[u]>>1)+g[u];for(;u<c;++u)s[l]=(o[u]+s[l-h]>>1)+g[u]&255,l++;break;case 4:for(u=0;u<h;++u)F=o[u],T=g[u],s[l++]=F+T;for(;u<c;++u){F=o[u];var D=o[u-h],k=s[l-h],S=k+F-D,R=S-k;R<0&&(R=-R);var E=S-F;E<0&&(E=-E);var A=S-D;A<0&&(A=-A),T=g[u],R<=E&&R<=A?s[l++]=k+T:E<=A?s[l++]=F+T:s[l++]=D+T}break;default:throw new r.FormatError(`Unsupported predictor: ${f}`)}this.bufferLength+=c}},_}();t.PredictorStream=m;var n=function(){function _(c,h,f){this.str=c,this.dict=c.dict,this.decrypt=f,this.nextChunk=null,this.initialized=!1,w.call(this,h)}var d=512;return _.prototype=Object.create(w.prototype),_.prototype.readBlock=function(){var h;if(this.initialized?h=this.nextChunk:(h=this.str.getBytes(d),this.initialized=!0),!h||h.length===0){this.eof=!0;return}this.nextChunk=this.str.getBytes(d);var f=this.nextChunk&&this.nextChunk.length>0,g=this.decrypt;h=g(h,!f);var v=this.bufferLength,s,o=h.length,u=this.ensureBuffer(v+o);for(s=0;s<o;s++)u[v++]=h[s];this.bufferLength=v},_}();t.DecryptStream=n;var J=function(){function _(d,c){this.str=d,this.dict=d.dict,this.input=new Uint8Array(5),c&&(c=.8*c),w.call(this,c)}return _.prototype=Object.create(w.prototype),_.prototype.readBlock=function(){for(var c=126,h=122,f=-1,g=this.str,v=g.getByte();(0,p.isWhiteSpace)(v);)v=g.getByte();if(v===f||v===c){this.eof=!0;return}var s=this.bufferLength,o,u;if(v===h){for(o=this.ensureBuffer(s+4),u=0;u<4;++u)o[s+u]=0;this.bufferLength+=4}else{var l=this.input;for(l[0]=v,u=1;u<5;++u){for(v=g.getByte();(0,p.isWhiteSpace)(v);)v=g.getByte();if(l[u]=v,v===f||v===c)break}if(o=this.ensureBuffer(s+u-1),this.bufferLength+=u-1,u<5){for(;u<5;++u)l[u]=117;this.eof=!0}var F=0;for(u=0;u<5;++u)F=F*85+(l[u]-33);for(u=3;u>=0;--u)o[s+u]=F&255,F>>=8}},_}();t.Ascii85Stream=J;var O=function(){function _(d,c){this.str=d,this.dict=d.dict,this.firstDigit=-1,c&&(c=.5*c),w.call(this,c)}return _.prototype=Object.create(w.prototype),_.prototype.readBlock=function(){var c=8e3,h=this.str.getBytes(c);if(!h.length){this.eof=!0;return}for(var f=h.length+1>>1,g=this.ensureBuffer(this.bufferLength+f),v=this.bufferLength,s=this.firstDigit,o=0,u=h.length;o<u;o++){var l=h[o],F;if(l>=48&&l<=57)F=l&15;else if(l>=65&&l<=70||l>=97&&l<=102)F=(l&15)+9;else if(l===62){this.eof=!0;break}else continue;s<0?s=F:(g[v++]=s<<4|F,s=-1)}s>=0&&this.eof&&(g[v++]=s<<4,s=-1),this.firstDigit=s,this.bufferLength=v},_}();t.AsciiHexStream=O;var L=function(){function _(d,c){this.str=d,this.dict=d.dict,w.call(this,c)}return _.prototype=Object.create(w.prototype),_.prototype.readBlock=function(){var c=this.str.getBytes(2);if(!c||c.length<2||c[0]===128){this.eof=!0;return}var h,f=this.bufferLength,g=c[0];if(g<128){if(h=this.ensureBuffer(f+g+1),h[f++]=c[1],g>0){var v=this.str.getBytes(g);h.set(v,f),f+=g}}else{g=257-g;var s=c[1];h=this.ensureBuffer(f+g+1);for(var o=0;o<g;o++)h[f++]=s}this.bufferLength=f},_}();t.RunLengthStream=L;var M=function(){function _(d,c,h){this.str=d,this.dict=d.dict,this.cachedData=0,this.bitsCached=0;for(var f=4096,g={earlyChange:h,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(f),dictionaryLengths:new Uint16Array(f),dictionaryPrevCodes:new Uint16Array(f),currentSequence:new Uint8Array(f),currentSequenceLength:0},v=0;v<256;++v)g.dictionaryValues[v]=v,g.dictionaryLengths[v]=1;this.lzwState=g,w.call(this,c)}return _.prototype=Object.create(w.prototype),_.prototype.readBits=function(c){for(var h=this.bitsCached,f=this.cachedData;h<c;){var g=this.str.getByte();if(g===-1)return this.eof=!0,null;f=f<<8|g,h+=8}return this.bitsCached=h-=c,this.cachedData=f,this.lastCode=null,f>>>h&(1<<c)-1},_.prototype.readBlock=function(){var c=512,h=c*2,f=c,g,v,s,o=this.lzwState;if(o){var u=o.earlyChange,l=o.nextCode,F=o.dictionaryValues,T=o.dictionaryLengths,D=o.dictionaryPrevCodes,k=o.codeLength,S=o.prevCode,R=o.currentSequence,E=o.currentSequenceLength,A=0,C=this.bufferLength,y=this.ensureBuffer(this.bufferLength+h);for(g=0;g<c;g++){var I=this.readBits(k),H=E>0;if(I<256)R[0]=I,E=1;else if(I>=258)if(I<l)for(E=T[I],v=E-1,s=I;v>=0;v--)R[v]=F[s],s=D[s];else R[E++]=R[0];else if(I===256){k=9,l=258,E=0;continue}else{this.eof=!0,delete this.lzwState;break}if(H&&(D[l]=S,T[l]=T[S]+1,F[l]=R[0],l++,k=l+u&l+u-1?k:Math.min(Math.log(l+u)/.6931471805599453+1,12)|0),S=I,A+=E,h<A){do h+=f;while(h<A);y=this.ensureBuffer(this.bufferLength+h)}for(v=0;v<E;v++)y[C++]=R[v]}o.nextCode=l,o.codeLength=k,o.prevCode=S,o.currentSequenceLength=E,this.bufferLength=C}},_}();t.LZWStream=M;var P=function(){function _(){e.call(this,new Uint8Array(0))}return _.prototype=e.prototype,_}();t.NullStream=P},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxStream=void 0;var r=a(4),i=a(13),p=a(11),e=function(){function w($,U,m){this.str=$,this.dict=$.dict,(0,r.isDict)(m)||(m=r.Dict.empty);const n={next(){return $.getByte()}};this.ccittFaxDecoder=new i.CCITTFaxDecoder(n,{K:m.get("K"),EndOfLine:m.get("EndOfLine"),EncodedByteAlign:m.get("EncodedByteAlign"),Columns:m.get("Columns"),Rows:m.get("Rows"),EndOfBlock:m.get("EndOfBlock"),BlackIs1:m.get("BlackIs1")}),p.DecodeStream.call(this,U)}return w.prototype=Object.create(p.DecodeStream.prototype),w.prototype.readBlock=function(){for(;!this.eof;){const $=this.ccittFaxDecoder.readNextChar();if($===-1){this.eof=!0;return}this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=$}},w}();t.CCITTFaxStream=e},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxDecoder=void 0;var r=a(2);const i=function(){const P=[[-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]],b=[[-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]],_=[[-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]],d=[[-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]],c=[[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]],h=[[-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]];function f(g,v={}){if(!g||typeof g.next!="function")throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=g,this.eof=!1,this.encoding=v.K||0,this.eoline=v.EndOfLine||!1,this.byteAlign=v.EncodedByteAlign||!1,this.columns=v.Columns||1728,this.rows=v.Rows||0;let s=v.EndOfBlock;s==null&&(s=!0),this.eoblock=s,this.black=v.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;let o;for(;(o=this._lookBits(12))===0;)this._eatBits(1);o===1&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}return f.prototype={readNextChar(){if(this.eof)return-1;const g=this.refLine,v=this.codingLine,s=this.columns;let o,u,l,F;if(this.outputBits===0){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;this.err=!1;let D,k,S;if(this.nextLine2D){for(F=0;v[F]<s;++F)g[F]=v[F];for(g[F++]=s,g[F]=s,v[0]=0,this.codingPos=0,o=0,u=0;v[this.codingPos]<s;)switch(D=this._getTwoDimCode(),D){case 0:this._addPixels(g[o+1],u),g[o+1]<s&&(o+=2);break;case 1:if(D=k=0,u){do D+=S=this._getBlackCode();while(S>=64);do k+=S=this._getWhiteCode();while(S>=64)}else{do D+=S=this._getWhiteCode();while(S>=64);do k+=S=this._getBlackCode();while(S>=64)}for(this._addPixels(v[this.codingPos]+D,u),v[this.codingPos]<s&&this._addPixels(v[this.codingPos]+k,u^1);g[o]<=v[this.codingPos]&&g[o]<s;)o+=2;break;case 7:if(this._addPixels(g[o]+3,u),u^=1,v[this.codingPos]<s)for(++o;g[o]<=v[this.codingPos]&&g[o]<s;)o+=2;break;case 5:if(this._addPixels(g[o]+2,u),u^=1,v[this.codingPos]<s)for(++o;g[o]<=v[this.codingPos]&&g[o]<s;)o+=2;break;case 3:if(this._addPixels(g[o]+1,u),u^=1,v[this.codingPos]<s)for(++o;g[o]<=v[this.codingPos]&&g[o]<s;)o+=2;break;case 2:if(this._addPixels(g[o],u),u^=1,v[this.codingPos]<s)for(++o;g[o]<=v[this.codingPos]&&g[o]<s;)o+=2;break;case 8:if(this._addPixelsNeg(g[o]-3,u),u^=1,v[this.codingPos]<s)for(o>0?--o:++o;g[o]<=v[this.codingPos]&&g[o]<s;)o+=2;break;case 6:if(this._addPixelsNeg(g[o]-2,u),u^=1,v[this.codingPos]<s)for(o>0?--o:++o;g[o]<=v[this.codingPos]&&g[o]<s;)o+=2;break;case 4:if(this._addPixelsNeg(g[o]-1,u),u^=1,v[this.codingPos]<s)for(o>0?--o:++o;g[o]<=v[this.codingPos]&&g[o]<s;)o+=2;break;case-1:this._addPixels(s,0),this.eof=!0;break;default:(0,r.info)("bad 2d code"),this._addPixels(s,0),this.err=!0}}else for(v[0]=0,this.codingPos=0,u=0;v[this.codingPos]<s;){if(D=0,u)do D+=S=this._getBlackCode();while(S>=64);else do D+=S=this._getWhiteCode();while(S>=64);this._addPixels(v[this.codingPos]+D,u),u^=1}let R=!1;if(this.byteAlign&&(this.inputBits&=-8),!this.eoblock&&this.row===this.rows-1)this.rowsDone=!0;else{if(D=this._lookBits(12),this.eoline)for(;D!==-1&&D!==1;)this._eatBits(1),D=this._lookBits(12);else for(;D===0;)this._eatBits(1),D=this._lookBits(12);D===1?(this._eatBits(12),R=!0):D===-1&&(this.eof=!0)}if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&R&&this.byteAlign){if(D=this._lookBits(12),D===1){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(F=0;F<4;++F)D=this._lookBits(12),D!==1&&(0,r.info)("bad rtc code: "+D),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(D=this._lookBits(13),D===-1)return this.eof=!0,-1;if(D>>1===1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(D&1))}v[0]>0?this.outputBits=v[this.codingPos=0]:this.outputBits=v[this.codingPos=1],this.row++}let T;if(this.outputBits>=8)T=this.codingPos&1?0:255,this.outputBits-=8,this.outputBits===0&&v[this.codingPos]<s&&(this.codingPos++,this.outputBits=v[this.codingPos]-v[this.codingPos-1]);else{l=8,T=0;do this.outputBits>l?(T<<=l,this.codingPos&1||(T|=255>>8-l),this.outputBits-=l,l=0):(T<<=this.outputBits,this.codingPos&1||(T|=255>>8-this.outputBits),l-=this.outputBits,this.outputBits=0,v[this.codingPos]<s?(this.codingPos++,this.outputBits=v[this.codingPos]-v[this.codingPos-1]):l>0&&(T<<=l,l=0));while(l)}return this.black&&(T^=255),T},_addPixels(g,v){const s=this.codingLine;let o=this.codingPos;g>s[o]&&(g>this.columns&&((0,r.info)("row is wrong length"),this.err=!0,g=this.columns),o&1^v&&++o,s[o]=g),this.codingPos=o},_addPixelsNeg(g,v){const s=this.codingLine;let o=this.codingPos;if(g>s[o])g>this.columns&&((0,r.info)("row is wrong length"),this.err=!0,g=this.columns),o&1^v&&++o,s[o]=g;else if(g<s[o]){for(g<0&&((0,r.info)("invalid code"),this.err=!0,g=0);o>0&&g<s[o-1];)--o;s[o]=g}this.codingPos=o},_findTableCode(g,v,s,o){const u=o||0;for(let l=g;l<=v;++l){let F=this._lookBits(l);if(F===-1)return[!0,1,!1];if(l<v&&(F<<=v-l),!u||F>=u){const T=s[F-u];if(T[0]===l)return this._eatBits(l),[!0,T[1],!0]}}return[!1,0,!1]},_getTwoDimCode(){let g=0,v;if(this.eoblock){if(g=this._lookBits(7),v=P[g],v&&v[0]>0)return this._eatBits(v[0]),v[1]}else{const s=this._findTableCode(1,7,P);if(s[0]&&s[2])return s[1]}return(0,r.info)("Bad two dim code"),-1},_getWhiteCode(){let g=0,v;if(this.eoblock){if(g=this._lookBits(12),g===-1)return 1;if(g>>5?v=_[g>>3]:v=b[g],v[0]>0)return this._eatBits(v[0]),v[1]}else{let s=this._findTableCode(1,9,_);if(s[0]||(s=this._findTableCode(11,12,b),s[0]))return s[1]}return(0,r.info)("bad white code"),this._eatBits(1),1},_getBlackCode(){let g,v;if(this.eoblock){if(g=this._lookBits(13),g===-1)return 1;if(g>>7?!(g>>9)&&g>>7?v=c[(g>>1)-64]:v=h[g>>7]:v=d[g],v[0]>0)return this._eatBits(v[0]),v[1]}else{let s=this._findTableCode(2,6,h);if(s[0]||(s=this._findTableCode(7,12,c,64),s[0])||(s=this._findTableCode(10,13,d),s[0]))return s[1]}return(0,r.info)("bad black code"),this._eatBits(1),1},_lookBits(g){let v;for(;this.inputBits<g;){if((v=this.source.next())===-1)return this.inputBits===0?-1:this.inputBuf<<g-this.inputBits&65535>>16-g;this.inputBuf=this.inputBuf<<8|v,this.inputBits+=8}return this.inputBuf>>this.inputBits-g&65535>>16-g},_eatBits(g){(this.inputBits-=g)<0&&(this.inputBits=0)}},f}();t.CCITTFaxDecoder=i},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Stream=void 0;var r=a(4),i=a(11),p=a(15),e=a(2);const N=function(){function $(U,m,n,J){this.stream=U,this.maybeLength=m,this.dict=n,this.params=J,i.DecodeStream.call(this,m)}return $.prototype=Object.create(i.DecodeStream.prototype),Object.defineProperty($.prototype,"bytes",{get(){return(0,e.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),$.prototype.ensureBuffer=function(U){},$.prototype.readBlock=function(){if(this.eof)return;const U=new p.Jbig2Image,m=[];if((0,r.isDict)(this.params)){const O=this.params.get("JBIG2Globals");if((0,r.isStream)(O)){const L=O.getBytes();m.push({data:L,start:0,end:L.length})}}m.push({data:this.bytes,start:0,end:this.bytes.length});const n=U.parseChunks(m),J=n.length;for(let O=0;O<J;O++)n[O]^=255;this.buffer=n,this.bufferLength=J,this.eof=!0},$}();t.Jbig2Stream=N},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Image=void 0;var r=a(2),i=a(7),p=a(16),e=a(13);class N extends r.BaseException{constructor(U){super(`JBIG2 error: ${U}`)}}var w=function(){function U(){}U.prototype={getContexts(z){return z in this?this[z]:this[z]=new Int8Array(65536)}};function m(z,j,Y){this.data=z,this.start=j,this.end=Y}m.prototype={get decoder(){var z=new p.ArithmeticDecoder(this.data,this.start,this.end);return(0,r.shadow)(this,"decoder",z)},get contextCache(){var z=new U;return(0,r.shadow)(this,"contextCache",z)}};function n(z,j,Y){var K=z.getContexts(j),Z=1;function ee(te){for(var re=0,ie=0;ie<te;ie++){var de=Y.readBit(K,Z);Z=Z<256?Z<<1|de:(Z<<1|de)&511|256,re=re<<1|de}return re>>>0}var ne=ee(1),ae=ee(1)?ee(1)?ee(1)?ee(1)?ee(1)?ee(32)+4436:ee(12)+340:ee(8)+84:ee(6)+20:ee(4)+4:ee(2);return ne===0?ae:ae>0?-ae:null}function J(z,j,Y){for(var K=z.getContexts("IAID"),Z=1,ee=0;ee<Y;ee++){var ne=j.readBit(K,Z);Z=Z<<1|ne}return Y<31?Z&(1<<Y)-1:Z&2147483647}var O=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"PatternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],L=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],M=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],P=[39717,1941,229,405];function b(z,j,Y){var K=Y.decoder,Z=Y.contextCache.getContexts("GB"),ee,ne,ae,te,re,ie,de,oe=[],le=31735;for(ne=0;ne<j;ne++)for(re=oe[ne]=new Uint8Array(z),ie=ne<1?re:oe[ne-1],de=ne<2?re:oe[ne-2],ee=de[0]<<13|de[1]<<12|de[2]<<11|ie[0]<<7|ie[1]<<6|ie[2]<<5|ie[3]<<4,ae=0;ae<z;ae++)re[ae]=te=K.readBit(Z,ee),ee=(ee&le)<<1|(ae+3<z?de[ae+3]<<11:0)|(ae+4<z?ie[ae+4]<<4:0)|te;return oe}function _(z,j,Y,K,Z,ee,ne,ae){if(z){const ft=new I(ae.data,ae.start,ae.end);return G(ft,j,Y,!1)}if(K===0&&!Z&&ne.length===4&&ne[0].x===3&&ne[0].y===-1&&ne[1].x===-3&&ne[1].y===-1&&ne[2].x===2&&ne[2].y===-2&&ne[3].x===-2&&ne[3].y===-2)return b(j,Y,ae);var te=L[K].concat(ne);te.sort(function(ft,lt){return ft.y-lt.y||ft.x-lt.x});var re=te.length,ie=new Int8Array(re),de=new Int8Array(re),oe=[],le=0,me=0,Pe=0,Ce=0,xe,be;for(be=0;be<re;be++)ie[be]=te[be].x,de[be]=te[be].y,me=Math.min(me,te[be].x),Pe=Math.max(Pe,te[be].x),Ce=Math.min(Ce,te[be].y),be<re-1&&te[be].y===te[be+1].y&&te[be].x===te[be+1].x-1?le|=1<<re-1-be:oe.push(be);var Se=oe.length,_e=new Int8Array(Se),ge=new Int8Array(Se),ue=new Uint16Array(Se);for(xe=0;xe<Se;xe++)be=oe[xe],_e[xe]=te[be].x,ge[xe]=te[be].y,ue[xe]=1<<re-1-be;for(var se=-me,pe=-Ce,we=j-Pe,Te=P[K],ke=new Uint8Array(j),Fe=[],Le=ae.decoder,he=ae.contextCache.getContexts("GB"),Ee=0,ve,ye,Oe,Ne=0,Ge,ze,tt=0;tt<Y;tt++){if(Z){var rt=Le.readBit(he,Te);if(Ee^=rt,Ee){Fe.push(ke);continue}}for(ke=new Uint8Array(ke),Fe.push(ke),ve=0;ve<j;ve++){if(ve>=se&&ve<we&&tt>=pe)for(Ne=Ne<<1&le,be=0;be<Se;be++)ye=tt+ge[be],Oe=ve+_e[be],Ge=Fe[ye][Oe],Ge&&(Ge=ue[be],Ne|=Ge);else for(Ne=0,ze=re-1,be=0;be<re;be++,ze--)Oe=ve+ie[be],Oe>=0&&Oe<j&&(ye=tt+de[be],ye>=0&&(Ge=Fe[ye][Oe],Ge&&(Ne|=Ge<<ze)));var xt=Le.readBit(he,Ne);ke[ve]=xt}}return Fe}function d(z,j,Y,K,Z,ee,ne,ae,te){var re=M[Y].coding;Y===0&&(re=re.concat([ae[0]]));var ie=re.length,de=new Int32Array(ie),oe=new Int32Array(ie),le;for(le=0;le<ie;le++)de[le]=re[le].x,oe[le]=re[le].y;var me=M[Y].reference;Y===0&&(me=me.concat([ae[1]]));var Pe=me.length,Ce=new Int32Array(Pe),xe=new Int32Array(Pe);for(le=0;le<Pe;le++)Ce[le]=me[le].x,xe[le]=me[le].y;for(var be=K[0].length,Se=K.length,_e=[],ge=te.decoder,ue=te.contextCache.getContexts("GR"),se=0;se<j;se++){var pe=new Uint8Array(z);_e.push(pe);for(var we=0;we<z;we++){var Te,ke,Fe=0;for(le=0;le<ie;le++)Te=se+oe[le],ke=we+de[le],Te<0||ke<0||ke>=z?Fe<<=1:Fe=Fe<<1|_e[Te][ke];for(le=0;le<Pe;le++)Te=se+xe[le]-ee,ke=we+Ce[le]-Z,Te<0||Te>=Se||ke<0||ke>=be?Fe<<=1:Fe=Fe<<1|K[Te][ke];var Le=ge.readBit(ue,Fe);pe[we]=Le}}return _e}function c(z,j,Y,K,Z,ee,ne,ae,te,re,ie,de){if(z&&j)throw new N("symbol refinement with Huffman is not supported");var oe=[],le=0,me=(0,i.log2)(Y.length+K),Pe=ie.decoder,Ce=ie.contextCache;let xe,be;for(z&&(xe=y(1),be=[],me=Math.max(me,1));oe.length<K;){var Se=z?ee.tableDeltaHeight.decode(de):n(Ce,"IADH",Pe);le+=Se;let Ne=0,Ge=0;const ze=z?be.length:0;for(;;){var _e=z?ee.tableDeltaWidth.decode(de):n(Ce,"IADW",Pe);if(_e===null)break;Ne+=_e,Ge+=Ne;var ge;if(j){var ue=n(Ce,"IAAI",Pe);if(ue>1)ge=h(z,j,Ne,le,0,ue,1,Y.concat(oe),me,0,0,1,0,ee,te,re,ie,0,de);else{var se=J(Ce,Pe,me),pe=n(Ce,"IARDX",Pe),we=n(Ce,"IARDY",Pe),Te=se<Y.length?Y[se]:oe[se-Y.length];ge=d(Ne,le,te,Te,pe,we,!1,re,ie)}oe.push(ge)}else z?be.push(Ne):(ge=_(!1,Ne,le,ne,!1,null,ae,ie),oe.push(ge))}if(z&&!j){const tt=ee.tableBitmapSize.decode(de);de.byteAlign();let rt;if(tt===0)rt=W(de,Ge,le);else{const ft=de.end,lt=de.position+tt;de.end=lt,rt=G(de,Ge,le,!1),de.end=ft,de.position=lt}const xt=be.length;if(ze===xt-1)oe.push(rt);else{let ft,lt,ht=0,St,wt,vt;for(ft=ze;ft<xt;ft++){for(wt=be[ft],St=ht+wt,vt=[],lt=0;lt<le;lt++)vt.push(rt[lt].subarray(ht,St));oe.push(vt),ht=St}}}}for(var ke=[],Fe=[],Le=!1,he=Y.length+K;Fe.length<he;){for(var Ee=z?xe.decode(de):n(Ce,"IAEX",Pe);Ee--;)Fe.push(Le);Le=!Le}for(var ve=0,ye=Y.length;ve<ye;ve++)Fe[ve]&&ke.push(Y[ve]);for(var Oe=0;Oe<K;ve++,Oe++)Fe[ve]&&ke.push(oe[Oe]);return ke}function h(z,j,Y,K,Z,ee,ne,ae,te,re,ie,de,oe,le,me,Pe,Ce,xe,be){if(z&&j)throw new N("refinement with Huffman is not supported");var Se=[],_e,ge;for(_e=0;_e<K;_e++){if(ge=new Uint8Array(Y),Z)for(var ue=0;ue<Y;ue++)ge[ue]=Z;Se.push(ge)}var se=Ce.decoder,pe=Ce.contextCache,we=z?-le.tableDeltaT.decode(be):-n(pe,"IADT",se),Te=0;for(_e=0;_e<ee;){var ke=z?le.tableDeltaT.decode(be):n(pe,"IADT",se);we+=ke;var Fe=z?le.tableFirstS.decode(be):n(pe,"IAFS",se);Te+=Fe;var Le=Te;do{let bt=0;ne>1&&(bt=z?be.readBits(xe):n(pe,"IAIT",se));var he=ne*we+bt,Ee=z?le.symbolIDTable.decode(be):J(pe,se,te),ve=j&&(z?be.readBit():n(pe,"IARI",se)),ye=ae[Ee],Oe=ye[0].length,Ne=ye.length;if(ve){var Ge=n(pe,"IARDW",se),ze=n(pe,"IARDH",se),tt=n(pe,"IARDX",se),rt=n(pe,"IARDY",se);Oe+=Ge,Ne+=ze,ye=d(Oe,Ne,me,ye,(Ge>>1)+tt,(ze>>1)+rt,!1,Pe,Ce)}var xt=he-(de&1?0:Ne-1),ft=Le-(de&2?Oe-1:0),lt,ht,St;if(re){for(lt=0;lt<Ne;lt++)if(ge=Se[ft+lt],!!ge){St=ye[lt];var wt=Math.min(Y-xt,Oe);switch(oe){case 0:for(ht=0;ht<wt;ht++)ge[xt+ht]|=St[ht];break;case 2:for(ht=0;ht<wt;ht++)ge[xt+ht]^=St[ht];break;default:throw new N(`operator ${oe} is not supported`)}}Le+=Ne-1}else{for(ht=0;ht<Ne;ht++)if(ge=Se[xt+ht],!!ge)switch(St=ye[ht],oe){case 0:for(lt=0;lt<Oe;lt++)ge[ft+lt]|=St[lt];break;case 2:for(lt=0;lt<Oe;lt++)ge[ft+lt]^=St[lt];break;default:throw new N(`operator ${oe} is not supported`)}Le+=Oe-1}_e++;var vt=z?le.tableDeltaS.decode(be):n(pe,"IADS",se);if(vt===null)break;Le+=vt+ie}while(!0)}return Se}function f(z,j,Y,K,Z,ee){const ne=[];z||(ne.push({x:-j,y:0}),Z===0&&(ne.push({x:-3,y:-1}),ne.push({x:2,y:-2}),ne.push({x:-2,y:-2})));const ae=(K+1)*j,te=_(z,ae,Y,Z,!1,null,ne,ee),re=[];for(let ie=0;ie<=K;ie++){const de=[],oe=j*ie,le=oe+j;for(let me=0;me<Y;me++)de.push(te[me].subarray(oe,le));re.push(de)}return re}function g(z,j,Y,K,Z,ee,ne,ae,te,re,ie,de,oe,le,me){if(ne)throw new N("skip is not supported");if(ae!==0)throw new N("operator "+ae+" is not supported in halftone region");const Ce=[];let xe,be,Se;for(xe=0;xe<Z;xe++){if(Se=new Uint8Array(K),ee)for(be=0;be<K;be++)Se[be]=ee;Ce.push(Se)}const _e=j.length,ge=j[0],ue=ge[0].length,se=ge.length,pe=(0,i.log2)(_e),we=[];z||(we.push({x:Y<=1?3:2,y:-1}),Y===0&&(we.push({x:-3,y:-1}),we.push({x:2,y:-2}),we.push({x:-2,y:-2})));const Te=[];let ke,Fe;for(z&&(ke=new I(me.data,me.start,me.end)),xe=pe-1;xe>=0;xe--)z?Fe=G(ke,te,re,!0):Fe=_(!1,te,re,Y,!1,null,we,me),Te[xe]=Fe;let Le,he,Ee,ve,ye,Oe,Ne,Ge,ze;for(Le=0;Le<re;Le++)for(he=0;he<te;he++){for(Ee=0,ve=0,be=pe-1;be>=0;be--)Ee=Te[be][Le][he]^Ee,ve|=Ee<<be;if(ye=j[ve],Oe=ie+Le*le+he*oe>>8,Ne=de+Le*oe-he*le>>8,Oe>=0&&Oe+ue<=K&&Ne>=0&&Ne+se<=Z)for(xe=0;xe<se;xe++)for(ze=Ce[Ne+xe],Ge=ye[xe],be=0;be<ue;be++)ze[Oe+be]|=Ge[be];else{let tt,rt;for(xe=0;xe<se;xe++)if(rt=Ne+xe,!(rt<0||rt>=Z))for(ze=Ce[rt],Ge=ye[xe],be=0;be<ue;be++)tt=Oe+be,tt>=0&&tt<K&&(ze[tt]|=Ge[be])}}return Ce}function v(z,j){var Y={};Y.number=(0,i.readUint32)(z,j);var K=z[j+4],Z=K&63;if(!O[Z])throw new N("invalid segment type: "+Z);Y.type=Z,Y.typeName=O[Z],Y.deferredNonRetain=!!(K&128);var ee=!!(K&64),ne=z[j+5],ae=ne>>5&7,te=[ne&31],re=j+6;if(ne===7){ae=(0,i.readUint32)(z,re-1)&536870911,re+=3;var ie=ae+7>>3;for(te[0]=z[re++];--ie>0;)te.push(z[re++])}else if(ne===5||ne===6)throw new N("invalid referred-to flags");Y.retainBits=te;let de=4;Y.number<=256?de=1:Y.number<=65536&&(de=2);var oe=[],le,me;for(le=0;le<ae;le++){let ge;de===1?ge=z[re]:de===2?ge=(0,i.readUint16)(z,re):ge=(0,i.readUint32)(z,re),oe.push(ge),re+=de}if(Y.referredTo=oe,ee?(Y.pageAssociation=(0,i.readUint32)(z,re),re+=4):Y.pageAssociation=z[re++],Y.length=(0,i.readUint32)(z,re),re+=4,Y.length===4294967295)if(Z===38){var Pe=o(z,re),Ce=z[re+u],xe=!!(Ce&1),be=6,Se=new Uint8Array(be);for(xe||(Se[0]=255,Se[1]=172),Se[2]=Pe.height>>>24&255,Se[3]=Pe.height>>16&255,Se[4]=Pe.height>>8&255,Se[5]=Pe.height&255,le=re,me=z.length;le<me;le++){for(var _e=0;_e<be&&Se[_e]===z[le+_e];)_e++;if(_e===be){Y.length=le+be;break}}if(Y.length===4294967295)throw new N("segment end was not found")}else throw new N("invalid unknown segment length");return Y.headerEnd=re,Y}function s(z,j,Y,K){for(var Z=[],ee=Y;ee<K;){var ne=v(j,ee);ee=ne.headerEnd;var ae={header:ne,data:j};if(z.randomAccess||(ae.start=ee,ee+=ne.length,ae.end=ee),Z.push(ae),ne.type===51)break}if(z.randomAccess)for(var te=0,re=Z.length;te<re;te++)Z[te].start=ee,ee+=Z[te].header.length,Z[te].end=ee;return Z}function o(z,j){return{width:(0,i.readUint32)(z,j),height:(0,i.readUint32)(z,j+4),x:(0,i.readUint32)(z,j+8),y:(0,i.readUint32)(z,j+12),combinationOperator:z[j+16]&7}}var u=17;function l(z,j){var Y=z.header,K=z.data,Z=z.start,ee=z.end,ne,ae,te,re;switch(Y.type){case 0:var ie={},de=(0,i.readUint16)(K,Z);if(ie.huffman=!!(de&1),ie.refinement=!!(de&2),ie.huffmanDHSelector=de>>2&3,ie.huffmanDWSelector=de>>4&3,ie.bitmapSizeSelector=de>>6&1,ie.aggregationInstancesSelector=de>>7&1,ie.bitmapCodingContextUsed=!!(de&256),ie.bitmapCodingContextRetained=!!(de&512),ie.template=de>>10&3,ie.refinementTemplate=de>>12&1,Z+=2,!ie.huffman){for(re=ie.template===0?4:1,ae=[],te=0;te<re;te++)ae.push({x:(0,i.readInt8)(K,Z),y:(0,i.readInt8)(K,Z+1)}),Z+=2;ie.at=ae}if(ie.refinement&&!ie.refinementTemplate){for(ae=[],te=0;te<2;te++)ae.push({x:(0,i.readInt8)(K,Z),y:(0,i.readInt8)(K,Z+1)}),Z+=2;ie.refinementAt=ae}ie.numberOfExportedSymbols=(0,i.readUint32)(K,Z),Z+=4,ie.numberOfNewSymbols=(0,i.readUint32)(K,Z),Z+=4,ne=[ie,Y.number,Y.referredTo,K,Z,ee];break;case 6:case 7:var oe={};oe.info=o(K,Z),Z+=u;var le=(0,i.readUint16)(K,Z);if(Z+=2,oe.huffman=!!(le&1),oe.refinement=!!(le&2),oe.logStripSize=le>>2&3,oe.stripSize=1<<oe.logStripSize,oe.referenceCorner=le>>4&3,oe.transposed=!!(le&64),oe.combinationOperator=le>>7&3,oe.defaultPixelValue=le>>9&1,oe.dsOffset=le<<17>>27,oe.refinementTemplate=le>>15&1,oe.huffman){var me=(0,i.readUint16)(K,Z);Z+=2,oe.huffmanFS=me&3,oe.huffmanDS=me>>2&3,oe.huffmanDT=me>>4&3,oe.huffmanRefinementDW=me>>6&3,oe.huffmanRefinementDH=me>>8&3,oe.huffmanRefinementDX=me>>10&3,oe.huffmanRefinementDY=me>>12&3,oe.huffmanRefinementSizeSelector=!!(me&16384)}if(oe.refinement&&!oe.refinementTemplate){for(ae=[],te=0;te<2;te++)ae.push({x:(0,i.readInt8)(K,Z),y:(0,i.readInt8)(K,Z+1)}),Z+=2;oe.refinementAt=ae}oe.numberOfSymbolInstances=(0,i.readUint32)(K,Z),Z+=4,ne=[oe,Y.referredTo,K,Z,ee];break;case 16:const _e={},ge=K[Z++];_e.mmr=!!(ge&1),_e.template=ge>>1&3,_e.patternWidth=K[Z++],_e.patternHeight=K[Z++],_e.maxPatternIndex=(0,i.readUint32)(K,Z),Z+=4,ne=[_e,Y.number,K,Z,ee];break;case 22:case 23:const ue={};ue.info=o(K,Z),Z+=u;const se=K[Z++];ue.mmr=!!(se&1),ue.template=se>>1&3,ue.enableSkip=!!(se&8),ue.combinationOperator=se>>4&7,ue.defaultPixelValue=se>>7&1,ue.gridWidth=(0,i.readUint32)(K,Z),Z+=4,ue.gridHeight=(0,i.readUint32)(K,Z),Z+=4,ue.gridOffsetX=(0,i.readUint32)(K,Z)&4294967295,Z+=4,ue.gridOffsetY=(0,i.readUint32)(K,Z)&4294967295,Z+=4,ue.gridVectorX=(0,i.readUint16)(K,Z),Z+=2,ue.gridVectorY=(0,i.readUint16)(K,Z),Z+=2,ne=[ue,Y.referredTo,K,Z,ee];break;case 38:case 39:var Pe={};Pe.info=o(K,Z),Z+=u;var Ce=K[Z++];if(Pe.mmr=!!(Ce&1),Pe.template=Ce>>1&3,Pe.prediction=!!(Ce&8),!Pe.mmr){for(re=Pe.template===0?4:1,ae=[],te=0;te<re;te++)ae.push({x:(0,i.readInt8)(K,Z),y:(0,i.readInt8)(K,Z+1)}),Z+=2;Pe.at=ae}ne=[Pe,K,Z,ee];break;case 48:var xe={width:(0,i.readUint32)(K,Z),height:(0,i.readUint32)(K,Z+4),resolutionX:(0,i.readUint32)(K,Z+8),resolutionY:(0,i.readUint32)(K,Z+12)};xe.height===4294967295&&delete xe.height;var be=K[Z+16];(0,i.readUint16)(K,Z+17),xe.lossless=!!(be&1),xe.refinement=!!(be&2),xe.defaultPixelValue=be>>2&1,xe.combinationOperator=be>>3&3,xe.requiresBuffer=!!(be&32),xe.combinationOperatorOverride=!!(be&64),ne=[xe];break;case 49:break;case 50:break;case 51:break;case 53:ne=[Y.number,K,Z,ee];break;case 62:break;default:throw new N(`segment type ${Y.typeName}(${Y.type}) is not implemented`)}var Se="on"+Y.typeName;Se in j&&j[Se].apply(j,ne)}function F(z,j){for(var Y=0,K=z.length;Y<K;Y++)l(z[Y],j)}function T(z){for(var j=new k,Y=0,K=z.length;Y<K;Y++){var Z=z[Y],ee=s({},Z.data,Z.start,Z.end);F(ee,j)}return j.buffer}function D(z){const j=z.length;let Y=0;if(z[Y]!==151||z[Y+1]!==74||z[Y+2]!==66||z[Y+3]!==50||z[Y+4]!==13||z[Y+5]!==10||z[Y+6]!==26||z[Y+7]!==10)throw new N("parseJbig2 - invalid header.");const K=Object.create(null);Y+=8;const Z=z[Y++];K.randomAccess=!(Z&1),Z&2||(K.numberOfPages=(0,i.readUint32)(z,Y),Y+=4);const ee=s(K,z,Y,j),ne=new k;F(ee,ne);const{width:ae,height:te}=ne.currentPageInfo,re=ne.buffer,ie=new Uint8ClampedArray(ae*te);let de=0,oe=0;for(let le=0;le<te;le++){let me=0,Pe;for(let Ce=0;Ce<ae;Ce++)me||(me=128,Pe=re[oe++]),ie[de++]=Pe&me?0:255,me>>=1}return{imgData:ie,width:ae,height:te}}function k(){}k.prototype={onPageInformation:function(j){this.currentPageInfo=j;var Y=j.width+7>>3,K=new Uint8ClampedArray(Y*j.height);if(j.defaultPixelValue)for(var Z=0,ee=K.length;Z<ee;Z++)K[Z]=255;this.buffer=K},drawBitmap:function(j,Y){var K=this.currentPageInfo,Z=j.width,ee=j.height,ne=K.width+7>>3,ae=K.combinationOperatorOverride?j.combinationOperator:K.combinationOperator,te=this.buffer,re=128>>(j.x&7),ie=j.y*ne+(j.x>>3),de,oe,le,me;switch(ae){case 0:for(de=0;de<ee;de++){for(le=re,me=ie,oe=0;oe<Z;oe++)Y[de][oe]&&(te[me]|=le),le>>=1,le||(le=128,me++);ie+=ne}break;case 2:for(de=0;de<ee;de++){for(le=re,me=ie,oe=0;oe<Z;oe++)Y[de][oe]&&(te[me]^=le),le>>=1,le||(le=128,me++);ie+=ne}break;default:throw new N(`operator ${ae} is not supported`)}},onImmediateGenericRegion:function(j,Y,K,Z){var ee=j.info,ne=new m(Y,K,Z),ae=_(j.mmr,ee.width,ee.height,j.template,j.prediction,null,j.at,ne);this.drawBitmap(ee,ae)},onImmediateLosslessGenericRegion:function(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function(j,Y,K,Z,ee,ne){let ae,te;j.huffman&&(ae=B(j,K,this.customTables),te=new I(Z,ee,ne));var re=this.symbols;re||(this.symbols=re={});for(var ie=[],de=0,oe=K.length;de<oe;de++){const me=re[K[de]];me&&(ie=ie.concat(me))}var le=new m(Z,ee,ne);re[Y]=c(j.huffman,j.refinement,ie,j.numberOfNewSymbols,j.numberOfExportedSymbols,ae,j.template,j.at,j.refinementTemplate,j.refinementAt,le,te)},onImmediateTextRegion:function(j,Y,K,Z,ee){var ne=j.info;let ae,te;for(var re=this.symbols,ie=[],de=0,oe=Y.length;de<oe;de++){const Ce=re[Y[de]];Ce&&(ie=ie.concat(Ce))}var le=(0,i.log2)(ie.length);j.huffman&&(te=new I(K,Z,ee),ae=V(j,Y,this.customTables,ie.length,te));var me=new m(K,Z,ee),Pe=h(j.huffman,j.refinement,ne.width,ne.height,j.defaultPixelValue,j.numberOfSymbolInstances,j.stripSize,ie,le,j.transposed,j.dsOffset,j.referenceCorner,j.combinationOperator,ae,j.refinementTemplate,j.refinementAt,me,j.logStripSize,te);this.drawBitmap(ne,Pe)},onImmediateLosslessTextRegion:function(){this.onImmediateTextRegion.apply(this,arguments)},onPatternDictionary(z,j,Y,K,Z){let ee=this.patterns;ee||(this.patterns=ee={});const ne=new m(Y,K,Z);ee[j]=f(z.mmr,z.patternWidth,z.patternHeight,z.maxPatternIndex,z.template,ne)},onImmediateHalftoneRegion(z,j,Y,K,Z){const ee=this.patterns[j[0]],ne=z.info,ae=new m(Y,K,Z),te=g(z.mmr,ee,z.template,ne.width,ne.height,z.defaultPixelValue,z.enableSkip,z.combinationOperator,z.gridWidth,z.gridHeight,z.gridOffsetX,z.gridOffsetY,z.gridVectorX,z.gridVectorY,ae);this.drawBitmap(ne,te)},onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion.apply(this,arguments)},onTables(z,j,Y,K){let Z=this.customTables;Z||(this.customTables=Z={}),Z[z]=A(j,Y,K)}};function S(z){z.length===2?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=z[0],this.rangeLength=0,this.prefixCode=z[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=z[0],this.prefixLength=z[1],this.rangeLength=z[2],this.prefixCode=z[3],this.isLowerRange=z[4]==="lower")}function R(z){this.children=[],z?(this.isLeaf=!0,this.rangeLength=z.rangeLength,this.rangeLow=z.rangeLow,this.isLowerRange=z.isLowerRange,this.isOOB=z.isOOB):this.isLeaf=!1}R.prototype={buildTree(z,j){const Y=z.prefixCode>>j&1;if(j<=0)this.children[Y]=new R(z);else{let K=this.children[Y];K||(this.children[Y]=K=new R(null)),K.buildTree(z,j-1)}},decodeNode(z){if(this.isLeaf){if(this.isOOB)return null;const Y=z.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-Y:Y)}const j=this.children[z.readBit()];if(!j)throw new N("invalid Huffman data");return j.decodeNode(z)}};function E(z,j){j||this.assignPrefixCodes(z),this.rootNode=new R(null);for(let Y=0,K=z.length;Y<K;Y++){const Z=z[Y];Z.prefixLength>0&&this.rootNode.buildTree(Z,Z.prefixLength-1)}}E.prototype={decode(z){return this.rootNode.decodeNode(z)},assignPrefixCodes(z){const j=z.length;let Y=0;for(let re=0;re<j;re++)Y=Math.max(Y,z[re].prefixLength);const K=new Uint32Array(Y+1);for(let re=0;re<j;re++)K[z[re].prefixLength]++;let Z=1,ee=0,ne,ae,te;for(K[0]=0;Z<=Y;){for(ee=ee+K[Z-1]<<1,ne=ee,ae=0;ae<j;)te=z[ae],te.prefixLength===Z&&(te.prefixCode=ne,ne++),ae++;Z++}}};function A(z,j,Y){const K=z[j],Z=(0,i.readUint32)(z,j+1)&4294967295,ee=(0,i.readUint32)(z,j+5)&4294967295,ne=new I(z,j+9,Y),ae=(K>>1&7)+1,te=(K>>4&7)+1,re=[];let ie,de,oe=Z;do ie=ne.readBits(ae),de=ne.readBits(te),re.push(new S([oe,ie,de,0])),oe+=1<<de;while(oe<ee);return ie=ne.readBits(ae),re.push(new S([Z-1,ie,32,0,"lower"])),ie=ne.readBits(ae),re.push(new S([ee,ie,32,0])),K&1&&(ie=ne.readBits(ae),re.push(new S([ie,0]))),new E(re,!1)}const C={};function y(z){let j=C[z];if(j)return j;let Y;switch(z){case 1:Y=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:Y=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:Y=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]];break;case 4:Y=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:Y=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]];break;case 6:Y=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]];break;case 7:Y=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]];break;case 8:Y=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]];break;case 9:Y=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]];break;case 10:Y=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]];break;case 11:Y=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:Y=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:Y=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:Y=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:Y=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]];break;default:throw new N(`standard table B.${z} does not exist`)}for(let K=0,Z=Y.length;K<Z;K++)Y[K]=new S(Y[K]);return j=new E(Y,!0),C[z]=j,j}function I(z,j,Y){this.data=z,this.start=j,this.end=Y,this.position=j,this.shift=-1,this.currentByte=0}I.prototype={readBit(){if(this.shift<0){if(this.position>=this.end)throw new N("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}const z=this.currentByte>>this.shift&1;return this.shift--,z},readBits(z){let j=0,Y;for(Y=z-1;Y>=0;Y--)j|=this.readBit()<<Y;return j},byteAlign(){this.shift=-1},next(){return this.position>=this.end?-1:this.data[this.position++]}};function H(z,j,Y){let K=0;for(let Z=0,ee=j.length;Z<ee;Z++){const ne=Y[j[Z]];if(ne){if(z===K)return ne;K++}}throw new N("can't find custom Huffman table")}function V(z,j,Y,K,Z){const ee=[];for(let oe=0;oe<=34;oe++){const le=Z.readBits(4);ee.push(new S([oe,le,0,0]))}const ne=new E(ee,!1);ee.length=0;for(let oe=0;oe<K;){const le=ne.decode(Z);if(le>=32){let me,Pe,Ce;switch(le){case 32:if(oe===0)throw new N("no previous value in symbol ID table");Pe=Z.readBits(2)+3,me=ee[oe-1].prefixLength;break;case 33:Pe=Z.readBits(3)+3,me=0;break;case 34:Pe=Z.readBits(7)+11,me=0;break;default:throw new N("invalid code length in symbol ID table")}for(Ce=0;Ce<Pe;Ce++)ee.push(new S([oe,me,0,0])),oe++}else ee.push(new S([oe,le,0,0])),oe++}Z.byteAlign();const ae=new E(ee,!1);let te=0,re,ie,de;switch(z.huffmanFS){case 0:case 1:re=y(z.huffmanFS+6);break;case 3:re=H(te,j,Y),te++;break;default:throw new N("invalid Huffman FS selector")}switch(z.huffmanDS){case 0:case 1:case 2:ie=y(z.huffmanDS+8);break;case 3:ie=H(te,j,Y),te++;break;default:throw new N("invalid Huffman DS selector")}switch(z.huffmanDT){case 0:case 1:case 2:de=y(z.huffmanDT+11);break;case 3:de=H(te,j,Y),te++;break;default:throw new N("invalid Huffman DT selector")}if(z.refinement)throw new N("refinement with Huffman is not supported");return{symbolIDTable:ae,tableFirstS:re,tableDeltaS:ie,tableDeltaT:de}}function B(z,j,Y){let K=0,Z,ee;switch(z.huffmanDHSelector){case 0:case 1:Z=y(z.huffmanDHSelector+4);break;case 3:Z=H(K,j,Y),K++;break;default:throw new N("invalid Huffman DH selector")}switch(z.huffmanDWSelector){case 0:case 1:ee=y(z.huffmanDWSelector+2);break;case 3:ee=H(K,j,Y),K++;break;default:throw new N("invalid Huffman DW selector")}let ne,ae;return z.bitmapSizeSelector?(ne=H(K,j,Y),K++):ne=y(1),z.aggregationInstancesSelector?ae=H(K,j,Y):ae=y(1),{tableDeltaHeight:Z,tableDeltaWidth:ee,tableBitmapSize:ne,tableAggregateInstances:ae}}function W(z,j,Y){const K=[];for(let Z=0;Z<Y;Z++){const ee=new Uint8Array(j);K.push(ee);for(let ne=0;ne<j;ne++)ee[ne]=z.readBit();z.byteAlign()}return K}function G(z,j,Y,K){const Z={K:-1,Columns:j,Rows:Y,BlackIs1:!0,EndOfBlock:K},ee=new e.CCITTFaxDecoder(z,Z),ne=[];let ae,te=!1;for(let re=0;re<Y;re++){const ie=new Uint8Array(j);ne.push(ie);let de=-1;for(let oe=0;oe<j;oe++)de<0&&(ae=ee.readNextChar(),ae===-1&&(ae=0,te=!0),de=7),ie[oe]=ae>>de&1,de--}if(K&&!te)for(let ie=0;ie<5&&ee.readNextChar()!==-1;ie++);return ne}function q(){}return q.prototype={parseChunks(z){return T(z)},parse(z){const{imgData:j,width:Y,height:K}=D(z);return this.width=Y,this.height=K,j}},q}();t.Jbig2Image=w},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.ArithmeticDecoder=void 0;const r=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}];class i{constructor(e,N,w){this.data=e,this.bp=N,this.dataEnd=w,this.chigh=e[N],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 e=this.data;let N=this.bp;e[N]===255?e[N+1]>143?(this.clow+=65280,this.ct=8):(N++,this.clow+=e[N]<<9,this.ct=7,this.bp=N):(N++,this.clow+=N<this.dataEnd?e[N]<<8:65280,this.ct=8,this.bp=N),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(e,N){let w=e[N]>>1,$=e[N]&1;const U=r[w],m=U.qe;let n,J=this.a-m;if(this.chigh<m)J<m?(J=m,n=$,w=U.nmps):(J=m,n=1^$,U.switchFlag===1&&($=n),w=U.nlps);else{if(this.chigh-=m,J&32768)return this.a=J,$;J<m?(n=1^$,U.switchFlag===1&&($=n),w=U.nlps):(n=$,w=U.nmps)}do this.ct===0&&this.byteIn(),J<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--;while(!(J&32768));return this.a=J,e[N]=w<<1|$,n}}t.ArithmeticDecoder=i},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.JpegStream=void 0;var r=a(2),i=a(11),p=a(4),e=a(18);const N=function(){function $(U,m,n,J){let O;for(;(O=U.getByte())!==-1;)if(O===255){U.skip(-1);break}this.stream=U,this.maybeLength=m,this.dict=n,this.params=J,i.DecodeStream.call(this,m)}return $.prototype=Object.create(i.DecodeStream.prototype),Object.defineProperty($.prototype,"bytes",{get:function(){return(0,r.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),$.prototype.ensureBuffer=function(U){},$.prototype.readBlock=function(){if(this.eof)return;const U={decodeTransform:void 0,colorTransform:void 0},m=this.dict.getArray("Decode","D");if(this.forceRGB&&Array.isArray(m)){const O=this.dict.get("BitsPerComponent")||8,L=m.length,M=new Int32Array(L);let P=!1;const b=(1<<O)-1;for(let _=0;_<L;_+=2)M[_]=(m[_+1]-m[_])*256|0,M[_+1]=m[_]*b|0,(M[_]!==256||M[_+1]!==0)&&(P=!0);P&&(U.decodeTransform=M)}if((0,p.isDict)(this.params)){const O=this.params.get("ColorTransform");Number.isInteger(O)&&(U.colorTransform=O)}const n=new e.JpegImage(U);n.parse(this.bytes);const J=n.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=J,this.bufferLength=J.length,this.eof=!0},Object.defineProperty($.prototype,"maybeValidDimensions",{get:function(){const{dict:m,stream:n}=this,J=m.get("Height","H"),O=n.pos;let L=!0,M=!1,P;for(;(P=n.getByte())!==-1;)if(P===255){switch(n.getByte()){case 192:case 193:case 194:M=!0,n.pos+=2,n.pos+=1;const b=n.getUint16();if(b===J)break;if(b===0){L=!1;break}if(b>J*10){L=!1;break}break;case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:M=!0;break;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:const _=n.getUint16();_>2?n.skip(_-2):n.skip(-2);break;case 255:n.skip(-1);break;case 217:M=!0;break}if(M)break}return n.pos=O,(0,r.shadow)(this,"maybeValidDimensions",L)},configurable:!0}),$.prototype.getIR=function(U=!1){return(0,r.createObjectURL)(this.bytes,"image/jpeg",U)},$}();t.JpegStream=N},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.JpegImage=void 0;var r=a(2),i=a(7);class p extends r.BaseException{constructor(U){super(`JPEG error: ${U}`)}}class e extends r.BaseException{constructor(U,m){super(U),this.scanLines=m}}class N extends r.BaseException{}var w=function(){var U=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]),m=4017,n=799,J=3406,O=2276,L=1567,M=3784,P=5793,b=2896;function _({decodeTransform:s=null,colorTransform:o=-1}={}){this._decodeTransform=s,this._colorTransform=o}function d(s,o){for(var u=0,l=[],F,T,D=16;D>0&&!s[D-1];)D--;l.push({children:[],index:0});var k=l[0],S;for(F=0;F<D;F++){for(T=0;T<s[F];T++){for(k=l.pop(),k.children[k.index]=o[u];k.index>0;)k=l.pop();for(k.index++,l.push(k);l.length<=F;)l.push(S={children:[],index:0}),k.children[k.index]=S.children,k=S;u++}F+1<D&&(l.push(S={children:[],index:0}),k.children[k.index]=S.children,k=S)}return l[0].children}function c(s,o,u){return 64*((s.blocksPerLine+1)*o+u)}function h(s,o,u,l,F,T,D,k,S,R=!1){var E=u.mcusPerLine,A=u.progressive,C=o,y=0,I=0;function H(){if(I>0)return I--,y>>I&1;if(y=s[o++],y===255){var se=s[o++];if(se){if(se===220&&R){o+=2;const pe=(0,i.readUint16)(s,o);if(o+=2,pe>0&&pe!==u.scanLines)throw new e("Found DNL marker (0xFFDC) while parsing scan data",pe)}else if(se===217){if(R){const pe=ne*8;if(pe>0&&pe<u.scanLines/10)throw new e("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",pe)}throw new N("Found EOI marker (0xFFD9) while parsing scan data")}throw new p(`unexpected marker ${(y<<8|se).toString(16)}`)}}return I=7,y>>>7}function V(se){for(var pe=se;;){switch(pe=pe[H()],typeof pe){case"number":return pe;case"object":continue}throw new p("invalid huffman sequence")}}function B(se){for(var pe=0;se>0;)pe=pe<<1|H(),se--;return pe}function W(se){if(se===1)return H()===1?1:-1;var pe=B(se);return pe>=1<<se-1?pe:pe+(-1<<se)+1}function G(se,pe){var we=V(se.huffmanTableDC),Te=we===0?0:W(we);se.blockData[pe]=se.pred+=Te;for(var ke=1;ke<64;){var Fe=V(se.huffmanTableAC),Le=Fe&15,he=Fe>>4;if(Le===0){if(he<15)break;ke+=16;continue}ke+=he;var Ee=U[ke];se.blockData[pe+Ee]=W(Le),ke++}}function q(se,pe){var we=V(se.huffmanTableDC),Te=we===0?0:W(we)<<S;se.blockData[pe]=se.pred+=Te}function z(se,pe){se.blockData[pe]|=H()<<S}var j=0;function Y(se,pe){if(j>0){j--;return}for(var we=T,Te=D;we<=Te;){var ke=V(se.huffmanTableAC),Fe=ke&15,Le=ke>>4;if(Fe===0){if(Le<15){j=B(Le)+(1<<Le)-1;break}we+=16;continue}we+=Le;var he=U[we];se.blockData[pe+he]=W(Fe)*(1<<S),we++}}var K=0,Z;function ee(se,pe){for(var we=T,Te=D,ke=0,Fe,Le;we<=Te;){const he=pe+U[we],Ee=se.blockData[he]<0?-1:1;switch(K){case 0:if(Le=V(se.huffmanTableAC),Fe=Le&15,ke=Le>>4,Fe===0)ke<15?(j=B(ke)+(1<<ke),K=4):(ke=16,K=1);else{if(Fe!==1)throw new p("invalid ACn encoding");Z=W(Fe),K=ke?2:3}continue;case 1:case 2:se.blockData[he]?se.blockData[he]+=Ee*(H()<<S):(ke--,ke===0&&(K=K===2?3:0));break;case 3:se.blockData[he]?se.blockData[he]+=Ee*(H()<<S):(se.blockData[he]=Z<<S,K=0);break;case 4:se.blockData[he]&&(se.blockData[he]+=Ee*(H()<<S));break}we++}K===4&&(j--,j===0&&(K=0))}let ne=0;function ae(se,pe,we,Te,ke){var Fe=we/E|0,Le=we%E;ne=Fe*se.v+Te;var he=Le*se.h+ke,Ee=c(se,ne,he);pe(se,Ee)}function te(se,pe,we){ne=we/se.blocksPerLine|0;var Te=we%se.blocksPerLine,ke=c(se,ne,Te);pe(se,ke)}var re=l.length,ie,de,oe,le,me,Pe;A?T===0?Pe=k===0?q:z:Pe=k===0?Y:ee:Pe=G;var Ce=0,xe,be;re===1?be=l[0].blocksPerLine*l[0].blocksPerColumn:be=E*u.mcusPerColumn;for(var Se,_e;Ce<be;){var ge=F?Math.min(be-Ce,F):be;for(de=0;de<re;de++)l[de].pred=0;if(j=0,re===1)for(ie=l[0],me=0;me<ge;me++)te(ie,Pe,Ce),Ce++;else for(me=0;me<ge;me++){for(de=0;de<re;de++)for(ie=l[de],Se=ie.h,_e=ie.v,oe=0;oe<_e;oe++)for(le=0;le<Se;le++)ae(ie,Pe,Ce,oe,le);Ce++}if(I=0,xe=v(s,o),xe)xe.invalid&&((0,r.warn)("decodeScan - unexpected MCU data, current marker is: "+xe.invalid),o=xe.offset);else break;var ue=xe&&xe.marker;if(!ue||ue<=65280)throw new p("decodeScan - a valid marker was not found.");if(ue>=65488&&ue<=65495)o+=2;else break}return xe=v(s,o),xe&&xe.invalid&&((0,r.warn)("decodeScan - unexpected Scan data, current marker is: "+xe.invalid),o=xe.offset),o-C}function f(s,o,u){var l=s.quantizationTable,F=s.blockData,T,D,k,S,R,E,A,C,y,I,H,V,B,W,G,q,z;if(!l)throw new p("missing required Quantization Table.");for(var j=0;j<64;j+=8){if(y=F[o+j],I=F[o+j+1],H=F[o+j+2],V=F[o+j+3],B=F[o+j+4],W=F[o+j+5],G=F[o+j+6],q=F[o+j+7],y*=l[j],!(I|H|V|B|W|G|q)){z=P*y+512>>10,u[j]=z,u[j+1]=z,u[j+2]=z,u[j+3]=z,u[j+4]=z,u[j+5]=z,u[j+6]=z,u[j+7]=z;continue}I*=l[j+1],H*=l[j+2],V*=l[j+3],B*=l[j+4],W*=l[j+5],G*=l[j+6],q*=l[j+7],T=P*y+128>>8,D=P*B+128>>8,k=H,S=G,R=b*(I-q)+128>>8,C=b*(I+q)+128>>8,E=V<<4,A=W<<4,T=T+D+1>>1,D=T-D,z=k*M+S*L+128>>8,k=k*L-S*M+128>>8,S=z,R=R+A+1>>1,A=R-A,C=C+E+1>>1,E=C-E,T=T+S+1>>1,S=T-S,D=D+k+1>>1,k=D-k,z=R*O+C*J+2048>>12,R=R*J-C*O+2048>>12,C=z,z=E*n+A*m+2048>>12,E=E*m-A*n+2048>>12,A=z,u[j]=T+C,u[j+7]=T-C,u[j+1]=D+A,u[j+6]=D-A,u[j+2]=k+E,u[j+5]=k-E,u[j+3]=S+R,u[j+4]=S-R}for(var Y=0;Y<8;++Y){if(y=u[Y],I=u[Y+8],H=u[Y+16],V=u[Y+24],B=u[Y+32],W=u[Y+40],G=u[Y+48],q=u[Y+56],!(I|H|V|B|W|G|q)){z=P*y+8192>>14,z<-2040?z=0:z>=2024?z=255:z=z+2056>>4,F[o+Y]=z,F[o+Y+8]=z,F[o+Y+16]=z,F[o+Y+24]=z,F[o+Y+32]=z,F[o+Y+40]=z,F[o+Y+48]=z,F[o+Y+56]=z;continue}T=P*y+2048>>12,D=P*B+2048>>12,k=H,S=G,R=b*(I-q)+2048>>12,C=b*(I+q)+2048>>12,E=V,A=W,T=(T+D+1>>1)+4112,D=T-D,z=k*M+S*L+2048>>12,k=k*L-S*M+2048>>12,S=z,R=R+A+1>>1,A=R-A,C=C+E+1>>1,E=C-E,T=T+S+1>>1,S=T-S,D=D+k+1>>1,k=D-k,z=R*O+C*J+2048>>12,R=R*J-C*O+2048>>12,C=z,z=E*n+A*m+2048>>12,E=E*m-A*n+2048>>12,A=z,y=T+C,q=T-C,I=D+A,G=D-A,H=k+E,W=k-E,V=S+R,B=S-R,y<16?y=0:y>=4080?y=255:y>>=4,I<16?I=0:I>=4080?I=255:I>>=4,H<16?H=0:H>=4080?H=255:H>>=4,V<16?V=0:V>=4080?V=255:V>>=4,B<16?B=0:B>=4080?B=255:B>>=4,W<16?W=0:W>=4080?W=255:W>>=4,G<16?G=0:G>=4080?G=255:G>>=4,q<16?q=0:q>=4080?q=255:q>>=4,F[o+Y]=y,F[o+Y+8]=I,F[o+Y+16]=H,F[o+Y+24]=V,F[o+Y+32]=B,F[o+Y+40]=W,F[o+Y+48]=G,F[o+Y+56]=q}}function g(s,o){for(var u=o.blocksPerLine,l=o.blocksPerColumn,F=new Int16Array(64),T=0;T<l;T++)for(var D=0;D<u;D++){var k=c(o,T,D);f(o,k,F)}return o.blockData}function v(s,o,u=o){const l=s.length-1;var F=u<o?u:o;if(o>=l)return null;var T=(0,i.readUint16)(s,o);if(T>=65472&&T<=65534)return{invalid:null,marker:T,offset:o};for(var D=(0,i.readUint16)(s,F);!(D>=65472&&D<=65534);){if(++F>=l)return null;D=(0,i.readUint16)(s,F)}return{invalid:T.toString(16),marker:D,offset:F}}return _.prototype={parse(s,{dnlScanLines:o=null}={}){function u(){const ue=(0,i.readUint16)(s,F);F+=2;let se=F+ue-2;var pe=v(s,se,F);pe&&pe.invalid&&((0,r.warn)("readDataBlock - incorrect length, current marker is: "+pe.invalid),se=pe.offset);var we=s.subarray(F,se);return F+=we.length,we}function l(ue){for(var se=Math.ceil(ue.samplesPerLine/8/ue.maxH),pe=Math.ceil(ue.scanLines/8/ue.maxV),we=0;we<ue.components.length;we++){me=ue.components[we];var Te=Math.ceil(Math.ceil(ue.samplesPerLine/8)*me.h/ue.maxH),ke=Math.ceil(Math.ceil(ue.scanLines/8)*me.v/ue.maxV),Fe=se*me.h,Le=pe*me.v,he=64*Le*(Fe+1);me.blockData=new Int16Array(he),me.blocksPerLine=Te,me.blocksPerColumn=ke}ue.mcusPerLine=se,ue.mcusPerColumn=pe}var F=0,T=null,D=null,k,S;let R=0;var E=[],A=[],C=[];let y=(0,i.readUint16)(s,F);if(F+=2,y!==65496)throw new p("SOI not found");y=(0,i.readUint16)(s,F),F+=2;e:for(;y!==65497;){var I,H,V;switch(y){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:var B=u();y===65504&&B[0]===74&&B[1]===70&&B[2]===73&&B[3]===70&&B[4]===0&&(T={version:{major:B[5],minor:B[6]},densityUnits:B[7],xDensity:B[8]<<8|B[9],yDensity:B[10]<<8|B[11],thumbWidth:B[12],thumbHeight:B[13],thumbData:B.subarray(14,14+3*B[12]*B[13])}),y===65518&&B[0]===65&&B[1]===100&&B[2]===111&&B[3]===98&&B[4]===101&&(D={version:B[5]<<8|B[6],flags0:B[7]<<8|B[8],flags1:B[9]<<8|B[10],transformCode:B[11]});break;case 65499:const ue=(0,i.readUint16)(s,F);F+=2;for(var W=ue+F-2,G;F<W;){var q=s[F++],z=new Uint16Array(64);if(q>>4)if(q>>4===1)for(H=0;H<64;H++)G=U[H],z[G]=(0,i.readUint16)(s,F),F+=2;else throw new p("DQT - invalid table spec");else for(H=0;H<64;H++)G=U[H],z[G]=s[F++];E[q&15]=z}break;case 65472:case 65473:case 65474:if(k)throw new p("Only single frame JPEGs supported");F+=2,k={},k.extended=y===65473,k.progressive=y===65474,k.precision=s[F++];const se=(0,i.readUint16)(s,F);F+=2,k.scanLines=o||se,k.samplesPerLine=(0,i.readUint16)(s,F),F+=2,k.components=[],k.componentIds={};var j=s[F++],Y,K=0,Z=0;for(I=0;I<j;I++){Y=s[F];var ee=s[F+1]>>4,ne=s[F+1]&15;K<ee&&(K=ee),Z<ne&&(Z=ne);var ae=s[F+2];V=k.components.push({h:ee,v:ne,quantizationId:ae,quantizationTable:null}),k.componentIds[Y]=V-1,F+=3}k.maxH=K,k.maxV=Z,l(k);break;case 65476:const pe=(0,i.readUint16)(s,F);for(F+=2,I=2;I<pe;){var te=s[F++],re=new Uint8Array(16),ie=0;for(H=0;H<16;H++,F++)ie+=re[H]=s[F];var de=new Uint8Array(ie);for(H=0;H<ie;H++,F++)de[H]=s[F];I+=17+ie,(te>>4?A:C)[te&15]=d(re,de)}break;case 65501:F+=2,S=(0,i.readUint16)(s,F),F+=2;break;case 65498:const we=++R===1&&!o;F+=2;var oe=s[F++],le=[],me;for(I=0;I<oe;I++){var Pe=k.componentIds[s[F++]];me=k.components[Pe];var Ce=s[F++];me.huffmanTableDC=C[Ce>>4],me.huffmanTableAC=A[Ce&15],le.push(me)}var xe=s[F++],be=s[F++],Se=s[F++];try{var _e=h(s,F,k,le,S,xe,be,Se>>4,Se&15,we);F+=_e}catch(ke){if(ke instanceof e)return(0,r.warn)(`${ke.message} -- attempting to re-parse the JPEG image.`),this.parse(s,{dnlScanLines:ke.scanLines});if(ke instanceof N){(0,r.warn)(`${ke.message} -- ignoring the rest of the image data.`);break e}throw ke}break;case 65500:F+=4;break;case 65535:s[F]!==255&&F--;break;default:const Te=v(s,F-2,F-3);if(Te&&Te.invalid){(0,r.warn)("JpegImage.parse - unexpected data, current marker is: "+Te.invalid),F=Te.offset;break}if(F>=s.length-1){(0,r.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new p("JpegImage.parse - unknown marker: "+y.toString(16))}y=(0,i.readUint16)(s,F),F+=2}for(this.width=k.samplesPerLine,this.height=k.scanLines,this.jfif=T,this.adobe=D,this.components=[],I=0;I<k.components.length;I++){me=k.components[I];var ge=E[me.quantizationId];ge&&(me.quantizationTable=ge),this.components.push({output:g(k,me),scaleX:me.h/k.maxH,scaleY:me.v/k.maxV,blocksPerLine:me.blocksPerLine,blocksPerColumn:me.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData(s,o,u=!1){var l=this.width/s,F=this.height/o,T,D,k,S,R,E,A,C,y,I,H=0,V,B=this.components.length,W=s*o*B,G=new Uint8ClampedArray(W),q=new Uint32Array(s),z=4294967288;let j;for(A=0;A<B;A++){if(T=this.components[A],D=T.scaleX*l,k=T.scaleY*F,H=A,V=T.output,S=T.blocksPerLine+1<<3,D!==j){for(R=0;R<s;R++)C=0|R*D,q[R]=(C&z)<<3|C&7;j=D}for(E=0;E<o;E++)for(C=0|E*k,I=S*(C&z)|(C&7)<<3,R=0;R<s;R++)G[H]=V[I+q[R]],H+=B}let Y=this._decodeTransform;if(!u&&B===4&&!Y&&(Y=new Int32Array([-256,255,-256,255,-256,255,-256,255])),Y)for(A=0;A<W;)for(C=0,y=0;C<B;C++,A++,y+=2)G[A]=(G[A]*Y[y]>>8)+Y[y+1];return G},get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:this.numComponents===3?this._colorTransform!==0:this._colorTransform===1},_convertYccToRgb:function(o){for(var u,l,F,T=0,D=o.length;T<D;T+=3)u=o[T],l=o[T+1],F=o[T+2],o[T]=u-179.456+1.402*F,o[T+1]=u+135.459-.344*l-.714*F,o[T+2]=u-226.816+1.772*l;return o},_convertYcckToRgb:function(o){for(var u,l,F,T,D=0,k=0,S=o.length;k<S;k+=4)u=o[k],l=o[k+1],F=o[k+2],T=o[k+3],o[D++]=-122.67195406894+l*(-660635669420364e-19*l+.000437130475926232*F-54080610064599e-18*u+.00048449797120281*T-.154362151871126)+F*(-.000957964378445773*F+.000817076911346625*u-.00477271405408747*T+1.53380253221734)+u*(.000961250184130688*u-.00266257332283933*T+.48357088451265)+T*(-.000336197177618394*T+.484791561490776),o[D++]=107.268039397724+l*(219927104525741e-19*l-.000640992018297945*F+.000659397001245577*u+.000426105652938837*T-.176491792462875)+F*(-.000778269941513683*F+.00130872261408275*u+.000770482631801132*T-.151051492775562)+u*(.00126935368114843*u-.00265090189010898*T+.25802910206845)+T*(-.000318913117588328*T-.213742400323665),o[D++]=-20.810012546947+l*(-.000570115196973677*l-263409051004589e-19*F+.0020741088115012*u-.00288260236853442*T+.814272968359295)+F*(-153496057440975e-19*F-.000132689043961446*u+.000560833691242812*T-.195152027534049)+u*(.00174418132927582*u-.00255243321439347*T+.116935020465145)+T*(-.000343531996510555*T+.24165260232407);return o.subarray(0,D)},_convertYcckToCmyk:function(o){for(var u,l,F,T=0,D=o.length;T<D;T+=4)u=o[T],l=o[T+1],F=o[T+2],o[T]=434.456-u-1.402*F,o[T+1]=119.541-u+.344*l+.714*F,o[T+2]=481.816-u-1.772*l;return o},_convertCmykToRgb:function(o){for(var u,l,F,T,D=0,k=0,S=o.length;k<S;k+=4)u=o[k],l=o[k+1],F=o[k+2],T=o[k+3],o[D++]=255+u*(-6747147073602441e-20*u+.0008379262121013727*l+.0002894718188643294*F+.003264231057537806*T-1.1185611867203937)+l*(26374107616089405e-21*l-8626949158638572e-20*F-.0002748769067499491*T-.02155688794978967)+F*(-3878099212869363e-20*F-.0003267808279485286*T+.0686742238595345)-T*(.0003361971776183937*T+.7430659151342254),o[D++]=255+u*(.00013596372813588848*u+.000924537132573585*l+.00010567359618683593*F+.0004791864687436512*T-.3109689587515875)+l*(-.00023545346108370344*l+.0002702845253534714*F+.0020200308977307156*T-.7488052167015494)+F*(6834815998235662e-20*F+.00015168452363460973*T-.09751927774728933)-T*(.0003189131175883281*T+.7364883807733168),o[D++]=255+u*(13598650411385307e-21*u+.00012423956175490851*l+.0004751985097583589*F-36729317476630422e-22*T-.05562186980264034)+l*(.00016141380598724676*l+.0009692239130725186*F+.0007782692450036253*T-.44015232367526463)+F*(5068882914068769e-22*F+.0017778369011375071*T-.7591454649749609)-T*(.0003435319965105553*T+.7063770186160144);return o.subarray(0,D)},getData({width:s,height:o,forceRGB:u=!1,isSourcePDF:l=!1}){if(this.numComponents>4)throw new p("Unsupported color mode");var F=this._getLinearizedBlockData(s,o,l);if(this.numComponents===1&&u){for(var T=F.length,D=new Uint8ClampedArray(T*3),k=0,S=0;S<T;S++){var R=F[S];D[k++]=R,D[k++]=R,D[k++]=R}return D}else{if(this.numComponents===3&&this._isColorConversionNeeded)return this._convertYccToRgb(F);if(this.numComponents===4){if(this._isColorConversionNeeded)return u?this._convertYcckToRgb(F):this._convertYcckToCmyk(F);if(u)return this._convertCmykToRgb(F)}}return F}},_}();t.JpegImage=w},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.JpxStream=void 0;var r=a(11),i=a(20),p=a(2);const e=function(){function w($,U,m,n){this.stream=$,this.maybeLength=U,this.dict=m,this.params=n,r.DecodeStream.call(this,U)}return w.prototype=Object.create(r.DecodeStream.prototype),Object.defineProperty(w.prototype,"bytes",{get:function(){return(0,p.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),w.prototype.ensureBuffer=function($){},w.prototype.readBlock=function(){if(this.eof)return;const $=new i.JpxImage;$.parse(this.bytes);const U=$.width,m=$.height,n=$.componentsCount,J=$.tiles.length;if(J===1)this.buffer=$.tiles[0].items;else{const O=new Uint8ClampedArray(U*m*n);for(let L=0;L<J;L++){const M=$.tiles[L],P=M.width,b=M.height,_=M.left,d=M.top,c=M.items;let h=0,f=(U*d+_)*n;const g=U*n,v=P*n;for(let s=0;s<b;s++){const o=c.subarray(h,h+v);O.set(o,f),h+=v,f+=g}}this.buffer=O}this.bufferLength=this.buffer.length,this.eof=!0},w}();t.JpxStream=e},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.JpxImage=void 0;var r=a(2),i=a(7),p=a(16);class e extends r.BaseException{constructor($){super(`JPX error: ${$}`)}}var N=function(){var $={LL:0,LH:1,HL:1,HH:2};function U(){this.failOnCorruptedImage=!1}U.prototype={parse:function(A){var C=(0,i.readUint16)(A,0);if(C===65359){this.parseCodestream(A,0,A.length);return}for(var y=0,I=A.length;y<I;){var H=8,V=(0,i.readUint32)(A,y),B=(0,i.readUint32)(A,y+4);if(y+=H,V===1&&(V=(0,i.readUint32)(A,y)*4294967296+(0,i.readUint32)(A,y+4),y+=8,H+=8),V===0&&(V=I-y+H),V<H)throw new e("Invalid box field size");var W=V-H,G=!0;switch(B){case 1785737832:G=!1;break;case 1668246642:var q=A[y];if(q===1){var z=(0,i.readUint32)(A,y+3);switch(z){case 16:case 17:case 18:break;default:(0,r.warn)("Unknown colorspace "+z);break}}else q===2&&(0,r.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(A,y,y+W);break;case 1783636e3:(0,i.readUint32)(A,y)!==218793738&&(0,r.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:var j=String.fromCharCode(B>>24&255,B>>16&255,B>>8&255,B&255);(0,r.warn)("Unsupported header type "+B+" ("+j+")");break}G&&(y+=W)}},parseImageProperties:function(A){for(var C=A.getByte();C>=0;){var y=C;C=A.getByte();var I=y<<8|C;if(I===65361){A.skip(4);var H=A.getInt32()>>>0,V=A.getInt32()>>>0,B=A.getInt32()>>>0,W=A.getInt32()>>>0;A.skip(16);var G=A.getUint16();this.width=H-B,this.height=V-W,this.componentsCount=G,this.bitsPerComponent=8;return}}throw new e("No size marker found in JPX stream")},parseCodestream:function(A,C,y){var I={},H=!1;try{for(var V=C;V+1<y;){var B=(0,i.readUint16)(A,V);V+=2;var W=0,G,q,z,j,Y,K;switch(B){case 65359:I.mainHeader=!0;break;case 65497:break;case 65361:W=(0,i.readUint16)(A,V);var Z={};Z.Xsiz=(0,i.readUint32)(A,V+4),Z.Ysiz=(0,i.readUint32)(A,V+8),Z.XOsiz=(0,i.readUint32)(A,V+12),Z.YOsiz=(0,i.readUint32)(A,V+16),Z.XTsiz=(0,i.readUint32)(A,V+20),Z.YTsiz=(0,i.readUint32)(A,V+24),Z.XTOsiz=(0,i.readUint32)(A,V+28),Z.YTOsiz=(0,i.readUint32)(A,V+32);var ee=(0,i.readUint16)(A,V+36);Z.Csiz=ee;var ne=[];G=V+38;for(var ae=0;ae<ee;ae++){var te={precision:(A[G]&127)+1,isSigned:!!(A[G]&128),XRsiz:A[G+1],YRsiz:A[G+2]};G+=3,m(te,Z),ne.push(te)}I.SIZ=Z,I.components=ne,n(I,ne),I.QCC=[],I.COC=[];break;case 65372:W=(0,i.readUint16)(A,V);var re={};switch(G=V+2,q=A[G++],q&31){case 0:j=8,Y=!0;break;case 1:j=16,Y=!1;break;case 2:j=16,Y=!0;break;default:throw new Error("Invalid SQcd value "+q)}for(re.noQuantization=j===8,re.scalarExpounded=Y,re.guardBits=q>>5,z=[];G<W+V;){var ie={};j===8?(ie.epsilon=A[G++]>>3,ie.mu=0):(ie.epsilon=A[G]>>3,ie.mu=(A[G]&7)<<8|A[G+1],G+=2),z.push(ie)}re.SPqcds=z,I.mainHeader?I.QCD=re:(I.currentTile.QCD=re,I.currentTile.QCC=[]);break;case 65373:W=(0,i.readUint16)(A,V);var de={};G=V+2;var oe;switch(I.SIZ.Csiz<257?oe=A[G++]:(oe=(0,i.readUint16)(A,G),G+=2),q=A[G++],q&31){case 0:j=8,Y=!0;break;case 1:j=16,Y=!1;break;case 2:j=16,Y=!0;break;default:throw new Error("Invalid SQcd value "+q)}for(de.noQuantization=j===8,de.scalarExpounded=Y,de.guardBits=q>>5,z=[];G<W+V;)ie={},j===8?(ie.epsilon=A[G++]>>3,ie.mu=0):(ie.epsilon=A[G]>>3,ie.mu=(A[G]&7)<<8|A[G+1],G+=2),z.push(ie);de.SPqcds=z,I.mainHeader?I.QCC[oe]=de:I.currentTile.QCC[oe]=de;break;case 65362:W=(0,i.readUint16)(A,V);var le={};G=V+2;var me=A[G++];le.entropyCoderWithCustomPrecincts=!!(me&1),le.sopMarkerUsed=!!(me&2),le.ephMarkerUsed=!!(me&4),le.progressionOrder=A[G++],le.layersCount=(0,i.readUint16)(A,G),G+=2,le.multipleComponentTransform=A[G++],le.decompositionLevelsCount=A[G++],le.xcb=(A[G++]&15)+2,le.ycb=(A[G++]&15)+2;var Pe=A[G++];if(le.selectiveArithmeticCodingBypass=!!(Pe&1),le.resetContextProbabilities=!!(Pe&2),le.terminationOnEachCodingPass=!!(Pe&4),le.verticallyStripe=!!(Pe&8),le.predictableTermination=!!(Pe&16),le.segmentationSymbolUsed=!!(Pe&32),le.reversibleTransformation=A[G++],le.entropyCoderWithCustomPrecincts){for(var Ce=[];G<W+V;){var xe=A[G++];Ce.push({PPx:xe&15,PPy:xe>>4})}le.precinctsSizes=Ce}var be=[];if(le.selectiveArithmeticCodingBypass&&be.push("selectiveArithmeticCodingBypass"),le.resetContextProbabilities&&be.push("resetContextProbabilities"),le.terminationOnEachCodingPass&&be.push("terminationOnEachCodingPass"),le.verticallyStripe&&be.push("verticallyStripe"),le.predictableTermination&&be.push("predictableTermination"),be.length>0)throw H=!0,new Error("Unsupported COD options ("+be.join(", ")+")");I.mainHeader?I.COD=le:(I.currentTile.COD=le,I.currentTile.COC=[]);break;case 65424:W=(0,i.readUint16)(A,V),K={},K.index=(0,i.readUint16)(A,V+2),K.length=(0,i.readUint32)(A,V+4),K.dataEnd=K.length+V-2,K.partIndex=A[V+8],K.partsCount=A[V+9],I.mainHeader=!1,K.partIndex===0&&(K.COD=I.COD,K.COC=I.COC.slice(0),K.QCD=I.QCD,K.QCC=I.QCC.slice(0)),I.currentTile=K;break;case 65427:K=I.currentTile,K.partIndex===0&&(l(I,K.index),g(I)),W=K.dataEnd-V,v(I,A,V,W);break;case 65365:case 65367:case 65368:case 65380:W=(0,i.readUint16)(A,V);break;case 65363:throw new Error("Codestream code 0xFF53 (COC) is not implemented");default:throw new Error("Unknown codestream code: "+B.toString(16))}V+=W}}catch(Se){if(H||this.failOnCorruptedImage)throw new e(Se.message);(0,r.warn)("JPX: Trying to recover from: "+Se.message)}this.tiles=u(I),this.width=I.SIZ.Xsiz-I.SIZ.XOsiz,this.height=I.SIZ.Ysiz-I.SIZ.YOsiz,this.componentsCount=I.SIZ.Csiz}};function m(E,A){E.x0=Math.ceil(A.XOsiz/E.XRsiz),E.x1=Math.ceil(A.Xsiz/E.XRsiz),E.y0=Math.ceil(A.YOsiz/E.YRsiz),E.y1=Math.ceil(A.Ysiz/E.YRsiz),E.width=E.x1-E.x0,E.height=E.y1-E.y0}function n(E,A){for(var C=E.SIZ,y,I=[],H=Math.ceil((C.Xsiz-C.XTOsiz)/C.XTsiz),V=Math.ceil((C.Ysiz-C.YTOsiz)/C.YTsiz),B=0;B<V;B++)for(var W=0;W<H;W++)y={},y.tx0=Math.max(C.XTOsiz+W*C.XTsiz,C.XOsiz),y.ty0=Math.max(C.YTOsiz+B*C.YTsiz,C.YOsiz),y.tx1=Math.min(C.XTOsiz+(W+1)*C.XTsiz,C.Xsiz),y.ty1=Math.min(C.YTOsiz+(B+1)*C.YTsiz,C.Ysiz),y.width=y.tx1-y.tx0,y.height=y.ty1-y.ty0,y.components=[],I.push(y);E.tiles=I;for(var G=C.Csiz,q=0,z=G;q<z;q++)for(var j=A[q],Y=0,K=I.length;Y<K;Y++){var Z={};y=I[Y],Z.tcx0=Math.ceil(y.tx0/j.XRsiz),Z.tcy0=Math.ceil(y.ty0/j.YRsiz),Z.tcx1=Math.ceil(y.tx1/j.XRsiz),Z.tcy1=Math.ceil(y.ty1/j.YRsiz),Z.width=Z.tcx1-Z.tcx0,Z.height=Z.tcy1-Z.tcy0,y.components[q]=Z}}function J(E,A,C){var y=A.codingStyleParameters,I={};return y.entropyCoderWithCustomPrecincts?(I.PPx=y.precinctsSizes[C].PPx,I.PPy=y.precinctsSizes[C].PPy):(I.PPx=15,I.PPy=15),I.xcb_=C>0?Math.min(y.xcb,I.PPx-1):Math.min(y.xcb,I.PPx),I.ycb_=C>0?Math.min(y.ycb,I.PPy-1):Math.min(y.ycb,I.PPy),I}function O(E,A,C){var y=1<<C.PPx,I=1<<C.PPy,H=A.resLevel===0,V=1<<C.PPx+(H?0:-1),B=1<<C.PPy+(H?0:-1),W=A.trx1>A.trx0?Math.ceil(A.trx1/y)-Math.floor(A.trx0/y):0,G=A.try1>A.try0?Math.ceil(A.try1/I)-Math.floor(A.try0/I):0,q=W*G;A.precinctParameters={precinctWidth:y,precinctHeight:I,numprecinctswide:W,numprecinctshigh:G,numprecincts:q,precinctWidthInSubband:V,precinctHeightInSubband:B}}function L(E,A,C){var y=C.xcb_,I=C.ycb_,H=1<<y,V=1<<I,B=A.tbx0>>y,W=A.tby0>>I,G=A.tbx1+H-1>>y,q=A.tby1+V-1>>I,z=A.resolution.precinctParameters,j=[],Y=[],K,Z,ee,ne;for(Z=W;Z<q;Z++)for(K=B;K<G;K++){ee={cbx:K,cby:Z,tbx0:H*K,tby0:V*Z,tbx1:H*(K+1),tby1:V*(Z+1)},ee.tbx0_=Math.max(A.tbx0,ee.tbx0),ee.tby0_=Math.max(A.tby0,ee.tby0),ee.tbx1_=Math.min(A.tbx1,ee.tbx1),ee.tby1_=Math.min(A.tby1,ee.tby1);var ae=Math.floor((ee.tbx0_-A.tbx0)/z.precinctWidthInSubband),te=Math.floor((ee.tby0_-A.tby0)/z.precinctHeightInSubband);if(ne=ae+te*z.numprecinctswide,ee.precinctNumber=ne,ee.subbandType=A.type,ee.Lblock=3,!(ee.tbx1_<=ee.tbx0_||ee.tby1_<=ee.tby0_)){j.push(ee);var re=Y[ne];re!==void 0?(K<re.cbxMin?re.cbxMin=K:K>re.cbxMax&&(re.cbxMax=K),Z<re.cbyMin?re.cbxMin=Z:Z>re.cbyMax&&(re.cbyMax=Z)):Y[ne]=re={cbxMin:K,cbyMin:Z,cbxMax:K,cbyMax:Z},ee.precinct=re}}A.codeblockParameters={codeblockWidth:y,codeblockHeight:I,numcodeblockwide:G-B+1,numcodeblockhigh:q-W+1},A.codeblocks=j,A.precincts=Y}function M(E,A,C){for(var y=[],I=E.subbands,H=0,V=I.length;H<V;H++)for(var B=I[H],W=B.codeblocks,G=0,q=W.length;G<q;G++){var z=W[G];z.precinctNumber===A&&y.push(z)}return{layerNumber:C,codeblocks:y}}function P(E){for(var A=E.SIZ,C=E.currentTile.index,y=E.tiles[C],I=y.codingStyleDefaultParameters.layersCount,H=A.Csiz,V=0,B=0;B<H;B++)V=Math.max(V,y.components[B].codingStyleParameters.decompositionLevelsCount);var W=0,G=0,q=0,z=0;this.nextPacket=function(){for(;W<I;W++){for(;G<=V;G++){for(;q<H;q++){var Y=y.components[q];if(!(G>Y.codingStyleParameters.decompositionLevelsCount)){for(var K=Y.resolutions[G],Z=K.precinctParameters.numprecincts;z<Z;){var ee=M(K,z,W);return z++,ee}z=0}}q=0}G=0}throw new e("Out of packets")}}function b(E){for(var A=E.SIZ,C=E.currentTile.index,y=E.tiles[C],I=y.codingStyleDefaultParameters.layersCount,H=A.Csiz,V=0,B=0;B<H;B++)V=Math.max(V,y.components[B].codingStyleParameters.decompositionLevelsCount);var W=0,G=0,q=0,z=0;this.nextPacket=function(){for(;W<=V;W++){for(;G<I;G++){for(;q<H;q++){var Y=y.components[q];if(!(W>Y.codingStyleParameters.decompositionLevelsCount)){for(var K=Y.resolutions[W],Z=K.precinctParameters.numprecincts;z<Z;){var ee=M(K,z,G);return z++,ee}z=0}}q=0}G=0}throw new e("Out of packets")}}function _(E){var A=E.SIZ,C=E.currentTile.index,y=E.tiles[C],I=y.codingStyleDefaultParameters.layersCount,H=A.Csiz,V,B,W,G,q=0;for(W=0;W<H;W++){var z=y.components[W];q=Math.max(q,z.codingStyleParameters.decompositionLevelsCount)}var j=new Int32Array(q+1);for(B=0;B<=q;++B){var Y=0;for(W=0;W<H;++W){var K=y.components[W].resolutions;B<K.length&&(Y=Math.max(Y,K[B].precinctParameters.numprecincts))}j[B]=Y}V=0,B=0,W=0,G=0,this.nextPacket=function(){for(;B<=q;B++){for(;G<j[B];G++){for(;W<H;W++){var ee=y.components[W];if(!(B>ee.codingStyleParameters.decompositionLevelsCount)){var ne=ee.resolutions[B],ae=ne.precinctParameters.numprecincts;if(!(G>=ae)){for(;V<I;){var te=M(ne,G,V);return V++,te}V=0}}}W=0}G=0}throw new e("Out of packets")}}function d(E){var A=E.SIZ,C=E.currentTile.index,y=E.tiles[C],I=y.codingStyleDefaultParameters.layersCount,H=A.Csiz,V=f(y),B=V,W=0,G=0,q=0,z=0,j=0;this.nextPacket=function(){for(;j<B.maxNumHigh;j++){for(;z<B.maxNumWide;z++){for(;q<H;q++){for(var K=y.components[q],Z=K.codingStyleParameters.decompositionLevelsCount;G<=Z;G++){var ee=K.resolutions[G],ne=V.components[q].resolutions[G],ae=h(z,j,ne,B,ee);if(ae!==null){for(;W<I;){var te=M(ee,ae,W);return W++,te}W=0}}G=0}q=0}z=0}throw new e("Out of packets")}}function c(E){var A=E.SIZ,C=E.currentTile.index,y=E.tiles[C],I=y.codingStyleDefaultParameters.layersCount,H=A.Csiz,V=f(y),B=0,W=0,G=0,q=0,z=0;this.nextPacket=function(){for(;G<H;++G){for(var Y=y.components[G],K=V.components[G],Z=Y.codingStyleParameters.decompositionLevelsCount;z<K.maxNumHigh;z++){for(;q<K.maxNumWide;q++){for(;W<=Z;W++){var ee=Y.resolutions[W],ne=K.resolutions[W],ae=h(q,z,ne,K,ee);if(ae!==null){for(;B<I;){var te=M(ee,ae,B);return B++,te}B=0}}W=0}q=0}z=0}throw new e("Out of packets")}}function h(E,A,C,y,I){var H=E*y.minWidth,V=A*y.minHeight;if(H%C.width!==0||V%C.height!==0)return null;var B=V/C.width*I.precinctParameters.numprecinctswide;return H/C.height+B}function f(E){for(var A=E.components.length,C=Number.MAX_VALUE,y=Number.MAX_VALUE,I=0,H=0,V=new Array(A),B=0;B<A;B++){for(var W=E.components[B],G=W.codingStyleParameters.decompositionLevelsCount,q=new Array(G+1),z=Number.MAX_VALUE,j=Number.MAX_VALUE,Y=0,K=0,Z=1,ee=G;ee>=0;--ee){var ne=W.resolutions[ee],ae=Z*ne.precinctParameters.precinctWidth,te=Z*ne.precinctParameters.precinctHeight;z=Math.min(z,ae),j=Math.min(j,te),Y=Math.max(Y,ne.precinctParameters.numprecinctswide),K=Math.max(K,ne.precinctParameters.numprecinctshigh),q[ee]={width:ae,height:te},Z<<=1}C=Math.min(C,z),y=Math.min(y,j),I=Math.max(I,Y),H=Math.max(H,K),V[B]={resolutions:q,minWidth:z,minHeight:j,maxNumWide:Y,maxNumHigh:K}}return{components:V,minWidth:C,minHeight:y,maxNumWide:I,maxNumHigh:H}}function g(E){for(var A=E.SIZ,C=E.currentTile.index,y=E.tiles[C],I=A.Csiz,H=0;H<I;H++){for(var V=y.components[H],B=V.codingStyleParameters.decompositionLevelsCount,W=[],G=[],q=0;q<=B;q++){var z=J(E,V,q),j={},Y=1<<B-q;j.trx0=Math.ceil(V.tcx0/Y),j.try0=Math.ceil(V.tcy0/Y),j.trx1=Math.ceil(V.tcx1/Y),j.try1=Math.ceil(V.tcy1/Y),j.resLevel=q,O(E,j,z),W.push(j);var K;if(q===0)K={},K.type="LL",K.tbx0=Math.ceil(V.tcx0/Y),K.tby0=Math.ceil(V.tcy0/Y),K.tbx1=Math.ceil(V.tcx1/Y),K.tby1=Math.ceil(V.tcy1/Y),K.resolution=j,L(E,K,z),G.push(K),j.subbands=[K];else{var Z=1<<B-q+1,ee=[];K={},K.type="HL",K.tbx0=Math.ceil(V.tcx0/Z-.5),K.tby0=Math.ceil(V.tcy0/Z),K.tbx1=Math.ceil(V.tcx1/Z-.5),K.tby1=Math.ceil(V.tcy1/Z),K.resolution=j,L(E,K,z),G.push(K),ee.push(K),K={},K.type="LH",K.tbx0=Math.ceil(V.tcx0/Z),K.tby0=Math.ceil(V.tcy0/Z-.5),K.tbx1=Math.ceil(V.tcx1/Z),K.tby1=Math.ceil(V.tcy1/Z-.5),K.resolution=j,L(E,K,z),G.push(K),ee.push(K),K={},K.type="HH",K.tbx0=Math.ceil(V.tcx0/Z-.5),K.tby0=Math.ceil(V.tcy0/Z-.5),K.tbx1=Math.ceil(V.tcx1/Z-.5),K.tby1=Math.ceil(V.tcy1/Z-.5),K.resolution=j,L(E,K,z),G.push(K),ee.push(K),j.subbands=ee}}V.resolutions=W,V.subbands=G}var ne=y.codingStyleDefaultParameters.progressionOrder;switch(ne){case 0:y.packetsIterator=new P(E);break;case 1:y.packetsIterator=new b(E);break;case 2:y.packetsIterator=new _(E);break;case 3:y.packetsIterator=new d(E);break;case 4:y.packetsIterator=new c(E);break;default:throw new e(`Unsupported progression order ${ne}`)}}function v(E,A,C,y){var I=0,H,V=0,B=!1;function W(Fe){for(;V<Fe;){var Le=A[C+I];I++,B?(H=H<<7|Le,V+=7,B=!1):(H=H<<8|Le,V+=8),Le===255&&(B=!0)}return V-=Fe,H>>>V&(1<<Fe)-1}function G(Fe){return A[C+I-1]===255&&A[C+I]===Fe?(q(1),!0):A[C+I]===255&&A[C+I+1]===Fe?(q(2),!0):!1}function q(Fe){I+=Fe}function z(){V=0,B&&(I++,B=!1)}function j(){if(W(1)===0)return 1;if(W(1)===0)return 2;var Fe=W(2);return Fe<3?Fe+3:(Fe=W(5),Fe<31?Fe+6:(Fe=W(7),Fe+37))}for(var Y=E.currentTile.index,K=E.tiles[Y],Z=E.COD.sopMarkerUsed,ee=E.COD.ephMarkerUsed,ne=K.packetsIterator;I<y;){z(),Z&&G(145)&&q(4);var ae=ne.nextPacket();if(W(1)){for(var te=ae.layerNumber,re=[],ie,de=0,oe=ae.codeblocks.length;de<oe;de++){ie=ae.codeblocks[de];var le=ie.precinct,me=ie.cbx-le.cbxMin,Pe=ie.cby-le.cbyMin,Ce=!1,xe=!1,be;if(ie.included!==void 0)Ce=!!W(1);else{le=ie.precinct;var Se,_e;if(le.inclusionTree!==void 0)Se=le.inclusionTree;else{var ge=le.cbxMax-le.cbxMin+1,ue=le.cbyMax-le.cbyMin+1;Se=new T(ge,ue,te),_e=new F(ge,ue),le.inclusionTree=Se,le.zeroBitPlanesTree=_e}if(Se.reset(me,Pe,te))for(;;)if(W(1)){if(be=!Se.nextLevel(),be){ie.included=!0,Ce=xe=!0;break}}else{Se.incrementValue(te);break}}if(Ce){if(xe){for(_e=le.zeroBitPlanesTree,_e.reset(me,Pe);;)if(W(1)){if(be=!_e.nextLevel(),be)break}else _e.incrementValue();ie.zeroBitPlanes=_e.value}for(var se=j();W(1);)ie.Lblock++;var pe=(0,i.log2)(se),we=(se<1<<pe?pe-1:pe)+ie.Lblock,Te=W(we);re.push({codeblock:ie,codingpasses:se,dataLength:Te})}}for(z(),ee&&G(146);re.length>0;){var ke=re.shift();ie=ke.codeblock,ie.data===void 0&&(ie.data=[]),ie.data.push({data:A,start:C+I,end:C+I+ke.dataLength,codingpasses:ke.codingpasses}),I+=ke.dataLength}}}return I}function s(E,A,C,y,I,H,V,B){for(var W=y.tbx0,G=y.tby0,q=y.tbx1-y.tbx0,z=y.codeblocks,j=y.type.charAt(0)==="H"?1:0,Y=y.type.charAt(1)==="H"?A:0,K=0,Z=z.length;K<Z;++K){var ee=z[K],ne=ee.tbx1_-ee.tbx0_,ae=ee.tby1_-ee.tby0_;if(!(ne===0||ae===0)&&ee.data!==void 0){var te,re;te=new D(ne,ae,ee.subbandType,ee.zeroBitPlanes,H),re=2;var ie=ee.data,de=0,oe=0,le,me,Pe;for(le=0,me=ie.length;le<me;le++)Pe=ie[le],de+=Pe.end-Pe.start,oe+=Pe.codingpasses;var Ce=new Uint8Array(de),xe=0;for(le=0,me=ie.length;le<me;le++){Pe=ie[le];var be=Pe.data.subarray(Pe.start,Pe.end);Ce.set(be,xe),xe+=be.length}var Se=new p.ArithmeticDecoder(Ce,0,de);for(te.setDecoder(Se),le=0;le<oe;le++){switch(re){case 0:te.runSignificancePropagationPass();break;case 1:te.runMagnitudeRefinementPass();break;case 2:te.runCleanupPass(),B&&te.checkSegmentationSymbol();break}re=(re+1)%3}var _e=ee.tbx0_-W+(ee.tby0_-G)*q,ge=te.coefficentsSign,ue=te.coefficentsMagnitude,se=te.bitsDecoded,pe=V?0:.5,we,Te,ke;xe=0;var Fe=y.type!=="LL";for(le=0;le<ae;le++){var Le=_e/q|0,he=2*Le*(A-q)+j+Y;for(we=0;we<ne;we++){if(Te=ue[xe],Te!==0){Te=(Te+pe)*I,ge[xe]!==0&&(Te=-Te),ke=se[xe];var Ee=Fe?he+(_e<<1):_e;V&&ke>=H?E[Ee]=Te:E[Ee]=Te*(1<<H-ke)}_e++,xe++}_e+=q-ne}}}}function o(E,A,C){for(var y=A.components[C],I=y.codingStyleParameters,H=y.quantizationParameters,V=I.decompositionLevelsCount,B=H.SPqcds,W=H.scalarExpounded,G=H.guardBits,q=I.segmentationSymbolUsed,z=E.components[C].precision,j=I.reversibleTransformation,Y=j?new R:new S,K=[],Z=0,ee=0;ee<=V;ee++){for(var ne=y.resolutions[ee],ae=ne.trx1-ne.trx0,te=ne.try1-ne.try0,re=new Float32Array(ae*te),ie=0,de=ne.subbands.length;ie<de;ie++){var oe,le;W?(oe=B[Z].mu,le=B[Z].epsilon,Z++):(oe=B[0].mu,le=B[0].epsilon+(ee>0?1-ee:0));var me=ne.subbands[ie],Pe=$[me.type],Ce=j?1:2**(z+Pe-le)*(1+oe/2048),xe=G+le-1;s(re,ae,te,me,Ce,xe,j,q)}K.push({width:ae,height:te,items:re})}var be=Y.calculate(K,y.tcx0,y.tcy0);return{left:y.tcx0,top:y.tcy0,width:be.width,height:be.height,items:be.items}}function u(E){for(var A=E.SIZ,C=E.components,y=A.Csiz,I=[],H=0,V=E.tiles.length;H<V;H++){var B=E.tiles[H],W=[],G;for(G=0;G<y;G++)W[G]=o(E,B,G);var q=W[0],z=new Uint8ClampedArray(q.items.length*y),j={left:q.left,top:q.top,width:q.width,height:q.height,items:z},Y,K,Z=0,ee,ne,ae,te,re;if(B.codingStyleDefaultParameters.multipleComponentTransform){var ie=y===4,de=W[0].items,oe=W[1].items,le=W[2].items,me=ie?W[3].items:null;Y=C[0].precision-8,K=(128<<Y)+.5;var Pe=B.components[0],Ce=y-3;if(ne=de.length,Pe.codingStyleParameters.reversibleTransformation)for(ee=0;ee<ne;ee++,Z+=Ce){ae=de[ee]+K,te=oe[ee],re=le[ee];const be=ae-(re+te>>2);z[Z++]=be+re>>Y,z[Z++]=be>>Y,z[Z++]=be+te>>Y}else for(ee=0;ee<ne;ee++,Z+=Ce)ae=de[ee]+K,te=oe[ee],re=le[ee],z[Z++]=ae+1.402*re>>Y,z[Z++]=ae-.34413*te-.71414*re>>Y,z[Z++]=ae+1.772*te>>Y;if(ie)for(ee=0,Z=3;ee<ne;ee++,Z+=4)z[Z]=me[ee]+K>>Y}else for(G=0;G<y;G++){var xe=W[G].items;for(Y=C[G].precision-8,K=(128<<Y)+.5,Z=G,ee=0,ne=xe.length;ee<ne;ee++)z[Z]=xe[ee]+K>>Y,Z+=y}I.push(j)}return I}function l(E,A){for(var C=E.SIZ,y=C.Csiz,I=E.tiles[A],H=0;H<y;H++){var V=I.components[H],B=E.currentTile.QCC[H]!==void 0?E.currentTile.QCC[H]:E.currentTile.QCD;V.quantizationParameters=B;var W=E.currentTile.COC[H]!==void 0?E.currentTile.COC[H]:E.currentTile.COD;V.codingStyleParameters=W}I.codingStyleDefaultParameters=E.currentTile.COD}var F=function(){function A(C,y){var I=(0,i.log2)(Math.max(C,y))+1;this.levels=[];for(var H=0;H<I;H++){var V={width:C,height:y,items:[]};this.levels.push(V),C=Math.ceil(C/2),y=Math.ceil(y/2)}}return A.prototype={reset:function(y,I){for(var H=0,V=0,B;H<this.levels.length;){B=this.levels[H];var W=y+I*B.width;if(B.items[W]!==void 0){V=B.items[W];break}B.index=W,y>>=1,I>>=1,H++}H--,B=this.levels[H],B.items[B.index]=V,this.currentLevel=H,delete this.value},incrementValue:function(){var y=this.levels[this.currentLevel];y.items[y.index]++},nextLevel:function(){var y=this.currentLevel,I=this.levels[y],H=I.items[I.index];return y--,y<0?(this.value=H,!1):(this.currentLevel=y,I=this.levels[y],I.items[I.index]=H,!0)}},A}(),T=function(){function A(C,y,I){var H=(0,i.log2)(Math.max(C,y))+1;this.levels=[];for(var V=0;V<H;V++){for(var B=new Uint8Array(C*y),W=0,G=B.length;W<G;W++)B[W]=I;var q={width:C,height:y,items:B};this.levels.push(q),C=Math.ceil(C/2),y=Math.ceil(y/2)}}return A.prototype={reset:function(y,I,H){for(var V=0;V<this.levels.length;){var B=this.levels[V],W=y+I*B.width;B.index=W;var G=B.items[W];if(G===255)break;if(G>H)return this.currentLevel=V,this.propagateValues(),!1;y>>=1,I>>=1,V++}return this.currentLevel=V-1,!0},incrementValue:function(y){var I=this.levels[this.currentLevel];I.items[I.index]=y+1,this.propagateValues()},propagateValues:function(){for(var y=this.currentLevel,I=this.levels[y],H=I.items[I.index];--y>=0;)I=this.levels[y],I.items[I.index]=H},nextLevel:function(){var y=this.currentLevel,I=this.levels[y],H=I.items[I.index];return I.items[I.index]=255,y--,y<0?!1:(this.currentLevel=y,I=this.levels[y],I.items[I.index]=H,!0)}},A}(),D=function(){var A=17,C=18,y=new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8]),I=new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8]),H=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]);function V(B,W,G,q,z){this.width=B,this.height=W;let j;G==="HH"?j=H:G==="HL"?j=I:j=y,this.contextLabelTable=j;var Y=B*W;this.neighborsSignificance=new Uint8Array(Y),this.coefficentsSign=new Uint8Array(Y);let K;z>14?K=new Uint32Array(Y):z>6?K=new Uint16Array(Y):K=new Uint8Array(Y),this.coefficentsMagnitude=K,this.processingFlags=new Uint8Array(Y);var Z=new Uint8Array(Y);if(q!==0)for(var ee=0;ee<Y;ee++)Z[ee]=q;this.bitsDecoded=Z,this.reset()}return V.prototype={setDecoder:function(W){this.decoder=W},reset:function(){this.contexts=new Int8Array(19),this.contexts[0]=8,this.contexts[A]=92,this.contexts[C]=6},setNeighborsSignificance:function(W,G,q){var z=this.neighborsSignificance,j=this.width,Y=this.height,K=G>0,Z=G+1<j,ee;W>0&&(ee=q-j,K&&(z[ee-1]+=16),Z&&(z[ee+1]+=16),z[ee]+=4),W+1<Y&&(ee=q+j,K&&(z[ee-1]+=16),Z&&(z[ee+1]+=16),z[ee]+=4),K&&(z[q-1]+=1),Z&&(z[q+1]+=1),z[q]|=128},runSignificancePropagationPass:function(){for(var W=this.decoder,G=this.width,q=this.height,z=this.coefficentsMagnitude,j=this.coefficentsSign,Y=this.neighborsSignificance,K=this.processingFlags,Z=this.contexts,ee=this.contextLabelTable,ne=this.bitsDecoded,ae=-2,te=1,re=2,ie=0;ie<q;ie+=4)for(var de=0;de<G;de++)for(var oe=ie*G+de,le=0;le<4;le++,oe+=G){var me=ie+le;if(me>=q)break;if(K[oe]&=ae,!(z[oe]||!Y[oe])){var Pe=ee[Y[oe]],Ce=W.readBit(Z,Pe);if(Ce){var xe=this.decodeSignBit(me,de,oe);j[oe]=xe,z[oe]=1,this.setNeighborsSignificance(me,de,oe),K[oe]|=re}ne[oe]++,K[oe]|=te}}},decodeSignBit:function(W,G,q){var z=this.width,j=this.height,Y=this.coefficentsMagnitude,K=this.coefficentsSign,Z,ee,ne,ae,te,re;ae=G>0&&Y[q-1]!==0,G+1<z&&Y[q+1]!==0?(ne=K[q+1],ae?(ee=K[q-1],Z=1-ne-ee):Z=1-ne-ne):ae?(ee=K[q-1],Z=1-ee-ee):Z=0;var ie=3*Z;return ae=W>0&&Y[q-z]!==0,W+1<j&&Y[q+z]!==0?(ne=K[q+z],ae?(ee=K[q-z],Z=1-ne-ee+ie):Z=1-ne-ne+ie):ae?(ee=K[q-z],Z=1-ee-ee+ie):Z=ie,Z>=0?(te=9+Z,re=this.decoder.readBit(this.contexts,te)):(te=9-Z,re=this.decoder.readBit(this.contexts,te)^1),re},runMagnitudeRefinementPass:function(){for(var W=this.decoder,G=this.width,q=this.height,z=this.coefficentsMagnitude,j=this.neighborsSignificance,Y=this.contexts,K=this.bitsDecoded,Z=this.processingFlags,ee=1,ne=2,ae=G*q,te=G*4,re=0,ie;re<ae;re=ie){ie=Math.min(ae,re+te);for(var de=0;de<G;de++)for(var oe=re+de;oe<ie;oe+=G)if(!(!z[oe]||Z[oe]&ee)){var le=16;if(Z[oe]&ne){Z[oe]^=ne;var me=j[oe]&127;le=me===0?15:14}var Pe=W.readBit(Y,le);z[oe]=z[oe]<<1|Pe,K[oe]++,Z[oe]|=ee}}},runCleanupPass:function(){for(var W=this.decoder,G=this.width,q=this.height,z=this.neighborsSignificance,j=this.coefficentsMagnitude,Y=this.coefficentsSign,K=this.contexts,Z=this.contextLabelTable,ee=this.bitsDecoded,ne=this.processingFlags,ae=1,te=2,re=G,ie=G*2,de=G*3,oe,le=0;le<q;le=oe){oe=Math.min(le+4,q);for(var me=le*G,Pe=le+3<q,Ce=0;Ce<G;Ce++){var xe=me+Ce,be=Pe&&ne[xe]===0&&ne[xe+re]===0&&ne[xe+ie]===0&&ne[xe+de]===0&&z[xe]===0&&z[xe+re]===0&&z[xe+ie]===0&&z[xe+de]===0,Se=0,_e=xe,ge=le,ue;if(be){var se=W.readBit(K,C);if(!se){ee[xe]++,ee[xe+re]++,ee[xe+ie]++,ee[xe+de]++;continue}Se=W.readBit(K,A)<<1|W.readBit(K,A),Se!==0&&(ge=le+Se,_e+=Se*G),ue=this.decodeSignBit(ge,Ce,_e),Y[_e]=ue,j[_e]=1,this.setNeighborsSignificance(ge,Ce,_e),ne[_e]|=te,_e=xe;for(var pe=le;pe<=ge;pe++,_e+=G)ee[_e]++;Se++}for(ge=le+Se;ge<oe;ge++,_e+=G)if(!(j[_e]||ne[_e]&ae)){var we=Z[z[_e]],Te=W.readBit(K,we);Te===1&&(ue=this.decodeSignBit(ge,Ce,_e),Y[_e]=ue,j[_e]=1,this.setNeighborsSignificance(ge,Ce,_e),ne[_e]|=te),ee[_e]++}}}},checkSegmentationSymbol:function(){var W=this.decoder,G=this.contexts,q=W.readBit(G,A)<<3|W.readBit(G,A)<<2|W.readBit(G,A)<<1|W.readBit(G,A);if(q!==10)throw new e("Invalid segmentation symbol")}},V}(),k=function(){function A(){}return A.prototype.calculate=function(y,I,H){for(var V=y[0],B=1,W=y.length;B<W;B++)V=this.iterate(V,y[B],I,H);return V},A.prototype.extend=function(y,I,H){var V=I-1,B=I+1,W=I+H-2,G=I+H;y[V--]=y[B++],y[G++]=y[W--],y[V--]=y[B++],y[G++]=y[W--],y[V--]=y[B++],y[G++]=y[W--],y[V]=y[B],y[G]=y[W]},A.prototype.iterate=function(y,I,H,V){var B=y.width,W=y.height,G=y.items,q=I.width,z=I.height,j=I.items,Y,K,Z,ee,ne,ae;for(Z=0,Y=0;Y<W;Y++)for(ee=Y*2*q,K=0;K<B;K++,Z++,ee+=2)j[ee]=G[Z];G=y.items=null;var te=4,re=new Float32Array(q+2*te);if(q===1){if(H&1)for(ae=0,Z=0;ae<z;ae++,Z+=q)j[Z]*=.5}else for(ae=0,Z=0;ae<z;ae++,Z+=q)re.set(j.subarray(Z,Z+q),te),this.extend(re,te,q),this.filter(re,te,q),j.set(re.subarray(te,te+q),Z);var ie=16,de=[];for(Y=0;Y<ie;Y++)de.push(new Float32Array(z+2*te));var oe,le=0;if(y=te+z,z===1){if(V&1)for(ne=0;ne<q;ne++)j[ne]*=.5}else for(ne=0;ne<q;ne++){if(le===0){for(ie=Math.min(q-ne,ie),Z=ne,ee=te;ee<y;Z+=q,ee++)for(oe=0;oe<ie;oe++)de[oe][ee]=j[Z+oe];le=ie}le--;var me=de[le];if(this.extend(me,te,z),this.filter(me,te,z),le===0)for(Z=ne-ie+1,ee=te;ee<y;Z+=q,ee++)for(oe=0;oe<ie;oe++)j[Z+oe]=de[oe][ee]}return{width:q,height:z,items:j}},A}(),S=function(){function A(){k.call(this)}return A.prototype=Object.create(k.prototype),A.prototype.filter=function(y,I,H){var V=H>>1;I=I|0;var B,W,G,q,z=-1.586134342059924,j=-.052980118572961,Y=.882911075530934,K=.443506852043971,Z=1.230174104914001,ee=1/Z;for(B=I-3,W=V+4;W--;B+=2)y[B]*=ee;for(B=I-2,G=K*y[B-1],W=V+3;W--&&(q=K*y[B+1],y[B]=Z*y[B]-G-q,W--);B+=2)B+=2,G=K*y[B+1],y[B]=Z*y[B]-G-q;for(B=I-1,G=Y*y[B-1],W=V+2;W--&&(q=Y*y[B+1],y[B]-=G+q,W--);B+=2)B+=2,G=Y*y[B+1],y[B]-=G+q;for(B=I,G=j*y[B-1],W=V+1;W--&&(q=j*y[B+1],y[B]-=G+q,W--);B+=2)B+=2,G=j*y[B+1],y[B]-=G+q;if(V!==0)for(B=I+1,G=z*y[B-1],W=V;W--&&(q=z*y[B+1],y[B]-=G+q,W--);B+=2)B+=2,G=z*y[B+1],y[B]-=G+q},A}(),R=function(){function A(){k.call(this)}return A.prototype=Object.create(k.prototype),A.prototype.filter=function(y,I,H){var V=H>>1;I=I|0;var B,W;for(B=I,W=V+1;W--;B+=2)y[B]-=y[B-1]+y[B+1]+2>>2;for(B=I+1,W=V;W--;B+=2)y[B]+=y[B-1]+y[B+1]>>1},A}();return U}();t.JpxImage=N},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSHA512=t.calculateSHA384=t.calculateSHA256=t.calculateMD5=t.PDF20=t.PDF17=t.CipherTransformFactory=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0;var r=a(2),i=a(4),p=a(11),e=function(){function c(h){this.a=0,this.b=0;var f=new Uint8Array(256),g,v=0,s,o=h.length;for(g=0;g<256;++g)f[g]=g;for(g=0;g<256;++g)s=f[g],v=v+s+h[g%o]&255,f[g]=f[v],f[v]=s;this.s=f}return c.prototype={encryptBlock:function(f){var g,v=f.length,s,o,u=this.a,l=this.b,F=this.s,T=new Uint8Array(v);for(g=0;g<v;++g)u=u+1&255,s=F[u],l=l+s&255,o=F[l],F[u]=o,F[l]=s,T[g]=f[g]^F[s+o&255];return this.a=u,this.b=l,T}},c.prototype.decryptBlock=c.prototype.encryptBlock,c}();t.ARCFourCipher=e;var N=function(){var c=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),h=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);function f(g,v,s){var o=1732584193,u=-271733879,l=-1732584194,F=271733878,T=s+72&-64,D=new Uint8Array(T),k,S,R;for(k=0;k<s;++k)D[k]=g[v++];for(D[k++]=128,R=T-8;k<R;)D[k++]=0;D[k++]=s<<3&255,D[k++]=s>>5&255,D[k++]=s>>13&255,D[k++]=s>>21&255,D[k++]=s>>>29&255,D[k++]=0,D[k++]=0,D[k++]=0;var E=new Int32Array(16);for(k=0;k<T;){for(S=0;S<16;++S,k+=4)E[S]=D[k]|D[k+1]<<8|D[k+2]<<16|D[k+3]<<24;var A=o,C=u,y=l,I=F,H,V;for(S=0;S<64;++S){S<16?(H=C&y|~C&I,V=S):S<32?(H=I&C|~I&y,V=5*S+1&15):S<48?(H=C^y^I,V=3*S+5&15):(H=y^(C|~I),V=7*S&15);var B=I,W=A+H+h[S]+E[V]|0,G=c[S];I=y,y=C,C=C+(W<<G|W>>>32-G)|0,A=B}o=o+A|0,u=u+C|0,l=l+y|0,F=F+I|0}return new Uint8Array([o&255,o>>8&255,o>>16&255,o>>>24&255,u&255,u>>8&255,u>>16&255,u>>>24&255,l&255,l>>8&255,l>>16&255,l>>>24&255,F&255,F>>8&255,F>>16&255,F>>>24&255])}return f}();t.calculateMD5=N;var w=function(){function c(h,f){this.high=h|0,this.low=f|0}return c.prototype={and:function(f){this.high&=f.high,this.low&=f.low},xor:function(f){this.high^=f.high,this.low^=f.low},or:function(f){this.high|=f.high,this.low|=f.low},shiftRight:function(f){f>=32?(this.low=this.high>>>f-32|0,this.high=0):(this.low=this.low>>>f|this.high<<32-f,this.high=this.high>>>f|0)},shiftLeft:function(f){f>=32?(this.high=this.low<<f-32,this.low=0):(this.high=this.high<<f|this.low>>>32-f,this.low=this.low<<f)},rotateRight:function(f){var g,v;f&32?(v=this.low,g=this.high):(g=this.low,v=this.high),f&=31,this.low=g>>>f|v<<32-f,this.high=v>>>f|g<<32-f},not:function(){this.high=~this.high,this.low=~this.low},add:function(f){var g=(this.low>>>0)+(f.low>>>0),v=(this.high>>>0)+(f.high>>>0);g>4294967295&&(v+=1),this.low=g|0,this.high=v|0},copyTo:function(f,g){f[g]=this.high>>>24&255,f[g+1]=this.high>>16&255,f[g+2]=this.high>>8&255,f[g+3]=this.high&255,f[g+4]=this.low>>>24&255,f[g+5]=this.low>>16&255,f[g+6]=this.low>>8&255,f[g+7]=this.low&255},assign:function(f){this.high=f.high,this.low=f.low}},c}(),$=function(){function c(F,T){return F>>>T|F<<32-T}function h(F,T,D){return F&T^~F&D}function f(F,T,D){return F&T^F&D^T&D}function g(F){return c(F,2)^c(F,13)^c(F,22)}function v(F){return c(F,6)^c(F,11)^c(F,25)}function s(F){return c(F,7)^c(F,18)^F>>>3}function o(F){return c(F,17)^c(F,19)^F>>>10}var u=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function l(F,T,D){var k=1779033703,S=3144134277,R=1013904242,E=2773480762,A=1359893119,C=2600822924,y=528734635,I=1541459225,H=Math.ceil((D+9)/64)*64,V=new Uint8Array(H),B,W,G;for(B=0;B<D;++B)V[B]=F[T++];for(V[B++]=128,G=H-8;B<G;)V[B++]=0;V[B++]=0,V[B++]=0,V[B++]=0,V[B++]=D>>>29&255,V[B++]=D>>21&255,V[B++]=D>>13&255,V[B++]=D>>5&255,V[B++]=D<<3&255;var q=new Uint32Array(64);for(B=0;B<H;){for(W=0;W<16;++W)q[W]=V[B]<<24|V[B+1]<<16|V[B+2]<<8|V[B+3],B+=4;for(W=16;W<64;++W)q[W]=o(q[W-2])+q[W-7]+s(q[W-15])+q[W-16]|0;var z=k,j=S,Y=R,K=E,Z=A,ee=C,ne=y,ae=I,te,re;for(W=0;W<64;++W)te=ae+v(Z)+h(Z,ee,ne)+u[W]+q[W],re=g(z)+f(z,j,Y),ae=ne,ne=ee,ee=Z,Z=K+te|0,K=Y,Y=j,j=z,z=te+re|0;k=k+z|0,S=S+j|0,R=R+Y|0,E=E+K|0,A=A+Z|0,C=C+ee|0,y=y+ne|0,I=I+ae|0}return new Uint8Array([k>>24&255,k>>16&255,k>>8&255,k&255,S>>24&255,S>>16&255,S>>8&255,S&255,R>>24&255,R>>16&255,R>>8&255,R&255,E>>24&255,E>>16&255,E>>8&255,E&255,A>>24&255,A>>16&255,A>>8&255,A&255,C>>24&255,C>>16&255,C>>8&255,C&255,y>>24&255,y>>16&255,y>>8&255,y&255,I>>24&255,I>>16&255,I>>8&255,I&255])}return l}();t.calculateSHA256=$;var U=function(){function c(l,F,T,D,k){l.assign(F),l.and(T),k.assign(F),k.not(),k.and(D),l.xor(k)}function h(l,F,T,D,k){l.assign(F),l.and(T),k.assign(F),k.and(D),l.xor(k),k.assign(T),k.and(D),l.xor(k)}function f(l,F,T){l.assign(F),l.rotateRight(28),T.assign(F),T.rotateRight(34),l.xor(T),T.assign(F),T.rotateRight(39),l.xor(T)}function g(l,F,T){l.assign(F),l.rotateRight(14),T.assign(F),T.rotateRight(18),l.xor(T),T.assign(F),T.rotateRight(41),l.xor(T)}function v(l,F,T){l.assign(F),l.rotateRight(1),T.assign(F),T.rotateRight(8),l.xor(T),T.assign(F),T.shiftRight(7),l.xor(T)}function s(l,F,T){l.assign(F),l.rotateRight(19),T.assign(F),T.rotateRight(61),l.xor(T),T.assign(F),T.shiftRight(6),l.xor(T)}var o=[new w(1116352408,3609767458),new w(1899447441,602891725),new w(3049323471,3964484399),new w(3921009573,2173295548),new w(961987163,4081628472),new w(1508970993,3053834265),new w(2453635748,2937671579),new w(2870763221,3664609560),new w(3624381080,2734883394),new w(310598401,1164996542),new w(607225278,1323610764),new w(1426881987,3590304994),new w(1925078388,4068182383),new w(2162078206,991336113),new w(2614888103,633803317),new w(3248222580,3479774868),new w(3835390401,2666613458),new w(4022224774,944711139),new w(264347078,2341262773),new w(604807628,2007800933),new w(770255983,1495990901),new w(1249150122,1856431235),new w(1555081692,3175218132),new w(1996064986,2198950837),new w(2554220882,3999719339),new w(2821834349,766784016),new w(2952996808,2566594879),new w(3210313671,3203337956),new w(3336571891,1034457026),new w(3584528711,2466948901),new w(113926993,3758326383),new w(338241895,168717936),new w(666307205,1188179964),new w(773529912,1546045734),new w(1294757372,1522805485),new w(1396182291,2643833823),new w(1695183700,2343527390),new w(1986661051,1014477480),new w(2177026350,1206759142),new w(2456956037,344077627),new w(2730485921,1290863460),new w(2820302411,3158454273),new w(3259730800,3505952657),new w(3345764771,106217008),new w(3516065817,3606008344),new w(3600352804,1432725776),new w(4094571909,1467031594),new w(275423344,851169720),new w(430227734,3100823752),new w(506948616,1363258195),new w(659060556,3750685593),new w(883997877,3785050280),new w(958139571,3318307427),new w(1322822218,3812723403),new w(1537002063,2003034995),new w(1747873779,3602036899),new w(1955562222,1575990012),new w(2024104815,1125592928),new w(2227730452,2716904306),new w(2361852424,442776044),new w(2428436474,593698344),new w(2756734187,3733110249),new w(3204031479,2999351573),new w(3329325298,3815920427),new w(3391569614,3928383900),new w(3515267271,566280711),new w(3940187606,3454069534),new w(4118630271,4000239992),new w(116418474,1914138554),new w(174292421,2731055270),new w(289380356,3203993006),new w(460393269,320620315),new w(685471733,587496836),new w(852142971,1086792851),new w(1017036298,365543100),new w(1126000580,2618297676),new w(1288033470,3409855158),new w(1501505948,4234509866),new w(1607167915,987167468),new w(1816402316,1246189591)];function u(l,F,T,D){D=!!D;var k,S,R,E,A,C,y,I;D?(k=new w(3418070365,3238371032),S=new w(1654270250,914150663),R=new w(2438529370,812702999),E=new w(355462360,4144912697),A=new w(1731405415,4290775857),C=new w(2394180231,1750603025),y=new w(3675008525,1694076839),I=new w(1203062813,3204075428)):(k=new w(1779033703,4089235720),S=new w(3144134277,2227873595),R=new w(1013904242,4271175723),E=new w(2773480762,1595750129),A=new w(1359893119,2917565137),C=new w(2600822924,725511199),y=new w(528734635,4215389547),I=new w(1541459225,327033209));var H=Math.ceil((T+17)/128)*128,V=new Uint8Array(H),B,W,G;for(B=0;B<T;++B)V[B]=l[F++];for(V[B++]=128,G=H-16;B<G;)V[B++]=0;V[B++]=0,V[B++]=0,V[B++]=0,V[B++]=0,V[B++]=0,V[B++]=0,V[B++]=0,V[B++]=0,V[B++]=0,V[B++]=0,V[B++]=0,V[B++]=T>>>29&255,V[B++]=T>>21&255,V[B++]=T>>13&255,V[B++]=T>>5&255,V[B++]=T<<3&255;var q=new Array(80);for(B=0;B<80;B++)q[B]=new w(0,0);var z=new w(0,0),j=new w(0,0),Y=new w(0,0),K=new w(0,0),Z=new w(0,0),ee=new w(0,0),ne=new w(0,0),ae=new w(0,0),te=new w(0,0),re=new w(0,0),ie=new w(0,0),de=new w(0,0),oe;for(B=0;B<H;){for(W=0;W<16;++W)q[W].high=V[B]<<24|V[B+1]<<16|V[B+2]<<8|V[B+3],q[W].low=V[B+4]<<24|V[B+5]<<16|V[B+6]<<8|V[B+7],B+=8;for(W=16;W<80;++W)oe=q[W],s(oe,q[W-2],de),oe.add(q[W-7]),v(ie,q[W-15],de),oe.add(ie),oe.add(q[W-16]);for(z.assign(k),j.assign(S),Y.assign(R),K.assign(E),Z.assign(A),ee.assign(C),ne.assign(y),ae.assign(I),W=0;W<80;++W)te.assign(ae),g(ie,Z,de),te.add(ie),c(ie,Z,ee,ne,de),te.add(ie),te.add(o[W]),te.add(q[W]),f(re,z,de),h(ie,z,j,Y,de),re.add(ie),oe=ae,ae=ne,ne=ee,ee=Z,K.add(te),Z=K,K=Y,Y=j,j=z,oe.assign(te),oe.add(re),z=oe;k.add(z),S.add(j),R.add(Y),E.add(K),A.add(Z),C.add(ee),y.add(ne),I.add(ae)}var le;return D?(le=new Uint8Array(48),k.copyTo(le,0),S.copyTo(le,8),R.copyTo(le,16),E.copyTo(le,24),A.copyTo(le,32),C.copyTo(le,40)):(le=new Uint8Array(64),k.copyTo(le,0),S.copyTo(le,8),R.copyTo(le,16),E.copyTo(le,24),A.copyTo(le,32),C.copyTo(le,40),y.copyTo(le,48),I.copyTo(le,56)),le}return u}();t.calculateSHA512=U;var m=function(){function c(h,f,g){return U(h,f,g,!0)}return c}();t.calculateSHA384=m;var n=function(){function c(){}return c.prototype={decryptBlock:function(f){return f}},c}();class J{constructor(){this.constructor===J&&(0,r.unreachable)("Cannot initialize AESBaseCipher."),this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]),this._mixCol=new Uint8Array(256);for(let c=0;c<256;c++)c<128?this._mixCol[c]=c<<1:this._mixCol[c]=c<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(c){(0,r.unreachable)("Cannot call `_expandKey` on the base class")}_decrypt(c,h){let f,g,v;const s=new Uint8Array(16);s.set(c);for(let o=0,u=this._keySize;o<16;++o,++u)s[o]^=h[u];for(let o=this._cyclesOfRepetition-1;o>=1;--o){f=s[13],s[13]=s[9],s[9]=s[5],s[5]=s[1],s[1]=f,f=s[14],g=s[10],s[14]=s[6],s[10]=s[2],s[6]=f,s[2]=g,f=s[15],g=s[11],v=s[7],s[15]=s[3],s[11]=f,s[7]=g,s[3]=v;for(let u=0;u<16;++u)s[u]=this._inv_s[s[u]];for(let u=0,l=o*16;u<16;++u,++l)s[u]^=h[l];for(let u=0;u<16;u+=4){const l=this._mix[s[u]],F=this._mix[s[u+1]],T=this._mix[s[u+2]],D=this._mix[s[u+3]];f=l^F>>>8^F<<24^T>>>16^T<<16^D>>>24^D<<8,s[u]=f>>>24&255,s[u+1]=f>>16&255,s[u+2]=f>>8&255,s[u+3]=f&255}}f=s[13],s[13]=s[9],s[9]=s[5],s[5]=s[1],s[1]=f,f=s[14],g=s[10],s[14]=s[6],s[10]=s[2],s[6]=f,s[2]=g,f=s[15],g=s[11],v=s[7],s[15]=s[3],s[11]=f,s[7]=g,s[3]=v;for(let o=0;o<16;++o)s[o]=this._inv_s[s[o]],s[o]^=h[o];return s}_encrypt(c,h){const f=this._s;let g,v,s;const o=new Uint8Array(16);o.set(c);for(let u=0;u<16;++u)o[u]^=h[u];for(let u=1;u<this._cyclesOfRepetition;u++){for(let l=0;l<16;++l)o[l]=f[o[l]];s=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=s,s=o[2],v=o[6],o[2]=o[10],o[6]=o[14],o[10]=s,o[14]=v,s=o[3],v=o[7],g=o[11],o[3]=o[15],o[7]=s,o[11]=v,o[15]=g;for(let l=0;l<16;l+=4){const F=o[l+0],T=o[l+1],D=o[l+2],k=o[l+3];g=F^T^D^k,o[l+0]^=g^this._mixCol[F^T],o[l+1]^=g^this._mixCol[T^D],o[l+2]^=g^this._mixCol[D^k],o[l+3]^=g^this._mixCol[k^F]}for(let l=0,F=u*16;l<16;++l,++F)o[l]^=h[F]}for(let u=0;u<16;++u)o[u]=f[o[u]];s=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=s,s=o[2],v=o[6],o[2]=o[10],o[6]=o[14],o[10]=s,o[14]=v,s=o[3],v=o[7],g=o[11],o[3]=o[15],o[7]=s,o[11]=v,o[15]=g;for(let u=0,l=this._keySize;u<16;++u,++l)o[u]^=h[l];return o}_decryptBlock2(c,h){const f=c.length;let g=this.buffer,v=this.bufferPosition;const s=[];let o=this.iv;for(let F=0;F<f;++F){if(g[v]=c[F],++v,v<16)continue;const T=this._decrypt(g,this._key);for(let D=0;D<16;++D)T[D]^=o[D];o=g,s.push(T),g=new Uint8Array(16),v=0}if(this.buffer=g,this.bufferLength=v,this.iv=o,s.length===0)return new Uint8Array(0);let u=16*s.length;if(h){const F=s[s.length-1];let T=F[15];if(T<=16){for(let D=15,k=16-T;D>=k;--D)if(F[D]!==T){T=0;break}u-=T,s[s.length-1]=F.subarray(0,16-T)}}const l=new Uint8Array(u);for(let F=0,T=0,D=s.length;F<D;++F,T+=16)l.set(s[F],T);return l}decryptBlock(c,h,f=null){const g=c.length,v=this.buffer;let s=this.bufferPosition;if(f)this.iv=f;else{for(let o=0;s<16&&o<g;++o,++s)v[s]=c[o];if(s<16)return this.bufferLength=s,new Uint8Array(0);this.iv=v,c=c.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(c,h)}encrypt(c,h){const f=c.length;let g=this.buffer,v=this.bufferPosition;const s=[];h||(h=new Uint8Array(16));for(let l=0;l<f;++l){if(g[v]=c[l],++v,v<16)continue;for(let T=0;T<16;++T)g[T]^=h[T];const F=this._encrypt(g,this._key);h=F,s.push(F),g=new Uint8Array(16),v=0}if(this.buffer=g,this.bufferLength=v,this.iv=h,s.length===0)return new Uint8Array(0);const o=16*s.length,u=new Uint8Array(o);for(let l=0,F=0,T=s.length;l<T;++l,F+=16)u.set(s[l],F);return u}}class O extends J{constructor(c){super(),this._cyclesOfRepetition=10,this._keySize=160,this._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]),this._key=this._expandKey(c)}_expandKey(c){const f=this._s,g=this._rcon,v=new Uint8Array(176);v.set(c);for(let s=16,o=1;s<176;++o){let u=v[s-3],l=v[s-2],F=v[s-1],T=v[s-4];u=f[u],l=f[l],F=f[F],T=f[T],u=u^g[o];for(let D=0;D<4;++D)v[s]=u^=v[s-16],s++,v[s]=l^=v[s-16],s++,v[s]=F^=v[s-16],s++,v[s]=T^=v[s-16],s++}return v}}t.AES128Cipher=O;class L extends J{constructor(c){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(c)}_expandKey(c){const f=this._s,g=new Uint8Array(240);g.set(c);let v=1,s,o,u,l;for(let F=32,T=1;F<240;++T){F%32===16?(s=f[s],o=f[o],u=f[u],l=f[l]):F%32===0&&(s=g[F-3],o=g[F-2],u=g[F-1],l=g[F-4],s=f[s],o=f[o],u=f[u],l=f[l],s=s^v,(v<<=1)>=256&&(v=(v^27)&255));for(let D=0;D<4;++D)g[F]=s^=g[F-32],F++,g[F]=o^=g[F-32],F++,g[F]=u^=g[F-32],F++,g[F]=l^=g[F-32],F++}return g}}t.AES256Cipher=L;var M=function(){function c(f,g){if(f.length!==g.length)return!1;for(var v=0;v<f.length;v++)if(f[v]!==g[v])return!1;return!0}function h(){}return h.prototype={checkOwnerPassword:function(g,v,s,o){var u=new Uint8Array(g.length+56);u.set(g,0),u.set(v,g.length),u.set(s,g.length+v.length);var l=$(u,0,u.length);return c(l,o)},checkUserPassword:function(g,v,s){var o=new Uint8Array(g.length+8);o.set(g,0),o.set(v,g.length);var u=$(o,0,o.length);return c(u,s)},getOwnerKey:function(g,v,s,o){var u=new Uint8Array(g.length+56);u.set(g,0),u.set(v,g.length),u.set(s,g.length+v.length);var l=$(u,0,u.length),F=new L(l);return F.decryptBlock(o,!1,new Uint8Array(16))},getUserKey:function(g,v,s){var o=new Uint8Array(g.length+8);o.set(g,0),o.set(v,g.length);var u=$(o,0,o.length),l=new L(u);return l.decryptBlock(s,!1,new Uint8Array(16))}},h}();t.PDF17=M;var P=function(){function c(v,s){var o=new Uint8Array(v.length+s.length);return o.set(v,0),o.set(s,v.length),o}function h(v,s,o){for(var u=$(s,0,s.length).subarray(0,32),l=[0],F=0;F<64||l[l.length-1]>F-32;){var T=v.length+u.length+o.length,D=new Uint8Array(T*64),k=c(v,u);k=c(k,o);for(var S=0,R=0;S<64;S++,R+=T)D.set(k,R);var E=new O(u.subarray(0,16));l=E.encrypt(D,u.subarray(16,32));for(var A=0,C=0;C<16;C++)A*=256%3,A%=3,A+=(l[C]>>>0)%3,A%=3;A===0?u=$(l,0,l.length):A===1?u=m(l,0,l.length):A===2&&(u=U(l,0,l.length)),F++}return u.subarray(0,32)}function f(){}function g(v,s){if(v.length!==s.length)return!1;for(var o=0;o<v.length;o++)if(v[o]!==s[o])return!1;return!0}return f.prototype={hash:function(s,o,u){return h(s,o,u)},checkOwnerPassword:function(s,o,u,l){var F=new Uint8Array(s.length+56);F.set(s,0),F.set(o,s.length),F.set(u,s.length+o.length);var T=h(s,F,u);return g(T,l)},checkUserPassword:function(s,o,u){var l=new Uint8Array(s.length+8);l.set(s,0),l.set(o,s.length);var F=h(s,l,[]);return g(F,u)},getOwnerKey:function(s,o,u,l){var F=new Uint8Array(s.length+56);F.set(s,0),F.set(o,s.length),F.set(u,s.length+o.length);var T=h(s,F,u),D=new L(T);return D.decryptBlock(l,!1,new Uint8Array(16))},getUserKey:function(s,o,u){var l=new Uint8Array(s.length+8);l.set(s,0),l.set(o,s.length);var F=h(s,l,[]),T=new L(F);return T.decryptBlock(u,!1,new Uint8Array(16))}},f}();t.PDF20=P;var b=function(){function c(h,f){this.StringCipherConstructor=h,this.StreamCipherConstructor=f}return c.prototype={createStream:function(f,g){var v=new this.StreamCipherConstructor;return new p.DecryptStream(f,g,function(o,u){return v.decryptBlock(o,u)})},decryptString:function(f){var g=new this.StringCipherConstructor,v=(0,r.stringToBytes)(f);return v=g.decryptBlock(v,!0),(0,r.bytesToString)(v)}},c}(),_=function(){var c=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]);function h(l,F,T,D,k,S,R,E,A,C,y,I){if(F){var H=Math.min(127,F.length);F=F.subarray(0,H)}else F=[];var V;return l===6?V=new P:V=new M,V.checkUserPassword(F,E,R)?V.getUserKey(F,A,y):F.length&&V.checkOwnerPassword(F,D,S,T)?V.getOwnerKey(F,k,S,C):null}function f(l,F,T,D,k,S,R,E){var A=40+T.length+l.length,C=new Uint8Array(A),y=0,I,H;if(F)for(H=Math.min(32,F.length);y<H;++y)C[y]=F[y];for(I=0;y<32;)C[y++]=c[I++];for(I=0,H=T.length;I<H;++I)C[y++]=T[I];for(C[y++]=k&255,C[y++]=k>>8&255,C[y++]=k>>16&255,C[y++]=k>>>24&255,I=0,H=l.length;I<H;++I)C[y++]=l[I];S>=4&&!E&&(C[y++]=255,C[y++]=255,C[y++]=255,C[y++]=255);var V=N(C,0,y),B=R>>3;if(S>=3)for(I=0;I<50;++I)V=N(V,0,B);var W=V.subarray(0,B),G,q;if(S>=3){for(y=0;y<32;++y)C[y]=c[y];for(I=0,H=l.length;I<H;++I)C[y++]=l[I];G=new e(W),q=G.encryptBlock(N(C,0,y)),H=W.length;var z=new Uint8Array(H),j;for(I=1;I<=19;++I){for(j=0;j<H;++j)z[j]=W[j]^I;G=new e(z),q=G.encryptBlock(q)}for(I=0,H=q.length;I<H;++I)if(D[I]!==q[I])return null}else for(G=new e(W),q=G.encryptBlock(c),I=0,H=q.length;I<H;++I)if(D[I]!==q[I])return null;return W}function g(l,F,T,D){var k=new Uint8Array(32),S=0,R,E;for(E=Math.min(32,l.length);S<E;++S)k[S]=l[S];for(R=0;S<32;)k[S++]=c[R++];var A=N(k,0,S),C=D>>3;if(T>=3)for(R=0;R<50;++R)A=N(A,0,A.length);var y,I;if(T>=3){I=F;var H=new Uint8Array(C),V;for(R=19;R>=0;R--){for(V=0;V<C;++V)H[V]=A[V]^R;y=new e(H),I=y.encryptBlock(I)}}else y=new e(A.subarray(0,C)),I=y.encryptBlock(F);return I}var v=i.Name.get("Identity");function s(l,F,T){var D=l.get("Filter");if(!(0,i.isName)(D,"Standard"))throw new r.FormatError("unknown encryption method");this.dict=l;var k=l.get("V");if(!Number.isInteger(k)||k!==1&&k!==2&&k!==4&&k!==5)throw new r.FormatError("unsupported encryption algorithm");this.algorithm=k;var S=l.get("Length");if(!S)if(k<=3)S=40;else{var R=l.get("CF"),E=l.get("StmF");if((0,i.isDict)(R)&&(0,i.isName)(E)){R.suppressEncryption=!0;var A=R.get(E.name);S=A&&A.get("Length")||128,S<40&&(S<<=3)}}if(!Number.isInteger(S)||S<40||S%8!==0)throw new r.FormatError("invalid key length");var C=(0,r.stringToBytes)(l.get("O")).subarray(0,32),y=(0,r.stringToBytes)(l.get("U")).subarray(0,32),I=l.get("P"),H=l.get("R"),V=(k===4||k===5)&&l.get("EncryptMetadata")!==!1;this.encryptMetadata=V;var B=(0,r.stringToBytes)(F),W;if(T){if(H===6)try{T=(0,r.utf8StringToString)(T)}catch{(0,r.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}W=(0,r.stringToBytes)(T)}var G;if(k!==5)G=f(B,W,C,y,I,H,S,V);else{var q=(0,r.stringToBytes)(l.get("O")).subarray(32,40),z=(0,r.stringToBytes)(l.get("O")).subarray(40,48),j=(0,r.stringToBytes)(l.get("U")).subarray(0,48),Y=(0,r.stringToBytes)(l.get("U")).subarray(32,40),K=(0,r.stringToBytes)(l.get("U")).subarray(40,48),Z=(0,r.stringToBytes)(l.get("OE")),ee=(0,r.stringToBytes)(l.get("UE"));(0,r.stringToBytes)(l.get("Perms")),G=h(H,W,C,q,z,j,y,Y,K,Z,ee)}if(!G&&!T)throw new r.PasswordException("No password given",r.PasswordResponses.NEED_PASSWORD);if(!G&&T){var ne=g(W,C,H,S);G=f(B,ne,C,y,I,H,S,V)}if(!G)throw new r.PasswordException("Incorrect Password",r.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=G,k>=4){var ae=l.get("CF");(0,i.isDict)(ae)&&(ae.suppressEncryption=!0),this.cf=ae,this.stmf=l.get("StmF")||v,this.strf=l.get("StrF")||v,this.eff=l.get("EFF")||this.stmf}}function o(l,F,T,D){var k=new Uint8Array(T.length+9),S,R;for(S=0,R=T.length;S<R;++S)k[S]=T[S];k[S++]=l&255,k[S++]=l>>8&255,k[S++]=l>>16&255,k[S++]=F&255,k[S++]=F>>8&255,D&&(k[S++]=115,k[S++]=65,k[S++]=108,k[S++]=84);var E=N(k,0,S);return E.subarray(0,Math.min(T.length+5,16))}function u(l,F,T,D,k){if(!(0,i.isName)(F))throw new r.FormatError("Invalid crypt filter name.");var S=l.get(F.name),R;if(S!=null&&(R=S.get("CFM")),!R||R.name==="None")return function(){return new n};if(R.name==="V2")return function(){return new e(o(T,D,k,!1))};if(R.name==="AESV2")return function(){return new O(o(T,D,k,!0))};if(R.name==="AESV3")return function(){return new L(k)};throw new r.FormatError("Unknown crypto method")}return s.prototype={createCipherTransform:function(F,T){if(this.algorithm===4||this.algorithm===5)return new b(u(this.cf,this.stmf,F,T,this.encryptionKey),u(this.cf,this.strf,F,T,this.encryptionKey));var D=o(F,T,this.encryptionKey,!1),k=function(){return new e(D)};return new b(k,k)}},s}();t.CipherTransformFactory=_},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpace=void 0;var r=a(2),i=a(4);function p(M,P,b,_,d,c,h){h=h!==1?0:h;const g=b/d,v=_/c;let s=0,o;const u=new Uint16Array(d),l=b*3;for(let F=0;F<d;F++)u[F]=Math.floor(F*g)*3;for(let F=0;F<c;F++){const T=Math.floor(F*v)*l;for(let D=0;D<d;D++)o=T+u[D],P[s++]=M[o++],P[s++]=M[o++],P[s++]=M[o++],s+=h}}class e{constructor(P,b){this.constructor===e&&(0,r.unreachable)("Cannot initialize ColorSpace."),this.name=P,this.numComps=b}getRgb(P,b){const _=new Uint8ClampedArray(3);return this.getRgbItem(P,b,_,0),_}getRgbItem(P,b,_,d){(0,r.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(P,b,_,d,c,h,f){(0,r.unreachable)("Should not call ColorSpace.getRgbBuffer")}getOutputLength(P,b){(0,r.unreachable)("Should not call ColorSpace.getOutputLength")}isPassthrough(P){return!1}isDefaultDecode(P,b){return e.isDefaultDecode(P,this.numComps)}fillRgb(P,b,_,d,c,h,f,g,v){const s=b*_;let o=null;const u=1<<f,l=_!==c||b!==d;if(this.isPassthrough(f))o=g;else if(this.numComps===1&&s>u&&this.name!=="DeviceGray"&&this.name!=="DeviceRGB"){const F=f<=8?new Uint8Array(u):new Uint16Array(u);for(let D=0;D<u;D++)F[D]=D;const T=new Uint8ClampedArray(u*3);if(this.getRgbBuffer(F,0,u,T,0,f,0),l){o=new Uint8Array(s*3);let D=0;for(let k=0;k<s;++k){const S=g[k]*3;o[D++]=T[S],o[D++]=T[S+1],o[D++]=T[S+2]}}else{let D=0;for(let k=0;k<s;++k){const S=g[k]*3;P[D++]=T[S],P[D++]=T[S+1],P[D++]=T[S+2],D+=v}}}else l?(o=new Uint8ClampedArray(s*3),this.getRgbBuffer(g,0,s,o,0,f,0)):this.getRgbBuffer(g,0,d*h,P,0,f,v);if(o)if(l)p(o,P,b,_,d,c,v);else{let F=0,T=0;for(let D=0,k=d*h;D<k;D++)P[F++]=o[T++],P[F++]=o[T++],P[F++]=o[T++],F+=v}}get usesZeroToOneRange(){return(0,r.shadow)(this,"usesZeroToOneRange",!0)}static parse(P,b,_,d){const c=this.parseToIR(P,b,_,d);return this.fromIR(c)}static fromIR(P){const b=Array.isArray(P)?P[0]:P;let _,d,c;switch(b){case"DeviceGrayCS":return this.singletons.gray;case"DeviceRgbCS":return this.singletons.rgb;case"DeviceCmykCS":return this.singletons.cmyk;case"CalGrayCS":return _=P[1],d=P[2],c=P[3],new J(_,d,c);case"CalRGBCS":_=P[1],d=P[2],c=P[3];const h=P[4];return new O(_,d,c,h);case"PatternCS":let f=P[1];return f&&(f=this.fromIR(f)),new w(f);case"IndexedCS":const g=P[1],v=P[2],s=P[3];return new $(this.fromIR(g),v,s);case"AlternateCS":const o=P[1],u=P[2],l=P[3];return new N(o,this.fromIR(u),l);case"LabCS":_=P[1],d=P[2];const F=P[3];return new L(_,d,F);default:throw new r.FormatError(`Unknown colorspace name: ${b}`)}}static parseToIR(P,b,_=null,d){if(P=b.fetchIfRef(P),(0,i.isName)(P))switch(P.name){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"Pattern":return["PatternCS",null];default:if((0,i.isDict)(_)){const c=_.get("ColorSpace");if((0,i.isDict)(c)){const h=c.get(P.name);if(h){if((0,i.isName)(h))return this.parseToIR(h,b,_,d);P=h;break}}}throw new r.FormatError(`unrecognized colorspace ${P.name}`)}if(Array.isArray(P)){const c=b.fetchIfRef(P[0]).name;let h,f,g,v,s,o;switch(c){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"CalGray":return f=b.fetchIfRef(P[1]),v=f.getArray("WhitePoint"),s=f.getArray("BlackPoint"),o=f.get("Gamma"),["CalGrayCS",v,s,o];case"CalRGB":f=b.fetchIfRef(P[1]),v=f.getArray("WhitePoint"),s=f.getArray("BlackPoint"),o=f.getArray("Gamma");const u=f.getArray("Matrix");return["CalRGBCS",v,s,o,u];case"ICCBased":const F=b.fetchIfRef(P[1]).dict;if(h=F.get("N"),g=F.get("Alternate"),g){const C=this.parseToIR(g,b,_,d);if(this.fromIR(C,d).numComps===h)return C;(0,r.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(h===1)return"DeviceGrayCS";if(h===3)return"DeviceRgbCS";if(h===4)return"DeviceCmykCS";break;case"Pattern":let T=P[1]||null;return T&&(T=this.parseToIR(T,b,_,d)),["PatternCS",T];case"Indexed":case"I":const D=this.parseToIR(P[1],b,_,d),k=b.fetchIfRef(P[2])+1;let S=b.fetchIfRef(P[3]);return(0,i.isStream)(S)&&(S=S.getBytes()),["IndexedCS",D,k,S];case"Separation":case"DeviceN":const R=b.fetchIfRef(P[1]);h=Array.isArray(R)?R.length:1,g=this.parseToIR(P[2],b,_,d);const E=d.create(b.fetchIfRef(P[3]));return["AlternateCS",h,g,E];case"Lab":f=b.fetchIfRef(P[1]),v=f.getArray("WhitePoint"),s=f.getArray("BlackPoint");const A=f.getArray("Range");return["LabCS",v,s,A];default:throw new r.FormatError(`unimplemented color space object "${c}"`)}}throw new r.FormatError(`unrecognized color space object: "${P}"`)}static isDefaultDecode(P,b){if(!Array.isArray(P))return!0;if(b*2!==P.length)return(0,r.warn)("The decode map is not the correct length"),!0;for(let _=0,d=P.length;_<d;_+=2)if(P[_]!==0||P[_+1]!==1)return!1;return!0}static get singletons(){return(0,r.shadow)(this,"singletons",{get gray(){return(0,r.shadow)(this,"gray",new U)},get rgb(){return(0,r.shadow)(this,"rgb",new m)},get cmyk(){return(0,r.shadow)(this,"cmyk",new n)}})}}t.ColorSpace=e;class N extends e{constructor(P,b,_){super("Alternate",P),this.base=b,this.tintFn=_,this.tmpBuf=new Float32Array(b.numComps)}getRgbItem(P,b,_,d){const c=this.tmpBuf;this.tintFn(P,b,c,0),this.base.getRgbItem(c,0,_,d)}getRgbBuffer(P,b,_,d,c,h,f){const g=this.tintFn,v=this.base,s=1/((1<<h)-1),o=v.numComps,u=v.usesZeroToOneRange,l=(v.isPassthrough(8)||!u)&&f===0;let F=l?c:0;const T=l?d:new Uint8ClampedArray(o*_),D=this.numComps,k=new Float32Array(D),S=new Float32Array(o);let R,E;for(R=0;R<_;R++){for(E=0;E<D;E++)k[E]=P[b++]*s;if(g(k,0,S,0),u)for(E=0;E<o;E++)T[F++]=S[E]*255;else v.getRgbItem(S,0,T,F),F+=o}l||v.getRgbBuffer(T,0,_,d,c,8,f)}getOutputLength(P,b){return this.base.getOutputLength(P*this.base.numComps/this.numComps,b)}}class w extends e{constructor(P){super("Pattern",null),this.base=P}isDefaultDecode(P,b){(0,r.unreachable)("Should not call PatternCS.isDefaultDecode")}}class $ extends e{constructor(P,b,_){super("Indexed",1),this.base=P,this.highVal=b;const c=P.numComps*b;if((0,i.isStream)(_)){this.lookup=new Uint8Array(c);const h=_.getBytes(c);this.lookup.set(h)}else if((0,r.isString)(_)){this.lookup=new Uint8Array(c);for(let h=0;h<c;++h)this.lookup[h]=_.charCodeAt(h)}else if(_ instanceof Uint8Array)this.lookup=_;else throw new r.FormatError(`Unrecognized lookup table: ${_}`)}getRgbItem(P,b,_,d){const c=this.base.numComps,h=P[b]*c;this.base.getRgbBuffer(this.lookup,h,1,_,d,8,0)}getRgbBuffer(P,b,_,d,c,h,f){const g=this.base,v=g.numComps,s=g.getOutputLength(v,f),o=this.lookup;for(let u=0;u<_;++u){const l=P[b++]*v;g.getRgbBuffer(o,l,1,d,c,8,f),c+=s}}getOutputLength(P,b){return this.base.getOutputLength(P*this.base.numComps,b)}isDefaultDecode(P,b){return Array.isArray(P)?P.length!==2?((0,r.warn)("Decode map length is not correct"),!0):!Number.isInteger(b)||b<1?((0,r.warn)("Bits per component is not correct"),!0):P[0]===0&&P[1]===(1<<b)-1:!0}}class U extends e{constructor(){super("DeviceGray",1)}getRgbItem(P,b,_,d){const c=P[b]*255;_[d]=_[d+1]=_[d+2]=c}getRgbBuffer(P,b,_,d,c,h,f){const g=255/((1<<h)-1);let v=b,s=c;for(let o=0;o<_;++o){const u=g*P[v++];d[s++]=u,d[s++]=u,d[s++]=u,s+=f}}getOutputLength(P,b){return P*(3+b)}}class m extends e{constructor(){super("DeviceRGB",3)}getRgbItem(P,b,_,d){_[d]=P[b]*255,_[d+1]=P[b+1]*255,_[d+2]=P[b+2]*255}getRgbBuffer(P,b,_,d,c,h,f){if(h===8&&f===0){d.set(P.subarray(b,b+_*3),c);return}const g=255/((1<<h)-1);let v=b,s=c;for(let o=0;o<_;++o)d[s++]=g*P[v++],d[s++]=g*P[v++],d[s++]=g*P[v++],s+=f}getOutputLength(P,b){return P*(3+b)/3|0}isPassthrough(P){return P===8}}const n=function(){function P(_,d,c,h,f){const g=_[d]*c,v=_[d+1]*c,s=_[d+2]*c,o=_[d+3]*c;h[f]=255+g*(-4.387332384609988*g+54.48615194189176*v+18.82290502165302*s+212.25662451639585*o+-285.2331026137004)+v*(1.7149763477362134*v-5.6096736904047315*s+-17.873870861415444*o-5.497006427196366)+s*(-2.5217340131683033*s-21.248923337353073*o+17.5119270841813)+o*(-21.86122147463605*o-189.48180835922747),h[f+1]=255+g*(8.841041422036149*g+60.118027045597366*v+6.871425592049007*s+31.159100130055922*o+-79.2970844816548)+v*(-15.310361306967817*v+17.575251261109482*s+131.35250912493976*o-190.9453302588951)+s*(4.444339102852739*s+9.8632861493405*o-24.86741582555878)+o*(-20.737325471181034*o-187.80453709719578),h[f+2]=255+g*(.8842522430003296*g+8.078677503112928*v+30.89978309703729*s-.23883238689178934*o+-14.183576799673286)+v*(10.49593273432072*v+63.02378494754052*s+50.606957656360734*o-112.23884253719248)+s*(.03296041114873217*s+115.60384449646641*o+-193.58209356861505)+o*(-22.33816807309886*o-180.12613974708367)}class b extends e{constructor(){super("DeviceCMYK",4)}getRgbItem(d,c,h,f){P(d,c,1,h,f)}getRgbBuffer(d,c,h,f,g,v,s){const o=1/((1<<v)-1);for(let u=0;u<h;u++)P(d,c,o,f,g),c+=4,g+=3+s}getOutputLength(d,c){return d/4*(3+c)|0}}return b}(),J=function(){function P(_,d,c,h,f,g){const s=(d[c]*g)**_.G,o=_.YW*s,u=Math.max(295.8*o**.3333333333333333-40.8,0);h[f]=u,h[f+1]=u,h[f+2]=u}class b extends e{constructor(d,c,h){if(super("CalGray",1),!d)throw new r.FormatError("WhitePoint missing - required for color space CalGray");if(c=c||[0,0,0],h=h||1,this.XW=d[0],this.YW=d[1],this.ZW=d[2],this.XB=c[0],this.YB=c[1],this.ZB=c[2],this.G=h,this.XW<0||this.ZW<0||this.YW!==1)throw new r.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&((0,r.info)(`Invalid BlackPoint for ${this.name}, falling back to default.`),this.XB=this.YB=this.ZB=0),(this.XB!==0||this.YB!==0||this.ZB!==0)&&(0,r.warn)(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ZB: ${this.ZB}, only default values are supported.`),this.G<1&&((0,r.info)(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`),this.G=1)}getRgbItem(d,c,h,f){P(this,d,c,h,f,1)}getRgbBuffer(d,c,h,f,g,v,s){const o=1/((1<<v)-1);for(let u=0;u<h;++u)P(this,d,c,f,g,o),c+=1,g+=3+s}getOutputLength(d,c){return d*(3+c)}}return b}(),O=function(){const P=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),b=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),_=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),d=new Float32Array([1,1,1]),c=new Float32Array(3),h=new Float32Array(3),f=new Float32Array(3),g=(24/116)**3/8;function v(E,A,C){C[0]=E[0]*A[0]+E[1]*A[1]+E[2]*A[2],C[1]=E[3]*A[0]+E[4]*A[1]+E[5]*A[2],C[2]=E[6]*A[0]+E[7]*A[1]+E[8]*A[2]}function s(E,A,C){C[0]=A[0]*1/E[0],C[1]=A[1]*1/E[1],C[2]=A[2]*1/E[2]}function o(E,A,C){C[0]=A[0]*.95047/E[0],C[1]=A[1]*1/E[1],C[2]=A[2]*1.08883/E[2]}function u(E){return E<=.0031308?l(0,1,12.92*E):l(0,1,(1+.055)*E**(1/2.4)-.055)}function l(E,A,C){return Math.max(E,Math.min(A,C))}function F(E){return E<0?-F(-E):E>8?((E+16)/116)**3:E*g}function T(E,A,C){if(E[0]===0&&E[1]===0&&E[2]===0){C[0]=A[0],C[1]=A[1],C[2]=A[2];return}const y=F(0),I=y,H=F(E[0]),V=y,B=F(E[1]),W=y,G=F(E[2]),q=(1-I)/(1-H),z=1-q,j=(1-V)/(1-B),Y=1-j,K=(1-W)/(1-G),Z=1-K;C[0]=A[0]*q+z,C[1]=A[1]*j+Y,C[2]=A[2]*K+Z}function D(E,A,C){if(E[0]===1&&E[2]===1){C[0]=A[0],C[1]=A[1],C[2]=A[2];return}const y=C;v(P,A,y);const I=c;s(E,y,I),v(b,I,C)}function k(E,A,C){const y=C;v(P,A,y);const I=c;o(E,y,I),v(b,I,C)}function S(E,A,C,y,I,H){const V=l(0,1,A[C]*H),B=l(0,1,A[C+1]*H),W=l(0,1,A[C+2]*H),G=V**E.GR,q=B**E.GG,z=W**E.GB,j=E.MXA*G+E.MXB*q+E.MXC*z,Y=E.MYA*G+E.MYB*q+E.MYC*z,K=E.MZA*G+E.MZB*q+E.MZC*z,Z=h;Z[0]=j,Z[1]=Y,Z[2]=K;const ee=f;D(E.whitePoint,Z,ee);const ne=h;T(E.blackPoint,ee,ne);const ae=f;k(d,ne,ae);const te=h;v(_,ae,te),y[I]=u(te[0])*255,y[I+1]=u(te[1])*255,y[I+2]=u(te[2])*255}class R extends e{constructor(A,C,y,I){if(super("CalRGB",3),!A)throw new r.FormatError("WhitePoint missing - required for color space CalRGB");C=C||new Float32Array(3),y=y||new Float32Array([1,1,1]),I=I||new Float32Array([1,0,0,0,1,0,0,0,1]);const H=A[0],V=A[1],B=A[2];this.whitePoint=A;const W=C[0],G=C[1],q=C[2];if(this.blackPoint=C,this.GR=y[0],this.GG=y[1],this.GB=y[2],this.MXA=I[0],this.MYA=I[1],this.MZA=I[2],this.MXB=I[3],this.MYB=I[4],this.MZB=I[5],this.MXC=I[6],this.MYC=I[7],this.MZC=I[8],H<0||B<0||V!==1)throw new r.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(W<0||G<0||q<0)&&((0,r.info)(`Invalid BlackPoint for ${this.name} [${W}, ${G}, ${q}], falling back to default.`),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&((0,r.info)(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`),this.GR=this.GG=this.GB=1)}getRgbItem(A,C,y,I){S(this,A,C,y,I,1)}getRgbBuffer(A,C,y,I,H,V,B){const W=1/((1<<V)-1);for(let G=0;G<y;++G)S(this,A,C,I,H,W),C+=3,H+=3+B}getOutputLength(A,C){return A*(3+C)/3|0}}return R}(),L=function(){function P(c){let h;return c>=6/29?h=c*c*c:h=108/841*(c-4/29),h}function b(c,h,f,g){return f+c*(g-f)/h}function _(c,h,f,g,v,s){let o=h[f],u=h[f+1],l=h[f+2];g!==!1&&(o=b(o,g,0,100),u=b(u,g,c.amin,c.amax),l=b(l,g,c.bmin,c.bmax)),u>c.amax?u=c.amax:u<c.amin&&(u=c.amin),l>c.bmax?l=c.bmax:l<c.bmin&&(l=c.bmin);const F=(o+16)/116,T=F+u/500,D=F-l/200,k=c.XW*P(T),S=c.YW*P(F),R=c.ZW*P(D);let E,A,C;c.ZW<1?(E=k*3.1339+S*-1.617+R*-.4906,A=k*-.9785+S*1.916+R*.0333,C=k*.072+S*-.229+R*1.4057):(E=k*3.2406+S*-1.5372+R*-.4986,A=k*-.9689+S*1.8758+R*.0415,C=k*.0557+S*-.204+R*1.057),v[s]=Math.sqrt(E)*255,v[s+1]=Math.sqrt(A)*255,v[s+2]=Math.sqrt(C)*255}class d extends e{constructor(h,f,g){if(super("Lab",3),!h)throw new r.FormatError("WhitePoint missing - required for color space Lab");if(f=f||[0,0,0],g=g||[-100,100,-100,100],this.XW=h[0],this.YW=h[1],this.ZW=h[2],this.amin=g[0],this.amax=g[1],this.bmin=g[2],this.bmax=g[3],this.XB=f[0],this.YB=f[1],this.ZB=f[2],this.XW<0||this.ZW<0||this.YW!==1)throw new r.FormatError("Invalid WhitePoint components, no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&((0,r.info)("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&((0,r.info)("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}getRgbItem(h,f,g,v){_(this,h,f,!1,g,v)}getRgbBuffer(h,f,g,v,s,o,u){const l=(1<<o)-1;for(let F=0;F<g;F++)_(this,h,f,l,v,s),f+=3,s+=3+u}getOutputLength(h,f){return h*(3+f)/3|0}isDefaultDecode(h,f){return!0}get usesZeroToOneRange(){return(0,r.shadow)(this,"usesZeroToOneRange",!1)}}return d}()},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.getQuadPoints=m,t.MarkupAnnotation=t.AnnotationFactory=t.AnnotationBorderStyle=t.Annotation=void 0;var r=a(2),i=a(9),p=a(4),e=a(22),N=a(7),w=a(24),$=a(11);class U{static create(C,y,I,H){return I.ensure(this,"_create",[C,y,I,H])}static _create(C,y,I,H){const V=C.fetchIfRef(y);if(!(0,p.isDict)(V))return;const B=(0,p.isRef)(y)?y.toString():`annot_${H.createObjId()}`;let W=V.get("Subtype");W=(0,p.isName)(W)?W.name:null;const G={xref:C,dict:V,subtype:W,id:B,pdfManager:I};switch(W){case"Link":return new c(G);case"Text":return new d(G);case"Widget":let q=(0,N.getInheritableProperty)({dict:V,key:"FT"});switch(q=(0,p.isName)(q)?q.name:null,q){case"Tx":return new P(G);case"Btn":return new b(G);case"Ch":return new _(G)}return(0,r.warn)('Unimplemented widget field type "'+q+'", falling back to base field type.'),new M(G);case"Popup":return new h(G);case"FreeText":return new f(G);case"Line":return new g(G);case"Square":return new v(G);case"Circle":return new s(G);case"PolyLine":return new o(G);case"Polygon":return new u(G);case"Caret":return new l(G);case"Ink":return new F(G);case"Highlight":return new T(G);case"Underline":return new D(G);case"Squiggly":return new k(G);case"StrikeOut":return new S(G);case"Stamp":return new R(G);case"FileAttachment":return new E(G);default:return W?(0,r.warn)('Unimplemented annotation type "'+W+'", falling back to base annotation.'):(0,r.warn)("Annotation is missing the required /Subtype."),new J(G)}}}t.AnnotationFactory=U;function m(A,C){if(!A.has("QuadPoints"))return null;const y=A.getArray("QuadPoints");if(!Array.isArray(y)||y.length%8>0)return null;const I=[];for(let H=0,V=y.length/8;H<V;H++){I.push([]);for(let B=H*8,W=H*8+8;B<W;B+=2){const G=y[B],q=y[B+1];if(G<C[0]||G>C[2]||q<C[1]||q>C[3])return null;I[H].push({x:G,y:q})}}return I}function n(A,C,y){const[I,H,V,B]=r.Util.getAxialAlignedBoundingBox(C,y);if(I===V||H===B)return[1,0,0,1,A[0],A[1]];const W=(A[2]-A[0])/(V-I),G=(A[3]-A[1])/(B-H);return[W,0,0,G,A[0]-I*W,A[1]-H*G]}class J{constructor(C){const y=C.dict;this.setContents(y.get("Contents")),this.setModificationDate(y.get("M")),this.setFlags(y.get("F")),this.setRectangle(y.getArray("Rect")),this.setColor(y.getArray("C")),this.setBorderStyle(y),this.setAppearance(y),this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,contents:this.contents,hasAppearance:!!this.appearance,id:C.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:C.subtype}}_hasFlag(C,y){return!!(C&y)}_isViewable(C){return!this._hasFlag(C,r.AnnotationFlag.INVISIBLE)&&!this._hasFlag(C,r.AnnotationFlag.HIDDEN)&&!this._hasFlag(C,r.AnnotationFlag.NOVIEW)}_isPrintable(C){return this._hasFlag(C,r.AnnotationFlag.PRINT)&&!this._hasFlag(C,r.AnnotationFlag.INVISIBLE)&&!this._hasFlag(C,r.AnnotationFlag.HIDDEN)}get viewable(){return this.flags===0?!0:this._isViewable(this.flags)}get printable(){return this.flags===0?!1:this._isPrintable(this.flags)}setContents(C){this.contents=(0,r.stringToPDFString)(C||"")}setModificationDate(C){this.modificationDate=(0,r.isString)(C)?C:null}setFlags(C){this.flags=Number.isInteger(C)&&C>0?C:0}hasFlag(C){return this._hasFlag(this.flags,C)}setRectangle(C){Array.isArray(C)&&C.length===4?this.rectangle=r.Util.normalizeRect(C):this.rectangle=[0,0,0,0]}setColor(C){const y=new Uint8ClampedArray(3);if(!Array.isArray(C)){this.color=y;return}switch(C.length){case 0:this.color=null;break;case 1:e.ColorSpace.singletons.gray.getRgbItem(C,0,y,0),this.color=y;break;case 3:e.ColorSpace.singletons.rgb.getRgbItem(C,0,y,0),this.color=y;break;case 4:e.ColorSpace.singletons.cmyk.getRgbItem(C,0,y,0),this.color=y;break;default:this.color=y;break}}setBorderStyle(C){if(this.borderStyle=new O,!!(0,p.isDict)(C))if(C.has("BS")){const y=C.get("BS"),I=y.get("Type");(!I||(0,p.isName)(I,"Border"))&&(this.borderStyle.setWidth(y.get("W"),this.rectangle),this.borderStyle.setStyle(y.get("S")),this.borderStyle.setDashArray(y.getArray("D")))}else if(C.has("Border")){const y=C.getArray("Border");Array.isArray(y)&&y.length>=3&&(this.borderStyle.setHorizontalCornerRadius(y[0]),this.borderStyle.setVerticalCornerRadius(y[1]),this.borderStyle.setWidth(y[2],this.rectangle),y.length===4&&this.borderStyle.setDashArray(y[3]))}else this.borderStyle.setWidth(0)}setAppearance(C){this.appearance=null;const y=C.get("AP");if(!(0,p.isDict)(y))return;const I=y.get("N");if((0,p.isStream)(I)){this.appearance=I;return}if(!(0,p.isDict)(I))return;const H=C.get("AS");!(0,p.isName)(H)||!I.has(H.name)||(this.appearance=I.get(H.name))}loadResources(C){return this.appearance.dict.getAsync("Resources").then(y=>y?new i.ObjectLoader(y,C,y.xref).load().then(function(){return y}):void 0)}getOperatorList(C,y,I){if(!this.appearance)return Promise.resolve(new w.OperatorList);const H=this.data,V=this.appearance.dict,B=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),W=V.getArray("BBox")||[0,0,1,1],G=V.getArray("Matrix")||[1,0,0,1,0,0],q=n(H.rect,W,G);return B.then(z=>{const j=new w.OperatorList;return j.addOp(r.OPS.beginAnnotation,[H.rect,q,G]),C.getOperatorList({stream:this.appearance,task:y,resources:z,operatorList:j}).then(()=>(j.addOp(r.OPS.endAnnotation,[]),this.appearance.reset(),j))})}}t.Annotation=J;class O{constructor(){this.width=1,this.style=r.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}setWidth(C,y=[0,0,0,0]){if((0,p.isName)(C)){this.width=0;return}if(Number.isInteger(C)){if(C>0){const I=(y[2]-y[0])/2,H=(y[3]-y[1])/2;I>0&&H>0&&(C>I||C>H)&&((0,r.warn)(`AnnotationBorderStyle.setWidth - ignoring width: ${C}`),C=1)}this.width=C}}setStyle(C){if((0,p.isName)(C))switch(C.name){case"S":this.style=r.AnnotationBorderStyleType.SOLID;break;case"D":this.style=r.AnnotationBorderStyleType.DASHED;break;case"B":this.style=r.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=r.AnnotationBorderStyleType.INSET;break;case"U":this.style=r.AnnotationBorderStyleType.UNDERLINE;break}}setDashArray(C){if(Array.isArray(C)&&C.length>0){let y=!0,I=!0;for(const H of C)if(+H>=0)H>0&&(I=!1);else{y=!1;break}y&&!I?this.dashArray=C:this.width=0}else C&&(this.width=0)}setHorizontalCornerRadius(C){Number.isInteger(C)&&(this.horizontalCornerRadius=C)}setVerticalCornerRadius(C){Number.isInteger(C)&&(this.verticalCornerRadius=C)}}t.AnnotationBorderStyle=O;class L extends J{constructor(C){super(C);const y=C.dict;if(y.has("IRT")){const I=y.getRaw("IRT");this.data.inReplyTo=(0,p.isRef)(I)?I.toString():null;const H=y.get("RT");this.data.replyType=(0,p.isName)(H)?H.name:r.AnnotationReplyType.REPLY}if(this.data.replyType===r.AnnotationReplyType.GROUP){const I=y.get("IRT");this.data.title=(0,r.stringToPDFString)(I.get("T")||""),this.setContents(I.get("Contents")),this.data.contents=this.contents,I.has("CreationDate")?(this.setCreationDate(I.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,I.has("M")?(this.setModificationDate(I.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,this.data.hasPopup=I.has("Popup"),I.has("C")?(this.setColor(I.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.title=(0,r.stringToPDFString)(y.get("T")||""),this.setCreationDate(y.get("CreationDate")),this.data.creationDate=this.creationDate,this.data.hasPopup=y.has("Popup"),y.has("C")||(this.data.color=null)}setCreationDate(C){this.creationDate=(0,r.isString)(C)?C:null}}t.MarkupAnnotation=L;class M extends J{constructor(C){super(C);const y=C.dict,I=this.data;I.annotationType=r.AnnotationType.WIDGET,I.fieldName=this._constructFieldName(y),I.fieldValue=(0,N.getInheritableProperty)({dict:y,key:"V",getArray:!0}),I.alternativeText=(0,r.stringToPDFString)(y.get("TU")||""),I.defaultAppearance=(0,N.getInheritableProperty)({dict:y,key:"DA"})||"";const H=(0,N.getInheritableProperty)({dict:y,key:"FT"});I.fieldType=(0,p.isName)(H)?H.name:null,this.fieldResources=(0,N.getInheritableProperty)({dict:y,key:"DR"})||p.Dict.empty,I.fieldFlags=(0,N.getInheritableProperty)({dict:y,key:"Ff"}),(!Number.isInteger(I.fieldFlags)||I.fieldFlags<0)&&(I.fieldFlags=0),I.readOnly=this.hasFieldFlag(r.AnnotationFieldFlag.READONLY),I.fieldType==="Sig"&&(I.fieldValue=null,this.setFlags(r.AnnotationFlag.HIDDEN))}_constructFieldName(C){if(!C.has("T")&&!C.has("Parent"))return(0,r.warn)("Unknown field name, falling back to empty field name."),"";if(!C.has("Parent"))return(0,r.stringToPDFString)(C.get("T"));const y=[];C.has("T")&&y.unshift((0,r.stringToPDFString)(C.get("T")));let I=C;for(;I.has("Parent")&&(I=I.get("Parent"),!!(0,p.isDict)(I));)I.has("T")&&y.unshift((0,r.stringToPDFString)(I.get("T")));return y.join(".")}hasFieldFlag(C){return!!(this.data.fieldFlags&C)}getOperatorList(C,y,I){return I?Promise.resolve(new w.OperatorList):super.getOperatorList(C,y,I)}}class P extends M{constructor(C){super(C);const y=C.dict;this.data.fieldValue=(0,r.stringToPDFString)(this.data.fieldValue||"");let I=(0,N.getInheritableProperty)({dict:y,key:"Q"});(!Number.isInteger(I)||I<0||I>2)&&(I=null),this.data.textAlignment=I;let H=(0,N.getInheritableProperty)({dict:y,key:"MaxLen"});(!Number.isInteger(H)||H<0)&&(H=null),this.data.maxLen=H,this.data.multiLine=this.hasFieldFlag(r.AnnotationFieldFlag.MULTILINE),this.data.comb=this.hasFieldFlag(r.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(r.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(r.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(r.AnnotationFieldFlag.FILESELECT)&&this.data.maxLen!==null}getOperatorList(C,y,I){if(I||this.appearance)return super.getOperatorList(C,y,I);const H=new w.OperatorList;if(!this.data.defaultAppearance)return Promise.resolve(H);const V=new $.Stream((0,r.stringToBytes)(this.data.defaultAppearance));return C.getOperatorList({stream:V,task:y,resources:this.fieldResources,operatorList:H}).then(function(){return H})}}class b extends M{constructor(C){super(C),this.data.checkBox=!this.hasFieldFlag(r.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(r.AnnotationFieldFlag.PUSHBUTTON),this.data.radioButton=this.hasFieldFlag(r.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(r.AnnotationFieldFlag.PUSHBUTTON),this.data.pushButton=this.hasFieldFlag(r.AnnotationFieldFlag.PUSHBUTTON),this.data.checkBox?this._processCheckBox(C):this.data.radioButton?this._processRadioButton(C):this.data.pushButton?this._processPushButton(C):(0,r.warn)("Invalid field flags for button widget annotation")}_processCheckBox(C){(0,p.isName)(this.data.fieldValue)&&(this.data.fieldValue=this.data.fieldValue.name);const y=C.dict.get("AP");if(!(0,p.isDict)(y))return;const I=y.get("D");if(!(0,p.isDict)(I))return;const H=I.getKeys();H.length===2&&(this.data.exportValue=H[0]==="Off"?H[1]:H[0])}_processRadioButton(C){this.data.fieldValue=this.data.buttonValue=null;const y=C.dict.get("Parent");if((0,p.isDict)(y)&&y.has("V")){const V=y.get("V");(0,p.isName)(V)&&(this.data.fieldValue=V.name)}const I=C.dict.get("AP");if(!(0,p.isDict)(I))return;const H=I.get("N");if((0,p.isDict)(H)){for(const V of H.getKeys())if(V!=="Off"){this.data.buttonValue=V;break}}}_processPushButton(C){if(!C.dict.has("A")){(0,r.warn)("Push buttons without action dictionaries are not supported");return}i.Catalog.parseDestDictionary({destDict:C.dict,resultObj:this.data,docBaseUrl:C.pdfManager.docBaseUrl})}}class _ extends M{constructor(C){super(C),this.data.options=[];const y=(0,N.getInheritableProperty)({dict:C.dict,key:"Opt"});if(Array.isArray(y)){const I=C.xref;for(let H=0,V=y.length;H<V;H++){const B=I.fetchIfRef(y[H]),W=Array.isArray(B);this.data.options[H]={exportValue:W?I.fetchIfRef(B[0]):B,displayValue:(0,r.stringToPDFString)(W?I.fetchIfRef(B[1]):B)}}}Array.isArray(this.data.fieldValue)||(this.data.fieldValue=[this.data.fieldValue]),this.data.combo=this.hasFieldFlag(r.AnnotationFieldFlag.COMBO),this.data.multiSelect=this.hasFieldFlag(r.AnnotationFieldFlag.MULTISELECT)}}class d extends L{constructor(C){super(C);const I=C.dict;this.data.annotationType=r.AnnotationType.TEXT,this.data.hasAppearance?this.data.name="NoIcon":(this.data.rect[1]=this.data.rect[3]-22,this.data.rect[2]=this.data.rect[0]+22,this.data.name=I.has("Name")?I.get("Name").name:"Note"),I.has("State")?(this.data.state=I.get("State")||null,this.data.stateModel=I.get("StateModel")||null):(this.data.state=null,this.data.stateModel=null)}}class c extends J{constructor(C){super(C),this.data.annotationType=r.AnnotationType.LINK;const y=m(C.dict,this.rectangle);y&&(this.data.quadPoints=y),i.Catalog.parseDestDictionary({destDict:C.dict,resultObj:this.data,docBaseUrl:C.pdfManager.docBaseUrl})}}class h extends J{constructor(C){super(C),this.data.annotationType=r.AnnotationType.POPUP;let y=C.dict.get("Parent");if(!y){(0,r.warn)("Popup annotation has a missing or invalid parent annotation.");return}const I=y.get("Subtype");this.data.parentType=(0,p.isName)(I)?I.name:null;const H=C.dict.getRaw("Parent");this.data.parentId=(0,p.isRef)(H)?H.toString():null;const V=y.get("RT");if((0,p.isName)(V,r.AnnotationReplyType.GROUP)&&(y=y.get("IRT")),y.has("M")?(this.setModificationDate(y.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,y.has("C")?(this.setColor(y.getArray("C")),this.data.color=this.color):this.data.color=null,!this.viewable){const B=y.get("F");this._isViewable(B)&&this.setFlags(B)}this.data.title=(0,r.stringToPDFString)(y.get("T")||""),this.data.contents=(0,r.stringToPDFString)(y.get("Contents")||"")}}class f extends L{constructor(C){super(C),this.data.annotationType=r.AnnotationType.FREETEXT}}class g extends L{constructor(C){super(C),this.data.annotationType=r.AnnotationType.LINE,this.data.lineCoordinates=r.Util.normalizeRect(C.dict.getArray("L"))}}class v extends L{constructor(C){super(C),this.data.annotationType=r.AnnotationType.SQUARE}}class s extends L{constructor(C){super(C),this.data.annotationType=r.AnnotationType.CIRCLE}}class o extends L{constructor(C){super(C),this.data.annotationType=r.AnnotationType.POLYLINE;const y=C.dict.getArray("Vertices");this.data.vertices=[];for(let I=0,H=y.length;I<H;I+=2)this.data.vertices.push({x:y[I],y:y[I+1]})}}class u extends o{constructor(C){super(C),this.data.annotationType=r.AnnotationType.POLYGON}}class l extends L{constructor(C){super(C),this.data.annotationType=r.AnnotationType.CARET}}class F extends L{constructor(C){super(C),this.data.annotationType=r.AnnotationType.INK;const y=C.xref,I=C.dict.getArray("InkList");this.data.inkLists=[];for(let H=0,V=I.length;H<V;++H){this.data.inkLists.push([]);for(let B=0,W=I[H].length;B<W;B+=2)this.data.inkLists[H].push({x:y.fetchIfRef(I[H][B]),y:y.fetchIfRef(I[H][B+1])})}}}class T extends L{constructor(C){super(C),this.data.annotationType=r.AnnotationType.HIGHLIGHT;const y=m(C.dict,this.rectangle);y&&(this.data.quadPoints=y)}}class D extends L{constructor(C){super(C),this.data.annotationType=r.AnnotationType.UNDERLINE;const y=m(C.dict,this.rectangle);y&&(this.data.quadPoints=y)}}class k extends L{constructor(C){super(C),this.data.annotationType=r.AnnotationType.SQUIGGLY;const y=m(C.dict,this.rectangle);y&&(this.data.quadPoints=y)}}class S extends L{constructor(C){super(C),this.data.annotationType=r.AnnotationType.STRIKEOUT;const y=m(C.dict,this.rectangle);y&&(this.data.quadPoints=y)}}class R extends L{constructor(C){super(C),this.data.annotationType=r.AnnotationType.STAMP}}class E extends L{constructor(C){super(C);const y=new i.FileSpec(C.dict.get("FS"),C.xref);this.data.annotationType=r.AnnotationType.FILEATTACHMENT,this.data.file=y.serializable}}},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorList=void 0;var r=a(2),i=function(){function w(n,J,O,L,M){for(var P=n,b=0,_=J.length-1;b<_;b++){var d=J[b];P=P[d]||(P[d]=[])}P[J[J.length-1]]={checkFn:O,iterateFn:L,processFn:M}}function $(n,J,O,L){for(var M=n+2,P=0;P<J;P++){var b=L[M+4*P],_=b.length===1&&b[0];if(_&&_.width===1&&_.height===1&&(!_.data.length||_.data.length===1&&_.data[0]===0)){O[M+4*P]=r.OPS.paintSolidColorImageMask;continue}break}return J-P}var U=[];w(U,[r.OPS.save,r.OPS.transform,r.OPS.paintInlineImageXObject,r.OPS.restore],null,function(J,O){var L=J.fnArray,M=J.iCurr-3,P=(O-M)%4;switch(P){case 0:return L[O]===r.OPS.save;case 1:return L[O]===r.OPS.transform;case 2:return L[O]===r.OPS.paintInlineImageXObject;case 3:return L[O]===r.OPS.restore}throw new Error(`iterateInlineImageGroup - invalid pos: ${P}`)},function(J,O){var L=10,M=200,P=1e3,b=1,_=J.fnArray,d=J.argsArray,c=J.iCurr,h=c-3,f=c-2,g=c-1,v=Math.min(Math.floor((O-h)/4),M);if(v<L)return O-(O-h)%4;var s=0,o=[],u=0,l=b,F=b,T;for(T=0;T<v;T++){var D=d[f+(T<<2)],k=d[g+(T<<2)][0];l+k.width>P&&(s=Math.max(s,l),F+=u+2*b,l=0,u=0),o.push({transform:D,x:l,y:F,w:k.width,h:k.height}),l+=k.width+2*b,u=Math.max(u,k.height)}var S=Math.max(s,l)+b,R=F+u+b,E=new Uint8ClampedArray(S*R*4),A=S<<2;for(T=0;T<v;T++){var C=d[g+(T<<2)][0].data,y=o[T].w<<2,I=0,H=o[T].x+o[T].y*S<<2;E.set(C.subarray(0,y),H-A);for(var V=0,B=o[T].h;V<B;V++)E.set(C.subarray(I,I+y),H),I+=y,H+=A;for(E.set(C.subarray(I-y,I),H);H>=0;)C[H-4]=C[H],C[H-3]=C[H+1],C[H-2]=C[H+2],C[H-1]=C[H+3],C[H+y]=C[H+y-4],C[H+y+1]=C[H+y-3],C[H+y+2]=C[H+y-2],C[H+y+3]=C[H+y-1],H-=A}return _.splice(h,v*4,r.OPS.paintInlineImageXObjectGroup),d.splice(h,v*4,[{width:S,height:R,kind:r.ImageKind.RGBA_32BPP,data:E},o]),h+1}),w(U,[r.OPS.save,r.OPS.transform,r.OPS.paintImageMaskXObject,r.OPS.restore],null,function(J,O){var L=J.fnArray,M=J.iCurr-3,P=(O-M)%4;switch(P){case 0:return L[O]===r.OPS.save;case 1:return L[O]===r.OPS.transform;case 2:return L[O]===r.OPS.paintImageMaskXObject;case 3:return L[O]===r.OPS.restore}throw new Error(`iterateImageMaskGroup - invalid pos: ${P}`)},function(J,O){var L=10,M=100,P=1e3,b=J.fnArray,_=J.argsArray,d=J.iCurr,c=d-3,h=d-2,f=d-1,g=Math.floor((O-c)/4);if(g=$(c,g,b,_),g<L)return O-(O-c)%4;var v,s=!1,o,u,l=_[f][0];if(_[h][1]===0&&_[h][2]===0){s=!0;var F=_[h][0],T=_[h][3];o=h+4;var D=f+4;for(v=1;v<g;v++,o+=4,D+=4)if(u=_[o],_[D][0]!==l||u[0]!==F||u[1]!==0||u[2]!==0||u[3]!==T){v<L?s=!1:g=v;break}}if(s){g=Math.min(g,P);var k=new Float32Array(g*2);for(o=h,v=0;v<g;v++,o+=4)u=_[o],k[v<<1]=u[4],k[(v<<1)+1]=u[5];b.splice(c,g*4,r.OPS.paintImageMaskXObjectRepeat),_.splice(c,g*4,[l,F,T,k])}else{g=Math.min(g,M);var S=[];for(v=0;v<g;v++){u=_[h+(v<<2)];var R=_[f+(v<<2)][0];S.push({data:R.data,width:R.width,height:R.height,transform:u})}b.splice(c,g*4,r.OPS.paintImageMaskXObjectGroup),_.splice(c,g*4,[S])}return c+1}),w(U,[r.OPS.save,r.OPS.transform,r.OPS.paintImageXObject,r.OPS.restore],function(n){var J=n.argsArray,O=n.iCurr-2;return J[O][1]===0&&J[O][2]===0},function(J,O){var L=J.fnArray,M=J.argsArray,P=J.iCurr-3,b=(O-P)%4;switch(b){case 0:return L[O]===r.OPS.save;case 1:if(L[O]!==r.OPS.transform)return!1;var _=J.iCurr-2,d=M[_][0],c=M[_][3];return!(M[O][0]!==d||M[O][1]!==0||M[O][2]!==0||M[O][3]!==c);case 2:if(L[O]!==r.OPS.paintImageXObject)return!1;var h=J.iCurr-1,f=M[h][0];return M[O][0]===f;case 3:return L[O]===r.OPS.restore}throw new Error(`iterateImageGroup - invalid pos: ${b}`)},function(n,J){var O=3,L=1e3,M=n.fnArray,P=n.argsArray,b=n.iCurr,_=b-3,d=b-2,c=b-1,h=P[c][0],f=P[d][0],g=P[d][3],v=Math.min(Math.floor((J-_)/4),L);if(v<O)return J-(J-_)%4;for(var s=new Float32Array(v*2),o=d,u=0;u<v;u++,o+=4){var l=P[o];s[u<<1]=l[4],s[(u<<1)+1]=l[5]}var F=[h,f,g,s];return M.splice(_,v*4,r.OPS.paintImageXObjectRepeat),P.splice(_,v*4,F),_+1}),w(U,[r.OPS.beginText,r.OPS.setFont,r.OPS.setTextMatrix,r.OPS.showText,r.OPS.endText],null,function(J,O){var L=J.fnArray,M=J.argsArray,P=J.iCurr-4,b=(O-P)%5;switch(b){case 0:return L[O]===r.OPS.beginText;case 1:return L[O]===r.OPS.setFont;case 2:return L[O]===r.OPS.setTextMatrix;case 3:if(L[O]!==r.OPS.showText)return!1;var _=J.iCurr-3,d=M[_][0],c=M[_][1];return!(M[O][0]!==d||M[O][1]!==c);case 4:return L[O]===r.OPS.endText}throw new Error(`iterateShowTextGroup - invalid pos: ${b}`)},function(n,J){var O=3,L=1e3,M=n.fnArray,P=n.argsArray,b=n.iCurr,_=b-4,d=b-3,c=b-2,h=b-1,f=b,g=P[d][0],v=P[d][1],s=Math.min(Math.floor((J-_)/5),L);if(s<O)return J-(J-_)%5;var o=_;_>=4&&M[_-4]===M[d]&&M[_-3]===M[c]&&M[_-2]===M[h]&&M[_-1]===M[f]&&P[_-4][0]===g&&P[_-4][1]===v&&(s++,o-=5);for(var u=o+4,l=1;l<s;l++)M.splice(u,3),P.splice(u,3),u+=2;return u+1});function m(n){this.queue=n,this.state=null,this.context={iCurr:0,fnArray:n.fnArray,argsArray:n.argsArray},this.match=null,this.lastProcessed=0}return m.prototype={_optimize(){const n=this.queue.fnArray;let J=this.lastProcessed,O=n.length,L=this.state,M=this.match;if(!L&&!M&&J+1===O&&!U[n[J]]){this.lastProcessed=O;return}const P=this.context;for(;J<O;){if(M){if((0,M.iterateFn)(P,J)){J++;continue}if(J=(0,M.processFn)(P,J+1),O=n.length,M=null,L=null,J>=O)break}if(L=(L||U)[n[J]],!L||Array.isArray(L)){J++;continue}if(P.iCurr=J,J++,L.checkFn&&!(0,L.checkFn)(P)){L=null;continue}M=L,L=null}this.state=L,this.match=M,this.lastProcessed=J},push(n,J){this.queue.fnArray.push(n),this.queue.argsArray.push(J),this._optimize()},flush(){for(;this.match;){const n=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,n),this.match=null,this.state=null,this._optimize()}},reset(){this.state=null,this.match=null,this.lastProcessed=0}},m}(),p=function(){function w($){this.queue=$}return w.prototype={push($,U){this.queue.fnArray.push($),this.queue.argsArray.push(U)},flush(){},reset(){}},w}(),e=function(){var w=1e3,$=w-5;function U(m,n,J){this._streamSink=n,this.fnArray=[],this.argsArray=[],n&&m!=="oplist"?this.optimizer=new i(this):this.optimizer=new p(this),this.dependencies=Object.create(null),this._totalLength=0,this.pageIndex=J,this.intent=m,this.weight=0,this._resolved=n?null:Promise.resolve()}return U.prototype={get length(){return this.argsArray.length},get ready(){return this._resolved||this._streamSink.ready},get totalLength(){return this._totalLength+this.length},addOp(m,n){this.optimizer.push(m,n),this.weight++,this._streamSink&&(this.weight>=w?this.flush():this.weight>=$&&(m===r.OPS.restore||m===r.OPS.endText)&&this.flush())},addDependency(m){m in this.dependencies||(this.dependencies[m]=!0,this.addOp(r.OPS.dependency,[m]))},addDependencies(m){for(var n in m)this.addDependency(n)},addOpList(m){Object.assign(this.dependencies,m.dependencies);for(var n=0,J=m.length;n<J;n++)this.addOp(m.fnArray[n],m.argsArray[n])},getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}},get _transfers(){const m=[],{fnArray:n,argsArray:J,length:O}=this;for(let L=0;L<O;L++)switch(n[L]){case r.OPS.paintInlineImageXObject:case r.OPS.paintInlineImageXObjectGroup:case r.OPS.paintImageMaskXObject:const M=J[L][0];M.cached||m.push(M.data.buffer);break}return m},flush(m=!1){this.optimizer.flush();const n=this.length;this._totalLength+=n,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:m,length:n},1,this._transfers),this.dependencies=Object.create(null),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}},U}();t.OperatorList=e},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.PartialEvaluator=void 0;var r=a(2),i=a(26),p=a(4),e=a(27),N=a(30),w=a(7),$=a(33),U=a(32),m=a(36),n=a(10),J=a(37),O=a(22),L=a(11),M=a(31),P=a(38),b=a(39),_=a(17),d=a(41),c=a(42),h=a(24),f=a(43),g=function(){const T={forceDataSchema:!1,maxImageSize:-1,disableFontFace:!1,nativeImageDecoderSupport:r.NativeImageDecoding.DECODE,ignoreErrors:!1,isEvalSupported:!0};function D({xref:I,handler:H,pageIndex:V,idFactory:B,fontCache:W,builtInCMapCache:G,options:q=null,pdfFunctionFactory:z}){this.xref=I,this.handler=H,this.pageIndex=V,this.idFactory=B,this.fontCache=W,this.builtInCMapCache=G,this.options=q||T,this.pdfFunctionFactory=z,this.parsingType3Font=!1,this.fetchBuiltInCMap=async j=>{if(this.builtInCMapCache.has(j))return this.builtInCMapCache.get(j);const K=this.handler.sendWithStream("FetchBuiltInCMap",{name:j}).getReader(),Z=await new Promise(function(ee,ne){function ae(){K.read().then(function({value:te,done:re}){re||(ee(te),ae())},ne)}ae()});return Z.compressionType!==r.CMapCompressionType.NONE&&this.builtInCMapCache.set(j,Z),Z}}var k=20,S=100;function R(){this.reset()}R.prototype={check:function(){return++this.checked<S?!1:(this.checked=0,this.endTime<=Date.now())},reset:function(){this.endTime=Date.now()+k,this.checked=0}};function E(I,H=!1){if(Array.isArray(I)){for(let V=0,B=I.length;V<B;V++){const W=E(I[V],!0);if(W)return W}return(0,r.warn)(`Unsupported blend mode Array: ${I}`),"source-over"}if(!(0,p.isName)(I))return H?null:"source-over";switch(I.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 H?null:((0,r.warn)(`Unsupported blend mode: ${I.name}`),"source-over")}var A=Promise.resolve(),C=1,y=2;return D.prototype={clone(I=T){var H=Object.create(this);return H.options=I,H},hasBlendModes:function(H){if(!(H instanceof p.Dict))return!1;var V=Object.create(null);H.objId&&(V[H.objId]=!0);for(var B=[H],W=this.xref;B.length;){var G=B.shift(),q=G.get("ExtGState");if(q instanceof p.Dict){var z=q.getKeys();for(let ee=0,ne=z.length;ee<ne;ee++){const ae=z[ee];let te=q.getRaw(ae);if(te instanceof p.Ref){if(V[te.toString()])continue;try{te=W.fetch(te)}catch(ie){if(ie instanceof w.MissingDataException)throw ie;if(this.options.ignoreErrors){te instanceof p.Ref&&(V[te.toString()]=!0),this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.unknown}),(0,r.warn)(`hasBlendModes - ignoring ExtGState: "${ie}".`);continue}throw ie}}if(!(te instanceof p.Dict))continue;te.objId&&(V[te.objId]=!0);const re=te.get("BM");if(re instanceof p.Name){if(re.name!=="Normal")return!0;continue}if(re!==void 0&&Array.isArray(re)){for(let ie=0,de=re.length;ie<de;ie++)if(re[ie]instanceof p.Name&&re[ie].name!=="Normal")return!0}}}var j=G.get("XObject");if(j instanceof p.Dict){var Y=j.getKeys();for(let ee=0,ne=Y.length;ee<ne;ee++){const ae=Y[ee];var K=j.getRaw(ae);if(K instanceof p.Ref){if(V[K.toString()])continue;try{K=W.fetch(K)}catch(te){if(te instanceof w.MissingDataException)throw te;if(this.options.ignoreErrors){K instanceof p.Ref&&(V[K.toString()]=!0),this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.unknown}),(0,r.warn)(`hasBlendModes - ignoring XObject: "${te}".`);continue}throw te}}if((0,p.isStream)(K)){if(K.dict.objId){if(V[K.dict.objId])continue;V[K.dict.objId]=!0}var Z=K.dict.get("Resources");Z instanceof p.Dict&&(!Z.objId||!V[Z.objId])&&(B.push(Z),Z.objId&&(V[Z.objId]=!0))}}}}return!1},async buildFormXObject(I,H,V,B,W,G){var q=H.dict,z=q.getArray("Matrix"),j=q.getArray("BBox");Array.isArray(j)&&j.length===4?j=r.Util.normalizeRect(j):j=null;var Y=q.get("Group");if(Y){var K={matrix:z,bbox:j,smask:V,isolated:!1,knockout:!1},Z=Y.get("S"),ee=null;(0,p.isName)(Z,"Transparency")&&(K.isolated=Y.get("I")||!1,K.knockout=Y.get("K")||!1,Y.has("CS")&&(ee=await this.parseColorSpace({cs:Y.get("CS"),resources:I}))),V&&V.backdrop&&(ee=ee||O.ColorSpace.singletons.rgb,V.backdrop=ee.getRgb(V.backdrop,0)),B.addOp(r.OPS.beginGroup,[K])}return B.addOp(r.OPS.paintFormXObjectBegin,[z,j]),this.getOperatorList({stream:H,task:W,resources:q.get("Resources")||I,operatorList:B,initialState:G}).then(function(){B.addOp(r.OPS.paintFormXObjectEnd,[]),Y&&B.addOp(r.OPS.endGroup,[K])})},async buildPaintImageXObject({resources:I,image:H,isInline:V=!1,operatorList:B,cacheKey:W,imageCache:G,forceDisableNativeImageDecoder:q=!1}){var z=H.dict,j=z.get("Width","W"),Y=z.get("Height","H");if(!(j&&(0,r.isNum)(j))||!(Y&&(0,r.isNum)(Y))){(0,r.warn)("Image dimensions are missing, or not numbers.");return}var K=this.options.maxImageSize;if(K!==-1&&j*Y>K){(0,r.warn)("Image exceeded maximum allowed size and was removed.");return}var Z=z.get("ImageMask","IM")||!1,ee,ne;if(Z){var ae=z.get("Width","W"),te=z.get("Height","H"),re=ae+7>>3,ie=H.getBytes(re*te,!0),de=z.getArray("Decode","D");ee=f.PDFImage.createMask({imgArray:ie,width:ae,height:te,imageIsFromDecodeStream:H instanceof L.DecodeStream,inverseDecode:!!de&&de[0]>0}),ee.cached=!!W,ne=[ee],B.addOp(r.OPS.paintImageMaskXObject,ne),W&&(G[W]={fn:r.OPS.paintImageMaskXObject,args:ne});return}var oe=z.get("SMask","SM")||!1,le=z.get("Mask")||!1,me=200;if(V&&!oe&&!le&&!(H instanceof _.JpegStream)&&j+Y<me){ee=new f.PDFImage({xref:this.xref,res:I,image:H,isInline:V,pdfFunctionFactory:this.pdfFunctionFactory}).createImageData(!0),B.addOp(r.OPS.paintInlineImageXObject,[ee]);return}const Pe=q?r.NativeImageDecoding.NONE:this.options.nativeImageDecoderSupport;let Ce=`img_${this.idFactory.createObjId()}`;if(this.parsingType3Font&&((0,r.assert)(Pe===r.NativeImageDecoding.NONE,"Type3 image resources should be completely decoded in the worker."),Ce=`${this.idFactory.getDocId()}_type3res_${Ce}`),Pe!==r.NativeImageDecoding.NONE&&!oe&&!le&&H instanceof _.JpegStream&&c.NativeImageDecoder.isSupported(H,this.xref,I,this.pdfFunctionFactory)&&H.maybeValidDimensions)return this.handler.sendWithPromise("obj",[Ce,this.pageIndex,"JpegStream",H.getIR(this.options.forceDataSchema)]).then(function(){B.addDependency(Ce),ne=[Ce,j,Y],B.addOp(r.OPS.paintJpegXObject,ne),W&&(G[W]={fn:r.OPS.paintJpegXObject,args:ne})},Se=>((0,r.warn)("Native JPEG decoding failed -- trying to recover: "+(Se&&Se.message)),this.buildPaintImageXObject({resources:I,image:H,isInline:V,operatorList:B,cacheKey:W,imageCache:G,forceDisableNativeImageDecoder:!0})));var xe=null;Pe===r.NativeImageDecoding.DECODE&&(H instanceof _.JpegStream||le instanceof _.JpegStream||oe instanceof _.JpegStream)&&(xe=new c.NativeImageDecoder({xref:this.xref,resources:I,handler:this.handler,forceDataSchema:this.options.forceDataSchema,pdfFunctionFactory:this.pdfFunctionFactory})),B.addDependency(Ce),ne=[Ce,j,Y];const be=f.PDFImage.buildImage({handler:this.handler,xref:this.xref,res:I,image:H,isInline:V,nativeDecoder:xe,pdfFunctionFactory:this.pdfFunctionFactory}).then(Se=>{var _e=Se.createImageData(!1);if(this.parsingType3Font)return this.handler.sendWithPromise("commonobj",[Ce,"FontType3Res",_e],[_e.data.buffer]);this.handler.send("obj",[Ce,this.pageIndex,"Image",_e],[_e.data.buffer])}).catch(Se=>{if((0,r.warn)("Unable to decode image: "+Se),this.parsingType3Font)return this.handler.sendWithPromise("commonobj",[Ce,"FontType3Res",null]);this.handler.send("obj",[Ce,this.pageIndex,"Image",null])});this.parsingType3Font&&await be,B.addOp(r.OPS.paintImageXObject,ne),W&&(G[W]={fn:r.OPS.paintImageXObject,args:ne})},handleSMask:function(H,V,B,W,G){var q=H.get("G"),z={subtype:H.get("S").name,backdrop:H.get("BC")},j=H.get("TR");if((0,b.isPDFFunction)(j)){const ee=this.pdfFunctionFactory.create(j);for(var Y=new Uint8Array(256),K=new Float32Array(1),Z=0;Z<256;Z++)K[0]=Z/255,ee(K,0,K,0),Y[Z]=K[0]*255|0;z.transferMap=Y}return this.buildFormXObject(V,q,z,B,W,G.state.clone())},handleTilingType(I,H,V,B,W,G,q){const z=new h.OperatorList,j=[W.get("Resources"),V],Y=p.Dict.merge(this.xref,j);return this.getOperatorList({stream:B,task:q,resources:Y,operatorList:z}).then(function(){return(0,m.getTilingPatternIR)({fnArray:z.fnArray,argsArray:z.argsArray},W,H)}).then(function(K){G.addDependencies(z.dependencies),G.addOp(I,K)},K=>{if(!(K instanceof r.AbortException)){if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.unknown}),(0,r.warn)(`handleTilingType - ignoring pattern: "${K}".`);return}throw K}})},handleSetFont:function(H,V,B,W,G,q){var z;return V&&(V=V.slice(),z=V[0].name),this.loadFont(z,B,H).then(j=>j.font.isType3Font?j.loadType3Data(this,H,W,G).then(function(){return j}).catch(Y=>(this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.font}),new v("g_font_error",new e.ErrorFont("Type3 font load error: "+Y),j.font))):j).then(j=>(q.font=j.font,j.send(this.handler),j.loadedName))},handleText(I,H){const V=H.font,B=V.charsToGlyphs(I);return V.data&&(H.textRenderingMode&r.TextRenderingMode.ADD_TO_PATH_FLAG||H.fillColorSpace.name==="Pattern"||V.disableFontFace||this.options.disableFontFace)&&D.buildFontPaths(V,B,this.handler),B},ensureStateFont(I){if(I.font)return;const H=new r.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.font}),(0,r.warn)(`ensureStateFont: "${H}".`);return}throw H},setGState:function(H,V,B,W,G){for(var q=[],z=V.getKeys(),j=Promise.resolve(),Y=0,K=z.length;Y<K;Y++){const Z=z[Y],ee=V.get(Z);switch(Z){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":q.push([Z,ee]);break;case"Font":j=j.then(()=>this.handleSetFont(H,null,ee[0],B,W,G.state).then(function(ne){B.addDependency(ne),q.push([Z,[ne,ee[1]]])}));break;case"BM":q.push([Z,E(ee)]);break;case"SMask":if((0,p.isName)(ee,"None")){q.push([Z,!1]);break}(0,p.isDict)(ee)?(j=j.then(()=>this.handleSMask(ee,H,B,W,G)),q.push([Z,!0])):(0,r.warn)("Unsupported SMask type");break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,r.info)("graphic state operator "+Z);break;default:(0,r.info)("Unknown graphic state operator "+Z);break}}return j.then(function(){q.length>0&&B.addOp(r.OPS.setGState,[q])})},loadFont:function(H,V,B){function W(){return Promise.resolve(new v("g_font_error",new e.ErrorFont("Font "+H+" is not available"),V))}var G,q=this.xref;if(V){if(!(0,p.isRef)(V))throw new r.FormatError('The "font" object should be a reference.');G=V}else{var z=B.get("Font");z&&(G=z.getRaw(H))}if(!G){const ie=`Font "${H||V&&V.toString()}" is not available`;if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,r.warn)(`${ie}.`),W();this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.font}),(0,r.warn)(`${ie} -- attempting to fallback to a default font.`),G=D.getFallbackFontDict()}if(this.fontCache.has(G))return this.fontCache.get(G);if(V=q.fetchIfRef(G),!(0,p.isDict)(V))return W();if(V.translated)return V.translated;var j=(0,r.createPromiseCapability)(),Y=this.preEvaluateFont(V);const{descriptor:K,hash:Z}=Y;var ee=(0,p.isRef)(G),ne;if(ee&&(ne=G.toString()),Z&&(0,p.isDict)(K)){K.fontAliases||(K.fontAliases=Object.create(null));var ae=K.fontAliases;if(ae[Z]){var te=ae[Z].aliasRef;if(ee&&te&&this.fontCache.has(te))return this.fontCache.putAlias(G,te),this.fontCache.get(G)}else ae[Z]={fontID:e.Font.getFontID()};ee&&(ae[Z].aliasRef=G),ne=ae[Z].fontID}ee?this.fontCache.put(G,j.promise):(ne||(ne=this.idFactory.createObjId()),this.fontCache.put(`id_${ne}`,j.promise)),(0,r.assert)(ne,'The "fontID" must be defined.'),V.loadedName=`${this.idFactory.getDocId()}_f${ne}`,V.translated=j.promise;var re;try{re=this.translateFont(Y)}catch(ie){re=Promise.reject(ie)}return re.then(function(ie){if(ie.fontType!==void 0){var de=q.stats.fontTypes;de[ie.fontType]=!0}j.resolve(new v(V.loadedName,ie,V))}).catch(ie=>{this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.font});try{var de=K&&K.get("FontFile3"),oe=de&&de.get("Subtype"),le=(0,e.getFontType)(Y.type,oe&&oe.name),me=q.stats.fontTypes;me[le]=!0}catch{}j.resolve(new v(V.loadedName,new e.ErrorFont(ie instanceof Error?ie.message:ie),V))}),j.promise},buildPath(I,H,V,B=!1){var W=I.length-1;if(V||(V=[]),W<0||I.fnArray[W]!==r.OPS.constructPath)B&&((0,r.warn)(`Encountered path operator "${H}" inside of a text object.`),I.addOp(r.OPS.save,null)),I.addOp(r.OPS.constructPath,[[H],V]),B&&I.addOp(r.OPS.restore,null);else{var G=I.argsArray[W];G[0].push(H),Array.prototype.push.apply(G[1],V)}},parseColorSpace({cs:I,resources:H}){return new Promise(V=>{V(O.ColorSpace.parse(I,this.xref,H,this.pdfFunctionFactory))}).catch(V=>{if(V instanceof r.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.unknown}),(0,r.warn)(`parseColorSpace - ignoring ColorSpace: "${V}".`),null;throw V})},async handleColorN(I,H,V,B,W,G,q){var z=V[V.length-1],j;if((0,p.isName)(z)&&(j=W.get(z.name))){var Y=(0,p.isStream)(j)?j.dict:j,K=Y.get("PatternType");if(K===C){var Z=B.base?B.base.getRgb(V,0):null;return this.handleTilingType(H,Z,G,j,Y,I,q)}else if(K===y){var ee=Y.get("Shading"),ne=Y.getArray("Matrix");j=m.Pattern.parseShading(ee,ne,this.xref,G,this.handler,this.pdfFunctionFactory),I.addOp(H,j.getIR());return}throw new r.FormatError(`Unknown PatternType: ${K}`)}throw new r.FormatError(`Unknown PatternName: ${z}`)},getOperatorList({stream:I,task:H,resources:V,operatorList:B,initialState:W=null}){if(V=V||p.Dict.empty,W=W||new u,!B)throw new Error('getOperatorList: missing "operatorList" parameter');var G=this,q=this.xref;let z=!1;var j=Object.create(null),Y=V.get("XObject")||p.Dict.empty,K=V.get("Pattern")||p.Dict.empty,Z=new s(W),ee=new l(I,q,Z),ne=new R;function ae(te){for(var re=0,ie=ee.savedStatesDepth;re<ie;re++)B.addOp(r.OPS.restore,[])}return new Promise(function te(re,ie){const de=function(Ne){Promise.all([Ne,B.ready]).then(function(){try{te(re,ie)}catch(Ge){ie(Ge)}},ie)};H.ensureNotTerminated(),ne.reset();for(var oe,le={},me,Pe,Ce;!(oe=ne.check())&&(le.args=null,!!ee.read(le));){var xe=le.args,be=le.fn;switch(be|0){case r.OPS.paintXObject:var Se=xe[0].name;if(Se&&j[Se]!==void 0){B.addOp(j[Se].fn,j[Se].args),xe=null;continue}de(new Promise(function(Ne,Ge){if(!Se)throw new r.FormatError("XObject must be referred to by name.");const ze=Y.get(Se);if(!ze){B.addOp(be,xe),Ne();return}if(!(0,p.isStream)(ze))throw new r.FormatError("XObject should be a stream");const tt=ze.dict.get("Subtype");if(!(0,p.isName)(tt))throw new r.FormatError("XObject should have a Name subtype");if(tt.name==="Form"){Z.save(),G.buildFormXObject(V,ze,null,B,H,Z.state.clone()).then(function(){Z.restore(),Ne()},Ge);return}else if(tt.name==="Image"){G.buildPaintImageXObject({resources:V,image:ze,operatorList:B,cacheKey:Se,imageCache:j}).then(Ne,Ge);return}else if(tt.name==="PS")(0,r.info)("Ignored XObject subtype PS");else throw new r.FormatError(`Unhandled XObject subtype ${tt.name}`);Ne()}).catch(function(Ne){if(!(Ne instanceof r.AbortException)){if(G.options.ignoreErrors){G.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.unknown}),(0,r.warn)(`getOperatorList - ignoring XObject: "${Ne}".`);return}throw Ne}}));return;case r.OPS.setFont:var _e=xe[1];de(G.handleSetFont(V,xe,null,B,H,Z.state).then(function(Ne){B.addDependency(Ne),B.addOp(r.OPS.setFont,[Ne,_e])}));return;case r.OPS.beginText:z=!0;break;case r.OPS.endText:z=!1;break;case r.OPS.endInlineImage:var ge=xe[0].cacheKey;if(ge){var ue=j[ge];if(ue!==void 0){B.addOp(ue.fn,ue.args),xe=null;continue}}de(G.buildPaintImageXObject({resources:V,image:xe[0],isInline:!0,operatorList:B,cacheKey:ge,imageCache:j}));return;case r.OPS.showText:if(!Z.state.font){G.ensureStateFont(Z.state);continue}xe[0]=G.handleText(xe[0],Z.state);break;case r.OPS.showSpacedText:if(!Z.state.font){G.ensureStateFont(Z.state);continue}var se=xe[0],pe=[],we=se.length,Te=Z.state;for(me=0;me<we;++me){var ke=se[me];(0,r.isString)(ke)?Array.prototype.push.apply(pe,G.handleText(ke,Te)):(0,r.isNum)(ke)&&pe.push(ke)}xe[0]=pe,be=r.OPS.showText;break;case r.OPS.nextLineShowText:if(!Z.state.font){G.ensureStateFont(Z.state);continue}B.addOp(r.OPS.nextLine),xe[0]=G.handleText(xe[0],Z.state),be=r.OPS.showText;break;case r.OPS.nextLineSetSpacingShowText:if(!Z.state.font){G.ensureStateFont(Z.state);continue}B.addOp(r.OPS.nextLine),B.addOp(r.OPS.setWordSpacing,[xe.shift()]),B.addOp(r.OPS.setCharSpacing,[xe.shift()]),xe[0]=G.handleText(xe[0],Z.state),be=r.OPS.showText;break;case r.OPS.setTextRenderingMode:Z.state.textRenderingMode=xe[0];break;case r.OPS.setFillColorSpace:de(G.parseColorSpace({cs:xe[0],resources:V}).then(function(Ne){Ne&&(Z.state.fillColorSpace=Ne)}));return;case r.OPS.setStrokeColorSpace:de(G.parseColorSpace({cs:xe[0],resources:V}).then(function(Ne){Ne&&(Z.state.strokeColorSpace=Ne)}));return;case r.OPS.setFillColor:Ce=Z.state.fillColorSpace,xe=Ce.getRgb(xe,0),be=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeColor:Ce=Z.state.strokeColorSpace,xe=Ce.getRgb(xe,0),be=r.OPS.setStrokeRGBColor;break;case r.OPS.setFillGray:Z.state.fillColorSpace=O.ColorSpace.singletons.gray,xe=O.ColorSpace.singletons.gray.getRgb(xe,0),be=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeGray:Z.state.strokeColorSpace=O.ColorSpace.singletons.gray,xe=O.ColorSpace.singletons.gray.getRgb(xe,0),be=r.OPS.setStrokeRGBColor;break;case r.OPS.setFillCMYKColor:Z.state.fillColorSpace=O.ColorSpace.singletons.cmyk,xe=O.ColorSpace.singletons.cmyk.getRgb(xe,0),be=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeCMYKColor:Z.state.strokeColorSpace=O.ColorSpace.singletons.cmyk,xe=O.ColorSpace.singletons.cmyk.getRgb(xe,0),be=r.OPS.setStrokeRGBColor;break;case r.OPS.setFillRGBColor:Z.state.fillColorSpace=O.ColorSpace.singletons.rgb,xe=O.ColorSpace.singletons.rgb.getRgb(xe,0);break;case r.OPS.setStrokeRGBColor:Z.state.strokeColorSpace=O.ColorSpace.singletons.rgb,xe=O.ColorSpace.singletons.rgb.getRgb(xe,0);break;case r.OPS.setFillColorN:if(Ce=Z.state.fillColorSpace,Ce.name==="Pattern"){de(G.handleColorN(B,r.OPS.setFillColorN,xe,Ce,K,V,H));return}xe=Ce.getRgb(xe,0),be=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeColorN:if(Ce=Z.state.strokeColorSpace,Ce.name==="Pattern"){de(G.handleColorN(B,r.OPS.setStrokeColorN,xe,Ce,K,V,H));return}xe=Ce.getRgb(xe,0),be=r.OPS.setStrokeRGBColor;break;case r.OPS.shadingFill:var Fe=V.get("Shading");if(!Fe)throw new r.FormatError("No shading resource found");var Le=Fe.get(xe[0].name);if(!Le)throw new r.FormatError("No shading object found");var he=m.Pattern.parseShading(Le,null,q,V,G.handler,G.pdfFunctionFactory),Ee=he.getIR();xe=[Ee],be=r.OPS.shadingFill;break;case r.OPS.setGState:var ve=xe[0],ye=V.get("ExtGState");if(!(0,p.isDict)(ye)||!ye.has(ve.name))break;var Oe=ye.get(ve.name);de(G.setGState(V,Oe,B,H,Z));return;case r.OPS.moveTo:case r.OPS.lineTo:case r.OPS.curveTo:case r.OPS.curveTo2:case r.OPS.curveTo3:case r.OPS.closePath:case r.OPS.rectangle:G.buildPath(B,be,xe,z);continue;case r.OPS.markPoint:case r.OPS.markPointProps:case r.OPS.beginMarkedContent:case r.OPS.beginMarkedContentProps:case r.OPS.endMarkedContent:case r.OPS.beginCompat:case r.OPS.endCompat:continue;default:if(xe!==null){for(me=0,Pe=xe.length;me<Pe&&!(xe[me]instanceof p.Dict);me++);if(me<Pe){(0,r.warn)("getOperatorList - ignoring operator: "+be);continue}}}B.addOp(be,xe)}if(oe){de(A);return}ae(),re()}).catch(te=>{if(!(te instanceof r.AbortException)){if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.unknown}),(0,r.warn)(`getOperatorList - ignoring errors during "${H.name}" task: "${te}".`),ae();return}throw te}})},getTextContent({stream:I,task:H,resources:V,stateManager:B=null,normalizeWhitespace:W=!1,combineTextItems:G=!1,sink:q,seenStyles:z=Object.create(null)}){V=V||p.Dict.empty,B=B||new s(new o);var j=/\s/g,Y={items:[],styles:Object.create(null)},K={initialized:!1,str:[],width:0,height:0,vertical:!1,lastAdvanceWidth:0,lastAdvanceHeight:0,textAdvanceScale:0,spaceWidth:0,fakeSpaceMin:1/0,fakeMultiSpaceMin:1/0,fakeMultiSpaceMax:-0,textRunBreakAllowed:!1,transform:null,fontName:null},Z=.3,ee=1.5,ne=4,ae=this,te=this.xref,re=null,ie=Object.create(null),de=new l(I,te,B),oe;function le(){if(K.initialized)return K;var ue=oe.font;ue.loadedName in z||(z[ue.loadedName]=!0,Y.styles[ue.loadedName]={fontFamily:ue.fallbackName,ascent:ue.ascent,descent:ue.descent,vertical:!!ue.vertical}),K.fontName=ue.loadedName;var se=[oe.fontSize*oe.textHScale,0,0,oe.fontSize,0,oe.textRise];if(ue.isType3Font&&oe.fontSize<=1&&!(0,r.isArrayEqual)(oe.fontMatrix,r.FONT_IDENTITY_MATRIX)){const he=ue.bbox[3]-ue.bbox[1];he>0&&(se[3]*=he*oe.fontMatrix[3])}var pe=r.Util.transform(oe.ctm,r.Util.transform(oe.textMatrix,se));K.transform=pe,ue.vertical?(K.width=Math.sqrt(pe[0]*pe[0]+pe[1]*pe[1]),K.height=0,K.vertical=!0):(K.width=0,K.height=Math.sqrt(pe[2]*pe[2]+pe[3]*pe[3]),K.vertical=!1);var we=oe.textLineMatrix[0],Te=oe.textLineMatrix[1],ke=Math.sqrt(we*we+Te*Te);we=oe.ctm[0],Te=oe.ctm[1];var Fe=Math.sqrt(we*we+Te*Te);K.textAdvanceScale=Fe*ke,K.lastAdvanceWidth=0,K.lastAdvanceHeight=0;var Le=ue.spaceWidth/1e3*oe.fontSize;return Le?(K.spaceWidth=Le,K.fakeSpaceMin=Le*Z,K.fakeMultiSpaceMin=Le*ee,K.fakeMultiSpaceMax=Le*ne,K.textRunBreakAllowed=!ue.isMonospace):(K.spaceWidth=0,K.fakeSpaceMin=1/0,K.fakeMultiSpaceMin=1/0,K.fakeMultiSpaceMax=0,K.textRunBreakAllowed=!1),K.initialized=!0,K}function me(ue){for(var se=0,pe=ue.length,we;se<pe&&(we=ue.charCodeAt(se))>=32&&we<=127;)se++;return se<pe?ue.replace(j," "):ue}function Pe(ue){var se=ue.str.join(""),pe=(0,J.bidi)(se,-1,ue.vertical);return{str:W?me(pe.str):pe.str,dir:pe.dir,width:ue.width,height:ue.height,transform:ue.transform,fontName:ue.fontName}}function Ce(ue,se){return ae.loadFont(ue,se,V).then(function(pe){oe.font=pe.font,oe.fontMatrix=pe.font.fontMatrix||r.FONT_IDENTITY_MATRIX})}function xe(ue){for(var se=oe.font,pe=le(),we=0,Te=0,ke=se.charsToGlyphs(ue),Fe=0;Fe<ke.length;Fe++){var Le=ke[Fe],he=null;se.vertical&&Le.vmetric?he=Le.vmetric[0]:he=Le.width;var Ee=Le.unicode,ve=(0,$.getNormalizedUnicodes)();ve[Ee]!==void 0&&(Ee=ve[Ee]),Ee=(0,$.reverseIfRtl)(Ee);var ye=oe.charSpacing;if(Le.isSpace){var Oe=oe.wordSpacing;ye+=Oe,Oe>0&&be(Oe,pe.str)}var Ne=0,Ge=0;if(se.vertical){var tt=he*oe.fontMatrix[0];Ge=tt*oe.fontSize+ye,Te+=Ge}else{var ze=he*oe.fontMatrix[0];Ne=(ze*oe.fontSize+ye)*oe.textHScale,we+=Ne}oe.translateTextMatrix(Ne,Ge),pe.str.push(Ee)}return se.vertical?(pe.lastAdvanceHeight=Te,pe.height+=Math.abs(Te)):(pe.lastAdvanceWidth=we,pe.width+=we),pe}function be(ue,se){if(!(ue<K.fakeSpaceMin)){if(ue<K.fakeMultiSpaceMin){se.push(" ");return}for(var pe=Math.round(ue/K.spaceWidth);pe-- >0;)se.push(" ")}}function Se(){K.initialized&&(K.vertical?K.height*=K.textAdvanceScale:K.width*=K.textAdvanceScale,Y.items.push(Pe(K)),K.initialized=!1,K.str.length=0)}function _e(){const ue=Y.items.length;ue>0&&(q.enqueue(Y,ue),Y.items=[],Y.styles=Object.create(null))}var ge=new R;return new Promise(function ue(se,pe){const we=function(wt){_e(),Promise.all([wt,q.ready]).then(function(){try{ue(se,pe)}catch(vt){pe(vt)}},pe)};H.ensureNotTerminated(),ge.reset();for(var Te,ke={},Fe=[];!(Te=ge.check())&&(Fe.length=0,ke.args=Fe,!!de.read(ke));){oe=B.state;var Le=ke.fn;Fe=ke.args;var he,Ee;switch(Le|0){case r.OPS.setFont:var ve=Fe[0].name,ye=Fe[1];if(oe.font&&ve===oe.fontName&&ye===oe.fontSize)break;Se(),oe.fontName=ve,oe.fontSize=ye,we(Ce(ve,null));return;case r.OPS.setTextRise:Se(),oe.textRise=Fe[0];break;case r.OPS.setHScale:Se(),oe.textHScale=Fe[0]/100;break;case r.OPS.setLeading:Se(),oe.leading=Fe[0];break;case r.OPS.moveText:var Oe=oe.font?(oe.font.vertical?Fe[0]:Fe[1])===0:!1;if(he=Fe[0]-Fe[1],G&&Oe&&K.initialized&&he>0&&he<=K.fakeMultiSpaceMax){oe.translateTextLineMatrix(Fe[0],Fe[1]),K.width+=Fe[0]-K.lastAdvanceWidth,K.height+=Fe[1]-K.lastAdvanceHeight,Ee=Fe[0]-K.lastAdvanceWidth-(Fe[1]-K.lastAdvanceHeight),be(Ee,K.str);break}Se(),oe.translateTextLineMatrix(Fe[0],Fe[1]),oe.textMatrix=oe.textLineMatrix.slice();break;case r.OPS.setLeadingMoveText:Se(),oe.leading=-Fe[1],oe.translateTextLineMatrix(Fe[0],Fe[1]),oe.textMatrix=oe.textLineMatrix.slice();break;case r.OPS.nextLine:Se(),oe.carriageReturn();break;case r.OPS.setTextMatrix:if(he=oe.calcTextLineMatrixAdvance(Fe[0],Fe[1],Fe[2],Fe[3],Fe[4],Fe[5]),G&&he!==null&&K.initialized&&he.value>0&&he.value<=K.fakeMultiSpaceMax){oe.translateTextLineMatrix(he.width,he.height),K.width+=he.width-K.lastAdvanceWidth,K.height+=he.height-K.lastAdvanceHeight,Ee=he.width-K.lastAdvanceWidth-(he.height-K.lastAdvanceHeight),be(Ee,K.str);break}Se(),oe.setTextMatrix(Fe[0],Fe[1],Fe[2],Fe[3],Fe[4],Fe[5]),oe.setTextLineMatrix(Fe[0],Fe[1],Fe[2],Fe[3],Fe[4],Fe[5]);break;case r.OPS.setCharSpacing:oe.charSpacing=Fe[0];break;case r.OPS.setWordSpacing:oe.wordSpacing=Fe[0];break;case r.OPS.beginText:Se(),oe.textMatrix=r.IDENTITY_MATRIX.slice(),oe.textLineMatrix=r.IDENTITY_MATRIX.slice();break;case r.OPS.showSpacedText:if(!B.state.font){ae.ensureStateFont(B.state);continue}for(var Ne=Fe[0],Ge,ze=0,tt=Ne.length;ze<tt;ze++)if(typeof Ne[ze]=="string")xe(Ne[ze]);else if((0,r.isNum)(Ne[ze])){le(),he=Ne[ze]*oe.fontSize/1e3;var rt=!1;oe.font.vertical?(Ge=he,oe.translateTextMatrix(0,Ge),rt=K.textRunBreakAllowed&&he>K.fakeMultiSpaceMax,rt||(K.height+=Ge)):(he=-he,Ge=he*oe.textHScale,oe.translateTextMatrix(Ge,0),rt=K.textRunBreakAllowed&&he>K.fakeMultiSpaceMax,rt||(K.width+=Ge)),rt?Se():he>0&&be(he,K.str)}break;case r.OPS.showText:if(!B.state.font){ae.ensureStateFont(B.state);continue}xe(Fe[0]);break;case r.OPS.nextLineShowText:if(!B.state.font){ae.ensureStateFont(B.state);continue}Se(),oe.carriageReturn(),xe(Fe[0]);break;case r.OPS.nextLineSetSpacingShowText:if(!B.state.font){ae.ensureStateFont(B.state);continue}Se(),oe.wordSpacing=Fe[0],oe.charSpacing=Fe[1],oe.carriageReturn(),xe(Fe[2]);break;case r.OPS.paintXObject:Se(),re||(re=V.get("XObject")||p.Dict.empty);var xt=Fe[0].name;if(xt&&ie[xt]!==void 0)break;we(new Promise(function(wt,vt){if(!xt)throw new r.FormatError("XObject must be referred to by name.");const bt=re.get(xt);if(!bt){wt();return}if(!(0,p.isStream)(bt))throw new r.FormatError("XObject should be a stream");const qt=bt.dict.get("Subtype");if(!(0,p.isName)(qt))throw new r.FormatError("XObject should have a Name subtype");if(qt.name!=="Form"){ie[xt]=!0,wt();return}const Mt=B.state.clone(),Zt=new s(Mt),zt=bt.dict.getArray("Matrix");Array.isArray(zt)&&zt.length===6&&Zt.transform(zt),_e();const fe={enqueueInvoked:!1,enqueue(Ie,De){this.enqueueInvoked=!0,q.enqueue(Ie,De)},get desiredSize(){return q.desiredSize},get ready(){return q.ready}};ae.getTextContent({stream:bt,task:H,resources:bt.dict.get("Resources")||V,stateManager:Zt,normalizeWhitespace:W,combineTextItems:G,sink:fe,seenStyles:z}).then(function(){fe.enqueueInvoked||(ie[xt]=!0),wt()},vt)}).catch(function(wt){if(!(wt instanceof r.AbortException)){if(ae.options.ignoreErrors){(0,r.warn)(`getTextContent - ignoring XObject: "${wt}".`);return}throw wt}}));return;case r.OPS.setGState:Se();var ft=Fe[0],lt=V.get("ExtGState");if(!(0,p.isDict)(lt)||!(0,p.isName)(ft))break;var ht=lt.get(ft.name);if(!(0,p.isDict)(ht))break;var St=ht.get("Font");if(St){oe.fontName=null,oe.fontSize=St[1],we(Ce(null,St[0]));return}break}if(Y.items.length>=q.desiredSize){Te=!0;break}}if(Te){we(A);return}Se(),_e(),se()}).catch(ue=>{if(!(ue instanceof r.AbortException)){if(this.options.ignoreErrors){(0,r.warn)(`getTextContent - ignoring errors during "${H.name}" task: "${ue}".`),Se(),_e();return}throw ue}})},extractDataStructures:function(H,V,B){const W=this.xref;let G;var q=H.get("ToUnicode")||V.get("ToUnicode"),z=q?this.readToUnicode(q):Promise.resolve(void 0);if(B.composite){var j=H.get("CIDSystemInfo");(0,p.isDict)(j)&&(B.cidSystemInfo={registry:(0,r.stringToPDFString)(j.get("Registry")),ordering:(0,r.stringToPDFString)(j.get("Ordering")),supplement:j.get("Supplement")});var Y=H.get("CIDToGIDMap");(0,p.isStream)(Y)&&(G=Y.getBytes())}var K=[],Z=null,ee;if(H.has("Encoding")){if(ee=H.get("Encoding"),(0,p.isDict)(ee)){if(Z=ee.get("BaseEncoding"),Z=(0,p.isName)(Z)?Z.name:null,ee.has("Differences"))for(var ne=ee.get("Differences"),ae=0,te=0,re=ne.length;te<re;te++){var ie=W.fetchIfRef(ne[te]);if((0,r.isNum)(ie))ae=ie;else if((0,p.isName)(ie))K[ae++]=ie.name;else throw new r.FormatError(`Invalid entry in 'Differences' array: ${ie}`)}}else if((0,p.isName)(ee))Z=ee.name;else throw new r.FormatError("Encoding is not a Name nor a Dict");Z!=="MacRomanEncoding"&&Z!=="MacExpertEncoding"&&Z!=="WinAnsiEncoding"&&(Z=null)}if(Z)B.defaultEncoding=(0,N.getEncoding)(Z).slice();else{var de=!!(B.flags&e.FontFlags.Symbolic),oe=!!(B.flags&e.FontFlags.Nonsymbolic);ee=N.StandardEncoding,B.type==="TrueType"&&!oe&&(ee=N.WinAnsiEncoding),de&&(ee=N.MacRomanEncoding,B.file||(/Symbol/i.test(B.name)?ee=N.SymbolSetEncoding:/Dingbats|Wingdings/i.test(B.name)&&(ee=N.ZapfDingbatsEncoding))),B.defaultEncoding=ee}return B.differences=K,B.baseEncodingName=Z,B.hasEncoding=!!Z||K.length>0,B.dict=H,z.then(le=>(B.toUnicode=le,this.buildToUnicode(B))).then(le=>(B.toUnicode=le,G&&(B.cidToGidMap=this.readCidToGidMap(G,le)),B))},_buildSimpleFontToUnicode(I,H=!1){(0,r.assert)(!I.composite,"Must be a simple font.");const V=[],B=I.defaultEncoding.slice(),W=I.baseEncodingName,G=I.differences;for(const z in G){const j=G[z];j!==".notdef"&&(B[z]=j)}const q=(0,M.getGlyphsUnicode)();for(const z in B){let j=B[z];if(j!==""){if(q[j]===void 0){let Y=0;switch(j[0]){case"G":j.length===3&&(Y=parseInt(j.substring(1),16));break;case"g":j.length===5&&(Y=parseInt(j.substring(1),16));break;case"C":case"c":if(j.length>=3&&j.length<=4){const Z=j.substring(1);if(H){Y=parseInt(Z,16);break}if(Y=+Z,Number.isNaN(Y)&&Number.isInteger(parseInt(Z,16)))return this._buildSimpleFontToUnicode(I,!0)}break;default:const K=(0,$.getUnicodeForGlyph)(j,q);K!==-1&&(Y=K)}if(Y>0&&Number.isInteger(Y)){if(W&&Y===+z){const K=(0,N.getEncoding)(W);if(K&&(j=K[z])){V[z]=String.fromCharCode(q[j]);continue}}V[z]=String.fromCodePoint(Y)}continue}V[z]=String.fromCharCode(q[j])}}return new e.ToUnicodeMap(V)},buildToUnicode(I){if(I.hasIncludedToUnicodeMap=!!I.toUnicode&&I.toUnicode.length>0,I.hasIncludedToUnicodeMap)return!I.composite&&I.hasEncoding&&(I.fallbackToUnicode=this._buildSimpleFontToUnicode(I)),Promise.resolve(I.toUnicode);if(!I.composite)return Promise.resolve(this._buildSimpleFontToUnicode(I));if(I.composite&&(I.cMap.builtInCMap&&!(I.cMap instanceof i.IdentityCMap)||I.cidSystemInfo.registry==="Adobe"&&(I.cidSystemInfo.ordering==="GB1"||I.cidSystemInfo.ordering==="CNS1"||I.cidSystemInfo.ordering==="Japan1"||I.cidSystemInfo.ordering==="Korea1"))){const H=I.cidSystemInfo.registry,V=I.cidSystemInfo.ordering,B=p.Name.get(H+"-"+V+"-UCS2");return i.CMapFactory.create({encoding:B,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(W){const G=I.cMap,q=[];return G.forEach(function(z,j){if(j>65535)throw new r.FormatError("Max size of CID is 65,535");const Y=W.lookup(j);Y&&(q[z]=String.fromCharCode((Y.charCodeAt(0)<<8)+Y.charCodeAt(1)))}),new e.ToUnicodeMap(q)})}return Promise.resolve(new e.IdentityToUnicodeMap(I.firstChar,I.lastChar))},readToUnicode:function(H){var V=H;return(0,p.isName)(V)?i.CMapFactory.create({encoding:V,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(B){return B instanceof i.IdentityCMap?new e.IdentityToUnicodeMap(0,65535):new e.ToUnicodeMap(B.getMap())}):(0,p.isStream)(V)?i.CMapFactory.create({encoding:V,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(B){if(B instanceof i.IdentityCMap)return new e.IdentityToUnicodeMap(0,65535);var W=new Array(B.length);return B.forEach(function(G,q){for(var z=[],j=0;j<q.length;j+=2){var Y=q.charCodeAt(j)<<8|q.charCodeAt(j+1);if((Y&63488)!==55296){z.push(Y);continue}j+=2;var K=q.charCodeAt(j)<<8|q.charCodeAt(j+1);z.push(((Y&1023)<<10)+(K&1023)+65536)}W[G]=String.fromCodePoint.apply(String,z)}),new e.ToUnicodeMap(W)},B=>{if(B instanceof r.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.font}),(0,r.warn)(`readToUnicode - ignoring ToUnicode data: "${B}".`),null;throw B}):Promise.resolve(null)},readCidToGidMap(I,H){for(var V=[],B=0,W=I.length;B<W;B++){var G=I[B++]<<8|I[B];const q=B>>1;G===0&&!H.has(q)||(V[q]=G)}return V},extractWidths:function(H,V,B){var W=this.xref,G=[],q=0,z=[],j,Y,K,Z,ee,ne,ae,te;if(B.composite){if(q=H.has("DW")?H.get("DW"):1e3,te=H.get("W"),te)for(Y=0,K=te.length;Y<K;Y++)if(ne=W.fetchIfRef(te[Y++]),ae=W.fetchIfRef(te[Y]),Array.isArray(ae))for(Z=0,ee=ae.length;Z<ee;Z++)G[ne++]=W.fetchIfRef(ae[Z]);else{var re=W.fetchIfRef(te[++Y]);for(Z=ne;Z<=ae;Z++)G[Z]=re}if(B.vertical){var ie=H.getArray("DW2")||[880,-1e3];if(j=[ie[1],q*.5,ie[0]],ie=H.get("W2"),ie)for(Y=0,K=ie.length;Y<K;Y++)if(ne=W.fetchIfRef(ie[Y++]),ae=W.fetchIfRef(ie[Y]),Array.isArray(ae))for(Z=0,ee=ae.length;Z<ee;Z++)z[ne++]=[W.fetchIfRef(ae[Z++]),W.fetchIfRef(ae[Z++]),W.fetchIfRef(ae[Z])];else{var de=[W.fetchIfRef(ie[++Y]),W.fetchIfRef(ie[++Y]),W.fetchIfRef(ie[++Y])];for(Z=ne;Z<=ae;Z++)z[Z]=de}}}else{var oe=B.firstChar;if(te=H.get("Widths"),te){for(Z=oe,Y=0,K=te.length;Y<K;Y++)G[Z++]=W.fetchIfRef(te[Y]);q=parseFloat(V.get("MissingWidth"))||0}else{var le=H.get("BaseFont");if((0,p.isName)(le)){var me=this.getBaseFontMetrics(le.name);G=this.buildCharCodeToWidth(me.widths,B),q=me.defaultWidth}}}var Pe=!0,Ce=q;for(var xe in G){var be=G[xe];if(be){if(!Ce){Ce=be;continue}if(Ce!==be){Pe=!1;break}}}Pe&&(B.flags|=e.FontFlags.FixedPitch),B.defaultWidth=q,B.widths=G,B.defaultVMetrics=j,B.vmetrics=z},isSerifFont:function(H){var V=H.split("-")[0];return V in(0,U.getSerifFonts)()||V.search(/serif/gi)!==-1},getBaseFontMetrics:function(H){var V=0,B=[],W=!1,G=(0,U.getStdFontMap)(),q=G[H]||H,z=(0,P.getMetrics)();q in z||(this.isSerifFont(H)?q="Times-Roman":q="Helvetica");var j=z[q];return(0,r.isNum)(j)?(V=j,W=!0):B=j(),{defaultWidth:V,monospace:W,widths:B}},buildCharCodeToWidth:function(H,V){for(var B=Object.create(null),W=V.differences,G=V.defaultEncoding,q=0;q<256;q++){if(q in W&&H[W[q]]){B[q]=H[W[q]];continue}if(q in G&&H[G[q]]){B[q]=H[G[q]];continue}}return B},preEvaluateFont:function(H){var V=H,B=H.get("Subtype");if(!(0,p.isName)(B))throw new r.FormatError("invalid font Subtype");var W=!1,G;if(B.name==="Type0"){var q=H.get("DescendantFonts");if(!q)throw new r.FormatError("Descendant fonts are not specified");if(H=Array.isArray(q)?this.xref.fetchIfRef(q[0]):q,B=H.get("Subtype"),!(0,p.isName)(B))throw new r.FormatError("invalid font Subtype");W=!0}var z=H.get("FontDescriptor");if(z){var j=new d.MurmurHash3_64,Y=V.getRaw("Encoding");if((0,p.isName)(Y))j.update(Y.name);else if((0,p.isRef)(Y))j.update(Y.toString());else if((0,p.isDict)(Y))for(var K=Y.getKeys(),Z=0,ee=K.length;Z<ee;Z++){var ne=Y.getRaw(K[Z]);if((0,p.isName)(ne))j.update(ne.name);else if((0,p.isRef)(ne))j.update(ne.toString());else if(Array.isArray(ne)){for(var ae=ne.length,te=new Array(ae),re=0;re<ae;re++){var ie=ne[re];(0,p.isName)(ie)?te[re]=ie.name:((0,r.isNum)(ie)||(0,p.isRef)(ie))&&(te[re]=ie.toString())}j.update(te.join())}}const me=H.get("FirstChar")||0,Pe=H.get("LastChar")||(W?65535:255);j.update(`${me}-${Pe}`);var de=H.get("ToUnicode")||V.get("ToUnicode");if((0,p.isStream)(de)){var oe=de.str||de;G=oe.buffer?new Uint8Array(oe.buffer.buffer,0,oe.bufferLength):new Uint8Array(oe.bytes.buffer,oe.start,oe.end-oe.start),j.update(G)}else(0,p.isName)(de)&&j.update(de.name);var le=H.get("Widths")||V.get("Widths");le&&(G=new Uint8Array(new Uint32Array(le).buffer),j.update(G))}return{descriptor:z,dict:H,baseDict:V,composite:W,type:B.name,hash:j?j.hexdigest():""}},translateFont:function(H){var V=H.baseDict,B=H.dict,W=H.composite,G=H.descriptor,q=H.type,z=W?65535:255,j;const Y=B.get("FirstChar")||0,K=B.get("LastChar")||z;if(!G)if(q==="Type3")G=new p.Dict(null),G.set("FontName",p.Name.get(q)),G.set("FontBBox",B.getArray("FontBBox")||[0,0,0,0]);else{var Z=B.get("BaseFont");if(!(0,p.isName)(Z))throw new r.FormatError("Base font is not specified");Z=Z.name.replace(/[,_]/g,"-");var ee=this.getBaseFontMetrics(Z),ne=Z.split("-")[0],ae=(this.isSerifFont(ne)?e.FontFlags.Serif:0)|(ee.monospace?e.FontFlags.FixedPitch:0)|((0,U.getSymbolsFonts)()[ne]?e.FontFlags.Symbolic:e.FontFlags.Nonsymbolic);j={type:q,name:Z,widths:ee.widths,defaultWidth:ee.defaultWidth,flags:ae,firstChar:Y,lastChar:K};const Se=B.get("Widths");return this.extractDataStructures(B,B,j).then(_e=>{if(Se){const ge=[];let ue=Y;for(let se=0,pe=Se.length;se<pe;se++)ge[ue++]=this.xref.fetchIfRef(Se[se]);_e.widths=ge}else _e.widths=this.buildCharCodeToWidth(ee.widths,_e);return new e.Font(Z,null,_e)})}var te=G.get("FontName"),re=B.get("BaseFont");if((0,r.isString)(te)&&(te=p.Name.get(te)),(0,r.isString)(re)&&(re=p.Name.get(re)),q!=="Type3"){var ie=te&&te.name,de=re&&re.name;ie!==de&&((0,r.info)(`The FontDescriptor's FontName is "${ie}" but should be the same as the Font's BaseFont "${de}".`),ie&&de&&de.startsWith(ie)&&(te=re))}if(te=te||re,!(0,p.isName)(te))throw new r.FormatError("invalid font name");var oe=G.get("FontFile","FontFile2","FontFile3");if(oe&&oe.dict){var le=oe.dict.get("Subtype");le&&(le=le.name);var me=oe.dict.get("Length1"),Pe=oe.dict.get("Length2"),Ce=oe.dict.get("Length3")}j={type:q,name:te.name,subtype:le,file:oe,length1:me,length2:Pe,length3:Ce,loadedName:V.loadedName,composite:W,wideChars:W,fixedPitch:!1,fontMatrix:B.getArray("FontMatrix")||r.FONT_IDENTITY_MATRIX,firstChar:Y||0,lastChar:K||z,bbox:G.getArray("FontBBox"),ascent:G.get("Ascent"),descent:G.get("Descent"),xHeight:G.get("XHeight"),capHeight:G.get("CapHeight"),flags:G.get("Flags"),italicAngle:G.get("ItalicAngle"),isType3Font:!1};var xe;if(W){var be=V.get("Encoding");(0,p.isName)(be)&&(j.cidEncoding=be.name),xe=i.CMapFactory.create({encoding:be,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(Se){j.cMap=Se,j.vertical=j.cMap.vertical})}else xe=Promise.resolve(void 0);return xe.then(()=>this.extractDataStructures(B,V,j)).then(Se=>(this.extractWidths(B,G,Se),q==="Type3"&&(Se.isType3Font=!0),new e.Font(te.name,oe,Se)))}},D.buildFontPaths=function(I,H,V){function B(W){I.renderer.hasBuiltPath(W)||V.send("commonobj",[`${I.loadedName}_path_${W}`,"FontPath",I.renderer.getPathJs(W)])}for(const W of H){B(W.fontChar);const G=W.accent;G&&G.fontChar&&B(G.fontChar)}},D.getFallbackFontDict=function(){if(this._fallbackFontDict)return this._fallbackFontDict;const I=new p.Dict;return I.set("BaseFont",p.Name.get("PDFJS-FallbackFont")),I.set("Type",p.Name.get("FallbackType")),I.set("Subtype",p.Name.get("FallbackType")),I.set("Encoding",p.Name.get("WinAnsiEncoding")),this._fallbackFontDict=I},D}();t.PartialEvaluator=g;var v=function(){function T(D,k,S){this.loadedName=D,this.font=k,this.dict=S,this.type3Loaded=null,this.sent=!1}return T.prototype={send(D){this.sent||(this.sent=!0,D.send("commonobj",[this.loadedName,"Font",this.font.exportData()]))},fallback(D){if(!this.font.data)return;this.font.disableFontFace=!0;const k=this.font.glyphCacheValues;g.buildFontPaths(this.font,k,D)},loadType3Data(D,k,S,R){if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");if(this.type3Loaded)return this.type3Loaded;var E=Object.create(D.options);E.ignoreErrors=!1,E.nativeImageDecoderSupport=r.NativeImageDecoding.NONE;var A=D.clone(E);A.parsingType3Font=!0;for(var C=this.font,y=Promise.resolve(),I=this.dict.get("CharProcs"),H=this.dict.get("Resources")||k,V=I.getKeys(),B=Object.create(null),W=0,G=V.length;W<G;++W){const q=V[W];y=y.then(function(){var z=I.get(q),j=new h.OperatorList;return A.getOperatorList({stream:z,task:R,resources:H,operatorList:j}).then(function(){B[q]=j.getIR(),S.addDependencies(j.dependencies)}).catch(function(Y){(0,r.warn)(`Type3 font resource "${q}" is not available.`);var K=new h.OperatorList;B[q]=K.getIR()})})}return this.type3Loaded=y.then(function(){C.charProcOperatorList=B}),this.type3Loaded}},T}(),s=function(){function T(D){this.state=D,this.stateStack=[]}return T.prototype={save(){var D=this.state;this.stateStack.push(this.state),this.state=D.clone()},restore(){var D=this.stateStack.pop();D&&(this.state=D)},transform(D){this.state.ctm=r.Util.transform(this.state.ctm,D)}},T}(),o=function(){function T(){this.ctm=new Float32Array(r.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.font=null,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.textMatrix=r.IDENTITY_MATRIX.slice(),this.textLineMatrix=r.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}return T.prototype={setTextMatrix:function(k,S,R,E,A,C){var y=this.textMatrix;y[0]=k,y[1]=S,y[2]=R,y[3]=E,y[4]=A,y[5]=C},setTextLineMatrix:function(k,S,R,E,A,C){var y=this.textLineMatrix;y[0]=k,y[1]=S,y[2]=R,y[3]=E,y[4]=A,y[5]=C},translateTextMatrix:function(k,S){var R=this.textMatrix;R[4]=R[0]*k+R[2]*S+R[4],R[5]=R[1]*k+R[3]*S+R[5]},translateTextLineMatrix:function(k,S){var R=this.textLineMatrix;R[4]=R[0]*k+R[2]*S+R[4],R[5]=R[1]*k+R[3]*S+R[5]},calcTextLineMatrixAdvance:function(k,S,R,E,A,C){var y=this.font;if(!y)return null;var I=this.textLineMatrix;if(!(k===I[0]&&S===I[1]&&R===I[2]&&E===I[3]))return null;var H=A-I[4],V=C-I[5];if(y.vertical&&H!==0||!y.vertical&&V!==0)return null;var B,W,G=k*E-S*R;return y.vertical?(B=-V*R/G,W=V*k/G):(B=H*E/G,W=-H*S/G),{width:B,height:W,value:y.vertical?W:B}},calcRenderMatrix:function(k){var S=[this.fontSize*this.textHScale,0,0,this.fontSize,0,this.textRise];return r.Util.transform(k,r.Util.transform(this.textMatrix,S))},carriageReturn:function(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()},clone:function(){var k=Object.create(this);return k.textMatrix=this.textMatrix.slice(),k.textLineMatrix=this.textLineMatrix.slice(),k.fontMatrix=this.fontMatrix.slice(),k}},T}(),u=function(){function T(){this.ctm=new Float32Array(r.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=r.TextRenderingMode.FILL,this.fillColorSpace=O.ColorSpace.singletons.gray,this.strokeColorSpace=O.ColorSpace.singletons.gray}return T.prototype={clone:function(){return Object.create(this)}},T}(),l=function(){var T=(0,w.getLookupTableFactory)(function(S){S.w={id:r.OPS.setLineWidth,numArgs:1,variableArgs:!1},S.J={id:r.OPS.setLineCap,numArgs:1,variableArgs:!1},S.j={id:r.OPS.setLineJoin,numArgs:1,variableArgs:!1},S.M={id:r.OPS.setMiterLimit,numArgs:1,variableArgs:!1},S.d={id:r.OPS.setDash,numArgs:2,variableArgs:!1},S.ri={id:r.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},S.i={id:r.OPS.setFlatness,numArgs:1,variableArgs:!1},S.gs={id:r.OPS.setGState,numArgs:1,variableArgs:!1},S.q={id:r.OPS.save,numArgs:0,variableArgs:!1},S.Q={id:r.OPS.restore,numArgs:0,variableArgs:!1},S.cm={id:r.OPS.transform,numArgs:6,variableArgs:!1},S.m={id:r.OPS.moveTo,numArgs:2,variableArgs:!1},S.l={id:r.OPS.lineTo,numArgs:2,variableArgs:!1},S.c={id:r.OPS.curveTo,numArgs:6,variableArgs:!1},S.v={id:r.OPS.curveTo2,numArgs:4,variableArgs:!1},S.y={id:r.OPS.curveTo3,numArgs:4,variableArgs:!1},S.h={id:r.OPS.closePath,numArgs:0,variableArgs:!1},S.re={id:r.OPS.rectangle,numArgs:4,variableArgs:!1},S.S={id:r.OPS.stroke,numArgs:0,variableArgs:!1},S.s={id:r.OPS.closeStroke,numArgs:0,variableArgs:!1},S.f={id:r.OPS.fill,numArgs:0,variableArgs:!1},S.F={id:r.OPS.fill,numArgs:0,variableArgs:!1},S["f*"]={id:r.OPS.eoFill,numArgs:0,variableArgs:!1},S.B={id:r.OPS.fillStroke,numArgs:0,variableArgs:!1},S["B*"]={id:r.OPS.eoFillStroke,numArgs:0,variableArgs:!1},S.b={id:r.OPS.closeFillStroke,numArgs:0,variableArgs:!1},S["b*"]={id:r.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},S.n={id:r.OPS.endPath,numArgs:0,variableArgs:!1},S.W={id:r.OPS.clip,numArgs:0,variableArgs:!1},S["W*"]={id:r.OPS.eoClip,numArgs:0,variableArgs:!1},S.BT={id:r.OPS.beginText,numArgs:0,variableArgs:!1},S.ET={id:r.OPS.endText,numArgs:0,variableArgs:!1},S.Tc={id:r.OPS.setCharSpacing,numArgs:1,variableArgs:!1},S.Tw={id:r.OPS.setWordSpacing,numArgs:1,variableArgs:!1},S.Tz={id:r.OPS.setHScale,numArgs:1,variableArgs:!1},S.TL={id:r.OPS.setLeading,numArgs:1,variableArgs:!1},S.Tf={id:r.OPS.setFont,numArgs:2,variableArgs:!1},S.Tr={id:r.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},S.Ts={id:r.OPS.setTextRise,numArgs:1,variableArgs:!1},S.Td={id:r.OPS.moveText,numArgs:2,variableArgs:!1},S.TD={id:r.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},S.Tm={id:r.OPS.setTextMatrix,numArgs:6,variableArgs:!1},S["T*"]={id:r.OPS.nextLine,numArgs:0,variableArgs:!1},S.Tj={id:r.OPS.showText,numArgs:1,variableArgs:!1},S.TJ={id:r.OPS.showSpacedText,numArgs:1,variableArgs:!1},S["'"]={id:r.OPS.nextLineShowText,numArgs:1,variableArgs:!1},S['"']={id:r.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},S.d0={id:r.OPS.setCharWidth,numArgs:2,variableArgs:!1},S.d1={id:r.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},S.CS={id:r.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},S.cs={id:r.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},S.SC={id:r.OPS.setStrokeColor,numArgs:4,variableArgs:!0},S.SCN={id:r.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},S.sc={id:r.OPS.setFillColor,numArgs:4,variableArgs:!0},S.scn={id:r.OPS.setFillColorN,numArgs:33,variableArgs:!0},S.G={id:r.OPS.setStrokeGray,numArgs:1,variableArgs:!1},S.g={id:r.OPS.setFillGray,numArgs:1,variableArgs:!1},S.RG={id:r.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},S.rg={id:r.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},S.K={id:r.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},S.k={id:r.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},S.sh={id:r.OPS.shadingFill,numArgs:1,variableArgs:!1},S.BI={id:r.OPS.beginInlineImage,numArgs:0,variableArgs:!1},S.ID={id:r.OPS.beginImageData,numArgs:0,variableArgs:!1},S.EI={id:r.OPS.endInlineImage,numArgs:1,variableArgs:!1},S.Do={id:r.OPS.paintXObject,numArgs:1,variableArgs:!1},S.MP={id:r.OPS.markPoint,numArgs:1,variableArgs:!1},S.DP={id:r.OPS.markPointProps,numArgs:2,variableArgs:!1},S.BMC={id:r.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},S.BDC={id:r.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},S.EMC={id:r.OPS.endMarkedContent,numArgs:0,variableArgs:!1},S.BX={id:r.OPS.beginCompat,numArgs:0,variableArgs:!1},S.EX={id:r.OPS.endCompat,numArgs:0,variableArgs:!1},S.BM=null,S.BD=null,S.true=null,S.fa=null,S.fal=null,S.fals=null,S.false=null,S.nu=null,S.nul=null,S.null=null});const D=20;function k(S,R,E){this.opMap=T(),this.parser=new n.Parser({lexer:new n.Lexer(S,this.opMap),xref:R}),this.stateManager=E,this.nonProcessedArgs=[],this._numInvalidPathOPS=0}return k.prototype={get savedStatesDepth(){return this.stateManager.stateStack.length},read:function(R){for(var E=R.args;;){var A=this.parser.getObj();if(A instanceof p.Cmd){var C=A.cmd,y=this.opMap[C];if(!y){(0,r.warn)(`Unknown command "${C}".`);continue}var I=y.id,H=y.numArgs,V=E!==null?E.length:0;if(y.variableArgs)V>H&&(0,r.info)(`Command ${C}: expected [0, ${H}] args, but received ${V} args.`);else{if(V!==H){for(var B=this.nonProcessedArgs;V>H;)B.push(E.shift()),V--;for(;V<H&&B.length!==0;)E===null&&(E=[]),E.unshift(B.pop()),V++}if(V<H){const W=`command ${C}: expected ${H} args, but received ${V} args.`;if(I>=r.OPS.moveTo&&I<=r.OPS.endPath&&++this._numInvalidPathOPS>D)throw new r.FormatError(`Invalid ${W}`);(0,r.warn)(`Skipping ${W}`),E!==null&&(E.length=0);continue}}return this.preprocessCommand(I,E),R.fn=I,R.args=E,!0}if(A===p.EOF)return!1;if(A!==null&&(E===null&&(E=[]),E.push(A),E.length>33))throw new r.FormatError("Too many arguments")}},preprocessCommand:function(R,E){switch(R|0){case r.OPS.save:this.stateManager.save();break;case r.OPS.restore:this.stateManager.restore();break;case r.OPS.transform:this.stateManager.transform(E);break}}},k}()},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.CMapFactory=t.IdentityCMap=t.CMap=void 0;var r=a(2),i=a(4),p=a(10),e=a(7),N=a(11),w=["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"];class ${constructor(O=!1){this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=O}addCodespaceRange(O,L,M){this.codespaceRanges[O-1].push(L,M),this.numCodespaceRanges++}mapCidRange(O,L,M){for(;O<=L;)this._map[O++]=M++}mapBfRange(O,L,M){for(var P=M.length-1;O<=L;)this._map[O++]=M,M=M.substring(0,P)+String.fromCharCode(M.charCodeAt(P)+1)}mapBfRangeToArray(O,L,M){const P=M.length;let b=0;for(;O<=L&&b<P;)this._map[O]=M[b++],++O}mapOne(O,L){this._map[O]=L}lookup(O){return this._map[O]}contains(O){return this._map[O]!==void 0}forEach(O){const L=this._map,M=L.length;if(M<=65536)for(let P=0;P<M;P++)L[P]!==void 0&&O(P,L[P]);else for(const P in L)O(P,L[P])}charCodeOf(O){const L=this._map;if(L.length<=65536)return L.indexOf(O);for(const M in L)if(L[M]===O)return M|0;return-1}getMap(){return this._map}readCharCode(O,L,M){let P=0;const b=this.codespaceRanges;for(let _=0,d=b.length;_<d;_++){P=(P<<8|O.charCodeAt(L+_))>>>0;const c=b[_];for(let h=0,f=c.length;h<f;){const g=c[h++],v=c[h++];if(P>=g&&P<=v){M.charcode=P,M.length=_+1;return}}}M.charcode=0,M.length=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 O=0;O<65536;O++)if(this._map[O]!==O)return!1;return!0}}t.CMap=$;class U extends ${constructor(O,L){super(),this.vertical=O,this.addCodespaceRange(L,0,65535)}mapCidRange(O,L,M){(0,r.unreachable)("should not call mapCidRange")}mapBfRange(O,L,M){(0,r.unreachable)("should not call mapBfRange")}mapBfRangeToArray(O,L,M){(0,r.unreachable)("should not call mapBfRangeToArray")}mapOne(O,L){(0,r.unreachable)("should not call mapCidOne")}lookup(O){return Number.isInteger(O)&&O<=65535?O:void 0}contains(O){return Number.isInteger(O)&&O<=65535}forEach(O){for(let L=0;L<=65535;L++)O(L,L)}charCodeOf(O){return Number.isInteger(O)&&O<=65535?O:-1}getMap(){const O=new Array(65536);for(let L=0;L<=65535;L++)O[L]=L;return O}get length(){return 65536}get isIdentityCMap(){(0,r.unreachable)("should not access .isIdentityCMap")}}t.IdentityCMap=U;var m=function(){function O(f,g){for(var v=0,s=0;s<=g;s++)v=v<<8|f[s];return v>>>0}function L(f,g){return g===1?String.fromCharCode(f[0],f[1]):g===3?String.fromCharCode(f[0],f[1],f[2],f[3]):String.fromCharCode.apply(null,f.subarray(0,g+1))}function M(f,g,v){for(var s=0,o=v;o>=0;o--)s+=f[o]+g[o],f[o]=s&255,s>>=8}function P(f,g){for(var v=1,s=g;s>=0&&v>0;s--)v+=f[s],f[s]=v&255,v>>=8}var b=16,_=19;function d(f){this.buffer=f,this.pos=0,this.end=f.length,this.tmpBuf=new Uint8Array(_)}d.prototype={readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]},readNumber(){var f=0,g;do{var v=this.readByte();if(v<0)throw new r.FormatError("unexpected EOF in bcmap");g=!(v&128),f=f<<7|v&127}while(!g);return f},readSigned(){var f=this.readNumber();return f&1?~(f>>>1):f>>>1},readHex(f,g){f.set(this.buffer.subarray(this.pos,this.pos+g+1)),this.pos+=g+1},readHexNumber(f,g){var v,s=this.tmpBuf,o=0;do{var u=this.readByte();if(u<0)throw new r.FormatError("unexpected EOF in bcmap");v=!(u&128),s[o++]=u&127}while(!v);for(var l=g,F=0,T=0;l>=0;){for(;T<8&&s.length>0;)F=s[--o]<<T|F,T+=7;f[l]=F&255,l--,F>>=8,T-=8}},readHexSigned(f,g){this.readHexNumber(f,g);for(var v=f[g]&1?255:0,s=0,o=0;o<=g;o++)s=(s&1)<<8|f[o],f[o]=s>>1^v},readString(){for(var f=this.readNumber(),g="",v=0;v<f;v++)g+=String.fromCharCode(this.readNumber());return g}};function c(f,g,v){return new Promise(function(s,o){var u=new d(f),l=u.readByte();g.vertical=!!(l&1);for(var F=null,T=new Uint8Array(b),D=new Uint8Array(b),k=new Uint8Array(b),S=new Uint8Array(b),R=new Uint8Array(b),E,A;(A=u.readByte())>=0;){var C=A>>5;if(C===7){switch(A&31){case 0:u.readString();break;case 1:F=u.readString();break}continue}var y=!!(A&16),I=A&15;if(I+1>b)throw new Error("processBinaryCMap: Invalid dataSize.");var H=1,V=u.readNumber(),B;switch(C){case 0:for(u.readHex(T,I),u.readHexNumber(D,I),M(D,T,I),g.addCodespaceRange(I+1,O(T,I),O(D,I)),B=1;B<V;B++)P(D,I),u.readHexNumber(T,I),M(T,D,I),u.readHexNumber(D,I),M(D,T,I),g.addCodespaceRange(I+1,O(T,I),O(D,I));break;case 1:for(u.readHex(T,I),u.readHexNumber(D,I),M(D,T,I),u.readNumber(),B=1;B<V;B++)P(D,I),u.readHexNumber(T,I),M(T,D,I),u.readHexNumber(D,I),M(D,T,I),u.readNumber();break;case 2:for(u.readHex(k,I),E=u.readNumber(),g.mapOne(O(k,I),E),B=1;B<V;B++)P(k,I),y||(u.readHexNumber(R,I),M(k,R,I)),E=u.readSigned()+(E+1),g.mapOne(O(k,I),E);break;case 3:for(u.readHex(T,I),u.readHexNumber(D,I),M(D,T,I),E=u.readNumber(),g.mapCidRange(O(T,I),O(D,I),E),B=1;B<V;B++)P(D,I),y?T.set(D):(u.readHexNumber(T,I),M(T,D,I)),u.readHexNumber(D,I),M(D,T,I),E=u.readNumber(),g.mapCidRange(O(T,I),O(D,I),E);break;case 4:for(u.readHex(k,H),u.readHex(S,I),g.mapOne(O(k,H),L(S,I)),B=1;B<V;B++)P(k,H),y||(u.readHexNumber(R,H),M(k,R,H)),P(S,I),u.readHexSigned(R,I),M(S,R,I),g.mapOne(O(k,H),L(S,I));break;case 5:for(u.readHex(T,H),u.readHexNumber(D,H),M(D,T,H),u.readHex(S,I),g.mapBfRange(O(T,H),O(D,H),L(S,I)),B=1;B<V;B++)P(D,H),y?T.set(D):(u.readHexNumber(T,H),M(T,D,H)),u.readHexNumber(D,H),M(D,T,H),u.readHex(S,I),g.mapBfRange(O(T,H),O(D,H),L(S,I));break;default:o(new Error("processBinaryCMap: Unknown type: "+C));return}}if(F){s(v(F));return}s(g)})}function h(){}return h.prototype={process:c},h}(),n=function(){function O(o){for(var u=0,l=0;l<o.length;l++)u=u<<8|o.charCodeAt(l);return u>>>0}function L(o){if(!(0,r.isString)(o))throw new r.FormatError("Malformed CMap: expected string.")}function M(o){if(!Number.isInteger(o))throw new r.FormatError("Malformed CMap: expected int.")}function P(o,u){for(;;){var l=u.getObj();if((0,i.isEOF)(l))break;if((0,i.isCmd)(l,"endbfchar"))return;L(l);var F=O(l);l=u.getObj(),L(l);var T=l;o.mapOne(F,T)}}function b(o,u){for(;;){var l=u.getObj();if((0,i.isEOF)(l))break;if((0,i.isCmd)(l,"endbfrange"))return;L(l);var F=O(l);l=u.getObj(),L(l);var T=O(l);if(l=u.getObj(),Number.isInteger(l)||(0,r.isString)(l)){var D=Number.isInteger(l)?String.fromCharCode(l):l;o.mapBfRange(F,T,D)}else if((0,i.isCmd)(l,"[")){l=u.getObj();for(var k=[];!(0,i.isCmd)(l,"]")&&!(0,i.isEOF)(l);)k.push(l),l=u.getObj();o.mapBfRangeToArray(F,T,k)}else break}throw new r.FormatError("Invalid bf range.")}function _(o,u){for(;;){var l=u.getObj();if((0,i.isEOF)(l))break;if((0,i.isCmd)(l,"endcidchar"))return;L(l);var F=O(l);l=u.getObj(),M(l);var T=l;o.mapOne(F,T)}}function d(o,u){for(;;){var l=u.getObj();if((0,i.isEOF)(l))break;if((0,i.isCmd)(l,"endcidrange"))return;L(l);var F=O(l);l=u.getObj(),L(l);var T=O(l);l=u.getObj(),M(l);var D=l;o.mapCidRange(F,T,D)}}function c(o,u){for(;;){var l=u.getObj();if((0,i.isEOF)(l))break;if((0,i.isCmd)(l,"endcodespacerange"))return;if(!(0,r.isString)(l))break;var F=O(l);if(l=u.getObj(),!(0,r.isString)(l))break;var T=O(l);o.addCodespaceRange(l.length,F,T)}throw new r.FormatError("Invalid codespace range.")}function h(o,u){var l=u.getObj();Number.isInteger(l)&&(o.vertical=!!l)}function f(o,u){var l=u.getObj();(0,i.isName)(l)&&(0,r.isString)(l.name)&&(o.name=l.name)}function g(o,u,l,F){var T,D;e:for(;;)try{var k=u.getObj();if((0,i.isEOF)(k))break;if((0,i.isName)(k))k.name==="WMode"?h(o,u):k.name==="CMapName"&&f(o,u),T=k;else if((0,i.isCmd)(k))switch(k.cmd){case"endcmap":break e;case"usecmap":(0,i.isName)(T)&&(D=T.name);break;case"begincodespacerange":c(o,u);break;case"beginbfchar":P(o,u);break;case"begincidchar":_(o,u);break;case"beginbfrange":b(o,u);break;case"begincidrange":d(o,u);break}}catch(S){if(S instanceof e.MissingDataException)throw S;(0,r.warn)("Invalid cMap data: "+S);continue}return!F&&D&&(F=D),F?v(o,l,F):Promise.resolve(o)}function v(o,u,l){return s(l,u).then(function(F){if(o.useCMap=F,o.numCodespaceRanges===0){for(var T=o.useCMap.codespaceRanges,D=0;D<T.length;D++)o.codespaceRanges[D]=T[D].slice();o.numCodespaceRanges=o.useCMap.numCodespaceRanges}return o.useCMap.forEach(function(k,S){o.contains(k)||o.mapOne(k,o.useCMap.lookup(k))}),o})}function s(o,u){return o==="Identity-H"?Promise.resolve(new U(!1,2)):o==="Identity-V"?Promise.resolve(new U(!0,2)):w.includes(o)?u?u(o).then(function(l){var F=l.cMapData,T=l.compressionType,D=new $(!0);if(T===r.CMapCompressionType.BINARY)return new m().process(F,D,function(S){return v(D,u,S)});if(T===r.CMapCompressionType.NONE){var k=new p.Lexer(new N.Stream(F));return g(D,k,u,null)}return Promise.reject(new Error("TODO: Only BINARY/NONE CMap compression is currently supported."))}):Promise.reject(new Error("Built-in CMap parameters are not provided.")):Promise.reject(new Error("Unknown CMap name: "+o))}return{async create(o){var u=o.encoding,l=o.fetchBuiltInCMap,F=o.useCMap;if((0,i.isName)(u))return s(u.name,l);if((0,i.isStream)(u)){var T=new $,D=new p.Lexer(u);return g(T,D,l,F).then(function(k){return k.isIdentityCMap?s(k.name,l):k})}throw new Error("Encoding required.")}}}();t.CMapFactory=n},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.getFontType=c,t.IdentityToUnicodeMap=t.ToUnicodeMap=t.FontFlags=t.Font=t.ErrorFont=t.SEAC_ANALYSIS_ENABLED=void 0;var r=a(2),i=a(28),p=a(31),e=a(30),N=a(32),w=a(33),$=a(7),U=a(34),m=a(26),n=a(11),J=a(35);const O=[[57344,63743],[1048576,1114109]];var L=1e3,M=!0;t.SEAC_ANALYSIS_ENABLED=M;var P={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};t.FontFlags=P;var b=[".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 _(D){if(D.fontMatrix&&D.fontMatrix[0]!==r.FONT_IDENTITY_MATRIX[0]){var k=.001/D.fontMatrix[0],S=D.widths;for(var R in S)S[R]*=k;D.defaultWidth*=k}}function d(D,k){if(!D.hasIncludedToUnicodeMap&&!D.hasEncoding&&k!==D.defaultEncoding&&!(D.toUnicode instanceof v)){var S=[],R=(0,p.getGlyphsUnicode)();for(var E in k){var A=k[E],C=(0,w.getUnicodeForGlyph)(A,R);C!==-1&&(S[E]=String.fromCharCode(C))}D.toUnicode.amend(S)}}function c(D,k){switch(D){case"Type1":return k==="Type1C"?r.FontType.TYPE1C:r.FontType.TYPE1;case"CIDFontType0":return k==="CIDFontType0C"?r.FontType.CIDFONTTYPE0C:r.FontType.CIDFONTTYPE0;case"OpenType":return r.FontType.OPENTYPE;case"TrueType":return r.FontType.TRUETYPE;case"CIDFontType2":return r.FontType.CIDFONTTYPE2;case"MMType1":return r.FontType.MMTYPE1;case"Type0":return r.FontType.TYPE0;default:return r.FontType.UNKNOWN}}function h(D,k){if(k[D]!==void 0)return D;var S=(0,w.getUnicodeForGlyph)(D,k);if(S!==-1){for(var R in k)if(k[R]===S)return R}return(0,r.info)("Unable to recover a standard glyph name for: "+D),D}var f=function(){function k(S,R,E,A,C,y,I,H){this.fontChar=S,this.unicode=R,this.accent=E,this.width=A,this.vmetric=C,this.operatorListId=y,this.isSpace=I,this.isInFont=H}return k.prototype.matchesForCache=function(S,R,E,A,C,y,I,H){return this.fontChar===S&&this.unicode===R&&this.accent===E&&this.width===A&&this.vmetric===C&&this.operatorListId===y&&this.isSpace===I&&this.isInFont===H},k}(),g=function(){function k(S=[]){this._map=S}return k.prototype={get length(){return this._map.length},forEach(S){for(var R in this._map)S(R,this._map[R].charCodeAt(0))},has(S){return this._map[S]!==void 0},get(S){return this._map[S]},charCodeOf(S){const R=this._map;if(R.length<=65536)return R.indexOf(S);for(const E in R)if(R[E]===S)return E|0;return-1},amend(S){for(var R in S)this._map[R]=S[R]}},k}();t.ToUnicodeMap=g;var v=function(){function k(S,R){this.firstChar=S,this.lastChar=R}return k.prototype={get length(){return this.lastChar+1-this.firstChar},forEach(S){for(var R=this.firstChar,E=this.lastChar;R<=E;R++)S(R,R)},has(S){return this.firstChar<=S&&S<=this.lastChar},get(S){if(this.firstChar<=S&&S<=this.lastChar)return String.fromCharCode(S)},charCodeOf(S){return Number.isInteger(S)&&S>=this.firstChar&&S<=this.lastChar?S:-1},amend(S){(0,r.unreachable)("Should not call amend()")}},k}();t.IdentityToUnicodeMap=v;var s=function(){function k(y,I,H){y[I]=H>>8&255,y[I+1]=H&255}function S(y,I,H){y[I]=H>>24&255,y[I+1]=H>>16&255,y[I+2]=H>>8&255,y[I+3]=H&255}function R(y,I,H){var V,B;if(H instanceof Uint8Array)y.set(H,I);else if(typeof H=="string")for(V=0,B=H.length;V<B;V++)y[I++]=H.charCodeAt(V)&255;else for(V=0,B=H.length;V<B;V++)y[I++]=H[V]&255}function E(y){this.sfnt=y,this.tables=Object.create(null)}E.getSearchParams=function(I,H){for(var V=1,B=0;(V^I)>V;)V<<=1,B++;var W=V*H;return{range:W,entry:B,rangeShift:H*I-W}};var A=12,C=16;return E.prototype={toArray:function(){var I=this.sfnt,H=this.tables,V=Object.keys(H);V.sort();var B=V.length,W,G,q,z,j,Y=A+B*C,K=[Y];for(W=0;W<B;W++){z=H[V[W]];var Z=(z.length+3&-4)>>>0;Y+=Z,K.push(Y)}var ee=new Uint8Array(Y);for(W=0;W<B;W++)z=H[V[W]],R(ee,K[W],z);I==="true"&&(I=(0,r.string32)(65536)),ee[0]=I.charCodeAt(0)&255,ee[1]=I.charCodeAt(1)&255,ee[2]=I.charCodeAt(2)&255,ee[3]=I.charCodeAt(3)&255,k(ee,4,B);var ne=E.getSearchParams(B,16);for(k(ee,6,ne.range),k(ee,8,ne.entry),k(ee,10,ne.rangeShift),Y=A,W=0;W<B;W++){j=V[W],ee[Y]=j.charCodeAt(0)&255,ee[Y+1]=j.charCodeAt(1)&255,ee[Y+2]=j.charCodeAt(2)&255,ee[Y+3]=j.charCodeAt(3)&255;var ae=0;for(G=K[W],q=K[W+1];G<q;G+=4){var te=(0,$.readUint32)(ee,G);ae=ae+te>>>0}S(ee,Y+4,ae),S(ee,Y+8,K[W]),S(ee,Y+12,H[j].length),Y+=C}return ee},addTable:function(I,H){if(I in this.tables)throw new Error("Table "+I+" already exists");this.tables[I]=H}},E}(),o=function(){function k(ae,te,re){var ie;this.name=ae,this.loadedName=re.loadedName,this.isType3Font=re.isType3Font,this.sizes=[],this.missingFile=!1,this.glyphCache=Object.create(null),this.isSerifFont=!!(re.flags&P.Serif),this.isSymbolicFont=!!(re.flags&P.Symbolic),this.isMonospace=!!(re.flags&P.FixedPitch);var de=re.type,oe=re.subtype;this.type=de,this.subtype=oe;let le="sans-serif";if(this.isMonospace?le="monospace":this.isSerifFont&&(le="serif"),this.fallbackName=le,this.differences=re.differences,this.widths=re.widths,this.defaultWidth=re.defaultWidth,this.composite=re.composite,this.wideChars=re.wideChars,this.cMap=re.cMap,this.ascent=re.ascent/L,this.descent=re.descent/L,this.fontMatrix=re.fontMatrix,this.bbox=re.bbox,this.defaultEncoding=re.defaultEncoding,this.toUnicode=re.toUnicode,this.fallbackToUnicode=re.fallbackToUnicode||new g,this.toFontChar=[],re.type==="Type3"){for(ie=0;ie<256;ie++)this.toFontChar[ie]=this.differences[ie]||re.defaultEncoding[ie];this.fontType=r.FontType.TYPE3;return}if(this.cidEncoding=re.cidEncoding,this.vertical=re.vertical,this.vertical&&(this.vmetrics=re.vmetrics,this.defaultVMetrics=re.defaultVMetrics),!te||te.isEmpty){te&&(0,r.warn)('Font file is empty in "'+ae+'" ('+this.loadedName+")"),this.fallbackToSystemFont();return}[de,oe]=G(te,re),(de!==this.type||oe!==this.subtype)&&(0,r.info)(`Inconsistent font file Type/SubType, expected: ${this.type}/${this.subtype} but found: ${de}/${oe}.`);try{var me;switch(de){case"MMType1":(0,r.info)("MMType1 font ("+ae+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var Pe=oe==="Type1C"||oe==="CIDFontType0C"?new T(te,re):new F(ae,te,re);_(re),me=this.convert(ae,Pe,re);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",me=this.checkAndRepair(ae,te,re),this.isOpenType&&(_(re),de="OpenType");break;default:throw new r.FormatError(`Font ${de} is not supported`)}}catch(Ce){(0,r.warn)(Ce),this.fallbackToSystemFont();return}this.data=me,this.fontType=c(de,oe),this.fontMatrix=re.fontMatrix,this.widths=re.widths,this.defaultWidth=re.defaultWidth,this.toUnicode=re.toUnicode,this.encoding=re.baseEncoding,this.seacMap=re.seacMap}k.getFontID=function(){var ae=1;return function(){return String(ae++)}}();function S(ae,te){return(ae<<8)+te}function R(ae,te,re){ae[te+1]=re,ae[te]=re>>>8}function E(ae,te){var re=(ae<<8)+te;return re&32768?re-65536:re}function A(ae,te,re,ie){return(ae<<24)+(te<<16)+(re<<8)+ie}function C(ae){return String.fromCharCode(ae>>8&255,ae&255)}function y(ae){return ae>32767?ae=32767:ae<-32768&&(ae=-32768),String.fromCharCode(ae>>8&255,ae&255)}function I(ae){var te=ae.peekBytes(4);return(0,$.readUint32)(te,0)===65536||(0,r.bytesToString)(te)==="true"}function H(ae){const te=ae.peekBytes(4);return(0,r.bytesToString)(te)==="ttcf"}function V(ae){var te=ae.peekBytes(4);return(0,r.bytesToString)(te)==="OTTO"}function B(ae){var te=ae.peekBytes(2);return te[0]===37&&te[1]===33||te[0]===128&&te[1]===1}function W(ae){const te=ae.peekBytes(4);return te[0]>=1&&te[3]>=1&&te[3]<=4}function G(ae,{type:te,subtype:re,composite:ie}){let de,oe;return I(ae)||H(ae)?ie?de="CIDFontType2":de="TrueType":V(ae)?ie?de="CIDFontType2":de="OpenType":B(ae)?ie?de="CIDFontType0":de=te==="MMType1"?"MMType1":"Type1":W(ae)?ie?(de="CIDFontType0",oe="CIDFontType0C"):(de=te==="MMType1"?"MMType1":"Type1",oe="Type1C"):((0,r.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),de=te,oe=re),[de,oe]}function q(ae,te,re){for(var ie=[],de,oe=0,le=ae.length;oe<le;oe++)de=(0,w.getUnicodeForGlyph)(ae[oe],te),de!==-1&&(ie[oe]=de);for(var me in re)de=(0,w.getUnicodeForGlyph)(re[me],te),de!==-1&&(ie[+me]=de);return ie}function z(ae,te,re){var ie=Object.create(null),de=[],oe=0,le=O[oe][0],me=O[oe][1];for(var Pe in ae){Pe|=0;var Ce=ae[Pe];if(te(Ce)){if(le>me){if(oe++,oe>=O.length){(0,r.warn)("Ran out of space in font private use area.");break}le=O[oe][0],me=O[oe][1]}var xe=le++;Ce===0&&(Ce=re),ie[xe]=Ce,de[Pe]=xe}}return{toFontChar:de,charCodeToGlyphId:ie,nextAvailableFontCharCode:le}}function j(ae,te){var re=[];for(var ie in ae)ae[ie]>=te||re.push({fontCharCode:ie|0,glyphId:ae[ie]});re.length===0&&re.push({fontCharCode:0,glyphId:0}),re.sort(function(be,Se){return be.fontCharCode-Se.fontCharCode});for(var de=[],oe=re.length,le=0;le<oe;){var me=re[le].fontCharCode,Pe=[re[le].glyphId];++le;for(var Ce=me;le<oe&&Ce+1===re[le].fontCharCode&&(Pe.push(re[le].glyphId),++Ce,++le,Ce!==65535););de.push([me,Ce,Pe])}return de}function Y(ae,te){var re=j(ae,te),ie=re[re.length-1][1]>65535?2:1,de="\0\0"+C(ie)+"\0\0"+(0,r.string32)(4+ie*8),oe,le,me,Pe;for(oe=re.length-1;oe>=0&&!(re[oe][0]<=65535);--oe);var Ce=oe+1;re[oe][0]<65535&&re[oe][1]===65535&&(re[oe][1]=65534);var xe=re[oe][1]<65535?1:0,be=Ce+xe,Se=s.getSearchParams(be,2),_e="",ge="",ue="",se="",pe="",we=0,Te,ke,Fe,Le;for(oe=0,le=Ce;oe<le;oe++){Te=re[oe],ke=Te[0],Fe=Te[1],_e+=C(ke),ge+=C(Fe),Le=Te[2];var he=!0;for(me=1,Pe=Le.length;me<Pe;++me)if(Le[me]!==Le[me-1]+1){he=!1;break}if(he){var ve=Le[0];ue+=C(ve-ke&65535),se+=C(0)}else{var Ee=(be-oe)*2+we*2;for(we+=Fe-ke+1,ue+=C(0),se+=C(Ee),me=0,Pe=Le.length;me<Pe;++me)pe+=C(Le[me])}}xe>0&&(ge+="ÿÿ",_e+="ÿÿ",ue+="\0",se+="\0\0");var ye="\0\0"+C(2*be)+C(Se.range)+C(Se.entry)+C(Se.rangeShift)+ge+"\0\0"+_e+ue+se+pe,Oe="",Ne="";if(ie>1){for(de+=`\0\0
|
|
13
|
+
`+(0,r.string32)(4+ie*8+4+ye.length),Oe="",oe=0,le=re.length;oe<le;oe++){Te=re[oe],ke=Te[0],Le=Te[2];var Ge=Le[0];for(me=1,Pe=Le.length;me<Pe;++me)Le[me]!==Le[me-1]+1&&(Fe=Te[0]+me-1,Oe+=(0,r.string32)(ke)+(0,r.string32)(Fe)+(0,r.string32)(Ge),ke=Fe+1,Ge=Le[me]);Oe+=(0,r.string32)(ke)+(0,r.string32)(Te[1])+(0,r.string32)(Ge)}Ne="\0\f\0\0"+(0,r.string32)(Oe.length+16)+"\0\0\0\0"+(0,r.string32)(Oe.length/12)}return de+"\0"+C(ye.length+4)+ye+Ne+Oe}function K(ae){var te=new n.Stream(ae.data),re=te.getUint16();te.getBytes(60);var ie=te.getUint16();if(re<4&&ie&768)return!1;var de=te.getUint16(),oe=te.getUint16();if(de>oe)return!1;te.getBytes(6);var le=te.getUint16();return le===0?!1:(ae.data[8]=ae.data[9]=0,!0)}function Z(ae,te,re){re=re||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};var ie=0,de=0,oe=0,le=0,me=null,Pe=0;if(te){for(var Ce in te){Ce|=0,(me>Ce||!me)&&(me=Ce),Pe<Ce&&(Pe=Ce);var xe=(0,w.getUnicodeRangeFor)(Ce);if(xe<32)ie|=1<<xe;else if(xe<64)de|=1<<xe-32;else if(xe<96)oe|=1<<xe-64;else if(xe<123)le|=1<<xe-96;else throw new r.FormatError("Unicode ranges Bits > 123 are reserved for internal usage")}Pe>65535&&(Pe=65535)}else me=0,Pe=255;var be=ae.bbox||[0,0,0,0],Se=re.unitsPerEm||1/(ae.fontMatrix||r.FONT_IDENTITY_MATRIX)[0],_e=ae.ascentScaled?1:Se/L,ge=re.ascent||Math.round(_e*(ae.ascent||be[3])),ue=re.descent||Math.round(_e*(ae.descent||be[1]));ue>0&&ae.descent>0&&be[1]<0&&(ue=-ue);var se=re.yMax||ge,pe=-re.yMin||-ue;return"\0$ô\0\0\0»\0\0\0»\0\0ß\x001\0\0\0\0"+String.fromCharCode(ae.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,r.string32)(ie)+(0,r.string32)(de)+(0,r.string32)(oe)+(0,r.string32)(le)+"*21*"+C(ae.italicAngle?1:0)+C(me||ae.firstChar)+C(Pe||ae.lastChar)+C(ge)+C(ue)+"\0d"+C(se)+C(pe)+"\0\0\0\0\0\0\0\0"+C(ae.xHeight)+C(ae.capHeight)+C(0)+C(me||ae.firstChar)+"\0"}function ee(ae){var te=Math.floor(ae.italicAngle*65536);return"\0\0\0"+(0,r.string32)(te)+"\0\0\0\0"+(0,r.string32)(ae.fixedPitch)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function ne(ae,te){te||(te=[[],[]]);var re=[te[0][0]||"Original licence",te[0][1]||ae,te[0][2]||"Unknown",te[0][3]||"uniqueID",te[0][4]||ae,te[0][5]||"Version 0.11",te[0][6]||"",te[0][7]||"Unknown",te[0][8]||"Unknown",te[0][9]||"Unknown"],ie=[],de,oe,le,me,Pe;for(de=0,oe=re.length;de<oe;de++){Pe=te[1][de]||re[de];var Ce=[];for(le=0,me=Pe.length;le<me;le++)Ce.push(C(Pe.charCodeAt(le)));ie.push(Ce.join(""))}var xe=[re,ie],be=["\0","\0"],Se=["\0\0","\0"],_e=["\0\0"," "],ge=re.length*be.length,ue="\0\0"+C(ge)+C(ge*12+6),se=0;for(de=0,oe=be.length;de<oe;de++){var pe=xe[de];for(le=0,me=pe.length;le<me;le++){Pe=pe[le];var we=be[de]+Se[de]+_e[de]+C(le)+C(Pe.length)+C(se);ue+=we,se+=Pe.length}}return ue+=re.join("")+ie.join(""),ue}return k.prototype={name:null,font:null,mimetype:null,encoding:null,disableFontFace:!1,get renderer(){var ae=U.FontRendererFactory.create(this,M);return(0,r.shadow)(this,"renderer",ae)},exportData:function(){var te={};for(var re in this)this.hasOwnProperty(re)&&(te[re]=this[re]);return te},fallbackToSystemFont:function(){this.missingFile=!0;var te,re,ie=this.name,de=this.type,oe=this.subtype;let le=ie.replace(/[,_]/g,"-").replace(/\s/g,"");var me=(0,N.getStdFontMap)(),Pe=(0,N.getNonStdFontMap)(),Ce=!!me[le]||!!(Pe[le]&&me[Pe[le]]);if(le=me[le]||Pe[le]||le,this.bold=le.search(/bold/gi)!==-1,this.italic=le.search(/oblique/gi)!==-1||le.search(/italic/gi)!==-1,this.black=ie.search(/Black/g)!==-1,this.remeasure=Object.keys(this.widths).length>0,Ce&&de==="CIDFontType2"&&this.cidEncoding.startsWith("Identity-")){const Se=(0,N.getGlyphMapForStandardFonts)(),_e=[];for(te in Se)_e[+te]=Se[te];if(/Arial-?Black/i.test(ie)){var xe=(0,N.getSupplementalGlyphMapForArialBlack)();for(te in xe)_e[+te]=xe[te]}else if(/Calibri/i.test(ie)){const ge=(0,N.getSupplementalGlyphMapForCalibri)();for(te in ge)_e[+te]=ge[te]}var be=this.toUnicode instanceof v;be||this.toUnicode.forEach(function(ge,ue){_e[+ge]=ue}),this.toFontChar=_e,this.toUnicode=new g(_e)}else if(/Symbol/i.test(le))this.toFontChar=q(e.SymbolSetEncoding,(0,p.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(le))/Wingdings/i.test(ie)&&(0,r.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=q(e.ZapfDingbatsEncoding,(0,p.getDingbatsGlyphsUnicode)(),this.differences);else if(Ce)this.toFontChar=q(this.defaultEncoding,(0,p.getGlyphsUnicode)(),this.differences);else{const Se=(0,p.getGlyphsUnicode)(),_e=[];if(this.toUnicode.forEach((ge,ue)=>{if(!this.composite){var se=this.differences[ge]||this.defaultEncoding[ge];re=(0,w.getUnicodeForGlyph)(se,Se),re!==-1&&(ue=re)}_e[+ge]=ue}),this.composite&&this.toUnicode instanceof v&&/Verdana/i.test(ie)){const ge=(0,N.getGlyphMapForStandardFonts)();for(te in ge)_e[+te]=ge[te]}this.toFontChar=_e}this.loadedName=le.split("-")[0],this.fontType=c(de,oe)},checkAndRepair:function(te,re,ie){const de=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function oe(Me,Ve){const Je=Object.create(null);Je["OS/2"]=null,Je.cmap=null,Je.head=null,Je.hhea=null,Je.hmtx=null,Je.maxp=null,Je.name=null,Je.post=null;for(let We=0;We<Ve;We++){const Ye=le(re);de.includes(Ye.tag)&&Ye.length!==0&&(Je[Ye.tag]=Ye)}return Je}function le(Me){var Ve=(0,r.bytesToString)(Me.getBytes(4)),Je=Me.getInt32()>>>0,We=Me.getInt32()>>>0,Ye=Me.getInt32()>>>0,Ke=Me.pos;Me.pos=Me.start?Me.start:0,Me.skip(We);var et=Me.getBytes(Ye);return Me.pos=Ke,Ve==="head"&&(et[8]=et[9]=et[10]=et[11]=0,et[17]|=32),{tag:Ve,checksum:Je,length:Ye,offset:We,data:et}}function me(Me){return{version:(0,r.bytesToString)(Me.getBytes(4)),numTables:Me.getUint16(),searchRange:Me.getUint16(),entrySelector:Me.getUint16(),rangeShift:Me.getUint16()}}function Pe(Me){const Ve=(0,r.bytesToString)(Me.getBytes(4));(0,r.assert)(Ve==="ttcf","Must be a TrueType Collection font.");const Je=Me.getUint16(),We=Me.getUint16(),Ye=Me.getInt32()>>>0,Ke=[];for(let qe=0;qe<Ye;qe++)Ke.push(Me.getInt32()>>>0);const et={ttcTag:Ve,majorVersion:Je,minorVersion:We,numFonts:Ye,offsetTable:Ke};switch(Je){case 1:return et;case 2:return et.dsigTag=Me.getInt32()>>>0,et.dsigLength=Me.getInt32()>>>0,et.dsigOffset=Me.getInt32()>>>0,et}throw new r.FormatError(`Invalid TrueType Collection majorVersion: ${Je}.`)}function Ce(Me,Ve){const{numFonts:Je,offsetTable:We}=Pe(Me);for(let Ye=0;Ye<Je;Ye++){Me.pos=(Me.start||0)+We[Ye];const Ke=me(Me),et=oe(Me,Ke.numTables);if(!et.name)throw new r.FormatError('TrueType Collection font must contain a "name" table.');const qe=se(et.name);for(let st=0,at=qe.length;st<at;st++)for(let ct=0,ot=qe[st].length;ct<ot;ct++){const Et=qe[st][ct];if(Et&&Et.replace(/\s/g,"")===Ve)return{header:Ke,tables:et}}}throw new r.FormatError(`TrueType Collection does not contain "${Ve}" font.`)}function xe(Me,Ve,Je,We){if(!Me)return(0,r.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var Ye,Ke=(Ve.start?Ve.start:0)+Me.offset;Ve.pos=Ke,Ve.getUint16();for(var et=Ve.getUint16(),qe,st=!1,at=0;at<et;at++){var ct=Ve.getUint16(),ot=Ve.getUint16(),Et=Ve.getInt32()>>>0,Ct=!1;if(!(qe&&qe.platformId===ct&&qe.encodingId===ot)&&(ct===0&&ot===0||ct===1&&ot===0?Ct=!0:ct===3&&ot===1&&(We||!qe)?(Ct=!0,Je||(st=!0)):Je&&ct===3&&ot===0&&(Ct=!0,st=!0),Ct&&(qe={platformId:ct,encodingId:ot,offset:Et}),st))break}if(qe&&(Ve.pos=Ke+qe.offset),!qe||Ve.peekByte()===-1)return(0,r.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var gt=Ve.getUint16();Ve.getUint16(),Ve.getUint16();var mt=!1,_t=[],Qe,Nt;if(gt===0){for(Qe=0;Qe<256;Qe++){var nt=Ve.getByte();nt&&_t.push({charCode:Qe,glyphId:nt})}mt=!0}else if(gt===4){var Rt=Ve.getUint16()>>1;Ve.getBytes(6);var ut,Pt=[];for(ut=0;ut<Rt;ut++)Pt.push({end:Ve.getUint16()});for(Ve.getUint16(),ut=0;ut<Rt;ut++)Pt[ut].start=Ve.getUint16();for(ut=0;ut<Rt;ut++)Pt[ut].delta=Ve.getUint16();var jt=0;for(ut=0;ut<Rt;ut++){Ye=Pt[ut];var Xt=Ve.getUint16();if(!Xt){Ye.offsetIndex=-1;continue}var Gt=(Xt>>1)-(Rt-ut);Ye.offsetIndex=Gt,jt=Math.max(jt,Gt+Ye.end-Ye.start+1)}var Yt=[];for(Qe=0;Qe<jt;Qe++)Yt.push(Ve.getUint16());for(ut=0;ut<Rt;ut++){Ye=Pt[ut],Ke=Ye.start;var Dt=Ye.end,It=Ye.delta;for(Gt=Ye.offsetIndex,Qe=Ke;Qe<=Dt;Qe++)Qe!==65535&&(Nt=Gt<0?Qe:Yt[Gt+Qe-Ke],Nt=Nt+It&65535,_t.push({charCode:Qe,glyphId:Nt}))}}else if(gt===6){var $t=Ve.getUint16(),gr=Ve.getUint16();for(Qe=0;Qe<gr;Qe++){Nt=Ve.getUint16();var Lr=$t+Qe;_t.push({charCode:Lr,glyphId:Nt})}}else return(0,r.warn)("cmap table has unsupported format: "+gt),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};for(_t.sort(function(rr,yr){return rr.charCode-yr.charCode}),at=1;at<_t.length;at++)_t[at-1].charCode===_t[at].charCode&&(_t.splice(at,1),at--);return{platformId:qe.platformId,encodingId:qe.encodingId,mappings:_t,hasShortCmap:mt}}function be(Me,Ve,Je,We,Ye){if(!Ve){Je&&(Je.data=null);return}Me.pos=(Me.start?Me.start:0)+Ve.offset,Me.pos+=4,Me.pos+=2,Me.pos+=2,Me.pos+=2,Me.pos+=2,Me.pos+=2,Me.pos+=2,Me.pos+=2,Me.pos+=2,Me.pos+=2,Me.pos+=2,Me.pos+=8,Me.pos+=2;var Ke=Me.getUint16();Ke>We&&((0,r.info)("The numOfMetrics ("+Ke+") should not be greater than the numGlyphs ("+We+")"),Ke=We,Ve.data[34]=(Ke&65280)>>8,Ve.data[35]=Ke&255);var et=We-Ke,qe=et-(Je.length-Ke*4>>1);if(qe>0){var st=new Uint8Array(Je.length+qe*2);st.set(Je.data),Ye&&(st[Je.length]=Je.data[2],st[Je.length+1]=Je.data[3]),Je.data=st}}function Se(Me,Ve,Je,We,Ye,Ke){var et={length:0,sizeOfInstructions:0};if(Je-Ve<=12)return et;var qe=Me.subarray(Ve,Je),st=E(qe[0],qe[1]);if(st<0)return st=-1,R(qe,0,st),We.set(qe,Ye),et.length=qe.length,et;var at,ct=10,ot=0;for(at=0;at<st;at++){var Et=qe[ct]<<8|qe[ct+1];ot=Et+1,ct+=2}var Ct=ct,gt=qe[ct]<<8|qe[ct+1];et.sizeOfInstructions=gt,ct+=2+gt;var mt=ct,_t=0;for(at=0;at<ot;at++){var Qe=qe[ct++];Qe&192&&(qe[ct-1]=Qe&63);let Rt=2;Qe&2?Rt=1:Qe&16&&(Rt=0);let ut=2;Qe&4?ut=1:Qe&32&&(ut=0);const Pt=Rt+ut;if(_t+=Pt,Qe&8){var Nt=qe[ct++];at+=Nt,_t+=Nt*Pt}}if(_t===0)return et;var nt=ct+_t;return nt>qe.length?et:!Ke&>>0?(We.set(qe.subarray(0,Ct),Ye),We.set([0,0],Ye+Ct),We.set(qe.subarray(mt,nt),Ye+Ct+2),nt-=gt,qe.length-nt>3&&(nt=nt+3&-4),et.length=nt,et):qe.length-nt>3?(nt=nt+3&-4,We.set(qe.subarray(0,nt),Ye),et.length=nt,et):(We.set(qe,Ye),et.length=qe.length,et)}function _e(Me,Ve,Je){var We=Me.data,Ye=A(We[0],We[1],We[2],We[3]);Ye>>16!==1&&((0,r.info)("Attempting to fix invalid version in head table: "+Ye),We[0]=0,We[1]=1,We[2]=0,We[3]=0);var Ke=S(We[50],We[51]);if(Ke<0||Ke>1){(0,r.info)("Attempting to fix invalid indexToLocFormat in head table: "+Ke);var et=Ve+1;if(Je===et<<1)We[50]=0,We[51]=0;else if(Je===et<<2)We[50]=0,We[51]=1;else throw new r.FormatError("Could not fix indexToLocFormat: "+Ke)}}function ge(Me,Ve,Je,We,Ye,Ke,et){var qe,st,at;We?(qe=4,st=function(Dt,It){return Dt[It]<<24|Dt[It+1]<<16|Dt[It+2]<<8|Dt[It+3]},at=function(Dt,It,$t){Dt[It]=$t>>>24&255,Dt[It+1]=$t>>16&255,Dt[It+2]=$t>>8&255,Dt[It+3]=$t&255}):(qe=2,st=function(Dt,It){return Dt[It]<<9|Dt[It+1]<<1},at=function(Dt,It,$t){Dt[It]=$t>>9&255,Dt[It+1]=$t>>1&255});var ct=Ke?Je+1:Je,ot=qe*(1+ct),Et=new Uint8Array(ot);Et.set(Me.data.subarray(0,ot)),Me.data=Et;var Ct=Ve.data,gt=Ct.length,mt=new Uint8Array(gt),_t=st(Et,0),Qe=0,Nt=Object.create(null);at(Et,0,Qe);var nt,Rt;for(nt=0,Rt=qe;nt<Je;nt++,Rt+=qe){var ut=st(Et,Rt);ut===0&&(ut=_t),ut>gt&&(gt+3&-4)===ut&&(ut=gt),ut>gt&&(_t=ut);var Pt=Se(Ct,_t,ut,mt,Qe,Ye),jt=Pt.length;jt===0&&(Nt[nt]=!0),Pt.sizeOfInstructions>et&&(et=Pt.sizeOfInstructions),Qe+=jt,at(Et,Rt,Qe),_t=ut}if(Qe===0){var Xt=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(nt=0,Rt=qe;nt<ct;nt++,Rt+=qe)at(Et,Rt,Xt.length);Ve.data=Xt}else if(Ke){var Gt=st(Et,qe);mt.length>Gt+Qe?Ve.data=mt.subarray(0,Gt+Qe):(Ve.data=new Uint8Array(Gt+Qe),Ve.data.set(mt.subarray(0,Qe))),Ve.data.set(mt.subarray(0,Gt),Qe),at(Me.data,Et.length-qe,Qe+Gt)}else Ve.data=mt.subarray(0,Qe);return{missingGlyphs:Nt,maxSizeOfInstructions:et}}function ue(Me,Ve,Je){var We=(re.start?re.start:0)+Me.offset;re.pos=We;var Ye=Me.length,Ke=We+Ye,et=re.getInt32();re.getBytes(28);var qe,st=!0,at;switch(et){case 65536:qe=b;break;case 131072:var ct=re.getUint16();if(ct!==Je){st=!1;break}var ot=[];for(at=0;at<ct;++at){var Et=re.getUint16();if(Et>=32768){st=!1;break}ot.push(Et)}if(!st)break;for(var Ct=[],gt=[];re.pos<Ke;){var mt=re.getByte();for(gt.length=mt,at=0;at<mt;++at)gt[at]=String.fromCharCode(re.getByte());Ct.push(gt.join(""))}for(qe=[],at=0;at<ct;++at){var _t=ot[at];if(_t<258){qe.push(b[_t]);continue}qe.push(Ct[_t-258])}break;case 196608:break;default:(0,r.warn)("Unknown/unsupported post table version "+et),st=!1,Ve.defaultEncoding&&(qe=Ve.defaultEncoding);break}return Ve.glyphNames=qe,st}function se(Me){var Ve=(re.start?re.start:0)+Me.offset;re.pos=Ve;var Je=[[],[]],We=Me.length,Ye=Ve+We,Ke=re.getUint16(),et=6;if(Ke!==0||We<et)return Je;var qe=re.getUint16(),st=re.getUint16(),at=[],ct=12,ot,Et;for(ot=0;ot<qe&&re.pos+ct<=Ye;ot++){var Ct={platform:re.getUint16(),encoding:re.getUint16(),language:re.getUint16(),name:re.getUint16(),length:re.getUint16(),offset:re.getUint16()};(Ct.platform===1&&Ct.encoding===0&&Ct.language===0||Ct.platform===3&&Ct.encoding===1&&Ct.language===1033)&&at.push(Ct)}for(ot=0,Et=at.length;ot<Et;ot++){var gt=at[ot];if(!(gt.length<=0)){var mt=Ve+st+gt.offset;if(!(mt+gt.length>Ye)){re.pos=mt;var _t=gt.name;if(gt.encoding){for(var Qe="",Nt=0,nt=gt.length;Nt<nt;Nt+=2)Qe+=String.fromCharCode(re.getUint16());Je[1][_t]=Qe}else Je[0][_t]=(0,r.bytesToString)(re.getBytes(gt.length))}}}return Je}var pe=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function we(Me,Ve){for(var Je=Me.data,We=0,Ye,Ke,et,qe,st,at=0,ct=0,ot=[],Et=[],Ct=[],gt=Ve.tooComplexToFollowFunctions,mt=!1,_t=0,Qe=0,Nt=Je.length;We<Nt;){var nt=Je[We++];if(nt===64)if(Ke=Je[We++],mt||Qe)We+=Ke;else for(Ye=0;Ye<Ke;Ye++)ot.push(Je[We++]);else if(nt===65)if(Ke=Je[We++],mt||Qe)We+=Ke*2;else for(Ye=0;Ye<Ke;Ye++)et=Je[We++],ot.push(et<<8|Je[We++]);else if((nt&248)===176)if(Ke=nt-176+1,mt||Qe)We+=Ke;else for(Ye=0;Ye<Ke;Ye++)ot.push(Je[We++]);else if((nt&248)===184)if(Ke=nt-184+1,mt||Qe)We+=Ke*2;else for(Ye=0;Ye<Ke;Ye++)et=Je[We++],ot.push(et<<8|Je[We++]);else if(nt===43&&!gt){if(!mt&&!Qe){if(qe=ot[ot.length-1],isNaN(qe))(0,r.info)("TT: CALL empty stack (or invalid entry).");else if(Ve.functionsUsed[qe]=!0,qe in Ve.functionsStackDeltas){const Pt=ot.length+Ve.functionsStackDeltas[qe];if(Pt<0){(0,r.warn)("TT: CALL invalid functions stack delta."),Ve.hintsValid=!1;return}ot.length=Pt}else if(qe in Ve.functionsDefined&&!Ct.includes(qe)){if(Et.push({data:Je,i:We,stackTop:ot.length-1}),Ct.push(qe),st=Ve.functionsDefined[qe],!st){(0,r.warn)("TT: CALL non-existent function"),Ve.hintsValid=!1;return}Je=st.data,We=st.i}}}else if(nt===44&&!gt)(mt||Qe)&&((0,r.warn)("TT: nested FDEFs not allowed"),gt=!0),mt=!0,ct=We,qe=ot.pop(),Ve.functionsDefined[qe]={data:Je,i:We};else if(nt===45)if(mt)mt=!1,at=We;else{if(st=Et.pop(),!st){(0,r.warn)("TT: ENDF bad stack"),Ve.hintsValid=!1;return}qe=Ct.pop(),Je=st.data,We=st.i,Ve.functionsStackDeltas[qe]=ot.length-st.stackTop}else if(nt===137)(mt||Qe)&&((0,r.warn)("TT: nested IDEFs not allowed"),gt=!0),mt=!0,ct=We;else if(nt===88)++_t;else if(nt===27)Qe=_t;else if(nt===89)Qe===_t&&(Qe=0),--_t;else if(nt===28&&!mt&&!Qe){var Rt=ot[ot.length-1];Rt>0&&(We+=Rt-1)}if(!mt&&!Qe){let Pt=0;for(nt<=142?Pt=pe[nt]:nt>=192&&nt<=223?Pt=-1:nt>=224&&(Pt=-2),nt>=113&&nt<=117&&(Ke=ot.pop(),isNaN(Ke)||(Pt=-Ke*2));Pt<0&&ot.length>0;)ot.pop(),Pt++;for(;Pt>0;)ot.push(NaN),Pt--}}Ve.tooComplexToFollowFunctions=gt;var ut=[Je];We>Je.length&&ut.push(new Uint8Array(We-Je.length)),ct>at&&((0,r.warn)("TT: complementing a missing function tail"),ut.push(new Uint8Array([34,45]))),ke(Me,ut)}function Te(Me,Ve){if(!Me.tooComplexToFollowFunctions){if(Me.functionsDefined.length>Ve){(0,r.warn)("TT: more functions defined than expected"),Me.hintsValid=!1;return}for(var Je=0,We=Me.functionsUsed.length;Je<We;Je++){if(Je>Ve){(0,r.warn)("TT: invalid function id: "+Je),Me.hintsValid=!1;return}if(Me.functionsUsed[Je]&&!Me.functionsDefined[Je]){(0,r.warn)("TT: undefined function: "+Je),Me.hintsValid=!1;return}}}}function ke(Me,Ve){if(Ve.length>1){var Je=0,We,Ye;for(We=0,Ye=Ve.length;We<Ye;We++)Je+=Ve[We].length;Je=Je+3&-4;var Ke=new Uint8Array(Je),et=0;for(We=0,Ye=Ve.length;We<Ye;We++)Ke.set(Ve[We],et),et+=Ve[We].length;Me.data=Ke,Me.length=Je}}function Fe(Me,Ve,Je,We){var Ye={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(Me&&we(Me,Ye),Ve&&we(Ve,Ye),Me&&Te(Ye,We),Je&&Je.length&1){var Ke=new Uint8Array(Je.length+1);Ke.set(Je.data),Je.data=Ke}return Ye.hintsValid}re=new n.Stream(new Uint8Array(re.getBytes()));let Le,he;if(H(re)){const Me=Ce(re,this.name);Le=Me.header,he=Me.tables}else Le=me(re),he=oe(re,Le.numTables);let Ee,ve;var ye=!he["CFF "];if(ye){if(!he.loca)throw new r.FormatError('Required "loca" table is not found');he.glyf||((0,r.warn)('Required "glyf" table is not found -- trying to recover.'),he.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{const Me=ie.composite&&((ie.cidToGidMap||[]).length>0||!(ie.cMap instanceof m.IdentityCMap));if(Le.version==="OTTO"&&!Me||!he.head||!he.hhea||!he.maxp||!he.post)return ve=new n.Stream(he["CFF "].data),Ee=new T(ve,ie),_(ie),this.convert(te,Ee,ie);delete he.glyf,delete he.loca,delete he.fpgm,delete he.prep,delete he["cvt "],this.isOpenType=!0}if(!he.maxp)throw new r.FormatError('Required "maxp" table is not found');re.pos=(re.start||0)+he.maxp.offset;var Oe=re.getInt32();const Ne=re.getUint16();let Ge=Ne+1,ze=!0;Ge>65535&&(ze=!1,Ge=Ne,(0,r.warn)("Not enough space in glyfs to duplicate first glyph."));var tt=0,rt=0;if(Oe>=65536&&he.maxp.length>=22){re.pos+=8;var xt=re.getUint16();xt>2&&(he.maxp.data[14]=0,he.maxp.data[15]=2),re.pos+=4,tt=re.getUint16(),re.pos+=4,rt=re.getUint16()}he.maxp.data[4]=Ge>>8,he.maxp.data[5]=Ge&255;var ft=Fe(he.fpgm,he.prep,he["cvt "],tt);if(ft||(delete he.fpgm,delete he.prep,delete he["cvt "]),be(re,he.hhea,he.hmtx,Ge,ze),!he.head)throw new r.FormatError('Required "head" table is not found');_e(he.head,Ne,ye?he.loca.length:0);var lt=Object.create(null);if(ye){var ht=S(he.head.data[50],he.head.data[51]),St=ge(he.loca,he.glyf,Ne,ht,ft,ze,rt);lt=St.missingGlyphs,Oe>=65536&&he.maxp.length>=22&&(he.maxp.data[26]=St.maxSizeOfInstructions>>8,he.maxp.data[27]=St.maxSizeOfInstructions&255)}if(!he.hhea)throw new r.FormatError('Required "hhea" table is not found');he.hhea.data[10]===0&&he.hhea.data[11]===0&&(he.hhea.data[10]=255,he.hhea.data[11]=255);var wt={unitsPerEm:S(he.head.data[18],he.head.data[19]),yMax:S(he.head.data[42],he.head.data[43]),yMin:E(he.head.data[38],he.head.data[39]),ascent:S(he.hhea.data[4],he.hhea.data[5]),descent:E(he.hhea.data[6],he.hhea.data[7])};this.ascent=wt.ascent/wt.unitsPerEm,this.descent=wt.descent/wt.unitsPerEm,he.post&&ue(he.post,ie,Ne),he.post={tag:"post",data:ee(ie)};var vt=[],bt;function qt(Me){return!lt[Me]}if(ie.composite){var Mt=ie.cidToGidMap||[],Zt=Mt.length===0;ie.cMap.forEach(function(Me,Ve){if(Ve>65535)throw new r.FormatError("Max size of CID is 65,535");var Je=-1;Zt?Je=Ve:Mt[Ve]!==void 0&&(Je=Mt[Ve]),Je>=0&&Je<Ne&&qt(Je)&&(vt[Me]=Je)})}else{var zt=xe(he.cmap,re,this.isSymbolicFont,ie.hasEncoding),fe=zt.platformId,Ie=zt.encodingId,De=zt.mappings,$e=De.length;if(ie.hasEncoding&&(fe===3&&Ie===1||fe===1&&Ie===0)||fe===-1&&Ie===-1&&(0,e.getEncoding)(ie.baseEncodingName)){var Ue=[];(ie.baseEncodingName==="MacRomanEncoding"||ie.baseEncodingName==="WinAnsiEncoding")&&(Ue=(0,e.getEncoding)(ie.baseEncodingName));var it=(0,p.getGlyphsUnicode)();for(bt=0;bt<256;bt++){var Xe,dt;if(this.differences&&bt in this.differences?Xe=this.differences[bt]:bt in Ue&&Ue[bt]!==""?Xe=Ue[bt]:Xe=e.StandardEncoding[bt],!!Xe){dt=h(Xe,it);var At;fe===3&&Ie===1?At=it[dt]:fe===1&&Ie===0&&(At=e.MacRomanEncoding.indexOf(dt));var Tt=!1;for(let Me=0;Me<$e;++Me)if(De[Me].charCode===At){vt[bt]=De[Me].glyphId,Tt=!0;break}if(!Tt&&ie.glyphNames){var Ot=ie.glyphNames.indexOf(Xe);Ot===-1&&dt!==Xe&&(Ot=ie.glyphNames.indexOf(dt)),Ot>0&&qt(Ot)&&(vt[bt]=Ot)}}}}else if(fe===0&&Ie===0)for(let Me=0;Me<$e;++Me)vt[De[Me].charCode]=De[Me].glyphId;else for(let Me=0;Me<$e;++Me)bt=De[Me].charCode,fe===3&&bt>=61440&&bt<=61695&&(bt&=255),vt[bt]=De[Me].glyphId}vt.length===0&&(vt[0]=0);let Be=Ge-1;ze||(Be=0);var Ft=z(vt,qt,Be);if(this.toFontChar=Ft.toFontChar,he.cmap={tag:"cmap",data:Y(Ft.charCodeToGlyphId,Ge)},(!he["OS/2"]||!K(he["OS/2"]))&&(he["OS/2"]={tag:"OS/2",data:Z(ie,Ft.charCodeToGlyphId,wt)}),!ye)try{ve=new n.Stream(he["CFF "].data);var Jt=new i.CFFParser(ve,ie,M);Ee=Jt.parse(),Ee.duplicateFirstGlyph();var or=new i.CFFCompiler(Ee);he["CFF "].data=or.compile()}catch{(0,r.warn)("Failed to compile font "+ie.loadedName)}if(!he.name)he.name={tag:"name",data:ne(this.name)};else{var dr=se(he.name);he.name.data=ne(te,dr)}var Qt=new s(Le.version);for(var er in he)Qt.addTable(er,he[er].data);return Qt.toArray()},convert:function(te,re,ie){ie.fixedPitch=!1,ie.builtInEncoding&&d(ie,ie.builtInEncoding);let de=1;re instanceof T&&(de=re.numGlyphs-1);var oe=re.getGlyphMapping(ie),le=z(oe,re.hasGlyphId.bind(re),de);this.toFontChar=le.toFontChar;var me=re.numGlyphs;function Pe(ze,tt){var rt=null;for(var xt in ze)tt===ze[xt]&&(rt||(rt=[]),rt.push(xt|0));return rt}function Ce(ze,tt){for(var rt in ze)if(tt===ze[rt])return rt|0;return le.charCodeToGlyphId[le.nextAvailableFontCharCode]=tt,le.nextAvailableFontCharCode++}var xe=re.seacs;if(xe&&xe.length){var be=ie.fontMatrix||r.FONT_IDENTITY_MATRIX,Se=re.getCharset(),_e=Object.create(null);for(var ge in xe){ge|=0;var ue=xe[ge],se=e.StandardEncoding[ue[2]],pe=e.StandardEncoding[ue[3]],we=Se.indexOf(se),Te=Se.indexOf(pe);if(!(we<0||Te<0)){var ke={x:ue[0]*be[0]+ue[1]*be[2]+be[4],y:ue[0]*be[1]+ue[1]*be[3]+be[5]},Fe=Pe(oe,ge);if(Fe)for(var Le=0,he=Fe.length;Le<he;Le++){var Ee=Fe[Le],ve=le.charCodeToGlyphId,ye=Ce(ve,we),Oe=Ce(ve,Te);_e[Ee]={baseFontCharCode:ye,accentFontCharCode:Oe,accentOffset:ke}}}}ie.seacMap=_e}var Ne=1/(ie.fontMatrix||r.FONT_IDENTITY_MATRIX)[0],Ge=new s("OTTO");return Ge.addTable("CFF ",re.data),Ge.addTable("OS/2",Z(ie,le.charCodeToGlyphId)),Ge.addTable("cmap",Y(le.charCodeToGlyphId,me)),Ge.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+y(Ne)+"\0\0\0\0\v~'\0\0\0\0\v~'\0\0"+y(ie.descent)+"ÿ"+y(ie.ascent)+C(ie.italicAngle?2:0)+"\0\0\0\0\0\0\0"),Ge.addTable("hhea","\0\0\0"+y(ie.ascent)+y(ie.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+y(ie.capHeight)+y(Math.tan(ie.italicAngle)*ie.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+C(me)),Ge.addTable("hmtx",function(){for(var tt=re.charstrings,rt=re.cff?re.cff.widths:null,xt="\0\0\0\0",ft=1,lt=me;ft<lt;ft++){var ht=0;if(tt){var St=tt[ft-1];ht="width"in St?St.width:0}else rt&&(ht=Math.ceil(rt[ft]||0));xt+=C(ht)+C(0)}return xt}()),Ge.addTable("maxp","\0\0P\0"+C(me)),Ge.addTable("name",ne(te)),Ge.addTable("post",ee(ie)),Ge.toArray()},get spaceWidth(){if("_shadowWidth"in this)return this._shadowWidth;for(var ae=["space","minus","one","i","I"],te,re=0,ie=ae.length;re<ie;re++){var de=ae[re];if(de in this.widths){te=this.widths[de];break}var oe=(0,p.getGlyphsUnicode)(),le=oe[de],me=0;if(this.composite&&this.cMap.contains(le)&&(me=this.cMap.lookup(le)),!me&&this.toUnicode&&(me=this.toUnicode.charCodeOf(le)),me<=0&&(me=le),te=this.widths[me],te)break}return te=te||this.defaultWidth,this._shadowWidth=te,te},charToGlyph:function(te,re){var ie,de,oe,le=te;this.cMap&&this.cMap.contains(te)&&(le=this.cMap.lookup(te)),de=this.widths[le],de=(0,r.isNum)(de)?de:this.defaultWidth;var me=this.vmetrics&&this.vmetrics[le];let Pe=this.toUnicode.get(te)||this.fallbackToUnicode.get(te)||te;typeof Pe=="number"&&(Pe=String.fromCharCode(Pe));var Ce=te in this.toFontChar;if(ie=this.toFontChar[te]||te,this.missingFile){const ge=this.differences[te]||this.defaultEncoding[te];(ge===".notdef"||ge==="")&&this.type==="Type1"&&(ie=32),ie=(0,w.mapSpecialUnicodeValues)(ie)}this.isType3Font&&(oe=ie);var xe=null;if(this.seacMap&&this.seacMap[te]){Ce=!0;var be=this.seacMap[te];ie=be.baseFontCharCode,xe={fontChar:String.fromCodePoint(be.accentFontCharCode),offset:be.accentOffset}}var Se=typeof ie=="number"?String.fromCodePoint(ie):"",_e=this.glyphCache[te];return(!_e||!_e.matchesForCache(Se,Pe,xe,de,me,oe,re,Ce))&&(_e=new f(Se,Pe,xe,de,me,oe,re,Ce),this.glyphCache[te]=_e),_e},charsToGlyphs:function(te){var re=this.charsCache,ie,de,oe;if(re&&(ie=re[te],ie))return ie;re||(re=this.charsCache=Object.create(null)),ie=[];var le=te,me=0,Pe;if(this.cMap)for(var Ce=Object.create(null);me<te.length;){this.cMap.readCharCode(te,me,Ce),oe=Ce.charcode;var xe=Ce.length;me+=xe;var be=xe===1&&te.charCodeAt(me-1)===32;de=this.charToGlyph(oe,be),ie.push(de)}else for(me=0,Pe=te.length;me<Pe;++me)oe=te.charCodeAt(me),de=this.charToGlyph(oe,oe===32),ie.push(de);return re[le]=ie},get glyphCacheValues(){return Object.values(this.glyphCache)}},k}();t.Font=o;var u=function(){function k(S){this.error=S,this.loadedName="g_font_error",this.missingFile=!0}return k.prototype={charsToGlyphs:function(){return[]},exportData:function(){return{error:this.error}}},k}();t.ErrorFont=u;function l(D,k,S){var R=Object.create(null),E,A,C,y=!!(D.flags&P.Symbolic);if(D.baseEncodingName)for(C=(0,e.getEncoding)(D.baseEncodingName),A=0;A<C.length;A++)E=S.indexOf(C[A]),E>=0?R[A]=E:R[A]=0;else if(y)for(A in k)R[A]=k[A];else for(C=e.StandardEncoding,A=0;A<C.length;A++)E=S.indexOf(C[A]),E>=0?R[A]=E:R[A]=0;var I=D.differences,H;if(I)for(A in I){var V=I[A];if(E=S.indexOf(V),E===-1){H||(H=(0,p.getGlyphsUnicode)());var B=h(V,H);B!==V&&(E=S.indexOf(B))}E>=0?R[A]=E:R[A]=0}return R}var F=function(){function k(A,C,y){for(var I=A.length,H=C.length,V=I-H,B=y,W,G=!1;B<V;){for(W=0;W<H&&A[B+W]===C[W];)W++;if(W>=H){for(B+=W;B<I&&(0,$.isWhiteSpace)(A[B]);)B++;G=!0;break}B++}return{found:G,length:B}}function S(A,C){var y=[101,101,120,101,99],I=A.pos,H,V,B;try{H=A.getBytes(C),V=H.length}catch(z){if(z instanceof $.MissingDataException)throw z}if(V===C&&(B=k(H,y,C-2*y.length),B.found&&B.length===C))return{stream:new n.Stream(H),length:C};(0,r.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'),A.pos=I;for(var W=2048,G;;){var q=A.peekBytes(W);if(B=k(q,y,0),B.length===0)break;if(A.pos+=B.length,B.found){G=A.pos-I;break}}return A.pos=I,G?{stream:new n.Stream(A.getBytes(G)),length:G}:((0,r.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new n.Stream(A.getBytes(C)),length:C})}function R(A,C){var y=A.getBytes();return{stream:new n.Stream(y),length:y.length}}function E(A,C,y){var I=6,H=y.length1;y.length2;var V=C.peekBytes(I),B=V[0]===128&&V[1]===1;B&&(C.skip(I),H=V[5]<<24|V[4]<<16|V[3]<<8|V[2]);var W=S(C,H),G=new J.Type1Parser(W.stream,!1,M);G.extractFontHeader(y),B&&(V=C.getBytes(I),V[5]<<24|V[4]<<16|V[3]<<8|V[2]);var q=R(C),z=new J.Type1Parser(q.stream,!0,M),j=z.extractFontProgram(y);for(var Y in j.properties)y[Y]=j.properties[Y];var K=j.charstrings,Z=this.getType2Charstrings(K),ee=this.getType2Subrs(j.subrs);this.charstrings=K,this.data=this.wrap(A,Z,this.charstrings,ee,y),this.seacs=this.getSeacs(j.charstrings)}return E.prototype={get numGlyphs(){return this.charstrings.length+1},getCharset:function(){for(var C=[".notdef"],y=this.charstrings,I=0;I<y.length;I++)C.push(y[I].glyphName);return C},getGlyphMapping:function(C){var y=this.charstrings,I=[".notdef"],H;for(H=0;H<y.length;H++)I.push(y[H].glyphName);var V=C.builtInEncoding;if(V){var B=Object.create(null);for(var W in V)H=I.indexOf(V[W]),H>=0&&(B[W]=H)}return l(C,B,I)},hasGlyphId:function(C){if(C<0||C>=this.numGlyphs)return!1;if(C===0)return!0;var y=this.charstrings[C-1];return y.charstring.length>0},getSeacs:function(C){var y,I,H=[];for(y=0,I=C.length;y<I;y++){var V=C[y];V.seac&&(H[y+1]=V.seac)}return H},getType2Charstrings:function(C){for(var y=[],I=0,H=C.length;I<H;I++)y.push(C[I].charstring);return y},getType2Subrs:function(C){var y=0,I=C.length;I<1133?y=107:I<33769?y=1131:y=32768;var H=[],V;for(V=0;V<y;V++)H.push([11]);for(V=0;V<I;V++)H.push(C[V]);return H},wrap:function(C,y,I,H,V){var B=new i.CFF;B.header=new i.CFFHeader(1,0,4,4),B.names=[C];var W=new i.CFFTopDict;W.setByName("version",391),W.setByName("Notice",392),W.setByName("FullName",393),W.setByName("FamilyName",394),W.setByName("Weight",395),W.setByName("Encoding",null),W.setByName("FontMatrix",V.fontMatrix),W.setByName("FontBBox",V.bbox),W.setByName("charset",null),W.setByName("CharStrings",null),W.setByName("Private",null),B.topDict=W;var G=new i.CFFStrings;G.add("Version 0.11"),G.add("See original notice"),G.add(C),G.add(C),G.add("Medium"),B.strings=G,B.globalSubrIndex=new i.CFFIndex;var q=y.length,z=[".notdef"],j,Y;for(j=0;j<q;j++){const de=I[j].glyphName;i.CFFStandardStrings.indexOf(de)===-1&&G.add(de),z.push(de)}B.charset=new i.CFFCharset(!1,0,z);var K=new i.CFFIndex;for(K.add([139,14]),j=0;j<q;j++)K.add(y[j]);B.charStrings=K;var Z=new i.CFFPrivateDict;Z.setByName("Subrs",null);var ee=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(j=0,Y=ee.length;j<Y;j++){var ne=ee[j];if(ne in V.privateData){var ae=V.privateData[ne];if(Array.isArray(ae))for(var te=ae.length-1;te>0;te--)ae[te]-=ae[te-1];Z.setByName(ne,ae)}}B.topDict.privateDict=Z;var re=new i.CFFIndex;for(j=0,Y=H.length;j<Y;j++)re.add(H[j]);Z.subrsIndex=re;var ie=new i.CFFCompiler(B);return ie.compile()}},E}(),T=function(){function k(S,R){this.properties=R;var E=new i.CFFParser(S,R,M);this.cff=E.parse(),this.cff.duplicateFirstGlyph();var A=new i.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=A.compile()}catch{(0,r.warn)("Failed to compile font "+R.loadedName),this.data=S}}return k.prototype={get numGlyphs(){return this.cff.charStrings.count},getCharset:function(){return this.cff.charset.charset},getGlyphMapping:function(){var R=this.cff,E=this.properties,A=R.charset.charset,C,y;if(E.composite){C=Object.create(null);let V;if(R.isCIDFont)for(y=0;y<A.length;y++){var I=A[y];V=E.cMap.charCodeOf(I),C[V]=y}else for(y=0;y<R.charStrings.count;y++)V=E.cMap.charCodeOf(y),C[V]=y;return C}var H=R.encoding?R.encoding.encoding:null;return C=l(E,H,A),C},hasGlyphId:function(R){return this.cff.hasGlyphId(R)}},k}()},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.CFFFDSelect=t.CFFCompiler=t.CFFPrivateDict=t.CFFTopDict=t.CFFCharset=t.CFFIndex=t.CFFStrings=t.CFFHeader=t.CFF=t.CFFParser=t.CFFStandardStrings=void 0;var r=a(2),i=a(29),p=a(30),e=10,N=[".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"];t.CFFStandardStrings=N;const w=391;var $=function(){var g=[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:function(u,l){u[l-2]=u[l-2]+u[l-1]}},{id:"sub",min:2,stackDelta:-1,stackFn:function(u,l){u[l-2]=u[l-2]-u[l-1]}},{id:"div",min:2,stackDelta:-1,stackFn:function(u,l){u[l-2]=u[l-2]/u[l-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn:function(u,l){u[l-1]=-u[l-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:function(u,l){u[l-2]=u[l-2]*u[l-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}];function s(o,u,l){this.bytes=o.getBytes(),this.properties=u,this.seacAnalysisEnabled=!!l}return s.prototype={parse:function(){var u=this.properties,l=new U;this.cff=l;var F=this.parseHeader(),T=this.parseIndex(F.endPos),D=this.parseIndex(T.endPos),k=this.parseIndex(D.endPos),S=this.parseIndex(k.endPos),R=this.parseDict(D.obj.get(0)),E=this.createDict(L,R,l.strings);l.header=F.obj,l.names=this.parseNameIndex(T.obj),l.strings=this.parseStringIndex(k.obj),l.topDict=E,l.globalSubrIndex=S.obj,this.parsePrivateDict(l.topDict),l.isCIDFont=E.hasName("ROS");var A=E.getByName("CharStrings"),C=this.parseIndex(A).obj,y=E.getByName("FontMatrix");y&&(u.fontMatrix=y);var I=E.getByName("FontBBox");I&&(u.ascent=Math.max(I[3],I[1]),u.descent=Math.min(I[1],I[3]),u.ascentScaled=!0);var H,V;if(l.isCIDFont){for(var B=this.parseIndex(E.getByName("FDArray")).obj,W=0,G=B.count;W<G;++W){var q=B.get(W),z=this.createDict(L,this.parseDict(q),l.strings);this.parsePrivateDict(z),l.fdArray.push(z)}V=null,H=this.parseCharsets(E.getByName("charset"),C.count,l.strings,!0),l.fdSelect=this.parseFDSelect(E.getByName("FDSelect"),C.count)}else H=this.parseCharsets(E.getByName("charset"),C.count,l.strings,!1),V=this.parseEncoding(E.getByName("Encoding"),u,l.strings,H.charset);l.charset=H,l.encoding=V;var j=this.parseCharStrings({charStrings:C,localSubrIndex:E.privateDict.subrsIndex,globalSubrIndex:S.obj,fdSelect:l.fdSelect,fdArray:l.fdArray,privateDict:E.privateDict});return l.charStrings=j.charStrings,l.seacs=j.seacs,l.widths=j.widths,l},parseHeader:function(){for(var u=this.bytes,l=u.length,F=0;F<l&&u[F]!==1;)++F;if(F>=l)throw new r.FormatError("Invalid CFF header");F!==0&&((0,r.info)("cff data is shifted"),u=u.subarray(F),this.bytes=u);var T=u[0],D=u[1],k=u[2],S=u[3],R=new m(T,D,k,S);return{obj:R,endPos:k}},parseDict:function(u){var l=0;function F(){var E=u[l++];return E===30?T():E===28?(E=u[l++],E=(E<<24|u[l++]<<16)>>16,E):E===29?(E=u[l++],E=E<<8|u[l++],E=E<<8|u[l++],E=E<<8|u[l++],E):E>=32&&E<=246?E-139:E>=247&&E<=250?(E-247)*256+u[l++]+108:E>=251&&E<=254?-((E-251)*256)-u[l++]-108:((0,r.warn)('CFFParser_parseDict: "'+E+'" is a reserved command.'),NaN)}function T(){var E="",A=15;const C=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];for(var y=u.length;l<y;){var I=u[l++],H=I>>4,V=I&15;if(H===A||(E+=C[H],V===A))break;E+=C[V]}return parseFloat(E)}var D=[],k=[];l=0;for(var S=u.length;l<S;){var R=u[l];R<=21?(R===12&&(R=R<<8|u[++l]),k.push([R,D]),D=[],++l):D.push(F())}return k},parseIndex:function(u){var l=new J,F=this.bytes,T=F[u++]<<8|F[u++],D=[],k=u,S,R;if(T!==0){var E=F[u++],A=u+(T+1)*E-1;for(S=0,R=T+1;S<R;++S){for(var C=0,y=0;y<E;++y)C<<=8,C+=F[u++];D.push(A+C)}k=D[T]}for(S=0,R=D.length-1;S<R;++S){var I=D[S],H=D[S+1];l.add(F.subarray(I,H))}return{obj:l,endPos:k}},parseNameIndex:function(u){for(var l=[],F=0,T=u.count;F<T;++F){var D=u.get(F);l.push((0,r.bytesToString)(D))}return l},parseStringIndex:function(u){for(var l=new n,F=0,T=u.count;F<T;++F){var D=u.get(F);l.add((0,r.bytesToString)(D))}return l},createDict:function(u,l,F){for(var T=new u(F),D=0,k=l.length;D<k;++D){var S=l[D],R=S[0],E=S[1];T.setByKey(R,E)}return T},parseCharString:function(u,l,F,T){if(!l||u.callDepth>e)return!1;for(var D=u.stackSize,k=u.stack,S=l.length,R=0;R<S;){var E=l[R++],A=null;if(E===12){var C=l[R++];C===0?(l[R-2]=139,l[R-1]=22,D=0):A=v[C]}else if(E===28)k[D]=(l[R]<<24|l[R+1]<<16)>>16,R+=2,D++;else if(E===14){if(D>=4&&(D-=4,this.seacAnalysisEnabled))return u.seac=k.slice(D,D+4),!1;A=g[E]}else if(E>=32&&E<=246)k[D]=E-139,D++;else if(E>=247&&E<=254)k[D]=E<251?(E-247<<8)+l[R]+108:-(E-251<<8)-l[R]-108,R++,D++;else if(E===255)k[D]=(l[R]<<24|l[R+1]<<16|l[R+2]<<8|l[R+3])/65536,R+=4,D++;else if(E===19||E===20)u.hints+=D>>1,R+=u.hints+7>>3,D%=2,A=g[E];else if(E===10||E===29){var y;if(E===10?y=F:y=T,!y)return A=g[E],(0,r.warn)("Missing subrsIndex for "+A.id),!1;var I=32768;y.count<1240?I=107:y.count<33900&&(I=1131);var H=k[--D]+I;if(H<0||H>=y.count||isNaN(H))return A=g[E],(0,r.warn)("Out of bounds subrIndex for "+A.id),!1;u.stackSize=D,u.callDepth++;var V=this.parseCharString(u,y.get(H),F,T);if(!V)return!1;u.callDepth--,D=u.stackSize;continue}else{if(E===11)return u.stackSize=D,!0;A=g[E]}if(A){if(A.stem&&(u.hints+=D>>1,E===3||E===23?u.hasVStems=!0:u.hasVStems&&(E===1||E===18)&&((0,r.warn)("CFF stem hints are in wrong order"),l[R-1]=E===1?3:23)),"min"in A&&!u.undefStack&&D<A.min)return(0,r.warn)("Not enough parameters for "+A.id+"; actual: "+D+", expected: "+A.min),!1;u.firstStackClearing&&A.stackClearing&&(u.firstStackClearing=!1,D-=A.min,D>=2&&A.stem?D%=2:D>1&&(0,r.warn)("Found too many parameters for stack-clearing command"),D>0&&k[D-1]>=0&&(u.width=k[D-1])),"stackDelta"in A?("stackFn"in A&&A.stackFn(k,D),D+=A.stackDelta):A.stackClearing?D=0:A.resetStack?(D=0,u.undefStack=!1):A.undefStack&&(D=0,u.undefStack=!0,u.firstStackClearing=!1)}}return u.stackSize=D,!0},parseCharStrings({charStrings:o,localSubrIndex:u,globalSubrIndex:l,fdSelect:F,fdArray:T,privateDict:D}){for(var k=[],S=[],R=o.count,E=0;E<R;E++){var A=o.get(E),C={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},y=!0,I=null,H=D;if(F&&T.length){var V=F.getFDIndex(E);V===-1&&((0,r.warn)("Glyph index is not in fd select."),y=!1),V>=T.length&&((0,r.warn)("Invalid fd index for glyph index."),y=!1),y&&(H=T[V].privateDict,I=H.subrsIndex)}else u&&(I=u);if(y&&(y=this.parseCharString(C,A,I,l)),C.width!==null){const B=H.getByName("nominalWidthX");S[E]=B+C.width}else{const B=H.getByName("defaultWidthX");S[E]=B}C.seac!==null&&(k[E]=C.seac),y||o.set(E,new Uint8Array([14]))}return{charStrings:o,seacs:k,widths:S}},emptyPrivateDictionary:function(u){var l=this.createDict(M,[],u.strings);u.setByKey(18,[0,0]),u.privateDict=l},parsePrivateDict:function(u){if(!u.hasName("Private")){this.emptyPrivateDictionary(u);return}var l=u.getByName("Private");if(!Array.isArray(l)||l.length!==2){u.removeByName("Private");return}var F=l[0],T=l[1];if(F===0||T>=this.bytes.length){this.emptyPrivateDictionary(u);return}var D=T+F,k=this.bytes.subarray(T,D),S=this.parseDict(k),R=this.createDict(M,S,u.strings);if(u.privateDict=R,!!R.getByName("Subrs")){var E=R.getByName("Subrs"),A=T+E;if(E===0||A>=this.bytes.length){this.emptyPrivateDictionary(u);return}var C=this.parseIndex(A);R.subrsIndex=C.obj}},parseCharsets:function(u,l,F,T){if(u===0)return new b(!0,P.ISO_ADOBE,i.ISOAdobeCharset);if(u===1)return new b(!0,P.EXPERT,i.ExpertCharset);if(u===2)return new b(!0,P.EXPERT_SUBSET,i.ExpertSubsetCharset);var D=this.bytes,k=u,S=D[u++],R=[".notdef"],E,A,C;switch(l-=1,S){case 0:for(C=0;C<l;C++)E=D[u++]<<8|D[u++],R.push(T?E:F.get(E));break;case 1:for(;R.length<=l;)for(E=D[u++]<<8|D[u++],A=D[u++],C=0;C<=A;C++)R.push(T?E++:F.get(E++));break;case 2:for(;R.length<=l;)for(E=D[u++]<<8|D[u++],A=D[u++]<<8|D[u++],C=0;C<=A;C++)R.push(T?E++:F.get(E++));break;default:throw new r.FormatError("Unknown charset format")}var y=u,I=D.subarray(k,y);return new b(!1,S,R,I)},parseEncoding:function(u,l,F,T){var D=Object.create(null),k=this.bytes,S=!1,R,E,A,C=null;function y(){var K=k[u++];for(E=0;E<K;E++){var Z=k[u++],ee=(k[u++]<<8)+(k[u++]&255);D[Z]=T.indexOf(F.get(ee))}}if(u===0||u===1){S=!0,R=u;var I=u?p.ExpertEncoding:p.StandardEncoding;for(E=0,A=T.length;E<A;E++){var H=I.indexOf(T[E]);H!==-1&&(D[H]=E)}}else{var V=u;switch(R=k[u++],R&127){case 0:var B=k[u++];for(E=1;E<=B;E++)D[k[u++]]=E;break;case 1:var W=k[u++],G=1;for(E=0;E<W;E++)for(var q=k[u++],z=k[u++],j=q;j<=q+z;j++)D[j]=G++;break;default:throw new r.FormatError(`Unknown encoding format: ${R} in CFF`)}var Y=u;R&128&&(k[V]&=127,y()),C=k.subarray(V,Y)}return R=R&127,new _(S,R,D,C)},parseFDSelect:function(u,l){var F=this.bytes,T=F[u++],D=[],k;switch(T){case 0:for(k=0;k<l;++k){var S=F[u++];D.push(S)}break;case 3:var R=F[u++]<<8|F[u++];for(k=0;k<R;++k){var E=F[u++]<<8|F[u++];k===0&&E!==0&&((0,r.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),E=0);for(var A=F[u++],C=F[u]<<8|F[u+1],y=E;y<C;++y)D.push(A)}u+=2;break;default:throw new r.FormatError(`parseFDSelect: Unknown format "${T}".`)}if(D.length!==l)throw new r.FormatError("parseFDSelect: Invalid font data.");return new d(T,D)}},s}();t.CFFParser=$;var U=function(){function g(){this.header=null,this.names=[],this.topDict=null,this.strings=new n,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}return g.prototype={duplicateFirstGlyph:function(){if(this.charStrings.count>=65535){(0,r.warn)("Not enough space in charstrings to duplicate first glyph.");return}var s=this.charStrings.get(0);this.charStrings.add(s),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])},hasGlyphId:function(s){if(s<0||s>=this.charStrings.count)return!1;var o=this.charStrings.get(s);return o.length>0}},g}();t.CFF=U;var m=function(){function g(v,s,o,u){this.major=v,this.minor=s,this.hdrSize=o,this.offSize=u}return g}();t.CFFHeader=m;var n=function(){function g(){this.strings=[]}return g.prototype={get:function(s){return s>=0&&s<=w-1?N[s]:s-w<=this.strings.length?this.strings[s-w]:N[0]},getSID:function(s){let o=N.indexOf(s);return o!==-1?o:(o=this.strings.indexOf(s),o!==-1?o+w:-1)},add:function(s){this.strings.push(s)},get count(){return this.strings.length}},g}();t.CFFStrings=n;var J=function(){function g(){this.objects=[],this.length=0}return g.prototype={add:function(s){this.length+=s.length,this.objects.push(s)},set:function(s,o){this.length+=o.length-this.objects[s].length,this.objects[s]=o},get:function(s){return this.objects[s]},get count(){return this.objects.length}},g}();t.CFFIndex=J;var O=function(){function g(v,s){this.keyToNameMap=v.keyToNameMap,this.nameToKeyMap=v.nameToKeyMap,this.defaults=v.defaults,this.types=v.types,this.opcodes=v.opcodes,this.order=v.order,this.strings=s,this.values=Object.create(null)}return g.prototype={setByKey:function(s,o){if(!(s in this.keyToNameMap))return!1;var u=o.length;if(u===0)return!0;for(var l=0;l<u;l++)if(isNaN(o[l]))return(0,r.warn)('Invalid CFFDict value: "'+o+'" for key "'+s+'".'),!0;var F=this.types[s];return(F==="num"||F==="sid"||F==="offset")&&(o=o[0]),this.values[s]=o,!0},setByName:function(s,o){if(!(s in this.nameToKeyMap))throw new r.FormatError(`Invalid dictionary name "${s}"`);this.values[this.nameToKeyMap[s]]=o},hasName:function(s){return this.nameToKeyMap[s]in this.values},getByName:function(s){if(!(s in this.nameToKeyMap))throw new r.FormatError(`Invalid dictionary name ${s}"`);var o=this.nameToKeyMap[s];return o in this.values?this.values[o]:this.defaults[o]},removeByName:function(s){delete this.values[this.nameToKeyMap[s]]}},g.createTables=function(s){for(var o={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},u=0,l=s.length;u<l;++u){var F=s[u],T=Array.isArray(F[0])?(F[0][0]<<8)+F[0][1]:F[0];o.keyToNameMap[T]=F[1],o.nameToKeyMap[F[1]]=T,o.types[T]=F[2],o.defaults[T]=F[3],o.opcodes[T]=Array.isArray(F[0])?F[0]:[F[0]],o.order.push(T)}return o},g}(),L=function(){var g=[[[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]],v=null;function s(o){v===null&&(v=O.createTables(g)),O.call(this,v,o),this.privateDict=null}return s.prototype=Object.create(O.prototype),s}();t.CFFTopDict=L;var M=function(){var g=[[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]],v=null;function s(o){v===null&&(v=O.createTables(g)),O.call(this,v,o),this.subrsIndex=null}return s.prototype=Object.create(O.prototype),s}();t.CFFPrivateDict=M;var P={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},b=function(){function g(v,s,o,u){this.predefined=v,this.format=s,this.charset=o,this.raw=u}return g}();t.CFFCharset=b;var _=function(){function g(v,s,o,u){this.predefined=v,this.format=s,this.encoding=o,this.raw=u}return g}(),d=function(){function g(v,s){this.format=v,this.fdSelect=s}return g.prototype={getFDIndex:function(s){return s<0||s>=this.fdSelect.length?-1:this.fdSelect[s]}},g}();t.CFFFDSelect=d;var c=function(){function g(){this.offsets=Object.create(null)}return g.prototype={isTracking:function(s){return s in this.offsets},track:function(s,o){if(s in this.offsets)throw new r.FormatError(`Already tracking location of ${s}`);this.offsets[s]=o},offset:function(s){for(var o in this.offsets)this.offsets[o]+=s},setEntryLocation:function(s,o,u){if(!(s in this.offsets))throw new r.FormatError(`Not tracking location of ${s}`);for(var l=u.data,F=this.offsets[s],T=5,D=0,k=o.length;D<k;++D){var S=D*T+F,R=S+1,E=S+2,A=S+3,C=S+4;if(l[S]!==29||l[R]!==0||l[E]!==0||l[A]!==0||l[C]!==0)throw new r.FormatError("writing to an offset that is not empty");var y=o[D];l[S]=29,l[R]=y>>24&255,l[E]=y>>16&255,l[A]=y>>8&255,l[C]=y&255}}},g}(),h=function(){function g(v){this.cff=v}return g.prototype={compile:function(){var s=this.cff,o={data:[],length:0,add:function(G){this.data=this.data.concat(G),this.length=this.data.length}},u=this.compileHeader(s.header);o.add(u);var l=this.compileNameIndex(s.names);if(o.add(l),s.isCIDFont&&s.topDict.hasName("FontMatrix")){var F=s.topDict.getByName("FontMatrix");s.topDict.removeByName("FontMatrix");for(var T=0,D=s.fdArray.length;T<D;T++){var k=s.fdArray[T],S=F.slice(0);k.hasName("FontMatrix")&&(S=r.Util.transform(S,k.getByName("FontMatrix"))),k.setByName("FontMatrix",S)}}s.topDict.setByName("charset",0);var R=this.compileTopDicts([s.topDict],o.length,s.isCIDFont);o.add(R.output);var E=R.trackers[0],A=this.compileStringIndex(s.strings.strings);o.add(A);var C=this.compileIndex(s.globalSubrIndex);if(o.add(C),s.encoding&&s.topDict.hasName("Encoding"))if(s.encoding.predefined)E.setEntryLocation("Encoding",[s.encoding.format],o);else{var y=this.compileEncoding(s.encoding);E.setEntryLocation("Encoding",[o.length],o),o.add(y)}var I=this.compileCharset(s.charset,s.charStrings.count,s.strings,s.isCIDFont);E.setEntryLocation("charset",[o.length],o),o.add(I);var H=this.compileCharStrings(s.charStrings);if(E.setEntryLocation("CharStrings",[o.length],o),o.add(H),s.isCIDFont){E.setEntryLocation("FDSelect",[o.length],o);var V=this.compileFDSelect(s.fdSelect);o.add(V),R=this.compileTopDicts(s.fdArray,o.length,!0),E.setEntryLocation("FDArray",[o.length],o),o.add(R.output);var B=R.trackers;this.compilePrivateDicts(s.fdArray,B,o)}return this.compilePrivateDicts([s.topDict],[E],o),o.add([0]),o.data},encodeNumber:function(s){return parseFloat(s)===parseInt(s,10)&&!isNaN(s)?this.encodeInteger(s):this.encodeFloat(s)},encodeFloat:function(s){var o=s.toString(),u=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(o);if(u){var l=parseFloat("1e"+((u[2]?+u[2]:0)+u[1].length));o=(Math.round(s*l)/l).toString()}var F="",T,D;for(T=0,D=o.length;T<D;++T){var k=o[T];k==="e"?F+=o[++T]==="-"?"c":"b":k==="."?F+="a":k==="-"?F+="e":F+=k}F+=F.length&1?"f":"ff";var S=[30];for(T=0,D=F.length;T<D;T+=2)S.push(parseInt(F.substring(T,T+2),16));return S},encodeInteger:function(s){var o;return s>=-107&&s<=107?o=[s+139]:s>=108&&s<=1131?(s=s-108,o=[(s>>8)+247,s&255]):s>=-1131&&s<=-108?(s=-s-108,o=[(s>>8)+251,s&255]):s>=-32768&&s<=32767?o=[28,s>>8&255,s&255]:o=[29,s>>24&255,s>>16&255,s>>8&255,s&255],o},compileHeader:function(s){return[s.major,s.minor,s.hdrSize,s.offSize]},compileNameIndex:function(s){for(var o=new J,u=0,l=s.length;u<l;++u){for(var F=s[u],T=Math.min(F.length,127),D=new Array(T),k=0;k<T;k++){var S=F[k];(S<"!"||S>"~"||S==="["||S==="]"||S==="("||S===")"||S==="{"||S==="}"||S==="<"||S===">"||S==="/"||S==="%")&&(S="_"),D[k]=S}D=D.join(""),D===""&&(D="Bad_Font_Name"),o.add((0,r.stringToBytes)(D))}return this.compileIndex(o)},compileTopDicts:function(s,o,u){for(var l=[],F=new J,T=0,D=s.length;T<D;++T){var k=s[T];u&&(k.removeByName("CIDFontVersion"),k.removeByName("CIDFontRevision"),k.removeByName("CIDFontType"),k.removeByName("CIDCount"),k.removeByName("UIDBase"));var S=new c,R=this.compileDict(k,S);l.push(S),F.add(R),S.offset(o)}return F=this.compileIndex(F,l),{trackers:l,output:F}},compilePrivateDicts:function(s,o,u){for(var l=0,F=s.length;l<F;++l){var T=s[l],D=T.privateDict;if(!D||!T.hasName("Private"))throw new r.FormatError("There must be a private dictionary.");var k=new c,S=this.compileDict(D,k),R=u.length;if(k.offset(R),S.length||(R=0),o[l].setEntryLocation("Private",[S.length,R],u),u.add(S),D.subrsIndex&&D.hasName("Subrs")){var E=this.compileIndex(D.subrsIndex);k.setEntryLocation("Subrs",[S.length],u),u.add(E)}}},compileDict:function(s,o){for(var u=[],l=s.order,F=0;F<l.length;++F){var T=l[F];if(T in s.values){var D=s.values[T],k=s.types[T];if(Array.isArray(k)||(k=[k]),Array.isArray(D)||(D=[D]),D.length!==0){for(var S=0,R=k.length;S<R;++S){var E=k[S],A=D[S];switch(E){case"num":case"sid":u=u.concat(this.encodeNumber(A));break;case"offset":var C=s.keyToNameMap[T];o.isTracking(C)||o.track(C,u.length),u=u.concat([29,0,0,0,0]);break;case"array":case"delta":u=u.concat(this.encodeNumber(A));for(var y=1,I=D.length;y<I;++y)u=u.concat(this.encodeNumber(D[y]));break;default:throw new r.FormatError(`Unknown data type of ${E}`)}}u=u.concat(s.opcodes[T])}}}return u},compileStringIndex:function(s){for(var o=new J,u=0,l=s.length;u<l;++u)o.add((0,r.stringToBytes)(s[u]));return this.compileIndex(o)},compileGlobalSubrIndex:function(){var s=this.cff.globalSubrIndex;this.out.writeByteArray(this.compileIndex(s))},compileCharStrings:function(s){for(var o=new J,u=0;u<s.count;u++){var l=s.get(u);if(l.length===0){o.add(new Uint8Array([139,14]));continue}o.add(l)}return this.compileIndex(o)},compileCharset:function(s,o,u,l){let F;const T=o-1;if(l)F=new Uint8Array([2,0,0,T>>8&255,T&255]);else{const D=1+T*2;F=new Uint8Array(D),F[0]=0;let k=0;const S=s.charset.length;let R=!1;for(let E=1;E<F.length;E+=2){let A=0;if(k<S){const C=s.charset[k++];A=u.getSID(C),A===-1&&(A=0,R||(R=!0,(0,r.warn)(`Couldn't find ${C} in CFF strings`)))}F[E]=A>>8&255,F[E+1]=A&255}}return this.compileTypedArray(F)},compileEncoding:function(s){return this.compileTypedArray(s.raw)},compileFDSelect:function(s){const o=s.format;let u,l;switch(o){case 0:for(u=new Uint8Array(1+s.fdSelect.length),u[0]=o,l=0;l<s.fdSelect.length;l++)u[l+1]=s.fdSelect[l];break;case 3:const F=0;let T=s.fdSelect[0];const D=[o,0,0,F>>8&255,F&255,T];for(l=1;l<s.fdSelect.length;l++){const S=s.fdSelect[l];S!==T&&(D.push(l>>8&255,l&255,S),T=S)}const k=(D.length-3)/3;D[1]=k>>8&255,D[2]=k&255,D.push(l>>8&255,l&255),u=new Uint8Array(D);break}return this.compileTypedArray(u)},compileTypedArray:function(s){for(var o=[],u=0,l=s.length;u<l;++u)o[u]=s[u];return o},compileIndex:function(s,o){o=o||[];var u=s.objects,l=u.length;if(l===0)return[0,0,0];var F=[l>>8&255,l&255],T=1,D;for(D=0;D<l;++D)T+=u[D].length;var k;T<256?k=1:T<65536?k=2:T<16777216?k=3:k=4,F.push(k);var S=1;for(D=0;D<l+1;D++)k===1?F.push(S&255):k===2?F.push(S>>8&255,S&255):k===3?F.push(S>>16&255,S>>8&255,S&255):F.push(S>>>24&255,S>>16&255,S>>8&255,S&255),u[D]&&(S+=u[D].length);for(D=0;D<l;D++){o[D]&&o[D].offset(F.length);for(var R=0,E=u[D].length;R<E;R++)F.push(u[D][R])}return F}},g}();t.CFFCompiler=h},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.ExpertSubsetCharset=t.ExpertCharset=t.ISOAdobeCharset=void 0;const r=[".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"];t.ISOAdobeCharset=r;const i=[".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"];t.ExpertCharset=i;const p=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"];t.ExpertSubsetCharset=p},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.getEncoding=U,t.ExpertEncoding=t.ZapfDingbatsEncoding=t.SymbolSetEncoding=t.MacRomanEncoding=t.StandardEncoding=t.WinAnsiEncoding=void 0;const r=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];t.ExpertEncoding=r;const i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],p=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"];t.MacRomanEncoding=p;const e=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""];t.StandardEncoding=e;const N=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];t.WinAnsiEncoding=N;const w=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];t.SymbolSetEncoding=w;const $=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];t.ZapfDingbatsEncoding=$;function U(m){switch(m){case"WinAnsiEncoding":return N;case"StandardEncoding":return e;case"MacRomanEncoding":return p;case"SymbolSetEncoding":return w;case"ZapfDingbatsEncoding":return $;case"ExpertEncoding":return r;case"MacExpertEncoding":return i;default:return null}}},function(x,t,a){var r=a(7).getLookupTableFactory,i=r(function(e){e.A=65,e.AE=198,e.AEacute=508,e.AEmacron=482,e.AEsmall=63462,e.Aacute=193,e.Aacutesmall=63457,e.Abreve=258,e.Abreveacute=7854,e.Abrevecyrillic=1232,e.Abrevedotbelow=7862,e.Abrevegrave=7856,e.Abrevehookabove=7858,e.Abrevetilde=7860,e.Acaron=461,e.Acircle=9398,e.Acircumflex=194,e.Acircumflexacute=7844,e.Acircumflexdotbelow=7852,e.Acircumflexgrave=7846,e.Acircumflexhookabove=7848,e.Acircumflexsmall=63458,e.Acircumflextilde=7850,e.Acute=63177,e.Acutesmall=63412,e.Acyrillic=1040,e.Adblgrave=512,e.Adieresis=196,e.Adieresiscyrillic=1234,e.Adieresismacron=478,e.Adieresissmall=63460,e.Adotbelow=7840,e.Adotmacron=480,e.Agrave=192,e.Agravesmall=63456,e.Ahookabove=7842,e.Aiecyrillic=1236,e.Ainvertedbreve=514,e.Alpha=913,e.Alphatonos=902,e.Amacron=256,e.Amonospace=65313,e.Aogonek=260,e.Aring=197,e.Aringacute=506,e.Aringbelow=7680,e.Aringsmall=63461,e.Asmall=63329,e.Atilde=195,e.Atildesmall=63459,e.Aybarmenian=1329,e.B=66,e.Bcircle=9399,e.Bdotaccent=7682,e.Bdotbelow=7684,e.Becyrillic=1041,e.Benarmenian=1330,e.Beta=914,e.Bhook=385,e.Blinebelow=7686,e.Bmonospace=65314,e.Brevesmall=63220,e.Bsmall=63330,e.Btopbar=386,e.C=67,e.Caarmenian=1342,e.Cacute=262,e.Caron=63178,e.Caronsmall=63221,e.Ccaron=268,e.Ccedilla=199,e.Ccedillaacute=7688,e.Ccedillasmall=63463,e.Ccircle=9400,e.Ccircumflex=264,e.Cdot=266,e.Cdotaccent=266,e.Cedillasmall=63416,e.Chaarmenian=1353,e.Cheabkhasiancyrillic=1212,e.Checyrillic=1063,e.Chedescenderabkhasiancyrillic=1214,e.Chedescendercyrillic=1206,e.Chedieresiscyrillic=1268,e.Cheharmenian=1347,e.Chekhakassiancyrillic=1227,e.Cheverticalstrokecyrillic=1208,e.Chi=935,e.Chook=391,e.Circumflexsmall=63222,e.Cmonospace=65315,e.Coarmenian=1361,e.Csmall=63331,e.D=68,e.DZ=497,e.DZcaron=452,e.Daarmenian=1332,e.Dafrican=393,e.Dcaron=270,e.Dcedilla=7696,e.Dcircle=9401,e.Dcircumflexbelow=7698,e.Dcroat=272,e.Ddotaccent=7690,e.Ddotbelow=7692,e.Decyrillic=1044,e.Deicoptic=1006,e.Delta=8710,e.Deltagreek=916,e.Dhook=394,e.Dieresis=63179,e.DieresisAcute=63180,e.DieresisGrave=63181,e.Dieresissmall=63400,e.Digammagreek=988,e.Djecyrillic=1026,e.Dlinebelow=7694,e.Dmonospace=65316,e.Dotaccentsmall=63223,e.Dslash=272,e.Dsmall=63332,e.Dtopbar=395,e.Dz=498,e.Dzcaron=453,e.Dzeabkhasiancyrillic=1248,e.Dzecyrillic=1029,e.Dzhecyrillic=1039,e.E=69,e.Eacute=201,e.Eacutesmall=63465,e.Ebreve=276,e.Ecaron=282,e.Ecedillabreve=7708,e.Echarmenian=1333,e.Ecircle=9402,e.Ecircumflex=202,e.Ecircumflexacute=7870,e.Ecircumflexbelow=7704,e.Ecircumflexdotbelow=7878,e.Ecircumflexgrave=7872,e.Ecircumflexhookabove=7874,e.Ecircumflexsmall=63466,e.Ecircumflextilde=7876,e.Ecyrillic=1028,e.Edblgrave=516,e.Edieresis=203,e.Edieresissmall=63467,e.Edot=278,e.Edotaccent=278,e.Edotbelow=7864,e.Efcyrillic=1060,e.Egrave=200,e.Egravesmall=63464,e.Eharmenian=1335,e.Ehookabove=7866,e.Eightroman=8551,e.Einvertedbreve=518,e.Eiotifiedcyrillic=1124,e.Elcyrillic=1051,e.Elevenroman=8554,e.Emacron=274,e.Emacronacute=7702,e.Emacrongrave=7700,e.Emcyrillic=1052,e.Emonospace=65317,e.Encyrillic=1053,e.Endescendercyrillic=1186,e.Eng=330,e.Enghecyrillic=1188,e.Enhookcyrillic=1223,e.Eogonek=280,e.Eopen=400,e.Epsilon=917,e.Epsilontonos=904,e.Ercyrillic=1056,e.Ereversed=398,e.Ereversedcyrillic=1069,e.Escyrillic=1057,e.Esdescendercyrillic=1194,e.Esh=425,e.Esmall=63333,e.Eta=919,e.Etarmenian=1336,e.Etatonos=905,e.Eth=208,e.Ethsmall=63472,e.Etilde=7868,e.Etildebelow=7706,e.Euro=8364,e.Ezh=439,e.Ezhcaron=494,e.Ezhreversed=440,e.F=70,e.Fcircle=9403,e.Fdotaccent=7710,e.Feharmenian=1366,e.Feicoptic=996,e.Fhook=401,e.Fitacyrillic=1138,e.Fiveroman=8548,e.Fmonospace=65318,e.Fourroman=8547,e.Fsmall=63334,e.G=71,e.GBsquare=13191,e.Gacute=500,e.Gamma=915,e.Gammaafrican=404,e.Gangiacoptic=1002,e.Gbreve=286,e.Gcaron=486,e.Gcedilla=290,e.Gcircle=9404,e.Gcircumflex=284,e.Gcommaaccent=290,e.Gdot=288,e.Gdotaccent=288,e.Gecyrillic=1043,e.Ghadarmenian=1346,e.Ghemiddlehookcyrillic=1172,e.Ghestrokecyrillic=1170,e.Gheupturncyrillic=1168,e.Ghook=403,e.Gimarmenian=1331,e.Gjecyrillic=1027,e.Gmacron=7712,e.Gmonospace=65319,e.Grave=63182,e.Gravesmall=63328,e.Gsmall=63335,e.Gsmallhook=667,e.Gstroke=484,e.H=72,e.H18533=9679,e.H18543=9642,e.H18551=9643,e.H22073=9633,e.HPsquare=13259,e.Haabkhasiancyrillic=1192,e.Hadescendercyrillic=1202,e.Hardsigncyrillic=1066,e.Hbar=294,e.Hbrevebelow=7722,e.Hcedilla=7720,e.Hcircle=9405,e.Hcircumflex=292,e.Hdieresis=7718,e.Hdotaccent=7714,e.Hdotbelow=7716,e.Hmonospace=65320,e.Hoarmenian=1344,e.Horicoptic=1e3,e.Hsmall=63336,e.Hungarumlaut=63183,e.Hungarumlautsmall=63224,e.Hzsquare=13200,e.I=73,e.IAcyrillic=1071,e.IJ=306,e.IUcyrillic=1070,e.Iacute=205,e.Iacutesmall=63469,e.Ibreve=300,e.Icaron=463,e.Icircle=9406,e.Icircumflex=206,e.Icircumflexsmall=63470,e.Icyrillic=1030,e.Idblgrave=520,e.Idieresis=207,e.Idieresisacute=7726,e.Idieresiscyrillic=1252,e.Idieresissmall=63471,e.Idot=304,e.Idotaccent=304,e.Idotbelow=7882,e.Iebrevecyrillic=1238,e.Iecyrillic=1045,e.Ifraktur=8465,e.Igrave=204,e.Igravesmall=63468,e.Ihookabove=7880,e.Iicyrillic=1048,e.Iinvertedbreve=522,e.Iishortcyrillic=1049,e.Imacron=298,e.Imacroncyrillic=1250,e.Imonospace=65321,e.Iniarmenian=1339,e.Iocyrillic=1025,e.Iogonek=302,e.Iota=921,e.Iotaafrican=406,e.Iotadieresis=938,e.Iotatonos=906,e.Ismall=63337,e.Istroke=407,e.Itilde=296,e.Itildebelow=7724,e.Izhitsacyrillic=1140,e.Izhitsadblgravecyrillic=1142,e.J=74,e.Jaarmenian=1345,e.Jcircle=9407,e.Jcircumflex=308,e.Jecyrillic=1032,e.Jheharmenian=1355,e.Jmonospace=65322,e.Jsmall=63338,e.K=75,e.KBsquare=13189,e.KKsquare=13261,e.Kabashkircyrillic=1184,e.Kacute=7728,e.Kacyrillic=1050,e.Kadescendercyrillic=1178,e.Kahookcyrillic=1219,e.Kappa=922,e.Kastrokecyrillic=1182,e.Kaverticalstrokecyrillic=1180,e.Kcaron=488,e.Kcedilla=310,e.Kcircle=9408,e.Kcommaaccent=310,e.Kdotbelow=7730,e.Keharmenian=1364,e.Kenarmenian=1343,e.Khacyrillic=1061,e.Kheicoptic=998,e.Khook=408,e.Kjecyrillic=1036,e.Klinebelow=7732,e.Kmonospace=65323,e.Koppacyrillic=1152,e.Koppagreek=990,e.Ksicyrillic=1134,e.Ksmall=63339,e.L=76,e.LJ=455,e.LL=63167,e.Lacute=313,e.Lambda=923,e.Lcaron=317,e.Lcedilla=315,e.Lcircle=9409,e.Lcircumflexbelow=7740,e.Lcommaaccent=315,e.Ldot=319,e.Ldotaccent=319,e.Ldotbelow=7734,e.Ldotbelowmacron=7736,e.Liwnarmenian=1340,e.Lj=456,e.Ljecyrillic=1033,e.Llinebelow=7738,e.Lmonospace=65324,e.Lslash=321,e.Lslashsmall=63225,e.Lsmall=63340,e.M=77,e.MBsquare=13190,e.Macron=63184,e.Macronsmall=63407,e.Macute=7742,e.Mcircle=9410,e.Mdotaccent=7744,e.Mdotbelow=7746,e.Menarmenian=1348,e.Mmonospace=65325,e.Msmall=63341,e.Mturned=412,e.Mu=924,e.N=78,e.NJ=458,e.Nacute=323,e.Ncaron=327,e.Ncedilla=325,e.Ncircle=9411,e.Ncircumflexbelow=7754,e.Ncommaaccent=325,e.Ndotaccent=7748,e.Ndotbelow=7750,e.Nhookleft=413,e.Nineroman=8552,e.Nj=459,e.Njecyrillic=1034,e.Nlinebelow=7752,e.Nmonospace=65326,e.Nowarmenian=1350,e.Nsmall=63342,e.Ntilde=209,e.Ntildesmall=63473,e.Nu=925,e.O=79,e.OE=338,e.OEsmall=63226,e.Oacute=211,e.Oacutesmall=63475,e.Obarredcyrillic=1256,e.Obarreddieresiscyrillic=1258,e.Obreve=334,e.Ocaron=465,e.Ocenteredtilde=415,e.Ocircle=9412,e.Ocircumflex=212,e.Ocircumflexacute=7888,e.Ocircumflexdotbelow=7896,e.Ocircumflexgrave=7890,e.Ocircumflexhookabove=7892,e.Ocircumflexsmall=63476,e.Ocircumflextilde=7894,e.Ocyrillic=1054,e.Odblacute=336,e.Odblgrave=524,e.Odieresis=214,e.Odieresiscyrillic=1254,e.Odieresissmall=63478,e.Odotbelow=7884,e.Ogoneksmall=63227,e.Ograve=210,e.Ogravesmall=63474,e.Oharmenian=1365,e.Ohm=8486,e.Ohookabove=7886,e.Ohorn=416,e.Ohornacute=7898,e.Ohorndotbelow=7906,e.Ohorngrave=7900,e.Ohornhookabove=7902,e.Ohorntilde=7904,e.Ohungarumlaut=336,e.Oi=418,e.Oinvertedbreve=526,e.Omacron=332,e.Omacronacute=7762,e.Omacrongrave=7760,e.Omega=8486,e.Omegacyrillic=1120,e.Omegagreek=937,e.Omegaroundcyrillic=1146,e.Omegatitlocyrillic=1148,e.Omegatonos=911,e.Omicron=927,e.Omicrontonos=908,e.Omonospace=65327,e.Oneroman=8544,e.Oogonek=490,e.Oogonekmacron=492,e.Oopen=390,e.Oslash=216,e.Oslashacute=510,e.Oslashsmall=63480,e.Osmall=63343,e.Ostrokeacute=510,e.Otcyrillic=1150,e.Otilde=213,e.Otildeacute=7756,e.Otildedieresis=7758,e.Otildesmall=63477,e.P=80,e.Pacute=7764,e.Pcircle=9413,e.Pdotaccent=7766,e.Pecyrillic=1055,e.Peharmenian=1354,e.Pemiddlehookcyrillic=1190,e.Phi=934,e.Phook=420,e.Pi=928,e.Piwrarmenian=1363,e.Pmonospace=65328,e.Psi=936,e.Psicyrillic=1136,e.Psmall=63344,e.Q=81,e.Qcircle=9414,e.Qmonospace=65329,e.Qsmall=63345,e.R=82,e.Raarmenian=1356,e.Racute=340,e.Rcaron=344,e.Rcedilla=342,e.Rcircle=9415,e.Rcommaaccent=342,e.Rdblgrave=528,e.Rdotaccent=7768,e.Rdotbelow=7770,e.Rdotbelowmacron=7772,e.Reharmenian=1360,e.Rfraktur=8476,e.Rho=929,e.Ringsmall=63228,e.Rinvertedbreve=530,e.Rlinebelow=7774,e.Rmonospace=65330,e.Rsmall=63346,e.Rsmallinverted=641,e.Rsmallinvertedsuperior=694,e.S=83,e.SF010000=9484,e.SF020000=9492,e.SF030000=9488,e.SF040000=9496,e.SF050000=9532,e.SF060000=9516,e.SF070000=9524,e.SF080000=9500,e.SF090000=9508,e.SF100000=9472,e.SF110000=9474,e.SF190000=9569,e.SF200000=9570,e.SF210000=9558,e.SF220000=9557,e.SF230000=9571,e.SF240000=9553,e.SF250000=9559,e.SF260000=9565,e.SF270000=9564,e.SF280000=9563,e.SF360000=9566,e.SF370000=9567,e.SF380000=9562,e.SF390000=9556,e.SF400000=9577,e.SF410000=9574,e.SF420000=9568,e.SF430000=9552,e.SF440000=9580,e.SF450000=9575,e.SF460000=9576,e.SF470000=9572,e.SF480000=9573,e.SF490000=9561,e.SF500000=9560,e.SF510000=9554,e.SF520000=9555,e.SF530000=9579,e.SF540000=9578,e.Sacute=346,e.Sacutedotaccent=7780,e.Sampigreek=992,e.Scaron=352,e.Scarondotaccent=7782,e.Scaronsmall=63229,e.Scedilla=350,e.Schwa=399,e.Schwacyrillic=1240,e.Schwadieresiscyrillic=1242,e.Scircle=9416,e.Scircumflex=348,e.Scommaaccent=536,e.Sdotaccent=7776,e.Sdotbelow=7778,e.Sdotbelowdotaccent=7784,e.Seharmenian=1357,e.Sevenroman=8550,e.Shaarmenian=1351,e.Shacyrillic=1064,e.Shchacyrillic=1065,e.Sheicoptic=994,e.Shhacyrillic=1210,e.Shimacoptic=1004,e.Sigma=931,e.Sixroman=8549,e.Smonospace=65331,e.Softsigncyrillic=1068,e.Ssmall=63347,e.Stigmagreek=986,e.T=84,e.Tau=932,e.Tbar=358,e.Tcaron=356,e.Tcedilla=354,e.Tcircle=9417,e.Tcircumflexbelow=7792,e.Tcommaaccent=354,e.Tdotaccent=7786,e.Tdotbelow=7788,e.Tecyrillic=1058,e.Tedescendercyrillic=1196,e.Tenroman=8553,e.Tetsecyrillic=1204,e.Theta=920,e.Thook=428,e.Thorn=222,e.Thornsmall=63486,e.Threeroman=8546,e.Tildesmall=63230,e.Tiwnarmenian=1359,e.Tlinebelow=7790,e.Tmonospace=65332,e.Toarmenian=1337,e.Tonefive=444,e.Tonesix=388,e.Tonetwo=423,e.Tretroflexhook=430,e.Tsecyrillic=1062,e.Tshecyrillic=1035,e.Tsmall=63348,e.Twelveroman=8555,e.Tworoman=8545,e.U=85,e.Uacute=218,e.Uacutesmall=63482,e.Ubreve=364,e.Ucaron=467,e.Ucircle=9418,e.Ucircumflex=219,e.Ucircumflexbelow=7798,e.Ucircumflexsmall=63483,e.Ucyrillic=1059,e.Udblacute=368,e.Udblgrave=532,e.Udieresis=220,e.Udieresisacute=471,e.Udieresisbelow=7794,e.Udieresiscaron=473,e.Udieresiscyrillic=1264,e.Udieresisgrave=475,e.Udieresismacron=469,e.Udieresissmall=63484,e.Udotbelow=7908,e.Ugrave=217,e.Ugravesmall=63481,e.Uhookabove=7910,e.Uhorn=431,e.Uhornacute=7912,e.Uhorndotbelow=7920,e.Uhorngrave=7914,e.Uhornhookabove=7916,e.Uhorntilde=7918,e.Uhungarumlaut=368,e.Uhungarumlautcyrillic=1266,e.Uinvertedbreve=534,e.Ukcyrillic=1144,e.Umacron=362,e.Umacroncyrillic=1262,e.Umacrondieresis=7802,e.Umonospace=65333,e.Uogonek=370,e.Upsilon=933,e.Upsilon1=978,e.Upsilonacutehooksymbolgreek=979,e.Upsilonafrican=433,e.Upsilondieresis=939,e.Upsilondieresishooksymbolgreek=980,e.Upsilonhooksymbol=978,e.Upsilontonos=910,e.Uring=366,e.Ushortcyrillic=1038,e.Usmall=63349,e.Ustraightcyrillic=1198,e.Ustraightstrokecyrillic=1200,e.Utilde=360,e.Utildeacute=7800,e.Utildebelow=7796,e.V=86,e.Vcircle=9419,e.Vdotbelow=7806,e.Vecyrillic=1042,e.Vewarmenian=1358,e.Vhook=434,e.Vmonospace=65334,e.Voarmenian=1352,e.Vsmall=63350,e.Vtilde=7804,e.W=87,e.Wacute=7810,e.Wcircle=9420,e.Wcircumflex=372,e.Wdieresis=7812,e.Wdotaccent=7814,e.Wdotbelow=7816,e.Wgrave=7808,e.Wmonospace=65335,e.Wsmall=63351,e.X=88,e.Xcircle=9421,e.Xdieresis=7820,e.Xdotaccent=7818,e.Xeharmenian=1341,e.Xi=926,e.Xmonospace=65336,e.Xsmall=63352,e.Y=89,e.Yacute=221,e.Yacutesmall=63485,e.Yatcyrillic=1122,e.Ycircle=9422,e.Ycircumflex=374,e.Ydieresis=376,e.Ydieresissmall=63487,e.Ydotaccent=7822,e.Ydotbelow=7924,e.Yericyrillic=1067,e.Yerudieresiscyrillic=1272,e.Ygrave=7922,e.Yhook=435,e.Yhookabove=7926,e.Yiarmenian=1349,e.Yicyrillic=1031,e.Yiwnarmenian=1362,e.Ymonospace=65337,e.Ysmall=63353,e.Ytilde=7928,e.Yusbigcyrillic=1130,e.Yusbigiotifiedcyrillic=1132,e.Yuslittlecyrillic=1126,e.Yuslittleiotifiedcyrillic=1128,e.Z=90,e.Zaarmenian=1334,e.Zacute=377,e.Zcaron=381,e.Zcaronsmall=63231,e.Zcircle=9423,e.Zcircumflex=7824,e.Zdot=379,e.Zdotaccent=379,e.Zdotbelow=7826,e.Zecyrillic=1047,e.Zedescendercyrillic=1176,e.Zedieresiscyrillic=1246,e.Zeta=918,e.Zhearmenian=1338,e.Zhebrevecyrillic=1217,e.Zhecyrillic=1046,e.Zhedescendercyrillic=1174,e.Zhedieresiscyrillic=1244,e.Zlinebelow=7828,e.Zmonospace=65338,e.Zsmall=63354,e.Zstroke=437,e.a=97,e.aabengali=2438,e.aacute=225,e.aadeva=2310,e.aagujarati=2694,e.aagurmukhi=2566,e.aamatragurmukhi=2622,e.aarusquare=13059,e.aavowelsignbengali=2494,e.aavowelsigndeva=2366,e.aavowelsigngujarati=2750,e.abbreviationmarkarmenian=1375,e.abbreviationsigndeva=2416,e.abengali=2437,e.abopomofo=12570,e.abreve=259,e.abreveacute=7855,e.abrevecyrillic=1233,e.abrevedotbelow=7863,e.abrevegrave=7857,e.abrevehookabove=7859,e.abrevetilde=7861,e.acaron=462,e.acircle=9424,e.acircumflex=226,e.acircumflexacute=7845,e.acircumflexdotbelow=7853,e.acircumflexgrave=7847,e.acircumflexhookabove=7849,e.acircumflextilde=7851,e.acute=180,e.acutebelowcmb=791,e.acutecmb=769,e.acutecomb=769,e.acutedeva=2388,e.acutelowmod=719,e.acutetonecmb=833,e.acyrillic=1072,e.adblgrave=513,e.addakgurmukhi=2673,e.adeva=2309,e.adieresis=228,e.adieresiscyrillic=1235,e.adieresismacron=479,e.adotbelow=7841,e.adotmacron=481,e.ae=230,e.aeacute=509,e.aekorean=12624,e.aemacron=483,e.afii00208=8213,e.afii08941=8356,e.afii10017=1040,e.afii10018=1041,e.afii10019=1042,e.afii10020=1043,e.afii10021=1044,e.afii10022=1045,e.afii10023=1025,e.afii10024=1046,e.afii10025=1047,e.afii10026=1048,e.afii10027=1049,e.afii10028=1050,e.afii10029=1051,e.afii10030=1052,e.afii10031=1053,e.afii10032=1054,e.afii10033=1055,e.afii10034=1056,e.afii10035=1057,e.afii10036=1058,e.afii10037=1059,e.afii10038=1060,e.afii10039=1061,e.afii10040=1062,e.afii10041=1063,e.afii10042=1064,e.afii10043=1065,e.afii10044=1066,e.afii10045=1067,e.afii10046=1068,e.afii10047=1069,e.afii10048=1070,e.afii10049=1071,e.afii10050=1168,e.afii10051=1026,e.afii10052=1027,e.afii10053=1028,e.afii10054=1029,e.afii10055=1030,e.afii10056=1031,e.afii10057=1032,e.afii10058=1033,e.afii10059=1034,e.afii10060=1035,e.afii10061=1036,e.afii10062=1038,e.afii10063=63172,e.afii10064=63173,e.afii10065=1072,e.afii10066=1073,e.afii10067=1074,e.afii10068=1075,e.afii10069=1076,e.afii10070=1077,e.afii10071=1105,e.afii10072=1078,e.afii10073=1079,e.afii10074=1080,e.afii10075=1081,e.afii10076=1082,e.afii10077=1083,e.afii10078=1084,e.afii10079=1085,e.afii10080=1086,e.afii10081=1087,e.afii10082=1088,e.afii10083=1089,e.afii10084=1090,e.afii10085=1091,e.afii10086=1092,e.afii10087=1093,e.afii10088=1094,e.afii10089=1095,e.afii10090=1096,e.afii10091=1097,e.afii10092=1098,e.afii10093=1099,e.afii10094=1100,e.afii10095=1101,e.afii10096=1102,e.afii10097=1103,e.afii10098=1169,e.afii10099=1106,e.afii10100=1107,e.afii10101=1108,e.afii10102=1109,e.afii10103=1110,e.afii10104=1111,e.afii10105=1112,e.afii10106=1113,e.afii10107=1114,e.afii10108=1115,e.afii10109=1116,e.afii10110=1118,e.afii10145=1039,e.afii10146=1122,e.afii10147=1138,e.afii10148=1140,e.afii10192=63174,e.afii10193=1119,e.afii10194=1123,e.afii10195=1139,e.afii10196=1141,e.afii10831=63175,e.afii10832=63176,e.afii10846=1241,e.afii299=8206,e.afii300=8207,e.afii301=8205,e.afii57381=1642,e.afii57388=1548,e.afii57392=1632,e.afii57393=1633,e.afii57394=1634,e.afii57395=1635,e.afii57396=1636,e.afii57397=1637,e.afii57398=1638,e.afii57399=1639,e.afii57400=1640,e.afii57401=1641,e.afii57403=1563,e.afii57407=1567,e.afii57409=1569,e.afii57410=1570,e.afii57411=1571,e.afii57412=1572,e.afii57413=1573,e.afii57414=1574,e.afii57415=1575,e.afii57416=1576,e.afii57417=1577,e.afii57418=1578,e.afii57419=1579,e.afii57420=1580,e.afii57421=1581,e.afii57422=1582,e.afii57423=1583,e.afii57424=1584,e.afii57425=1585,e.afii57426=1586,e.afii57427=1587,e.afii57428=1588,e.afii57429=1589,e.afii57430=1590,e.afii57431=1591,e.afii57432=1592,e.afii57433=1593,e.afii57434=1594,e.afii57440=1600,e.afii57441=1601,e.afii57442=1602,e.afii57443=1603,e.afii57444=1604,e.afii57445=1605,e.afii57446=1606,e.afii57448=1608,e.afii57449=1609,e.afii57450=1610,e.afii57451=1611,e.afii57452=1612,e.afii57453=1613,e.afii57454=1614,e.afii57455=1615,e.afii57456=1616,e.afii57457=1617,e.afii57458=1618,e.afii57470=1607,e.afii57505=1700,e.afii57506=1662,e.afii57507=1670,e.afii57508=1688,e.afii57509=1711,e.afii57511=1657,e.afii57512=1672,e.afii57513=1681,e.afii57514=1722,e.afii57519=1746,e.afii57534=1749,e.afii57636=8362,e.afii57645=1470,e.afii57658=1475,e.afii57664=1488,e.afii57665=1489,e.afii57666=1490,e.afii57667=1491,e.afii57668=1492,e.afii57669=1493,e.afii57670=1494,e.afii57671=1495,e.afii57672=1496,e.afii57673=1497,e.afii57674=1498,e.afii57675=1499,e.afii57676=1500,e.afii57677=1501,e.afii57678=1502,e.afii57679=1503,e.afii57680=1504,e.afii57681=1505,e.afii57682=1506,e.afii57683=1507,e.afii57684=1508,e.afii57685=1509,e.afii57686=1510,e.afii57687=1511,e.afii57688=1512,e.afii57689=1513,e.afii57690=1514,e.afii57694=64298,e.afii57695=64299,e.afii57700=64331,e.afii57705=64287,e.afii57716=1520,e.afii57717=1521,e.afii57718=1522,e.afii57723=64309,e.afii57793=1460,e.afii57794=1461,e.afii57795=1462,e.afii57796=1467,e.afii57797=1464,e.afii57798=1463,e.afii57799=1456,e.afii57800=1458,e.afii57801=1457,e.afii57802=1459,e.afii57803=1474,e.afii57804=1473,e.afii57806=1465,e.afii57807=1468,e.afii57839=1469,e.afii57841=1471,e.afii57842=1472,e.afii57929=700,e.afii61248=8453,e.afii61289=8467,e.afii61352=8470,e.afii61573=8236,e.afii61574=8237,e.afii61575=8238,e.afii61664=8204,e.afii63167=1645,e.afii64937=701,e.agrave=224,e.agujarati=2693,e.agurmukhi=2565,e.ahiragana=12354,e.ahookabove=7843,e.aibengali=2448,e.aibopomofo=12574,e.aideva=2320,e.aiecyrillic=1237,e.aigujarati=2704,e.aigurmukhi=2576,e.aimatragurmukhi=2632,e.ainarabic=1593,e.ainfinalarabic=65226,e.aininitialarabic=65227,e.ainmedialarabic=65228,e.ainvertedbreve=515,e.aivowelsignbengali=2504,e.aivowelsigndeva=2376,e.aivowelsigngujarati=2760,e.akatakana=12450,e.akatakanahalfwidth=65393,e.akorean=12623,e.alef=1488,e.alefarabic=1575,e.alefdageshhebrew=64304,e.aleffinalarabic=65166,e.alefhamzaabovearabic=1571,e.alefhamzaabovefinalarabic=65156,e.alefhamzabelowarabic=1573,e.alefhamzabelowfinalarabic=65160,e.alefhebrew=1488,e.aleflamedhebrew=64335,e.alefmaddaabovearabic=1570,e.alefmaddaabovefinalarabic=65154,e.alefmaksuraarabic=1609,e.alefmaksurafinalarabic=65264,e.alefmaksurainitialarabic=65267,e.alefmaksuramedialarabic=65268,e.alefpatahhebrew=64302,e.alefqamatshebrew=64303,e.aleph=8501,e.allequal=8780,e.alpha=945,e.alphatonos=940,e.amacron=257,e.amonospace=65345,e.ampersand=38,e.ampersandmonospace=65286,e.ampersandsmall=63270,e.amsquare=13250,e.anbopomofo=12578,e.angbopomofo=12580,e.angbracketleft=12296,e.angbracketright=12297,e.angkhankhuthai=3674,e.angle=8736,e.anglebracketleft=12296,e.anglebracketleftvertical=65087,e.anglebracketright=12297,e.anglebracketrightvertical=65088,e.angleleft=9001,e.angleright=9002,e.angstrom=8491,e.anoteleia=903,e.anudattadeva=2386,e.anusvarabengali=2434,e.anusvaradeva=2306,e.anusvaragujarati=2690,e.aogonek=261,e.apaatosquare=13056,e.aparen=9372,e.apostrophearmenian=1370,e.apostrophemod=700,e.apple=63743,e.approaches=8784,e.approxequal=8776,e.approxequalorimage=8786,e.approximatelyequal=8773,e.araeaekorean=12686,e.araeakorean=12685,e.arc=8978,e.arighthalfring=7834,e.aring=229,e.aringacute=507,e.aringbelow=7681,e.arrowboth=8596,e.arrowdashdown=8675,e.arrowdashleft=8672,e.arrowdashright=8674,e.arrowdashup=8673,e.arrowdblboth=8660,e.arrowdbldown=8659,e.arrowdblleft=8656,e.arrowdblright=8658,e.arrowdblup=8657,e.arrowdown=8595,e.arrowdownleft=8601,e.arrowdownright=8600,e.arrowdownwhite=8681,e.arrowheaddownmod=709,e.arrowheadleftmod=706,e.arrowheadrightmod=707,e.arrowheadupmod=708,e.arrowhorizex=63719,e.arrowleft=8592,e.arrowleftdbl=8656,e.arrowleftdblstroke=8653,e.arrowleftoverright=8646,e.arrowleftwhite=8678,e.arrowright=8594,e.arrowrightdblstroke=8655,e.arrowrightheavy=10142,e.arrowrightoverleft=8644,e.arrowrightwhite=8680,e.arrowtableft=8676,e.arrowtabright=8677,e.arrowup=8593,e.arrowupdn=8597,e.arrowupdnbse=8616,e.arrowupdownbase=8616,e.arrowupleft=8598,e.arrowupleftofdown=8645,e.arrowupright=8599,e.arrowupwhite=8679,e.arrowvertex=63718,e.asciicircum=94,e.asciicircummonospace=65342,e.asciitilde=126,e.asciitildemonospace=65374,e.ascript=593,e.ascriptturned=594,e.asmallhiragana=12353,e.asmallkatakana=12449,e.asmallkatakanahalfwidth=65383,e.asterisk=42,e.asteriskaltonearabic=1645,e.asteriskarabic=1645,e.asteriskmath=8727,e.asteriskmonospace=65290,e.asterisksmall=65121,e.asterism=8258,e.asuperior=63209,e.asymptoticallyequal=8771,e.at=64,e.atilde=227,e.atmonospace=65312,e.atsmall=65131,e.aturned=592,e.aubengali=2452,e.aubopomofo=12576,e.audeva=2324,e.augujarati=2708,e.augurmukhi=2580,e.aulengthmarkbengali=2519,e.aumatragurmukhi=2636,e.auvowelsignbengali=2508,e.auvowelsigndeva=2380,e.auvowelsigngujarati=2764,e.avagrahadeva=2365,e.aybarmenian=1377,e.ayin=1506,e.ayinaltonehebrew=64288,e.ayinhebrew=1506,e.b=98,e.babengali=2476,e.backslash=92,e.backslashmonospace=65340,e.badeva=2348,e.bagujarati=2732,e.bagurmukhi=2604,e.bahiragana=12400,e.bahtthai=3647,e.bakatakana=12496,e.bar=124,e.barmonospace=65372,e.bbopomofo=12549,e.bcircle=9425,e.bdotaccent=7683,e.bdotbelow=7685,e.beamedsixteenthnotes=9836,e.because=8757,e.becyrillic=1073,e.beharabic=1576,e.behfinalarabic=65168,e.behinitialarabic=65169,e.behiragana=12409,e.behmedialarabic=65170,e.behmeeminitialarabic=64671,e.behmeemisolatedarabic=64520,e.behnoonfinalarabic=64621,e.bekatakana=12505,e.benarmenian=1378,e.bet=1489,e.beta=946,e.betasymbolgreek=976,e.betdagesh=64305,e.betdageshhebrew=64305,e.bethebrew=1489,e.betrafehebrew=64332,e.bhabengali=2477,e.bhadeva=2349,e.bhagujarati=2733,e.bhagurmukhi=2605,e.bhook=595,e.bihiragana=12403,e.bikatakana=12499,e.bilabialclick=664,e.bindigurmukhi=2562,e.birusquare=13105,e.blackcircle=9679,e.blackdiamond=9670,e.blackdownpointingtriangle=9660,e.blackleftpointingpointer=9668,e.blackleftpointingtriangle=9664,e.blacklenticularbracketleft=12304,e.blacklenticularbracketleftvertical=65083,e.blacklenticularbracketright=12305,e.blacklenticularbracketrightvertical=65084,e.blacklowerlefttriangle=9699,e.blacklowerrighttriangle=9698,e.blackrectangle=9644,e.blackrightpointingpointer=9658,e.blackrightpointingtriangle=9654,e.blacksmallsquare=9642,e.blacksmilingface=9787,e.blacksquare=9632,e.blackstar=9733,e.blackupperlefttriangle=9700,e.blackupperrighttriangle=9701,e.blackuppointingsmalltriangle=9652,e.blackuppointingtriangle=9650,e.blank=9251,e.blinebelow=7687,e.block=9608,e.bmonospace=65346,e.bobaimaithai=3610,e.bohiragana=12412,e.bokatakana=12508,e.bparen=9373,e.bqsquare=13251,e.braceex=63732,e.braceleft=123,e.braceleftbt=63731,e.braceleftmid=63730,e.braceleftmonospace=65371,e.braceleftsmall=65115,e.bracelefttp=63729,e.braceleftvertical=65079,e.braceright=125,e.bracerightbt=63742,e.bracerightmid=63741,e.bracerightmonospace=65373,e.bracerightsmall=65116,e.bracerighttp=63740,e.bracerightvertical=65080,e.bracketleft=91,e.bracketleftbt=63728,e.bracketleftex=63727,e.bracketleftmonospace=65339,e.bracketlefttp=63726,e.bracketright=93,e.bracketrightbt=63739,e.bracketrightex=63738,e.bracketrightmonospace=65341,e.bracketrighttp=63737,e.breve=728,e.brevebelowcmb=814,e.brevecmb=774,e.breveinvertedbelowcmb=815,e.breveinvertedcmb=785,e.breveinverteddoublecmb=865,e.bridgebelowcmb=810,e.bridgeinvertedbelowcmb=826,e.brokenbar=166,e.bstroke=384,e.bsuperior=63210,e.btopbar=387,e.buhiragana=12406,e.bukatakana=12502,e.bullet=8226,e.bulletinverse=9688,e.bulletoperator=8729,e.bullseye=9678,e.c=99,e.caarmenian=1390,e.cabengali=2458,e.cacute=263,e.cadeva=2330,e.cagujarati=2714,e.cagurmukhi=2586,e.calsquare=13192,e.candrabindubengali=2433,e.candrabinducmb=784,e.candrabindudeva=2305,e.candrabindugujarati=2689,e.capslock=8682,e.careof=8453,e.caron=711,e.caronbelowcmb=812,e.caroncmb=780,e.carriagereturn=8629,e.cbopomofo=12568,e.ccaron=269,e.ccedilla=231,e.ccedillaacute=7689,e.ccircle=9426,e.ccircumflex=265,e.ccurl=597,e.cdot=267,e.cdotaccent=267,e.cdsquare=13253,e.cedilla=184,e.cedillacmb=807,e.cent=162,e.centigrade=8451,e.centinferior=63199,e.centmonospace=65504,e.centoldstyle=63394,e.centsuperior=63200,e.chaarmenian=1401,e.chabengali=2459,e.chadeva=2331,e.chagujarati=2715,e.chagurmukhi=2587,e.chbopomofo=12564,e.cheabkhasiancyrillic=1213,e.checkmark=10003,e.checyrillic=1095,e.chedescenderabkhasiancyrillic=1215,e.chedescendercyrillic=1207,e.chedieresiscyrillic=1269,e.cheharmenian=1395,e.chekhakassiancyrillic=1228,e.cheverticalstrokecyrillic=1209,e.chi=967,e.chieuchacirclekorean=12919,e.chieuchaparenkorean=12823,e.chieuchcirclekorean=12905,e.chieuchkorean=12618,e.chieuchparenkorean=12809,e.chochangthai=3594,e.chochanthai=3592,e.chochingthai=3593,e.chochoethai=3596,e.chook=392,e.cieucacirclekorean=12918,e.cieucaparenkorean=12822,e.cieuccirclekorean=12904,e.cieuckorean=12616,e.cieucparenkorean=12808,e.cieucuparenkorean=12828,e.circle=9675,e.circlecopyrt=169,e.circlemultiply=8855,e.circleot=8857,e.circleplus=8853,e.circlepostalmark=12342,e.circlewithlefthalfblack=9680,e.circlewithrighthalfblack=9681,e.circumflex=710,e.circumflexbelowcmb=813,e.circumflexcmb=770,e.clear=8999,e.clickalveolar=450,e.clickdental=448,e.clicklateral=449,e.clickretroflex=451,e.club=9827,e.clubsuitblack=9827,e.clubsuitwhite=9831,e.cmcubedsquare=13220,e.cmonospace=65347,e.cmsquaredsquare=13216,e.coarmenian=1409,e.colon=58,e.colonmonetary=8353,e.colonmonospace=65306,e.colonsign=8353,e.colonsmall=65109,e.colontriangularhalfmod=721,e.colontriangularmod=720,e.comma=44,e.commaabovecmb=787,e.commaaboverightcmb=789,e.commaaccent=63171,e.commaarabic=1548,e.commaarmenian=1373,e.commainferior=63201,e.commamonospace=65292,e.commareversedabovecmb=788,e.commareversedmod=701,e.commasmall=65104,e.commasuperior=63202,e.commaturnedabovecmb=786,e.commaturnedmod=699,e.compass=9788,e.congruent=8773,e.contourintegral=8750,e.control=8963,e.controlACK=6,e.controlBEL=7,e.controlBS=8,e.controlCAN=24,e.controlCR=13,e.controlDC1=17,e.controlDC2=18,e.controlDC3=19,e.controlDC4=20,e.controlDEL=127,e.controlDLE=16,e.controlEM=25,e.controlENQ=5,e.controlEOT=4,e.controlESC=27,e.controlETB=23,e.controlETX=3,e.controlFF=12,e.controlFS=28,e.controlGS=29,e.controlHT=9,e.controlLF=10,e.controlNAK=21,e.controlNULL=0,e.controlRS=30,e.controlSI=15,e.controlSO=14,e.controlSOT=2,e.controlSTX=1,e.controlSUB=26,e.controlSYN=22,e.controlUS=31,e.controlVT=11,e.copyright=169,e.copyrightsans=63721,e.copyrightserif=63193,e.cornerbracketleft=12300,e.cornerbracketlefthalfwidth=65378,e.cornerbracketleftvertical=65089,e.cornerbracketright=12301,e.cornerbracketrighthalfwidth=65379,e.cornerbracketrightvertical=65090,e.corporationsquare=13183,e.cosquare=13255,e.coverkgsquare=13254,e.cparen=9374,e.cruzeiro=8354,e.cstretched=663,e.curlyand=8911,e.curlyor=8910,e.currency=164,e.cyrBreve=63185,e.cyrFlex=63186,e.cyrbreve=63188,e.cyrflex=63189,e.d=100,e.daarmenian=1380,e.dabengali=2470,e.dadarabic=1590,e.dadeva=2342,e.dadfinalarabic=65214,e.dadinitialarabic=65215,e.dadmedialarabic=65216,e.dagesh=1468,e.dageshhebrew=1468,e.dagger=8224,e.daggerdbl=8225,e.dagujarati=2726,e.dagurmukhi=2598,e.dahiragana=12384,e.dakatakana=12480,e.dalarabic=1583,e.dalet=1491,e.daletdagesh=64307,e.daletdageshhebrew=64307,e.dalethebrew=1491,e.dalfinalarabic=65194,e.dammaarabic=1615,e.dammalowarabic=1615,e.dammatanaltonearabic=1612,e.dammatanarabic=1612,e.danda=2404,e.dargahebrew=1447,e.dargalefthebrew=1447,e.dasiapneumatacyrilliccmb=1157,e.dblGrave=63187,e.dblanglebracketleft=12298,e.dblanglebracketleftvertical=65085,e.dblanglebracketright=12299,e.dblanglebracketrightvertical=65086,e.dblarchinvertedbelowcmb=811,e.dblarrowleft=8660,e.dblarrowright=8658,e.dbldanda=2405,e.dblgrave=63190,e.dblgravecmb=783,e.dblintegral=8748,e.dbllowline=8215,e.dbllowlinecmb=819,e.dbloverlinecmb=831,e.dblprimemod=698,e.dblverticalbar=8214,e.dblverticallineabovecmb=782,e.dbopomofo=12553,e.dbsquare=13256,e.dcaron=271,e.dcedilla=7697,e.dcircle=9427,e.dcircumflexbelow=7699,e.dcroat=273,e.ddabengali=2465,e.ddadeva=2337,e.ddagujarati=2721,e.ddagurmukhi=2593,e.ddalarabic=1672,e.ddalfinalarabic=64393,e.dddhadeva=2396,e.ddhabengali=2466,e.ddhadeva=2338,e.ddhagujarati=2722,e.ddhagurmukhi=2594,e.ddotaccent=7691,e.ddotbelow=7693,e.decimalseparatorarabic=1643,e.decimalseparatorpersian=1643,e.decyrillic=1076,e.degree=176,e.dehihebrew=1453,e.dehiragana=12391,e.deicoptic=1007,e.dekatakana=12487,e.deleteleft=9003,e.deleteright=8998,e.delta=948,e.deltaturned=397,e.denominatorminusonenumeratorbengali=2552,e.dezh=676,e.dhabengali=2471,e.dhadeva=2343,e.dhagujarati=2727,e.dhagurmukhi=2599,e.dhook=599,e.dialytikatonos=901,e.dialytikatonoscmb=836,e.diamond=9830,e.diamondsuitwhite=9826,e.dieresis=168,e.dieresisacute=63191,e.dieresisbelowcmb=804,e.dieresiscmb=776,e.dieresisgrave=63192,e.dieresistonos=901,e.dihiragana=12386,e.dikatakana=12482,e.dittomark=12291,e.divide=247,e.divides=8739,e.divisionslash=8725,e.djecyrillic=1106,e.dkshade=9619,e.dlinebelow=7695,e.dlsquare=13207,e.dmacron=273,e.dmonospace=65348,e.dnblock=9604,e.dochadathai=3598,e.dodekthai=3604,e.dohiragana=12393,e.dokatakana=12489,e.dollar=36,e.dollarinferior=63203,e.dollarmonospace=65284,e.dollaroldstyle=63268,e.dollarsmall=65129,e.dollarsuperior=63204,e.dong=8363,e.dorusquare=13094,e.dotaccent=729,e.dotaccentcmb=775,e.dotbelowcmb=803,e.dotbelowcomb=803,e.dotkatakana=12539,e.dotlessi=305,e.dotlessj=63166,e.dotlessjstrokehook=644,e.dotmath=8901,e.dottedcircle=9676,e.doubleyodpatah=64287,e.doubleyodpatahhebrew=64287,e.downtackbelowcmb=798,e.downtackmod=725,e.dparen=9375,e.dsuperior=63211,e.dtail=598,e.dtopbar=396,e.duhiragana=12389,e.dukatakana=12485,e.dz=499,e.dzaltone=675,e.dzcaron=454,e.dzcurl=677,e.dzeabkhasiancyrillic=1249,e.dzecyrillic=1109,e.dzhecyrillic=1119,e.e=101,e.eacute=233,e.earth=9793,e.ebengali=2447,e.ebopomofo=12572,e.ebreve=277,e.ecandradeva=2317,e.ecandragujarati=2701,e.ecandravowelsigndeva=2373,e.ecandravowelsigngujarati=2757,e.ecaron=283,e.ecedillabreve=7709,e.echarmenian=1381,e.echyiwnarmenian=1415,e.ecircle=9428,e.ecircumflex=234,e.ecircumflexacute=7871,e.ecircumflexbelow=7705,e.ecircumflexdotbelow=7879,e.ecircumflexgrave=7873,e.ecircumflexhookabove=7875,e.ecircumflextilde=7877,e.ecyrillic=1108,e.edblgrave=517,e.edeva=2319,e.edieresis=235,e.edot=279,e.edotaccent=279,e.edotbelow=7865,e.eegurmukhi=2575,e.eematragurmukhi=2631,e.efcyrillic=1092,e.egrave=232,e.egujarati=2703,e.eharmenian=1383,e.ehbopomofo=12573,e.ehiragana=12360,e.ehookabove=7867,e.eibopomofo=12575,e.eight=56,e.eightarabic=1640,e.eightbengali=2542,e.eightcircle=9319,e.eightcircleinversesansserif=10129,e.eightdeva=2414,e.eighteencircle=9329,e.eighteenparen=9349,e.eighteenperiod=9369,e.eightgujarati=2798,e.eightgurmukhi=2670,e.eighthackarabic=1640,e.eighthangzhou=12328,e.eighthnotebeamed=9835,e.eightideographicparen=12839,e.eightinferior=8328,e.eightmonospace=65304,e.eightoldstyle=63288,e.eightparen=9339,e.eightperiod=9359,e.eightpersian=1784,e.eightroman=8567,e.eightsuperior=8312,e.eightthai=3672,e.einvertedbreve=519,e.eiotifiedcyrillic=1125,e.ekatakana=12456,e.ekatakanahalfwidth=65396,e.ekonkargurmukhi=2676,e.ekorean=12628,e.elcyrillic=1083,e.element=8712,e.elevencircle=9322,e.elevenparen=9342,e.elevenperiod=9362,e.elevenroman=8570,e.ellipsis=8230,e.ellipsisvertical=8942,e.emacron=275,e.emacronacute=7703,e.emacrongrave=7701,e.emcyrillic=1084,e.emdash=8212,e.emdashvertical=65073,e.emonospace=65349,e.emphasismarkarmenian=1371,e.emptyset=8709,e.enbopomofo=12579,e.encyrillic=1085,e.endash=8211,e.endashvertical=65074,e.endescendercyrillic=1187,e.eng=331,e.engbopomofo=12581,e.enghecyrillic=1189,e.enhookcyrillic=1224,e.enspace=8194,e.eogonek=281,e.eokorean=12627,e.eopen=603,e.eopenclosed=666,e.eopenreversed=604,e.eopenreversedclosed=606,e.eopenreversedhook=605,e.eparen=9376,e.epsilon=949,e.epsilontonos=941,e.equal=61,e.equalmonospace=65309,e.equalsmall=65126,e.equalsuperior=8316,e.equivalence=8801,e.erbopomofo=12582,e.ercyrillic=1088,e.ereversed=600,e.ereversedcyrillic=1101,e.escyrillic=1089,e.esdescendercyrillic=1195,e.esh=643,e.eshcurl=646,e.eshortdeva=2318,e.eshortvowelsigndeva=2374,e.eshreversedloop=426,e.eshsquatreversed=645,e.esmallhiragana=12359,e.esmallkatakana=12455,e.esmallkatakanahalfwidth=65386,e.estimated=8494,e.esuperior=63212,e.eta=951,e.etarmenian=1384,e.etatonos=942,e.eth=240,e.etilde=7869,e.etildebelow=7707,e.etnahtafoukhhebrew=1425,e.etnahtafoukhlefthebrew=1425,e.etnahtahebrew=1425,e.etnahtalefthebrew=1425,e.eturned=477,e.eukorean=12641,e.euro=8364,e.evowelsignbengali=2503,e.evowelsigndeva=2375,e.evowelsigngujarati=2759,e.exclam=33,e.exclamarmenian=1372,e.exclamdbl=8252,e.exclamdown=161,e.exclamdownsmall=63393,e.exclammonospace=65281,e.exclamsmall=63265,e.existential=8707,e.ezh=658,e.ezhcaron=495,e.ezhcurl=659,e.ezhreversed=441,e.ezhtail=442,e.f=102,e.fadeva=2398,e.fagurmukhi=2654,e.fahrenheit=8457,e.fathaarabic=1614,e.fathalowarabic=1614,e.fathatanarabic=1611,e.fbopomofo=12552,e.fcircle=9429,e.fdotaccent=7711,e.feharabic=1601,e.feharmenian=1414,e.fehfinalarabic=65234,e.fehinitialarabic=65235,e.fehmedialarabic=65236,e.feicoptic=997,e.female=9792,e.ff=64256,e.f_f=64256,e.ffi=64259,e.ffl=64260,e.fi=64257,e.fifteencircle=9326,e.fifteenparen=9346,e.fifteenperiod=9366,e.figuredash=8210,e.filledbox=9632,e.filledrect=9644,e.finalkaf=1498,e.finalkafdagesh=64314,e.finalkafdageshhebrew=64314,e.finalkafhebrew=1498,e.finalmem=1501,e.finalmemhebrew=1501,e.finalnun=1503,e.finalnunhebrew=1503,e.finalpe=1507,e.finalpehebrew=1507,e.finaltsadi=1509,e.finaltsadihebrew=1509,e.firsttonechinese=713,e.fisheye=9673,e.fitacyrillic=1139,e.five=53,e.fivearabic=1637,e.fivebengali=2539,e.fivecircle=9316,e.fivecircleinversesansserif=10126,e.fivedeva=2411,e.fiveeighths=8541,e.fivegujarati=2795,e.fivegurmukhi=2667,e.fivehackarabic=1637,e.fivehangzhou=12325,e.fiveideographicparen=12836,e.fiveinferior=8325,e.fivemonospace=65301,e.fiveoldstyle=63285,e.fiveparen=9336,e.fiveperiod=9356,e.fivepersian=1781,e.fiveroman=8564,e.fivesuperior=8309,e.fivethai=3669,e.fl=64258,e.florin=402,e.fmonospace=65350,e.fmsquare=13209,e.fofanthai=3615,e.fofathai=3613,e.fongmanthai=3663,e.forall=8704,e.four=52,e.fourarabic=1636,e.fourbengali=2538,e.fourcircle=9315,e.fourcircleinversesansserif=10125,e.fourdeva=2410,e.fourgujarati=2794,e.fourgurmukhi=2666,e.fourhackarabic=1636,e.fourhangzhou=12324,e.fourideographicparen=12835,e.fourinferior=8324,e.fourmonospace=65300,e.fournumeratorbengali=2551,e.fouroldstyle=63284,e.fourparen=9335,e.fourperiod=9355,e.fourpersian=1780,e.fourroman=8563,e.foursuperior=8308,e.fourteencircle=9325,e.fourteenparen=9345,e.fourteenperiod=9365,e.fourthai=3668,e.fourthtonechinese=715,e.fparen=9377,e.fraction=8260,e.franc=8355,e.g=103,e.gabengali=2455,e.gacute=501,e.gadeva=2327,e.gafarabic=1711,e.gaffinalarabic=64403,e.gafinitialarabic=64404,e.gafmedialarabic=64405,e.gagujarati=2711,e.gagurmukhi=2583,e.gahiragana=12364,e.gakatakana=12460,e.gamma=947,e.gammalatinsmall=611,e.gammasuperior=736,e.gangiacoptic=1003,e.gbopomofo=12557,e.gbreve=287,e.gcaron=487,e.gcedilla=291,e.gcircle=9430,e.gcircumflex=285,e.gcommaaccent=291,e.gdot=289,e.gdotaccent=289,e.gecyrillic=1075,e.gehiragana=12370,e.gekatakana=12466,e.geometricallyequal=8785,e.gereshaccenthebrew=1436,e.gereshhebrew=1523,e.gereshmuqdamhebrew=1437,e.germandbls=223,e.gershayimaccenthebrew=1438,e.gershayimhebrew=1524,e.getamark=12307,e.ghabengali=2456,e.ghadarmenian=1394,e.ghadeva=2328,e.ghagujarati=2712,e.ghagurmukhi=2584,e.ghainarabic=1594,e.ghainfinalarabic=65230,e.ghaininitialarabic=65231,e.ghainmedialarabic=65232,e.ghemiddlehookcyrillic=1173,e.ghestrokecyrillic=1171,e.gheupturncyrillic=1169,e.ghhadeva=2394,e.ghhagurmukhi=2650,e.ghook=608,e.ghzsquare=13203,e.gihiragana=12366,e.gikatakana=12462,e.gimarmenian=1379,e.gimel=1490,e.gimeldagesh=64306,e.gimeldageshhebrew=64306,e.gimelhebrew=1490,e.gjecyrillic=1107,e.glottalinvertedstroke=446,e.glottalstop=660,e.glottalstopinverted=662,e.glottalstopmod=704,e.glottalstopreversed=661,e.glottalstopreversedmod=705,e.glottalstopreversedsuperior=740,e.glottalstopstroke=673,e.glottalstopstrokereversed=674,e.gmacron=7713,e.gmonospace=65351,e.gohiragana=12372,e.gokatakana=12468,e.gparen=9378,e.gpasquare=13228,e.gradient=8711,e.grave=96,e.gravebelowcmb=790,e.gravecmb=768,e.gravecomb=768,e.gravedeva=2387,e.gravelowmod=718,e.gravemonospace=65344,e.gravetonecmb=832,e.greater=62,e.greaterequal=8805,e.greaterequalorless=8923,e.greatermonospace=65310,e.greaterorequivalent=8819,e.greaterorless=8823,e.greateroverequal=8807,e.greatersmall=65125,e.gscript=609,e.gstroke=485,e.guhiragana=12368,e.guillemotleft=171,e.guillemotright=187,e.guilsinglleft=8249,e.guilsinglright=8250,e.gukatakana=12464,e.guramusquare=13080,e.gysquare=13257,e.h=104,e.haabkhasiancyrillic=1193,e.haaltonearabic=1729,e.habengali=2489,e.hadescendercyrillic=1203,e.hadeva=2361,e.hagujarati=2745,e.hagurmukhi=2617,e.haharabic=1581,e.hahfinalarabic=65186,e.hahinitialarabic=65187,e.hahiragana=12399,e.hahmedialarabic=65188,e.haitusquare=13098,e.hakatakana=12495,e.hakatakanahalfwidth=65418,e.halantgurmukhi=2637,e.hamzaarabic=1569,e.hamzalowarabic=1569,e.hangulfiller=12644,e.hardsigncyrillic=1098,e.harpoonleftbarbup=8636,e.harpoonrightbarbup=8640,e.hasquare=13258,e.hatafpatah=1458,e.hatafpatah16=1458,e.hatafpatah23=1458,e.hatafpatah2f=1458,e.hatafpatahhebrew=1458,e.hatafpatahnarrowhebrew=1458,e.hatafpatahquarterhebrew=1458,e.hatafpatahwidehebrew=1458,e.hatafqamats=1459,e.hatafqamats1b=1459,e.hatafqamats28=1459,e.hatafqamats34=1459,e.hatafqamatshebrew=1459,e.hatafqamatsnarrowhebrew=1459,e.hatafqamatsquarterhebrew=1459,e.hatafqamatswidehebrew=1459,e.hatafsegol=1457,e.hatafsegol17=1457,e.hatafsegol24=1457,e.hatafsegol30=1457,e.hatafsegolhebrew=1457,e.hatafsegolnarrowhebrew=1457,e.hatafsegolquarterhebrew=1457,e.hatafsegolwidehebrew=1457,e.hbar=295,e.hbopomofo=12559,e.hbrevebelow=7723,e.hcedilla=7721,e.hcircle=9431,e.hcircumflex=293,e.hdieresis=7719,e.hdotaccent=7715,e.hdotbelow=7717,e.he=1492,e.heart=9829,e.heartsuitblack=9829,e.heartsuitwhite=9825,e.hedagesh=64308,e.hedageshhebrew=64308,e.hehaltonearabic=1729,e.heharabic=1607,e.hehebrew=1492,e.hehfinalaltonearabic=64423,e.hehfinalalttwoarabic=65258,e.hehfinalarabic=65258,e.hehhamzaabovefinalarabic=64421,e.hehhamzaaboveisolatedarabic=64420,e.hehinitialaltonearabic=64424,e.hehinitialarabic=65259,e.hehiragana=12408,e.hehmedialaltonearabic=64425,e.hehmedialarabic=65260,e.heiseierasquare=13179,e.hekatakana=12504,e.hekatakanahalfwidth=65421,e.hekutaarusquare=13110,e.henghook=615,e.herutusquare=13113,e.het=1495,e.hethebrew=1495,e.hhook=614,e.hhooksuperior=689,e.hieuhacirclekorean=12923,e.hieuhaparenkorean=12827,e.hieuhcirclekorean=12909,e.hieuhkorean=12622,e.hieuhparenkorean=12813,e.hihiragana=12402,e.hikatakana=12498,e.hikatakanahalfwidth=65419,e.hiriq=1460,e.hiriq14=1460,e.hiriq21=1460,e.hiriq2d=1460,e.hiriqhebrew=1460,e.hiriqnarrowhebrew=1460,e.hiriqquarterhebrew=1460,e.hiriqwidehebrew=1460,e.hlinebelow=7830,e.hmonospace=65352,e.hoarmenian=1392,e.hohipthai=3627,e.hohiragana=12411,e.hokatakana=12507,e.hokatakanahalfwidth=65422,e.holam=1465,e.holam19=1465,e.holam26=1465,e.holam32=1465,e.holamhebrew=1465,e.holamnarrowhebrew=1465,e.holamquarterhebrew=1465,e.holamwidehebrew=1465,e.honokhukthai=3630,e.hookabovecomb=777,e.hookcmb=777,e.hookpalatalizedbelowcmb=801,e.hookretroflexbelowcmb=802,e.hoonsquare=13122,e.horicoptic=1001,e.horizontalbar=8213,e.horncmb=795,e.hotsprings=9832,e.house=8962,e.hparen=9379,e.hsuperior=688,e.hturned=613,e.huhiragana=12405,e.huiitosquare=13107,e.hukatakana=12501,e.hukatakanahalfwidth=65420,e.hungarumlaut=733,e.hungarumlautcmb=779,e.hv=405,e.hyphen=45,e.hypheninferior=63205,e.hyphenmonospace=65293,e.hyphensmall=65123,e.hyphensuperior=63206,e.hyphentwo=8208,e.i=105,e.iacute=237,e.iacyrillic=1103,e.ibengali=2439,e.ibopomofo=12583,e.ibreve=301,e.icaron=464,e.icircle=9432,e.icircumflex=238,e.icyrillic=1110,e.idblgrave=521,e.ideographearthcircle=12943,e.ideographfirecircle=12939,e.ideographicallianceparen=12863,e.ideographiccallparen=12858,e.ideographiccentrecircle=12965,e.ideographicclose=12294,e.ideographiccomma=12289,e.ideographiccommaleft=65380,e.ideographiccongratulationparen=12855,e.ideographiccorrectcircle=12963,e.ideographicearthparen=12847,e.ideographicenterpriseparen=12861,e.ideographicexcellentcircle=12957,e.ideographicfestivalparen=12864,e.ideographicfinancialcircle=12950,e.ideographicfinancialparen=12854,e.ideographicfireparen=12843,e.ideographichaveparen=12850,e.ideographichighcircle=12964,e.ideographiciterationmark=12293,e.ideographiclaborcircle=12952,e.ideographiclaborparen=12856,e.ideographicleftcircle=12967,e.ideographiclowcircle=12966,e.ideographicmedicinecircle=12969,e.ideographicmetalparen=12846,e.ideographicmoonparen=12842,e.ideographicnameparen=12852,e.ideographicperiod=12290,e.ideographicprintcircle=12958,e.ideographicreachparen=12867,e.ideographicrepresentparen=12857,e.ideographicresourceparen=12862,e.ideographicrightcircle=12968,e.ideographicsecretcircle=12953,e.ideographicselfparen=12866,e.ideographicsocietyparen=12851,e.ideographicspace=12288,e.ideographicspecialparen=12853,e.ideographicstockparen=12849,e.ideographicstudyparen=12859,e.ideographicsunparen=12848,e.ideographicsuperviseparen=12860,e.ideographicwaterparen=12844,e.ideographicwoodparen=12845,e.ideographiczero=12295,e.ideographmetalcircle=12942,e.ideographmooncircle=12938,e.ideographnamecircle=12948,e.ideographsuncircle=12944,e.ideographwatercircle=12940,e.ideographwoodcircle=12941,e.ideva=2311,e.idieresis=239,e.idieresisacute=7727,e.idieresiscyrillic=1253,e.idotbelow=7883,e.iebrevecyrillic=1239,e.iecyrillic=1077,e.ieungacirclekorean=12917,e.ieungaparenkorean=12821,e.ieungcirclekorean=12903,e.ieungkorean=12615,e.ieungparenkorean=12807,e.igrave=236,e.igujarati=2695,e.igurmukhi=2567,e.ihiragana=12356,e.ihookabove=7881,e.iibengali=2440,e.iicyrillic=1080,e.iideva=2312,e.iigujarati=2696,e.iigurmukhi=2568,e.iimatragurmukhi=2624,e.iinvertedbreve=523,e.iishortcyrillic=1081,e.iivowelsignbengali=2496,e.iivowelsigndeva=2368,e.iivowelsigngujarati=2752,e.ij=307,e.ikatakana=12452,e.ikatakanahalfwidth=65394,e.ikorean=12643,e.ilde=732,e.iluyhebrew=1452,e.imacron=299,e.imacroncyrillic=1251,e.imageorapproximatelyequal=8787,e.imatragurmukhi=2623,e.imonospace=65353,e.increment=8710,e.infinity=8734,e.iniarmenian=1387,e.integral=8747,e.integralbottom=8993,e.integralbt=8993,e.integralex=63733,e.integraltop=8992,e.integraltp=8992,e.intersection=8745,e.intisquare=13061,e.invbullet=9688,e.invcircle=9689,e.invsmileface=9787,e.iocyrillic=1105,e.iogonek=303,e.iota=953,e.iotadieresis=970,e.iotadieresistonos=912,e.iotalatin=617,e.iotatonos=943,e.iparen=9380,e.irigurmukhi=2674,e.ismallhiragana=12355,e.ismallkatakana=12451,e.ismallkatakanahalfwidth=65384,e.issharbengali=2554,e.istroke=616,e.isuperior=63213,e.iterationhiragana=12445,e.iterationkatakana=12541,e.itilde=297,e.itildebelow=7725,e.iubopomofo=12585,e.iucyrillic=1102,e.ivowelsignbengali=2495,e.ivowelsigndeva=2367,e.ivowelsigngujarati=2751,e.izhitsacyrillic=1141,e.izhitsadblgravecyrillic=1143,e.j=106,e.jaarmenian=1393,e.jabengali=2460,e.jadeva=2332,e.jagujarati=2716,e.jagurmukhi=2588,e.jbopomofo=12560,e.jcaron=496,e.jcircle=9433,e.jcircumflex=309,e.jcrossedtail=669,e.jdotlessstroke=607,e.jecyrillic=1112,e.jeemarabic=1580,e.jeemfinalarabic=65182,e.jeeminitialarabic=65183,e.jeemmedialarabic=65184,e.jeharabic=1688,e.jehfinalarabic=64395,e.jhabengali=2461,e.jhadeva=2333,e.jhagujarati=2717,e.jhagurmukhi=2589,e.jheharmenian=1403,e.jis=12292,e.jmonospace=65354,e.jparen=9381,e.jsuperior=690,e.k=107,e.kabashkircyrillic=1185,e.kabengali=2453,e.kacute=7729,e.kacyrillic=1082,e.kadescendercyrillic=1179,e.kadeva=2325,e.kaf=1499,e.kafarabic=1603,e.kafdagesh=64315,e.kafdageshhebrew=64315,e.kaffinalarabic=65242,e.kafhebrew=1499,e.kafinitialarabic=65243,e.kafmedialarabic=65244,e.kafrafehebrew=64333,e.kagujarati=2709,e.kagurmukhi=2581,e.kahiragana=12363,e.kahookcyrillic=1220,e.kakatakana=12459,e.kakatakanahalfwidth=65398,e.kappa=954,e.kappasymbolgreek=1008,e.kapyeounmieumkorean=12657,e.kapyeounphieuphkorean=12676,e.kapyeounpieupkorean=12664,e.kapyeounssangpieupkorean=12665,e.karoriisquare=13069,e.kashidaautoarabic=1600,e.kashidaautonosidebearingarabic=1600,e.kasmallkatakana=12533,e.kasquare=13188,e.kasraarabic=1616,e.kasratanarabic=1613,e.kastrokecyrillic=1183,e.katahiraprolongmarkhalfwidth=65392,e.kaverticalstrokecyrillic=1181,e.kbopomofo=12558,e.kcalsquare=13193,e.kcaron=489,e.kcedilla=311,e.kcircle=9434,e.kcommaaccent=311,e.kdotbelow=7731,e.keharmenian=1412,e.kehiragana=12369,e.kekatakana=12465,e.kekatakanahalfwidth=65401,e.kenarmenian=1391,e.kesmallkatakana=12534,e.kgreenlandic=312,e.khabengali=2454,e.khacyrillic=1093,e.khadeva=2326,e.khagujarati=2710,e.khagurmukhi=2582,e.khaharabic=1582,e.khahfinalarabic=65190,e.khahinitialarabic=65191,e.khahmedialarabic=65192,e.kheicoptic=999,e.khhadeva=2393,e.khhagurmukhi=2649,e.khieukhacirclekorean=12920,e.khieukhaparenkorean=12824,e.khieukhcirclekorean=12906,e.khieukhkorean=12619,e.khieukhparenkorean=12810,e.khokhaithai=3586,e.khokhonthai=3589,e.khokhuatthai=3587,e.khokhwaithai=3588,e.khomutthai=3675,e.khook=409,e.khorakhangthai=3590,e.khzsquare=13201,e.kihiragana=12365,e.kikatakana=12461,e.kikatakanahalfwidth=65399,e.kiroguramusquare=13077,e.kiromeetorusquare=13078,e.kirosquare=13076,e.kiyeokacirclekorean=12910,e.kiyeokaparenkorean=12814,e.kiyeokcirclekorean=12896,e.kiyeokkorean=12593,e.kiyeokparenkorean=12800,e.kiyeoksioskorean=12595,e.kjecyrillic=1116,e.klinebelow=7733,e.klsquare=13208,e.kmcubedsquare=13222,e.kmonospace=65355,e.kmsquaredsquare=13218,e.kohiragana=12371,e.kohmsquare=13248,e.kokaithai=3585,e.kokatakana=12467,e.kokatakanahalfwidth=65402,e.kooposquare=13086,e.koppacyrillic=1153,e.koreanstandardsymbol=12927,e.koroniscmb=835,e.kparen=9382,e.kpasquare=13226,e.ksicyrillic=1135,e.ktsquare=13263,e.kturned=670,e.kuhiragana=12367,e.kukatakana=12463,e.kukatakanahalfwidth=65400,e.kvsquare=13240,e.kwsquare=13246,e.l=108,e.labengali=2482,e.lacute=314,e.ladeva=2354,e.lagujarati=2738,e.lagurmukhi=2610,e.lakkhangyaothai=3653,e.lamaleffinalarabic=65276,e.lamalefhamzaabovefinalarabic=65272,e.lamalefhamzaaboveisolatedarabic=65271,e.lamalefhamzabelowfinalarabic=65274,e.lamalefhamzabelowisolatedarabic=65273,e.lamalefisolatedarabic=65275,e.lamalefmaddaabovefinalarabic=65270,e.lamalefmaddaaboveisolatedarabic=65269,e.lamarabic=1604,e.lambda=955,e.lambdastroke=411,e.lamed=1500,e.lameddagesh=64316,e.lameddageshhebrew=64316,e.lamedhebrew=1500,e.lamfinalarabic=65246,e.lamhahinitialarabic=64714,e.laminitialarabic=65247,e.lamjeeminitialarabic=64713,e.lamkhahinitialarabic=64715,e.lamlamhehisolatedarabic=65010,e.lammedialarabic=65248,e.lammeemhahinitialarabic=64904,e.lammeeminitialarabic=64716,e.largecircle=9711,e.lbar=410,e.lbelt=620,e.lbopomofo=12556,e.lcaron=318,e.lcedilla=316,e.lcircle=9435,e.lcircumflexbelow=7741,e.lcommaaccent=316,e.ldot=320,e.ldotaccent=320,e.ldotbelow=7735,e.ldotbelowmacron=7737,e.leftangleabovecmb=794,e.lefttackbelowcmb=792,e.less=60,e.lessequal=8804,e.lessequalorgreater=8922,e.lessmonospace=65308,e.lessorequivalent=8818,e.lessorgreater=8822,e.lessoverequal=8806,e.lesssmall=65124,e.lezh=622,e.lfblock=9612,e.lhookretroflex=621,e.lira=8356,e.liwnarmenian=1388,e.lj=457,e.ljecyrillic=1113,e.ll=63168,e.lladeva=2355,e.llagujarati=2739,e.llinebelow=7739,e.llladeva=2356,e.llvocalicbengali=2529,e.llvocalicdeva=2401,e.llvocalicvowelsignbengali=2531,e.llvocalicvowelsigndeva=2403,e.lmiddletilde=619,e.lmonospace=65356,e.lmsquare=13264,e.lochulathai=3628,e.logicaland=8743,e.logicalnot=172,e.logicalnotreversed=8976,e.logicalor=8744,e.lolingthai=3621,e.longs=383,e.lowlinecenterline=65102,e.lowlinecmb=818,e.lowlinedashed=65101,e.lozenge=9674,e.lparen=9383,e.lslash=322,e.lsquare=8467,e.lsuperior=63214,e.ltshade=9617,e.luthai=3622,e.lvocalicbengali=2444,e.lvocalicdeva=2316,e.lvocalicvowelsignbengali=2530,e.lvocalicvowelsigndeva=2402,e.lxsquare=13267,e.m=109,e.mabengali=2478,e.macron=175,e.macronbelowcmb=817,e.macroncmb=772,e.macronlowmod=717,e.macronmonospace=65507,e.macute=7743,e.madeva=2350,e.magujarati=2734,e.magurmukhi=2606,e.mahapakhhebrew=1444,e.mahapakhlefthebrew=1444,e.mahiragana=12414,e.maichattawalowleftthai=63637,e.maichattawalowrightthai=63636,e.maichattawathai=3659,e.maichattawaupperleftthai=63635,e.maieklowleftthai=63628,e.maieklowrightthai=63627,e.maiekthai=3656,e.maiekupperleftthai=63626,e.maihanakatleftthai=63620,e.maihanakatthai=3633,e.maitaikhuleftthai=63625,e.maitaikhuthai=3655,e.maitholowleftthai=63631,e.maitholowrightthai=63630,e.maithothai=3657,e.maithoupperleftthai=63629,e.maitrilowleftthai=63634,e.maitrilowrightthai=63633,e.maitrithai=3658,e.maitriupperleftthai=63632,e.maiyamokthai=3654,e.makatakana=12510,e.makatakanahalfwidth=65423,e.male=9794,e.mansyonsquare=13127,e.maqafhebrew=1470,e.mars=9794,e.masoracirclehebrew=1455,e.masquare=13187,e.mbopomofo=12551,e.mbsquare=13268,e.mcircle=9436,e.mcubedsquare=13221,e.mdotaccent=7745,e.mdotbelow=7747,e.meemarabic=1605,e.meemfinalarabic=65250,e.meeminitialarabic=65251,e.meemmedialarabic=65252,e.meemmeeminitialarabic=64721,e.meemmeemisolatedarabic=64584,e.meetorusquare=13133,e.mehiragana=12417,e.meizierasquare=13182,e.mekatakana=12513,e.mekatakanahalfwidth=65426,e.mem=1502,e.memdagesh=64318,e.memdageshhebrew=64318,e.memhebrew=1502,e.menarmenian=1396,e.merkhahebrew=1445,e.merkhakefulahebrew=1446,e.merkhakefulalefthebrew=1446,e.merkhalefthebrew=1445,e.mhook=625,e.mhzsquare=13202,e.middledotkatakanahalfwidth=65381,e.middot=183,e.mieumacirclekorean=12914,e.mieumaparenkorean=12818,e.mieumcirclekorean=12900,e.mieumkorean=12609,e.mieumpansioskorean=12656,e.mieumparenkorean=12804,e.mieumpieupkorean=12654,e.mieumsioskorean=12655,e.mihiragana=12415,e.mikatakana=12511,e.mikatakanahalfwidth=65424,e.minus=8722,e.minusbelowcmb=800,e.minuscircle=8854,e.minusmod=727,e.minusplus=8723,e.minute=8242,e.miribaarusquare=13130,e.mirisquare=13129,e.mlonglegturned=624,e.mlsquare=13206,e.mmcubedsquare=13219,e.mmonospace=65357,e.mmsquaredsquare=13215,e.mohiragana=12418,e.mohmsquare=13249,e.mokatakana=12514,e.mokatakanahalfwidth=65427,e.molsquare=13270,e.momathai=3617,e.moverssquare=13223,e.moverssquaredsquare=13224,e.mparen=9384,e.mpasquare=13227,e.mssquare=13235,e.msuperior=63215,e.mturned=623,e.mu=181,e.mu1=181,e.muasquare=13186,e.muchgreater=8811,e.muchless=8810,e.mufsquare=13196,e.mugreek=956,e.mugsquare=13197,e.muhiragana=12416,e.mukatakana=12512,e.mukatakanahalfwidth=65425,e.mulsquare=13205,e.multiply=215,e.mumsquare=13211,e.munahhebrew=1443,e.munahlefthebrew=1443,e.musicalnote=9834,e.musicalnotedbl=9835,e.musicflatsign=9837,e.musicsharpsign=9839,e.mussquare=13234,e.muvsquare=13238,e.muwsquare=13244,e.mvmegasquare=13241,e.mvsquare=13239,e.mwmegasquare=13247,e.mwsquare=13245,e.n=110,e.nabengali=2472,e.nabla=8711,e.nacute=324,e.nadeva=2344,e.nagujarati=2728,e.nagurmukhi=2600,e.nahiragana=12394,e.nakatakana=12490,e.nakatakanahalfwidth=65413,e.napostrophe=329,e.nasquare=13185,e.nbopomofo=12555,e.nbspace=160,e.ncaron=328,e.ncedilla=326,e.ncircle=9437,e.ncircumflexbelow=7755,e.ncommaaccent=326,e.ndotaccent=7749,e.ndotbelow=7751,e.nehiragana=12397,e.nekatakana=12493,e.nekatakanahalfwidth=65416,e.newsheqelsign=8362,e.nfsquare=13195,e.ngabengali=2457,e.ngadeva=2329,e.ngagujarati=2713,e.ngagurmukhi=2585,e.ngonguthai=3591,e.nhiragana=12435,e.nhookleft=626,e.nhookretroflex=627,e.nieunacirclekorean=12911,e.nieunaparenkorean=12815,e.nieuncieuckorean=12597,e.nieuncirclekorean=12897,e.nieunhieuhkorean=12598,e.nieunkorean=12596,e.nieunpansioskorean=12648,e.nieunparenkorean=12801,e.nieunsioskorean=12647,e.nieuntikeutkorean=12646,e.nihiragana=12395,e.nikatakana=12491,e.nikatakanahalfwidth=65414,e.nikhahitleftthai=63641,e.nikhahitthai=3661,e.nine=57,e.ninearabic=1641,e.ninebengali=2543,e.ninecircle=9320,e.ninecircleinversesansserif=10130,e.ninedeva=2415,e.ninegujarati=2799,e.ninegurmukhi=2671,e.ninehackarabic=1641,e.ninehangzhou=12329,e.nineideographicparen=12840,e.nineinferior=8329,e.ninemonospace=65305,e.nineoldstyle=63289,e.nineparen=9340,e.nineperiod=9360,e.ninepersian=1785,e.nineroman=8568,e.ninesuperior=8313,e.nineteencircle=9330,e.nineteenparen=9350,e.nineteenperiod=9370,e.ninethai=3673,e.nj=460,e.njecyrillic=1114,e.nkatakana=12531,e.nkatakanahalfwidth=65437,e.nlegrightlong=414,e.nlinebelow=7753,e.nmonospace=65358,e.nmsquare=13210,e.nnabengali=2467,e.nnadeva=2339,e.nnagujarati=2723,e.nnagurmukhi=2595,e.nnnadeva=2345,e.nohiragana=12398,e.nokatakana=12494,e.nokatakanahalfwidth=65417,e.nonbreakingspace=160,e.nonenthai=3603,e.nonuthai=3609,e.noonarabic=1606,e.noonfinalarabic=65254,e.noonghunnaarabic=1722,e.noonghunnafinalarabic=64415,e.nooninitialarabic=65255,e.noonjeeminitialarabic=64722,e.noonjeemisolatedarabic=64587,e.noonmedialarabic=65256,e.noonmeeminitialarabic=64725,e.noonmeemisolatedarabic=64590,e.noonnoonfinalarabic=64653,e.notcontains=8716,e.notelement=8713,e.notelementof=8713,e.notequal=8800,e.notgreater=8815,e.notgreaternorequal=8817,e.notgreaternorless=8825,e.notidentical=8802,e.notless=8814,e.notlessnorequal=8816,e.notparallel=8742,e.notprecedes=8832,e.notsubset=8836,e.notsucceeds=8833,e.notsuperset=8837,e.nowarmenian=1398,e.nparen=9385,e.nssquare=13233,e.nsuperior=8319,e.ntilde=241,e.nu=957,e.nuhiragana=12396,e.nukatakana=12492,e.nukatakanahalfwidth=65415,e.nuktabengali=2492,e.nuktadeva=2364,e.nuktagujarati=2748,e.nuktagurmukhi=2620,e.numbersign=35,e.numbersignmonospace=65283,e.numbersignsmall=65119,e.numeralsigngreek=884,e.numeralsignlowergreek=885,e.numero=8470,e.nun=1504,e.nundagesh=64320,e.nundageshhebrew=64320,e.nunhebrew=1504,e.nvsquare=13237,e.nwsquare=13243,e.nyabengali=2462,e.nyadeva=2334,e.nyagujarati=2718,e.nyagurmukhi=2590,e.o=111,e.oacute=243,e.oangthai=3629,e.obarred=629,e.obarredcyrillic=1257,e.obarreddieresiscyrillic=1259,e.obengali=2451,e.obopomofo=12571,e.obreve=335,e.ocandradeva=2321,e.ocandragujarati=2705,e.ocandravowelsigndeva=2377,e.ocandravowelsigngujarati=2761,e.ocaron=466,e.ocircle=9438,e.ocircumflex=244,e.ocircumflexacute=7889,e.ocircumflexdotbelow=7897,e.ocircumflexgrave=7891,e.ocircumflexhookabove=7893,e.ocircumflextilde=7895,e.ocyrillic=1086,e.odblacute=337,e.odblgrave=525,e.odeva=2323,e.odieresis=246,e.odieresiscyrillic=1255,e.odotbelow=7885,e.oe=339,e.oekorean=12634,e.ogonek=731,e.ogonekcmb=808,e.ograve=242,e.ogujarati=2707,e.oharmenian=1413,e.ohiragana=12362,e.ohookabove=7887,e.ohorn=417,e.ohornacute=7899,e.ohorndotbelow=7907,e.ohorngrave=7901,e.ohornhookabove=7903,e.ohorntilde=7905,e.ohungarumlaut=337,e.oi=419,e.oinvertedbreve=527,e.okatakana=12458,e.okatakanahalfwidth=65397,e.okorean=12631,e.olehebrew=1451,e.omacron=333,e.omacronacute=7763,e.omacrongrave=7761,e.omdeva=2384,e.omega=969,e.omega1=982,e.omegacyrillic=1121,e.omegalatinclosed=631,e.omegaroundcyrillic=1147,e.omegatitlocyrillic=1149,e.omegatonos=974,e.omgujarati=2768,e.omicron=959,e.omicrontonos=972,e.omonospace=65359,e.one=49,e.onearabic=1633,e.onebengali=2535,e.onecircle=9312,e.onecircleinversesansserif=10122,e.onedeva=2407,e.onedotenleader=8228,e.oneeighth=8539,e.onefitted=63196,e.onegujarati=2791,e.onegurmukhi=2663,e.onehackarabic=1633,e.onehalf=189,e.onehangzhou=12321,e.oneideographicparen=12832,e.oneinferior=8321,e.onemonospace=65297,e.onenumeratorbengali=2548,e.oneoldstyle=63281,e.oneparen=9332,e.oneperiod=9352,e.onepersian=1777,e.onequarter=188,e.oneroman=8560,e.onesuperior=185,e.onethai=3665,e.onethird=8531,e.oogonek=491,e.oogonekmacron=493,e.oogurmukhi=2579,e.oomatragurmukhi=2635,e.oopen=596,e.oparen=9386,e.openbullet=9702,e.option=8997,e.ordfeminine=170,e.ordmasculine=186,e.orthogonal=8735,e.oshortdeva=2322,e.oshortvowelsigndeva=2378,e.oslash=248,e.oslashacute=511,e.osmallhiragana=12361,e.osmallkatakana=12457,e.osmallkatakanahalfwidth=65387,e.ostrokeacute=511,e.osuperior=63216,e.otcyrillic=1151,e.otilde=245,e.otildeacute=7757,e.otildedieresis=7759,e.oubopomofo=12577,e.overline=8254,e.overlinecenterline=65098,e.overlinecmb=773,e.overlinedashed=65097,e.overlinedblwavy=65100,e.overlinewavy=65099,e.overscore=175,e.ovowelsignbengali=2507,e.ovowelsigndeva=2379,e.ovowelsigngujarati=2763,e.p=112,e.paampssquare=13184,e.paasentosquare=13099,e.pabengali=2474,e.pacute=7765,e.padeva=2346,e.pagedown=8671,e.pageup=8670,e.pagujarati=2730,e.pagurmukhi=2602,e.pahiragana=12401,e.paiyannoithai=3631,e.pakatakana=12497,e.palatalizationcyrilliccmb=1156,e.palochkacyrillic=1216,e.pansioskorean=12671,e.paragraph=182,e.parallel=8741,e.parenleft=40,e.parenleftaltonearabic=64830,e.parenleftbt=63725,e.parenleftex=63724,e.parenleftinferior=8333,e.parenleftmonospace=65288,e.parenleftsmall=65113,e.parenleftsuperior=8317,e.parenlefttp=63723,e.parenleftvertical=65077,e.parenright=41,e.parenrightaltonearabic=64831,e.parenrightbt=63736,e.parenrightex=63735,e.parenrightinferior=8334,e.parenrightmonospace=65289,e.parenrightsmall=65114,e.parenrightsuperior=8318,e.parenrighttp=63734,e.parenrightvertical=65078,e.partialdiff=8706,e.paseqhebrew=1472,e.pashtahebrew=1433,e.pasquare=13225,e.patah=1463,e.patah11=1463,e.patah1d=1463,e.patah2a=1463,e.patahhebrew=1463,e.patahnarrowhebrew=1463,e.patahquarterhebrew=1463,e.patahwidehebrew=1463,e.pazerhebrew=1441,e.pbopomofo=12550,e.pcircle=9439,e.pdotaccent=7767,e.pe=1508,e.pecyrillic=1087,e.pedagesh=64324,e.pedageshhebrew=64324,e.peezisquare=13115,e.pefinaldageshhebrew=64323,e.peharabic=1662,e.peharmenian=1402,e.pehebrew=1508,e.pehfinalarabic=64343,e.pehinitialarabic=64344,e.pehiragana=12410,e.pehmedialarabic=64345,e.pekatakana=12506,e.pemiddlehookcyrillic=1191,e.perafehebrew=64334,e.percent=37,e.percentarabic=1642,e.percentmonospace=65285,e.percentsmall=65130,e.period=46,e.periodarmenian=1417,e.periodcentered=183,e.periodhalfwidth=65377,e.periodinferior=63207,e.periodmonospace=65294,e.periodsmall=65106,e.periodsuperior=63208,e.perispomenigreekcmb=834,e.perpendicular=8869,e.perthousand=8240,e.peseta=8359,e.pfsquare=13194,e.phabengali=2475,e.phadeva=2347,e.phagujarati=2731,e.phagurmukhi=2603,e.phi=966,e.phi1=981,e.phieuphacirclekorean=12922,e.phieuphaparenkorean=12826,e.phieuphcirclekorean=12908,e.phieuphkorean=12621,e.phieuphparenkorean=12812,e.philatin=632,e.phinthuthai=3642,e.phisymbolgreek=981,e.phook=421,e.phophanthai=3614,e.phophungthai=3612,e.phosamphaothai=3616,e.pi=960,e.pieupacirclekorean=12915,e.pieupaparenkorean=12819,e.pieupcieuckorean=12662,e.pieupcirclekorean=12901,e.pieupkiyeokkorean=12658,e.pieupkorean=12610,e.pieupparenkorean=12805,e.pieupsioskiyeokkorean=12660,e.pieupsioskorean=12612,e.pieupsiostikeutkorean=12661,e.pieupthieuthkorean=12663,e.pieuptikeutkorean=12659,e.pihiragana=12404,e.pikatakana=12500,e.pisymbolgreek=982,e.piwrarmenian=1411,e.plus=43,e.plusbelowcmb=799,e.pluscircle=8853,e.plusminus=177,e.plusmod=726,e.plusmonospace=65291,e.plussmall=65122,e.plussuperior=8314,e.pmonospace=65360,e.pmsquare=13272,e.pohiragana=12413,e.pointingindexdownwhite=9759,e.pointingindexleftwhite=9756,e.pointingindexrightwhite=9758,e.pointingindexupwhite=9757,e.pokatakana=12509,e.poplathai=3611,e.postalmark=12306,e.postalmarkface=12320,e.pparen=9387,e.precedes=8826,e.prescription=8478,e.primemod=697,e.primereversed=8245,e.product=8719,e.projective=8965,e.prolongedkana=12540,e.propellor=8984,e.propersubset=8834,e.propersuperset=8835,e.proportion=8759,e.proportional=8733,e.psi=968,e.psicyrillic=1137,e.psilipneumatacyrilliccmb=1158,e.pssquare=13232,e.puhiragana=12407,e.pukatakana=12503,e.pvsquare=13236,e.pwsquare=13242,e.q=113,e.qadeva=2392,e.qadmahebrew=1448,e.qafarabic=1602,e.qaffinalarabic=65238,e.qafinitialarabic=65239,e.qafmedialarabic=65240,e.qamats=1464,e.qamats10=1464,e.qamats1a=1464,e.qamats1c=1464,e.qamats27=1464,e.qamats29=1464,e.qamats33=1464,e.qamatsde=1464,e.qamatshebrew=1464,e.qamatsnarrowhebrew=1464,e.qamatsqatanhebrew=1464,e.qamatsqatannarrowhebrew=1464,e.qamatsqatanquarterhebrew=1464,e.qamatsqatanwidehebrew=1464,e.qamatsquarterhebrew=1464,e.qamatswidehebrew=1464,e.qarneyparahebrew=1439,e.qbopomofo=12561,e.qcircle=9440,e.qhook=672,e.qmonospace=65361,e.qof=1511,e.qofdagesh=64327,e.qofdageshhebrew=64327,e.qofhebrew=1511,e.qparen=9388,e.quarternote=9833,e.qubuts=1467,e.qubuts18=1467,e.qubuts25=1467,e.qubuts31=1467,e.qubutshebrew=1467,e.qubutsnarrowhebrew=1467,e.qubutsquarterhebrew=1467,e.qubutswidehebrew=1467,e.question=63,e.questionarabic=1567,e.questionarmenian=1374,e.questiondown=191,e.questiondownsmall=63423,e.questiongreek=894,e.questionmonospace=65311,e.questionsmall=63295,e.quotedbl=34,e.quotedblbase=8222,e.quotedblleft=8220,e.quotedblmonospace=65282,e.quotedblprime=12318,e.quotedblprimereversed=12317,e.quotedblright=8221,e.quoteleft=8216,e.quoteleftreversed=8219,e.quotereversed=8219,e.quoteright=8217,e.quoterightn=329,e.quotesinglbase=8218,e.quotesingle=39,e.quotesinglemonospace=65287,e.r=114,e.raarmenian=1404,e.rabengali=2480,e.racute=341,e.radeva=2352,e.radical=8730,e.radicalex=63717,e.radoverssquare=13230,e.radoverssquaredsquare=13231,e.radsquare=13229,e.rafe=1471,e.rafehebrew=1471,e.ragujarati=2736,e.ragurmukhi=2608,e.rahiragana=12425,e.rakatakana=12521,e.rakatakanahalfwidth=65431,e.ralowerdiagonalbengali=2545,e.ramiddlediagonalbengali=2544,e.ramshorn=612,e.ratio=8758,e.rbopomofo=12566,e.rcaron=345,e.rcedilla=343,e.rcircle=9441,e.rcommaaccent=343,e.rdblgrave=529,e.rdotaccent=7769,e.rdotbelow=7771,e.rdotbelowmacron=7773,e.referencemark=8251,e.reflexsubset=8838,e.reflexsuperset=8839,e.registered=174,e.registersans=63720,e.registerserif=63194,e.reharabic=1585,e.reharmenian=1408,e.rehfinalarabic=65198,e.rehiragana=12428,e.rekatakana=12524,e.rekatakanahalfwidth=65434,e.resh=1512,e.reshdageshhebrew=64328,e.reshhebrew=1512,e.reversedtilde=8765,e.reviahebrew=1431,e.reviamugrashhebrew=1431,e.revlogicalnot=8976,e.rfishhook=638,e.rfishhookreversed=639,e.rhabengali=2525,e.rhadeva=2397,e.rho=961,e.rhook=637,e.rhookturned=635,e.rhookturnedsuperior=693,e.rhosymbolgreek=1009,e.rhotichookmod=734,e.rieulacirclekorean=12913,e.rieulaparenkorean=12817,e.rieulcirclekorean=12899,e.rieulhieuhkorean=12608,e.rieulkiyeokkorean=12602,e.rieulkiyeoksioskorean=12649,e.rieulkorean=12601,e.rieulmieumkorean=12603,e.rieulpansioskorean=12652,e.rieulparenkorean=12803,e.rieulphieuphkorean=12607,e.rieulpieupkorean=12604,e.rieulpieupsioskorean=12651,e.rieulsioskorean=12605,e.rieulthieuthkorean=12606,e.rieultikeutkorean=12650,e.rieulyeorinhieuhkorean=12653,e.rightangle=8735,e.righttackbelowcmb=793,e.righttriangle=8895,e.rihiragana=12426,e.rikatakana=12522,e.rikatakanahalfwidth=65432,e.ring=730,e.ringbelowcmb=805,e.ringcmb=778,e.ringhalfleft=703,e.ringhalfleftarmenian=1369,e.ringhalfleftbelowcmb=796,e.ringhalfleftcentered=723,e.ringhalfright=702,e.ringhalfrightbelowcmb=825,e.ringhalfrightcentered=722,e.rinvertedbreve=531,e.rittorusquare=13137,e.rlinebelow=7775,e.rlongleg=636,e.rlonglegturned=634,e.rmonospace=65362,e.rohiragana=12429,e.rokatakana=12525,e.rokatakanahalfwidth=65435,e.roruathai=3619,e.rparen=9389,e.rrabengali=2524,e.rradeva=2353,e.rragurmukhi=2652,e.rreharabic=1681,e.rrehfinalarabic=64397,e.rrvocalicbengali=2528,e.rrvocalicdeva=2400,e.rrvocalicgujarati=2784,e.rrvocalicvowelsignbengali=2500,e.rrvocalicvowelsigndeva=2372,e.rrvocalicvowelsigngujarati=2756,e.rsuperior=63217,e.rtblock=9616,e.rturned=633,e.rturnedsuperior=692,e.ruhiragana=12427,e.rukatakana=12523,e.rukatakanahalfwidth=65433,e.rupeemarkbengali=2546,e.rupeesignbengali=2547,e.rupiah=63197,e.ruthai=3620,e.rvocalicbengali=2443,e.rvocalicdeva=2315,e.rvocalicgujarati=2699,e.rvocalicvowelsignbengali=2499,e.rvocalicvowelsigndeva=2371,e.rvocalicvowelsigngujarati=2755,e.s=115,e.sabengali=2488,e.sacute=347,e.sacutedotaccent=7781,e.sadarabic=1589,e.sadeva=2360,e.sadfinalarabic=65210,e.sadinitialarabic=65211,e.sadmedialarabic=65212,e.sagujarati=2744,e.sagurmukhi=2616,e.sahiragana=12373,e.sakatakana=12469,e.sakatakanahalfwidth=65403,e.sallallahoualayhewasallamarabic=65018,e.samekh=1505,e.samekhdagesh=64321,e.samekhdageshhebrew=64321,e.samekhhebrew=1505,e.saraaathai=3634,e.saraaethai=3649,e.saraaimaimalaithai=3652,e.saraaimaimuanthai=3651,e.saraamthai=3635,e.saraathai=3632,e.saraethai=3648,e.saraiileftthai=63622,e.saraiithai=3637,e.saraileftthai=63621,e.saraithai=3636,e.saraothai=3650,e.saraueeleftthai=63624,e.saraueethai=3639,e.saraueleftthai=63623,e.sarauethai=3638,e.sarauthai=3640,e.sarauuthai=3641,e.sbopomofo=12569,e.scaron=353,e.scarondotaccent=7783,e.scedilla=351,e.schwa=601,e.schwacyrillic=1241,e.schwadieresiscyrillic=1243,e.schwahook=602,e.scircle=9442,e.scircumflex=349,e.scommaaccent=537,e.sdotaccent=7777,e.sdotbelow=7779,e.sdotbelowdotaccent=7785,e.seagullbelowcmb=828,e.second=8243,e.secondtonechinese=714,e.section=167,e.seenarabic=1587,e.seenfinalarabic=65202,e.seeninitialarabic=65203,e.seenmedialarabic=65204,e.segol=1462,e.segol13=1462,e.segol1f=1462,e.segol2c=1462,e.segolhebrew=1462,e.segolnarrowhebrew=1462,e.segolquarterhebrew=1462,e.segoltahebrew=1426,e.segolwidehebrew=1462,e.seharmenian=1405,e.sehiragana=12379,e.sekatakana=12475,e.sekatakanahalfwidth=65406,e.semicolon=59,e.semicolonarabic=1563,e.semicolonmonospace=65307,e.semicolonsmall=65108,e.semivoicedmarkkana=12444,e.semivoicedmarkkanahalfwidth=65439,e.sentisquare=13090,e.sentosquare=13091,e.seven=55,e.sevenarabic=1639,e.sevenbengali=2541,e.sevencircle=9318,e.sevencircleinversesansserif=10128,e.sevendeva=2413,e.seveneighths=8542,e.sevengujarati=2797,e.sevengurmukhi=2669,e.sevenhackarabic=1639,e.sevenhangzhou=12327,e.sevenideographicparen=12838,e.seveninferior=8327,e.sevenmonospace=65303,e.sevenoldstyle=63287,e.sevenparen=9338,e.sevenperiod=9358,e.sevenpersian=1783,e.sevenroman=8566,e.sevensuperior=8311,e.seventeencircle=9328,e.seventeenparen=9348,e.seventeenperiod=9368,e.seventhai=3671,e.sfthyphen=173,e.shaarmenian=1399,e.shabengali=2486,e.shacyrillic=1096,e.shaddaarabic=1617,e.shaddadammaarabic=64609,e.shaddadammatanarabic=64606,e.shaddafathaarabic=64608,e.shaddakasraarabic=64610,e.shaddakasratanarabic=64607,e.shade=9618,e.shadedark=9619,e.shadelight=9617,e.shademedium=9618,e.shadeva=2358,e.shagujarati=2742,e.shagurmukhi=2614,e.shalshelethebrew=1427,e.shbopomofo=12565,e.shchacyrillic=1097,e.sheenarabic=1588,e.sheenfinalarabic=65206,e.sheeninitialarabic=65207,e.sheenmedialarabic=65208,e.sheicoptic=995,e.sheqel=8362,e.sheqelhebrew=8362,e.sheva=1456,e.sheva115=1456,e.sheva15=1456,e.sheva22=1456,e.sheva2e=1456,e.shevahebrew=1456,e.shevanarrowhebrew=1456,e.shevaquarterhebrew=1456,e.shevawidehebrew=1456,e.shhacyrillic=1211,e.shimacoptic=1005,e.shin=1513,e.shindagesh=64329,e.shindageshhebrew=64329,e.shindageshshindot=64300,e.shindageshshindothebrew=64300,e.shindageshsindot=64301,e.shindageshsindothebrew=64301,e.shindothebrew=1473,e.shinhebrew=1513,e.shinshindot=64298,e.shinshindothebrew=64298,e.shinsindot=64299,e.shinsindothebrew=64299,e.shook=642,e.sigma=963,e.sigma1=962,e.sigmafinal=962,e.sigmalunatesymbolgreek=1010,e.sihiragana=12375,e.sikatakana=12471,e.sikatakanahalfwidth=65404,e.siluqhebrew=1469,e.siluqlefthebrew=1469,e.similar=8764,e.sindothebrew=1474,e.siosacirclekorean=12916,e.siosaparenkorean=12820,e.sioscieuckorean=12670,e.sioscirclekorean=12902,e.sioskiyeokkorean=12666,e.sioskorean=12613,e.siosnieunkorean=12667,e.siosparenkorean=12806,e.siospieupkorean=12669,e.siostikeutkorean=12668,e.six=54,e.sixarabic=1638,e.sixbengali=2540,e.sixcircle=9317,e.sixcircleinversesansserif=10127,e.sixdeva=2412,e.sixgujarati=2796,e.sixgurmukhi=2668,e.sixhackarabic=1638,e.sixhangzhou=12326,e.sixideographicparen=12837,e.sixinferior=8326,e.sixmonospace=65302,e.sixoldstyle=63286,e.sixparen=9337,e.sixperiod=9357,e.sixpersian=1782,e.sixroman=8565,e.sixsuperior=8310,e.sixteencircle=9327,e.sixteencurrencydenominatorbengali=2553,e.sixteenparen=9347,e.sixteenperiod=9367,e.sixthai=3670,e.slash=47,e.slashmonospace=65295,e.slong=383,e.slongdotaccent=7835,e.smileface=9786,e.smonospace=65363,e.sofpasuqhebrew=1475,e.softhyphen=173,e.softsigncyrillic=1100,e.sohiragana=12381,e.sokatakana=12477,e.sokatakanahalfwidth=65407,e.soliduslongoverlaycmb=824,e.solidusshortoverlaycmb=823,e.sorusithai=3625,e.sosalathai=3624,e.sosothai=3595,e.sosuathai=3626,e.space=32,e.spacehackarabic=32,e.spade=9824,e.spadesuitblack=9824,e.spadesuitwhite=9828,e.sparen=9390,e.squarebelowcmb=827,e.squarecc=13252,e.squarecm=13213,e.squarediagonalcrosshatchfill=9641,e.squarehorizontalfill=9636,e.squarekg=13199,e.squarekm=13214,e.squarekmcapital=13262,e.squareln=13265,e.squarelog=13266,e.squaremg=13198,e.squaremil=13269,e.squaremm=13212,e.squaremsquared=13217,e.squareorthogonalcrosshatchfill=9638,e.squareupperlefttolowerrightfill=9639,e.squareupperrighttolowerleftfill=9640,e.squareverticalfill=9637,e.squarewhitewithsmallblack=9635,e.srsquare=13275,e.ssabengali=2487,e.ssadeva=2359,e.ssagujarati=2743,e.ssangcieuckorean=12617,e.ssanghieuhkorean=12677,e.ssangieungkorean=12672,e.ssangkiyeokkorean=12594,e.ssangnieunkorean=12645,e.ssangpieupkorean=12611,e.ssangsioskorean=12614,e.ssangtikeutkorean=12600,e.ssuperior=63218,e.sterling=163,e.sterlingmonospace=65505,e.strokelongoverlaycmb=822,e.strokeshortoverlaycmb=821,e.subset=8834,e.subsetnotequal=8842,e.subsetorequal=8838,e.succeeds=8827,e.suchthat=8715,e.suhiragana=12377,e.sukatakana=12473,e.sukatakanahalfwidth=65405,e.sukunarabic=1618,e.summation=8721,e.sun=9788,e.superset=8835,e.supersetnotequal=8843,e.supersetorequal=8839,e.svsquare=13276,e.syouwaerasquare=13180,e.t=116,e.tabengali=2468,e.tackdown=8868,e.tackleft=8867,e.tadeva=2340,e.tagujarati=2724,e.tagurmukhi=2596,e.taharabic=1591,e.tahfinalarabic=65218,e.tahinitialarabic=65219,e.tahiragana=12383,e.tahmedialarabic=65220,e.taisyouerasquare=13181,e.takatakana=12479,e.takatakanahalfwidth=65408,e.tatweelarabic=1600,e.tau=964,e.tav=1514,e.tavdages=64330,e.tavdagesh=64330,e.tavdageshhebrew=64330,e.tavhebrew=1514,e.tbar=359,e.tbopomofo=12554,e.tcaron=357,e.tccurl=680,e.tcedilla=355,e.tcheharabic=1670,e.tchehfinalarabic=64379,e.tchehinitialarabic=64380,e.tchehmedialarabic=64381,e.tcircle=9443,e.tcircumflexbelow=7793,e.tcommaaccent=355,e.tdieresis=7831,e.tdotaccent=7787,e.tdotbelow=7789,e.tecyrillic=1090,e.tedescendercyrillic=1197,e.teharabic=1578,e.tehfinalarabic=65174,e.tehhahinitialarabic=64674,e.tehhahisolatedarabic=64524,e.tehinitialarabic=65175,e.tehiragana=12390,e.tehjeeminitialarabic=64673,e.tehjeemisolatedarabic=64523,e.tehmarbutaarabic=1577,e.tehmarbutafinalarabic=65172,e.tehmedialarabic=65176,e.tehmeeminitialarabic=64676,e.tehmeemisolatedarabic=64526,e.tehnoonfinalarabic=64627,e.tekatakana=12486,e.tekatakanahalfwidth=65411,e.telephone=8481,e.telephoneblack=9742,e.telishagedolahebrew=1440,e.telishaqetanahebrew=1449,e.tencircle=9321,e.tenideographicparen=12841,e.tenparen=9341,e.tenperiod=9361,e.tenroman=8569,e.tesh=679,e.tet=1496,e.tetdagesh=64312,e.tetdageshhebrew=64312,e.tethebrew=1496,e.tetsecyrillic=1205,e.tevirhebrew=1435,e.tevirlefthebrew=1435,e.thabengali=2469,e.thadeva=2341,e.thagujarati=2725,e.thagurmukhi=2597,e.thalarabic=1584,e.thalfinalarabic=65196,e.thanthakhatlowleftthai=63640,e.thanthakhatlowrightthai=63639,e.thanthakhatthai=3660,e.thanthakhatupperleftthai=63638,e.theharabic=1579,e.thehfinalarabic=65178,e.thehinitialarabic=65179,e.thehmedialarabic=65180,e.thereexists=8707,e.therefore=8756,e.theta=952,e.theta1=977,e.thetasymbolgreek=977,e.thieuthacirclekorean=12921,e.thieuthaparenkorean=12825,e.thieuthcirclekorean=12907,e.thieuthkorean=12620,e.thieuthparenkorean=12811,e.thirteencircle=9324,e.thirteenparen=9344,e.thirteenperiod=9364,e.thonangmonthothai=3601,e.thook=429,e.thophuthaothai=3602,e.thorn=254,e.thothahanthai=3607,e.thothanthai=3600,e.thothongthai=3608,e.thothungthai=3606,e.thousandcyrillic=1154,e.thousandsseparatorarabic=1644,e.thousandsseparatorpersian=1644,e.three=51,e.threearabic=1635,e.threebengali=2537,e.threecircle=9314,e.threecircleinversesansserif=10124,e.threedeva=2409,e.threeeighths=8540,e.threegujarati=2793,e.threegurmukhi=2665,e.threehackarabic=1635,e.threehangzhou=12323,e.threeideographicparen=12834,e.threeinferior=8323,e.threemonospace=65299,e.threenumeratorbengali=2550,e.threeoldstyle=63283,e.threeparen=9334,e.threeperiod=9354,e.threepersian=1779,e.threequarters=190,e.threequartersemdash=63198,e.threeroman=8562,e.threesuperior=179,e.threethai=3667,e.thzsquare=13204,e.tihiragana=12385,e.tikatakana=12481,e.tikatakanahalfwidth=65409,e.tikeutacirclekorean=12912,e.tikeutaparenkorean=12816,e.tikeutcirclekorean=12898,e.tikeutkorean=12599,e.tikeutparenkorean=12802,e.tilde=732,e.tildebelowcmb=816,e.tildecmb=771,e.tildecomb=771,e.tildedoublecmb=864,e.tildeoperator=8764,e.tildeoverlaycmb=820,e.tildeverticalcmb=830,e.timescircle=8855,e.tipehahebrew=1430,e.tipehalefthebrew=1430,e.tippigurmukhi=2672,e.titlocyrilliccmb=1155,e.tiwnarmenian=1407,e.tlinebelow=7791,e.tmonospace=65364,e.toarmenian=1385,e.tohiragana=12392,e.tokatakana=12488,e.tokatakanahalfwidth=65412,e.tonebarextrahighmod=741,e.tonebarextralowmod=745,e.tonebarhighmod=742,e.tonebarlowmod=744,e.tonebarmidmod=743,e.tonefive=445,e.tonesix=389,e.tonetwo=424,e.tonos=900,e.tonsquare=13095,e.topatakthai=3599,e.tortoiseshellbracketleft=12308,e.tortoiseshellbracketleftsmall=65117,e.tortoiseshellbracketleftvertical=65081,e.tortoiseshellbracketright=12309,e.tortoiseshellbracketrightsmall=65118,e.tortoiseshellbracketrightvertical=65082,e.totaothai=3605,e.tpalatalhook=427,e.tparen=9391,e.trademark=8482,e.trademarksans=63722,e.trademarkserif=63195,e.tretroflexhook=648,e.triagdn=9660,e.triaglf=9668,e.triagrt=9658,e.triagup=9650,e.ts=678,e.tsadi=1510,e.tsadidagesh=64326,e.tsadidageshhebrew=64326,e.tsadihebrew=1510,e.tsecyrillic=1094,e.tsere=1461,e.tsere12=1461,e.tsere1e=1461,e.tsere2b=1461,e.tserehebrew=1461,e.tserenarrowhebrew=1461,e.tserequarterhebrew=1461,e.tserewidehebrew=1461,e.tshecyrillic=1115,e.tsuperior=63219,e.ttabengali=2463,e.ttadeva=2335,e.ttagujarati=2719,e.ttagurmukhi=2591,e.tteharabic=1657,e.ttehfinalarabic=64359,e.ttehinitialarabic=64360,e.ttehmedialarabic=64361,e.tthabengali=2464,e.tthadeva=2336,e.tthagujarati=2720,e.tthagurmukhi=2592,e.tturned=647,e.tuhiragana=12388,e.tukatakana=12484,e.tukatakanahalfwidth=65410,e.tusmallhiragana=12387,e.tusmallkatakana=12483,e.tusmallkatakanahalfwidth=65391,e.twelvecircle=9323,e.twelveparen=9343,e.twelveperiod=9363,e.twelveroman=8571,e.twentycircle=9331,e.twentyhangzhou=21316,e.twentyparen=9351,e.twentyperiod=9371,e.two=50,e.twoarabic=1634,e.twobengali=2536,e.twocircle=9313,e.twocircleinversesansserif=10123,e.twodeva=2408,e.twodotenleader=8229,e.twodotleader=8229,e.twodotleadervertical=65072,e.twogujarati=2792,e.twogurmukhi=2664,e.twohackarabic=1634,e.twohangzhou=12322,e.twoideographicparen=12833,e.twoinferior=8322,e.twomonospace=65298,e.twonumeratorbengali=2549,e.twooldstyle=63282,e.twoparen=9333,e.twoperiod=9353,e.twopersian=1778,e.tworoman=8561,e.twostroke=443,e.twosuperior=178,e.twothai=3666,e.twothirds=8532,e.u=117,e.uacute=250,e.ubar=649,e.ubengali=2441,e.ubopomofo=12584,e.ubreve=365,e.ucaron=468,e.ucircle=9444,e.ucircumflex=251,e.ucircumflexbelow=7799,e.ucyrillic=1091,e.udattadeva=2385,e.udblacute=369,e.udblgrave=533,e.udeva=2313,e.udieresis=252,e.udieresisacute=472,e.udieresisbelow=7795,e.udieresiscaron=474,e.udieresiscyrillic=1265,e.udieresisgrave=476,e.udieresismacron=470,e.udotbelow=7909,e.ugrave=249,e.ugujarati=2697,e.ugurmukhi=2569,e.uhiragana=12358,e.uhookabove=7911,e.uhorn=432,e.uhornacute=7913,e.uhorndotbelow=7921,e.uhorngrave=7915,e.uhornhookabove=7917,e.uhorntilde=7919,e.uhungarumlaut=369,e.uhungarumlautcyrillic=1267,e.uinvertedbreve=535,e.ukatakana=12454,e.ukatakanahalfwidth=65395,e.ukcyrillic=1145,e.ukorean=12636,e.umacron=363,e.umacroncyrillic=1263,e.umacrondieresis=7803,e.umatragurmukhi=2625,e.umonospace=65365,e.underscore=95,e.underscoredbl=8215,e.underscoremonospace=65343,e.underscorevertical=65075,e.underscorewavy=65103,e.union=8746,e.universal=8704,e.uogonek=371,e.uparen=9392,e.upblock=9600,e.upperdothebrew=1476,e.upsilon=965,e.upsilondieresis=971,e.upsilondieresistonos=944,e.upsilonlatin=650,e.upsilontonos=973,e.uptackbelowcmb=797,e.uptackmod=724,e.uragurmukhi=2675,e.uring=367,e.ushortcyrillic=1118,e.usmallhiragana=12357,e.usmallkatakana=12453,e.usmallkatakanahalfwidth=65385,e.ustraightcyrillic=1199,e.ustraightstrokecyrillic=1201,e.utilde=361,e.utildeacute=7801,e.utildebelow=7797,e.uubengali=2442,e.uudeva=2314,e.uugujarati=2698,e.uugurmukhi=2570,e.uumatragurmukhi=2626,e.uuvowelsignbengali=2498,e.uuvowelsigndeva=2370,e.uuvowelsigngujarati=2754,e.uvowelsignbengali=2497,e.uvowelsigndeva=2369,e.uvowelsigngujarati=2753,e.v=118,e.vadeva=2357,e.vagujarati=2741,e.vagurmukhi=2613,e.vakatakana=12535,e.vav=1493,e.vavdagesh=64309,e.vavdagesh65=64309,e.vavdageshhebrew=64309,e.vavhebrew=1493,e.vavholam=64331,e.vavholamhebrew=64331,e.vavvavhebrew=1520,e.vavyodhebrew=1521,e.vcircle=9445,e.vdotbelow=7807,e.vecyrillic=1074,e.veharabic=1700,e.vehfinalarabic=64363,e.vehinitialarabic=64364,e.vehmedialarabic=64365,e.vekatakana=12537,e.venus=9792,e.verticalbar=124,e.verticallineabovecmb=781,e.verticallinebelowcmb=809,e.verticallinelowmod=716,e.verticallinemod=712,e.vewarmenian=1406,e.vhook=651,e.vikatakana=12536,e.viramabengali=2509,e.viramadeva=2381,e.viramagujarati=2765,e.visargabengali=2435,e.visargadeva=2307,e.visargagujarati=2691,e.vmonospace=65366,e.voarmenian=1400,e.voicediterationhiragana=12446,e.voicediterationkatakana=12542,e.voicedmarkkana=12443,e.voicedmarkkanahalfwidth=65438,e.vokatakana=12538,e.vparen=9393,e.vtilde=7805,e.vturned=652,e.vuhiragana=12436,e.vukatakana=12532,e.w=119,e.wacute=7811,e.waekorean=12633,e.wahiragana=12431,e.wakatakana=12527,e.wakatakanahalfwidth=65436,e.wakorean=12632,e.wasmallhiragana=12430,e.wasmallkatakana=12526,e.wattosquare=13143,e.wavedash=12316,e.wavyunderscorevertical=65076,e.wawarabic=1608,e.wawfinalarabic=65262,e.wawhamzaabovearabic=1572,e.wawhamzaabovefinalarabic=65158,e.wbsquare=13277,e.wcircle=9446,e.wcircumflex=373,e.wdieresis=7813,e.wdotaccent=7815,e.wdotbelow=7817,e.wehiragana=12433,e.weierstrass=8472,e.wekatakana=12529,e.wekorean=12638,e.weokorean=12637,e.wgrave=7809,e.whitebullet=9702,e.whitecircle=9675,e.whitecircleinverse=9689,e.whitecornerbracketleft=12302,e.whitecornerbracketleftvertical=65091,e.whitecornerbracketright=12303,e.whitecornerbracketrightvertical=65092,e.whitediamond=9671,e.whitediamondcontainingblacksmalldiamond=9672,e.whitedownpointingsmalltriangle=9663,e.whitedownpointingtriangle=9661,e.whiteleftpointingsmalltriangle=9667,e.whiteleftpointingtriangle=9665,e.whitelenticularbracketleft=12310,e.whitelenticularbracketright=12311,e.whiterightpointingsmalltriangle=9657,e.whiterightpointingtriangle=9655,e.whitesmallsquare=9643,e.whitesmilingface=9786,e.whitesquare=9633,e.whitestar=9734,e.whitetelephone=9743,e.whitetortoiseshellbracketleft=12312,e.whitetortoiseshellbracketright=12313,e.whiteuppointingsmalltriangle=9653,e.whiteuppointingtriangle=9651,e.wihiragana=12432,e.wikatakana=12528,e.wikorean=12639,e.wmonospace=65367,e.wohiragana=12434,e.wokatakana=12530,e.wokatakanahalfwidth=65382,e.won=8361,e.wonmonospace=65510,e.wowaenthai=3623,e.wparen=9394,e.wring=7832,e.wsuperior=695,e.wturned=653,e.wynn=447,e.x=120,e.xabovecmb=829,e.xbopomofo=12562,e.xcircle=9447,e.xdieresis=7821,e.xdotaccent=7819,e.xeharmenian=1389,e.xi=958,e.xmonospace=65368,e.xparen=9395,e.xsuperior=739,e.y=121,e.yaadosquare=13134,e.yabengali=2479,e.yacute=253,e.yadeva=2351,e.yaekorean=12626,e.yagujarati=2735,e.yagurmukhi=2607,e.yahiragana=12420,e.yakatakana=12516,e.yakatakanahalfwidth=65428,e.yakorean=12625,e.yamakkanthai=3662,e.yasmallhiragana=12419,e.yasmallkatakana=12515,e.yasmallkatakanahalfwidth=65388,e.yatcyrillic=1123,e.ycircle=9448,e.ycircumflex=375,e.ydieresis=255,e.ydotaccent=7823,e.ydotbelow=7925,e.yeharabic=1610,e.yehbarreearabic=1746,e.yehbarreefinalarabic=64431,e.yehfinalarabic=65266,e.yehhamzaabovearabic=1574,e.yehhamzaabovefinalarabic=65162,e.yehhamzaaboveinitialarabic=65163,e.yehhamzaabovemedialarabic=65164,e.yehinitialarabic=65267,e.yehmedialarabic=65268,e.yehmeeminitialarabic=64733,e.yehmeemisolatedarabic=64600,e.yehnoonfinalarabic=64660,e.yehthreedotsbelowarabic=1745,e.yekorean=12630,e.yen=165,e.yenmonospace=65509,e.yeokorean=12629,e.yeorinhieuhkorean=12678,e.yerahbenyomohebrew=1450,e.yerahbenyomolefthebrew=1450,e.yericyrillic=1099,e.yerudieresiscyrillic=1273,e.yesieungkorean=12673,e.yesieungpansioskorean=12675,e.yesieungsioskorean=12674,e.yetivhebrew=1434,e.ygrave=7923,e.yhook=436,e.yhookabove=7927,e.yiarmenian=1397,e.yicyrillic=1111,e.yikorean=12642,e.yinyang=9775,e.yiwnarmenian=1410,e.ymonospace=65369,e.yod=1497,e.yoddagesh=64313,e.yoddageshhebrew=64313,e.yodhebrew=1497,e.yodyodhebrew=1522,e.yodyodpatahhebrew=64287,e.yohiragana=12424,e.yoikorean=12681,e.yokatakana=12520,e.yokatakanahalfwidth=65430,e.yokorean=12635,e.yosmallhiragana=12423,e.yosmallkatakana=12519,e.yosmallkatakanahalfwidth=65390,e.yotgreek=1011,e.yoyaekorean=12680,e.yoyakorean=12679,e.yoyakthai=3618,e.yoyingthai=3597,e.yparen=9396,e.ypogegrammeni=890,e.ypogegrammenigreekcmb=837,e.yr=422,e.yring=7833,e.ysuperior=696,e.ytilde=7929,e.yturned=654,e.yuhiragana=12422,e.yuikorean=12684,e.yukatakana=12518,e.yukatakanahalfwidth=65429,e.yukorean=12640,e.yusbigcyrillic=1131,e.yusbigiotifiedcyrillic=1133,e.yuslittlecyrillic=1127,e.yuslittleiotifiedcyrillic=1129,e.yusmallhiragana=12421,e.yusmallkatakana=12517,e.yusmallkatakanahalfwidth=65389,e.yuyekorean=12683,e.yuyeokorean=12682,e.yyabengali=2527,e.yyadeva=2399,e.z=122,e.zaarmenian=1382,e.zacute=378,e.zadeva=2395,e.zagurmukhi=2651,e.zaharabic=1592,e.zahfinalarabic=65222,e.zahinitialarabic=65223,e.zahiragana=12374,e.zahmedialarabic=65224,e.zainarabic=1586,e.zainfinalarabic=65200,e.zakatakana=12470,e.zaqefgadolhebrew=1429,e.zaqefqatanhebrew=1428,e.zarqahebrew=1432,e.zayin=1494,e.zayindagesh=64310,e.zayindageshhebrew=64310,e.zayinhebrew=1494,e.zbopomofo=12567,e.zcaron=382,e.zcircle=9449,e.zcircumflex=7825,e.zcurl=657,e.zdot=380,e.zdotaccent=380,e.zdotbelow=7827,e.zecyrillic=1079,e.zedescendercyrillic=1177,e.zedieresiscyrillic=1247,e.zehiragana=12380,e.zekatakana=12476,e.zero=48,e.zeroarabic=1632,e.zerobengali=2534,e.zerodeva=2406,e.zerogujarati=2790,e.zerogurmukhi=2662,e.zerohackarabic=1632,e.zeroinferior=8320,e.zeromonospace=65296,e.zerooldstyle=63280,e.zeropersian=1776,e.zerosuperior=8304,e.zerothai=3664,e.zerowidthjoiner=65279,e.zerowidthnonjoiner=8204,e.zerowidthspace=8203,e.zeta=950,e.zhbopomofo=12563,e.zhearmenian=1386,e.zhebrevecyrillic=1218,e.zhecyrillic=1078,e.zhedescendercyrillic=1175,e.zhedieresiscyrillic=1245,e.zihiragana=12376,e.zikatakana=12472,e.zinorhebrew=1454,e.zlinebelow=7829,e.zmonospace=65370,e.zohiragana=12382,e.zokatakana=12478,e.zparen=9397,e.zretroflexhook=656,e.zstroke=438,e.zuhiragana=12378,e.zukatakana=12474,e[".notdef"]=0,e.angbracketleftbig=9001,e.angbracketleftBig=9001,e.angbracketleftbigg=9001,e.angbracketleftBigg=9001,e.angbracketrightBig=9002,e.angbracketrightbig=9002,e.angbracketrightBigg=9002,e.angbracketrightbigg=9002,e.arrowhookleft=8618,e.arrowhookright=8617,e.arrowlefttophalf=8636,e.arrowleftbothalf=8637,e.arrownortheast=8599,e.arrownorthwest=8598,e.arrowrighttophalf=8640,e.arrowrightbothalf=8641,e.arrowsoutheast=8600,e.arrowsouthwest=8601,e.backslashbig=8726,e.backslashBig=8726,e.backslashBigg=8726,e.backslashbigg=8726,e.bardbl=8214,e.bracehtipdownleft=65079,e.bracehtipdownright=65079,e.bracehtipupleft=65080,e.bracehtipupright=65080,e.braceleftBig=123,e.braceleftbig=123,e.braceleftbigg=123,e.braceleftBigg=123,e.bracerightBig=125,e.bracerightbig=125,e.bracerightbigg=125,e.bracerightBigg=125,e.bracketleftbig=91,e.bracketleftBig=91,e.bracketleftbigg=91,e.bracketleftBigg=91,e.bracketrightBig=93,e.bracketrightbig=93,e.bracketrightbigg=93,e.bracketrightBigg=93,e.ceilingleftbig=8968,e.ceilingleftBig=8968,e.ceilingleftBigg=8968,e.ceilingleftbigg=8968,e.ceilingrightbig=8969,e.ceilingrightBig=8969,e.ceilingrightbigg=8969,e.ceilingrightBigg=8969,e.circledotdisplay=8857,e.circledottext=8857,e.circlemultiplydisplay=8855,e.circlemultiplytext=8855,e.circleplusdisplay=8853,e.circleplustext=8853,e.contintegraldisplay=8750,e.contintegraltext=8750,e.coproductdisplay=8720,e.coproducttext=8720,e.floorleftBig=8970,e.floorleftbig=8970,e.floorleftbigg=8970,e.floorleftBigg=8970,e.floorrightbig=8971,e.floorrightBig=8971,e.floorrightBigg=8971,e.floorrightbigg=8971,e.hatwide=770,e.hatwider=770,e.hatwidest=770,e.intercal=7488,e.integraldisplay=8747,e.integraltext=8747,e.intersectiondisplay=8898,e.intersectiontext=8898,e.logicalanddisplay=8743,e.logicalandtext=8743,e.logicalordisplay=8744,e.logicalortext=8744,e.parenleftBig=40,e.parenleftbig=40,e.parenleftBigg=40,e.parenleftbigg=40,e.parenrightBig=41,e.parenrightbig=41,e.parenrightBigg=41,e.parenrightbigg=41,e.prime=8242,e.productdisplay=8719,e.producttext=8719,e.radicalbig=8730,e.radicalBig=8730,e.radicalBigg=8730,e.radicalbigg=8730,e.radicalbt=8730,e.radicaltp=8730,e.radicalvertex=8730,e.slashbig=47,e.slashBig=47,e.slashBigg=47,e.slashbigg=47,e.summationdisplay=8721,e.summationtext=8721,e.tildewide=732,e.tildewider=732,e.tildewidest=732,e.uniondisplay=8899,e.unionmultidisplay=8846,e.unionmultitext=8846,e.unionsqdisplay=8852,e.unionsqtext=8852,e.uniontext=8899,e.vextenddouble=8741,e.vextendsingle=8739}),p=r(function(e){e.space=32,e.a1=9985,e.a2=9986,e.a202=9987,e.a3=9988,e.a4=9742,e.a5=9990,e.a119=9991,e.a118=9992,e.a117=9993,e.a11=9755,e.a12=9758,e.a13=9996,e.a14=9997,e.a15=9998,e.a16=9999,e.a105=1e4,e.a17=10001,e.a18=10002,e.a19=10003,e.a20=10004,e.a21=10005,e.a22=10006,e.a23=10007,e.a24=10008,e.a25=10009,e.a26=10010,e.a27=10011,e.a28=10012,e.a6=10013,e.a7=10014,e.a8=10015,e.a9=10016,e.a10=10017,e.a29=10018,e.a30=10019,e.a31=10020,e.a32=10021,e.a33=10022,e.a34=10023,e.a35=9733,e.a36=10025,e.a37=10026,e.a38=10027,e.a39=10028,e.a40=10029,e.a41=10030,e.a42=10031,e.a43=10032,e.a44=10033,e.a45=10034,e.a46=10035,e.a47=10036,e.a48=10037,e.a49=10038,e.a50=10039,e.a51=10040,e.a52=10041,e.a53=10042,e.a54=10043,e.a55=10044,e.a56=10045,e.a57=10046,e.a58=10047,e.a59=10048,e.a60=10049,e.a61=10050,e.a62=10051,e.a63=10052,e.a64=10053,e.a65=10054,e.a66=10055,e.a67=10056,e.a68=10057,e.a69=10058,e.a70=10059,e.a71=9679,e.a72=10061,e.a73=9632,e.a74=10063,e.a203=10064,e.a75=10065,e.a204=10066,e.a76=9650,e.a77=9660,e.a78=9670,e.a79=10070,e.a81=9687,e.a82=10072,e.a83=10073,e.a84=10074,e.a97=10075,e.a98=10076,e.a99=10077,e.a100=10078,e.a101=10081,e.a102=10082,e.a103=10083,e.a104=10084,e.a106=10085,e.a107=10086,e.a108=10087,e.a112=9827,e.a111=9830,e.a110=9829,e.a109=9824,e.a120=9312,e.a121=9313,e.a122=9314,e.a123=9315,e.a124=9316,e.a125=9317,e.a126=9318,e.a127=9319,e.a128=9320,e.a129=9321,e.a130=10102,e.a131=10103,e.a132=10104,e.a133=10105,e.a134=10106,e.a135=10107,e.a136=10108,e.a137=10109,e.a138=10110,e.a139=10111,e.a140=10112,e.a141=10113,e.a142=10114,e.a143=10115,e.a144=10116,e.a145=10117,e.a146=10118,e.a147=10119,e.a148=10120,e.a149=10121,e.a150=10122,e.a151=10123,e.a152=10124,e.a153=10125,e.a154=10126,e.a155=10127,e.a156=10128,e.a157=10129,e.a158=10130,e.a159=10131,e.a160=10132,e.a161=8594,e.a163=8596,e.a164=8597,e.a196=10136,e.a165=10137,e.a192=10138,e.a166=10139,e.a167=10140,e.a168=10141,e.a169=10142,e.a170=10143,e.a171=10144,e.a172=10145,e.a173=10146,e.a162=10147,e.a174=10148,e.a175=10149,e.a176=10150,e.a177=10151,e.a178=10152,e.a179=10153,e.a193=10154,e.a180=10155,e.a199=10156,e.a181=10157,e.a200=10158,e.a182=10159,e.a201=10161,e.a183=10162,e.a184=10163,e.a197=10164,e.a185=10165,e.a194=10166,e.a198=10167,e.a186=10168,e.a195=10169,e.a187=10170,e.a188=10171,e.a189=10172,e.a190=10173,e.a191=10174,e.a89=10088,e.a90=10089,e.a93=10090,e.a94=10091,e.a91=10092,e.a92=10093,e.a205=10094,e.a85=10095,e.a206=10096,e.a86=10097,e.a87=10098,e.a88=10099,e.a95=10100,e.a96=10101,e[".notdef"]=0});t.getGlyphsUnicode=i,t.getDingbatsGlyphsUnicode=p},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.getSupplementalGlyphMapForCalibri=t.getSupplementalGlyphMapForArialBlack=t.getGlyphMapForStandardFonts=t.getSymbolsFonts=t.getSerifFonts=t.getNonStdFontMap=t.getStdFontMap=void 0;var r=a(7);const i=(0,r.getLookupTableFactory)(function(m){m.ArialNarrow="Helvetica",m["ArialNarrow-Bold"]="Helvetica-Bold",m["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",m["ArialNarrow-Italic"]="Helvetica-Oblique",m.ArialBlack="Helvetica",m["ArialBlack-Bold"]="Helvetica-Bold",m["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",m["ArialBlack-Italic"]="Helvetica-Oblique",m["Arial-Black"]="Helvetica",m["Arial-Black-Bold"]="Helvetica-Bold",m["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",m["Arial-Black-Italic"]="Helvetica-Oblique",m.Arial="Helvetica",m["Arial-Bold"]="Helvetica-Bold",m["Arial-BoldItalic"]="Helvetica-BoldOblique",m["Arial-Italic"]="Helvetica-Oblique",m["Arial-BoldItalicMT"]="Helvetica-BoldOblique",m["Arial-BoldMT"]="Helvetica-Bold",m["Arial-ItalicMT"]="Helvetica-Oblique",m.ArialMT="Helvetica",m["Courier-Bold"]="Courier-Bold",m["Courier-BoldItalic"]="Courier-BoldOblique",m["Courier-Italic"]="Courier-Oblique",m.CourierNew="Courier",m["CourierNew-Bold"]="Courier-Bold",m["CourierNew-BoldItalic"]="Courier-BoldOblique",m["CourierNew-Italic"]="Courier-Oblique",m["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",m["CourierNewPS-BoldMT"]="Courier-Bold",m["CourierNewPS-ItalicMT"]="Courier-Oblique",m.CourierNewPSMT="Courier",m.Helvetica="Helvetica",m["Helvetica-Bold"]="Helvetica-Bold",m["Helvetica-BoldItalic"]="Helvetica-BoldOblique",m["Helvetica-BoldOblique"]="Helvetica-BoldOblique",m["Helvetica-Italic"]="Helvetica-Oblique",m["Helvetica-Oblique"]="Helvetica-Oblique",m["Symbol-Bold"]="Symbol",m["Symbol-BoldItalic"]="Symbol",m["Symbol-Italic"]="Symbol",m.TimesNewRoman="Times-Roman",m["TimesNewRoman-Bold"]="Times-Bold",m["TimesNewRoman-BoldItalic"]="Times-BoldItalic",m["TimesNewRoman-Italic"]="Times-Italic",m.TimesNewRomanPS="Times-Roman",m["TimesNewRomanPS-Bold"]="Times-Bold",m["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",m["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",m["TimesNewRomanPS-BoldMT"]="Times-Bold",m["TimesNewRomanPS-Italic"]="Times-Italic",m["TimesNewRomanPS-ItalicMT"]="Times-Italic",m.TimesNewRomanPSMT="Times-Roman",m["TimesNewRomanPSMT-Bold"]="Times-Bold",m["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",m["TimesNewRomanPSMT-Italic"]="Times-Italic"});t.getStdFontMap=i;const p=(0,r.getLookupTableFactory)(function(m){m.Calibri="Helvetica",m["Calibri-Bold"]="Helvetica-Bold",m["Calibri-BoldItalic"]="Helvetica-BoldOblique",m["Calibri-Italic"]="Helvetica-Oblique",m.CenturyGothic="Helvetica",m["CenturyGothic-Bold"]="Helvetica-Bold",m["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",m["CenturyGothic-Italic"]="Helvetica-Oblique",m.ComicSansMS="Comic Sans MS",m["ComicSansMS-Bold"]="Comic Sans MS-Bold",m["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",m["ComicSansMS-Italic"]="Comic Sans MS-Italic",m.LucidaConsole="Courier",m["LucidaConsole-Bold"]="Courier-Bold",m["LucidaConsole-BoldItalic"]="Courier-BoldOblique",m["LucidaConsole-Italic"]="Courier-Oblique",m["LucidaSans-Demi"]="Helvetica-Bold",m["MS-Gothic"]="MS Gothic",m["MS-Gothic-Bold"]="MS Gothic-Bold",m["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",m["MS-Gothic-Italic"]="MS Gothic-Italic",m["MS-Mincho"]="MS Mincho",m["MS-Mincho-Bold"]="MS Mincho-Bold",m["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",m["MS-Mincho-Italic"]="MS Mincho-Italic",m["MS-PGothic"]="MS PGothic",m["MS-PGothic-Bold"]="MS PGothic-Bold",m["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",m["MS-PGothic-Italic"]="MS PGothic-Italic",m["MS-PMincho"]="MS PMincho",m["MS-PMincho-Bold"]="MS PMincho-Bold",m["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",m["MS-PMincho-Italic"]="MS PMincho-Italic",m.NuptialScript="Times-Italic",m.SegoeUISymbol="Helvetica",m.Wingdings="ZapfDingbats",m["Wingdings-Regular"]="ZapfDingbats"});t.getNonStdFontMap=p;const e=(0,r.getLookupTableFactory)(function(m){m["Adobe Jenson"]=!0,m["Adobe Text"]=!0,m.Albertus=!0,m.Aldus=!0,m.Alexandria=!0,m.Algerian=!0,m["American Typewriter"]=!0,m.Antiqua=!0,m.Apex=!0,m.Arno=!0,m.Aster=!0,m.Aurora=!0,m.Baskerville=!0,m.Bell=!0,m.Bembo=!0,m["Bembo Schoolbook"]=!0,m.Benguiat=!0,m["Berkeley Old Style"]=!0,m["Bernhard Modern"]=!0,m["Berthold City"]=!0,m.Bodoni=!0,m["Bauer Bodoni"]=!0,m["Book Antiqua"]=!0,m.Bookman=!0,m["Bordeaux Roman"]=!0,m["Californian FB"]=!0,m.Calisto=!0,m.Calvert=!0,m.Capitals=!0,m.Cambria=!0,m.Cartier=!0,m.Caslon=!0,m.Catull=!0,m.Centaur=!0,m["Century Old Style"]=!0,m["Century Schoolbook"]=!0,m.Chaparral=!0,m["Charis SIL"]=!0,m.Cheltenham=!0,m["Cholla Slab"]=!0,m.Clarendon=!0,m.Clearface=!0,m.Cochin=!0,m.Colonna=!0,m["Computer Modern"]=!0,m["Concrete Roman"]=!0,m.Constantia=!0,m["Cooper Black"]=!0,m.Corona=!0,m.Ecotype=!0,m.Egyptienne=!0,m.Elephant=!0,m.Excelsior=!0,m.Fairfield=!0,m["FF Scala"]=!0,m.Folkard=!0,m.Footlight=!0,m.FreeSerif=!0,m["Friz Quadrata"]=!0,m.Garamond=!0,m.Gentium=!0,m.Georgia=!0,m.Gloucester=!0,m["Goudy Old Style"]=!0,m["Goudy Schoolbook"]=!0,m["Goudy Pro Font"]=!0,m.Granjon=!0,m["Guardian Egyptian"]=!0,m.Heather=!0,m.Hercules=!0,m["High Tower Text"]=!0,m.Hiroshige=!0,m["Hoefler Text"]=!0,m["Humana Serif"]=!0,m.Imprint=!0,m["Ionic No. 5"]=!0,m.Janson=!0,m.Joanna=!0,m.Korinna=!0,m.Lexicon=!0,m["Liberation Serif"]=!0,m["Linux Libertine"]=!0,m.Literaturnaya=!0,m.Lucida=!0,m["Lucida Bright"]=!0,m.Melior=!0,m.Memphis=!0,m.Miller=!0,m.Minion=!0,m.Modern=!0,m["Mona Lisa"]=!0,m["Mrs Eaves"]=!0,m["MS Serif"]=!0,m["Museo Slab"]=!0,m["New York"]=!0,m["Nimbus Roman"]=!0,m["NPS Rawlinson Roadway"]=!0,m.NuptialScript=!0,m.Palatino=!0,m.Perpetua=!0,m.Plantin=!0,m["Plantin Schoolbook"]=!0,m.Playbill=!0,m["Poor Richard"]=!0,m["Rawlinson Roadway"]=!0,m.Renault=!0,m.Requiem=!0,m.Rockwell=!0,m.Roman=!0,m["Rotis Serif"]=!0,m.Sabon=!0,m.Scala=!0,m.Seagull=!0,m.Sistina=!0,m.Souvenir=!0,m.STIX=!0,m["Stone Informal"]=!0,m["Stone Serif"]=!0,m.Sylfaen=!0,m.Times=!0,m.Trajan=!0,m.Trinité=!0,m["Trump Mediaeval"]=!0,m.Utopia=!0,m["Vale Type"]=!0,m["Bitstream Vera"]=!0,m["Vera Serif"]=!0,m.Versailles=!0,m.Wanted=!0,m.Weiss=!0,m["Wide Latin"]=!0,m.Windsor=!0,m.XITS=!0});t.getSerifFonts=e;const N=(0,r.getLookupTableFactory)(function(m){m.Dingbats=!0,m.Symbol=!0,m.ZapfDingbats=!0});t.getSymbolsFonts=N;const w=(0,r.getLookupTableFactory)(function(m){m[2]=10,m[3]=32,m[4]=33,m[5]=34,m[6]=35,m[7]=36,m[8]=37,m[9]=38,m[10]=39,m[11]=40,m[12]=41,m[13]=42,m[14]=43,m[15]=44,m[16]=45,m[17]=46,m[18]=47,m[19]=48,m[20]=49,m[21]=50,m[22]=51,m[23]=52,m[24]=53,m[25]=54,m[26]=55,m[27]=56,m[28]=57,m[29]=58,m[30]=894,m[31]=60,m[32]=61,m[33]=62,m[34]=63,m[35]=64,m[36]=65,m[37]=66,m[38]=67,m[39]=68,m[40]=69,m[41]=70,m[42]=71,m[43]=72,m[44]=73,m[45]=74,m[46]=75,m[47]=76,m[48]=77,m[49]=78,m[50]=79,m[51]=80,m[52]=81,m[53]=82,m[54]=83,m[55]=84,m[56]=85,m[57]=86,m[58]=87,m[59]=88,m[60]=89,m[61]=90,m[62]=91,m[63]=92,m[64]=93,m[65]=94,m[66]=95,m[67]=96,m[68]=97,m[69]=98,m[70]=99,m[71]=100,m[72]=101,m[73]=102,m[74]=103,m[75]=104,m[76]=105,m[77]=106,m[78]=107,m[79]=108,m[80]=109,m[81]=110,m[82]=111,m[83]=112,m[84]=113,m[85]=114,m[86]=115,m[87]=116,m[88]=117,m[89]=118,m[90]=119,m[91]=120,m[92]=121,m[93]=122,m[94]=123,m[95]=124,m[96]=125,m[97]=126,m[98]=196,m[99]=197,m[100]=199,m[101]=201,m[102]=209,m[103]=214,m[104]=220,m[105]=225,m[106]=224,m[107]=226,m[108]=228,m[109]=227,m[110]=229,m[111]=231,m[112]=233,m[113]=232,m[114]=234,m[115]=235,m[116]=237,m[117]=236,m[118]=238,m[119]=239,m[120]=241,m[121]=243,m[122]=242,m[123]=244,m[124]=246,m[125]=245,m[126]=250,m[127]=249,m[128]=251,m[129]=252,m[130]=8224,m[131]=176,m[132]=162,m[133]=163,m[134]=167,m[135]=8226,m[136]=182,m[137]=223,m[138]=174,m[139]=169,m[140]=8482,m[141]=180,m[142]=168,m[143]=8800,m[144]=198,m[145]=216,m[146]=8734,m[147]=177,m[148]=8804,m[149]=8805,m[150]=165,m[151]=181,m[152]=8706,m[153]=8721,m[154]=8719,m[156]=8747,m[157]=170,m[158]=186,m[159]=8486,m[160]=230,m[161]=248,m[162]=191,m[163]=161,m[164]=172,m[165]=8730,m[166]=402,m[167]=8776,m[168]=8710,m[169]=171,m[170]=187,m[171]=8230,m[210]=218,m[223]=711,m[224]=321,m[225]=322,m[227]=353,m[229]=382,m[234]=253,m[252]=263,m[253]=268,m[254]=269,m[258]=258,m[260]=260,m[261]=261,m[265]=280,m[266]=281,m[268]=283,m[269]=313,m[275]=323,m[276]=324,m[278]=328,m[284]=345,m[285]=346,m[286]=347,m[292]=367,m[295]=377,m[296]=378,m[298]=380,m[305]=963,m[306]=964,m[307]=966,m[308]=8215,m[309]=8252,m[310]=8319,m[311]=8359,m[312]=8592,m[313]=8593,m[337]=9552,m[493]=1039,m[494]=1040,m[705]=1524,m[706]=8362,m[710]=64288,m[711]=64298,m[759]=1617,m[761]=1776,m[763]=1778,m[775]=1652,m[777]=1764,m[778]=1780,m[779]=1781,m[780]=1782,m[782]=771,m[783]=64726,m[786]=8363,m[788]=8532,m[790]=768,m[791]=769,m[792]=768,m[795]=803,m[797]=64336,m[798]=64337,m[799]=64342,m[800]=64343,m[801]=64344,m[802]=64345,m[803]=64362,m[804]=64363,m[805]=64364,m[2424]=7821,m[2425]=7822,m[2426]=7823,m[2427]=7824,m[2428]=7825,m[2429]=7826,m[2430]=7827,m[2433]=7682,m[2678]=8045,m[2679]=8046,m[2830]=1552,m[2838]=686,m[2840]=751,m[2842]=753,m[2843]=754,m[2844]=755,m[2846]=757,m[2856]=767,m[2857]=848,m[2858]=849,m[2862]=853,m[2863]=854,m[2864]=855,m[2865]=861,m[2866]=862,m[2906]=7460,m[2908]=7462,m[2909]=7463,m[2910]=7464,m[2912]=7466,m[2913]=7467,m[2914]=7468,m[2916]=7470,m[2917]=7471,m[2918]=7472,m[2920]=7474,m[2921]=7475,m[2922]=7476,m[2924]=7478,m[2925]=7479,m[2926]=7480,m[2928]=7482,m[2929]=7483,m[2930]=7484,m[2932]=7486,m[2933]=7487,m[2934]=7488,m[2936]=7490,m[2937]=7491,m[2938]=7492,m[2940]=7494,m[2941]=7495,m[2942]=7496,m[2944]=7498,m[2946]=7500,m[2948]=7502,m[2950]=7504,m[2951]=7505,m[2952]=7506,m[2954]=7508,m[2955]=7509,m[2956]=7510,m[2958]=7512,m[2959]=7513,m[2960]=7514,m[2962]=7516,m[2963]=7517,m[2964]=7518,m[2966]=7520,m[2967]=7521,m[2968]=7522,m[2970]=7524,m[2971]=7525,m[2972]=7526,m[2974]=7528,m[2975]=7529,m[2976]=7530,m[2978]=1537,m[2979]=1538,m[2980]=1539,m[2982]=1549,m[2983]=1551,m[2984]=1552,m[2986]=1554,m[2987]=1555,m[2988]=1556,m[2990]=1623,m[2991]=1624,m[2995]=1775,m[2999]=1791,m[3002]=64290,m[3003]=64291,m[3004]=64292,m[3006]=64294,m[3007]=64295,m[3008]=64296,m[3011]=1900,m[3014]=8223,m[3015]=8244,m[3017]=7532,m[3018]=7533,m[3019]=7534,m[3075]=7590,m[3076]=7591,m[3079]=7594,m[3080]=7595,m[3083]=7598,m[3084]=7599,m[3087]=7602,m[3088]=7603,m[3091]=7606,m[3092]=7607,m[3095]=7610,m[3096]=7611,m[3099]=7614,m[3100]=7615,m[3103]=7618,m[3104]=7619,m[3107]=8337,m[3108]=8338,m[3116]=1884,m[3119]=1885,m[3120]=1885,m[3123]=1886,m[3124]=1886,m[3127]=1887,m[3128]=1887,m[3131]=1888,m[3132]=1888,m[3135]=1889,m[3136]=1889,m[3139]=1890,m[3140]=1890,m[3143]=1891,m[3144]=1891,m[3147]=1892,m[3148]=1892,m[3153]=580,m[3154]=581,m[3157]=584,m[3158]=585,m[3161]=588,m[3162]=589,m[3165]=891,m[3166]=892,m[3169]=1274,m[3170]=1275,m[3173]=1278,m[3174]=1279,m[3181]=7622,m[3182]=7623,m[3282]=11799,m[3316]=578,m[3379]=42785,m[3393]=1159,m[3416]=8377});t.getGlyphMapForStandardFonts=w;const $=(0,r.getLookupTableFactory)(function(m){m[227]=322,m[264]=261,m[291]=346});t.getSupplementalGlyphMapForArialBlack=$;const U=(0,r.getLookupTableFactory)(function(m){m[1]=32,m[4]=65,m[17]=66,m[18]=67,m[24]=68,m[28]=69,m[38]=70,m[39]=71,m[44]=72,m[47]=73,m[58]=74,m[60]=75,m[62]=76,m[68]=77,m[69]=78,m[75]=79,m[87]=80,m[89]=81,m[90]=82,m[94]=83,m[100]=84,m[104]=85,m[115]=86,m[116]=87,m[121]=88,m[122]=89,m[127]=90,m[258]=97,m[268]=261,m[271]=98,m[272]=99,m[273]=263,m[282]=100,m[286]=101,m[295]=281,m[296]=102,m[336]=103,m[346]=104,m[349]=105,m[361]=106,m[364]=107,m[367]=108,m[371]=322,m[373]=109,m[374]=110,m[381]=111,m[383]=243,m[393]=112,m[395]=113,m[396]=114,m[400]=115,m[401]=347,m[410]=116,m[437]=117,m[448]=118,m[449]=119,m[454]=120,m[455]=121,m[460]=122,m[463]=380,m[853]=44,m[855]=58,m[856]=46,m[876]=47,m[878]=45,m[882]=45,m[894]=40,m[895]=41,m[896]=91,m[897]=93,m[923]=64,m[1004]=48,m[1005]=49,m[1006]=50,m[1007]=51,m[1008]=52,m[1009]=53,m[1010]=54,m[1011]=55,m[1012]=56,m[1013]=57,m[1081]=37,m[1085]=43,m[1086]=45});t.getSupplementalGlyphMapForCalibri=U},function(x,t,a){var r=a(7).getLookupTableFactory,i=r(function(n){n[63721]=169,n[63193]=169,n[63720]=174,n[63194]=174,n[63722]=8482,n[63195]=8482,n[63729]=9127,n[63730]=9128,n[63731]=9129,n[63740]=9131,n[63741]=9132,n[63742]=9133,n[63726]=9121,n[63727]=9122,n[63728]=9123,n[63737]=9124,n[63738]=9125,n[63739]=9126,n[63723]=9115,n[63724]=9116,n[63725]=9117,n[63734]=9118,n[63735]=9119,n[63736]=9120});function p(n){return n>=65520&&n<=65535?0:n>=62976&&n<=63743?i()[n]||n:n===173?45:n}function e(n,J){var O=J[n];if(O!==void 0)return O;if(!n)return-1;if(n[0]==="u"){var L=n.length,M;if(L===7&&n[1]==="n"&&n[2]==="i")M=n.substring(3);else if(L>=5&&L<=7)M=n.substring(1);else return-1;if(M===M.toUpperCase()&&(O=parseInt(M,16),O>=0))return O}return-1}var N=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];function w(n){for(var J=0,O=N.length;J<O;J++){var L=N[J];if(n>=L.begin&&n<L.end)return J}return-1}function $(n){var J=N[13];return n>=J.begin&&n<J.end||(J=N[11],n>=J.begin&&n<J.end)}var U=r(function(n){n["¨"]=" ̈",n["¯"]=" ̄",n["´"]=" ́",n.µ="μ",n["¸"]=" ̧",n.IJ="IJ",n.ij="ij",n.Ŀ="L·",n.ŀ="l·",n.ʼn="ʼn",n.ſ="s",n.DŽ="DŽ",n.Dž="Dž",n.dž="dž",n.LJ="LJ",n.Lj="Lj",n.lj="lj",n.NJ="NJ",n.Nj="Nj",n.nj="nj",n.DZ="DZ",n.Dz="Dz",n.dz="dz",n["˘"]=" ̆",n["˙"]=" ̇",n["˚"]=" ̊",n["˛"]=" ̨",n["˜"]=" ̃",n["˝"]=" ̋",n.ͺ=" ͅ",n["΄"]=" ́",n.ϐ="β",n.ϑ="θ",n.ϒ="Υ",n.ϕ="φ",n.ϖ="π",n.ϰ="κ",n.ϱ="ρ",n.ϲ="ς",n["ϴ"]="Θ",n["ϵ"]="ε",n["Ϲ"]="Σ",n.և="եւ",n.ٵ="اٴ",n.ٶ="وٴ",n.ٷ="ۇٴ",n.ٸ="يٴ",n.ำ="ํา",n.ຳ="ໍາ",n.ໜ="ຫນ",n.ໝ="ຫມ",n["ཷ"]="ྲཱྀ",n["ཹ"]="ླཱྀ",n.ẚ="aʾ",n["᾽"]=" ̓",n["᾿"]=" ̓",n["῀"]=" ͂",n["῾"]=" ̔",n[" "]=" ",n[" "]=" ",n[" "]=" ",n[" "]=" ",n[" "]=" ",n[" "]=" ",n[" "]=" ",n[" "]=" ",n["‗"]=" ̳",n["․"]=".",n["‥"]="..",n["…"]="...",n["″"]="′′",n["‴"]="′′′",n["‶"]="‵‵",n["‷"]="‵‵‵",n["‼"]="!!",n["‾"]=" ̅",n["⁇"]="??",n["⁈"]="?!",n["⁉"]="!?",n["⁗"]="′′′′",n[" "]=" ",n["₨"]="Rs",n["℀"]="a/c",n["℁"]="a/s",n["℃"]="°C",n["℅"]="c/o",n["℆"]="c/u",n.ℇ="Ɛ",n["℉"]="°F",n["№"]="No",n["℡"]="TEL",n.ℵ="א",n.ℶ="ב",n.ℷ="ג",n.ℸ="ד",n["℻"]="FAX",n["Ⅰ"]="I",n["Ⅱ"]="II",n["Ⅲ"]="III",n["Ⅳ"]="IV",n["Ⅴ"]="V",n["Ⅵ"]="VI",n["Ⅶ"]="VII",n["Ⅷ"]="VIII",n["Ⅸ"]="IX",n["Ⅹ"]="X",n["Ⅺ"]="XI",n["Ⅻ"]="XII",n["Ⅼ"]="L",n["Ⅽ"]="C",n["Ⅾ"]="D",n["Ⅿ"]="M",n["ⅰ"]="i",n["ⅱ"]="ii",n["ⅲ"]="iii",n["ⅳ"]="iv",n["ⅴ"]="v",n["ⅵ"]="vi",n["ⅶ"]="vii",n["ⅷ"]="viii",n["ⅸ"]="ix",n["ⅹ"]="x",n["ⅺ"]="xi",n["ⅻ"]="xii",n["ⅼ"]="l",n["ⅽ"]="c",n["ⅾ"]="d",n["ⅿ"]="m",n["∬"]="∫∫",n["∭"]="∫∫∫",n["∯"]="∮∮",n["∰"]="∮∮∮",n["⑴"]="(1)",n["⑵"]="(2)",n["⑶"]="(3)",n["⑷"]="(4)",n["⑸"]="(5)",n["⑹"]="(6)",n["⑺"]="(7)",n["⑻"]="(8)",n["⑼"]="(9)",n["⑽"]="(10)",n["⑾"]="(11)",n["⑿"]="(12)",n["⒀"]="(13)",n["⒁"]="(14)",n["⒂"]="(15)",n["⒃"]="(16)",n["⒄"]="(17)",n["⒅"]="(18)",n["⒆"]="(19)",n["⒇"]="(20)",n["⒈"]="1.",n["⒉"]="2.",n["⒊"]="3.",n["⒋"]="4.",n["⒌"]="5.",n["⒍"]="6.",n["⒎"]="7.",n["⒏"]="8.",n["⒐"]="9.",n["⒑"]="10.",n["⒒"]="11.",n["⒓"]="12.",n["⒔"]="13.",n["⒕"]="14.",n["⒖"]="15.",n["⒗"]="16.",n["⒘"]="17.",n["⒙"]="18.",n["⒚"]="19.",n["⒛"]="20.",n["⒜"]="(a)",n["⒝"]="(b)",n["⒞"]="(c)",n["⒟"]="(d)",n["⒠"]="(e)",n["⒡"]="(f)",n["⒢"]="(g)",n["⒣"]="(h)",n["⒤"]="(i)",n["⒥"]="(j)",n["⒦"]="(k)",n["⒧"]="(l)",n["⒨"]="(m)",n["⒩"]="(n)",n["⒪"]="(o)",n["⒫"]="(p)",n["⒬"]="(q)",n["⒭"]="(r)",n["⒮"]="(s)",n["⒯"]="(t)",n["⒰"]="(u)",n["⒱"]="(v)",n["⒲"]="(w)",n["⒳"]="(x)",n["⒴"]="(y)",n["⒵"]="(z)",n["⨌"]="∫∫∫∫",n["⩴"]="::=",n["⩵"]="==",n["⩶"]="===",n["⺟"]="母",n["⻳"]="龟",n["⼀"]="一",n["⼁"]="丨",n["⼂"]="丶",n["⼃"]="丿",n["⼄"]="乙",n["⼅"]="亅",n["⼆"]="二",n["⼇"]="亠",n["⼈"]="人",n["⼉"]="儿",n["⼊"]="入",n["⼋"]="八",n["⼌"]="冂",n["⼍"]="冖",n["⼎"]="冫",n["⼏"]="几",n["⼐"]="凵",n["⼑"]="刀",n["⼒"]="力",n["⼓"]="勹",n["⼔"]="匕",n["⼕"]="匚",n["⼖"]="匸",n["⼗"]="十",n["⼘"]="卜",n["⼙"]="卩",n["⼚"]="厂",n["⼛"]="厶",n["⼜"]="又",n["⼝"]="口",n["⼞"]="囗",n["⼟"]="土",n["⼠"]="士",n["⼡"]="夂",n["⼢"]="夊",n["⼣"]="夕",n["⼤"]="大",n["⼥"]="女",n["⼦"]="子",n["⼧"]="宀",n["⼨"]="寸",n["⼩"]="小",n["⼪"]="尢",n["⼫"]="尸",n["⼬"]="屮",n["⼭"]="山",n["⼮"]="巛",n["⼯"]="工",n["⼰"]="己",n["⼱"]="巾",n["⼲"]="干",n["⼳"]="幺",n["⼴"]="广",n["⼵"]="廴",n["⼶"]="廾",n["⼷"]="弋",n["⼸"]="弓",n["⼹"]="彐",n["⼺"]="彡",n["⼻"]="彳",n["⼼"]="心",n["⼽"]="戈",n["⼾"]="戶",n["⼿"]="手",n["⽀"]="支",n["⽁"]="攴",n["⽂"]="文",n["⽃"]="斗",n["⽄"]="斤",n["⽅"]="方",n["⽆"]="无",n["⽇"]="日",n["⽈"]="曰",n["⽉"]="月",n["⽊"]="木",n["⽋"]="欠",n["⽌"]="止",n["⽍"]="歹",n["⽎"]="殳",n["⽏"]="毋",n["⽐"]="比",n["⽑"]="毛",n["⽒"]="氏",n["⽓"]="气",n["⽔"]="水",n["⽕"]="火",n["⽖"]="爪",n["⽗"]="父",n["⽘"]="爻",n["⽙"]="爿",n["⽚"]="片",n["⽛"]="牙",n["⽜"]="牛",n["⽝"]="犬",n["⽞"]="玄",n["⽟"]="玉",n["⽠"]="瓜",n["⽡"]="瓦",n["⽢"]="甘",n["⽣"]="生",n["⽤"]="用",n["⽥"]="田",n["⽦"]="疋",n["⽧"]="疒",n["⽨"]="癶",n["⽩"]="白",n["⽪"]="皮",n["⽫"]="皿",n["⽬"]="目",n["⽭"]="矛",n["⽮"]="矢",n["⽯"]="石",n["⽰"]="示",n["⽱"]="禸",n["⽲"]="禾",n["⽳"]="穴",n["⽴"]="立",n["⽵"]="竹",n["⽶"]="米",n["⽷"]="糸",n["⽸"]="缶",n["⽹"]="网",n["⽺"]="羊",n["⽻"]="羽",n["⽼"]="老",n["⽽"]="而",n["⽾"]="耒",n["⽿"]="耳",n["⾀"]="聿",n["⾁"]="肉",n["⾂"]="臣",n["⾃"]="自",n["⾄"]="至",n["⾅"]="臼",n["⾆"]="舌",n["⾇"]="舛",n["⾈"]="舟",n["⾉"]="艮",n["⾊"]="色",n["⾋"]="艸",n["⾌"]="虍",n["⾍"]="虫",n["⾎"]="血",n["⾏"]="行",n["⾐"]="衣",n["⾑"]="襾",n["⾒"]="見",n["⾓"]="角",n["⾔"]="言",n["⾕"]="谷",n["⾖"]="豆",n["⾗"]="豕",n["⾘"]="豸",n["⾙"]="貝",n["⾚"]="赤",n["⾛"]="走",n["⾜"]="足",n["⾝"]="身",n["⾞"]="車",n["⾟"]="辛",n["⾠"]="辰",n["⾡"]="辵",n["⾢"]="邑",n["⾣"]="酉",n["⾤"]="釆",n["⾥"]="里",n["⾦"]="金",n["⾧"]="長",n["⾨"]="門",n["⾩"]="阜",n["⾪"]="隶",n["⾫"]="隹",n["⾬"]="雨",n["⾭"]="靑",n["⾮"]="非",n["⾯"]="面",n["⾰"]="革",n["⾱"]="韋",n["⾲"]="韭",n["⾳"]="音",n["⾴"]="頁",n["⾵"]="風",n["⾶"]="飛",n["⾷"]="食",n["⾸"]="首",n["⾹"]="香",n["⾺"]="馬",n["⾻"]="骨",n["⾼"]="高",n["⾽"]="髟",n["⾾"]="鬥",n["⾿"]="鬯",n["⿀"]="鬲",n["⿁"]="鬼",n["⿂"]="魚",n["⿃"]="鳥",n["⿄"]="鹵",n["⿅"]="鹿",n["⿆"]="麥",n["⿇"]="麻",n["⿈"]="黃",n["⿉"]="黍",n["⿊"]="黑",n["⿋"]="黹",n["⿌"]="黽",n["⿍"]="鼎",n["⿎"]="鼓",n["⿏"]="鼠",n["⿐"]="鼻",n["⿑"]="齊",n["⿒"]="齒",n["⿓"]="龍",n["⿔"]="龜",n["⿕"]="龠",n["〶"]="〒",n["〸"]="十",n["〹"]="卄",n["〺"]="卅",n["゛"]=" ゙",n["゜"]=" ゚",n.ㄱ="ᄀ",n.ㄲ="ᄁ",n.ㄳ="ᆪ",n.ㄴ="ᄂ",n.ㄵ="ᆬ",n.ㄶ="ᆭ",n.ㄷ="ᄃ",n.ㄸ="ᄄ",n.ㄹ="ᄅ",n.ㄺ="ᆰ",n.ㄻ="ᆱ",n.ㄼ="ᆲ",n.ㄽ="ᆳ",n.ㄾ="ᆴ",n.ㄿ="ᆵ",n.ㅀ="ᄚ",n.ㅁ="ᄆ",n.ㅂ="ᄇ",n.ㅃ="ᄈ",n.ㅄ="ᄡ",n.ㅅ="ᄉ",n.ㅆ="ᄊ",n.ㅇ="ᄋ",n.ㅈ="ᄌ",n.ㅉ="ᄍ",n.ㅊ="ᄎ",n.ㅋ="ᄏ",n.ㅌ="ᄐ",n.ㅍ="ᄑ",n.ㅎ="ᄒ",n.ㅏ="ᅡ",n.ㅐ="ᅢ",n.ㅑ="ᅣ",n.ㅒ="ᅤ",n.ㅓ="ᅥ",n.ㅔ="ᅦ",n.ㅕ="ᅧ",n.ㅖ="ᅨ",n.ㅗ="ᅩ",n.ㅘ="ᅪ",n.ㅙ="ᅫ",n.ㅚ="ᅬ",n.ㅛ="ᅭ",n.ㅜ="ᅮ",n.ㅝ="ᅯ",n.ㅞ="ᅰ",n.ㅟ="ᅱ",n.ㅠ="ᅲ",n.ㅡ="ᅳ",n.ㅢ="ᅴ",n.ㅣ="ᅵ",n.ㅤ="ᅠ",n.ㅥ="ᄔ",n.ㅦ="ᄕ",n.ㅧ="ᇇ",n.ㅨ="ᇈ",n.ㅩ="ᇌ",n.ㅪ="ᇎ",n.ㅫ="ᇓ",n.ㅬ="ᇗ",n.ㅭ="ᇙ",n.ㅮ="ᄜ",n.ㅯ="ᇝ",n.ㅰ="ᇟ",n.ㅱ="ᄝ",n.ㅲ="ᄞ",n.ㅳ="ᄠ",n.ㅴ="ᄢ",n.ㅵ="ᄣ",n.ㅶ="ᄧ",n.ㅷ="ᄩ",n.ㅸ="ᄫ",n.ㅹ="ᄬ",n.ㅺ="ᄭ",n.ㅻ="ᄮ",n.ㅼ="ᄯ",n.ㅽ="ᄲ",n.ㅾ="ᄶ",n.ㅿ="ᅀ",n.ㆀ="ᅇ",n.ㆁ="ᅌ",n.ㆂ="ᇱ",n.ㆃ="ᇲ",n.ㆄ="ᅗ",n.ㆅ="ᅘ",n.ㆆ="ᅙ",n.ㆇ="ᆄ",n.ㆈ="ᆅ",n.ㆉ="ᆈ",n.ㆊ="ᆑ",n.ㆋ="ᆒ",n.ㆌ="ᆔ",n.ㆍ="ᆞ",n.ㆎ="ᆡ",n["㈀"]="(ᄀ)",n["㈁"]="(ᄂ)",n["㈂"]="(ᄃ)",n["㈃"]="(ᄅ)",n["㈄"]="(ᄆ)",n["㈅"]="(ᄇ)",n["㈆"]="(ᄉ)",n["㈇"]="(ᄋ)",n["㈈"]="(ᄌ)",n["㈉"]="(ᄎ)",n["㈊"]="(ᄏ)",n["㈋"]="(ᄐ)",n["㈌"]="(ᄑ)",n["㈍"]="(ᄒ)",n["㈎"]="(가)",n["㈏"]="(나)",n["㈐"]="(다)",n["㈑"]="(라)",n["㈒"]="(마)",n["㈓"]="(바)",n["㈔"]="(사)",n["㈕"]="(아)",n["㈖"]="(자)",n["㈗"]="(차)",n["㈘"]="(카)",n["㈙"]="(타)",n["㈚"]="(파)",n["㈛"]="(하)",n["㈜"]="(주)",n["㈝"]="(오전)",n["㈞"]="(오후)",n["㈠"]="(一)",n["㈡"]="(二)",n["㈢"]="(三)",n["㈣"]="(四)",n["㈤"]="(五)",n["㈥"]="(六)",n["㈦"]="(七)",n["㈧"]="(八)",n["㈨"]="(九)",n["㈩"]="(十)",n["㈪"]="(月)",n["㈫"]="(火)",n["㈬"]="(水)",n["㈭"]="(木)",n["㈮"]="(金)",n["㈯"]="(土)",n["㈰"]="(日)",n["㈱"]="(株)",n["㈲"]="(有)",n["㈳"]="(社)",n["㈴"]="(名)",n["㈵"]="(特)",n["㈶"]="(財)",n["㈷"]="(祝)",n["㈸"]="(労)",n["㈹"]="(代)",n["㈺"]="(呼)",n["㈻"]="(学)",n["㈼"]="(監)",n["㈽"]="(企)",n["㈾"]="(資)",n["㈿"]="(協)",n["㉀"]="(祭)",n["㉁"]="(休)",n["㉂"]="(自)",n["㉃"]="(至)",n["㋀"]="1月",n["㋁"]="2月",n["㋂"]="3月",n["㋃"]="4月",n["㋄"]="5月",n["㋅"]="6月",n["㋆"]="7月",n["㋇"]="8月",n["㋈"]="9月",n["㋉"]="10月",n["㋊"]="11月",n["㋋"]="12月",n["㍘"]="0点",n["㍙"]="1点",n["㍚"]="2点",n["㍛"]="3点",n["㍜"]="4点",n["㍝"]="5点",n["㍞"]="6点",n["㍟"]="7点",n["㍠"]="8点",n["㍡"]="9点",n["㍢"]="10点",n["㍣"]="11点",n["㍤"]="12点",n["㍥"]="13点",n["㍦"]="14点",n["㍧"]="15点",n["㍨"]="16点",n["㍩"]="17点",n["㍪"]="18点",n["㍫"]="19点",n["㍬"]="20点",n["㍭"]="21点",n["㍮"]="22点",n["㍯"]="23点",n["㍰"]="24点",n["㏠"]="1日",n["㏡"]="2日",n["㏢"]="3日",n["㏣"]="4日",n["㏤"]="5日",n["㏥"]="6日",n["㏦"]="7日",n["㏧"]="8日",n["㏨"]="9日",n["㏩"]="10日",n["㏪"]="11日",n["㏫"]="12日",n["㏬"]="13日",n["㏭"]="14日",n["㏮"]="15日",n["㏯"]="16日",n["㏰"]="17日",n["㏱"]="18日",n["㏲"]="19日",n["㏳"]="20日",n["㏴"]="21日",n["㏵"]="22日",n["㏶"]="23日",n["㏷"]="24日",n["㏸"]="25日",n["㏹"]="26日",n["㏺"]="27日",n["㏻"]="28日",n["㏼"]="29日",n["㏽"]="30日",n["㏾"]="31日",n.ff="ff",n.fi="fi",n.fl="fl",n.ffi="ffi",n.ffl="ffl",n.ſt="ſt",n.st="st",n.ﬓ="մն",n.ﬔ="մե",n.ﬕ="մի",n.ﬖ="վն",n.ﬗ="մխ",n.ﭏ="אל",n.ﭐ="ٱ",n.ﭑ="ٱ",n.ﭒ="ٻ",n.ﭓ="ٻ",n.ﭔ="ٻ",n.ﭕ="ٻ",n.ﭖ="پ",n.ﭗ="پ",n.ﭘ="پ",n.ﭙ="پ",n.ﭚ="ڀ",n.ﭛ="ڀ",n.ﭜ="ڀ",n.ﭝ="ڀ",n.ﭞ="ٺ",n.ﭟ="ٺ",n.ﭠ="ٺ",n.ﭡ="ٺ",n.ﭢ="ٿ",n.ﭣ="ٿ",n.ﭤ="ٿ",n.ﭥ="ٿ",n.ﭦ="ٹ",n.ﭧ="ٹ",n.ﭨ="ٹ",n.ﭩ="ٹ",n.ﭪ="ڤ",n.ﭫ="ڤ",n.ﭬ="ڤ",n.ﭭ="ڤ",n.ﭮ="ڦ",n.ﭯ="ڦ",n.ﭰ="ڦ",n.ﭱ="ڦ",n.ﭲ="ڄ",n.ﭳ="ڄ",n.ﭴ="ڄ",n.ﭵ="ڄ",n.ﭶ="ڃ",n.ﭷ="ڃ",n.ﭸ="ڃ",n.ﭹ="ڃ",n.ﭺ="چ",n.ﭻ="چ",n.ﭼ="چ",n.ﭽ="چ",n.ﭾ="ڇ",n.ﭿ="ڇ",n.ﮀ="ڇ",n.ﮁ="ڇ",n.ﮂ="ڍ",n.ﮃ="ڍ",n.ﮄ="ڌ",n.ﮅ="ڌ",n.ﮆ="ڎ",n.ﮇ="ڎ",n.ﮈ="ڈ",n.ﮉ="ڈ",n.ﮊ="ژ",n.ﮋ="ژ",n.ﮌ="ڑ",n.ﮍ="ڑ",n.ﮎ="ک",n.ﮏ="ک",n.ﮐ="ک",n.ﮑ="ک",n.ﮒ="گ",n.ﮓ="گ",n.ﮔ="گ",n.ﮕ="گ",n.ﮖ="ڳ",n.ﮗ="ڳ",n.ﮘ="ڳ",n.ﮙ="ڳ",n.ﮚ="ڱ",n.ﮛ="ڱ",n.ﮜ="ڱ",n.ﮝ="ڱ",n.ﮞ="ں",n.ﮟ="ں",n.ﮠ="ڻ",n.ﮡ="ڻ",n.ﮢ="ڻ",n.ﮣ="ڻ",n.ﮤ="ۀ",n.ﮥ="ۀ",n.ﮦ="ہ",n.ﮧ="ہ",n.ﮨ="ہ",n.ﮩ="ہ",n.ﮪ="ھ",n.ﮫ="ھ",n.ﮬ="ھ",n.ﮭ="ھ",n.ﮮ="ے",n.ﮯ="ے",n.ﮰ="ۓ",n.ﮱ="ۓ",n.ﯓ="ڭ",n.ﯔ="ڭ",n.ﯕ="ڭ",n.ﯖ="ڭ",n.ﯗ="ۇ",n.ﯘ="ۇ",n.ﯙ="ۆ",n.ﯚ="ۆ",n.ﯛ="ۈ",n.ﯜ="ۈ",n.ﯝ="ٷ",n.ﯞ="ۋ",n.ﯟ="ۋ",n.ﯠ="ۅ",n.ﯡ="ۅ",n.ﯢ="ۉ",n.ﯣ="ۉ",n.ﯤ="ې",n.ﯥ="ې",n.ﯦ="ې",n.ﯧ="ې",n.ﯨ="ى",n.ﯩ="ى",n.ﯪ="ئا",n.ﯫ="ئا",n.ﯬ="ئە",n.ﯭ="ئە",n.ﯮ="ئو",n.ﯯ="ئو",n.ﯰ="ئۇ",n.ﯱ="ئۇ",n.ﯲ="ئۆ",n.ﯳ="ئۆ",n.ﯴ="ئۈ",n.ﯵ="ئۈ",n.ﯶ="ئې",n.ﯷ="ئې",n.ﯸ="ئې",n.ﯹ="ئى",n.ﯺ="ئى",n.ﯻ="ئى",n.ﯼ="ی",n.ﯽ="ی",n.ﯾ="ی",n.ﯿ="ی",n.ﰀ="ئج",n.ﰁ="ئح",n.ﰂ="ئم",n.ﰃ="ئى",n.ﰄ="ئي",n.ﰅ="بج",n.ﰆ="بح",n.ﰇ="بخ",n.ﰈ="بم",n.ﰉ="بى",n.ﰊ="بي",n.ﰋ="تج",n.ﰌ="تح",n.ﰍ="تخ",n.ﰎ="تم",n.ﰏ="تى",n.ﰐ="تي",n.ﰑ="ثج",n.ﰒ="ثم",n.ﰓ="ثى",n.ﰔ="ثي",n.ﰕ="جح",n.ﰖ="جم",n.ﰗ="حج",n.ﰘ="حم",n.ﰙ="خج",n.ﰚ="خح",n.ﰛ="خم",n.ﰜ="سج",n.ﰝ="سح",n.ﰞ="سخ",n.ﰟ="سم",n.ﰠ="صح",n.ﰡ="صم",n.ﰢ="ضج",n.ﰣ="ضح",n.ﰤ="ضخ",n.ﰥ="ضم",n.ﰦ="طح",n.ﰧ="طم",n.ﰨ="ظم",n.ﰩ="عج",n.ﰪ="عم",n.ﰫ="غج",n.ﰬ="غم",n.ﰭ="فج",n.ﰮ="فح",n.ﰯ="فخ",n.ﰰ="فم",n.ﰱ="فى",n.ﰲ="في",n.ﰳ="قح",n.ﰴ="قم",n.ﰵ="قى",n.ﰶ="قي",n.ﰷ="كا",n.ﰸ="كج",n.ﰹ="كح",n.ﰺ="كخ",n.ﰻ="كل",n.ﰼ="كم",n.ﰽ="كى",n.ﰾ="كي",n.ﰿ="لج",n.ﱀ="لح",n.ﱁ="لخ",n.ﱂ="لم",n.ﱃ="لى",n.ﱄ="لي",n.ﱅ="مج",n.ﱆ="مح",n.ﱇ="مخ",n.ﱈ="مم",n.ﱉ="مى",n.ﱊ="مي",n.ﱋ="نج",n.ﱌ="نح",n.ﱍ="نخ",n.ﱎ="نم",n.ﱏ="نى",n.ﱐ="ني",n.ﱑ="هج",n.ﱒ="هم",n.ﱓ="هى",n.ﱔ="هي",n.ﱕ="يج",n.ﱖ="يح",n.ﱗ="يخ",n.ﱘ="يم",n.ﱙ="يى",n.ﱚ="يي",n.ﱛ="ذٰ",n.ﱜ="رٰ",n.ﱝ="ىٰ",n.ﱞ=" ٌّ",n.ﱟ=" ٍّ",n.ﱠ=" َّ",n.ﱡ=" ُّ",n.ﱢ=" ِّ",n.ﱣ=" ّٰ",n.ﱤ="ئر",n.ﱥ="ئز",n.ﱦ="ئم",n.ﱧ="ئن",n.ﱨ="ئى",n.ﱩ="ئي",n.ﱪ="بر",n.ﱫ="بز",n.ﱬ="بم",n.ﱭ="بن",n.ﱮ="بى",n.ﱯ="بي",n.ﱰ="تر",n.ﱱ="تز",n.ﱲ="تم",n.ﱳ="تن",n.ﱴ="تى",n.ﱵ="تي",n.ﱶ="ثر",n.ﱷ="ثز",n.ﱸ="ثم",n.ﱹ="ثن",n.ﱺ="ثى",n.ﱻ="ثي",n.ﱼ="فى",n.ﱽ="في",n.ﱾ="قى",n.ﱿ="قي",n.ﲀ="كا",n.ﲁ="كل",n.ﲂ="كم",n.ﲃ="كى",n.ﲄ="كي",n.ﲅ="لم",n.ﲆ="لى",n.ﲇ="لي",n.ﲈ="ما",n.ﲉ="مم",n.ﲊ="نر",n.ﲋ="نز",n.ﲌ="نم",n.ﲍ="نن",n.ﲎ="نى",n.ﲏ="ني",n.ﲐ="ىٰ",n.ﲑ="ير",n.ﲒ="يز",n.ﲓ="يم",n.ﲔ="ين",n.ﲕ="يى",n.ﲖ="يي",n.ﲗ="ئج",n.ﲘ="ئح",n.ﲙ="ئخ",n.ﲚ="ئم",n.ﲛ="ئه",n.ﲜ="بج",n.ﲝ="بح",n.ﲞ="بخ",n.ﲟ="بم",n.ﲠ="به",n.ﲡ="تج",n.ﲢ="تح",n.ﲣ="تخ",n.ﲤ="تم",n.ﲥ="ته",n.ﲦ="ثم",n.ﲧ="جح",n.ﲨ="جم",n.ﲩ="حج",n.ﲪ="حم",n.ﲫ="خج",n.ﲬ="خم",n.ﲭ="سج",n.ﲮ="سح",n.ﲯ="سخ",n.ﲰ="سم",n.ﲱ="صح",n.ﲲ="صخ",n.ﲳ="صم",n.ﲴ="ضج",n.ﲵ="ضح",n.ﲶ="ضخ",n.ﲷ="ضم",n.ﲸ="طح",n.ﲹ="ظم",n.ﲺ="عج",n.ﲻ="عم",n.ﲼ="غج",n.ﲽ="غم",n.ﲾ="فج",n.ﲿ="فح",n.ﳀ="فخ",n.ﳁ="فم",n.ﳂ="قح",n.ﳃ="قم",n.ﳄ="كج",n.ﳅ="كح",n.ﳆ="كخ",n.ﳇ="كل",n.ﳈ="كم",n.ﳉ="لج",n.ﳊ="لح",n.ﳋ="لخ",n.ﳌ="لم",n.ﳍ="له",n.ﳎ="مج",n.ﳏ="مح",n.ﳐ="مخ",n.ﳑ="مم",n.ﳒ="نج",n.ﳓ="نح",n.ﳔ="نخ",n.ﳕ="نم",n.ﳖ="نه",n.ﳗ="هج",n.ﳘ="هم",n.ﳙ="هٰ",n.ﳚ="يج",n.ﳛ="يح",n.ﳜ="يخ",n.ﳝ="يم",n.ﳞ="يه",n.ﳟ="ئم",n.ﳠ="ئه",n.ﳡ="بم",n.ﳢ="به",n.ﳣ="تم",n.ﳤ="ته",n.ﳥ="ثم",n.ﳦ="ثه",n.ﳧ="سم",n.ﳨ="سه",n.ﳩ="شم",n.ﳪ="شه",n.ﳫ="كل",n.ﳬ="كم",n.ﳭ="لم",n.ﳮ="نم",n.ﳯ="نه",n.ﳰ="يم",n.ﳱ="يه",n.ﳲ="ـَّ",n.ﳳ="ـُّ",n.ﳴ="ـِّ",n.ﳵ="طى",n.ﳶ="طي",n.ﳷ="عى",n.ﳸ="عي",n.ﳹ="غى",n.ﳺ="غي",n.ﳻ="سى",n.ﳼ="سي",n.ﳽ="شى",n.ﳾ="شي",n.ﳿ="حى",n.ﴀ="حي",n.ﴁ="جى",n.ﴂ="جي",n.ﴃ="خى",n.ﴄ="خي",n.ﴅ="صى",n.ﴆ="صي",n.ﴇ="ضى",n.ﴈ="ضي",n.ﴉ="شج",n.ﴊ="شح",n.ﴋ="شخ",n.ﴌ="شم",n.ﴍ="شر",n.ﴎ="سر",n.ﴏ="صر",n.ﴐ="ضر",n.ﴑ="طى",n.ﴒ="طي",n.ﴓ="عى",n.ﴔ="عي",n.ﴕ="غى",n.ﴖ="غي",n.ﴗ="سى",n.ﴘ="سي",n.ﴙ="شى",n.ﴚ="شي",n.ﴛ="حى",n.ﴜ="حي",n.ﴝ="جى",n.ﴞ="جي",n.ﴟ="خى",n.ﴠ="خي",n.ﴡ="صى",n.ﴢ="صي",n.ﴣ="ضى",n.ﴤ="ضي",n.ﴥ="شج",n.ﴦ="شح",n.ﴧ="شخ",n.ﴨ="شم",n.ﴩ="شر",n.ﴪ="سر",n.ﴫ="صر",n.ﴬ="ضر",n.ﴭ="شج",n.ﴮ="شح",n.ﴯ="شخ",n.ﴰ="شم",n.ﴱ="سه",n.ﴲ="شه",n.ﴳ="طم",n.ﴴ="سج",n.ﴵ="سح",n.ﴶ="سخ",n.ﴷ="شج",n.ﴸ="شح",n.ﴹ="شخ",n.ﴺ="طم",n.ﴻ="ظم",n.ﴼ="اً",n.ﴽ="اً",n.ﵐ="تجم",n.ﵑ="تحج",n.ﵒ="تحج",n.ﵓ="تحم",n.ﵔ="تخم",n.ﵕ="تمج",n.ﵖ="تمح",n.ﵗ="تمخ",n.ﵘ="جمح",n.ﵙ="جمح",n.ﵚ="حمي",n.ﵛ="حمى",n.ﵜ="سحج",n.ﵝ="سجح",n.ﵞ="سجى",n.ﵟ="سمح",n.ﵠ="سمح",n.ﵡ="سمج",n.ﵢ="سمم",n.ﵣ="سمم",n.ﵤ="صحح",n.ﵥ="صحح",n.ﵦ="صمم",n.ﵧ="شحم",n.ﵨ="شحم",n.ﵩ="شجي",n.ﵪ="شمخ",n.ﵫ="شمخ",n.ﵬ="شمم",n.ﵭ="شمم",n.ﵮ="ضحى",n.ﵯ="ضخم",n.ﵰ="ضخم",n.ﵱ="طمح",n.ﵲ="طمح",n.ﵳ="طمم",n.ﵴ="طمي",n.ﵵ="عجم",n.ﵶ="عمم",n.ﵷ="عمم",n.ﵸ="عمى",n.ﵹ="غمم",n.ﵺ="غمي",n.ﵻ="غمى",n.ﵼ="فخم",n.ﵽ="فخم",n.ﵾ="قمح",n.ﵿ="قمم",n.ﶀ="لحم",n.ﶁ="لحي",n.ﶂ="لحى",n.ﶃ="لجج",n.ﶄ="لجج",n.ﶅ="لخم",n.ﶆ="لخم",n.ﶇ="لمح",n.ﶈ="لمح",n.ﶉ="محج",n.ﶊ="محم",n.ﶋ="محي",n.ﶌ="مجح",n.ﶍ="مجم",n.ﶎ="مخج",n.ﶏ="مخم",n.ﶒ="مجخ",n.ﶓ="همج",n.ﶔ="همم",n.ﶕ="نحم",n.ﶖ="نحى",n.ﶗ="نجم",n.ﶘ="نجم",n.ﶙ="نجى",n.ﶚ="نمي",n.ﶛ="نمى",n.ﶜ="يمم",n.ﶝ="يمم",n.ﶞ="بخي",n.ﶟ="تجي",n.ﶠ="تجى",n.ﶡ="تخي",n.ﶢ="تخى",n.ﶣ="تمي",n.ﶤ="تمى",n.ﶥ="جمي",n.ﶦ="جحى",n.ﶧ="جمى",n.ﶨ="سخى",n.ﶩ="صحي",n.ﶪ="شحي",n.ﶫ="ضحي",n.ﶬ="لجي",n.ﶭ="لمي",n.ﶮ="يحي",n.ﶯ="يجي",n.ﶰ="يمي",n.ﶱ="ممي",n.ﶲ="قمي",n.ﶳ="نحي",n.ﶴ="قمح",n.ﶵ="لحم",n.ﶶ="عمي",n.ﶷ="كمي",n.ﶸ="نجح",n.ﶹ="مخي",n.ﶺ="لجم",n.ﶻ="كمم",n.ﶼ="لجم",n.ﶽ="نجح",n.ﶾ="جحي",n.ﶿ="حجي",n.ﷀ="مجي",n.ﷁ="فمي",n.ﷂ="بحي",n.ﷃ="كمم",n.ﷄ="عجم",n.ﷅ="صمم",n.ﷆ="سخي",n.ﷇ="نجي",n["﹉"]="‾",n["﹊"]="‾",n["﹋"]="‾",n["﹌"]="‾",n["﹍"]="_",n["﹎"]="_",n["﹏"]="_",n.ﺀ="ء",n.ﺁ="آ",n.ﺂ="آ",n.ﺃ="أ",n.ﺄ="أ",n.ﺅ="ؤ",n.ﺆ="ؤ",n.ﺇ="إ",n.ﺈ="إ",n.ﺉ="ئ",n.ﺊ="ئ",n.ﺋ="ئ",n.ﺌ="ئ",n.ﺍ="ا",n.ﺎ="ا",n.ﺏ="ب",n.ﺐ="ب",n.ﺑ="ب",n.ﺒ="ب",n.ﺓ="ة",n.ﺔ="ة",n.ﺕ="ت",n.ﺖ="ت",n.ﺗ="ت",n.ﺘ="ت",n.ﺙ="ث",n.ﺚ="ث",n.ﺛ="ث",n.ﺜ="ث",n.ﺝ="ج",n.ﺞ="ج",n.ﺟ="ج",n.ﺠ="ج",n.ﺡ="ح",n.ﺢ="ح",n.ﺣ="ح",n.ﺤ="ح",n.ﺥ="خ",n.ﺦ="خ",n.ﺧ="خ",n.ﺨ="خ",n.ﺩ="د",n.ﺪ="د",n.ﺫ="ذ",n.ﺬ="ذ",n.ﺭ="ر",n.ﺮ="ر",n.ﺯ="ز",n.ﺰ="ز",n.ﺱ="س",n.ﺲ="س",n.ﺳ="س",n.ﺴ="س",n.ﺵ="ش",n.ﺶ="ش",n.ﺷ="ش",n.ﺸ="ش",n.ﺹ="ص",n.ﺺ="ص",n.ﺻ="ص",n.ﺼ="ص",n.ﺽ="ض",n.ﺾ="ض",n.ﺿ="ض",n.ﻀ="ض",n.ﻁ="ط",n.ﻂ="ط",n.ﻃ="ط",n.ﻄ="ط",n.ﻅ="ظ",n.ﻆ="ظ",n.ﻇ="ظ",n.ﻈ="ظ",n.ﻉ="ع",n.ﻊ="ع",n.ﻋ="ع",n.ﻌ="ع",n.ﻍ="غ",n.ﻎ="غ",n.ﻏ="غ",n.ﻐ="غ",n.ﻑ="ف",n.ﻒ="ف",n.ﻓ="ف",n.ﻔ="ف",n.ﻕ="ق",n.ﻖ="ق",n.ﻗ="ق",n.ﻘ="ق",n.ﻙ="ك",n.ﻚ="ك",n.ﻛ="ك",n.ﻜ="ك",n.ﻝ="ل",n.ﻞ="ل",n.ﻟ="ل",n.ﻠ="ل",n.ﻡ="م",n.ﻢ="م",n.ﻣ="م",n.ﻤ="م",n.ﻥ="ن",n.ﻦ="ن",n.ﻧ="ن",n.ﻨ="ن",n.ﻩ="ه",n.ﻪ="ه",n.ﻫ="ه",n.ﻬ="ه",n.ﻭ="و",n.ﻮ="و",n.ﻯ="ى",n.ﻰ="ى",n.ﻱ="ي",n.ﻲ="ي",n.ﻳ="ي",n.ﻴ="ي",n.ﻵ="لآ",n.ﻶ="لآ",n.ﻷ="لأ",n.ﻸ="لأ",n.ﻹ="لإ",n.ﻺ="لإ",n.ﻻ="لا",n.ﻼ="لا"});function m(n){var J=n.length;if(J<=1||!$(n.charCodeAt(0)))return n;for(var O="",L=J-1;L>=0;L--)O+=n[L];return O}t.mapSpecialUnicodeValues=p,t.reverseIfRtl=m,t.getUnicodeRangeFor=w,t.getNormalizedUnicodes=U,t.getUnicodeForGlyph=e},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.FontRendererFactory=void 0;var r=a(2),i=a(28),p=a(31),e=a(30),N=a(11),w=function(){function U(f,g){return f[g]<<24|f[g+1]<<16|f[g+2]<<8|f[g+3]}function m(f,g){return f[g]<<8|f[g+1]}function n(f){const g=f.length;let v=32768;return g<1240?v=107:g<33900&&(v=1131),v}function J(f,g,v){var s=m(f,g+2)===1?U(f,g+8):U(f,g+16),o=m(f,g+s),u,l,F;if(o===4){m(f,g+s+2);var T=m(f,g+s+6)>>1;for(l=g+s+14,u=[],F=0;F<T;F++,l+=2)u[F]={end:m(f,l)};for(l+=2,F=0;F<T;F++,l+=2)u[F].start=m(f,l);for(F=0;F<T;F++,l+=2)u[F].idDelta=m(f,l);for(F=0;F<T;F++,l+=2){var D=m(f,l);if(D!==0){u[F].ids=[];for(var k=0,S=u[F].end-u[F].start+1;k<S;k++)u[F].ids[k]=m(f,l+D),D+=2}}return u}else if(o===12){U(f,g+s+4);var R=U(f,g+s+12);for(l=g+s+16,u=[],F=0;F<R;F++)u.push({start:U(f,l),end:U(f,l+4),idDelta:U(f,l+8)-U(f,l)}),l+=12;return u}throw new r.FormatError(`unsupported cmap: ${o}`)}function O(f,g,v,s){var o={},u=new i.CFFParser(new N.Stream(f,g,v-g),o,s),l=u.parse();return{glyphs:l.charStrings.objects,subrs:l.topDict.privateDict&&l.topDict.privateDict.subrsIndex&&l.topDict.privateDict.subrsIndex.objects,gsubrs:l.globalSubrIndex&&l.globalSubrIndex.objects,isCFFCIDFont:l.isCIDFont,fdSelect:l.fdSelect,fdArray:l.fdArray}}function L(f,g,v){var s,o;v?(s=4,o=function(k,S){return k[S]<<24|k[S+1]<<16|k[S+2]<<8|k[S+3]}):(s=2,o=function(k,S){return k[S]<<9|k[S+1]<<1});for(var u=[],l=o(g,0),F=s;F<g.length;F+=s){var T=o(g,F);u.push(f.subarray(l,T)),l=T}return u}function M(f,g){for(var v=g.codePointAt(0),s=0,o=0,u=f.length-1;o<u;){var l=o+u+1>>1;v<f[l].start?u=l-1:o=l}return f[o].start<=v&&v<=f[o].end&&(s=f[o].idDelta+(f[o].ids?f[o].ids[v-f[o].start]:v)&65535),{charCode:v,glyphId:s}}function P(f,g,v){function s(ne,ae){g.push({cmd:"moveTo",args:[ne,ae]})}function o(ne,ae){g.push({cmd:"lineTo",args:[ne,ae]})}function u(ne,ae,te,re){g.push({cmd:"quadraticCurveTo",args:[ne,ae,te,re]})}var l=0,F=(f[l]<<24|f[l+1]<<16)>>16,T,D=0,k=0;if(l+=10,F<0)do{T=f[l]<<8|f[l+1];var S=f[l+2]<<8|f[l+3];l+=4;var R,E;T&1?(R=(f[l]<<24|f[l+1]<<16)>>16,E=(f[l+2]<<24|f[l+3]<<16)>>16,l+=4):(R=f[l++],E=f[l++]),T&2?(D=R,k=E):(D=0,k=0);var A=1,C=1,y=0,I=0;T&8?(A=C=(f[l]<<24|f[l+1]<<16)/1073741824,l+=2):T&64?(A=(f[l]<<24|f[l+1]<<16)/1073741824,C=(f[l+2]<<24|f[l+3]<<16)/1073741824,l+=4):T&128&&(A=(f[l]<<24|f[l+1]<<16)/1073741824,y=(f[l+2]<<24|f[l+3]<<16)/1073741824,I=(f[l+4]<<24|f[l+5]<<16)/1073741824,C=(f[l+6]<<24|f[l+7]<<16)/1073741824,l+=8);var H=v.glyphs[S];H&&(g.push({cmd:"save"}),g.push({cmd:"transform",args:[A,y,I,C,D,k]}),P(H,g,v),g.push({cmd:"restore"}))}while(T&32);else{var V=[],B,W;for(B=0;B<F;B++)V.push(f[l]<<8|f[l+1]),l+=2;var G=f[l]<<8|f[l+1];l+=2+G;for(var q=V[V.length-1]+1,z=[];z.length<q;){T=f[l++];var j=1;for(T&8&&(j+=f[l++]);j-- >0;)z.push({flags:T})}for(B=0;B<q;B++){switch(z[B].flags&18){case 0:D+=(f[l]<<24|f[l+1]<<16)>>16,l+=2;break;case 2:D-=f[l++];break;case 18:D+=f[l++];break}z[B].x=D}for(B=0;B<q;B++){switch(z[B].flags&36){case 0:k+=(f[l]<<24|f[l+1]<<16)>>16,l+=2;break;case 4:k-=f[l++];break;case 36:k+=f[l++];break}z[B].y=k}var Y=0;for(l=0;l<F;l++){var K=V[l],Z=z.slice(Y,K+1);if(Z[0].flags&1)Z.push(Z[0]);else if(Z[Z.length-1].flags&1)Z.unshift(Z[Z.length-1]);else{var ee={flags:1,x:(Z[0].x+Z[Z.length-1].x)/2,y:(Z[0].y+Z[Z.length-1].y)/2};Z.unshift(ee),Z.push(ee)}for(s(Z[0].x,Z[0].y),B=1,W=Z.length;B<W;B++)Z[B].flags&1?o(Z[B].x,Z[B].y):Z[B+1].flags&1?(u(Z[B].x,Z[B].y,Z[B+1].x,Z[B+1].y),B++):u(Z[B].x,Z[B].y,(Z[B].x+Z[B+1].x)/2,(Z[B].y+Z[B+1].y)/2);Y=K+1}}}function b(f,g,v,s){var o=[],u=0,l=0,F=0;function T(R,E){g.push({cmd:"moveTo",args:[R,E]})}function D(R,E){g.push({cmd:"lineTo",args:[R,E]})}function k(R,E,A,C,y,I){g.push({cmd:"bezierCurveTo",args:[R,E,A,C,y,I]})}function S(R){for(var E=0;E<R.length;){var A=!1,C=R[E++],y,I,H,V,B,W,G,q,z;switch(C){case 1:F+=o.length>>1,A=!0;break;case 3:F+=o.length>>1,A=!0;break;case 4:l+=o.pop(),T(u,l),A=!0;break;case 5:for(;o.length>0;)u+=o.shift(),l+=o.shift(),D(u,l);break;case 6:for(;o.length>0&&(u+=o.shift(),D(u,l),o.length!==0);)l+=o.shift(),D(u,l);break;case 7:for(;o.length>0&&(l+=o.shift(),D(u,l),o.length!==0);)u+=o.shift(),D(u,l);break;case 8:for(;o.length>0;)y=u+o.shift(),H=l+o.shift(),I=y+o.shift(),V=H+o.shift(),u=I+o.shift(),l=V+o.shift(),k(y,H,I,V,u,l);break;case 10:if(q=o.pop(),z=null,v.isCFFCIDFont){const ne=v.fdSelect.getFDIndex(s);if(ne>=0&&ne<v.fdArray.length){const ae=v.fdArray[ne];let te;ae.privateDict&&ae.privateDict.subrsIndex&&(te=ae.privateDict.subrsIndex.objects),te&&(q+=n(te),z=te[q])}else(0,r.warn)("Invalid fd index for glyph index.")}else z=v.subrs[q+v.subrsBias];z&&S(z);break;case 11:return;case 12:switch(C=R[E++],C){case 34:y=u+o.shift(),I=y+o.shift(),B=l+o.shift(),u=I+o.shift(),k(y,l,I,B,u,B),y=u+o.shift(),I=y+o.shift(),u=I+o.shift(),k(y,B,I,l,u,l);break;case 35:y=u+o.shift(),H=l+o.shift(),I=y+o.shift(),V=H+o.shift(),u=I+o.shift(),l=V+o.shift(),k(y,H,I,V,u,l),y=u+o.shift(),H=l+o.shift(),I=y+o.shift(),V=H+o.shift(),u=I+o.shift(),l=V+o.shift(),k(y,H,I,V,u,l),o.pop();break;case 36:y=u+o.shift(),B=l+o.shift(),I=y+o.shift(),W=B+o.shift(),u=I+o.shift(),k(y,B,I,W,u,W),y=u+o.shift(),I=y+o.shift(),G=W+o.shift(),u=I+o.shift(),k(y,W,I,G,u,l);break;case 37:var j=u,Y=l;y=u+o.shift(),H=l+o.shift(),I=y+o.shift(),V=H+o.shift(),u=I+o.shift(),l=V+o.shift(),k(y,H,I,V,u,l),y=u+o.shift(),H=l+o.shift(),I=y+o.shift(),V=H+o.shift(),u=I,l=V,Math.abs(u-j)>Math.abs(l-Y)?u+=o.shift():l+=o.shift(),k(y,H,I,V,u,l);break;default:throw new r.FormatError(`unknown operator: 12 ${C}`)}break;case 14:if(o.length>=4){var K=o.pop(),Z=o.pop();l=o.pop(),u=o.pop(),g.push({cmd:"save"}),g.push({cmd:"translate",args:[u,l]});var ee=M(v.cmap,String.fromCharCode(v.glyphNameMap[e.StandardEncoding[K]]));b(v.glyphs[ee.glyphId],g,v,ee.glyphId),g.push({cmd:"restore"}),ee=M(v.cmap,String.fromCharCode(v.glyphNameMap[e.StandardEncoding[Z]])),b(v.glyphs[ee.glyphId],g,v,ee.glyphId)}return;case 18:F+=o.length>>1,A=!0;break;case 19:F+=o.length>>1,E+=F+7>>3,A=!0;break;case 20:F+=o.length>>1,E+=F+7>>3,A=!0;break;case 21:l+=o.pop(),u+=o.pop(),T(u,l),A=!0;break;case 22:u+=o.pop(),T(u,l),A=!0;break;case 23:F+=o.length>>1,A=!0;break;case 24:for(;o.length>2;)y=u+o.shift(),H=l+o.shift(),I=y+o.shift(),V=H+o.shift(),u=I+o.shift(),l=V+o.shift(),k(y,H,I,V,u,l);u+=o.shift(),l+=o.shift(),D(u,l);break;case 25:for(;o.length>6;)u+=o.shift(),l+=o.shift(),D(u,l);y=u+o.shift(),H=l+o.shift(),I=y+o.shift(),V=H+o.shift(),u=I+o.shift(),l=V+o.shift(),k(y,H,I,V,u,l);break;case 26:for(o.length%2&&(u+=o.shift());o.length>0;)y=u,H=l+o.shift(),I=y+o.shift(),V=H+o.shift(),u=I,l=V+o.shift(),k(y,H,I,V,u,l);break;case 27:for(o.length%2&&(l+=o.shift());o.length>0;)y=u+o.shift(),H=l,I=y+o.shift(),V=H+o.shift(),u=I+o.shift(),l=V,k(y,H,I,V,u,l);break;case 28:o.push((R[E]<<24|R[E+1]<<16)>>16),E+=2;break;case 29:q=o.pop()+v.gsubrsBias,z=v.gsubrs[q],z&&S(z);break;case 30:for(;o.length>0&&(y=u,H=l+o.shift(),I=y+o.shift(),V=H+o.shift(),u=I+o.shift(),l=V+(o.length===1?o.shift():0),k(y,H,I,V,u,l),o.length!==0);)y=u+o.shift(),H=l,I=y+o.shift(),V=H+o.shift(),l=V+o.shift(),u=I+(o.length===1?o.shift():0),k(y,H,I,V,u,l);break;case 31:for(;o.length>0&&(y=u+o.shift(),H=l,I=y+o.shift(),V=H+o.shift(),l=V+o.shift(),u=I+(o.length===1?o.shift():0),k(y,H,I,V,u,l),o.length!==0);)y=u,H=l+o.shift(),I=y+o.shift(),V=H+o.shift(),u=I+o.shift(),l=V+(o.length===1?o.shift():0),k(y,H,I,V,u,l);break;default:if(C<32)throw new r.FormatError(`unknown operator: ${C}`);C<247?o.push(C-139):C<251?o.push((C-247)*256+R[E++]+108):C<255?o.push(-(C-251)*256-R[E++]-108):(o.push((R[E]<<24|R[E+1]<<16|R[E+2]<<8|R[E+3])/65536),E+=4);break}A&&(o.length=0)}}S(f)}const _=[];class d{constructor(g){this.constructor===d&&(0,r.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=g,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(g){const v=M(this.cmap,g);let s=this.compiledGlyphs[v.glyphId];return s||(s=this.compileGlyph(this.glyphs[v.glyphId],v.glyphId),this.compiledGlyphs[v.glyphId]=s),this.compiledCharCodeToGlyphId[v.charCode]===void 0&&(this.compiledCharCodeToGlyphId[v.charCode]=v.glyphId),s}compileGlyph(g,v){if(!g||g.length===0||g[0]===14)return _;let s=this.fontMatrix;if(this.isCFFCIDFont){const u=this.fdSelect.getFDIndex(v);u>=0&&u<this.fdArray.length?s=this.fdArray[u].getByName("FontMatrix")||r.FONT_IDENTITY_MATRIX:(0,r.warn)("Invalid fd index for glyph index.")}const o=[];return o.push({cmd:"save"}),o.push({cmd:"transform",args:s.slice()}),o.push({cmd:"scale",args:["size","-size"]}),this.compileGlyphImpl(g,o,v),o.push({cmd:"restore"}),o}compileGlyphImpl(){(0,r.unreachable)("Children classes should implement this.")}hasBuiltPath(g){const v=M(this.cmap,g);return this.compiledGlyphs[v.glyphId]!==void 0&&this.compiledCharCodeToGlyphId[v.charCode]!==void 0}}class c extends d{constructor(g,v,s){super(s||[488e-6,0,0,488e-6,0,0]),this.glyphs=g,this.cmap=v}compileGlyphImpl(g,v){P(g,v,this)}}class h extends d{constructor(g,v,s,o){super(s||[.001,0,0,.001,0,0]),this.glyphs=g.glyphs,this.gsubrs=g.gsubrs||[],this.subrs=g.subrs||[],this.cmap=v,this.glyphNameMap=o||(0,p.getGlyphsUnicode)(),this.gsubrsBias=n(this.gsubrs),this.subrsBias=n(this.subrs),this.isCFFCIDFont=g.isCFFCIDFont,this.fdSelect=g.fdSelect,this.fdArray=g.fdArray}compileGlyphImpl(g,v,s){b(g,v,this,s)}}return{create:function(g,v){for(var s=new Uint8Array(g.data),o,u,l,F,T,D,k=m(s,4),S=0,R=12;S<k;S++,R+=16){var E=(0,r.bytesToString)(s.subarray(R,R+4)),A=U(s,R+8),C=U(s,R+12);switch(E){case"cmap":o=J(s,A);break;case"glyf":u=s.subarray(A,A+C);break;case"loca":l=s.subarray(A,A+C);break;case"head":D=m(s,A+18),T=m(s,A+50);break;case"CFF ":F=O(s,A,A+C,v);break}}if(u){var y=D?[1/D,0,0,1/D,0,0]:g.fontMatrix;return new c(L(u,l,T),o,y)}return new h(F,o,g.fontMatrix,g.glyphNameMap)}}}();t.FontRendererFactory=w},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Parser=void 0;var r=a(30),i=a(7),p=a(11),e=a(2),N=!1,w=function(){var m={vmoveto:[4],rlineto:[5],hlineto:[6],vlineto:[7],rrcurveto:[8],flex:[12,35],endchar:[14],rmoveto:[21],hmoveto:[22],vhcurveto:[30],hvcurveto:[31]};function n(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}return n.prototype={convert:function(O,L,M){for(var P=O.length,b=!1,_,d,c,h=0;h<P;h++){var f=O[h];if(f<32){switch(f===12&&(f=(f<<8)+O[++h]),f){case 1:{this.stack=[];break}case 3:{this.stack=[];break}case 4:if(this.flexing){if(this.stack.length<1){b=!0;break}var g=this.stack.pop();this.stack.push(0,g);break}b=this.executeCommand(1,m.vmoveto);break;case 5:b=this.executeCommand(2,m.rlineto);break;case 6:b=this.executeCommand(1,m.hlineto);break;case 7:b=this.executeCommand(1,m.vlineto);break;case 8:b=this.executeCommand(6,m.rrcurveto);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){b=!0;break}if(c=this.stack.pop(),!L[c]){b=!0;break}b=this.convert(L[c],L,M);break;case 11:return b;case 13:if(this.stack.length<2){b=!0;break}_=this.stack.pop(),d=this.stack.pop(),this.lsb=d,this.width=_,this.stack.push(_,d),b=this.executeCommand(2,m.hmoveto);break;case 14:this.output.push(m.endchar[0]);break;case 21:if(this.flexing)break;b=this.executeCommand(2,m.rmoveto);break;case 22:if(this.flexing){this.stack.push(0);break}b=this.executeCommand(1,m.hmoveto);break;case 30:b=this.executeCommand(4,m.vhcurveto);break;case 31:b=this.executeCommand(4,m.hvcurveto);break;case 3072:this.stack=[];break;case 3073:{this.stack=[];break}case 3074:{this.stack=[];break}case 3078:M?(this.seac=this.stack.splice(-4,4),b=this.executeCommand(0,m.endchar)):b=this.executeCommand(4,m.endchar);break;case 3079:if(this.stack.length<4){b=!0;break}this.stack.pop(),_=this.stack.pop();var v=this.stack.pop();d=this.stack.pop(),this.lsb=d,this.width=_,this.stack.push(_,d,v),b=this.executeCommand(3,m.rmoveto);break;case 3084:if(this.stack.length<2){b=!0;break}var s=this.stack.pop(),o=this.stack.pop();this.stack.push(o/s);break;case 3088:if(this.stack.length<2){b=!0;break}c=this.stack.pop();var u=this.stack.pop();if(c===0&&u===3){var l=this.stack.splice(this.stack.length-17,17);this.stack.push(l[2]+l[0],l[3]+l[1],l[4],l[5],l[6],l[7],l[8],l[9],l[10],l[11],l[12],l[13],l[14]),b=this.executeCommand(13,m.flex,!0),this.flexing=!1,this.stack.push(l[15],l[16])}else c===1&&u===0&&(this.flexing=!0);break;case 3089:break;case 3105:this.stack=[];break;default:(0,e.warn)('Unknown type 1 charstring command of "'+f+'"');break}if(b)break;continue}else f<=246?f=f-139:f<=250?f=(f-247)*256+O[++h]+108:f<=254?f=-((f-251)*256)-O[++h]-108:f=(O[++h]&255)<<24|(O[++h]&255)<<16|(O[++h]&255)<<8|(O[++h]&255)<<0;this.stack.push(f)}return b},executeCommand(J,O,L){var M=this.stack.length;if(J>M)return!0;for(var P=M-J,b=P;b<M;b++){var _=this.stack[b];Number.isInteger(_)?this.output.push(28,_>>8&255,_&255):(_=65536*_|0,this.output.push(255,_>>24&255,_>>16&255,_>>8&255,_&255))}return this.output.push.apply(this.output,O),L?this.stack.splice(P,J):this.stack.length=0,!1}},n}(),$=function(){var m=55665,n=4330;function J(b){return b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102}function O(b,_,d){if(d>=b.length)return new Uint8Array(0);var c=_|0,h=52845,f=22719,g,v;for(g=0;g<d;g++)c=(b[g]+c)*h+f&65535;var s=b.length-d,o=new Uint8Array(s);for(g=d,v=0;v<s;g++,v++){var u=b[g];o[v]=u^c>>8,c=(u+c)*h+f&65535}return o}function L(b,_,d){var c=_|0,h=52845,f=22719,g=b.length,v=g>>>1,s=new Uint8Array(v),o,u;for(o=0,u=0;o<g;o++){var l=b[o];if(J(l)){o++;for(var F;o<g&&!J(F=b[o]);)o++;if(o<g){var T=parseInt(String.fromCharCode(l,F),16);s[u++]=T^c>>8,c=(T+c)*h+f&65535}}}return Array.prototype.slice.call(s,d,u)}function M(b){return b===47||b===91||b===93||b===123||b===125||b===40||b===41}function P(b,_,d){if(_){var c=b.getBytes(),h=!(J(c[0])&&J(c[1])&&J(c[2])&&J(c[3]));b=new p.Stream(h?O(c,m,4):L(c,m,4))}this.seacAnalysisEnabled=!!d,this.stream=b,this.nextChar()}return P.prototype={readNumberArray:function(){this.getToken();for(var _=[];;){var d=this.getToken();if(d===null||d==="]"||d==="}")break;_.push(parseFloat(d||0))}return _},readNumber:function(){var _=this.getToken();return parseFloat(_||0)},readInt:function(){var _=this.getToken();return parseInt(_||0,10)|0},readBoolean:function(){var _=this.getToken();return _==="true"?1:0},nextChar:function(){return this.currentChar=this.stream.getByte()},getToken:function(){for(var _=!1,d=this.currentChar;;){if(d===-1)return null;if(_)(d===10||d===13)&&(_=!1);else if(d===37)_=!0;else if(!(0,i.isWhiteSpace)(d))break;d=this.nextChar()}if(M(d))return this.nextChar(),String.fromCharCode(d);var c="";do c+=String.fromCharCode(d),d=this.nextChar();while(d>=0&&!(0,i.isWhiteSpace)(d)&&!M(d));return c},readCharStrings:function(_,d){return d===-1?_:O(_,n,d)},extractFontProgram:function(_){var d=this.stream,c=[],h=[],f=Object.create(null);f.lenIV=4;for(var g={subrs:[],charstrings:[],properties:{privateData:f}},v,s,o,u,l;(v=this.getToken())!==null;)if(v==="/")switch(v=this.getToken(),v){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();v=this.getToken(),!(v===null||v==="end");)if(v==="/"){var F=this.getToken();s=this.readInt(),this.getToken(),o=s>0?d.getBytes(s):new Uint8Array(0),u=g.properties.privateData.lenIV,l=this.readCharStrings(o,u),this.nextChar(),v=this.getToken(),v==="noaccess"&&this.getToken(),h.push({glyph:F,encoded:l})}break;case"Subrs":for(this.readInt(),this.getToken();this.getToken()==="dup";){var T=this.readInt();s=this.readInt(),this.getToken(),o=s>0?d.getBytes(s):new Uint8Array(0),u=g.properties.privateData.lenIV,l=this.readCharStrings(o,u),this.nextChar(),v=this.getToken(),v==="noaccess"&&this.getToken(),c[T]=l}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var D=this.readNumberArray();D.length>0&&D.length%2;break;case"StemSnapH":case"StemSnapV":g.properties.privateData[v]=this.readNumberArray();break;case"StdHW":case"StdVW":g.properties.privateData[v]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":g.properties.privateData[v]=this.readNumber();break;case"ForceBold":g.properties.privateData[v]=this.readBoolean();break}for(var k=0;k<h.length;k++){F=h[k].glyph,l=h[k].encoded;var S=new w,R=S.convert(l,c,this.seacAnalysisEnabled),E=S.output;R&&(E=[14]);const A={glyphName:F,charstring:E,width:S.width,lsb:S.lsb,seac:S.seac};if(F===".notdef"?g.charstrings.unshift(A):g.charstrings.push(A),_.builtInEncoding){const C=_.builtInEncoding.indexOf(F);C>-1&&_.widths[C]===void 0&&C>=_.firstChar&&C<=_.lastChar&&(_.widths[C]=S.width)}}return g},extractFontHeader:function(_){for(var d;(d=this.getToken())!==null;)if(d==="/")switch(d=this.getToken(),d){case"FontMatrix":var c=this.readNumberArray();_.fontMatrix=c;break;case"Encoding":var h=this.getToken(),f;if(!/^\d+$/.test(h))f=(0,r.getEncoding)(h);else{f=[];var g=parseInt(h,10)|0;this.getToken();for(var v=0;v<g;v++){for(d=this.getToken();d!=="dup"&&d!=="def";)if(d=this.getToken(),d===null)return;if(d==="def")break;var s=this.readInt();this.getToken();var o=this.getToken();f[s]=o,this.getToken()}}_.builtInEncoding=f;break;case"FontBBox":var u=this.readNumberArray();_.ascent=Math.max(u[3],u[1]),_.descent=Math.min(u[1],u[3]),_.ascentScaled=!0;break}}},P}();t.Type1Parser=$},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.getTilingPatternIR=U,t.Pattern=void 0;var r=a(2),i=a(22),p=a(4),e=a(7),N={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7},w=function(){function n(){(0,r.unreachable)("should not call Pattern constructor")}return n.prototype={getPattern:function(O){(0,r.unreachable)(`Should not call Pattern.getStyle: ${O}`)}},n.parseShading=function(J,O,L,M,P,b){var _=(0,p.isStream)(J)?J.dict:J,d=_.get("ShadingType");try{switch(d){case N.AXIAL:case N.RADIAL:return new $.RadialAxial(_,O,L,M,b);case N.FREE_FORM_MESH:case N.LATTICE_FORM_MESH:case N.COONS_PATCH_MESH:case N.TENSOR_PATCH_MESH:return new $.Mesh(J,O,L,M,b);default:throw new r.FormatError("Unsupported ShadingType: "+d)}}catch(c){if(c instanceof e.MissingDataException)throw c;return P.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.shadingPattern}),(0,r.warn)(c),new $.Dummy}},n}();t.Pattern=w;var $={};$.SMALL_NUMBER=1e-6,$.RadialAxial=function(){function n(J,O,L,M,P){this.matrix=O,this.coordsArr=J.getArray("Coords"),this.shadingType=J.get("ShadingType"),this.type="Pattern";var b=J.get("ColorSpace","CS");b=i.ColorSpace.parse(b,L,M,P),this.cs=b;const _=J.getArray("BBox");Array.isArray(_)&&_.length===4?this.bbox=r.Util.normalizeRect(_):this.bbox=null;var d=0,c=1;if(J.has("Domain")){var h=J.getArray("Domain");d=h[0],c=h[1]}var f=!1,g=!1;if(J.has("Extend")){var v=J.getArray("Extend");f=v[0],g=v[1]}if(this.shadingType===N.RADIAL&&(!f||!g)){var s=this.coordsArr[0],o=this.coordsArr[1],u=this.coordsArr[2],l=this.coordsArr[3],F=this.coordsArr[4],T=this.coordsArr[5],D=Math.sqrt((s-l)*(s-l)+(o-F)*(o-F));u<=T+D&&T<=u+D&&(0,r.warn)("Unsupported radial gradient.")}this.extendStart=f,this.extendEnd=g;var k=J.get("Function"),S=P.createFromArray(k);const R=10,E=(c-d)/R;var A=this.colorStops=[];if(d>=c||E<=0){(0,r.info)("Bad shading domain.");return}var C=new Float32Array(b.numComps),y=new Float32Array(1),I;for(let B=0;B<=R;B++){y[0]=d+B*E,S(y,0,C,0),I=b.getRgb(C,0);var H=r.Util.makeCssRgb(I[0],I[1],I[2]);A.push([B/R,H])}var V="transparent";J.has("Background")&&(I=b.getRgb(J.get("Background"),0),V=r.Util.makeCssRgb(I[0],I[1],I[2])),f||(A.unshift([0,V]),A[1][0]+=$.SMALL_NUMBER),g||(A[A.length-1][0]-=$.SMALL_NUMBER,A.push([1,V])),this.colorStops=A}return n.prototype={getIR:function(){var O=this.coordsArr,L=this.shadingType,M,P,b,_,d;L===N.AXIAL?(P=[O[0],O[1]],b=[O[2],O[3]],_=null,d=null,M="axial"):L===N.RADIAL?(P=[O[0],O[1]],b=[O[3],O[4]],_=O[2],d=O[5],M="radial"):(0,r.unreachable)(`getPattern type unknown: ${L}`);var c=this.matrix;if(c&&(P=r.Util.applyTransform(P,c),b=r.Util.applyTransform(b,c),L===N.RADIAL)){var h=r.Util.singularValueDecompose2dScale(c);_*=h[0],d*=h[1]}return["RadialAxial",M,this.bbox,this.colorStops,P,b,_,d]}},n}(),$.Mesh=function(){function n(v,s){this.stream=v,this.context=s,this.buffer=0,this.bufferLength=0;var o=s.numComps;this.tmpCompsBuf=new Float32Array(o);var u=s.colorSpace.numComps;this.tmpCsCompsBuf=s.colorFn?new Float32Array(u):this.tmpCompsBuf}n.prototype={get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;var v=this.stream.getByte();return v<0?!1:(this.buffer=v,this.bufferLength=8,!0)},readBits:function(s){var o=this.buffer,u=this.bufferLength;if(s===32){if(u===0)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;o=o<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var l=this.stream.getByte();return this.buffer=l&(1<<u)-1,(o<<8-u|(l&255)>>u)>>>0}if(s===8&&u===0)return this.stream.getByte();for(;u<s;)o=o<<8|this.stream.getByte(),u+=8;return u-=s,this.bufferLength=u,this.buffer=o&(1<<u)-1,o>>u},align:function(){this.buffer=0,this.bufferLength=0},readFlag:function(){return this.readBits(this.context.bitsPerFlag)},readCoordinate:function(){var s=this.context.bitsPerCoordinate,o=this.readBits(s),u=this.readBits(s),l=this.context.decode,F=s<32?1/((1<<s)-1):23283064365386963e-26;return[o*F*(l[1]-l[0])+l[0],u*F*(l[3]-l[2])+l[2]]},readComponents:function(){for(var s=this.context.numComps,o=this.context.bitsPerComponent,u=o<32?1/((1<<o)-1):23283064365386963e-26,l=this.context.decode,F=this.tmpCompsBuf,T=0,D=4;T<s;T++,D+=2){var k=this.readBits(o);F[T]=k*u*(l[D+1]-l[D])+l[D]}var S=this.tmpCsCompsBuf;return this.context.colorFn&&this.context.colorFn(F,0,S,0),this.context.colorSpace.getRgb(S,0)}};function J(v,s){for(var o=v.coords,u=v.colors,l=[],F=0;s.hasData;){var T=s.readFlag(),D=s.readCoordinate(),k=s.readComponents();if(F===0){if(!(0<=T&&T<=2))throw new r.FormatError("Unknown type4 flag");switch(T){case 0:F=3;break;case 1:l.push(l[l.length-2],l[l.length-1]),F=1;break;case 2:l.push(l[l.length-3],l[l.length-1]),F=1;break}}l.push(o.length),o.push(D),u.push(k),F--,s.align()}v.figures.push({type:"triangles",coords:new Int32Array(l),colors:new Int32Array(l)})}function O(v,s,o){for(var u=v.coords,l=v.colors,F=[];s.hasData;){var T=s.readCoordinate(),D=s.readComponents();F.push(u.length),u.push(T),l.push(D)}v.figures.push({type:"lattice",coords:new Int32Array(F),colors:new Int32Array(F),verticesPerRow:o})}var L=3,M=20,P=20,b=function(){function s(u){for(var l=[],F=0;F<=u;F++){var T=F/u,D=1-T;l.push(new Float32Array([D*D*D,3*T*D*D,3*T*T*D,T*T*T]))}return l}var o=[];return function(l){return o[l]||(o[l]=s(l)),o[l]}}();function _(v,s){var o=v.figures[s];(0,r.assert)(o.type==="patch","Unexpected patch mesh figure");var u=v.coords,l=v.colors,F=o.coords,T=o.colors,D=Math.min(u[F[0]][0],u[F[3]][0],u[F[12]][0],u[F[15]][0]),k=Math.min(u[F[0]][1],u[F[3]][1],u[F[12]][1],u[F[15]][1]),S=Math.max(u[F[0]][0],u[F[3]][0],u[F[12]][0],u[F[15]][0]),R=Math.max(u[F[0]][1],u[F[3]][1],u[F[12]][1],u[F[15]][1]),E=Math.ceil((S-D)*P/(v.bounds[2]-v.bounds[0]));E=Math.max(L,Math.min(M,E));var A=Math.ceil((R-k)*P/(v.bounds[3]-v.bounds[1]));A=Math.max(L,Math.min(M,A));for(var C=E+1,y=new Int32Array((A+1)*C),I=new Int32Array((A+1)*C),H=0,V=new Uint8Array(3),B=new Uint8Array(3),W=l[T[0]],G=l[T[1]],q=l[T[2]],z=l[T[3]],j=b(A),Y=b(E),K=0;K<=A;K++){V[0]=(W[0]*(A-K)+q[0]*K)/A|0,V[1]=(W[1]*(A-K)+q[1]*K)/A|0,V[2]=(W[2]*(A-K)+q[2]*K)/A|0,B[0]=(G[0]*(A-K)+z[0]*K)/A|0,B[1]=(G[1]*(A-K)+z[1]*K)/A|0,B[2]=(G[2]*(A-K)+z[2]*K)/A|0;for(var Z=0;Z<=E;Z++,H++)if(!((K===0||K===A)&&(Z===0||Z===E))){for(var ee=0,ne=0,ae=0,te=0;te<=3;te++)for(var re=0;re<=3;re++,ae++){var ie=j[K][te]*Y[Z][re];ee+=u[F[ae]][0]*ie,ne+=u[F[ae]][1]*ie}y[H]=u.length,u.push([ee,ne]),I[H]=l.length;var de=new Uint8Array(3);de[0]=(V[0]*(E-Z)+B[0]*Z)/E|0,de[1]=(V[1]*(E-Z)+B[1]*Z)/E|0,de[2]=(V[2]*(E-Z)+B[2]*Z)/E|0,l.push(de)}}y[0]=F[0],I[0]=T[0],y[E]=F[3],I[E]=T[1],y[C*A]=F[12],I[C*A]=T[2],y[C*A+E]=F[15],I[C*A+E]=T[3],v.figures[s]={type:"lattice",coords:y,colors:I,verticesPerRow:C}}function d(v,s){for(var o=v.coords,u=v.colors,l=new Int32Array(16),F=new Int32Array(4);s.hasData;){var T=s.readFlag();if(!(0<=T&&T<=3))throw new r.FormatError("Unknown type6 flag");var D,k,S=o.length;for(D=0,k=T!==0?8:12;D<k;D++)o.push(s.readCoordinate());var R=u.length;for(D=0,k=T!==0?2:4;D<k;D++)u.push(s.readComponents());var E,A,C,y;switch(T){case 0:l[12]=S+3,l[13]=S+4,l[14]=S+5,l[15]=S+6,l[8]=S+2,l[11]=S+7,l[4]=S+1,l[7]=S+8,l[0]=S,l[1]=S+11,l[2]=S+10,l[3]=S+9,F[2]=R+1,F[3]=R+2,F[0]=R,F[1]=R+3;break;case 1:E=l[12],A=l[13],C=l[14],y=l[15],l[12]=y,l[13]=S+0,l[14]=S+1,l[15]=S+2,l[8]=C,l[11]=S+3,l[4]=A,l[7]=S+4,l[0]=E,l[1]=S+7,l[2]=S+6,l[3]=S+5,E=F[2],A=F[3],F[2]=A,F[3]=R,F[0]=E,F[1]=R+1;break;case 2:E=l[15],A=l[11],l[12]=l[3],l[13]=S+0,l[14]=S+1,l[15]=S+2,l[8]=l[7],l[11]=S+3,l[4]=A,l[7]=S+4,l[0]=E,l[1]=S+7,l[2]=S+6,l[3]=S+5,E=F[3],F[2]=F[1],F[3]=R,F[0]=E,F[1]=R+1;break;case 3:l[12]=l[0],l[13]=S+0,l[14]=S+1,l[15]=S+2,l[8]=l[1],l[11]=S+3,l[4]=l[2],l[7]=S+4,l[0]=l[3],l[1]=S+7,l[2]=S+6,l[3]=S+5,F[2]=F[0],F[3]=R,F[0]=F[1],F[1]=R+1;break}l[5]=o.length,o.push([(-4*o[l[0]][0]-o[l[15]][0]+6*(o[l[4]][0]+o[l[1]][0])-2*(o[l[12]][0]+o[l[3]][0])+3*(o[l[13]][0]+o[l[7]][0]))/9,(-4*o[l[0]][1]-o[l[15]][1]+6*(o[l[4]][1]+o[l[1]][1])-2*(o[l[12]][1]+o[l[3]][1])+3*(o[l[13]][1]+o[l[7]][1]))/9]),l[6]=o.length,o.push([(-4*o[l[3]][0]-o[l[12]][0]+6*(o[l[2]][0]+o[l[7]][0])-2*(o[l[0]][0]+o[l[15]][0])+3*(o[l[4]][0]+o[l[14]][0]))/9,(-4*o[l[3]][1]-o[l[12]][1]+6*(o[l[2]][1]+o[l[7]][1])-2*(o[l[0]][1]+o[l[15]][1])+3*(o[l[4]][1]+o[l[14]][1]))/9]),l[9]=o.length,o.push([(-4*o[l[12]][0]-o[l[3]][0]+6*(o[l[8]][0]+o[l[13]][0])-2*(o[l[0]][0]+o[l[15]][0])+3*(o[l[11]][0]+o[l[1]][0]))/9,(-4*o[l[12]][1]-o[l[3]][1]+6*(o[l[8]][1]+o[l[13]][1])-2*(o[l[0]][1]+o[l[15]][1])+3*(o[l[11]][1]+o[l[1]][1]))/9]),l[10]=o.length,o.push([(-4*o[l[15]][0]-o[l[0]][0]+6*(o[l[11]][0]+o[l[14]][0])-2*(o[l[12]][0]+o[l[3]][0])+3*(o[l[2]][0]+o[l[8]][0]))/9,(-4*o[l[15]][1]-o[l[0]][1]+6*(o[l[11]][1]+o[l[14]][1])-2*(o[l[12]][1]+o[l[3]][1])+3*(o[l[2]][1]+o[l[8]][1]))/9]),v.figures.push({type:"patch",coords:new Int32Array(l),colors:new Int32Array(F)})}}function c(v,s){for(var o=v.coords,u=v.colors,l=new Int32Array(16),F=new Int32Array(4);s.hasData;){var T=s.readFlag();if(!(0<=T&&T<=3))throw new r.FormatError("Unknown type7 flag");var D,k,S=o.length;for(D=0,k=T!==0?12:16;D<k;D++)o.push(s.readCoordinate());var R=u.length;for(D=0,k=T!==0?2:4;D<k;D++)u.push(s.readComponents());var E,A,C,y;switch(T){case 0:l[12]=S+3,l[13]=S+4,l[14]=S+5,l[15]=S+6,l[8]=S+2,l[9]=S+13,l[10]=S+14,l[11]=S+7,l[4]=S+1,l[5]=S+12,l[6]=S+15,l[7]=S+8,l[0]=S,l[1]=S+11,l[2]=S+10,l[3]=S+9,F[2]=R+1,F[3]=R+2,F[0]=R,F[1]=R+3;break;case 1:E=l[12],A=l[13],C=l[14],y=l[15],l[12]=y,l[13]=S+0,l[14]=S+1,l[15]=S+2,l[8]=C,l[9]=S+9,l[10]=S+10,l[11]=S+3,l[4]=A,l[5]=S+8,l[6]=S+11,l[7]=S+4,l[0]=E,l[1]=S+7,l[2]=S+6,l[3]=S+5,E=F[2],A=F[3],F[2]=A,F[3]=R,F[0]=E,F[1]=R+1;break;case 2:E=l[15],A=l[11],l[12]=l[3],l[13]=S+0,l[14]=S+1,l[15]=S+2,l[8]=l[7],l[9]=S+9,l[10]=S+10,l[11]=S+3,l[4]=A,l[5]=S+8,l[6]=S+11,l[7]=S+4,l[0]=E,l[1]=S+7,l[2]=S+6,l[3]=S+5,E=F[3],F[2]=F[1],F[3]=R,F[0]=E,F[1]=R+1;break;case 3:l[12]=l[0],l[13]=S+0,l[14]=S+1,l[15]=S+2,l[8]=l[1],l[9]=S+9,l[10]=S+10,l[11]=S+3,l[4]=l[2],l[5]=S+8,l[6]=S+11,l[7]=S+4,l[0]=l[3],l[1]=S+7,l[2]=S+6,l[3]=S+5,F[2]=F[0],F[3]=R,F[0]=F[1],F[1]=R+1;break}v.figures.push({type:"patch",coords:new Int32Array(l),colors:new Int32Array(F)})}}function h(v){for(var s=v.coords[0][0],o=v.coords[0][1],u=s,l=o,F=1,T=v.coords.length;F<T;F++){var D=v.coords[F][0],k=v.coords[F][1];s=s>D?D:s,o=o>k?k:o,u=u<D?D:u,l=l<k?k:l}v.bounds=[s,o,u,l]}function f(v){var s,o,u,l,F=v.coords,T=new Float32Array(F.length*2);for(s=0,u=0,o=F.length;s<o;s++){var D=F[s];T[u++]=D[0],T[u++]=D[1]}v.coords=T;var k=v.colors,S=new Uint8Array(k.length*3);for(s=0,u=0,o=k.length;s<o;s++){var R=k[s];S[u++]=R[0],S[u++]=R[1],S[u++]=R[2]}v.colors=S;var E=v.figures;for(s=0,o=E.length;s<o;s++){var A=E[s],C=A.coords,y=A.colors;for(u=0,l=C.length;u<l;u++)C[u]*=2,y[u]*=3}}function g(v,s,o,u,l){if(!(0,p.isStream)(v))throw new r.FormatError("Mesh data is not a stream");var F=v.dict;this.matrix=s,this.shadingType=F.get("ShadingType"),this.type="Pattern";const T=F.getArray("BBox");Array.isArray(T)&&T.length===4?this.bbox=r.Util.normalizeRect(T):this.bbox=null;var D=F.get("ColorSpace","CS");D=i.ColorSpace.parse(D,o,u,l),this.cs=D,this.background=F.has("Background")?D.getRgb(F.get("Background"),0):null;var k=F.get("Function"),S=k?l.createFromArray(k):null;this.coords=[],this.colors=[],this.figures=[];var R={bitsPerCoordinate:F.get("BitsPerCoordinate"),bitsPerComponent:F.get("BitsPerComponent"),bitsPerFlag:F.get("BitsPerFlag"),decode:F.getArray("Decode"),colorFn:S,colorSpace:D,numComps:S?1:D.numComps},E=new n(v,R),A=!1;switch(this.shadingType){case N.FREE_FORM_MESH:J(this,E);break;case N.LATTICE_FORM_MESH:var C=F.get("VerticesPerRow")|0;if(C<2)throw new r.FormatError("Invalid VerticesPerRow");O(this,E,C);break;case N.COONS_PATCH_MESH:d(this,E),A=!0;break;case N.TENSOR_PATCH_MESH:c(this,E),A=!0;break;default:(0,r.unreachable)("Unsupported mesh type.");break}if(A){h(this);for(var y=0,I=this.figures.length;y<I;y++)_(this,y)}h(this),f(this)}return g.prototype={getIR:function(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.matrix,this.bbox,this.background]}},g}(),$.Dummy=function(){function n(){this.type="Pattern"}return n.prototype={getIR:function(){return["Dummy"]}},n}();function U(m,n,J){const O=n.getArray("Matrix"),L=r.Util.normalizeRect(n.getArray("BBox")),M=n.get("XStep"),P=n.get("YStep"),b=n.get("PaintType"),_=n.get("TilingType");if(L[2]-L[0]===0||L[3]-L[1]===0)throw new r.FormatError(`Invalid getTilingPatternIR /BBox array: [${L}].`);return["TilingPattern",J,m,O,L,M,P,b,_]}},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.bidi=O;var r=a(2),i=["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"],p=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function e(L){return(L&1)!==0}function N(L){return(L&1)===0}function w(L,M,P){for(var b=M,_=L.length;b<_;++b)if(L[b]!==P)return b;return b}function $(L,M,P,b){for(var _=M;_<P;++_)L[_]=b}function U(L,M,P){for(var b=M,_=P-1;b<_;++b,--_){var d=L[b];L[b]=L[_],L[_]=d}}function m(L,M,P=!1){let b="ltr";return P?b="ttb":M||(b="rtl"),{str:L,dir:b}}var n=[],J=[];function O(L,M,P){var b=!0,_=L.length;if(_===0||P)return m(L,b,P);n.length=_,J.length=_;var d=0,c,h;for(c=0;c<_;++c){n[c]=L.charAt(c);var f=L.charCodeAt(c),g="L";f<=255?g=i[f]:1424<=f&&f<=1524?g="R":1536<=f&&f<=1791?(g=p[f&255],g||(0,r.warn)("Bidi: invalid Unicode character "+f.toString(16))):1792<=f&&f<=2220&&(g="AL"),(g==="R"||g==="AL"||g==="AN")&&d++,J[c]=g}if(d===0)return b=!0,m(L,b);M===-1&&(d/_<.3?(b=!0,M=0):(b=!1,M=1));var v=[];for(c=0;c<_;++c)v[c]=M;var s=e(M)?"R":"L",o=s,u=o,l=o;for(c=0;c<_;++c)J[c]==="NSM"?J[c]=l:l=J[c];l=o;var F;for(c=0;c<_;++c)F=J[c],F==="EN"?J[c]=l==="AL"?"AN":"EN":(F==="R"||F==="L"||F==="AL")&&(l=F);for(c=0;c<_;++c)F=J[c],F==="AL"&&(J[c]="R");for(c=1;c<_-1;++c)J[c]==="ES"&&J[c-1]==="EN"&&J[c+1]==="EN"&&(J[c]="EN"),J[c]==="CS"&&(J[c-1]==="EN"||J[c-1]==="AN")&&J[c+1]===J[c-1]&&(J[c]=J[c-1]);for(c=0;c<_;++c)if(J[c]==="EN"){var T;for(T=c-1;T>=0&&J[T]==="ET";--T)J[T]="EN";for(T=c+1;T<_&&J[T]==="ET";++T)J[T]="EN"}for(c=0;c<_;++c)F=J[c],(F==="WS"||F==="ES"||F==="ET"||F==="CS")&&(J[c]="ON");for(l=o,c=0;c<_;++c)F=J[c],F==="EN"?J[c]=l==="L"?"L":"EN":(F==="R"||F==="L")&&(l=F);for(c=0;c<_;++c)if(J[c]==="ON"){var D=w(J,c+1,"ON"),k=o;c>0&&(k=J[c-1]);var S=u;D+1<_&&(S=J[D+1]),k!=="L"&&(k="R"),S!=="L"&&(S="R"),k===S&&$(J,c,D,k),c=D-1}for(c=0;c<_;++c)J[c]==="ON"&&(J[c]=s);for(c=0;c<_;++c)F=J[c],N(v[c])?F==="R"?v[c]+=1:(F==="AN"||F==="EN")&&(v[c]+=2):(F==="L"||F==="AN"||F==="EN")&&(v[c]+=1);var R=-1,E=99,A;for(c=0,h=v.length;c<h;++c)A=v[c],R<A&&(R=A),E>A&&e(A)&&(E=A);for(A=R;A>=E;--A){var C=-1;for(c=0,h=v.length;c<h;++c)v[c]<A?C>=0&&(U(n,C,c),C=-1):C<0&&(C=c);C>=0&&U(n,C,v.length)}for(c=0,h=n.length;c<h;++c){var y=n[c];(y==="<"||y===">")&&(n[c]="")}return m(n.join(""),b)}},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.getMetrics=void 0;var r=a(7),i=(0,r.getLookupTableFactory)(function(p){p.Courier=600,p["Courier-Bold"]=600,p["Courier-BoldOblique"]=600,p["Courier-Oblique"]=600,p.Helvetica=(0,r.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}),p["Helvetica-Bold"]=(0,r.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}),p["Helvetica-BoldOblique"]=(0,r.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}),p["Helvetica-Oblique"]=(0,r.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}),p.Symbol=(0,r.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}),p["Times-Roman"]=(0,r.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}),p["Times-Bold"]=(0,r.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}),p["Times-BoldItalic"]=(0,r.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}),p["Times-Italic"]=(0,r.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}),p.ZapfDingbats=(0,r.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})});t.getMetrics=i},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.isPDFFunction=$,t.PostScriptCompiler=t.PostScriptEvaluator=t.PDFFunctionFactory=void 0;var r=a(2),i=a(4),p=a(40);class e{constructor({xref:O,isEvalSupported:L=!0}){this.xref=O,this.isEvalSupported=L!==!1}create(O){return w.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:O})}createFromArray(O){return w.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:O})}}t.PDFFunctionFactory=e;function N(J){if(!Array.isArray(J))return null;const O=J.length;for(let L=0;L<O;L++)if(typeof J[L]!="number"){const M=new Array(O);for(let P=0;P<O;P++)M[P]=+J[P];return M}return J}var w=function(){return{getSampleArray(b,_,d,c){var h,f,g=1;for(h=0,f=b.length;h<f;h++)g*=b[h];g*=_;var v=new Array(g),s=0,o=0,u=1/(2**d-1),l=c.getBytes((g*d+7)/8),F=0;for(h=0;h<g;h++){for(;s<d;)o<<=8,o|=l[F++],s+=8;s-=d,v[h]=(o>>s)*u,o&=(1<<s)-1}return v},getIR({xref:b,isEvalSupported:_,fn:d}){var c=d.dict;c||(c=d);var h=[this.constructSampled,null,this.constructInterpolated,this.constructStiched,this.constructPostScript],f=c.get("FunctionType"),g=h[f];if(!g)throw new r.FormatError("Unknown type of function");return g.call(this,{xref:b,isEvalSupported:_,fn:d,dict:c})},fromIR({xref:b,isEvalSupported:_,IR:d}){var c=d[0];switch(c){case 0:return this.constructSampledFromIR({xref:b,isEvalSupported:_,IR:d});case 2:return this.constructInterpolatedFromIR({xref:b,isEvalSupported:_,IR:d});case 3:return this.constructStichedFromIR({xref:b,isEvalSupported:_,IR:d});default:return this.constructPostScriptFromIR({xref:b,isEvalSupported:_,IR:d})}},parse({xref:b,isEvalSupported:_,fn:d}){const c=this.getIR({xref:b,isEvalSupported:_,fn:d});return this.fromIR({xref:b,isEvalSupported:_,IR:c})},parseArray({xref:b,isEvalSupported:_,fnObj:d}){if(!Array.isArray(d))return this.parse({xref:b,isEvalSupported:_,fn:d});for(var c=[],h=0,f=d.length;h<f;h++)c.push(this.parse({xref:b,isEvalSupported:_,fn:b.fetchIfRef(d[h])}));return function(g,v,s,o){for(var u=0,l=c.length;u<l;u++)c[u](g,v,s,o+u)}},constructSampled({xref:b,isEvalSupported:_,fn:d,dict:c}){function h(S){for(var R=S.length,E=[],A=0,C=0;C<R;C+=2)E[A]=[S[C],S[C+1]],++A;return E}var f=N(c.getArray("Domain")),g=N(c.getArray("Range"));if(!f||!g)throw new r.FormatError("No domain or range");var v=f.length/2,s=g.length/2;f=h(f),g=h(g);var o=N(c.getArray("Size")),u=c.get("BitsPerSample"),l=c.get("Order")||1;l!==1&&(0,r.info)("No support for cubic spline interpolation: "+l);var F=N(c.getArray("Encode"));if(F)F=h(F);else{F=[];for(var T=0;T<v;++T)F.push([0,o[T]-1])}var D=N(c.getArray("Decode"));D?D=h(D):D=g;var k=this.getSampleArray(o,s,u,d);return[0,v,f,F,D,k,o,s,2**u-1,g]},constructSampledFromIR({xref:b,isEvalSupported:_,IR:d}){function c(h,f,g,v,s){return v+(h-f)*((s-v)/(g-f))}return function(f,g,v,s){var o=d[1],u=d[2],l=d[3],F=d[4],T=d[5],D=d[6],k=d[7],S=d[9],R=1<<o,E=new Float64Array(R),A=new Uint32Array(R),C,y;for(y=0;y<R;y++)E[y]=1;var I=k,H=1;for(C=0;C<o;++C){var V=u[C][0],B=u[C][1],W=Math.min(Math.max(f[g+C],V),B),G=c(W,V,B,l[C][0],l[C][1]),q=D[C];G=Math.min(Math.max(G,0),q-1);var z=G<q-1?Math.floor(G):G-1,j=z+1-G,Y=G-z,K=z*I,Z=K+I;for(y=0;y<R;y++)y&H?(E[y]*=Y,A[y]+=Z):(E[y]*=j,A[y]+=K);I*=q,H<<=1}for(y=0;y<k;++y){var ee=0;for(C=0;C<R;C++)ee+=T[A[C]+y]*E[C];ee=c(ee,0,1,F[y][0],F[y][1]),v[s+y]=Math.min(Math.max(ee,S[y][0]),S[y][1])}}},constructInterpolated({xref:b,isEvalSupported:_,fn:d,dict:c}){for(var h=N(c.getArray("C0"))||[0],f=N(c.getArray("C1"))||[1],g=c.get("N"),v=h.length,s=[],o=0;o<v;++o)s.push(f[o]-h[o]);return[2,h,s,g]},constructInterpolatedFromIR({xref:b,isEvalSupported:_,IR:d}){var c=d[1],h=d[2],f=d[3],g=h.length;return function(s,o,u,l){for(var F=f===1?s[o]:s[o]**f,T=0;T<g;++T)u[l+T]=c[T]+F*h[T]}},constructStiched({xref:b,isEvalSupported:_,fn:d,dict:c}){var h=N(c.getArray("Domain"));if(!h)throw new r.FormatError("No domain");var f=h.length/2;if(f!==1)throw new r.FormatError("Bad domain for stiched function");for(var g=c.get("Functions"),v=[],s=0,o=g.length;s<o;++s)v.push(this.parse({xref:b,isEvalSupported:_,fn:b.fetchIfRef(g[s])}));var u=N(c.getArray("Bounds")),l=N(c.getArray("Encode"));return[3,h,u,l,v]},constructStichedFromIR({xref:b,isEvalSupported:_,IR:d}){var c=d[1],h=d[2],f=d[3],g=d[4],v=new Float32Array(1);return function(o,u,l,F){for(var T=function(I,H,V){return I>V?I=V:I<H&&(I=H),I},D=T(o[u],c[0],c[1]),k=0,S=h.length;k<S&&!(D<h[k]);++k);var R=c[0];k>0&&(R=h[k-1]);var E=c[1];k<h.length&&(E=h[k]);var A=f[2*k],C=f[2*k+1];v[0]=R===E?A:A+(D-R)*(C-A)/(E-R),g[k](v,0,l,F)}},constructPostScript({xref:b,isEvalSupported:_,fn:d,dict:c}){var h=N(c.getArray("Domain")),f=N(c.getArray("Range"));if(!h)throw new r.FormatError("No domain.");if(!f)throw new r.FormatError("No range.");var g=new p.PostScriptLexer(d),v=new p.PostScriptParser(g),s=v.parse();return[4,h,f,s]},constructPostScriptFromIR({xref:b,isEvalSupported:_,IR:d}){var c=d[1],h=d[2],f=d[3];if(_&&r.IsEvalSupportedCached.value){const T=new n().compile(f,c,h);if(T)return new Function("src","srcOffset","dest","destOffset",T)}(0,r.info)("Unable to compile PS function");var g=h.length>>1,v=c.length>>1,s=new m(f),o=Object.create(null),u=2048*4,l=u,F=new Float32Array(v);return function(D,k,S,R){var E,A,C="",y=F;for(E=0;E<v;E++)A=D[k+E],y[E]=A,C+=A+"_";var I=o[C];if(I!==void 0){S.set(I,R);return}var H=new Float32Array(g),V=s.execute(y),B=V.length-g;for(E=0;E<g;E++){A=V[B+E];var W=h[E*2];A<W?A=W:(W=h[E*2+1],A>W&&(A=W)),H[E]=A}l>0&&(l--,o[C]=H),S.set(H,R)}}}}();function $(J){var O;if(typeof J!="object")return!1;if((0,i.isDict)(J))O=J;else if((0,i.isStream)(J))O=J.dict;else return!1;return O.has("FunctionType")}var U=function(){var O=100;function L(M){this.stack=M?Array.prototype.slice.call(M,0):[]}return L.prototype={push:function(P){if(this.stack.length>=O)throw new Error("PostScript function stack overflow.");this.stack.push(P)},pop:function(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()},copy:function(P){if(this.stack.length+P>=O)throw new Error("PostScript function stack overflow.");for(var b=this.stack,_=b.length-P,d=P-1;d>=0;d--,_++)b.push(b[_])},index:function(P){this.push(this.stack[this.stack.length-P-1])},roll:function(P,b){var _=this.stack,d=_.length-P,c=_.length-1,h=d+(b-Math.floor(b/P)*P),f,g,v;for(f=d,g=c;f<g;f++,g--)v=_[f],_[f]=_[g],_[g]=v;for(f=d,g=h-1;f<g;f++,g--)v=_[f],_[f]=_[g],_[g]=v;for(f=h,g=c;f<g;f++,g--)v=_[f],_[f]=_[g],_[g]=v}},L}(),m=function(){function O(L){this.operators=L}return O.prototype={execute:function(M){for(var P=new U(M),b=0,_=this.operators,d=_.length,c,h,f;b<d;){if(c=_[b++],typeof c=="number"){P.push(c);continue}switch(c){case"jz":f=P.pop(),h=P.pop(),h||(b=f);break;case"j":h=P.pop(),b=h;break;case"abs":h=P.pop(),P.push(Math.abs(h));break;case"add":f=P.pop(),h=P.pop(),P.push(h+f);break;case"and":f=P.pop(),h=P.pop(),(0,r.isBool)(h)&&(0,r.isBool)(f)?P.push(h&&f):P.push(h&f);break;case"atan":h=P.pop(),P.push(Math.atan(h));break;case"bitshift":f=P.pop(),h=P.pop(),h>0?P.push(h<<f):P.push(h>>f);break;case"ceiling":h=P.pop(),P.push(Math.ceil(h));break;case"copy":h=P.pop(),P.copy(h);break;case"cos":h=P.pop(),P.push(Math.cos(h));break;case"cvi":h=P.pop()|0,P.push(h);break;case"cvr":break;case"div":f=P.pop(),h=P.pop(),P.push(h/f);break;case"dup":P.copy(1);break;case"eq":f=P.pop(),h=P.pop(),P.push(h===f);break;case"exch":P.roll(2,1);break;case"exp":f=P.pop(),h=P.pop(),P.push(h**f);break;case"false":P.push(!1);break;case"floor":h=P.pop(),P.push(Math.floor(h));break;case"ge":f=P.pop(),h=P.pop(),P.push(h>=f);break;case"gt":f=P.pop(),h=P.pop(),P.push(h>f);break;case"idiv":f=P.pop(),h=P.pop(),P.push(h/f|0);break;case"index":h=P.pop(),P.index(h);break;case"le":f=P.pop(),h=P.pop(),P.push(h<=f);break;case"ln":h=P.pop(),P.push(Math.log(h));break;case"log":h=P.pop(),P.push(Math.log(h)/Math.LN10);break;case"lt":f=P.pop(),h=P.pop(),P.push(h<f);break;case"mod":f=P.pop(),h=P.pop(),P.push(h%f);break;case"mul":f=P.pop(),h=P.pop(),P.push(h*f);break;case"ne":f=P.pop(),h=P.pop(),P.push(h!==f);break;case"neg":h=P.pop(),P.push(-h);break;case"not":h=P.pop(),(0,r.isBool)(h)?P.push(!h):P.push(~h);break;case"or":f=P.pop(),h=P.pop(),(0,r.isBool)(h)&&(0,r.isBool)(f)?P.push(h||f):P.push(h|f);break;case"pop":P.pop();break;case"roll":f=P.pop(),h=P.pop(),P.roll(h,f);break;case"round":h=P.pop(),P.push(Math.round(h));break;case"sin":h=P.pop(),P.push(Math.sin(h));break;case"sqrt":h=P.pop(),P.push(Math.sqrt(h));break;case"sub":f=P.pop(),h=P.pop(),P.push(h-f);break;case"true":P.push(!0);break;case"truncate":h=P.pop(),h=h<0?Math.ceil(h):Math.floor(h),P.push(h);break;case"xor":f=P.pop(),h=P.pop(),(0,r.isBool)(h)&&(0,r.isBool)(f)?P.push(h!==f):P.push(h^f);break;default:throw new r.FormatError(`Unknown operator ${c}`)}}return P.stack}},O}();t.PostScriptEvaluator=m;var n=function(){function O(o){this.type=o}O.prototype.visit=function(o){(0,r.unreachable)("abstract method")};function L(o,u,l){O.call(this,"args"),this.index=o,this.min=u,this.max=l}L.prototype=Object.create(O.prototype),L.prototype.visit=function(o){o.visitArgument(this)};function M(o){O.call(this,"literal"),this.number=o,this.min=o,this.max=o}M.prototype=Object.create(O.prototype),M.prototype.visit=function(o){o.visitLiteral(this)};function P(o,u,l,F,T){O.call(this,"binary"),this.op=o,this.arg1=u,this.arg2=l,this.min=F,this.max=T}P.prototype=Object.create(O.prototype),P.prototype.visit=function(o){o.visitBinaryOperation(this)};function b(o,u){O.call(this,"max"),this.arg=o,this.min=o.min,this.max=u}b.prototype=Object.create(O.prototype),b.prototype.visit=function(o){o.visitMin(this)};function _(o,u,l){O.call(this,"var"),this.index=o,this.min=u,this.max=l}_.prototype=Object.create(O.prototype),_.prototype.visit=function(o){o.visitVariable(this)};function d(o,u){O.call(this,"definition"),this.variable=o,this.arg=u}d.prototype=Object.create(O.prototype),d.prototype.visit=function(o){o.visitVariableDefinition(this)};function c(){this.parts=[]}c.prototype={visitArgument(o){this.parts.push("Math.max(",o.min,", Math.min(",o.max,", src[srcOffset + ",o.index,"]))")},visitVariable(o){this.parts.push("v",o.index)},visitLiteral(o){this.parts.push(o.number)},visitBinaryOperation(o){this.parts.push("("),o.arg1.visit(this),this.parts.push(" ",o.op," "),o.arg2.visit(this),this.parts.push(")")},visitVariableDefinition(o){this.parts.push("var "),o.variable.visit(this),this.parts.push(" = "),o.arg.visit(this),this.parts.push(";")},visitMin(o){this.parts.push("Math.min("),o.arg.visit(this),this.parts.push(", ",o.max,")")},toString(){return this.parts.join("")}};function h(o,u){return u.type==="literal"&&u.number===0?o:o.type==="literal"&&o.number===0?u:u.type==="literal"&&o.type==="literal"?new M(o.number+u.number):new P("+",o,u,o.min+u.min,o.max+u.max)}function f(o,u){if(u.type==="literal"){if(u.number===0)return new M(0);if(u.number===1)return o;if(o.type==="literal")return new M(o.number*u.number)}if(o.type==="literal"){if(o.number===0)return new M(0);if(o.number===1)return u}var l=Math.min(o.min*u.min,o.min*u.max,o.max*u.min,o.max*u.max),F=Math.max(o.min*u.min,o.min*u.max,o.max*u.min,o.max*u.max);return new P("*",o,u,l,F)}function g(o,u){if(u.type==="literal"){if(u.number===0)return o;if(o.type==="literal")return new M(o.number-u.number)}return u.type==="binary"&&u.op==="-"&&o.type==="literal"&&o.number===1&&u.arg1.type==="literal"&&u.arg1.number===1?u.arg2:new P("-",o,u,o.min-u.max,o.max-u.min)}function v(o,u){return o.min>=u?new M(u):o.max<=u?o:new b(o,u)}function s(){}return s.prototype={compile:function(u,l,F){var T=[],D,k,S=[],R=l.length>>1,E=F.length>>1,A=0,C,y,I,H,V,B,W,G;for(D=0;D<R;D++)T.push(new L(D,l[D*2],l[D*2+1]));for(D=0,k=u.length;D<k;D++){if(G=u[D],typeof G=="number"){T.push(new M(G));continue}switch(G){case"add":if(T.length<2)return null;H=T.pop(),I=T.pop(),T.push(h(I,H));break;case"cvr":if(T.length<1)return null;break;case"mul":if(T.length<2)return null;H=T.pop(),I=T.pop(),T.push(f(I,H));break;case"sub":if(T.length<2)return null;H=T.pop(),I=T.pop(),T.push(g(I,H));break;case"exch":if(T.length<2)return null;V=T.pop(),B=T.pop(),T.push(V,B);break;case"pop":if(T.length<1)return null;T.pop();break;case"index":if(T.length<1||(I=T.pop(),I.type!=="literal")||(C=I.number,C<0||!Number.isInteger(C)||T.length<C))return null;if(V=T[T.length-C-1],V.type==="literal"||V.type==="var"){T.push(V);break}W=new _(A++,V.min,V.max),T[T.length-C-1]=W,T.push(W),S.push(new d(W,V));break;case"dup":if(T.length<1)return null;if(typeof u[D+1]=="number"&&u[D+2]==="gt"&&u[D+3]===D+7&&u[D+4]==="jz"&&u[D+5]==="pop"&&u[D+6]===u[D+1]){I=T.pop(),T.push(v(I,u[D+1])),D+=6;break}if(V=T[T.length-1],V.type==="literal"||V.type==="var"){T.push(V);break}W=new _(A++,V.min,V.max),T[T.length-1]=W,T.push(W),S.push(new d(W,V));break;case"roll":if(T.length<2||(H=T.pop(),I=T.pop(),H.type!=="literal"||I.type!=="literal")||(y=H.number,C=I.number,C<=0||!Number.isInteger(C)||!Number.isInteger(y)||T.length<C))return null;if(y=(y%C+C)%C,y===0)break;Array.prototype.push.apply(T,T.splice(T.length-C,C-y));break;default:return null}}if(T.length!==E)return null;var q=[];return S.forEach(function(z){var j=new c;z.visit(j),q.push(j.toString())}),T.forEach(function(z,j){var Y=new c;z.visit(Y);var K=F[j*2],Z=F[j*2+1],ee=[Y.toString()];K>z.min&&(ee.unshift("Math.max(",K,", "),ee.push(")")),Z<z.max&&(ee.unshift("Math.min(",Z,", "),ee.push(")")),ee.unshift("dest[destOffset + ",j,"] = "),ee.push(";"),q.push(ee.join(""))}),q.join(`
|
|
14
|
+
`)}},s}();t.PostScriptCompiler=n},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptParser=t.PostScriptLexer=void 0;var r=a(2),i=a(4),p=a(7);class e{constructor(m){this.lexer=m,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(m){return this.token.type===m?(this.nextToken(),!0):!1}expect(m){if(this.accept(m))return!0;throw new r.FormatError(`Unexpected symbol: found ${this.token.type} expected ${m}.`)}parse(){return this.nextToken(),this.expect(N.LBRACE),this.parseBlock(),this.expect(N.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(N.NUMBER))this.operators.push(this.prev.value);else if(this.accept(N.OPERATOR))this.operators.push(this.prev.value);else if(this.accept(N.LBRACE))this.parseCondition();else return}parseCondition(){const m=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(N.RBRACE),this.accept(N.IF))this.operators[m]=this.operators.length,this.operators[m+1]="jz";else if(this.accept(N.LBRACE)){const n=this.operators.length;this.operators.push(null,null);const J=this.operators.length;this.parseBlock(),this.expect(N.RBRACE),this.expect(N.IFELSE),this.operators[n]=this.operators.length,this.operators[n+1]="j",this.operators[m]=J,this.operators[m+1]="jz"}else throw new r.FormatError("PS Function: error parsing conditional.")}}t.PostScriptParser=e;const N={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5},w=function(){const m=Object.create(null);class n{constructor(O,L){this.type=O,this.value=L}static getOperator(O){const L=m[O];return L||(m[O]=new n(N.OPERATOR,O))}static get LBRACE(){return(0,r.shadow)(this,"LBRACE",new n(N.LBRACE,"{"))}static get RBRACE(){return(0,r.shadow)(this,"RBRACE",new n(N.RBRACE,"}"))}static get IF(){return(0,r.shadow)(this,"IF",new n(N.IF,"IF"))}static get IFELSE(){return(0,r.shadow)(this,"IFELSE",new n(N.IFELSE,"IFELSE"))}}return n}();class ${constructor(m){this.stream=m,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let m=!1,n=this.currentChar;for(;;){if(n<0)return i.EOF;if(m)(n===10||n===13)&&(m=!1);else if(n===37)m=!0;else if(!(0,p.isWhiteSpace)(n))break;n=this.nextChar()}switch(n|0){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new w(N.NUMBER,this.getNumber());case 123:return this.nextChar(),w.LBRACE;case 125:return this.nextChar(),w.RBRACE}const J=this.strBuf;for(J.length=0,J[0]=String.fromCharCode(n);(n=this.nextChar())>=0&&(n>=65&&n<=90||n>=97&&n<=122);)J.push(String.fromCharCode(n));const O=J.join("");switch(O.toLowerCase()){case"if":return w.IF;case"ifelse":return w.IFELSE;default:return w.getOperator(O)}}getNumber(){let m=this.currentChar;const n=this.strBuf;for(n.length=0,n[0]=String.fromCharCode(m);(m=this.nextChar())>=0&&(m>=48&&m<=57||m===45||m===46);)n.push(String.fromCharCode(m));const J=parseFloat(n.join(""));if(isNaN(J))throw new r.FormatError(`Invalid floating point number: ${J}`);return J}}t.PostScriptLexer=$},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var r=a(2);const i=3285377520,p=4294901760,e=65535;class N{constructor($){this.h1=$?$&4294967295:i,this.h2=$?$&4294967295:i}update($){let U,m;if((0,r.isString)($)){U=new Uint8Array($.length*2),m=0;for(let f=0,g=$.length;f<g;f++){const v=$.charCodeAt(f);v<=255?U[m++]=v:(U[m++]=v>>>8,U[m++]=v&255)}}else if((0,r.isArrayBuffer)($))U=$,m=U.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");const n=m>>2,J=m-n*4,O=new Uint32Array(U.buffer,0,n);let L=0,M=0,P=this.h1,b=this.h2;const _=3432918353,d=461845907,c=_&e,h=d&e;for(let f=0;f<n;f++)f&1?(L=O[f],L=L*_&p|L*c&e,L=L<<15|L>>>17,L=L*d&p|L*h&e,P^=L,P=P<<13|P>>>19,P=P*5+3864292196):(M=O[f],M=M*_&p|M*c&e,M=M<<15|M>>>17,M=M*d&p|M*h&e,b^=M,b=b<<13|b>>>19,b=b*5+3864292196);switch(L=0,J){case 3:L^=U[n*4+2]<<16;case 2:L^=U[n*4+1]<<8;case 1:L^=U[n*4],L=L*_&p|L*c&e,L=L<<15|L>>>17,L=L*d&p|L*h&e,n&1?P^=L:b^=L}this.h1=P,this.h2=b}hexdigest(){let $=this.h1,U=this.h2;$^=U>>>1,$=$*3981806797&p|$*36045&e,U=U*4283543511&p|((U<<16|$>>>16)*2950163797&p)>>>16,$^=U>>>1,$=$*444984403&p|$*60499&e,U=U*3301882366&p|((U<<16|$>>>16)*3120437893&p)>>>16,$^=U>>>1;const m=($>>>0).toString(16),n=(U>>>0).toString(16);return m.padStart(8,"0")+n.padStart(8,"0")}}t.MurmurHash3_64=N},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.NativeImageDecoder=void 0;var r=a(22),i=a(17),p=a(11);class e{constructor({xref:w,resources:$,handler:U,forceDataSchema:m=!1,pdfFunctionFactory:n}){this.xref=w,this.resources=$,this.handler=U,this.forceDataSchema=m,this.pdfFunctionFactory=n}canDecode(w){return w instanceof i.JpegStream&&e.isDecodable(w,this.xref,this.resources,this.pdfFunctionFactory)&&w.maybeValidDimensions}decode(w){const $=w.dict;let U=$.get("ColorSpace","CS");return U=r.ColorSpace.parse(U,this.xref,this.resources,this.pdfFunctionFactory),this.handler.sendWithPromise("JpegDecode",[w.getIR(this.forceDataSchema),U.numComps]).then(function({data:m,width:n,height:J}){return new p.Stream(m,0,m.length,$)})}static isSupported(w,$,U,m){const n=w.dict;if(n.has("DecodeParms")||n.has("DP"))return!1;const J=r.ColorSpace.parse(n.get("ColorSpace","CS"),$,U,m);return(J.name==="DeviceGray"||J.name==="DeviceRGB")&&J.isDefaultDecode(n.getArray("Decode","D"))}static isDecodable(w,$,U,m){const n=w.dict;if(n.has("DecodeParms")||n.has("DP"))return!1;const J=r.ColorSpace.parse(n.get("ColorSpace","CS"),$,U,m),O=n.get("BitsPerComponent","BPC")||1;return(J.numComps===1||J.numComps===3)&&J.isDefaultDecode(n.getArray("Decode","D"),O)}}t.NativeImageDecoder=e},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.PDFImage=void 0;var r=a(2),i=a(4),p=a(22),e=a(11),N=a(17),w=a(20),$=function(){function m(L,M){return M&&M.canDecode(L)?M.decode(L).catch(P=>((0,r.warn)("Native image decoding failed -- trying to recover: "+(P&&P.message)),L)):Promise.resolve(L)}function n(L,M,P,b){return L=M+L*P,L<0?L=0:L>b&&(L=b),L}function J(L,M,P,b,_,d){var c=_*d;let h;M<=8?h=new Uint8Array(c):M<=16?h=new Uint16Array(c):h=new Uint32Array(c);var f=P/_,g=b/d,v,s,o,u=0,l,F=new Uint16Array(_),T=P;for(v=0;v<_;v++)F[v]=Math.floor(v*f);for(v=0;v<d;v++)for(o=Math.floor(v*g)*T,s=0;s<_;s++)l=o+F[s],h[u++]=L[l];return h}function O({xref:L,res:M,image:P,isInline:b=!1,smask:_=null,mask:d=null,isMask:c=!1,pdfFunctionFactory:h}){this.image=P;var f=P.dict;const g=f.get("Filter");if((0,i.isName)(g))switch(g.name){case"JPXDecode":var v=new w.JpxImage;v.parseImageProperties(P.stream),P.stream.reset(),P.width=v.width,P.height=v.height,P.bitsPerComponent=v.bitsPerComponent,P.numComps=v.componentsCount;break;case"JBIG2Decode":P.bitsPerComponent=1,P.numComps=1;break}let s=f.get("Width","W"),o=f.get("Height","H");if(Number.isInteger(P.width)&&P.width>0&&Number.isInteger(P.height)&&P.height>0&&(P.width!==s||P.height!==o)&&((0,r.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),s=P.width,o=P.height),s<1||o<1)throw new r.FormatError(`Invalid image width: ${s} or height: ${o}`);this.width=s,this.height=o,this.interpolate=f.get("Interpolate","I")||!1,this.imageMask=f.get("ImageMask","IM")||!1,this.matte=f.get("Matte")||!1;var u=P.bitsPerComponent;if(!u&&(u=f.get("BitsPerComponent","BPC"),!u))if(this.imageMask)u=1;else throw new r.FormatError(`Bits per component missing in image: ${this.imageMask}`);if(this.bpc=u,!this.imageMask){var l=f.get("ColorSpace","CS");if(!l)switch((0,r.info)("JPX images (which do not require color spaces)"),P.numComps){case 1:l=i.Name.get("DeviceGray");break;case 3:l=i.Name.get("DeviceRGB");break;case 4:l=i.Name.get("DeviceCMYK");break;default:throw new Error(`JPX images with ${P.numComps} color components not supported.`)}const A=b?M:null;this.colorSpace=p.ColorSpace.parse(l,L,A,h),this.numComps=this.colorSpace.numComps}if(this.decode=f.getArray("Decode","D"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,u)||c&&!p.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;var F=(1<<u)-1;this.decodeCoefficients=[],this.decodeAddends=[];const A=this.colorSpace&&this.colorSpace.name==="Indexed";for(var T=0,D=0;T<this.decode.length;T+=2,++D){var k=this.decode[T],S=this.decode[T+1];this.decodeCoefficients[D]=A?(S-k)/F:S-k,this.decodeAddends[D]=A?k:F*k}}if(_)this.smask=new O({xref:L,res:M,image:_,isInline:b,pdfFunctionFactory:h});else if(d)if((0,i.isStream)(d)){var R=d.dict,E=R.get("ImageMask","IM");E?this.mask=new O({xref:L,res:M,image:d,isInline:b,isMask:!0,pdfFunctionFactory:h}):(0,r.warn)("Ignoring /Mask in image without /ImageMask.")}else this.mask=d}return O.buildImage=function({handler:L,xref:M,res:P,image:b,isInline:_=!1,nativeDecoder:d=null,pdfFunctionFactory:c}){var h=m(b,d),f,g,v=b.dict.get("SMask"),s=b.dict.get("Mask");return v?(f=m(v,d),g=Promise.resolve(null)):(f=Promise.resolve(null),s?(0,i.isStream)(s)?g=m(s,d):Array.isArray(s)?g=Promise.resolve(s):((0,r.warn)("Unsupported mask format."),g=Promise.resolve(null)):g=Promise.resolve(null)),Promise.all([h,f,g]).then(function([o,u,l]){return new O({xref:M,res:P,image:o,isInline:_,smask:u,mask:l,pdfFunctionFactory:c})})},O.createMask=function({imgArray:L,width:M,height:P,imageIsFromDecodeStream:b,inverseDecode:_}){var d=(M+7>>3)*P,c=L.byteLength,h=d===c,f,g;if(b&&(!_||h))f=L;else if(!_)f=new Uint8ClampedArray(c),f.set(L);else for(f=new Uint8ClampedArray(d),f.set(L),g=c;g<d;g++)f[g]=255;if(_)for(g=0;g<c;g++)f[g]^=255;return{data:f,width:M,height:P}},O.prototype={get drawWidth(){return Math.max(this.width,this.smask&&this.smask.width||0,this.mask&&this.mask.width||0)},get drawHeight(){return Math.max(this.height,this.smask&&this.smask.height||0,this.mask&&this.mask.height||0)},decodeBuffer(L){var M=this.bpc,P=this.numComps,b=this.decodeAddends,_=this.decodeCoefficients,d=(1<<M)-1,c,h;if(M===1){for(c=0,h=L.length;c<h;c++)L[c]=+!L[c];return}var f=0;for(c=0,h=this.width*this.height;c<h;c++)for(var g=0;g<P;g++)L[f]=n(L[f],b[g],_[g],d),f++},getComponents(L){var M=this.bpc;if(M===8)return L;var P=this.width,b=this.height,_=this.numComps,d=P*b*_,c=0;let h;M<=8?h=new Uint8Array(d):M<=16?h=new Uint16Array(d):h=new Uint32Array(d);var f=P*_,g=(1<<M)-1,v=0,s,o;if(M===1)for(var u,l,F,T=0;T<b;T++){for(l=v+(f&-8),F=v+f;v<l;)o=L[c++],h[v]=o>>7&1,h[v+1]=o>>6&1,h[v+2]=o>>5&1,h[v+3]=o>>4&1,h[v+4]=o>>3&1,h[v+5]=o>>2&1,h[v+6]=o>>1&1,h[v+7]=o&1,v+=8;if(v<F)for(o=L[c++],u=128;v<F;)h[v++]=+!!(o&u),u>>=1}else{var D=0;for(o=0,v=0,s=d;v<s;++v){for(v%f===0&&(o=0,D=0);D<M;)o=o<<8|L[c++],D+=8;var k=D-M;let S=o>>k;S<0?S=0:S>g&&(S=g),h[v]=S,o=o&(1<<k)-1,D=k}}return h},fillOpacity(L,M,P,b,_){var d=this.smask,c=this.mask,h,f,g,v,s,o;if(d)f=d.width,g=d.height,h=new Uint8ClampedArray(f*g),d.fillGrayBuffer(h),(f!==M||g!==P)&&(h=J(h,d.bpc,f,g,M,P));else if(c)if(c instanceof O){for(f=c.width,g=c.height,h=new Uint8ClampedArray(f*g),c.numComps=1,c.fillGrayBuffer(h),v=0,s=f*g;v<s;++v)h[v]=255-h[v];(f!==M||g!==P)&&(h=J(h,c.bpc,f,g,M,P))}else if(Array.isArray(c)){h=new Uint8ClampedArray(M*P);var u=this.numComps;for(v=0,s=M*P;v<s;++v){var l=0,F=v*u;for(o=0;o<u;++o){var T=_[F+o],D=o*2;if(T<c[D]||T>c[D+1]){l=255;break}}h[v]=l}}else throw new r.FormatError("Unknown mask format.");if(h)for(v=0,o=3,s=M*b;v<s;++v,o+=4)L[o]=h[v];else for(v=0,o=3,s=M*b;v<s;++v,o+=4)L[o]=255},undoPreblend(L,M,P){var b=this.smask&&this.smask.matte;if(b)for(var _=this.colorSpace.getRgb(b,0),d=_[0],c=_[1],h=_[2],f=M*P*4,g=0;g<f;g+=4){var v=L[g+3];if(v===0){L[g]=255,L[g+1]=255,L[g+2]=255;continue}var s=255/v;L[g]=(L[g]-d)*s+d,L[g+1]=(L[g+1]-c)*s+c,L[g+2]=(L[g+2]-h)*s+h}},createImageData(L=!1){var M=this.drawWidth,P=this.drawHeight,b={width:M,height:P,kind:0,data:null},_=this.numComps,d=this.width,c=this.height,h=this.bpc,f=d*_*h+7>>3,g;if(!L){var v;if(this.colorSpace.name==="DeviceGray"&&h===1?v=r.ImageKind.GRAYSCALE_1BPP:this.colorSpace.name==="DeviceRGB"&&h===8&&!this.needsDecode&&(v=r.ImageKind.RGB_24BPP),v&&!this.smask&&!this.mask&&M===d&&P===c){if(b.kind=v,g=this.getImageBytes(c*f),this.image instanceof e.DecodeStream)b.data=g;else{var s=new Uint8ClampedArray(g.length);s.set(g),b.data=s}if(this.needsDecode){(0,r.assert)(v===r.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");for(var o=b.data,u=0,l=o.length;u<l;u++)o[u]^=255}return b}if(this.image instanceof N.JpegStream&&!this.smask&&!this.mask){let S=c*f;switch(this.colorSpace.name){case"DeviceGray":S*=3;case"DeviceRGB":case"DeviceCMYK":return b.kind=r.ImageKind.RGB_24BPP,b.data=this.getImageBytes(S,M,P,!0),b}}}g=this.getImageBytes(c*f);var F=0|g.length/f*P/c,T=this.getComponents(g),D,k;return!L&&!this.smask&&!this.mask?(b.kind=r.ImageKind.RGB_24BPP,b.data=new Uint8ClampedArray(M*P*3),D=0,k=!1):(b.kind=r.ImageKind.RGBA_32BPP,b.data=new Uint8ClampedArray(M*P*4),D=1,k=!0,this.fillOpacity(b.data,M,P,F,T)),this.needsDecode&&this.decodeBuffer(T),this.colorSpace.fillRgb(b.data,d,c,M,P,F,h,T,D),k&&this.undoPreblend(b.data,M,F),b},fillGrayBuffer(L){var M=this.numComps;if(M!==1)throw new r.FormatError(`Reading gray scale from a color image: ${M}`);var P=this.width,b=this.height,_=this.bpc,d=P*M*_+7>>3,c=this.getImageBytes(b*d),h=this.getComponents(c),f,g;if(_===1){if(g=P*b,this.needsDecode)for(f=0;f<g;++f)L[f]=h[f]-1&255;else for(f=0;f<g;++f)L[f]=-h[f]&255;return}this.needsDecode&&this.decodeBuffer(h),g=P*b;var v=255/((1<<_)-1);for(f=0;f<g;++f)L[f]=v*h[f]},getImageBytes(L,M,P,b=!1){return this.image.reset(),this.image.drawWidth=M||this.width,this.image.drawHeight=P||this.height,this.image.forceRGB=!!b,this.image.getBytes(L,!0)}},O}();t.PDFImage=$},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;const r=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;t.isNodeJS=r},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=a(2);const i={DATA:1,ERROR:2},p={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function e(w){if(typeof w!="object"||w===null)return w;switch(w.name){case"AbortException":return new r.AbortException(w.message);case"MissingPDFException":return new r.MissingPDFException(w.message);case"UnexpectedResponseException":return new r.UnexpectedResponseException(w.message,w.status);case"UnknownErrorException":return new r.UnknownErrorException(w.message,w.details);default:return new r.UnknownErrorException(w.message,w.toString())}}class N{constructor($,U,m){this.sourceName=$,this.targetName=U,this.comObj=m,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=n=>{const J=n.data;if(J.targetName!==this.sourceName)return;if(J.stream){this._processStreamMessage(J);return}if(J.callback){const L=J.callbackId,M=this.callbackCapabilities[L];if(!M)throw new Error(`Cannot resolve callback ${L}`);if(delete this.callbackCapabilities[L],J.callback===i.DATA)M.resolve(J.data);else if(J.callback===i.ERROR)M.reject(e(J.reason));else throw new Error("Unexpected callback case");return}const O=this.actionHandler[J.action];if(!O)throw new Error(`Unknown action from worker: ${J.action}`);if(J.callbackId){const L=this.sourceName,M=J.sourceName;new Promise(function(P){P(O(J.data))}).then(function(P){m.postMessage({sourceName:L,targetName:M,callback:i.DATA,callbackId:J.callbackId,data:P})},function(P){m.postMessage({sourceName:L,targetName:M,callback:i.ERROR,callbackId:J.callbackId,reason:e(P)})});return}if(J.streamId){this._createStreamSink(J);return}O(J.data)},m.addEventListener("message",this._onComObjOnMessage)}on($,U){const m=this.actionHandler;if(m[$])throw new Error(`There is already an actionName called "${$}"`);m[$]=U}send($,U,m){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:$,data:U},m)}sendWithPromise($,U,m){const n=this.callbackId++,J=(0,r.createPromiseCapability)();this.callbackCapabilities[n]=J;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:$,callbackId:n,data:U},m)}catch(O){J.reject(O)}return J.promise}sendWithStream($,U,m,n){const J=this.streamId++,O=this.sourceName,L=this.targetName,M=this.comObj;return new ReadableStream({start:P=>{const b=(0,r.createPromiseCapability)();return this.streamControllers[J]={controller:P,startCall:b,pullCall:null,cancelCall:null,isClosed:!1},this._postMessage({sourceName:O,targetName:L,action:$,streamId:J,data:U,desiredSize:P.desiredSize},n),b.promise},pull:P=>{const b=(0,r.createPromiseCapability)();return this.streamControllers[J].pullCall=b,M.postMessage({sourceName:O,targetName:L,stream:p.PULL,streamId:J,desiredSize:P.desiredSize}),b.promise},cancel:P=>{(0,r.assert)(P instanceof Error,"cancel must have a valid reason");const b=(0,r.createPromiseCapability)();return this.streamControllers[J].cancelCall=b,this.streamControllers[J].isClosed=!0,M.postMessage({sourceName:O,targetName:L,stream:p.CANCEL,streamId:J,reason:e(P)}),b.promise}},m)}_createStreamSink($){const U=this,m=this.actionHandler[$.action],n=$.streamId,J=this.sourceName,O=$.sourceName,L=this.comObj,M={enqueue(P,b=1,_){if(this.isCancelled)return;const d=this.desiredSize;this.desiredSize-=b,d>0&&this.desiredSize<=0&&(this.sinkCapability=(0,r.createPromiseCapability)(),this.ready=this.sinkCapability.promise),U._postMessage({sourceName:J,targetName:O,stream:p.ENQUEUE,streamId:n,chunk:P},_)},close(){this.isCancelled||(this.isCancelled=!0,L.postMessage({sourceName:J,targetName:O,stream:p.CLOSE,streamId:n}),delete U.streamSinks[n])},error(P){(0,r.assert)(P instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,L.postMessage({sourceName:J,targetName:O,stream:p.ERROR,streamId:n,reason:e(P)}))},sinkCapability:(0,r.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:$.desiredSize,ready:null};M.sinkCapability.resolve(),M.ready=M.sinkCapability.promise,this.streamSinks[n]=M,new Promise(function(P){P(m($.data,M))}).then(function(){L.postMessage({sourceName:J,targetName:O,stream:p.START_COMPLETE,streamId:n,success:!0})},function(P){L.postMessage({sourceName:J,targetName:O,stream:p.START_COMPLETE,streamId:n,reason:e(P)})})}_processStreamMessage($){const U=$.streamId,m=this.sourceName,n=$.sourceName,J=this.comObj;switch($.stream){case p.START_COMPLETE:$.success?this.streamControllers[U].startCall.resolve():this.streamControllers[U].startCall.reject(e($.reason));break;case p.PULL_COMPLETE:$.success?this.streamControllers[U].pullCall.resolve():this.streamControllers[U].pullCall.reject(e($.reason));break;case p.PULL:if(!this.streamSinks[U]){J.postMessage({sourceName:m,targetName:n,stream:p.PULL_COMPLETE,streamId:U,success:!0});break}this.streamSinks[U].desiredSize<=0&&$.desiredSize>0&&this.streamSinks[U].sinkCapability.resolve(),this.streamSinks[U].desiredSize=$.desiredSize;const{onPull:O}=this.streamSinks[$.streamId];new Promise(function(M){M(O&&O())}).then(function(){J.postMessage({sourceName:m,targetName:n,stream:p.PULL_COMPLETE,streamId:U,success:!0})},function(M){J.postMessage({sourceName:m,targetName:n,stream:p.PULL_COMPLETE,streamId:U,reason:e(M)})});break;case p.ENQUEUE:if((0,r.assert)(this.streamControllers[U],"enqueue should have stream controller"),this.streamControllers[U].isClosed)break;this.streamControllers[U].controller.enqueue($.chunk);break;case p.CLOSE:if((0,r.assert)(this.streamControllers[U],"close should have stream controller"),this.streamControllers[U].isClosed)break;this.streamControllers[U].isClosed=!0,this.streamControllers[U].controller.close(),this._deleteStreamController(U);break;case p.ERROR:(0,r.assert)(this.streamControllers[U],"error should have stream controller"),this.streamControllers[U].controller.error(e($.reason)),this._deleteStreamController(U);break;case p.CANCEL_COMPLETE:$.success?this.streamControllers[U].cancelCall.resolve():this.streamControllers[U].cancelCall.reject(e($.reason)),this._deleteStreamController(U);break;case p.CANCEL:if(!this.streamSinks[U])break;const{onCancel:L}=this.streamSinks[$.streamId];new Promise(function(M){M(L&&L(e($.reason)))}).then(function(){J.postMessage({sourceName:m,targetName:n,stream:p.CANCEL_COMPLETE,streamId:U,success:!0})},function(M){J.postMessage({sourceName:m,targetName:n,stream:p.CANCEL_COMPLETE,streamId:U,reason:e(M)})}),this.streamSinks[U].sinkCapability.reject(e($.reason)),this.streamSinks[U].isCancelled=!0,delete this.streamSinks[U];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController($){await Promise.allSettled([this.streamControllers[$].startCall,this.streamControllers[$].pullCall,this.streamControllers[$].cancelCall].map(function(U){return U&&U.promise})),delete this.streamControllers[$]}_postMessage($,U){U&&this.postMessageTransfers?this.comObj.postMessage($,U):this.comObj.postMessage($)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}t.MessageHandler=N},function(x,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.PDFWorkerStream=void 0;var r=a(2);class i{constructor(w){this._msgHandler=w,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}getFullReader(){return(0,r.assert)(!this._fullRequestReader),this._fullRequestReader=new p(this._msgHandler),this._fullRequestReader}getRangeReader(w,$){const U=new e(w,$,this._msgHandler);return this._rangeRequestReaders.push(U),U}cancelAllRequests(w){this._fullRequestReader&&this._fullRequestReader.cancel(w),this._rangeRequestReaders.slice(0).forEach(function(U){U.cancel(w)})}}t.PDFWorkerStream=i;class p{constructor(w){this._msgHandler=w,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;const $=this._msgHandler.sendWithStream("GetReader");this._reader=$.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then(U=>{this._isStreamingSupported=U.isStreamingSupported,this._isRangeSupported=U.isRangeSupported,this._contentLength=U.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:w,done:$}=await this._reader.read();return $?{value:void 0,done:!0}:{value:w.buffer,done:!1}}cancel(w){this._reader.cancel(w)}}class e{constructor(w,$,U){this._msgHandler=U,this.onProgress=null;const m=this._msgHandler.sendWithStream("GetRangeReader",{begin:w,end:$});this._reader=m.getReader()}get isStreamingSupported(){return!1}async read(){const{value:w,done:$}=await this._reader.read();return $?{value:void 0,done:!0}:{value:w.buffer,done:!1}}cancel(w){this._reader.cancel(w)}}}])});const __CJS__export_default__=(module$1.exports==null?{}:module$1.exports).default||module$1.exports,__CJS__export_undefined__=(module$1.exports==null?{}:module$1.exports).undefined,__CJS__export_WorkerMessageHandler__=(module$1.exports==null?{}:module$1.exports).WorkerMessageHandler,__CJS__export_WorkerTask__=(module$1.exports==null?{}:module$1.exports).WorkerTask,__CJS__export_arrayByteLength__=(module$1.exports==null?{}:module$1.exports).arrayByteLength,__CJS__export_arraysToBytes__=(module$1.exports==null?{}:module$1.exports).arraysToBytes,__CJS__export_assert__=(module$1.exports==null?{}:module$1.exports).assert,__CJS__export_bytesToString__=(module$1.exports==null?{}:module$1.exports).bytesToString,__CJS__export_createPromiseCapability__=(module$1.exports==null?{}:module$1.exports).createPromiseCapability,__CJS__export_getVerbosityLevel__=(module$1.exports==null?{}:module$1.exports).getVerbosityLevel,__CJS__export_info__=(module$1.exports==null?{}:module$1.exports).info,__CJS__export_isArrayBuffer__=(module$1.exports==null?{}:module$1.exports).isArrayBuffer,__CJS__export_isArrayEqual__=(module$1.exports==null?{}:module$1.exports).isArrayEqual,__CJS__export_isBool__=(module$1.exports==null?{}:module$1.exports).isBool,__CJS__export_isEmptyObj__=(module$1.exports==null?{}:module$1.exports).isEmptyObj,__CJS__export_isNum__=(module$1.exports==null?{}:module$1.exports).isNum,__CJS__export_isString__=(module$1.exports==null?{}:module$1.exports).isString,__CJS__export_isSameOrigin__=(module$1.exports==null?{}:module$1.exports).isSameOrigin,__CJS__export_createValidAbsoluteUrl__=(module$1.exports==null?{}:module$1.exports).createValidAbsoluteUrl,__CJS__export_removeNullCharacters__=(module$1.exports==null?{}:module$1.exports).removeNullCharacters,__CJS__export_setVerbosityLevel__=(module$1.exports==null?{}:module$1.exports).setVerbosityLevel,__CJS__export_shadow__=(module$1.exports==null?{}:module$1.exports).shadow,__CJS__export_string32__=(module$1.exports==null?{}:module$1.exports).string32,__CJS__export_stringToBytes__=(module$1.exports==null?{}:module$1.exports).stringToBytes,__CJS__export_stringToPDFString__=(module$1.exports==null?{}:module$1.exports).stringToPDFString,__CJS__export_stringToUTF8String__=(module$1.exports==null?{}:module$1.exports).stringToUTF8String,__CJS__export_utf8StringToString__=(module$1.exports==null?{}:module$1.exports).utf8StringToString,__CJS__export_warn__=(module$1.exports==null?{}:module$1.exports).warn,__CJS__export_unreachable__=(module$1.exports==null?{}:module$1.exports).unreachable,__CJS__export_BaseException__=(module$1.exports==null?{}:module$1.exports).BaseException,__CJS__export_FONT_IDENTITY_MATRIX__=(module$1.exports==null?{}:module$1.exports).FONT_IDENTITY_MATRIX,__CJS__export_IDENTITY_MATRIX__=(module$1.exports==null?{}:module$1.exports).IDENTITY_MATRIX,__CJS__export_OPS__=(module$1.exports==null?{}:module$1.exports).OPS,__CJS__export_VerbosityLevel__=(module$1.exports==null?{}:module$1.exports).VerbosityLevel,__CJS__export_UNSUPPORTED_FEATURES__=(module$1.exports==null?{}:module$1.exports).UNSUPPORTED_FEATURES,__CJS__export_AnnotationBorderStyleType__=(module$1.exports==null?{}:module$1.exports).AnnotationBorderStyleType,__CJS__export_AnnotationFieldFlag__=(module$1.exports==null?{}:module$1.exports).AnnotationFieldFlag,__CJS__export_AnnotationFlag__=(module$1.exports==null?{}:module$1.exports).AnnotationFlag,__CJS__export_AnnotationMarkedState__=(module$1.exports==null?{}:module$1.exports).AnnotationMarkedState,__CJS__export_AnnotationReplyType__=(module$1.exports==null?{}:module$1.exports).AnnotationReplyType,__CJS__export_AnnotationReviewState__=(module$1.exports==null?{}:module$1.exports).AnnotationReviewState,__CJS__export_AnnotationStateModelType__=(module$1.exports==null?{}:module$1.exports).AnnotationStateModelType,__CJS__export_AnnotationType__=(module$1.exports==null?{}:module$1.exports).AnnotationType,__CJS__export_FontType__=(module$1.exports==null?{}:module$1.exports).FontType,__CJS__export_ImageKind__=(module$1.exports==null?{}:module$1.exports).ImageKind,__CJS__export_CMapCompressionType__=(module$1.exports==null?{}:module$1.exports).CMapCompressionType,__CJS__export_AbortException__=(module$1.exports==null?{}:module$1.exports).AbortException,__CJS__export_InvalidPDFException__=(module$1.exports==null?{}:module$1.exports).InvalidPDFException,__CJS__export_MissingPDFException__=(module$1.exports==null?{}:module$1.exports).MissingPDFException,__CJS__export_NativeImageDecoding__=(module$1.exports==null?{}:module$1.exports).NativeImageDecoding,__CJS__export_PasswordException__=(module$1.exports==null?{}:module$1.exports).PasswordException,__CJS__export_PasswordResponses__=(module$1.exports==null?{}:module$1.exports).PasswordResponses,__CJS__export_PermissionFlag__=(module$1.exports==null?{}:module$1.exports).PermissionFlag,__CJS__export_StreamType__=(module$1.exports==null?{}:module$1.exports).StreamType,__CJS__export_TextRenderingMode__=(module$1.exports==null?{}:module$1.exports).TextRenderingMode,__CJS__export_UnexpectedResponseException__=(module$1.exports==null?{}:module$1.exports).UnexpectedResponseException,__CJS__export_UnknownErrorException__=(module$1.exports==null?{}:module$1.exports).UnknownErrorException,__CJS__export_Util__=(module$1.exports==null?{}:module$1.exports).Util,__CJS__export_FormatError__=(module$1.exports==null?{}:module$1.exports).FormatError,__CJS__export_createObjectURL__=(module$1.exports==null?{}:module$1.exports).createObjectURL,__CJS__export_IsLittleEndianCached__=(module$1.exports==null?{}:module$1.exports).IsLittleEndianCached,__CJS__export_IsEvalSupportedCached__=(module$1.exports==null?{}:module$1.exports).IsEvalSupportedCached,__CJS__export_clearPrimitiveCaches__=(module$1.exports==null?{}:module$1.exports).clearPrimitiveCaches,__CJS__export_isEOF__=(module$1.exports==null?{}:module$1.exports).isEOF,__CJS__export_isCmd__=(module$1.exports==null?{}:module$1.exports).isCmd,__CJS__export_isDict__=(module$1.exports==null?{}:module$1.exports).isDict,__CJS__export_isName__=(module$1.exports==null?{}:module$1.exports).isName,__CJS__export_isRef__=(module$1.exports==null?{}:module$1.exports).isRef,__CJS__export_isRefsEqual__=(module$1.exports==null?{}:module$1.exports).isRefsEqual,__CJS__export_isStream__=(module$1.exports==null?{}:module$1.exports).isStream,__CJS__export_EOF__=(module$1.exports==null?{}:module$1.exports).EOF,__CJS__export_Cmd__=(module$1.exports==null?{}:module$1.exports).Cmd,__CJS__export_Dict__=(module$1.exports==null?{}:module$1.exports).Dict,__CJS__export_Name__=(module$1.exports==null?{}:module$1.exports).Name,__CJS__export_Ref__=(module$1.exports==null?{}:module$1.exports).Ref,__CJS__export_RefSet__=(module$1.exports==null?{}:module$1.exports).RefSet,__CJS__export_RefSetCache__=(module$1.exports==null?{}:module$1.exports).RefSetCache,__CJS__export_LocalPdfManager__=(module$1.exports==null?{}:module$1.exports).LocalPdfManager,__CJS__export_NetworkPdfManager__=(module$1.exports==null?{}:module$1.exports).NetworkPdfManager,__CJS__export_ChunkedStream__=(module$1.exports==null?{}:module$1.exports).ChunkedStream,__CJS__export_ChunkedStreamManager__=(module$1.exports==null?{}:module$1.exports).ChunkedStreamManager,__CJS__export_getLookupTableFactory__=(module$1.exports==null?{}:module$1.exports).getLookupTableFactory,__CJS__export_getInheritableProperty__=(module$1.exports==null?{}:module$1.exports).getInheritableProperty,__CJS__export_toRomanNumerals__=(module$1.exports==null?{}:module$1.exports).toRomanNumerals,__CJS__export_log2__=(module$1.exports==null?{}:module$1.exports).log2,__CJS__export_readInt8__=(module$1.exports==null?{}:module$1.exports).readInt8,__CJS__export_readUint16__=(module$1.exports==null?{}:module$1.exports).readUint16,__CJS__export_readUint32__=(module$1.exports==null?{}:module$1.exports).readUint32,__CJS__export_isWhiteSpace__=(module$1.exports==null?{}:module$1.exports).isWhiteSpace,__CJS__export_MissingDataException__=(module$1.exports==null?{}:module$1.exports).MissingDataException,__CJS__export_XRefEntryException__=(module$1.exports==null?{}:module$1.exports).XRefEntryException,__CJS__export_XRefParseException__=(module$1.exports==null?{}:module$1.exports).XRefParseException,__CJS__export_Page__=(module$1.exports==null?{}:module$1.exports).Page,__CJS__export_PDFDocument__=(module$1.exports==null?{}:module$1.exports).PDFDocument,__CJS__export_Catalog__=(module$1.exports==null?{}:module$1.exports).Catalog,__CJS__export_ObjectLoader__=(module$1.exports==null?{}:module$1.exports).ObjectLoader,__CJS__export_XRef__=(module$1.exports==null?{}:module$1.exports).XRef,__CJS__export_FileSpec__=(module$1.exports==null?{}:module$1.exports).FileSpec,__CJS__export_Lexer__=(module$1.exports==null?{}:module$1.exports).Lexer,__CJS__export_Linearization__=(module$1.exports==null?{}:module$1.exports).Linearization,__CJS__export_Parser__=(module$1.exports==null?{}:module$1.exports).Parser,__CJS__export_Ascii85Stream__=(module$1.exports==null?{}:module$1.exports).Ascii85Stream,__CJS__export_AsciiHexStream__=(module$1.exports==null?{}:module$1.exports).AsciiHexStream,__CJS__export_DecryptStream__=(module$1.exports==null?{}:module$1.exports).DecryptStream,__CJS__export_DecodeStream__=(module$1.exports==null?{}:module$1.exports).DecodeStream,__CJS__export_FlateStream__=(module$1.exports==null?{}:module$1.exports).FlateStream,__CJS__export_NullStream__=(module$1.exports==null?{}:module$1.exports).NullStream,__CJS__export_PredictorStream__=(module$1.exports==null?{}:module$1.exports).PredictorStream,__CJS__export_RunLengthStream__=(module$1.exports==null?{}:module$1.exports).RunLengthStream,__CJS__export_Stream__=(module$1.exports==null?{}:module$1.exports).Stream,__CJS__export_StreamsSequenceStream__=(module$1.exports==null?{}:module$1.exports).StreamsSequenceStream,__CJS__export_StringStream__=(module$1.exports==null?{}:module$1.exports).StringStream,__CJS__export_LZWStream__=(module$1.exports==null?{}:module$1.exports).LZWStream,__CJS__export_CCITTFaxStream__=(module$1.exports==null?{}:module$1.exports).CCITTFaxStream,__CJS__export_CCITTFaxDecoder__=(module$1.exports==null?{}:module$1.exports).CCITTFaxDecoder,__CJS__export_Jbig2Stream__=(module$1.exports==null?{}:module$1.exports).Jbig2Stream,__CJS__export_Jbig2Image__=(module$1.exports==null?{}:module$1.exports).Jbig2Image,__CJS__export_ArithmeticDecoder__=(module$1.exports==null?{}:module$1.exports).ArithmeticDecoder,__CJS__export_JpegStream__=(module$1.exports==null?{}:module$1.exports).JpegStream,__CJS__export_JpegImage__=(module$1.exports==null?{}:module$1.exports).JpegImage,__CJS__export_JpxStream__=(module$1.exports==null?{}:module$1.exports).JpxStream,__CJS__export_JpxImage__=(module$1.exports==null?{}:module$1.exports).JpxImage,__CJS__export_AES128Cipher__=(module$1.exports==null?{}:module$1.exports).AES128Cipher,__CJS__export_AES256Cipher__=(module$1.exports==null?{}:module$1.exports).AES256Cipher,__CJS__export_ARCFourCipher__=(module$1.exports==null?{}:module$1.exports).ARCFourCipher,__CJS__export_CipherTransformFactory__=(module$1.exports==null?{}:module$1.exports).CipherTransformFactory,__CJS__export_PDF17__=(module$1.exports==null?{}:module$1.exports).PDF17,__CJS__export_PDF20__=(module$1.exports==null?{}:module$1.exports).PDF20,__CJS__export_calculateMD5__=(module$1.exports==null?{}:module$1.exports).calculateMD5,__CJS__export_calculateSHA256__=(module$1.exports==null?{}:module$1.exports).calculateSHA256,__CJS__export_calculateSHA384__=(module$1.exports==null?{}:module$1.exports).calculateSHA384,__CJS__export_calculateSHA512__=(module$1.exports==null?{}:module$1.exports).calculateSHA512,__CJS__export_ColorSpace__=(module$1.exports==null?{}:module$1.exports).ColorSpace,__CJS__export_getQuadPoints__=(module$1.exports==null?{}:module$1.exports).getQuadPoints,__CJS__export_Annotation__=(module$1.exports==null?{}:module$1.exports).Annotation,__CJS__export_AnnotationBorderStyle__=(module$1.exports==null?{}:module$1.exports).AnnotationBorderStyle,__CJS__export_AnnotationFactory__=(module$1.exports==null?{}:module$1.exports).AnnotationFactory,__CJS__export_MarkupAnnotation__=(module$1.exports==null?{}:module$1.exports).MarkupAnnotation,__CJS__export_OperatorList__=(module$1.exports==null?{}:module$1.exports).OperatorList,__CJS__export_PartialEvaluator__=(module$1.exports==null?{}:module$1.exports).PartialEvaluator,__CJS__export_CMap__=(module$1.exports==null?{}:module$1.exports).CMap,__CJS__export_IdentityCMap__=(module$1.exports==null?{}:module$1.exports).IdentityCMap,__CJS__export_CMapFactory__=(module$1.exports==null?{}:module$1.exports).CMapFactory,__CJS__export_getFontType__=(module$1.exports==null?{}:module$1.exports).getFontType,__CJS__export_SEAC_ANALYSIS_ENABLED__=(module$1.exports==null?{}:module$1.exports).SEAC_ANALYSIS_ENABLED,__CJS__export_ErrorFont__=(module$1.exports==null?{}:module$1.exports).ErrorFont,__CJS__export_Font__=(module$1.exports==null?{}:module$1.exports).Font,__CJS__export_FontFlags__=(module$1.exports==null?{}:module$1.exports).FontFlags,__CJS__export_ToUnicodeMap__=(module$1.exports==null?{}:module$1.exports).ToUnicodeMap,__CJS__export_IdentityToUnicodeMap__=(module$1.exports==null?{}:module$1.exports).IdentityToUnicodeMap,__CJS__export_CFFStandardStrings__=(module$1.exports==null?{}:module$1.exports).CFFStandardStrings,__CJS__export_CFFParser__=(module$1.exports==null?{}:module$1.exports).CFFParser,__CJS__export_CFF__=(module$1.exports==null?{}:module$1.exports).CFF,__CJS__export_CFFHeader__=(module$1.exports==null?{}:module$1.exports).CFFHeader,__CJS__export_CFFStrings__=(module$1.exports==null?{}:module$1.exports).CFFStrings,__CJS__export_CFFIndex__=(module$1.exports==null?{}:module$1.exports).CFFIndex,__CJS__export_CFFCharset__=(module$1.exports==null?{}:module$1.exports).CFFCharset,__CJS__export_CFFTopDict__=(module$1.exports==null?{}:module$1.exports).CFFTopDict,__CJS__export_CFFPrivateDict__=(module$1.exports==null?{}:module$1.exports).CFFPrivateDict,__CJS__export_CFFCompiler__=(module$1.exports==null?{}:module$1.exports).CFFCompiler,__CJS__export_CFFFDSelect__=(module$1.exports==null?{}:module$1.exports).CFFFDSelect,__CJS__export_ISOAdobeCharset__=(module$1.exports==null?{}:module$1.exports).ISOAdobeCharset,__CJS__export_ExpertCharset__=(module$1.exports==null?{}:module$1.exports).ExpertCharset,__CJS__export_ExpertSubsetCharset__=(module$1.exports==null?{}:module$1.exports).ExpertSubsetCharset,__CJS__export_getEncoding__=(module$1.exports==null?{}:module$1.exports).getEncoding,__CJS__export_WinAnsiEncoding__=(module$1.exports==null?{}:module$1.exports).WinAnsiEncoding,__CJS__export_StandardEncoding__=(module$1.exports==null?{}:module$1.exports).StandardEncoding,__CJS__export_MacRomanEncoding__=(module$1.exports==null?{}:module$1.exports).MacRomanEncoding,__CJS__export_SymbolSetEncoding__=(module$1.exports==null?{}:module$1.exports).SymbolSetEncoding,__CJS__export_ZapfDingbatsEncoding__=(module$1.exports==null?{}:module$1.exports).ZapfDingbatsEncoding,__CJS__export_ExpertEncoding__=(module$1.exports==null?{}:module$1.exports).ExpertEncoding,__CJS__export_getGlyphsUnicode__=(module$1.exports==null?{}:module$1.exports).getGlyphsUnicode,__CJS__export_getDingbatsGlyphsUnicode__=(module$1.exports==null?{}:module$1.exports).getDingbatsGlyphsUnicode,__CJS__export_getStdFontMap__=(module$1.exports==null?{}:module$1.exports).getStdFontMap,__CJS__export_getNonStdFontMap__=(module$1.exports==null?{}:module$1.exports).getNonStdFontMap,__CJS__export_getSerifFonts__=(module$1.exports==null?{}:module$1.exports).getSerifFonts,__CJS__export_getSymbolsFonts__=(module$1.exports==null?{}:module$1.exports).getSymbolsFonts,__CJS__export_getGlyphMapForStandardFonts__=(module$1.exports==null?{}:module$1.exports).getGlyphMapForStandardFonts,__CJS__export_getSupplementalGlyphMapForArialBlack__=(module$1.exports==null?{}:module$1.exports).getSupplementalGlyphMapForArialBlack,__CJS__export_getSupplementalGlyphMapForCalibri__=(module$1.exports==null?{}:module$1.exports).getSupplementalGlyphMapForCalibri,__CJS__export_mapSpecialUnicodeValues__=(module$1.exports==null?{}:module$1.exports).mapSpecialUnicodeValues,__CJS__export_reverseIfRtl__=(module$1.exports==null?{}:module$1.exports).reverseIfRtl,__CJS__export_getUnicodeRangeFor__=(module$1.exports==null?{}:module$1.exports).getUnicodeRangeFor,__CJS__export_getNormalizedUnicodes__=(module$1.exports==null?{}:module$1.exports).getNormalizedUnicodes,__CJS__export_getUnicodeForGlyph__=(module$1.exports==null?{}:module$1.exports).getUnicodeForGlyph,__CJS__export_FontRendererFactory__=(module$1.exports==null?{}:module$1.exports).FontRendererFactory,__CJS__export_Type1Parser__=(module$1.exports==null?{}:module$1.exports).Type1Parser,__CJS__export_getTilingPatternIR__=(module$1.exports==null?{}:module$1.exports).getTilingPatternIR,__CJS__export_Pattern__=(module$1.exports==null?{}:module$1.exports).Pattern,__CJS__export_bidi__=(module$1.exports==null?{}:module$1.exports).bidi,__CJS__export_getMetrics__=(module$1.exports==null?{}:module$1.exports).getMetrics,__CJS__export_isPDFFunction__=(module$1.exports==null?{}:module$1.exports).isPDFFunction,__CJS__export_PDFFunctionFactory__=(module$1.exports==null?{}:module$1.exports).PDFFunctionFactory,__CJS__export_PostScriptEvaluator__=(module$1.exports==null?{}:module$1.exports).PostScriptEvaluator,__CJS__export_PostScriptCompiler__=(module$1.exports==null?{}:module$1.exports).PostScriptCompiler,__CJS__export_PostScriptLexer__=(module$1.exports==null?{}:module$1.exports).PostScriptLexer,__CJS__export_PostScriptParser__=(module$1.exports==null?{}:module$1.exports).PostScriptParser,__CJS__export_MurmurHash3_64__=(module$1.exports==null?{}:module$1.exports).MurmurHash3_64,__CJS__export_NativeImageDecoder__=(module$1.exports==null?{}:module$1.exports).NativeImageDecoder,__CJS__export_PDFImage__=(module$1.exports==null?{}:module$1.exports).PDFImage,__CJS__export_isNodeJS__=(module$1.exports==null?{}:module$1.exports).isNodeJS,__CJS__export_MessageHandler__=(module$1.exports==null?{}:module$1.exports).MessageHandler,__CJS__export_PDFWorkerStream__=(module$1.exports==null?{}:module$1.exports).PDFWorkerStream,__CJS__import__0__=Object.freeze(Object.defineProperty({__proto__:null,AES128Cipher:__CJS__export_AES128Cipher__,AES256Cipher:__CJS__export_AES256Cipher__,ARCFourCipher:__CJS__export_ARCFourCipher__,AbortException:__CJS__export_AbortException__,Annotation:__CJS__export_Annotation__,AnnotationBorderStyle:__CJS__export_AnnotationBorderStyle__,AnnotationBorderStyleType:__CJS__export_AnnotationBorderStyleType__,AnnotationFactory:__CJS__export_AnnotationFactory__,AnnotationFieldFlag:__CJS__export_AnnotationFieldFlag__,AnnotationFlag:__CJS__export_AnnotationFlag__,AnnotationMarkedState:__CJS__export_AnnotationMarkedState__,AnnotationReplyType:__CJS__export_AnnotationReplyType__,AnnotationReviewState:__CJS__export_AnnotationReviewState__,AnnotationStateModelType:__CJS__export_AnnotationStateModelType__,AnnotationType:__CJS__export_AnnotationType__,ArithmeticDecoder:__CJS__export_ArithmeticDecoder__,Ascii85Stream:__CJS__export_Ascii85Stream__,AsciiHexStream:__CJS__export_AsciiHexStream__,BaseException:__CJS__export_BaseException__,CCITTFaxDecoder:__CJS__export_CCITTFaxDecoder__,CCITTFaxStream:__CJS__export_CCITTFaxStream__,CFF:__CJS__export_CFF__,CFFCharset:__CJS__export_CFFCharset__,CFFCompiler:__CJS__export_CFFCompiler__,CFFFDSelect:__CJS__export_CFFFDSelect__,CFFHeader:__CJS__export_CFFHeader__,CFFIndex:__CJS__export_CFFIndex__,CFFParser:__CJS__export_CFFParser__,CFFPrivateDict:__CJS__export_CFFPrivateDict__,CFFStandardStrings:__CJS__export_CFFStandardStrings__,CFFStrings:__CJS__export_CFFStrings__,CFFTopDict:__CJS__export_CFFTopDict__,CMap:__CJS__export_CMap__,CMapCompressionType:__CJS__export_CMapCompressionType__,CMapFactory:__CJS__export_CMapFactory__,Catalog:__CJS__export_Catalog__,ChunkedStream:__CJS__export_ChunkedStream__,ChunkedStreamManager:__CJS__export_ChunkedStreamManager__,CipherTransformFactory:__CJS__export_CipherTransformFactory__,Cmd:__CJS__export_Cmd__,ColorSpace:__CJS__export_ColorSpace__,DecodeStream:__CJS__export_DecodeStream__,DecryptStream:__CJS__export_DecryptStream__,Dict:__CJS__export_Dict__,EOF:__CJS__export_EOF__,ErrorFont:__CJS__export_ErrorFont__,ExpertCharset:__CJS__export_ExpertCharset__,ExpertEncoding:__CJS__export_ExpertEncoding__,ExpertSubsetCharset:__CJS__export_ExpertSubsetCharset__,FONT_IDENTITY_MATRIX:__CJS__export_FONT_IDENTITY_MATRIX__,FileSpec:__CJS__export_FileSpec__,FlateStream:__CJS__export_FlateStream__,Font:__CJS__export_Font__,FontFlags:__CJS__export_FontFlags__,FontRendererFactory:__CJS__export_FontRendererFactory__,FontType:__CJS__export_FontType__,FormatError:__CJS__export_FormatError__,IDENTITY_MATRIX:__CJS__export_IDENTITY_MATRIX__,ISOAdobeCharset:__CJS__export_ISOAdobeCharset__,IdentityCMap:__CJS__export_IdentityCMap__,IdentityToUnicodeMap:__CJS__export_IdentityToUnicodeMap__,ImageKind:__CJS__export_ImageKind__,InvalidPDFException:__CJS__export_InvalidPDFException__,IsEvalSupportedCached:__CJS__export_IsEvalSupportedCached__,IsLittleEndianCached:__CJS__export_IsLittleEndianCached__,Jbig2Image:__CJS__export_Jbig2Image__,Jbig2Stream:__CJS__export_Jbig2Stream__,JpegImage:__CJS__export_JpegImage__,JpegStream:__CJS__export_JpegStream__,JpxImage:__CJS__export_JpxImage__,JpxStream:__CJS__export_JpxStream__,LZWStream:__CJS__export_LZWStream__,Lexer:__CJS__export_Lexer__,Linearization:__CJS__export_Linearization__,LocalPdfManager:__CJS__export_LocalPdfManager__,MacRomanEncoding:__CJS__export_MacRomanEncoding__,MarkupAnnotation:__CJS__export_MarkupAnnotation__,MessageHandler:__CJS__export_MessageHandler__,MissingDataException:__CJS__export_MissingDataException__,MissingPDFException:__CJS__export_MissingPDFException__,MurmurHash3_64:__CJS__export_MurmurHash3_64__,Name:__CJS__export_Name__,NativeImageDecoder:__CJS__export_NativeImageDecoder__,NativeImageDecoding:__CJS__export_NativeImageDecoding__,NetworkPdfManager:__CJS__export_NetworkPdfManager__,NullStream:__CJS__export_NullStream__,OPS:__CJS__export_OPS__,ObjectLoader:__CJS__export_ObjectLoader__,OperatorList:__CJS__export_OperatorList__,PDF17:__CJS__export_PDF17__,PDF20:__CJS__export_PDF20__,PDFDocument:__CJS__export_PDFDocument__,PDFFunctionFactory:__CJS__export_PDFFunctionFactory__,PDFImage:__CJS__export_PDFImage__,PDFWorkerStream:__CJS__export_PDFWorkerStream__,Page:__CJS__export_Page__,Parser:__CJS__export_Parser__,PartialEvaluator:__CJS__export_PartialEvaluator__,PasswordException:__CJS__export_PasswordException__,PasswordResponses:__CJS__export_PasswordResponses__,Pattern:__CJS__export_Pattern__,PermissionFlag:__CJS__export_PermissionFlag__,PostScriptCompiler:__CJS__export_PostScriptCompiler__,PostScriptEvaluator:__CJS__export_PostScriptEvaluator__,PostScriptLexer:__CJS__export_PostScriptLexer__,PostScriptParser:__CJS__export_PostScriptParser__,PredictorStream:__CJS__export_PredictorStream__,Ref:__CJS__export_Ref__,RefSet:__CJS__export_RefSet__,RefSetCache:__CJS__export_RefSetCache__,RunLengthStream:__CJS__export_RunLengthStream__,SEAC_ANALYSIS_ENABLED:__CJS__export_SEAC_ANALYSIS_ENABLED__,StandardEncoding:__CJS__export_StandardEncoding__,Stream:__CJS__export_Stream__,StreamType:__CJS__export_StreamType__,StreamsSequenceStream:__CJS__export_StreamsSequenceStream__,StringStream:__CJS__export_StringStream__,SymbolSetEncoding:__CJS__export_SymbolSetEncoding__,TextRenderingMode:__CJS__export_TextRenderingMode__,ToUnicodeMap:__CJS__export_ToUnicodeMap__,Type1Parser:__CJS__export_Type1Parser__,UNSUPPORTED_FEATURES:__CJS__export_UNSUPPORTED_FEATURES__,UnexpectedResponseException:__CJS__export_UnexpectedResponseException__,UnknownErrorException:__CJS__export_UnknownErrorException__,Util:__CJS__export_Util__,VerbosityLevel:__CJS__export_VerbosityLevel__,WinAnsiEncoding:__CJS__export_WinAnsiEncoding__,WorkerMessageHandler:__CJS__export_WorkerMessageHandler__,WorkerTask:__CJS__export_WorkerTask__,XRef:__CJS__export_XRef__,XRefEntryException:__CJS__export_XRefEntryException__,XRefParseException:__CJS__export_XRefParseException__,ZapfDingbatsEncoding:__CJS__export_ZapfDingbatsEncoding__,arrayByteLength:__CJS__export_arrayByteLength__,arraysToBytes:__CJS__export_arraysToBytes__,assert:__CJS__export_assert__,bidi:__CJS__export_bidi__,bytesToString:__CJS__export_bytesToString__,calculateMD5:__CJS__export_calculateMD5__,calculateSHA256:__CJS__export_calculateSHA256__,calculateSHA384:__CJS__export_calculateSHA384__,calculateSHA512:__CJS__export_calculateSHA512__,clearPrimitiveCaches:__CJS__export_clearPrimitiveCaches__,createObjectURL:__CJS__export_createObjectURL__,createPromiseCapability:__CJS__export_createPromiseCapability__,createValidAbsoluteUrl:__CJS__export_createValidAbsoluteUrl__,default:__CJS__export_default__,getDingbatsGlyphsUnicode:__CJS__export_getDingbatsGlyphsUnicode__,getEncoding:__CJS__export_getEncoding__,getFontType:__CJS__export_getFontType__,getGlyphMapForStandardFonts:__CJS__export_getGlyphMapForStandardFonts__,getGlyphsUnicode:__CJS__export_getGlyphsUnicode__,getInheritableProperty:__CJS__export_getInheritableProperty__,getLookupTableFactory:__CJS__export_getLookupTableFactory__,getMetrics:__CJS__export_getMetrics__,getNonStdFontMap:__CJS__export_getNonStdFontMap__,getNormalizedUnicodes:__CJS__export_getNormalizedUnicodes__,getQuadPoints:__CJS__export_getQuadPoints__,getSerifFonts:__CJS__export_getSerifFonts__,getStdFontMap:__CJS__export_getStdFontMap__,getSupplementalGlyphMapForArialBlack:__CJS__export_getSupplementalGlyphMapForArialBlack__,getSupplementalGlyphMapForCalibri:__CJS__export_getSupplementalGlyphMapForCalibri__,getSymbolsFonts:__CJS__export_getSymbolsFonts__,getTilingPatternIR:__CJS__export_getTilingPatternIR__,getUnicodeForGlyph:__CJS__export_getUnicodeForGlyph__,getUnicodeRangeFor:__CJS__export_getUnicodeRangeFor__,getVerbosityLevel:__CJS__export_getVerbosityLevel__,info:__CJS__export_info__,isArrayBuffer:__CJS__export_isArrayBuffer__,isArrayEqual:__CJS__export_isArrayEqual__,isBool:__CJS__export_isBool__,isCmd:__CJS__export_isCmd__,isDict:__CJS__export_isDict__,isEOF:__CJS__export_isEOF__,isEmptyObj:__CJS__export_isEmptyObj__,isName:__CJS__export_isName__,isNodeJS:__CJS__export_isNodeJS__,isNum:__CJS__export_isNum__,isPDFFunction:__CJS__export_isPDFFunction__,isRef:__CJS__export_isRef__,isRefsEqual:__CJS__export_isRefsEqual__,isSameOrigin:__CJS__export_isSameOrigin__,isStream:__CJS__export_isStream__,isString:__CJS__export_isString__,isWhiteSpace:__CJS__export_isWhiteSpace__,log2:__CJS__export_log2__,mapSpecialUnicodeValues:__CJS__export_mapSpecialUnicodeValues__,readInt8:__CJS__export_readInt8__,readUint16:__CJS__export_readUint16__,readUint32:__CJS__export_readUint32__,removeNullCharacters:__CJS__export_removeNullCharacters__,reverseIfRtl:__CJS__export_reverseIfRtl__,setVerbosityLevel:__CJS__export_setVerbosityLevel__,shadow:__CJS__export_shadow__,string32:__CJS__export_string32__,stringToBytes:__CJS__export_stringToBytes__,stringToPDFString:__CJS__export_stringToPDFString__,stringToUTF8String:__CJS__export_stringToUTF8String__,toRomanNumerals:__CJS__export_toRomanNumerals__,undefined:__CJS__export_undefined__,unreachable:__CJS__export_unreachable__,utf8StringToString:__CJS__export_utf8StringToString__,warn:__CJS__export_warn__},Symbol.toStringTag,{value:"Module"}));(typeof window<"u"?window:{}).pdfjsWorker=__CJS__export_default__||__CJS__import__0__;__CJS__export_AppOptions__&&__CJS__export_AppOptions__.set("defaultUrl",null);const themeCacheKey="vue-pdf-app-theme",errorHandler=console.error.bind(console),pdfPrint=window.print.bind(window);window.print=window.__nativePrint__||pdfPrint;const _sfc_main=vue.defineComponent({props:{config:{default:()=>toolbarConfig,type:Object},title:{type:Boolean,default:()=>!1},pdf:{type:[String,ArrayBuffer]},theme:String,fileName:String,idConfig:{type:Object},pageScale:[Number,String],pageNumber:Number},setup(x,t){const a=vue.ref(JSON.stringify(locale)),r=vue.ref(!1),i=vue.ref(!0),p=vue.ref(!0),e=vue.ref(window.localStorage.getItem(themeCacheKey)),N=vue.computed(()=>{const F=x.idConfig;return(F==null?void 0:F.viewAttachments)&&(F==null?void 0:F.viewOutline)&&(F==null?void 0:F.viewThumbnail)||!x.config.sidebar}),w=vue.computed(()=>x.config.toolbar===!1?"zero-top":""),$=vue.computed(()=>{if(x.theme)return x.theme;if(e.value)return e.value;const F=window.getComputedStyle(document.documentElement).getPropertyValue("content").replace(/"/g,"");return["light","dark"].includes(F)?F:"dark"}),U=vue.computed(()=>({toggleTheme:g,isSidebarHidden:i.value,isFindbarHidden:p.value})),m=vue.ref(),n=vue.ref(),J=vue.ref(),O=vue.ref();vue.onBeforeUnmount(()=>{console.log(" PdfViewer onBeforeUnmount"),f(),m.value&&m.value(),n.value&&n.value(),J.value&&J.value(),O.value&&O.value()}),window.print=pdfPrint,__CJS__export_PDFViewerApplication__.isViewerEmbedded=!x.title,t.emit("after-created",__CJS__export_PDFViewerApplication__),vue.onMounted(()=>{h();const F=getAppConfig(x.idConfig);__CJS__export_PDFViewerApplication__&&(__CJS__export_PDFViewerApplication__.run(F),__CJS__export_PDFViewerApplication__.initializedPromise.then(u).then(b).then(L).then(M).catch(errorHandler))});function L(){const T=getAppConfig(x.idConfig).sidebar.toggleButton,D=_;T==null||T.addEventListener("click",D),m.value=()=>{T==null||T.removeEventListener("click",D)}}function M(){const T=getAppConfig(x.idConfig).findBar.toggleButton,D=d;T==null||T.addEventListener("click",D),n.value=()=>{T==null||T.removeEventListener("click",D)}}function P(){if(r.value)return;const F=document.getElementById(PDF_FILE_INPUT_ID),T=async()=>{var D;await((D=__CJS__export_PDFViewerApplication__.pdfLoadingTask)==null?void 0:D.promise),c()};F==null||F.addEventListener("change",T),J.value=()=>{F==null||F.removeEventListener("change",T)},r.value=!0}function b(){v(),__CJS__export_PDFViewerApplication__&&(x.pdf?__CJS__export_PDFViewerApplication__.open(x.pdf).then(()=>{var F;return x.pageNumber&&setTimeout(()=>__CJS__export_PDFViewerApplication__.page=x.pageNumber),(F=__CJS__export_PDFViewerApplication__.pdfDocument)==null?void 0:F.getMetadata()}).then(F=>{__CJS__export_PDFViewerApplication__.contentDispositionFilename=x.fileName||F.contentDispositionFilename,t.emit("pages-rendered",__CJS__export_PDFViewerApplication__)}).catch(errorHandler):__CJS__export_PDFViewerApplication__.close())}function _(){const F=__CJS__export_PDFViewerApplication__==null?void 0:__CJS__export_PDFViewerApplication__.pdfSidebar;i.value=!(F&&F.isOpen)}function d(){const F=__CJS__export_PDFViewerApplication__==null?void 0:__CJS__export_PDFViewerApplication__.findBar;p.value=!(F&&F.opened)}async function c(){var F;l(),t.emit("open",__CJS__export_PDFViewerApplication__),(F=__CJS__export_PDFViewerApplication__==null?void 0:__CJS__export_PDFViewerApplication__.pdfViewer)!=null&&F.pagesPromise&&(await __CJS__export_PDFViewerApplication__.pdfViewer.pagesPromise.catch(errorHandler),x.pageNumber&&setTimeout(()=>__CJS__export_PDFViewerApplication__.page=x.pageNumber),_(),d(),t.emit("pages-rendered",__CJS__export_PDFViewerApplication__))}function h(){const F="printContainer",T=document.createElement("div");T.id=F,document.body.appendChild(T);const D=document.createElement("style");D.type="text/css",D.innerHTML=`
|
|
15
|
+
@media print {
|
|
16
|
+
body > *:not(#printContainer) {
|
|
17
|
+
display: none !important;
|
|
18
|
+
}
|
|
19
|
+
}`,document.head.appendChild(D),O.value=()=>{document.body.removeChild(T),document.head.removeChild(D)}}function f(){var T;v(),__CJS__export_PDFViewerApplication__.unbindEvents(),__CJS__export_PDFViewerApplication__.unbindWindowEvents(),(T=__CJS__export_PDFViewerApplication__.pdfDocument)==null||T.destroy();const F=document.getElementById(PDF_FILE_INPUT_ID);F&&F.remove(),window.print=window.__nativePrint__||window.print}function g(){const F=$.value==="dark"?"light":"dark";t.emit("update:theme",F),e.value=F,window.localStorage.setItem(themeCacheKey,F)}function v(){var T;const F=(T=__CJS__export_PDFViewerApplication__.pdfRenderingQueue)==null?void 0:T.idleTimeout;clearTimeout(F)}function s(F){return`{ "scale": ${F} }`}function o(F,T){return T&&x.idConfig?!x.idConfig[T]:getToolbarConfigValue(x.config,F)!==!1}function u(){x.pageScale&&__CJS__export_AppOptions__.set("defaultZoomValue",x.pageScale)}function l(){__CJS__export_PDFViewerApplication__.loadingBar.show(),__CJS__export_PDFViewerApplication__.loadingBar.percent=0}return vue.watch(()=>x.pdf,b),{showElem:o,getScale:s,slotProps:U,isToolbarHidden:w,isSidebarToolbarHidden:N,localTheme:$,defaultLocale:a,bindOpenHandler:P}}}),_export_sfc=(x,t)=>{const a=x.__vccOpts||x;for(const[r,i]of t)a[r]=i;return a},_hoisted_1={id:"outerContainer"},_hoisted_2={id:"toolbarSidebar"},_hoisted_3={class:"splitToolbarButton toggled"},_hoisted_4={id:"viewThumbnail",class:"toolbarButton toggled vue-pdf-app-icon view-thumbnail",title:"Show Thumbnails",tabindex:"2","data-l10n-id":"thumbs"},_hoisted_5={id:"viewOutline",class:"toolbarButton vue-pdf-app-icon view-outline",title:"Show Document Outline (double-click to expand/collapse all items)",tabindex:"3","data-l10n-id":"document_outline"},_hoisted_6={id:"viewAttachments",class:"toolbarButton vue-pdf-app-icon view-attachments",title:"Show Attachments",tabindex:"4","data-l10n-id":"attachments"},_hoisted_7={id:"thumbnailView"},_hoisted_8={id:"outlineView",class:"hidden"},_hoisted_9={id:"attachmentsView",class:"hidden"},_hoisted_10={id:"mainContainer"},_hoisted_11={id:"findbar",class:"findbar hidden doorHanger"},_hoisted_12={id:"secondaryToolbar",class:"secondaryToolbar hidden doorHangerRight"},_hoisted_13={id:"secondaryToolbarButtonContainer"},_hoisted_14={id:"secondaryPresentationMode",class:"secondaryToolbarButton presentationMode visibleLargeView vue-pdf-app-icon presentation-mode",title:"Switch to Presentation Mode",tabindex:"51","data-l10n-id":"presentation_mode"},_hoisted_15={id:"secondaryPrint",class:"secondaryToolbarButton print visibleMediumView vue-pdf-app-icon print-button",title:"Print",tabindex:"53","data-l10n-id":"print"},_hoisted_16={id:"secondaryDownload",class:"secondaryToolbarButton download visibleMediumView vue-pdf-app-icon download-button",title:"Download",tabindex:"54","data-l10n-id":"download"},_hoisted_17={id:"secondaryViewBookmark",href:"#",class:"secondaryToolbarButton bookmark visibleSmallView vue-pdf-app-icon bookmark-button",title:"Current view (copy or open in new window)",tabindex:"55","data-l10n-id":"bookmark"},_hoisted_18={key:0,class:"horizontalToolbarSeparator visibleLargeView"},_hoisted_19={id:"firstPage",class:"secondaryToolbarButton firstPage vue-pdf-app-icon first-page",title:"Go to First Page",tabindex:"56","data-l10n-id":"first_page"},_hoisted_20={id:"lastPage",class:"secondaryToolbarButton lastPage vue-pdf-app-icon last-page",title:"Go to Last Page",tabindex:"57","data-l10n-id":"last_page"},_hoisted_21={key:1,class:"horizontalToolbarSeparator"},_hoisted_22={id:"pageRotateCw",class:"secondaryToolbarButton rotateCw vue-pdf-app-icon rotate-clockwise",title:"Rotate Clockwise",tabindex:"58","data-l10n-id":"page_rotate_cw"},_hoisted_23={id:"pageRotateCcw",class:"secondaryToolbarButton rotateCcw vue-pdf-app-icon rotate-counter-clockwise",title:"Rotate Counterclockwise",tabindex:"59","data-l10n-id":"page_rotate_ccw"},_hoisted_24={key:2,class:"horizontalToolbarSeparator"},_hoisted_25={id:"cursorSelectTool",class:"secondaryToolbarButton selectTool toggled vue-pdf-app-icon select-tool",title:"Enable Text Selection Tool",tabindex:"60","data-l10n-id":"cursor_text_select_tool"},_hoisted_26={id:"cursorHandTool",class:"secondaryToolbarButton handTool vue-pdf-app-icon hand-tool",title:"Enable Hand Tool",tabindex:"61","data-l10n-id":"cursor_hand_tool"},_hoisted_27={key:3,class:"horizontalToolbarSeparator"},_hoisted_28={id:"scrollVertical",class:"secondaryToolbarButton scrollModeButtons scrollVertical toggled vue-pdf-app-icon scroll-vertical",title:"Use Vertical Scrolling",tabindex:"62","data-l10n-id":"scroll_vertical"},_hoisted_29={id:"scrollHorizontal",class:"secondaryToolbarButton scrollModeButtons scrollHorizontal vue-pdf-app-icon scroll-horizontal",title:"Use Horizontal Scrolling",tabindex:"63","data-l10n-id":"scroll_horizontal"},_hoisted_30={id:"scrollWrapped",class:"secondaryToolbarButton scrollModeButtons scrollWrapped vue-pdf-app-icon scroll-wrapped",title:"Use Wrapped Scrolling",tabindex:"64","data-l10n-id":"scroll_wrapped"},_hoisted_31={key:4,class:"horizontalToolbarSeparator scrollModeButtons"},_hoisted_32={id:"spreadNone",class:"secondaryToolbarButton spreadModeButtons spreadNone toggled vue-pdf-app-icon spread-none",title:"Do not join page spreads",tabindex:"65","data-l10n-id":"spread_none"},_hoisted_33={id:"spreadOdd",class:"secondaryToolbarButton spreadModeButtons vue-pdf-app-icon spread-odd",title:"Join page spreads starting with odd-numbered pages",tabindex:"66","data-l10n-id":"spread_odd"},_hoisted_34={id:"spreadEven",class:"secondaryToolbarButton spreadModeButtons spreadEven vue-pdf-app-icon spread-even",title:"Join page spreads starting with even-numbered pages",tabindex:"67","data-l10n-id":"spread_even"},_hoisted_35={key:5,class:"horizontalToolbarSeparator spreadModeButtons"},_hoisted_36={id:"documentProperties",class:"secondaryToolbarButton documentProperties vue-pdf-app-icon document-properties",title:"Document Properties…",tabindex:"68","data-l10n-id":"document_properties"},_hoisted_37={class:"toolbar"},_hoisted_38={id:"toolbarContainer"},_hoisted_39={id:"toolbarViewer"},_hoisted_40={id:"toolbarViewerLeft"},_hoisted_41={id:"sidebarToggle",class:"toolbarButton vue-pdf-app-icon sidebar-toggle",title:"Toggle Sidebar",tabindex:"11","data-l10n-id":"toggle_sidebar"},_hoisted_42={key:0,class:"toolbarButtonSpacer"},_hoisted_43={id:"viewFind",class:"toolbarButton vue-pdf-app-icon view-find",title:"Find in Document",tabindex:"12","data-l10n-id":"findbar"},_hoisted_44={class:"splitToolbarButton hiddenSmallView"},_hoisted_45={id:"previous",class:"toolbarButton pageUp vue-pdf-app-icon page-up",title:"Previous Page",tabindex:"13","data-l10n-id":"previous"},_hoisted_46={key:0,class:"splitToolbarButtonSeparator"},_hoisted_47={id:"next",class:"toolbarButton pageDown vue-pdf-app-icon page-down",title:"Next Page",tabindex:"14","data-l10n-id":"next"},_hoisted_48={id:"pageNumber",type:"number",class:"toolbarField pageNumber",title:"Page",value:"1",size:"4",min:"1",tabindex:"15","data-l10n-id":"page",autocomplete:"off"},_hoisted_49={id:"numPages",class:"toolbarLabel"},_hoisted_50={id:"toolbarViewerRight"},_hoisted_51={id:"presentationMode",class:"toolbarButton presentationMode hiddenLargeView vue-pdf-app-icon presentation-mode",title:"Switch to Presentation Mode",tabindex:"31","data-l10n-id":"presentation_mode"},_hoisted_52={id:"print",class:"toolbarButton print hiddenMediumView vue-pdf-app-icon print-button",title:"Print",tabindex:"33","data-l10n-id":"print"},_hoisted_53={id:"download",class:"toolbarButton download hiddenMediumView vue-pdf-app-icon download-button",title:"Download",tabindex:"34","data-l10n-id":"download"},_hoisted_54={id:"viewBookmark",href:"#",class:"toolbarButton bookmark hiddenSmallView vue-pdf-app-icon bookmark-button",title:"Current view (copy or open in new window)",tabindex:"35","data-l10n-id":"bookmark"},_hoisted_55={key:0,class:"verticalToolbarSeparator hiddenSmallView"},_hoisted_56={id:"secondaryToolbarToggle",class:"toolbarButton vue-pdf-app-icon secondary-toolbar-toggle",title:"Tools",tabindex:"36","data-l10n-id":"tools"},_hoisted_57={id:"toolbarViewerMiddle"},_hoisted_58={class:"splitToolbarButton"},_hoisted_59={id:"zoomOut",class:"toolbarButton zoomOut vue-pdf-app-icon zoom-out",title:"Zoom Out",tabindex:"21","data-l10n-id":"zoom_out"},_hoisted_60={key:0,class:"splitToolbarButtonSeparator"},_hoisted_61={id:"zoomIn",class:"toolbarButton zoomIn vue-pdf-app-icon zoom-in",title:"Zoom In",tabindex:"22","data-l10n-id":"zoom_in"},_hoisted_62={id:"scaleSelectContainer",class:"dropdownToolbarButton vue-pdf-app-icon dropdown-toolbar-button"},_hoisted_63={id:"scaleSelect",title:"Zoom",tabindex:"23","data-l10n-id":"zoom"},_hoisted_64=["data-l10n-args"],_hoisted_65=["data-l10n-args"],_hoisted_66=["data-l10n-args"],_hoisted_67=["data-l10n-args"],_hoisted_68=["data-l10n-args"],_hoisted_69=["data-l10n-args"],_hoisted_70=["data-l10n-args"],_hoisted_71=["data-l10n-args"],_hoisted_72={id:"viewerContextMenu",type:"context"},_hoisted_73={id:"errorWrapper",hidden:"true"};function _sfc_render(x,t,a,r,i,p){return vue.openBlock(),vue.createElementBlock("div",{id:"vuePdfApp",class:vue.normalizeClass([[x.localTheme],"pdf-app"])},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent("script"),{type:"application/l10n"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(x.defaultLocale),1)]),_:1})),vue.createElementVNode("div",_hoisted_1,[vue.withDirectives(vue.createElementVNode("div",{id:"sidebarContainer",class:vue.normalizeClass([x.isToolbarHidden])},[vue.withDirectives(vue.createElementVNode("div",_hoisted_2,[vue.renderSlot(x.$slots,"toolbar-sidebar-prepend",vue.normalizeProps(vue.guardReactiveProps(x.slotProps)),void 0,!0),vue.createElementVNode("div",_hoisted_3,[vue.withDirectives(vue.createElementVNode("button",_hoisted_4,t[2]||(t[2]=[vue.createElementVNode("span",{"data-l10n-id":"thumbs_label"},"Thumbnails",-1)]),512),[[vue.vShow,x.showElem("sidebar.viewThumbnail","viewThumbnail")]]),vue.withDirectives(vue.createElementVNode("button",_hoisted_5,t[3]||(t[3]=[vue.createElementVNode("span",{"data-l10n-id":"document_outline_label"},"Document Outline",-1)]),512),[[vue.vShow,x.showElem("sidebar.viewOutline","viewOutline")]]),vue.withDirectives(vue.createElementVNode("button",_hoisted_6,t[4]||(t[4]=[vue.createElementVNode("span",{"data-l10n-id":"attachments_label"},"Attachments",-1)]),512),[[vue.vShow,x.showElem("sidebar.viewAttachments","viewAttachments")]])]),vue.renderSlot(x.$slots,"toolbar-sidebar-append",vue.normalizeProps(vue.guardReactiveProps(x.slotProps)),void 0,!0)],512),[[vue.vShow,!x.isSidebarToolbarHidden]]),vue.withDirectives(vue.createElementVNode("div",{id:"sidebarContent",class:vue.normalizeClass({"zero-top":x.isSidebarToolbarHidden})},[vue.withDirectives(vue.createElementVNode("div",_hoisted_7,null,512),[[vue.vShow,x.showElem("sidebar.viewThumbnail")]]),vue.withDirectives(vue.createElementVNode("div",_hoisted_8,null,512),[[vue.vShow,x.showElem("sidebar.viewOutline")]]),vue.withDirectives(vue.createElementVNode("div",_hoisted_9,null,512),[[vue.vShow,x.showElem("sidebar.viewAttachments")]])],2),[[vue.vShow,x.showElem("sidebar")]]),t[5]||(t[5]=vue.createElementVNode("div",{id:"sidebarResizer",class:"hidden"},null,-1))],2),[[vue.vShow,x.showElem("sidebar")]]),vue.createElementVNode("div",_hoisted_10,[vue.withDirectives(vue.createElementVNode("div",_hoisted_11,t[6]||(t[6]=[vue.createStaticVNode('<div id="findbarInputContainer" data-v-3fe62cab><input id="findInput" class="toolbarField" title="Find" placeholder="Find in document…" tabindex="91" data-l10n-id="find_input" data-v-3fe62cab><div class="splitToolbarButton" data-v-3fe62cab><button id="findPrevious" class="toolbarButton findPrevious vue-pdf-app-icon find-previous" title="Find the previous occurrence of the phrase" tabindex="92" data-l10n-id="find_previous" data-v-3fe62cab><span data-l10n-id="find_previous_label" data-v-3fe62cab>Previous</span></button><div class="splitToolbarButtonSeparator" data-v-3fe62cab></div><button id="findNext" class="toolbarButton findNext vue-pdf-app-icon find-next" title="Find the next occurrence of the phrase" tabindex="93" data-l10n-id="find_next" data-v-3fe62cab><span data-l10n-id="find_next_label" data-v-3fe62cab>Next</span></button></div></div><div id="findbarOptionsOneContainer" data-v-3fe62cab><input id="findHighlightAll" type="checkbox" class="toolbarField" tabindex="94" data-v-3fe62cab><label for="findHighlightAll" class="toolbarLabel" data-l10n-id="find_highlight" data-v-3fe62cab>Highlight all</label><input id="findMatchCase" type="checkbox" class="toolbarField" tabindex="95" data-v-3fe62cab><label for="findMatchCase" class="toolbarLabel" data-l10n-id="find_match_case_label" data-v-3fe62cab>Match case</label></div><div id="findbarOptionsTwoContainer" data-v-3fe62cab><input id="findEntireWord" type="checkbox" class="toolbarField" tabindex="96" data-v-3fe62cab><label for="findEntireWord" class="toolbarLabel" data-l10n-id="find_entire_word_label" data-v-3fe62cab>Whole words</label><span id="findResultsCount" class="toolbarLabel hidden" data-v-3fe62cab></span></div><div id="findbarMessageContainer" data-v-3fe62cab><span id="findMsg" class="toolbarLabel" data-v-3fe62cab></span></div>',4)]),512),[[vue.vShow,x.showElem("toolbar.toolbarViewerLeft.findbar","findbar")]]),vue.withDirectives(vue.createElementVNode("div",_hoisted_12,[vue.createElementVNode("div",_hoisted_13,[vue.renderSlot(x.$slots,"secondary-toolbar-prepend",vue.normalizeProps(vue.guardReactiveProps(x.slotProps)),void 0,!0),vue.withDirectives(vue.createElementVNode("button",_hoisted_14,t[7]||(t[7]=[vue.createElementVNode("span",{"data-l10n-id":"presentation_mode_label"},"Presentation Mode",-1)]),512),[[vue.vShow,x.showElem("secondaryToolbar.secondaryPresentationMode")]]),vue.withDirectives(vue.createElementVNode("button",{id:"secondaryOpenFile",class:"secondaryToolbarButton openFile visibleLargeView vue-pdf-app-icon open-file",title:"Open File",tabindex:"52","data-l10n-id":"open_file",onClickOnce:t[0]||(t[0]=(...e)=>x.bindOpenHandler&&x.bindOpenHandler(...e))},t[8]||(t[8]=[vue.createElementVNode("span",{"data-l10n-id":"open_file_label"},"Open",-1)]),544),[[vue.vShow,x.showElem("secondaryToolbar.secondaryOpenFile")]]),vue.withDirectives(vue.createElementVNode("button",_hoisted_15,t[9]||(t[9]=[vue.createElementVNode("span",{"data-l10n-id":"print_label"},"Print",-1)]),512),[[vue.vShow,x.showElem("secondaryToolbar.secondaryPrint")]]),vue.withDirectives(vue.createElementVNode("button",_hoisted_16,t[10]||(t[10]=[vue.createElementVNode("span",{"data-l10n-id":"download_label"},"Download",-1)]),512),[[vue.vShow,x.showElem("secondaryToolbar.secondaryDownload")]]),vue.withDirectives(vue.createElementVNode("a",_hoisted_17,t[11]||(t[11]=[vue.createElementVNode("span",{"data-l10n-id":"bookmark_label"},"Current View",-1)]),512),[[vue.vShow,x.showElem("secondaryToolbar.secondaryViewBookmark")]]),x.showElem("secondaryToolbar.secondaryPresentationMode")||x.showElem("secondaryToolbar.secondaryOpenFile")||x.showElem("secondaryToolbar.secondaryPrint")||x.showElem("secondaryToolbar.secondaryDownload")||x.showElem("secondaryToolbar.secondaryViewBookmark")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_18)):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("button",_hoisted_19,t[12]||(t[12]=[vue.createElementVNode("span",{"data-l10n-id":"first_page_label"},"Go to First Page",-1)]),512),[[vue.vShow,x.showElem("secondaryToolbar.firstPage","firstPage")]]),vue.withDirectives(vue.createElementVNode("button",_hoisted_20,t[13]||(t[13]=[vue.createElementVNode("span",{"data-l10n-id":"last_page_label"},"Go to Last Page",-1)]),512),[[vue.vShow,x.showElem("secondaryToolbar.lastPage","lastPage")]]),x.showElem("secondaryToolbar.lastPage","lastPage")||x.showElem("secondaryToolbar.firstPage","firstPage")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_21)):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("button",_hoisted_22,t[14]||(t[14]=[vue.createElementVNode("span",{"data-l10n-id":"page_rotate_cw_label"},"Rotate Clockwise",-1)]),512),[[vue.vShow,x.showElem("secondaryToolbar.pageRotateCw","pageRotateCw")]]),vue.withDirectives(vue.createElementVNode("button",_hoisted_23,t[15]||(t[15]=[vue.createElementVNode("span",{"data-l10n-id":"page_rotate_ccw_label"},"Rotate Counterclockwise",-1)]),512),[[vue.vShow,x.showElem("secondaryToolbar.pageRotateCcw","pageRotateCcw")]]),x.showElem("secondaryToolbar.pageRotateCcw","pageRotateCcw")||x.showElem("secondaryToolbar.pageRotateCw","pageRotateCw")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_24)):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("button",_hoisted_25,t[16]||(t[16]=[vue.createElementVNode("span",{"data-l10n-id":"cursor_text_select_tool_label"},"Text Selection Tool",-1)]),512),[[vue.vShow,x.showElem("secondaryToolbar.cursorSelectTool","cursorSelectTool")]]),vue.withDirectives(vue.createElementVNode("button",_hoisted_26,t[17]||(t[17]=[vue.createElementVNode("span",{"data-l10n-id":"cursor_hand_tool_label"},"Hand Tool",-1)]),512),[[vue.vShow,x.showElem("secondaryToolbar.cursorHandTool","cursorHandTool")]]),x.showElem("secondaryToolbar.cursorHandTool","cursorHandTool")||x.showElem("secondaryToolbar.cursorSelectTool","cursorSelectTool")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_27)):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("button",_hoisted_28,t[18]||(t[18]=[vue.createElementVNode("span",{"data-l10n-id":"scroll_vertical_label"},"Vertical Scrolling",-1)]),512),[[vue.vShow,x.showElem("secondaryToolbar.scrollVertical","scrollVertical")]]),vue.withDirectives(vue.createElementVNode("button",_hoisted_29,t[19]||(t[19]=[vue.createElementVNode("span",{"data-l10n-id":"scroll_horizontal_label"},"Horizontal Scrolling",-1)]),512),[[vue.vShow,x.showElem("secondaryToolbar.scrollHorizontal","scrollHorizontal")]]),vue.withDirectives(vue.createElementVNode("button",_hoisted_30,t[20]||(t[20]=[vue.createElementVNode("span",{"data-l10n-id":"scroll_wrapped_label"},"Wrapped Scrolling",-1)]),512),[[vue.vShow,x.showElem("secondaryToolbar.scrollWrapped","scrollWrapped")]]),x.showElem("secondaryToolbar.scrollWrapped","scrollWrapped")||x.showElem("secondaryToolbar.scrollHorizontal","scrollHorizontal")||x.showElem("secondaryToolbar.scrollVertical","scrollVertical")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_31)):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("button",_hoisted_32,t[21]||(t[21]=[vue.createElementVNode("span",{"data-l10n-id":"spread_none_label"},"No Spreads",-1)]),512),[[vue.vShow,x.showElem("secondaryToolbar.spreadNone","spreadNone")]]),vue.withDirectives(vue.createElementVNode("button",_hoisted_33,t[22]||(t[22]=[vue.createElementVNode("span",{"data-l10n-id":"spread_odd_label"},"Odd Spreads",-1)]),512),[[vue.vShow,x.showElem("secondaryToolbar.spreadOdd","spreadOdd")]]),vue.withDirectives(vue.createElementVNode("button",_hoisted_34,t[23]||(t[23]=[vue.createElementVNode("span",{"data-l10n-id":"spread_even_label"},"Even Spreads",-1)]),512),[[vue.vShow,x.showElem("secondaryToolbar.spreadEven","spreadEven")]]),x.showElem("secondaryToolbar.spreadEven","spreadEven")||x.showElem("secondaryToolbar.spreadOdd","spreadOdd")||x.showElem("secondaryToolbar.spreadNone","spreadNone")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_35)):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("button",_hoisted_36,t[24]||(t[24]=[vue.createElementVNode("span",{"data-l10n-id":"document_properties_label"},"Document Properties…",-1)]),512),[[vue.vShow,x.showElem("secondaryToolbar.documentProperties","documentProperties")]]),vue.renderSlot(x.$slots,"secondary-toolbar-append",vue.normalizeProps(vue.guardReactiveProps(x.slotProps)),void 0,!0)])],512),[[vue.vShow,x.showElem("secondaryToolbar")]]),vue.withDirectives(vue.createElementVNode("div",_hoisted_37,[vue.createElementVNode("div",_hoisted_38,[vue.createElementVNode("div",_hoisted_39,[vue.createElementVNode("div",_hoisted_40,[vue.renderSlot(x.$slots,"toolbar-left-prepend",vue.normalizeProps(vue.guardReactiveProps(x.slotProps)),void 0,!0),vue.withDirectives(vue.createElementVNode("button",_hoisted_41,t[25]||(t[25]=[vue.createElementVNode("span",{"data-l10n-id":"toggle_sidebar_label"},"Toggle Sidebar",-1)]),512),[[vue.vShow,x.showElem("sidebar","sidebarToggle")]]),x.showElem("sidebar")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_42)):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("button",_hoisted_43,t[26]||(t[26]=[vue.createElementVNode("span",{"data-l10n-id":"findbar_label"},"Find",-1)]),512),[[vue.vShow,x.showElem("toolbar.toolbarViewerLeft.findbar","toggleFindbar")]]),vue.createElementVNode("div",_hoisted_44,[vue.withDirectives(vue.createElementVNode("button",_hoisted_45,t[27]||(t[27]=[vue.createElementVNode("span",{"data-l10n-id":"previous_label"},"Previous",-1)]),512),[[vue.vShow,x.showElem("toolbar.toolbarViewerLeft.previous","previousPage")]]),x.showElem("toolbar.toolbarViewerLeft.next","nextPage")&&x.showElem("toolbar.toolbarViewerLeft.previous","previousPage")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_46)):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("button",_hoisted_47,t[28]||(t[28]=[vue.createElementVNode("span",{"data-l10n-id":"next_label"},"Next",-1)]),512),[[vue.vShow,x.showElem("toolbar.toolbarViewerLeft.next","nextPage")]])]),vue.withDirectives(vue.createElementVNode("input",_hoisted_48,null,512),[[vue.vShow,x.showElem("toolbar.toolbarViewerLeft.pageNumber","pageNumber")]]),vue.withDirectives(vue.createElementVNode("span",_hoisted_49,null,512),[[vue.vShow,x.showElem("toolbar.toolbarViewerLeft.pageNumber","numPages")]]),vue.renderSlot(x.$slots,"toolbar-left-append",vue.normalizeProps(vue.guardReactiveProps(x.slotProps)),void 0,!0)]),vue.createElementVNode("div",_hoisted_50,[vue.renderSlot(x.$slots,"toolbar-right-prepend",vue.normalizeProps(vue.guardReactiveProps(x.slotProps)),void 0,!0),vue.withDirectives(vue.createElementVNode("button",_hoisted_51,t[29]||(t[29]=[vue.createElementVNode("span",{"data-l10n-id":"presentation_mode_label"},"Presentation Mode",-1)]),512),[[vue.vShow,x.showElem("toolbar.toolbarViewerRight.presentationMode","presentationMode")]]),vue.withDirectives(vue.createElementVNode("button",{id:"openFile",class:"toolbarButton openFile hiddenLargeView vue-pdf-app-icon open-file",title:"Open File",tabindex:"32","data-l10n-id":"open_file",onClickOnce:t[1]||(t[1]=(...e)=>x.bindOpenHandler&&x.bindOpenHandler(...e))},t[30]||(t[30]=[vue.createElementVNode("span",{"data-l10n-id":"open_file_label"},"Open",-1)]),544),[[vue.vShow,x.showElem("toolbar.toolbarViewerRight.openFile","openFile")]]),vue.withDirectives(vue.createElementVNode("button",_hoisted_52,t[31]||(t[31]=[vue.createElementVNode("span",{"data-l10n-id":"print_label"},"Print",-1)]),512),[[vue.vShow,x.showElem("toolbar.toolbarViewerRight.print","print")]]),vue.withDirectives(vue.createElementVNode("button",_hoisted_53,t[32]||(t[32]=[vue.createElementVNode("span",{"data-l10n-id":"download_label"},"Download",-1)]),512),[[vue.vShow,x.showElem("toolbar.toolbarViewerRight.download","download")]]),vue.withDirectives(vue.createElementVNode("a",_hoisted_54,t[33]||(t[33]=[vue.createElementVNode("span",{"data-l10n-id":"bookmark_label"},"Current View",-1)]),512),[[vue.vShow,x.showElem("toolbar.toolbarViewerRight.viewBookmark","viewBookmark")]]),x.showElem("secondaryToolbar")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_55)):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("button",_hoisted_56,t[34]||(t[34]=[vue.createElementVNode("span",{"data-l10n-id":"tools_label"},"Tools",-1)]),512),[[vue.vShow,x.showElem("secondaryToolbar")]]),vue.renderSlot(x.$slots,"toolbar-right-append",vue.normalizeProps(vue.guardReactiveProps(x.slotProps)),void 0,!0)]),vue.createElementVNode("div",_hoisted_57,[vue.renderSlot(x.$slots,"toolbar-middle-prepend",vue.normalizeProps(vue.guardReactiveProps(x.slotProps)),void 0,!0),vue.createElementVNode("div",_hoisted_58,[vue.withDirectives(vue.createElementVNode("button",_hoisted_59,t[35]||(t[35]=[vue.createElementVNode("span",{"data-l10n-id":"zoom_out_label"},"Zoom Out",-1)]),512),[[vue.vShow,x.showElem("toolbar.toolbarViewerMiddle.zoomOut","zoomOut")]]),x.showElem("toolbar.toolbarViewerMiddle.zoomIn","zoomIn")&&x.showElem("toolbar.toolbarViewerMiddle.zoomOut","zoomOut")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_60)):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("button",_hoisted_61,t[36]||(t[36]=[vue.createElementVNode("span",{"data-l10n-id":"zoom_in_label"},"Zoom In",-1)]),512),[[vue.vShow,x.showElem("toolbar.toolbarViewerMiddle.zoomIn","zoomIn")]])]),vue.withDirectives(vue.createElementVNode("span",_hoisted_62,[vue.createElementVNode("select",_hoisted_63,[t[37]||(t[37]=vue.createStaticVNode('<option id="pageAutoOption" value="auto" selected data-l10n-id="page_scale_auto" data-v-3fe62cab> Automatic Zoom </option><option id="pageActualOption" value="page-actual" data-l10n-id="page_scale_actual" data-v-3fe62cab> Actual Size </option><option id="pageFitOption" value="page-fit" data-l10n-id="page_scale_fit" data-v-3fe62cab> Page Fit </option><option id="pageWidthOption" value="page-width" data-l10n-id="page_scale_width" data-v-3fe62cab> Page Width </option><option id="customScaleOption" value="custom" disabled hidden="true" data-v-3fe62cab></option>',5)),vue.createElementVNode("option",{"data-l10n-args":x.getScale(50),value:"0.5","data-l10n-id":"page_scale_percent"}," 50% ",8,_hoisted_64),vue.createElementVNode("option",{"data-l10n-args":x.getScale(75),value:"0.75","data-l10n-id":"page_scale_percent"}," 75% ",8,_hoisted_65),vue.createElementVNode("option",{"data-l10n-args":x.getScale(100),value:"1","data-l10n-id":"page_scale_percent"}," 100% ",8,_hoisted_66),vue.createElementVNode("option",{"data-l10n-args":x.getScale(125),value:"1.25","data-l10n-id":"page_scale_percent"}," 125% ",8,_hoisted_67),vue.createElementVNode("option",{"data-l10n-args":x.getScale(150),value:"1.5","data-l10n-id":"page_scale_percent"}," 150% ",8,_hoisted_68),vue.createElementVNode("option",{"data-l10n-args":x.getScale(200),value:"2","data-l10n-id":"page_scale_percent"}," 200% ",8,_hoisted_69),vue.createElementVNode("option",{"data-l10n-args":x.getScale(300),value:"3","data-l10n-id":"page_scale_percent"}," 300% ",8,_hoisted_70),vue.createElementVNode("option",{"data-l10n-args":x.getScale(400),value:"4","data-l10n-id":"page_scale_percent"}," 400% ",8,_hoisted_71)])],512),[[vue.vShow,x.showElem("toolbar.toolbarViewerMiddle.scaleSelectContainer")]]),vue.renderSlot(x.$slots,"toolbar-middle-append",vue.normalizeProps(vue.guardReactiveProps(x.slotProps)),void 0,!0)])])])],512),[[vue.vShow,x.showElem("toolbar")]]),t[41]||(t[41]=vue.createElementVNode("div",{id:"loadingBar"},[vue.createElementVNode("div",{class:"progress"},[vue.createElementVNode("div",{class:"glimmer"})])],-1)),vue.withDirectives(vue.createElementVNode("menu",_hoisted_72,t[38]||(t[38]=[vue.createElementVNode("div",{id:"contextFirstPage",label:"First Page","data-l10n-id":"first_page"},null,-1),vue.createElementVNode("div",{id:"contextLastPage",label:"Last Page","data-l10n-id":"last_page"},null,-1),vue.createElementVNode("div",{id:"contextPageRotateCw",label:"Rotate Clockwise","data-l10n-id":"page_rotate_cw"},null,-1),vue.createElementVNode("div",{id:"contextPageRotateCcw",label:"Rotate Counter-Clockwise","data-l10n-id":"page_rotate_ccw"},null,-1)]),512),[[vue.vShow,!1]]),vue.renderSlot(x.$slots,"viewer-header",vue.normalizeProps(vue.guardReactiveProps(x.slotProps)),void 0,!0),vue.renderSlot(x.$slots,"viewer-prepend",vue.normalizeProps(vue.guardReactiveProps(x.slotProps)),void 0,!0),vue.createElementVNode("div",{id:"viewerContainer",class:vue.normalizeClass([x.isToolbarHidden]),tabindex:"0"},t[39]||(t[39]=[vue.createElementVNode("div",{id:"viewer",class:"pdfViewer"},null,-1)]),2),vue.renderSlot(x.$slots,"viewer-append",vue.normalizeProps(vue.guardReactiveProps(x.slotProps)),void 0,!0),vue.renderSlot(x.$slots,"viewer-footer",vue.normalizeProps(vue.guardReactiveProps(x.slotProps)),void 0,!0),vue.withDirectives(vue.createElementVNode("div",_hoisted_73,t[40]||(t[40]=[vue.createStaticVNode('<div id="errorMessageLeft" data-v-3fe62cab><span id="errorMessage" data-v-3fe62cab></span><button id="errorShowMore" data-l10n-id="error_more_info" data-v-3fe62cab> More Information </button><button id="errorShowLess" data-l10n-id="error_less_info" hidden="true" data-v-3fe62cab> Less Information </button></div><div id="errorMessageRight" data-v-3fe62cab><button id="errorClose" data-l10n-id="error_close" data-v-3fe62cab> Close </button></div><div class="clearBoth" data-v-3fe62cab></div><textarea id="errorMoreInfo" hidden="true" readonly data-v-3fe62cab></textarea>',4)]),512),[[vue.vShow,x.showElem("errorWrapper")]])]),t[42]||(t[42]=vue.createStaticVNode('<div id="overlayContainer" class="hidden" data-v-3fe62cab><div id="passwordOverlay" class="container hidden" data-v-3fe62cab><div class="dialog" data-v-3fe62cab><div class="row" data-v-3fe62cab><p id="passwordText" data-l10n-id="password_label" data-v-3fe62cab> Enter the password to open this PDF file: </p></div><div class="row" data-v-3fe62cab><input id="password" type="password" class="toolbarField" data-v-3fe62cab></div><div class="buttonRow" data-v-3fe62cab><button id="passwordCancel" class="overlayButton" data-v-3fe62cab><span data-l10n-id="password_cancel" data-v-3fe62cab>Cancel</span></button><button id="passwordSubmit" class="overlayButton" data-v-3fe62cab><span data-l10n-id="password_ok" data-v-3fe62cab>OK</span></button></div></div></div><div id="documentPropertiesOverlay" class="container hidden" data-v-3fe62cab><div class="dialog" data-v-3fe62cab><div class="row" data-v-3fe62cab><span data-l10n-id="document_properties_file_name" data-v-3fe62cab>File name:</span><p id="fileNameField" data-v-3fe62cab> - </p></div><div class="row" data-v-3fe62cab><span data-l10n-id="document_properties_file_size" data-v-3fe62cab>File size:</span><p id="fileSizeField" data-v-3fe62cab> - </p></div><div class="separator" data-v-3fe62cab></div><div class="row" data-v-3fe62cab><span data-l10n-id="document_properties_title" data-v-3fe62cab>Title:</span><p id="titleField" data-v-3fe62cab> - </p></div><div class="row" data-v-3fe62cab><span data-l10n-id="document_properties_author" data-v-3fe62cab>Author:</span><p id="authorField" data-v-3fe62cab> - </p></div><div class="row" data-v-3fe62cab><span data-l10n-id="document_properties_subject" data-v-3fe62cab>Subject:</span><p id="subjectField" data-v-3fe62cab> - </p></div><div class="row" data-v-3fe62cab><span data-l10n-id="document_properties_keywords" data-v-3fe62cab>Keywords:</span><p id="keywordsField" data-v-3fe62cab> - </p></div><div class="row" data-v-3fe62cab><span data-l10n-id="document_properties_creation_date" data-v-3fe62cab>Creation Date:</span><p id="creationDateField" data-v-3fe62cab> - </p></div><div class="row" data-v-3fe62cab><span data-l10n-id="document_properties_modification_date" data-v-3fe62cab>Modification Date:</span><p id="modificationDateField" data-v-3fe62cab> - </p></div><div class="row" data-v-3fe62cab><span data-l10n-id="document_properties_creator" data-v-3fe62cab>Creator:</span><p id="creatorField" data-v-3fe62cab> - </p></div><div class="separator" data-v-3fe62cab></div><div class="row" data-v-3fe62cab><span data-l10n-id="document_properties_producer" data-v-3fe62cab>PDF Producer:</span><p id="producerField" data-v-3fe62cab> - </p></div><div class="row" data-v-3fe62cab><span data-l10n-id="document_properties_version" data-v-3fe62cab>PDF Version:</span><p id="versionField" data-v-3fe62cab> - </p></div><div class="row" data-v-3fe62cab><span data-l10n-id="document_properties_page_count" data-v-3fe62cab>Page Count:</span><p id="pageCountField" data-v-3fe62cab> - </p></div><div class="row" data-v-3fe62cab><span data-l10n-id="document_properties_page_size" data-v-3fe62cab>Page Size:</span><p id="pageSizeField" data-v-3fe62cab> - </p></div><div class="separator" data-v-3fe62cab></div><div class="row" data-v-3fe62cab><span data-l10n-id="document_properties_linearized" data-v-3fe62cab>Fast Web View:</span><p id="linearizedField" data-v-3fe62cab> - </p></div><div class="buttonRow" data-v-3fe62cab><button id="documentPropertiesClose" class="overlayButton" data-v-3fe62cab><span data-l10n-id="document_properties_close" data-v-3fe62cab>Close</span></button></div></div></div><div id="printServiceOverlay" class="container hidden" data-v-3fe62cab><div class="dialog" data-v-3fe62cab><div class="row" data-v-3fe62cab><span data-l10n-id="print_progress_message" data-v-3fe62cab>Preparing document for printing…</span></div><div class="row" data-v-3fe62cab><progress value="0" max="100" data-v-3fe62cab></progress><span data-l10n-id="print_progress_percent" data-l10n-args="{ 'progress': 0 }" class="relative-progress" data-v-3fe62cab>0%</span></div><div class="buttonRow" data-v-3fe62cab><button id="printCancel" class="overlayButton" data-v-3fe62cab><span data-l10n-id="print_progress_close" data-v-3fe62cab>Cancel</span></button></div></div></div></div>',1))]),vue.renderSlot(x.$slots,"footer",vue.normalizeProps(vue.guardReactiveProps(x.slotProps)),void 0,!0)],2)}const PdfViewer=_export_sfc(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-3fe62cab"]]),components=[PdfViewer];function install(x){components.forEach(t=>{t.name!=null?x.component(t.name,t):console.warn(`${t.name} is missing name property`)})}exports.PdfViewer=PdfViewer;exports.default=install;exports.install=install;
|