@verdocs/web-sdk 1.9.0 → 1.9.1
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/dist/cjs/{Templates-111c6bae.js → Templates-e96f3799.js} +2 -2
- package/dist/cjs/{Templates-111c6bae.js.map → Templates-e96f3799.js.map} +1 -1
- package/dist/cjs/{VerdocsEndpoint-859be227.js → VerdocsEndpoint-0dcde19d.js} +4 -2
- package/dist/cjs/VerdocsEndpoint-0dcde19d.js.map +1 -0
- package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-build.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-document-page_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-preview.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-send.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-sign.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-create_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-fields.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-properties.cjs.entry.js +1 -1
- package/dist/components/Templates.js +1 -1
- package/dist/components/Templates.js.map +1 -1
- package/dist/components/VerdocsEndpoint.js +3 -1
- package/dist/components/VerdocsEndpoint.js.map +1 -1
- package/dist/custom-elements.json +1084 -0
- package/dist/docs.json +1 -1
- package/dist/esm/{Templates-22116158.js → Templates-b21d67ac.js} +2 -2
- package/dist/esm/{Templates-22116158.js.map → Templates-b21d67ac.js.map} +1 -1
- package/dist/esm/{VerdocsEndpoint-9db225a3.js → VerdocsEndpoint-9acb111c.js} +4 -2
- package/dist/esm/VerdocsEndpoint-9acb111c.js.map +1 -0
- package/dist/esm/verdocs-auth.entry.js +1 -1
- package/dist/esm/verdocs-build.entry.js +1 -1
- package/dist/esm/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm/verdocs-document-page_3.entry.js +1 -1
- package/dist/esm/verdocs-preview.entry.js +2 -2
- package/dist/esm/verdocs-quick-functions_3.entry.js +2 -2
- package/dist/esm/verdocs-search.entry.js +1 -1
- package/dist/esm/verdocs-send.entry.js +2 -2
- package/dist/esm/verdocs-sign.entry.js +1 -1
- package/dist/esm/verdocs-template-create_2.entry.js +1 -1
- package/dist/esm/verdocs-template-fields.entry.js +2 -2
- package/dist/esm/verdocs-template-properties.entry.js +1 -1
- package/dist/esm-es5/Templates-b21d67ac.js +2 -0
- package/dist/esm-es5/Templates-b21d67ac.js.map +1 -0
- package/dist/esm-es5/{VerdocsEndpoint-9db225a3.js → VerdocsEndpoint-9acb111c.js} +1 -1
- package/dist/esm-es5/VerdocsEndpoint-9acb111c.js.map +1 -0
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-build.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm-es5/verdocs-document-page_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-send.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-create_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-fields.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-properties.entry.js +1 -1
- package/dist/verdocs-web-sdk/{p-9621659f.system.entry.js → p-00cbcb4e.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-9621659f.system.entry.js.map → p-00cbcb4e.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/p-02b8feef.system.js +2 -0
- package/dist/verdocs-web-sdk/p-02b8feef.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-625b652b.system.entry.js → p-07f9dc48.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-625b652b.system.entry.js.map → p-07f9dc48.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/p-0e9450cd.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-5c5f51d0.entry.js → p-0e95328a.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-5c5f51d0.entry.js.map → p-0e95328a.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-a3ab0ddc.js → p-10d804cf.js} +1 -1
- package/dist/verdocs-web-sdk/p-10d804cf.js.map +1 -0
- package/dist/verdocs-web-sdk/p-19f6c997.js +2 -0
- package/dist/verdocs-web-sdk/p-19f6c997.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-cc9c9e0a.system.entry.js → p-2a99e4f6.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-cc9c9e0a.system.entry.js.map → p-2a99e4f6.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-8d45cd72.entry.js → p-3d189e0a.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-8d45cd72.entry.js.map → p-3d189e0a.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-e23a07e1.entry.js → p-3ffc6172.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e23a07e1.entry.js.map → p-3ffc6172.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-cb87e087.entry.js → p-4118a026.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-cb87e087.entry.js.map → p-4118a026.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-52ddaceb.entry.js → p-42fcd6ea.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-52ddaceb.entry.js.map → p-42fcd6ea.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-0f1e7a03.system.entry.js → p-47b67754.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-0f1e7a03.system.entry.js.map → p-47b67754.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-0e916a9f.system.entry.js → p-522d9bc0.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-0e916a9f.system.entry.js.map → p-522d9bc0.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-70e1e6bf.system.entry.js → p-55fbb4b2.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-70e1e6bf.system.entry.js.map → p-55fbb4b2.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/p-572039e2.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-8a338d80.entry.js.map → p-572039e2.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-b5c0cc2f.system.entry.js → p-65ec779c.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-b5c0cc2f.system.entry.js.map → p-65ec779c.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-5ef55baa.system.entry.js → p-72caf72a.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-5ef55baa.system.entry.js.map → p-72caf72a.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-cfe0b3ca.system.js → p-7a63bdd1.system.js} +1 -1
- package/dist/verdocs-web-sdk/p-7a63bdd1.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-3ac17b4d.entry.js → p-7fb1f63a.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-3ac17b4d.entry.js.map → p-7fb1f63a.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-93cb13a3.entry.js → p-82b2f059.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-93cb13a3.entry.js.map → p-82b2f059.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/p-892f1969.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-f0617648.entry.js.map → p-892f1969.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-17b11009.entry.js → p-9a6c1aa2.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-17b11009.entry.js.map → p-9a6c1aa2.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-93ef8f9d.system.entry.js → p-a636fd87.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-93ef8f9d.system.entry.js.map → p-a636fd87.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-3060c58f.system.entry.js → p-a7df258a.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-3060c58f.system.entry.js.map → p-a7df258a.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-426ac808.system.entry.js → p-bba4878d.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-426ac808.system.entry.js.map → p-bba4878d.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-cee969b9.entry.js → p-df84c85a.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-cee969b9.entry.js.map → p-df84c85a.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-8d8106a0.system.entry.js → p-f0a4aba9.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-8d8106a0.system.entry.js.map → p-f0a4aba9.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-56a7c62b.entry.js → p-f8550043.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-56a7c62b.entry.js.map → p-f8550043.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/VerdocsEndpoint-859be227.js.map +0 -1
- package/dist/esm/VerdocsEndpoint-9db225a3.js.map +0 -1
- package/dist/esm-es5/Templates-22116158.js +0 -2
- package/dist/esm-es5/Templates-22116158.js.map +0 -1
- package/dist/esm-es5/VerdocsEndpoint-9db225a3.js.map +0 -1
- package/dist/verdocs-web-sdk/p-710f8562.js +0 -2
- package/dist/verdocs-web-sdk/p-710f8562.js.map +0 -1
- package/dist/verdocs-web-sdk/p-8a338d80.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-a3ab0ddc.js.map +0 -1
- package/dist/verdocs-web-sdk/p-c2e155d4.system.js +0 -2
- package/dist/verdocs-web-sdk/p-c2e155d4.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-cfe0b3ca.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-f0617648.entry.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,H as Host,a as getElement}from"./p-865c14e4.js";import{a as getAugmentedNamespace,c as createCommonjsModule,g as getDefaultExportFromCjs,b as commonjsRequire,d as commonjsGlobal}from"./p-5f30896e.js";import"./p-8efc9749.js";import{V as VerdocsEndpoint}from"./p-a3ab0ddc.js";import{i as integerSequence}from"./p-7ce27ce2.js";import{S as SDKError}from"./p-7a1b2643.js";const verdocsDocumentPageCss="verdocs-document-page{width:100%;position:relative}verdocs-document-page .verdocs-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}";const VerdocsDocumentPage=class{constructor(t){registerInstance(this,t);this.pageRendered=createEvent(this,"pageRendered",7);this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.containerId=`verdocs-document-page-${Math.random().toString(36).substring(2,11)}`;this.renderedWidth=612;this.renderedHeight=792;this.skipFirstNotification=true}componentDidLoad(){this.resizeObserver=new ResizeObserver((t=>{for(const e of t){const t=e.contentRect.width;this.renderedWidth=t;this.renderedHeight=this.virtualHeight*(t/this.virtualWidth)}this.notifyRenderedSize()}));this.resizeObserver.observe(this.container)}disconnectedCallback(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect()}notifyRenderedSize(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}this.pageRendered.emit({container:this.container,containerId:this.containerId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,xScale:this.renderedWidth/this.virtualWidth,yScale:this.renderedHeight/this.virtualHeight})}render(){const t=this.renderedHeight+"px";return h(Host,{id:`${this.containerId}`,style:{height:t}},this.layers.map((e=>e.type==="div"?h("div",{class:"verdocs-document-page-layer",id:`${this.containerId}-${e.name}`,style:{height:t}}):h("canvas",{class:"verdocs-document-page-layer",id:`${this.containerId}-${e.name}`,style:{height:t}}))))}get container(){return getElement(this)}};VerdocsDocumentPage.style=verdocsDocumentPageCss;const verdocsLoaderCss="verdocs-loader{display:block;position:absolute;top:50%;left:50%;margin-left:-20px;margin-top:-20px;font-size:24px;width:24px;height:24px;border-radius:50%;text-indent:-9999em;-webkit-animation:load5 1.1s infinite ease;animation:verdocs-loader-kf 1.1s infinite ease;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}@-webkit-keyframes verdocs-loader-kf{0%,100%{-webkit-box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4);box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4)}12.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3)}25%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}37.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}50%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}62.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}75%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}87.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa;box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa}}@keyframes verdocs-loader-kf{0%,100%{-webkit-box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4);box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4)}12.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3)}25%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}37.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}50%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}62.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}75%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}87.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa;box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa}}";const VerdocsLoader=class{constructor(t){registerInstance(this,t)}render(){return h(Host,null)}};VerdocsLoader.style=verdocsLoaderCss;const _nodeResolve_empty={};const _nodeResolve_empty$1=Object.freeze({__proto__:null,default:_nodeResolve_empty});const require$$0=getAugmentedNamespace(_nodeResolve_empty$1);var pdf$1=createCommonjsModule((function(module,exports){
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,H as Host,a as getElement}from"./p-865c14e4.js";import{a as getAugmentedNamespace,c as createCommonjsModule,g as getDefaultExportFromCjs,b as commonjsRequire,d as commonjsGlobal}from"./p-5f30896e.js";import"./p-8efc9749.js";import{V as VerdocsEndpoint}from"./p-10d804cf.js";import{i as integerSequence}from"./p-7ce27ce2.js";import{S as SDKError}from"./p-7a1b2643.js";const verdocsDocumentPageCss="verdocs-document-page{width:100%;position:relative}verdocs-document-page .verdocs-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}";const VerdocsDocumentPage=class{constructor(t){registerInstance(this,t);this.pageRendered=createEvent(this,"pageRendered",7);this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.containerId=`verdocs-document-page-${Math.random().toString(36).substring(2,11)}`;this.renderedWidth=612;this.renderedHeight=792;this.skipFirstNotification=true}componentDidLoad(){this.resizeObserver=new ResizeObserver((t=>{for(const e of t){const t=e.contentRect.width;this.renderedWidth=t;this.renderedHeight=this.virtualHeight*(t/this.virtualWidth)}this.notifyRenderedSize()}));this.resizeObserver.observe(this.container)}disconnectedCallback(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect()}notifyRenderedSize(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}this.pageRendered.emit({container:this.container,containerId:this.containerId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,xScale:this.renderedWidth/this.virtualWidth,yScale:this.renderedHeight/this.virtualHeight})}render(){const t=this.renderedHeight+"px";return h(Host,{id:`${this.containerId}`,style:{height:t}},this.layers.map((e=>e.type==="div"?h("div",{class:"verdocs-document-page-layer",id:`${this.containerId}-${e.name}`,style:{height:t}}):h("canvas",{class:"verdocs-document-page-layer",id:`${this.containerId}-${e.name}`,style:{height:t}}))))}get container(){return getElement(this)}};VerdocsDocumentPage.style=verdocsDocumentPageCss;const verdocsLoaderCss="verdocs-loader{display:block;position:absolute;top:50%;left:50%;margin-left:-20px;margin-top:-20px;font-size:24px;width:24px;height:24px;border-radius:50%;text-indent:-9999em;-webkit-animation:load5 1.1s infinite ease;animation:verdocs-loader-kf 1.1s infinite ease;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}@-webkit-keyframes verdocs-loader-kf{0%,100%{-webkit-box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4);box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4)}12.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3)}25%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}37.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}50%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}62.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}75%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}87.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa;box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa}}@keyframes verdocs-loader-kf{0%,100%{-webkit-box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4);box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4)}12.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3)}25%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}37.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}50%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}62.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}75%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}87.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa;box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa}}";const VerdocsLoader=class{constructor(t){registerInstance(this,t)}render(){return h(Host,null)}};VerdocsLoader.style=verdocsLoaderCss;const _nodeResolve_empty={};const _nodeResolve_empty$1=Object.freeze({__proto__:null,default:_nodeResolve_empty});const require$$0=getAugmentedNamespace(_nodeResolve_empty$1);var pdf$1=createCommonjsModule((function(module,exports){
|
|
2
2
|
/**
|
|
3
3
|
* @licstart The following is the entire license notice for the
|
|
4
4
|
* JavaScript code in this page
|
|
@@ -65,4 +65,4 @@ import{r as registerInstance,c as createEvent,h,H as Host,a as getElement}from".
|
|
|
65
65
|
* JavaScript code in this page
|
|
66
66
|
*/
|
|
67
67
|
(function e(i,n){t.exports=n()})(globalThis,(()=>(()=>{var t=[,(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.WorkerTask=e.WorkerMessageHandler=void 0;var n=i(2);var s=i(134);var r=i(135);var a=i(137);var o=i(200);var c=i(194);var l=i(4);var h=i(231);var u=i(232);class f{constructor(t){this.name=t;this.terminated=false;this._capability=(0,n.createPromiseCapability)()}get finished(){return this._capability.promise}finish(){this._capability.resolve()}terminate(){this.terminated=true}ensureNotTerminated(){if(this.terminated){throw new Error("Worker task was terminated")}}}e.WorkerTask=f;class d{static setup(t,e){let i=false;t.on("test",(function e(n){if(i){return}i=true;t.send("test",n instanceof Uint8Array)}));t.on("configure",(function t(e){(0,n.setVerbosityLevel)(e.verbosity)}));t.on("GetDocRequest",(function t(i){return d.createDocumentHandler(i,e)}))}static createDocumentHandler(t,e){let i;let d=false;let p=null;const m=[];const g=(0,n.getVerbosityLevel)();const{docId:b,apiVersion:v}=t;const w="3.0.279";if(v!==w){throw new Error(`The API version "${v}" does not match `+`the Worker version "${w}".`)}const y=[];for(const t in[]){y.push(t)}if(y.length){throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+y.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.")}if(typeof ReadableStream==="undefined"){const t="The browser/environment lacks native support for critical "+"functionality used by the PDF.js library (e.g. `ReadableStream`); ";if(l.isNodeJS){throw new Error(t+"please use a `legacy`-build instead.")}throw new Error(t+"please update to a supported browser.")}const A=b+"_worker";let k=new h.MessageHandler(A,b,e);function x(){if(d){throw new Error("Worker was terminated")}}function S(t){m.push(t)}function M(t){t.finish();const e=m.indexOf(t);m.splice(e,1)}async function _(t){await i.ensureDoc("checkHeader");await i.ensureDoc("parseStartXRef");await i.ensureDoc("parse",[t]);await i.ensureDoc("checkFirstPage",[t]);await i.ensureDoc("checkLastPage",[t]);const e=await i.ensureDoc("isPureXfa");if(e){const t=new f("loadXfaFonts");S(t);await Promise.all([i.loadXfaFonts(k,t).catch((t=>{})).then((()=>M(t))),i.loadXfaImages()])}const[n,s]=await Promise.all([i.ensureDoc("numPages"),i.ensureDoc("fingerprints")]);const r=e?await i.ensureDoc("htmlForXfa"):null;return{numPages:n,fingerprints:s,htmlForXfa:r}}function E(t){let{data:e,password:i,disableAutoFetch:s,rangeChunkSize:r,length:o,docBaseUrl:c,enableXfa:l,evaluatorOptions:h}=t;const f=(0,n.createPromiseCapability)();let d;if(e){try{d=new a.LocalPdfManager(b,e,i,k,h,l,c);f.resolve(d)}catch(t){f.reject(t)}return f.promise}let m,g=[];try{m=new u.PDFWorkerStream(k)}catch(t){f.reject(t);return f.promise}const v=m.getFullReader();v.headersReady.then((function(){if(!v.isRangeSupported){return}s=s||v.isStreamingSupported;d=new a.NetworkPdfManager(b,m,{msgHandler:k,password:i,length:v.contentLength,disableAutoFetch:s,rangeChunkSize:r},h,l,c);for(const t of g){d.sendProgressiveData(t)}g=[];f.resolve(d);p=null})).catch((function(t){f.reject(t);p=null}));let w=0;const y=function(){const t=(0,n.arraysToBytes)(g);if(o&&t.length!==o){(0,n.warn)("reported HTTP length is different from actual")}try{d=new a.LocalPdfManager(b,t,i,k,h,l,c);f.resolve(d)}catch(t){f.reject(t)}g=[]};const A=new Promise((function(t,e){const i=function(t){let{value:s,done:r}=t;try{x();if(r){if(!d){y()}p=null;return}w+=(0,n.arrayByteLength)(s);if(!v.isStreamingSupported){k.send("DocProgress",{loaded:w,total:Math.max(w,v.contentLength||0)})}if(d){d.sendProgressiveData(s)}else{g.push(s)}v.read().then(i,e)}catch(t){e(t)}};v.read().then(i,e)}));A.catch((function(t){f.reject(t);p=null}));p=function(t){m.cancelAllRequests(t)};return f.promise}function C(t){function e(t){x();k.send("GetDoc",{pdfInfo:t})}function s(t){x();if(t instanceof n.PasswordException){const e=new f(`PasswordException: response ${t.code}`);S(e);k.sendWithPromise("PasswordRequest",t).then((function(t){let{password:n}=t;M(e);i.updatePassword(n);a()})).catch((function(){M(e);k.send("DocException",t)}))}else if(t instanceof n.InvalidPDFException||t instanceof n.MissingPDFException||t instanceof n.UnexpectedResponseException||t instanceof n.UnknownErrorException){k.send("DocException",t)}else{k.send("DocException",new n.UnknownErrorException(t.message,t.toString()))}}function a(){x();_(false).then(e,(function(t){x();if(!(t instanceof r.XRefParseException)){s(t);return}i.requestLoadedStream().then((function(){x();_(true).then(e,s)}))}))}x();E(t).then((function(t){if(d){t.terminate(new n.AbortException("Worker was terminated."));throw new Error("Worker was terminated")}i=t;i.requestLoadedStream(true).then((t=>{k.send("DataLoaded",{length:t.bytes.byteLength})}))})).then(a,s)}k.on("GetPage",(function t(e){return i.getPage(e.pageIndex).then((function(t){return Promise.all([i.ensure(t,"rotate"),i.ensure(t,"ref"),i.ensure(t,"userUnit"),i.ensure(t,"view")]).then((function(t){let[e,i,n,s]=t;return{rotate:e,ref:i,userUnit:n,view:s}}))}))}));k.on("GetPageIndex",(function t(e){const n=s.Ref.get(e.num,e.gen);return i.ensureCatalog("getPageIndex",[n])}));k.on("GetDestinations",(function t(e){return i.ensureCatalog("destinations")}));k.on("GetDestination",(function t(e){return i.ensureCatalog("getDestination",[e.id])}));k.on("GetPageLabels",(function t(e){return i.ensureCatalog("pageLabels")}));k.on("GetPageLayout",(function t(e){return i.ensureCatalog("pageLayout")}));k.on("GetPageMode",(function t(e){return i.ensureCatalog("pageMode")}));k.on("GetViewerPreferences",(function(t){return i.ensureCatalog("viewerPreferences")}));k.on("GetOpenAction",(function(t){return i.ensureCatalog("openAction")}));k.on("GetAttachments",(function t(e){return i.ensureCatalog("attachments")}));k.on("GetJavaScript",(function t(e){return i.ensureCatalog("javaScript")}));k.on("GetDocJSActions",(function t(e){return i.ensureCatalog("jsActions")}));k.on("GetPageJSActions",(function(t){let{pageIndex:e}=t;return i.getPage(e).then((function(t){return i.ensure(t,"jsActions")}))}));k.on("GetOutline",(function t(e){return i.ensureCatalog("documentOutline")}));k.on("GetOptionalContentConfig",(function(t){return i.ensureCatalog("optionalContentConfig")}));k.on("GetPermissions",(function(t){return i.ensureCatalog("permissions")}));k.on("GetMetadata",(function t(e){return Promise.all([i.ensureDoc("documentInfo"),i.ensureCatalog("metadata")])}));k.on("GetMarkInfo",(function t(e){return i.ensureCatalog("markInfo")}));k.on("GetData",(function t(e){return i.requestLoadedStream().then((function(t){return t.bytes}))}));k.on("GetAnnotations",(function(t){let{pageIndex:e,intent:n}=t;return i.getPage(e).then((function(t){const i=new f(`GetAnnotations: page ${e}`);S(i);return t.getAnnotationsData(k,i,n).then((t=>{M(i);return t}),(t=>{M(i)}))}))}));k.on("GetFieldObjects",(function(t){return i.ensureDoc("fieldObjects")}));k.on("HasJSActions",(function(t){return i.ensureDoc("hasJSActions")}));k.on("GetCalculationOrderIds",(function(t){return i.ensureDoc("calculationOrderIds")}));k.on("SaveDocument",(function(t){let{isPureXfa:e,numPages:a,annotationStorage:o,filename:l}=t;const h=[i.requestLoadedStream(),i.ensureCatalog("acroForm"),i.ensureCatalog("acroFormRef"),i.ensureDoc("xref"),i.ensureDoc("startXRef")];const u=!e?(0,r.getNewAnnotationsMap)(o):null;if(u){for(const[t,e]of u){h.push(i.getPage(t).then((i=>{const n=new f(`Save (editor): page ${t}`);return i.saveNewAnnotations(k,n,e).finally((function(){M(n)}))})))}}if(e){h.push(i.serializeXfaData(o))}else{for(let t=0;t<a;t++){h.push(i.getPage(t).then((function(e){const i=new f(`Save: page ${t}`);return e.save(k,i,o).finally((function(){M(i)}))})))}}return Promise.all(h).then((function(t){let[i,r,a,o,h,...u]=t;let f=[];let d=null;if(e){d=u[0];if(!d){return i.bytes}}else{f=u.flat(2);if(f.length===0){return i.bytes}}const p=r instanceof s.Dict&&r.get("XFA")||null;let m=null;let g=false;if(Array.isArray(p)){for(let t=0,e=p.length;t<e;t+=2){if(p[t]==="datasets"){m=p[t+1];a=null;g=true}}if(m===null){m=o.getNewRef()}}else if(p){a=null;(0,n.warn)("Unsupported XFA type.")}let b=Object.create(null);if(o.trailer){const t=Object.create(null);const e=o.trailer.get("Info")||null;if(e instanceof s.Dict){e.forEach(((e,i)=>{if(typeof i==="string"){t[e]=(0,n.stringToPDFString)(i)}}))}b={rootRef:o.trailer.getRaw("Root")||null,encryptRef:o.trailer.getRaw("Encrypt")||null,newRef:o.getNewRef(),infoRef:o.trailer.getRaw("Info")||null,info:t,fileIds:o.trailer.get("ID")||null,startXRef:h,filename:l}}o.resetNewRef();return(0,c.incrementalUpdate)({originalData:i.bytes,xrefInfo:b,newRefs:f,xref:o,hasXfa:!!p,xfaDatasetsRef:m,hasXfaDatasetsEntry:g,acroFormRef:a,acroForm:r,xfaData:d})}))}));k.on("GetOperatorList",(function t(e,s){const r=e.pageIndex;i.getPage(r).then((function(t){const i=new f(`GetOperatorList: page ${r}`);S(i);const a=g>=n.VerbosityLevel.INFOS?Date.now():0;t.getOperatorList({handler:k,sink:s,task:i,intent:e.intent,cacheKey:e.cacheKey,annotationStorage:e.annotationStorage}).then((function(t){M(i);if(a){(0,n.info)(`page=${r+1} - getOperatorList: time=`+`${Date.now()-a}ms, len=${t.length}`)}s.close()}),(function(t){M(i);if(i.terminated){return}s.error(t)}))}))}));k.on("GetTextContent",(function t(e,s){const r=e.pageIndex;i.getPage(r).then((function(t){const i=new f("GetTextContent: page "+r);S(i);const a=g>=n.VerbosityLevel.INFOS?Date.now():0;t.extractTextContent({handler:k,task:i,sink:s,includeMarkedContent:e.includeMarkedContent,combineTextItems:e.combineTextItems}).then((function(){M(i);if(a){(0,n.info)(`page=${r+1} - getTextContent: time=`+`${Date.now()-a}ms`)}s.close()}),(function(t){M(i);if(i.terminated){return}s.error(t)}))}))}));k.on("GetStructTree",(function t(e){return i.getPage(e.pageIndex).then((function(t){return i.ensure(t,"getStructTree")}))}));k.on("FontFallback",(function(t){return i.fontFallback(t.id,k)}));k.on("Cleanup",(function t(e){return i.cleanup(true)}));k.on("Terminate",(function t(e){d=true;const s=[];if(i){i.terminate(new n.AbortException("Worker was terminated."));const t=i.cleanup();s.push(t);i=null}else{(0,o.clearGlobalCaches)()}if(p){p(new n.AbortException("Worker was terminated."))}for(const t of m){s.push(t.finished);t.terminate()}return Promise.all(s).then((function(){k.destroy();k=null}))}));k.on("Ready",(function e(i){C(t);t=null}));return A}static initializeFromPort(t){const e=new h.MessageHandler("worker","main",t);d.setup(e,t);e.send("ready",null)}}e.WorkerMessageHandler=d;function p(t){return typeof t.postMessage==="function"&&"onmessage"in t}if(typeof window==="undefined"&&!l.isNodeJS&&typeof self!=="undefined"&&p(self)){d.initializeFromPort(self)}},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.VerbosityLevel=e.Util=e.UnknownErrorException=e.UnexpectedResponseException=e.UNSUPPORTED_FEATURES=e.TextRenderingMode=e.StreamType=e.RenderingIntentFlag=e.PermissionFlag=e.PasswordResponses=e.PasswordException=e.PageActionEventType=e.OPS=e.MissingPDFException=e.LINE_FACTOR=e.LINE_DESCENT_FACTOR=e.InvalidPDFException=e.ImageKind=e.IDENTITY_MATRIX=e.FormatError=e.FontType=e.FeatureTest=e.FONT_IDENTITY_MATRIX=e.DocumentActionEventType=e.CMapCompressionType=e.BaseException=e.AnnotationType=e.AnnotationStateModelType=e.AnnotationReviewState=e.AnnotationReplyType=e.AnnotationMode=e.AnnotationMarkedState=e.AnnotationFlag=e.AnnotationFieldFlag=e.AnnotationEditorType=e.AnnotationEditorPrefix=e.AnnotationEditorParamsType=e.AnnotationBorderStyleType=e.AnnotationActionEventType=e.AbortException=void 0;e.arrayByteLength=Z;e.arraysToBytes=tt;e.assert=U;e.bytesToString=J;e.createPromiseCapability=wt;e.createValidAbsoluteUrl=$;e.escapeString=ut;e.getModificationDate=vt;e.getVerbosityLevel=R;e.info=N;e.isArrayBuffer=gt;e.isArrayEqual=bt;e.isAscii=ft;e.objectFromMap=nt;e.objectSize=it;e.setVerbosityLevel=D;e.shadow=q;e.string32=et;e.stringToBytes=Q;e.stringToPDFString=ht;e.stringToUTF16BEString=dt;e.stringToUTF8String=pt;e.unreachable=L;e.utf8StringToString=mt;e.warn=j;if(!globalThis._pdfjsCompatibilityChecked){globalThis._pdfjsCompatibilityChecked=true;i(3)}const n=[1,0,0,1,0,0];e.IDENTITY_MATRIX=n;const s=[.001,0,0,.001,0,0];e.FONT_IDENTITY_MATRIX=s;const r=1.35;e.LINE_FACTOR=r;const a=.35;e.LINE_DESCENT_FACTOR=a;const o={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};e.RenderingIntentFlag=o;const c={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};e.AnnotationMode=c;const l="pdfjs_internal_editor_";e.AnnotationEditorPrefix=l;const h={DISABLE:-1,NONE:0,FREETEXT:3,INK:15};e.AnnotationEditorType=h;const u={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13};e.AnnotationEditorParamsType=u;const f={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};e.PermissionFlag=f;const d={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};e.TextRenderingMode=d;const p={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};e.ImageKind=p;const m={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};e.AnnotationType=m;const g={MARKED:"Marked",REVIEW:"Review"};e.AnnotationStateModelType=g;const b={MARKED:"Marked",UNMARKED:"Unmarked"};e.AnnotationMarkedState=b;const v={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};e.AnnotationReviewState=v;const w={GROUP:"Group",REPLY:"R"};e.AnnotationReplyType=w;const y={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};e.AnnotationFlag=y;const A={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};e.AnnotationFieldFlag=A;const k={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};e.AnnotationBorderStyleType=k;const x={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};e.AnnotationActionEventType=x;const S={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};e.DocumentActionEventType=S;const M={O:"PageOpen",C:"PageClose"};e.PageActionEventType=M;const _={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};e.StreamType=_;const E={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};e.FontType=E;const C={ERRORS:0,WARNINGS:1,INFOS:5};e.VerbosityLevel=C;const O={NONE:0,BINARY:1};e.CMapCompressionType=O;const T={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};e.OPS=T;const I={forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"};e.UNSUPPORTED_FEATURES=I;const F={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};e.PasswordResponses=F;let P=C.WARNINGS;function D(t){if(Number.isInteger(t)){P=t}}function R(){return P}function N(t){if(P>=C.INFOS){console.log(`Info: ${t}`)}}function j(t){if(P>=C.WARNINGS){console.log(`Warning: ${t}`)}}function L(t){throw new Error(t)}function U(t,e){if(!t){L(e)}}function B(t){if(!t){return false}switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return true;default:return false}}function $(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;if(!t){return null}try{if(i&&typeof t==="string"){if(i.addDefaultProtocol&&t.startsWith("www.")){const e=t.match(/\./g);if(e&&e.length>=2){t=`http://${t}`}}if(i.tryConvertEncoding){try{t=pt(t)}catch(t){}}}const n=e?new URL(t,e):new URL(t);if(B(n)){return n}}catch(t){}return null}function q(t,e,i){Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:false});return i}const G=function t(){function e(t,i){if(this.constructor===e){L("Cannot initialize BaseException.")}this.message=t;this.name=i}e.prototype=new Error;e.constructor=e;return e}();e.BaseException=G;class W extends G{constructor(t,e){super(t,"PasswordException");this.code=e}}e.PasswordException=W;class H extends G{constructor(t,e){super(t,"UnknownErrorException");this.details=e}}e.UnknownErrorException=H;class z extends G{constructor(t){super(t,"InvalidPDFException")}}e.InvalidPDFException=z;class V extends G{constructor(t){super(t,"MissingPDFException")}}e.MissingPDFException=V;class X extends G{constructor(t,e){super(t,"UnexpectedResponseException");this.status=e}}e.UnexpectedResponseException=X;class K extends G{constructor(t){super(t,"FormatError")}}e.FormatError=K;class Y extends G{constructor(t){super(t,"AbortException")}}e.AbortException=Y;function J(t){if(typeof t!=="object"||t===null||t.length===undefined){L("Invalid argument for bytesToString")}const e=t.length;const i=8192;if(e<i){return String.fromCharCode.apply(null,t)}const n=[];for(let s=0;s<e;s+=i){const r=Math.min(s+i,e);const a=t.subarray(s,r);n.push(String.fromCharCode.apply(null,a))}return n.join("")}function Q(t){if(typeof t!=="string"){L("Invalid argument for stringToBytes")}const e=t.length;const i=new Uint8Array(e);for(let n=0;n<e;++n){i[n]=t.charCodeAt(n)&255}return i}function Z(t){if(t.length!==undefined){return t.length}if(t.byteLength!==undefined){return t.byteLength}L("Invalid argument for arrayByteLength")}function tt(t){const e=t.length;if(e===1&&t[0]instanceof Uint8Array){return t[0]}let i=0;for(let n=0;n<e;n++){i+=Z(t[n])}let n=0;const s=new Uint8Array(i);for(let i=0;i<e;i++){let e=t[i];if(!(e instanceof Uint8Array)){if(typeof e==="string"){e=Q(e)}else{e=new Uint8Array(e)}}const r=e.byteLength;s.set(e,n);n+=r}return s}function et(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,t&255)}function it(t){return Object.keys(t).length}function nt(t){const e=Object.create(null);for(const[i,n]of t){e[i]=n}return e}function st(){const t=new Uint8Array(4);t[0]=1;const e=new Uint32Array(t.buffer,0,1);return e[0]===1}function rt(){try{new Function("");return true}catch(t){return false}}class at{static get isLittleEndian(){return q(this,"isLittleEndian",st())}static get isEvalSupported(){return q(this,"isEvalSupported",rt())}static get isOffscreenCanvasSupported(){return q(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas!=="undefined")}}e.FeatureTest=at;const ot=[...Array(256).keys()].map((t=>t.toString(16).padStart(2,"0")));class ct{static makeHexColor(t,e,i){return`#${ot[t]}${ot[e]}${ot[i]}`}static scaleMinMax(t,e){let i;if(t[0]){if(t[0]<0){i=e[0];e[0]=e[1];e[1]=i}e[0]*=t[0];e[1]*=t[0];if(t[3]<0){i=e[2];e[2]=e[3];e[3]=i}e[2]*=t[3];e[3]*=t[3]}else{i=e[0];e[0]=e[2];e[2]=i;i=e[1];e[1]=e[3];e[3]=i;if(t[1]<0){i=e[2];e[2]=e[3];e[3]=i}e[2]*=t[1];e[3]*=t[1];if(t[2]<0){i=e[0];e[0]=e[1];e[1]=i}e[0]*=t[2];e[1]*=t[2]}e[0]+=t[4];e[1]+=t[4];e[2]+=t[5];e[3]+=t[5]}static transform(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}static applyTransform(t,e){const i=t[0]*e[0]+t[1]*e[2]+e[4];const n=t[0]*e[1]+t[1]*e[3]+e[5];return[i,n]}static applyInverseTransform(t,e){const i=e[0]*e[3]-e[1]*e[2];const n=(t[0]*e[3]-t[1]*e[2]+e[2]*e[5]-e[4]*e[3])/i;const s=(-t[0]*e[1]+t[1]*e[0]+e[4]*e[1]-e[5]*e[0])/i;return[n,s]}static getAxialAlignedBoundingBox(t,e){const i=ct.applyTransform(t,e);const n=ct.applyTransform(t.slice(2,4),e);const s=ct.applyTransform([t[0],t[3]],e);const r=ct.applyTransform([t[2],t[1]],e);return[Math.min(i[0],n[0],s[0],r[0]),Math.min(i[1],n[1],s[1],r[1]),Math.max(i[0],n[0],s[0],r[0]),Math.max(i[1],n[1],s[1],r[1])]}static inverseTransform(t){const e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]}static singularValueDecompose2dScale(t){const e=[t[0],t[2],t[1],t[3]];const i=t[0]*e[0]+t[1]*e[2];const n=t[0]*e[1]+t[1]*e[3];const s=t[2]*e[0]+t[3]*e[2];const r=t[2]*e[1]+t[3]*e[3];const a=(i+r)/2;const o=Math.sqrt((i+r)**2-4*(i*r-s*n))/2;const c=a+o||1;const l=a-o||1;return[Math.sqrt(c),Math.sqrt(l)]}static normalizeRect(t){const e=t.slice(0);if(t[0]>t[2]){e[0]=t[2];e[2]=t[0]}if(t[1]>t[3]){e[1]=t[3];e[3]=t[1]}return e}static intersect(t,e){const i=Math.max(Math.min(t[0],t[2]),Math.min(e[0],e[2]));const n=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));if(i>n){return null}const s=Math.max(Math.min(t[1],t[3]),Math.min(e[1],e[3]));const r=Math.min(Math.max(t[1],t[3]),Math.max(e[1],e[3]));if(s>r){return null}return[i,s,n,r]}static bezierBoundingBox(t,e,i,n,s,r,a,o){const c=[],l=[[],[]];let h,u,f,d,p,m,g,b;for(let l=0;l<2;++l){if(l===0){u=6*t-12*i+6*s;h=-3*t+9*i-9*s+3*a;f=3*i-3*t}else{u=6*e-12*n+6*r;h=-3*e+9*n-9*r+3*o;f=3*n-3*e}if(Math.abs(h)<1e-12){if(Math.abs(u)<1e-12){continue}d=-f/u;if(0<d&&d<1){c.push(d)}continue}g=u*u-4*f*h;b=Math.sqrt(g);if(g<0){continue}p=(-u+b)/(2*h);if(0<p&&p<1){c.push(p)}m=(-u-b)/(2*h);if(0<m&&m<1){c.push(m)}}let v=c.length,w;const y=v;while(v--){d=c[v];w=1-d;l[0][v]=w*w*w*t+3*w*w*d*i+3*w*d*d*s+d*d*d*a;l[1][v]=w*w*w*e+3*w*w*d*n+3*w*d*d*r+d*d*d*o}l[0][y]=t;l[1][y]=e;l[0][y+1]=a;l[1][y+1]=o;l[0].length=l[1].length=y+2;return[Math.min(...l[0]),Math.min(...l[1]),Math.max(...l[0]),Math.max(...l[1])]}}e.Util=ct;const lt=[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 ht(t){if(t[0]>="ï"){let e;if(t[0]==="þ"&&t[1]==="ÿ"){e="utf-16be"}else if(t[0]==="ÿ"&&t[1]==="þ"){e="utf-16le"}else if(t[0]==="ï"&&t[1]==="»"&&t[2]==="¿"){e="utf-8"}if(e){try{const i=new TextDecoder(e,{fatal:true});const n=Q(t);return i.decode(n)}catch(t){j(`stringToPDFString: "${t}".`)}}}const e=[];for(let i=0,n=t.length;i<n;i++){const n=lt[t.charCodeAt(i)];e.push(n?String.fromCharCode(n):t.charAt(i))}return e.join("")}function ut(t){return t.replace(/([()\\\n\r])/g,(t=>{if(t==="\n"){return"\\n"}else if(t==="\r"){return"\\r"}return`\\${t}`}))}function ft(t){return/^[\x00-\x7F]*$/.test(t)}function dt(t){const e=["þÿ"];for(let i=0,n=t.length;i<n;i++){const n=t.charCodeAt(i);e.push(String.fromCharCode(n>>8&255),String.fromCharCode(n&255))}return e.join("")}function pt(t){return decodeURIComponent(escape(t))}function mt(t){return unescape(encodeURIComponent(t))}function gt(t){return typeof t==="object"&&t!==null&&t.byteLength!==undefined}function bt(t,e){if(t.length!==e.length){return false}for(let i=0,n=t.length;i<n;i++){if(t[i]!==e[i]){return false}}return true}function vt(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:new Date;const e=[t.getUTCFullYear().toString(),(t.getUTCMonth()+1).toString().padStart(2,"0"),t.getUTCDate().toString().padStart(2,"0"),t.getUTCHours().toString().padStart(2,"0"),t.getUTCMinutes().toString().padStart(2,"0"),t.getUTCSeconds().toString().padStart(2,"0")];return e.join("")}function wt(){const t=Object.create(null);let e=false;Object.defineProperty(t,"settled",{get(){return e}});t.promise=new Promise((function(i,n){t.resolve=function(t){e=true;i(t)};t.reject=function(t){e=true;n(t)}}));return t}},(t,e,i)=>{var n=i(4);(function t(){if(globalThis.btoa||!n.isNodeJS){return}globalThis.btoa=function(t){return Buffer.from(t,"binary").toString("base64")}})();(function t(){if(globalThis.atob||!n.isNodeJS){return}globalThis.atob=function(t){return Buffer.from(t,"base64").toString("binary")}})();(function t(){if(globalThis.DOMMatrix||!n.isNodeJS){return}globalThis.DOMMatrix=require$$0.DOMMatrix})();(function t(){if(globalThis.ReadableStream||!n.isNodeJS){return}globalThis.ReadableStream=ponyfill.ReadableStream})();(function t(){if(Array.prototype.at){return}i(5)})();(function t(){if(Uint8Array.prototype.at){return}i(80)})();(function t(){if(globalThis.structuredClone){return}i(90)})()},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.isNodeJS=void 0;const i=typeof process==="object"&&process+""==="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");e.isNodeJS=i},(t,e,i)=>{i(6);var n=i(79);t.exports=n("Array","at")},(t,e,i)=>{var n=i(7);var s=i(45);var r=i(69);var a=i(67);var o=i(74);n({target:"Array",proto:true},{at:function t(e){var i=s(this);var n=r(i);var o=a(e);var c=o>=0?o:n+o;return c<0||c>=n?undefined:i[c]}});o("at")},(t,e,i)=>{var n=i(8);var s=i(9).f;var r=i(49);var a=i(53);var o=i(43);var c=i(61);var l=i(73);t.exports=function(t,e){var i=t.target;var h=t.global;var u=t.stat;var f,d,p,m,g,b;if(h){d=n}else if(u){d=n[i]||o(i,{})}else{d=(n[i]||{}).prototype}if(d)for(p in e){g=e[p];if(t.dontCallGetSet){b=s(d,p);m=b&&b.value}else m=d[p];f=l(h?p:i+(u?".":"#")+p,t.forced);if(!f&&m!==undefined){if(typeof g==typeof m)continue;c(g,m)}if(t.sham||m&&m.sham){r(g,"sham",true)}a(d,p,g,t)}}},t=>{var e=function(t){return t&&t.Math==Math&&t};t.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof commonjsGlobal=="object"&&commonjsGlobal)||function(){return this}()||Function("return this")()},(t,e,i)=>{var n=i(10);var s=i(12);var r=i(14);var a=i(15);var o=i(16);var c=i(23);var l=i(44);var h=i(47);var u=Object.getOwnPropertyDescriptor;e.f=n?u:function t(e,i){e=o(e);i=c(i);if(h)try{return u(e,i)}catch(t){}if(l(e,i))return a(!s(r.f,e,i),e[i])}},(t,e,i)=>{var n=i(11);t.exports=!n((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}))},t=>{t.exports=function(t){try{return!!t()}catch(t){return true}}},(t,e,i)=>{var n=i(13);var s=Function.prototype.call;t.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},(t,e,i)=>{var n=i(11);t.exports=!n((function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")}))},(t,e)=>{var i={}.propertyIsEnumerable;var n=Object.getOwnPropertyDescriptor;var s=n&&!i.call({1:2},1);e.f=s?function t(e){var i=n(this,e);return!!i&&i.enumerable}:i},t=>{t.exports=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}}},(t,e,i)=>{var n=i(17);var s=i(21);t.exports=function(t){return n(s(t))}},(t,e,i)=>{var n=i(18);var s=i(11);var r=i(19);var a=Object;var o=n("".split);t.exports=s((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return r(t)=="String"?o(t,""):a(t)}:a},(t,e,i)=>{var n=i(19);var s=i(20);t.exports=function(t){if(n(t)==="Function")return s(t)}},(t,e,i)=>{var n=i(20);var s=n({}.toString);var r=n("".slice);t.exports=function(t){return r(s(t),8,-1)}},(t,e,i)=>{var n=i(13);var s=Function.prototype;var r=s.call;var a=n&&s.bind.bind(r,r);t.exports=n?a:function(t){return function(){return r.apply(t,arguments)}}},(t,e,i)=>{var n=i(22);var s=TypeError;t.exports=function(t){if(n(t))throw s("Can't call method on "+t);return t}},t=>{t.exports=function(t){return t===null||t===undefined}},(t,e,i)=>{var n=i(24);var s=i(28);t.exports=function(t){var e=n(t,"string");return s(e)?e:e+""}},(t,e,i)=>{var n=i(12);var s=i(25);var r=i(28);var a=i(35);var o=i(38);var c=i(39);var l=TypeError;var h=c("toPrimitive");t.exports=function(t,e){if(!s(t)||r(t))return t;var i=a(t,h);var c;if(i){if(e===undefined)e="default";c=n(i,t,e);if(!s(c)||r(c))return c;throw l("Can't convert object to primitive value")}if(e===undefined)e="number";return o(t,e)}},(t,e,i)=>{var n=i(26);var s=i(27);var r=s.all;t.exports=s.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:n(t)||t===r}:function(t){return typeof t=="object"?t!==null:n(t)}},(t,e,i)=>{var n=i(27);var s=n.all;t.exports=n.IS_HTMLDDA?function(t){return typeof t=="function"||t===s}:function(t){return typeof t=="function"}},t=>{var e=typeof document=="object"&&document.all;var i=typeof e=="undefined"&&e!==undefined;t.exports={all:e,IS_HTMLDDA:i}},(t,e,i)=>{var n=i(29);var s=i(26);var r=i(30);var a=i(31);var o=Object;t.exports=a?function(t){return typeof t=="symbol"}:function(t){var e=n("Symbol");return s(e)&&r(e.prototype,o(t))}},(t,e,i)=>{var n=i(8);var s=i(26);var r=function(t){return s(t)?t:undefined};t.exports=function(t,e){return arguments.length<2?r(n[t]):n[t]&&n[t][e]}},(t,e,i)=>{var n=i(18);t.exports=n({}.isPrototypeOf)},(t,e,i)=>{var n=i(32);t.exports=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},(t,e,i)=>{var n=i(33);var s=i(11);t.exports=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},(t,e,i)=>{var n=i(8);var s=i(34);var r=n.process;var a=n.Deno;var o=r&&r.versions||a&&a.version;var c=o&&o.v8;var l,h;if(c){l=c.split(".");h=l[0]>0&&l[0]<4?1:+(l[0]+l[1])}if(!h&&s){l=s.match(/Edge\/(\d+)/);if(!l||l[1]>=74){l=s.match(/Chrome\/(\d+)/);if(l)h=+l[1]}}t.exports=h},(t,e,i)=>{var n=i(29);t.exports=n("navigator","userAgent")||""},(t,e,i)=>{var n=i(36);var s=i(22);t.exports=function(t,e){var i=t[e];return s(i)?undefined:n(i)}},(t,e,i)=>{var n=i(26);var s=i(37);var r=TypeError;t.exports=function(t){if(n(t))return t;throw r(s(t)+" is not a function")}},t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},(t,e,i)=>{var n=i(12);var s=i(26);var r=i(25);var a=TypeError;t.exports=function(t,e){var i,o;if(e==="string"&&s(i=t.toString)&&!r(o=n(i,t)))return o;if(s(i=t.valueOf)&&!r(o=n(i,t)))return o;if(e!=="string"&&s(i=t.toString)&&!r(o=n(i,t)))return o;throw a("Can't convert object to primitive value")}},(t,e,i)=>{var n=i(8);var s=i(40);var r=i(44);var a=i(46);var o=i(32);var c=i(31);var l=s("wks");var h=n.Symbol;var u=h&&h["for"];var f=c?h:h&&h.withoutSetter||a;t.exports=function(t){if(!r(l,t)||!(o||typeof l[t]=="string")){var e="Symbol."+t;if(o&&r(h,t)){l[t]=h[t]}else if(c&&u){l[t]=u(e)}else{l[t]=f(e)}}return l[t]}},(t,e,i)=>{var n=i(41);var s=i(42);(t.exports=function(t,e){return s[t]||(s[t]=e!==undefined?e:{})})("versions",[]).push({version:"3.26.0",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"})},t=>{t.exports=false},(t,e,i)=>{var n=i(8);var s=i(43);var r="__core-js_shared__";var a=n[r]||s(r,{});t.exports=a},(t,e,i)=>{var n=i(8);var s=Object.defineProperty;t.exports=function(t,e){try{s(n,t,{value:e,configurable:true,writable:true})}catch(i){n[t]=e}return e}},(t,e,i)=>{var n=i(18);var s=i(45);var r=n({}.hasOwnProperty);t.exports=Object.hasOwn||function t(e,i){return r(s(e),i)}},(t,e,i)=>{var n=i(21);var s=Object;t.exports=function(t){return s(n(t))}},(t,e,i)=>{var n=i(18);var s=0;var r=Math.random();var a=n(1..toString);t.exports=function(t){return"Symbol("+(t===undefined?"":t)+")_"+a(++s+r,36)}},(t,e,i)=>{var n=i(10);var s=i(11);var r=i(48);t.exports=!n&&!s((function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!=7}))},(t,e,i)=>{var n=i(8);var s=i(25);var r=n.document;var a=s(r)&&s(r.createElement);t.exports=function(t){return a?r.createElement(t):{}}},(t,e,i)=>{var n=i(10);var s=i(50);var r=i(15);t.exports=n?function(t,e,i){return s.f(t,e,r(1,i))}:function(t,e,i){t[e]=i;return t}},(t,e,i)=>{var n=i(10);var s=i(47);var r=i(51);var a=i(52);var o=i(23);var c=TypeError;var l=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var u="enumerable";var f="configurable";var d="writable";e.f=n?r?function t(e,i,n){a(e);i=o(i);a(n);if(typeof e==="function"&&i==="prototype"&&"value"in n&&d in n&&!n[d]){var s=h(e,i);if(s&&s[d]){e[i]=n.value;n={configurable:f in n?n[f]:s[f],enumerable:u in n?n[u]:s[u],writable:false}}}return l(e,i,n)}:l:function t(e,i,n){a(e);i=o(i);a(n);if(s)try{return l(e,i,n)}catch(t){}if("get"in n||"set"in n)throw c("Accessors not supported");if("value"in n)e[i]=n.value;return e}},(t,e,i)=>{var n=i(10);var s=i(11);t.exports=n&&s((function(){return Object.defineProperty((function(){}),"prototype",{value:42,writable:false}).prototype!=42}))},(t,e,i)=>{var n=i(25);var s=String;var r=TypeError;t.exports=function(t){if(n(t))return t;throw r(s(t)+" is not an object")}},(t,e,i)=>{var n=i(26);var s=i(50);var r=i(54);var a=i(43);t.exports=function(t,e,i,o){if(!o)o={};var c=o.enumerable;var l=o.name!==undefined?o.name:e;if(n(i))r(i,l,o);if(o.global){if(c)t[e]=i;else a(e,i)}else{try{if(!o.unsafe)delete t[e];else if(t[e])c=true}catch(t){}if(c)t[e]=i;else s.f(t,e,{value:i,enumerable:false,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return t}},(t,e,i)=>{var n=i(11);var s=i(26);var r=i(44);var a=i(10);var o=i(55).CONFIGURABLE;var c=i(56);var l=i(57);var h=l.enforce;var u=l.get;var f=Object.defineProperty;var d=a&&!n((function(){return f((function(){}),"length",{value:8}).length!==8}));var p=String(String).split("String");var m=t.exports=function(t,e,i){if(String(e).slice(0,7)==="Symbol("){e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"}if(i&&i.getter)e="get "+e;if(i&&i.setter)e="set "+e;if(!r(t,"name")||o&&t.name!==e){if(a)f(t,"name",{value:e,configurable:true});else t.name=e}if(d&&i&&r(i,"arity")&&t.length!==i.arity){f(t,"length",{value:i.arity})}try{if(i&&r(i,"constructor")&&i.constructor){if(a)f(t,"prototype",{writable:false})}else if(t.prototype)t.prototype=undefined}catch(t){}var n=h(t);if(!r(n,"source")){n.source=p.join(typeof e=="string"?e:"")}return t};Function.prototype.toString=m((function t(){return s(this)&&u(this).source||c(this)}),"toString")},(t,e,i)=>{var n=i(10);var s=i(44);var r=Function.prototype;var a=n&&Object.getOwnPropertyDescriptor;var o=s(r,"name");var c=o&&function t(){}.name==="something";var l=o&&(!n||n&&a(r,"name").configurable);t.exports={EXISTS:o,PROPER:c,CONFIGURABLE:l}},(t,e,i)=>{var n=i(18);var s=i(26);var r=i(42);var a=n(Function.toString);if(!s(r.inspectSource)){r.inspectSource=function(t){return a(t)}}t.exports=r.inspectSource},(t,e,i)=>{var n=i(58);var s=i(8);var r=i(25);var a=i(49);var o=i(44);var c=i(42);var l=i(59);var h=i(60);var u="Object already initialized";var f=s.TypeError;var d=s.WeakMap;var p,m,g;var b=function(t){return g(t)?m(t):p(t,{})};var v=function(t){return function(e){var i;if(!r(e)||(i=m(e)).type!==t){throw f("Incompatible receiver, "+t+" required")}return i}};if(n||c.state){var w=c.state||(c.state=new d);w.get=w.get;w.has=w.has;w.set=w.set;p=function(t,e){if(w.has(t))throw f(u);e.facade=t;w.set(t,e);return e};m=function(t){return w.get(t)||{}};g=function(t){return w.has(t)}}else{var y=l("state");h[y]=true;p=function(t,e){if(o(t,y))throw f(u);e.facade=t;a(t,y,e);return e};m=function(t){return o(t,y)?t[y]:{}};g=function(t){return o(t,y)}}t.exports={set:p,get:m,has:g,enforce:b,getterFor:v}},(t,e,i)=>{var n=i(8);var s=i(26);var r=n.WeakMap;t.exports=s(r)&&/native code/.test(String(r))},(t,e,i)=>{var n=i(40);var s=i(46);var r=n("keys");t.exports=function(t){return r[t]||(r[t]=s(t))}},t=>{t.exports={}},(t,e,i)=>{var n=i(44);var s=i(62);var r=i(9);var a=i(50);t.exports=function(t,e,i){var o=s(e);var c=a.f;var l=r.f;for(var h=0;h<o.length;h++){var u=o[h];if(!n(t,u)&&!(i&&n(i,u))){c(t,u,l(e,u))}}}},(t,e,i)=>{var n=i(29);var s=i(18);var r=i(63);var a=i(72);var o=i(52);var c=s([].concat);t.exports=n("Reflect","ownKeys")||function t(e){var i=r.f(o(e));var n=a.f;return n?c(i,n(e)):i}},(t,e,i)=>{var n=i(64);var s=i(71);var r=s.concat("length","prototype");e.f=Object.getOwnPropertyNames||function t(e){return n(e,r)}},(t,e,i)=>{var n=i(18);var s=i(44);var r=i(16);var a=i(65).indexOf;var o=i(60);var c=n([].push);t.exports=function(t,e){var i=r(t);var n=0;var l=[];var h;for(h in i)!s(o,h)&&s(i,h)&&c(l,h);while(e.length>n)if(s(i,h=e[n++])){~a(l,h)||c(l,h)}return l}},(t,e,i)=>{var n=i(16);var s=i(66);var r=i(69);var a=function(t){return function(e,i,a){var o=n(e);var c=r(o);var l=s(a,c);var h;if(t&&i!=i)while(c>l){h=o[l++];if(h!=h)return true}else for(;c>l;l++){if((t||l in o)&&o[l]===i)return t||l||0}return!t&&-1}};t.exports={includes:a(true),indexOf:a(false)}},(t,e,i)=>{var n=i(67);var s=Math.max;var r=Math.min;t.exports=function(t,e){var i=n(t);return i<0?s(i+e,0):r(i,e)}},(t,e,i)=>{var n=i(68);t.exports=function(t){var e=+t;return e!==e||e===0?0:n(e)}},t=>{var e=Math.ceil;var i=Math.floor;t.exports=Math.trunc||function t(n){var s=+n;return(s>0?i:e)(s)}},(t,e,i)=>{var n=i(70);t.exports=function(t){return n(t.length)}},(t,e,i)=>{var n=i(67);var s=Math.min;t.exports=function(t){return t>0?s(n(t),9007199254740991):0}},t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(t,e)=>{e.f=Object.getOwnPropertySymbols},(t,e,i)=>{var n=i(11);var s=i(26);var r=/#|\.prototype\./;var a=function(t,e){var i=c[o(t)];return i==h?true:i==l?false:s(e)?n(e):!!e};var o=a.normalize=function(t){return String(t).replace(r,".").toLowerCase()};var c=a.data={};var l=a.NATIVE="N";var h=a.POLYFILL="P";t.exports=a},(t,e,i)=>{var n=i(39);var s=i(75);var r=i(50).f;var a=n("unscopables");var o=Array.prototype;if(o[a]==undefined){r(o,a,{configurable:true,value:s(null)})}t.exports=function(t){o[a][t]=true}},(t,e,i)=>{var n=i(52);var s=i(76);var r=i(71);var a=i(60);var o=i(78);var c=i(48);var l=i(59);var h=">";var u="<";var f="prototype";var d="script";var p=l("IE_PROTO");var m=function(){};var g=function(t){return u+d+h+t+u+"/"+d+h};var b=function(t){t.write(g(""));t.close();var e=t.parentWindow.Object;t=null;return e};var v=function(){var t=c("iframe");var e="java"+d+":";var i;t.style.display="none";o.appendChild(t);t.src=String(e);i=t.contentWindow.document;i.open();i.write(g("document.F=Object"));i.close();return i.F};var w;var y=function(){try{w=new ActiveXObject("htmlfile")}catch(t){}y=typeof document!="undefined"?document.domain&&w?b(w):v():b(w);var t=r.length;while(t--)delete y[f][r[t]];return y()};a[p]=true;t.exports=Object.create||function t(e,i){var r;if(e!==null){m[f]=n(e);r=new m;m[f]=null;r[p]=e}else r=y();return i===undefined?r:s.f(r,i)}},(t,e,i)=>{var n=i(10);var s=i(51);var r=i(50);var a=i(52);var o=i(16);var c=i(77);e.f=n&&!s?Object.defineProperties:function t(e,i){a(e);var n=o(i);var s=c(i);var l=s.length;var h=0;var u;while(l>h)r.f(e,u=s[h++],n[u]);return e}},(t,e,i)=>{var n=i(64);var s=i(71);t.exports=Object.keys||function t(e){return n(e,s)}},(t,e,i)=>{var n=i(29);t.exports=n("document","documentElement")},(t,e,i)=>{var n=i(8);var s=i(18);t.exports=function(t,e){return s(n[t].prototype[e])}},(t,e,i)=>{i(81)},(t,e,i)=>{var n=i(82);var s=i(69);var r=i(67);var a=n.aTypedArray;var o=n.exportTypedArrayMethod;o("at",(function t(e){var i=a(this);var n=s(i);var o=r(e);var c=o>=0?o:n+o;return c<0||c>=n?undefined:i[c]}))},(t,e,i)=>{var n=i(83);var s=i(10);var r=i(8);var a=i(26);var o=i(25);var c=i(44);var l=i(84);var h=i(37);var u=i(49);var f=i(53);var d=i(50).f;var p=i(30);var m=i(86);var g=i(88);var b=i(39);var v=i(46);var w=i(57);var y=w.enforce;var A=w.get;var k=r.Int8Array;var x=k&&k.prototype;var S=r.Uint8ClampedArray;var M=S&&S.prototype;var _=k&&m(k);var E=x&&m(x);var C=Object.prototype;var O=r.TypeError;var T=b("toStringTag");var I=v("TYPED_ARRAY_TAG");var F="TypedArrayConstructor";var P=n&&!!g&&l(r.opera)!=="Opera";var D=false;var R,N,j;var L={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8};var U={BigInt64Array:8,BigUint64Array:8};var B=function t(e){if(!o(e))return false;var i=l(e);return i==="DataView"||c(L,i)||c(U,i)};var $=function(t){var e=m(t);if(!o(e))return;var i=A(e);return i&&c(i,F)?i[F]:$(e)};var q=function(t){if(!o(t))return false;var e=l(t);return c(L,e)||c(U,e)};var G=function(t){if(q(t))return t;throw O("Target is not a typed array")};var W=function(t){if(a(t)&&(!g||p(_,t)))return t;throw O(h(t)+" is not a typed array constructor")};var H=function(t,e,i,n){if(!s)return;if(i)for(var a in L){var o=r[a];if(o&&c(o.prototype,t))try{delete o.prototype[t]}catch(i){try{o.prototype[t]=e}catch(t){}}}if(!E[t]||i){f(E,t,i?e:P&&x[t]||e,n)}};var z=function(t,e,i){var n,a;if(!s)return;if(g){if(i)for(n in L){a=r[n];if(a&&c(a,t))try{delete a[t]}catch(t){}}if(!_[t]||i){try{return f(_,t,i?e:P&&_[t]||e)}catch(t){}}else return}for(n in L){a=r[n];if(a&&(!a[t]||i)){f(a,t,e)}}};for(R in L){N=r[R];j=N&&N.prototype;if(j)y(j)[F]=N;else P=false}for(R in U){N=r[R];j=N&&N.prototype;if(j)y(j)[F]=N}if(!P||!a(_)||_===Function.prototype){_=function t(){throw O("Incorrect invocation")};if(P)for(R in L){if(r[R])g(r[R],_)}}if(!P||!E||E===C){E=_.prototype;if(P)for(R in L){if(r[R])g(r[R].prototype,E)}}if(P&&m(M)!==E){g(M,E)}if(s&&!c(E,T)){D=true;d(E,T,{get:function(){return o(this)?this[I]:undefined}});for(R in L)if(r[R]){u(r[R],I,R)}}t.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:D&&I,aTypedArray:G,aTypedArrayConstructor:W,exportTypedArrayMethod:H,exportTypedArrayStaticMethod:z,getTypedArrayConstructor:$,isView:B,isTypedArray:q,TypedArray:_,TypedArrayPrototype:E}},t=>{t.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},(t,e,i)=>{var n=i(85);var s=i(26);var r=i(19);var a=i(39);var o=a("toStringTag");var c=Object;var l=r(function(){return arguments}())=="Arguments";var h=function(t,e){try{return t[e]}catch(t){}};t.exports=n?r:function(t){var e,i,n;return t===undefined?"Undefined":t===null?"Null":typeof(i=h(e=c(t),o))=="string"?i:l?r(e):(n=r(e))=="Object"&&s(e.callee)?"Arguments":n}},(t,e,i)=>{var n=i(39);var s=n("toStringTag");var r={};r[s]="z";t.exports=String(r)==="[object z]"},(t,e,i)=>{var n=i(44);var s=i(26);var r=i(45);var a=i(59);var o=i(87);var c=a("IE_PROTO");var l=Object;var h=l.prototype;t.exports=o?l.getPrototypeOf:function(t){var e=r(t);if(n(e,c))return e[c];var i=e.constructor;if(s(i)&&e instanceof i){return i.prototype}return e instanceof l?h:null}},(t,e,i)=>{var n=i(11);t.exports=!n((function(){function t(){}t.prototype.constructor=null;return Object.getPrototypeOf(new t)!==t.prototype}))},(t,e,i)=>{var n=i(18);var s=i(52);var r=i(89);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t=false;var e={};var i;try{i=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set);i(e,[]);t=e instanceof Array}catch(t){}return function e(n,a){s(n);r(a);if(t)i(n,a);else n.__proto__=a;return n}}():undefined)},(t,e,i)=>{var n=i(26);var s=String;var r=TypeError;t.exports=function(t){if(typeof t=="object"||n(t))return t;throw r("Can't set "+s(t)+" as a prototype")}},(t,e,i)=>{i(91);i(98);i(100);i(122);i(124);var n=i(133);t.exports=n.structuredClone},(t,e,i)=>{var n=i(16);var s=i(74);var r=i(92);var a=i(57);var o=i(50).f;var c=i(93);var l=i(97);var h=i(41);var u=i(10);var f="Array Iterator";var d=a.set;var p=a.getterFor(f);t.exports=c(Array,"Array",(function(t,e){d(this,{type:f,target:n(t),index:0,kind:e})}),(function(){var t=p(this);var e=t.target;var i=t.kind;var n=t.index++;if(!e||n>=e.length){t.target=undefined;return l(undefined,true)}if(i=="keys")return l(n,false);if(i=="values")return l(e[n],false);return l([n,e[n]],false)}),"values");var m=r.Arguments=r.Array;s("keys");s("values");s("entries");if(!h&&u&&m.name!=="values")try{o(m,"name",{value:"values"})}catch(t){}},t=>{t.exports={}},(t,e,i)=>{var n=i(7);var s=i(12);var r=i(41);var a=i(55);var o=i(26);var c=i(94);var l=i(86);var h=i(88);var u=i(96);var f=i(49);var d=i(53);var p=i(39);var m=i(92);var g=i(95);var b=a.PROPER;var v=a.CONFIGURABLE;var w=g.IteratorPrototype;var y=g.BUGGY_SAFARI_ITERATORS;var A=p("iterator");var k="keys";var x="values";var S="entries";var M=function(){return this};t.exports=function(t,e,i,a,p,g,_){c(i,e,a);var E=function(t){if(t===p&&F)return F;if(!y&&t in T)return T[t];switch(t){case k:return function e(){return new i(this,t)};case x:return function e(){return new i(this,t)};case S:return function e(){return new i(this,t)}}return function(){return new i(this)}};var C=e+" Iterator";var O=false;var T=t.prototype;var I=T[A]||T["@@iterator"]||p&&T[p];var F=!y&&I||E(p);var P=e=="Array"?T.entries||I:I;var D,R,N;if(P){D=l(P.call(new t));if(D!==Object.prototype&&D.next){if(!r&&l(D)!==w){if(h){h(D,w)}else if(!o(D[A])){d(D,A,M)}}u(D,C,true,true);if(r)m[C]=M}}if(b&&p==x&&I&&I.name!==x){if(!r&&v){f(T,"name",x)}else{O=true;F=function t(){return s(I,this)}}}if(p){R={values:E(x),keys:g?F:E(k),entries:E(S)};if(_)for(N in R){if(y||O||!(N in T)){d(T,N,R[N])}}else n({target:e,proto:true,forced:y||O},R)}if((!r||_)&&T[A]!==F){d(T,A,F,{name:p})}m[e]=F;return R}},(t,e,i)=>{var n=i(95).IteratorPrototype;var s=i(75);var r=i(15);var a=i(96);var o=i(92);var c=function(){return this};t.exports=function(t,e,i,l){var h=e+" Iterator";t.prototype=s(n,{next:r(+!l,i)});a(t,h,false,true);o[h]=c;return t}},(t,e,i)=>{var n=i(11);var s=i(26);var r=i(25);var a=i(75);var o=i(86);var c=i(53);var l=i(39);var h=i(41);var u=l("iterator");var f=false;var d,p,m;if([].keys){m=[].keys();if(!("next"in m))f=true;else{p=o(o(m));if(p!==Object.prototype)d=p}}var g=!r(d)||n((function(){var t={};return d[u].call(t)!==t}));if(g)d={};else if(h)d=a(d);if(!s(d[u])){c(d,u,(function(){return this}))}t.exports={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:f}},(t,e,i)=>{var n=i(50).f;var s=i(44);var r=i(39);var a=r("toStringTag");t.exports=function(t,e,i){if(t&&!i)t=t.prototype;if(t&&!s(t,a)){n(t,a,{configurable:true,value:e})}}},t=>{t.exports=function(t,e){return{value:t,done:e}}},(t,e,i)=>{var n=i(85);var s=i(53);var r=i(99);if(!n){s(Object.prototype,"toString",r,{unsafe:true})}},(t,e,i)=>{var n=i(85);var s=i(84);t.exports=n?{}.toString:function t(){return"[object "+s(this)+"]"}},(t,e,i)=>{i(101)},(t,e,i)=>{var n=i(102);var s=i(119);n("Map",(function(t){return function e(){return t(this,arguments.length?arguments[0]:undefined)}}),s)},(t,e,i)=>{var n=i(7);var s=i(8);var r=i(18);var a=i(73);var o=i(53);var c=i(103);var l=i(110);var h=i(116);var u=i(26);var f=i(22);var d=i(25);var p=i(11);var m=i(117);var g=i(96);var b=i(118);t.exports=function(t,e,i){var v=t.indexOf("Map")!==-1;var w=t.indexOf("Weak")!==-1;var y=v?"set":"add";var A=s[t];var k=A&&A.prototype;var x=A;var S={};var M=function(t){var e=r(k[t]);o(k,t,t=="add"?function t(i){e(this,i===0?0:i);return this}:t=="delete"?function(t){return w&&!d(t)?false:e(this,t===0?0:t)}:t=="get"?function t(i){return w&&!d(i)?undefined:e(this,i===0?0:i)}:t=="has"?function t(i){return w&&!d(i)?false:e(this,i===0?0:i)}:function t(i,n){e(this,i===0?0:i,n);return this})};var _=a(t,!u(A)||!(w||k.forEach&&!p((function(){(new A).entries().next()}))));if(_){x=i.getConstructor(e,t,v,y);c.enable()}else if(a(t,true)){var E=new x;var C=E[y](w?{}:-0,1)!=E;var O=p((function(){E.has(1)}));var T=m((function(t){new A(t)}));var I=!w&&p((function(){var t=new A;var e=5;while(e--)t[y](e,e);return!t.has(-0)}));if(!T){x=e((function(t,e){h(t,k);var i=b(new A,t,x);if(!f(e))l(e,i[y],{that:i,AS_ENTRIES:v});return i}));x.prototype=k;k.constructor=x}if(O||I){M("delete");M("has");v&&M("get")}if(I||C)M(y);if(w&&k.clear)delete k.clear}S[t]=x;n({global:true,constructor:true,forced:x!=A},S);g(x,t);if(!w)i.setStrong(x,t,v);return x}},(t,e,i)=>{var n=i(7);var s=i(18);var r=i(60);var a=i(25);var o=i(44);var c=i(50).f;var l=i(63);var h=i(104);var u=i(107);var f=i(46);var d=i(109);var p=false;var m=f("meta");var g=0;var b=function(t){c(t,m,{value:{objectID:"O"+g++,weakData:{}}})};var v=function(t,e){if(!a(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!o(t,m)){if(!u(t))return"F";if(!e)return"E";b(t)}return t[m].objectID};var w=function(t,e){if(!o(t,m)){if(!u(t))return true;if(!e)return false;b(t)}return t[m].weakData};var y=function(t){if(d&&p&&u(t)&&!o(t,m))b(t);return t};var A=function(){k.enable=function(){};p=true;var t=l.f;var e=s([].splice);var i={};i[m]=1;if(t(i).length){l.f=function(i){var n=t(i);for(var s=0,r=n.length;s<r;s++){if(n[s]===m){e(n,s,1);break}}return n};n({target:"Object",stat:true,forced:true},{getOwnPropertyNames:h.f})}};var k=t.exports={enable:A,fastKey:v,getWeakData:w,onFreeze:y};r[m]=true},(t,e,i)=>{var n=i(19);var s=i(16);var r=i(63).f;var a=i(105);var o=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var c=function(t){try{return r(t)}catch(t){return a(o)}};t.exports.f=function t(e){return o&&n(e)=="Window"?c(e):r(s(e))}},(t,e,i)=>{var n=i(66);var s=i(69);var r=i(106);var a=Array;var o=Math.max;t.exports=function(t,e,i){var c=s(t);var l=n(e,c);var h=n(i===undefined?c:i,c);var u=a(o(h-l,0));for(var f=0;l<h;l++,f++)r(u,f,t[l]);u.length=f;return u}},(t,e,i)=>{var n=i(23);var s=i(50);var r=i(15);t.exports=function(t,e,i){var a=n(e);if(a in t)s.f(t,a,r(0,i));else t[a]=i}},(t,e,i)=>{var n=i(11);var s=i(25);var r=i(19);var a=i(108);var o=Object.isExtensible;var c=n((function(){}));t.exports=c||a?function t(e){if(!s(e))return false;if(a&&r(e)=="ArrayBuffer")return false;return o?o(e):true}:o},(t,e,i)=>{var n=i(11);t.exports=n((function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);if(Object.isExtensible(t))Object.defineProperty(t,"a",{value:8})}}))},(t,e,i)=>{var n=i(11);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},(t,e,i)=>{var n=i(111);var s=i(12);var r=i(52);var a=i(37);var o=i(112);var c=i(69);var l=i(30);var h=i(113);var u=i(114);var f=i(115);var d=TypeError;var p=function(t,e){this.stopped=t;this.result=e};var m=p.prototype;t.exports=function(t,e,i){var g=i&&i.that;var b=!!(i&&i.AS_ENTRIES);var v=!!(i&&i.IS_RECORD);var w=!!(i&&i.IS_ITERATOR);var y=!!(i&&i.INTERRUPTED);var A=n(e,g);var k,x,S,M,_,E,C;var O=function(t){if(k)f(k,"normal",t);return new p(true,t)};var T=function(t){if(b){r(t);return y?A(t[0],t[1],O):A(t[0],t[1])}return y?A(t,O):A(t)};if(v){k=t.iterator}else if(w){k=t}else{x=u(t);if(!x)throw d(a(t)+" is not iterable");if(o(x)){for(S=0,M=c(t);M>S;S++){_=T(t[S]);if(_&&l(m,_))return _}return new p(false)}k=h(t,x)}E=v?t.next:k.next;while(!(C=s(E,k)).done){try{_=T(C.value)}catch(t){f(k,"throw",t)}if(typeof _=="object"&&_&&l(m,_))return _}return new p(false)}},(t,e,i)=>{var n=i(18);var s=i(36);var r=i(13);var a=n(n.bind);t.exports=function(t,e){s(t);return e===undefined?t:r?a(t,e):function(){return t.apply(e,arguments)}}},(t,e,i)=>{var n=i(39);var s=i(92);var r=n("iterator");var a=Array.prototype;t.exports=function(t){return t!==undefined&&(s.Array===t||a[r]===t)}},(t,e,i)=>{var n=i(12);var s=i(36);var r=i(52);var a=i(37);var o=i(114);var c=TypeError;t.exports=function(t,e){var i=arguments.length<2?o(t):e;if(s(i))return r(n(i,t));throw c(a(t)+" is not iterable")}},(t,e,i)=>{var n=i(84);var s=i(35);var r=i(22);var a=i(92);var o=i(39);var c=o("iterator");t.exports=function(t){if(!r(t))return s(t,c)||s(t,"@@iterator")||a[n(t)]}},(t,e,i)=>{var n=i(12);var s=i(52);var r=i(35);t.exports=function(t,e,i){var a,o;s(t);try{a=r(t,"return");if(!a){if(e==="throw")throw i;return i}a=n(a,t)}catch(t){o=true;a=t}if(e==="throw")throw i;if(o)throw a;s(a);return i}},(t,e,i)=>{var n=i(30);var s=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw s("Incorrect invocation")}},(t,e,i)=>{var n=i(39);var s=n("iterator");var r=false;try{var a=0;var o={next:function(){return{done:!!a++}},return:function(){r=true}};o[s]=function(){return this};Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return false;var i=false;try{var n={};n[s]=function(){return{next:function(){return{done:i=true}}}};t(n)}catch(t){}return i}},(t,e,i)=>{var n=i(26);var s=i(25);var r=i(88);t.exports=function(t,e,i){var a,o;if(r&&n(a=e.constructor)&&a!==i&&s(o=a.prototype)&&o!==i.prototype)r(t,o);return t}},(t,e,i)=>{var n=i(50).f;var s=i(75);var r=i(120);var a=i(111);var o=i(116);var c=i(22);var l=i(110);var h=i(93);var u=i(97);var f=i(121);var d=i(10);var p=i(103).fastKey;var m=i(57);var g=m.set;var b=m.getterFor;t.exports={getConstructor:function(t,e,i,h){var u=t((function(t,n){o(t,f);g(t,{type:e,index:s(null),first:undefined,last:undefined,size:0});if(!d)t.size=0;if(!c(n))l(n,t[h],{that:t,AS_ENTRIES:i})}));var f=u.prototype;var m=b(e);var v=function(t,e,i){var n=m(t);var s=w(t,e);var r,a;if(s){s.value=i}else{n.last=s={index:a=p(e,true),key:e,value:i,previous:r=n.last,next:undefined,removed:false};if(!n.first)n.first=s;if(r)r.next=s;if(d)n.size++;else t.size++;if(a!=="F")n.index[a]=s}return t};var w=function(t,e){var i=m(t);var n=p(e);var s;if(n!=="F")return i.index[n];for(s=i.first;s;s=s.next){if(s.key==e)return s}};r(f,{clear:function t(){var e=this;var i=m(e);var n=i.index;var s=i.first;while(s){s.removed=true;if(s.previous)s.previous=s.previous.next=undefined;delete n[s.index];s=s.next}i.first=i.last=undefined;if(d)i.size=0;else e.size=0},delete:function(t){var e=this;var i=m(e);var n=w(e,t);if(n){var s=n.next;var r=n.previous;delete i.index[n.index];n.removed=true;if(r)r.next=s;if(s)s.previous=r;if(i.first==n)i.first=s;if(i.last==n)i.last=r;if(d)i.size--;else e.size--}return!!n},forEach:function t(e){var i=m(this);var n=a(e,arguments.length>1?arguments[1]:undefined);var s;while(s=s?s.next:i.first){n(s.value,s.key,this);while(s&&s.removed)s=s.previous}},has:function t(e){return!!w(this,e)}});r(f,i?{get:function t(e){var i=w(this,e);return i&&i.value},set:function t(e,i){return v(this,e===0?0:e,i)}}:{add:function t(e){return v(this,e=e===0?0:e,e)}});if(d)n(f,"size",{get:function(){return m(this).size}});return u},setStrong:function(t,e,i){var n=e+" Iterator";var s=b(e);var r=b(n);h(t,e,(function(t,e){g(this,{type:n,target:t,state:s(t),kind:e,last:undefined})}),(function(){var t=r(this);var e=t.kind;var i=t.last;while(i&&i.removed)i=i.previous;if(!t.target||!(t.last=i=i?i.next:t.state.first)){t.target=undefined;return u(undefined,true)}if(e=="keys")return u(i.key,false);if(e=="values")return u(i.value,false);return u([i.key,i.value],false)}),i?"entries":"values",!i,true);f(e)}}},(t,e,i)=>{var n=i(53);t.exports=function(t,e,i){for(var s in e)n(t,s,e[s],i);return t}},(t,e,i)=>{var n=i(29);var s=i(50);var r=i(39);var a=i(10);var o=r("species");t.exports=function(t){var e=n(t);var i=s.f;if(a&&e&&!e[o]){i(e,o,{configurable:true,get:function(){return this}})}}},(t,e,i)=>{i(123)},(t,e,i)=>{var n=i(102);var s=i(119);n("Set",(function(t){return function e(){return t(this,arguments.length?arguments[0]:undefined)}}),s)},(t,e,i)=>{var n=i(41);var s=i(7);var r=i(8);var a=i(29);var o=i(18);var c=i(11);var l=i(46);var h=i(26);var u=i(125);var f=i(22);var d=i(25);var p=i(28);var m=i(110);var g=i(52);var b=i(84);var v=i(44);var w=i(106);var y=i(49);var A=i(69);var k=i(126);var x=i(127);var S=i(129);var M=i(33);var _=i(130);var E=i(131);var C=i(132);var O=r.Object;var T=r.Date;var I=r.Error;var F=r.EvalError;var P=r.RangeError;var D=r.ReferenceError;var R=r.SyntaxError;var N=r.TypeError;var j=r.URIError;var L=r.PerformanceMark;var U=r.WebAssembly;var B=U&&U.CompileError||I;var $=U&&U.LinkError||I;var q=U&&U.RuntimeError||I;var G=a("DOMException");var W=a("Set");var H=a("Map");var z=H.prototype;var V=o(z.has);var X=o(z.get);var K=o(z.set);var Y=o(W.prototype.add);var J=a("Object","keys");var Q=o([].push);var Z=o(true.valueOf);var tt=o(1..valueOf);var et=o("".valueOf);var it=o(T.prototype.getTime);var nt=l("structuredClone");var st="DataCloneError";var rt="Transferring";var at=function(t){return!c((function(){var e=new r.Set([7]);var i=t(e);var n=t(O(7));return i==e||!i.has(7)||typeof n!="object"||n!=7}))&&t};var ot=function(t,e){return!c((function(){var i=new e;var n=t({a:i,b:i});return!(n&&n.a===n.b&&n.a instanceof e&&n.a.stack===i.stack)}))};var ct=function(t){return!c((function(){var e=t(new r.AggregateError([1],nt,{cause:3}));return e.name!="AggregateError"||e.errors[0]!=1||e.message!=nt||e.cause!=3}))};var lt=r.structuredClone;var ht=n||!ot(lt,I)||!ot(lt,G)||!ct(lt);var ut=!lt&&at((function(t){return new L(nt,{detail:t}).detail}));var ft=at(lt)||ut;var dt=function(t){throw new G("Uncloneable type: "+t,st)};var pt=function(t,e){throw new G((e||"Cloning")+" of "+t+" cannot be properly polyfilled in this engine",st)};var mt=function(){var t;try{t=new r.DataTransfer}catch(e){try{t=new r.ClipboardEvent("").clipboardData}catch(t){}}return t&&t.items&&t.files?t:null};var gt=function(t,e){if(p(t))dt("Symbol");if(!d(t))return t;if(e){if(V(e,t))return X(e,t)}else e=new H;var i=b(t);var n=false;var s,o,c,l,u,f,m,g,k,M;switch(i){case"Array":c=[];n=true;break;case"Object":c={};n=true;break;case"Map":c=new H;n=true;break;case"Set":c=new W;n=true;break;case"RegExp":c=new RegExp(t.source,x(t));break;case"Error":o=t.name;switch(o){case"AggregateError":c=a("AggregateError")([]);break;case"EvalError":c=F();break;case"RangeError":c=P();break;case"ReferenceError":c=D();break;case"SyntaxError":c=R();break;case"TypeError":c=N();break;case"URIError":c=j();break;case"CompileError":c=B();break;case"LinkError":c=$();break;case"RuntimeError":c=q();break;default:c=I()}n=true;break;case"DOMException":c=new G(t.message,t.name);n=true;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":s=r[i];if(!d(s))pt(i);c=new s(gt(t.buffer,e),t.byteOffset,i==="DataView"?t.byteLength:t.length);break;case"DOMQuad":try{c=new DOMQuad(gt(t.p1,e),gt(t.p2,e),gt(t.p3,e),gt(t.p4,e))}catch(e){if(ft){c=ft(t)}else pt(i)}break;case"FileList":l=mt();if(l){for(u=0,f=A(t);u<f;u++){l.items.add(gt(t[u],e))}c=l.files}else if(ft){c=ft(t)}else pt(i);break;case"ImageData":try{c=new ImageData(gt(t.data,e),t.width,t.height,{colorSpace:t.colorSpace})}catch(e){if(ft){c=ft(t)}else pt(i)}break;default:if(ft){c=ft(t)}else switch(i){case"BigInt":c=O(t.valueOf());break;case"Boolean":c=O(Z(t));break;case"Number":c=O(tt(t));break;case"String":c=O(et(t));break;case"Date":c=new T(it(t));break;case"ArrayBuffer":s=r.DataView;if(!s&&typeof t.slice!="function")pt(i);try{if(typeof t.slice=="function"){c=t.slice(0)}else{f=t.byteLength;c=new ArrayBuffer(f);k=new s(t);M=new s(c);for(u=0;u<f;u++){M.setUint8(u,k.getUint8(u))}}}catch(t){throw new G("ArrayBuffer is detached",st)}break;case"SharedArrayBuffer":c=t;break;case"Blob":try{c=t.slice(0,t.size,t.type)}catch(t){pt(i)}break;case"DOMPoint":case"DOMPointReadOnly":s=r[i];try{c=s.fromPoint?s.fromPoint(t):new s(t.x,t.y,t.z,t.w)}catch(t){pt(i)}break;case"DOMRect":case"DOMRectReadOnly":s=r[i];try{c=s.fromRect?s.fromRect(t):new s(t.x,t.y,t.width,t.height)}catch(t){pt(i)}break;case"DOMMatrix":case"DOMMatrixReadOnly":s=r[i];try{c=s.fromMatrix?s.fromMatrix(t):new s(t)}catch(t){pt(i)}break;case"AudioData":case"VideoFrame":if(!h(t.clone))pt(i);try{c=t.clone()}catch(t){dt(i)}break;case"File":try{c=new File([t],t.name,t)}catch(t){pt(i)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":pt(i);default:dt(i)}}K(e,t,c);if(n)switch(i){case"Array":case"Object":m=J(t);for(u=0,f=A(m);u<f;u++){g=m[u];w(c,g,gt(t[g],e))}break;case"Map":t.forEach((function(t,i){K(c,gt(i,e),gt(t,e))}));break;case"Set":t.forEach((function(t){Y(c,gt(t,e))}));break;case"Error":y(c,"message",gt(t.message,e));if(v(t,"cause")){y(c,"cause",gt(t.cause,e))}if(o=="AggregateError"){c.errors=gt(t.errors,e)}case"DOMException":if(S){y(c,"stack",gt(t.stack,e))}}return c};var bt=lt&&!c((function(){if(E&&M>92||C&&M>94||_&&M>97)return false;var t=new ArrayBuffer(8);var e=lt(t,{transfer:[t]});return t.byteLength!=0||e.byteLength!=8}));var vt=function(t,e){if(!d(t))throw N("Transfer option cannot be converted to a sequence");var i=[];m(t,(function(t){Q(i,g(t))}));var n=0;var s=A(i);var a,o,c,l,f,p,v;if(bt){l=lt(i,{transfer:i});while(n<s)K(e,i[n],l[n++])}else while(n<s){a=i[n++];if(V(e,a))throw new G("Duplicate transferable",st);o=b(a);switch(o){case"ImageBitmap":c=r.OffscreenCanvas;if(!u(c))pt(o,rt);try{p=new c(a.width,a.height);v=p.getContext("bitmaprenderer");v.transferFromImageBitmap(a);f=p.transferToImageBitmap()}catch(t){}break;case"AudioData":case"VideoFrame":if(!h(a.clone)||!h(a.close))pt(o,rt);try{f=a.clone();a.close()}catch(t){}break;case"ArrayBuffer":case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":pt(o,rt)}if(f===undefined)throw new G("This object cannot be transferred: "+o,st);K(e,a,f)}};s({global:true,enumerable:true,sham:!bt,forced:ht},{structuredClone:function t(e){var i=k(arguments.length,1)>1&&!f(arguments[1])?g(arguments[1]):undefined;var n=i?i.transfer:undefined;var s;if(n!==undefined){s=new H;vt(n,s)}return gt(e,s)}})},(t,e,i)=>{var n=i(18);var s=i(11);var r=i(26);var a=i(84);var o=i(29);var c=i(56);var l=function(){};var h=[];var u=o("Reflect","construct");var f=/^\s*(?:class|function)\b/;var d=n(f.exec);var p=!f.exec(l);var m=function t(e){if(!r(e))return false;try{u(l,h,e);return true}catch(t){return false}};var g=function t(e){if(!r(e))return false;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return false}try{return p||!!d(f,c(e))}catch(t){return true}};g.sham=true;t.exports=!u||s((function(){var t;return m(m.call)||!m(Object)||!m((function(){t=true}))||t}))?g:m},t=>{var e=TypeError;t.exports=function(t,i){if(t<i)throw e("Not enough arguments");return t}},(t,e,i)=>{var n=i(12);var s=i(44);var r=i(30);var a=i(128);var o=RegExp.prototype;t.exports=function(t){var e=t.flags;return e===undefined&&!("flags"in o)&&!s(t,"flags")&&r(o,t)?n(a,t):e}},(t,e,i)=>{var n=i(52);t.exports=function(){var t=n(this);var e="";if(t.hasIndices)e+="d";if(t.global)e+="g";if(t.ignoreCase)e+="i";if(t.multiline)e+="m";if(t.dotAll)e+="s";if(t.unicode)e+="u";if(t.unicodeSets)e+="v";if(t.sticky)e+="y";return e}},(t,e,i)=>{var n=i(11);var s=i(15);t.exports=!n((function(){var t=Error("a");if(!("stack"in t))return true;Object.defineProperty(t,"stack",s(1,7));return t.stack!==7}))},(t,e,i)=>{var n=i(131);var s=i(132);t.exports=!n&&!s&&typeof window=="object"&&typeof document=="object"},t=>{t.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},(t,e,i)=>{var n=i(19);var s=i(8);t.exports=n(s.process)=="process"},(t,e,i)=>{var n=i(8);t.exports=n},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.RefSetCache=e.RefSet=e.Ref=e.Name=e.EOF=e.Dict=e.Cmd=e.CIRCULAR_REF=void 0;e.clearPrimitiveCaches=b;e.isCmd=p;e.isDict=m;e.isName=d;e.isRefsEqual=g;var n=i(2);const s=Symbol("CIRCULAR_REF");e.CIRCULAR_REF=s;const r=Symbol("EOF");e.EOF=r;const a=function t(){let e=Object.create(null);class i{constructor(t){this.name=t}static get(t){return e[t]||(e[t]=new i(t))}static _clearCache(){e=Object.create(null)}}return i}();e.Name=a;const o=function t(){let e=Object.create(null);class i{constructor(t){this.cmd=t}static get(t){return e[t]||(e[t]=new i(t))}static _clearCache(){e=Object.create(null)}}return i}();e.Cmd=o;const c=function t(){return c};class l{constructor(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;this._map=Object.create(null);this.xref=t;this.objId=null;this.suppressEncryption=false;this.__nonSerializable__=c}assignXref(t){this.xref=t}get size(){return Object.keys(this._map).length}get(t,e,i){let n=this._map[t];if(n===undefined&&e!==undefined){n=this._map[e];if(n===undefined&&i!==undefined){n=this._map[i]}}if(n instanceof h&&this.xref){return this.xref.fetch(n,this.suppressEncryption)}return n}async getAsync(t,e,i){let n=this._map[t];if(n===undefined&&e!==undefined){n=this._map[e];if(n===undefined&&i!==undefined){n=this._map[i]}}if(n instanceof h&&this.xref){return this.xref.fetchAsync(n,this.suppressEncryption)}return n}getArray(t,e,i){let n=this._map[t];if(n===undefined&&e!==undefined){n=this._map[e];if(n===undefined&&i!==undefined){n=this._map[i]}}if(n instanceof h&&this.xref){n=this.xref.fetch(n,this.suppressEncryption)}if(Array.isArray(n)){n=n.slice();for(let t=0,e=n.length;t<e;t++){if(n[t]instanceof h&&this.xref){n[t]=this.xref.fetch(n[t],this.suppressEncryption)}}}return n}getRaw(t){return this._map[t]}getKeys(){return Object.keys(this._map)}getRawValues(){return Object.values(this._map)}set(t,e){this._map[t]=e}has(t){return this._map[t]!==undefined}forEach(t){for(const e in this._map){t(e,this.get(e))}}static get empty(){const t=new l(null);t.set=(t,e)=>{(0,n.unreachable)("Should not call `set` on the empty dictionary.")};return(0,n.shadow)(this,"empty",t)}static merge(t){let{xref:e,dictArray:i,mergeSubDicts:n=false}=t;const s=new l(e),r=new Map;for(const t of i){if(!(t instanceof l)){continue}for(const[e,i]of Object.entries(t._map)){let t=r.get(e);if(t===undefined){t=[];r.set(e,t)}else if(!n||!(i instanceof l)){continue}t.push(i)}}for(const[t,i]of r){if(i.length===1||!(i[0]instanceof l)){s._map[t]=i[0];continue}const n=new l(e);for(const t of i){for(const[e,i]of Object.entries(t._map)){if(n._map[e]===undefined){n._map[e]=i}}}if(n.size>0){s._map[t]=n}}r.clear();return s.size>0?s:l.empty}}e.Dict=l;const h=function t(){let e=Object.create(null);class i{constructor(t,e){this.num=t;this.gen=e}toString(){if(this.gen===0){return`${this.num}R`}return`${this.num}R${this.gen}`}static get(t,n){const s=n===0?`${t}R`:`${t}R${n}`;return e[s]||(e[s]=new i(t,n))}static _clearCache(){e=Object.create(null)}}return i}();e.Ref=h;class u{constructor(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;this._set=new Set(t&&t._set)}has(t){return this._set.has(t.toString())}put(t){this._set.add(t.toString())}remove(t){this._set.delete(t.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}}e.RefSet=u;class f{constructor(){this._map=new Map}get size(){return this._map.size}get(t){return this._map.get(t.toString())}has(t){return this._map.has(t.toString())}put(t,e){this._map.set(t.toString(),e)}putAlias(t,e){this._map.set(t.toString(),this.get(e))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}}e.RefSetCache=f;function d(t,e){return t instanceof a&&(e===undefined||t.name===e)}function p(t,e){return t instanceof o&&(e===undefined||t.cmd===e)}function m(t,e){return t instanceof l&&(e===undefined||d(t.get("Type"),e))}function g(t,e){return t.num===e.num&&t.gen===e.gen}function b(){o._clearCache();a._clearCache();h._clearCache()}},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.XRefParseException=e.XRefEntryException=e.ParserEOFException=e.PDF_VERSION_REGEXP=e.MissingDataException=e.DocStats=void 0;e.collectActions=M;e.encodeToXmlString=E;e.escapePDFName=x;e.getArrayLookupTableFactory=c;e.getInheritableProperty=p;e.getLookupTableFactory=o;e.getNewAnnotationsMap=I;e.isWhiteSpace=A;e.log2=b;e.numberToString=T;e.parseXFAPath=k;e.readInt8=v;e.readUint16=w;e.readUint32=y;e.recoverJsURL=O;e.toRomanNumerals=g;e.validateCSSFont=C;var n=i(2);var s=i(134);var r=i(136);const a=/^[1-9]\.\d$/;e.PDF_VERSION_REGEXP=a;function o(t){let e;return function(){if(t){e=Object.create(null);t(e);t=null}return e}}function c(t){let e;return function(){if(t){let i=t();t=null;e=Object.create(null);for(let t=0,n=i.length;t<n;t+=2){e[i[t]]=i[t+1]}i=null}return e}}class l extends n.BaseException{constructor(t,e){super(`Missing data [${t}, ${e})`,"MissingDataException");this.begin=t;this.end=e}}e.MissingDataException=l;class h extends n.BaseException{constructor(t){super(t,"ParserEOFException")}}e.ParserEOFException=h;class u extends n.BaseException{constructor(t){super(t,"XRefEntryException")}}e.XRefEntryException=u;class f extends n.BaseException{constructor(t){super(t,"XRefParseException")}}e.XRefParseException=f;class d{constructor(t){this._handler=t;this._streamTypes=new Set;this._fontTypes=new Set}_send(){const t=Object.create(null),e=Object.create(null);for(const e of this._streamTypes){t[e]=true}for(const t of this._fontTypes){e[t]=true}this._handler.send("DocStats",{streamTypes:t,fontTypes:e})}addStreamType(t){if(this._streamTypes.has(t)){return}this._streamTypes.add(t);this._send()}addFontType(t){if(this._fontTypes.has(t)){return}this._fontTypes.add(t);this._send()}}e.DocStats=d;function p(t){let{dict:e,key:i,getArray:n=false,stopWhenFound:r=true}=t;let a;const o=new s.RefSet;while(e instanceof s.Dict&&!(e.objId&&o.has(e.objId))){if(e.objId){o.put(e.objId)}const t=n?e.getArray(i):e.get(i);if(t!==undefined){if(r){return t}if(!a){a=[]}a.push(t)}e=e.get("Parent")}return a}const m=["","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 g(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;(0,n.assert)(Number.isInteger(t)&&t>0,"The number should be a positive integer.");const i=[];let s;while(t>=1e3){t-=1e3;i.push("M")}s=t/100|0;t%=100;i.push(m[s]);s=t/10|0;t%=10;i.push(m[10+s]);i.push(m[20+t]);const r=i.join("");return e?r.toLowerCase():r}function b(t){if(t<=0){return 0}return Math.ceil(Math.log2(t))}function v(t,e){return t[e]<<24>>24}function w(t,e){return t[e]<<8|t[e+1]}function y(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}function A(t){return t===32||t===9||t===13||t===10}function k(t){const e=/(.+)\[(\d+)\]$/;return t.split(".").map((t=>{const i=t.match(e);if(i){return{name:i[1],pos:parseInt(i[2],10)}}return{name:t,pos:0}}))}function x(t){const e=[];let i=0;for(let n=0,s=t.length;n<s;n++){const s=t.charCodeAt(n);if(s<33||s>126||s===35||s===40||s===41||s===60||s===62||s===91||s===93||s===123||s===125||s===47||s===37){if(i<n){e.push(t.substring(i,n))}e.push(`#${s.toString(16)}`);i=n+1}}if(e.length===0){return t}if(i<t.length){e.push(t.substring(i,t.length))}return e.join("")}function S(t,e,i,a){if(!t){return}let o=null;if(t instanceof s.Ref){if(a.has(t)){return}o=t;a.put(o);t=e.fetch(t)}if(Array.isArray(t)){for(const n of t){S(n,e,i,a)}}else if(t instanceof s.Dict){if((0,s.isName)(t.get("S"),"JavaScript")){const e=t.get("JS");let s;if(e instanceof r.BaseStream){s=e.getString()}else if(typeof e==="string"){s=e}s=s&&(0,n.stringToPDFString)(s).replace(/\u0000/g,"");if(s){i.push(s)}}S(t.getRaw("Next"),e,i,a)}if(o){a.remove(o)}}function M(t,e,i){const r=Object.create(null);const a=p({dict:e,key:"AA",stopWhenFound:false});if(a){for(let e=a.length-1;e>=0;e--){const n=a[e];if(!(n instanceof s.Dict)){continue}for(const e of n.getKeys()){const a=i[e];if(!a){continue}const o=n.getRaw(e);const c=new s.RefSet;const l=[];S(o,t,l,c);if(l.length>0){r[a]=l}}}}if(e.has("A")){const i=e.get("A");const n=new s.RefSet;const a=[];S(i,t,a,n);if(a.length>0){r.Action=a}}return(0,n.objectSize)(r)>0?r:null}const _={60:"<",62:">",38:"&",34:""",39:"'"};function E(t){const e=[];let i=0;for(let n=0,s=t.length;n<s;n++){const s=t.codePointAt(n);if(32<=s&&s<=126){const r=_[s];if(r){if(i<n){e.push(t.substring(i,n))}e.push(r);i=n+1}}else{if(i<n){e.push(t.substring(i,n))}e.push(`&#x${s.toString(16).toUpperCase()};`);if(s>55295&&(s<57344||s>65533)){n++}i=n+1}}if(e.length===0){return t}if(i<t.length){e.push(t.substring(i,t.length))}return e.join("")}function C(t){const e="14";const i="400";const s=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]);const{fontFamily:r,fontWeight:a,italicAngle:o}=t;if(/^".*"$/.test(r)){if(/[^\\]"/.test(r.slice(1,r.length-1))){(0,n.warn)(`XFA - FontFamily contains some unescaped ": ${r}.`);return false}}else if(/^'.*'$/.test(r)){if(/[^\\]'/.test(r.slice(1,r.length-1))){(0,n.warn)(`XFA - FontFamily contains some unescaped ': ${r}.`);return false}}else{for(const t of r.split(/[ \t]+/)){if(/^(\d|(-(\d|-)))/.test(t)||!/^[\w-\\]+$/.test(t)){(0,n.warn)(`XFA - FontFamily contains some invalid <custom-ident>: ${r}.`);return false}}}const c=a?a.toString():"";t.fontWeight=s.has(c)?c:i;const l=parseFloat(o);t.italicAngle=isNaN(l)||l<-90||l>90?e:o.toString();return true}function O(t){const e=["app.launchURL","window.open","xfa.host.gotoURL"];const i=new RegExp("^\\s*("+e.join("|").split(".").join("\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i");const n=i.exec(t);if(n&&n[2]){const t=n[2];let e=false;if(n[3]==="true"&&n[1]==="app.launchURL"){e=true}return{url:t,newWindow:e}}return null}function T(t){if(Number.isInteger(t)){return t.toString()}const e=Math.round(t*100);if(e%100===0){return(e/100).toString()}if(e%10===0){return t.toFixed(1)}return t.toFixed(2)}function I(t){if(!t){return null}const e=new Map;for(const[i,s]of t){if(!i.startsWith(n.AnnotationEditorPrefix)){continue}let t=e.get(s.pageIndex);if(!t){t=[];e.set(s.pageIndex,t)}t.push(s)}return e.size>0?e:null}},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.BaseStream=void 0;var n=i(2);class s{constructor(){if(this.constructor===s){(0,n.unreachable)("Cannot initialize BaseStream.")}}get length(){(0,n.unreachable)("Abstract getter `length` accessed")}get isEmpty(){(0,n.unreachable)("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return(0,n.shadow)(this,"isDataLoaded",true)}getByte(){(0,n.unreachable)("Abstract method `getByte` called")}getBytes(t){(0,n.unreachable)("Abstract method `getBytes` called")}peekByte(){const t=this.getByte();if(t!==-1){this.pos--}return t}peekBytes(t){const e=this.getBytes(t);this.pos-=e.length;return e}getUint16(){const t=this.getByte();const e=this.getByte();if(t===-1||e===-1){return-1}return(t<<8)+e}getInt32(){const t=this.getByte();const e=this.getByte();const i=this.getByte();const n=this.getByte();return(t<<24)+(e<<16)+(i<<8)+n}getByteRange(t,e){(0,n.unreachable)("Abstract method `getByteRange` called")}getString(t){return(0,n.bytesToString)(this.getBytes(t))}skip(t){this.pos+=t||1}reset(){(0,n.unreachable)("Abstract method `reset` called")}moveStart(){(0,n.unreachable)("Abstract method `moveStart` called")}makeSubStream(t,e){(0,n.unreachable)("Abstract method `makeSubStream` called")}getBaseStreams(){return null}}e.BaseStream=s},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.NetworkPdfManager=e.LocalPdfManager=void 0;var n=i(2);var s=i(138);var r=i(135);var a=i(140);var o=i(139);function c(t){if(t){const e=(0,n.createValidAbsoluteUrl)(t);if(e){return e.href}(0,n.warn)(`Invalid absolute docBaseUrl: "${t}".`)}return null}class l{constructor(){if(this.constructor===l){(0,n.unreachable)("Cannot initialize BasePdfManager.")}}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){const t=this.pdfDocument.catalog;return(0,n.shadow)(this,"docBaseUrl",t.baseUrl||this._docBaseUrl)}ensureDoc(t,e){return this.ensure(this.pdfDocument,t,e)}ensureXRef(t,e){return this.ensure(this.pdfDocument.xref,t,e)}ensureCatalog(t,e){return this.ensure(this.pdfDocument.catalog,t,e)}getPage(t){return this.pdfDocument.getPage(t)}fontFallback(t,e){return this.pdfDocument.fontFallback(t,e)}loadXfaFonts(t,e){return this.pdfDocument.loadXfaFonts(t,e)}loadXfaImages(){return this.pdfDocument.loadXfaImages()}serializeXfaData(t){return this.pdfDocument.serializeXfaData(t)}cleanup(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;return this.pdfDocument.cleanup(t)}async ensure(t,e,i){(0,n.unreachable)("Abstract method `ensure` called")}requestRange(t,e){(0,n.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(){(0,n.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(t){(0,n.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(t){this._password=t}terminate(t){(0,n.unreachable)("Abstract method `terminate` called")}}class h extends l{constructor(t,e,i,n,s,r,l){super();this._docId=t;this._password=i;this._docBaseUrl=c(l);this.msgHandler=n;this.evaluatorOptions=s;this.enableXfa=r;const h=new o.Stream(e);this.pdfDocument=new a.PDFDocument(this,h);this._loadedStreamPromise=Promise.resolve(h)}async ensure(t,e,i){const n=t[e];if(typeof n==="function"){return n.apply(t,i)}return n}requestRange(t,e){return Promise.resolve()}requestLoadedStream(){return this._loadedStreamPromise}terminate(t){}}e.LocalPdfManager=h;class u extends l{constructor(t,e,i,n,r,o){super();this._docId=t;this._password=i.password;this._docBaseUrl=c(o);this.msgHandler=i.msgHandler;this.evaluatorOptions=n;this.enableXfa=r;this.streamManager=new s.ChunkedStreamManager(e,{msgHandler:i.msgHandler,length:i.length,disableAutoFetch:i.disableAutoFetch,rangeChunkSize:i.rangeChunkSize});this.pdfDocument=new a.PDFDocument(this,this.streamManager.getStream())}async ensure(t,e,i){try{const n=t[e];if(typeof n==="function"){return n.apply(t,i)}return n}catch(n){if(!(n instanceof r.MissingDataException)){throw n}await this.requestRange(n.begin,n.end);return this.ensure(t,e,i)}}requestRange(t,e){return this.streamManager.requestRange(t,e)}requestLoadedStream(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;return this.streamManager.requestAllChunks(t)}sendProgressiveData(t){this.streamManager.onReceiveData({chunk:t})}terminate(t){this.streamManager.abort(t)}}e.NetworkPdfManager=u},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.ChunkedStreamManager=e.ChunkedStream=void 0;var n=i(2);var s=i(135);var r=i(139);class a extends r.Stream{constructor(t,e,i){super(new Uint8Array(t),0,t,null);this.chunkSize=e;this._loadedChunks=new Set;this.numChunks=Math.ceil(t/e);this.manager=i;this.progressiveDataLength=0;this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){const t=[];for(let e=0,i=this.numChunks;e<i;++e){if(!this._loadedChunks.has(e)){t.push(e)}}return t}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(t,e){const i=this.chunkSize;if(t%i!==0){throw new Error(`Bad begin offset: ${t}`)}const n=t+e.byteLength;if(n%i!==0&&n!==this.bytes.length){throw new Error(`Bad end offset: ${n}`)}this.bytes.set(new Uint8Array(e),t);const s=Math.floor(t/i);const r=Math.floor((n-1)/i)+1;for(let t=s;t<r;++t){this._loadedChunks.add(t)}}onReceiveProgressiveData(t){let e=this.progressiveDataLength;const i=Math.floor(e/this.chunkSize);this.bytes.set(new Uint8Array(t),e);e+=t.byteLength;this.progressiveDataLength=e;const n=e>=this.end?this.numChunks:Math.floor(e/this.chunkSize);for(let t=i;t<n;++t){this._loadedChunks.add(t)}}ensureByte(t){if(t<this.progressiveDataLength){return}const e=Math.floor(t/this.chunkSize);if(e>this.numChunks){return}if(e===this.lastSuccessfulEnsureByteChunk){return}if(!this._loadedChunks.has(e)){throw new s.MissingDataException(t,t+1)}this.lastSuccessfulEnsureByteChunk=e}ensureRange(t,e){if(t>=e){return}if(e<=this.progressiveDataLength){return}const i=Math.floor(t/this.chunkSize);if(i>this.numChunks){return}const n=Math.min(Math.floor((e-1)/this.chunkSize)+1,this.numChunks);for(let r=i;r<n;++r){if(!this._loadedChunks.has(r)){throw new s.MissingDataException(t,e)}}}nextEmptyChunk(t){const e=this.numChunks;for(let i=0;i<e;++i){const n=(t+i)%e;if(!this._loadedChunks.has(n)){return n}}return null}hasChunk(t){return this._loadedChunks.has(t)}getByte(){const t=this.pos;if(t>=this.end){return-1}if(t>=this.progressiveDataLength){this.ensureByte(t)}return this.bytes[this.pos++]}getBytes(t){const e=this.bytes;const i=this.pos;const n=this.end;if(!t){if(n>this.progressiveDataLength){this.ensureRange(i,n)}return e.subarray(i,n)}let s=i+t;if(s>n){s=n}if(s>this.progressiveDataLength){this.ensureRange(i,s)}this.pos=s;return e.subarray(i,s)}getByteRange(t,e){if(t<0){t=0}if(e>this.end){e=this.end}if(e>this.progressiveDataLength){this.ensureRange(t,e)}return this.bytes.subarray(t,e)}makeSubStream(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;if(e){if(t+e>this.progressiveDataLength){this.ensureRange(t,t+e)}}else{if(t>=this.progressiveDataLength){this.ensureByte(t)}}function n(){}n.prototype=Object.create(this);n.prototype.getMissingChunks=function(){const t=this.chunkSize;const e=Math.floor(this.start/t);const i=Math.floor((this.end-1)/t)+1;const n=[];for(let t=e;t<i;++t){if(!this._loadedChunks.has(t)){n.push(t)}}return n};Object.defineProperty(n.prototype,"isDataLoaded",{get(){if(this.numChunksLoaded===this.numChunks){return true}return this.getMissingChunks().length===0},configurable:true});const s=new n;s.pos=s.start=t;s.end=t+e||this.end;s.dict=i;return s}getBaseStreams(){return[this]}}e.ChunkedStream=a;class o{constructor(t,e){this.length=e.length;this.chunkSize=e.rangeChunkSize;this.stream=new a(this.length,this.chunkSize,this);this.pdfNetworkStream=t;this.disableAutoFetch=e.disableAutoFetch;this.msgHandler=e.msgHandler;this.currRequestId=0;this._chunksNeededByRequest=new Map;this._requestsByChunk=new Map;this._promisesByRequest=new Map;this.progressiveDataLength=0;this.aborted=false;this._loadedStreamCapability=(0,n.createPromiseCapability)()}sendRequest(t,e){const i=this.pdfNetworkStream.getRangeReader(t,e);if(!i.isStreamingSupported){i.onProgress=this.onProgress.bind(this)}let s=[],r=0;return new Promise(((t,e)=>{const a=o=>{try{if(!o.done){const t=o.value;s.push(t);r+=(0,n.arrayByteLength)(t);if(i.isStreamingSupported){this.onProgress({loaded:r})}i.read().then(a,e);return}const c=(0,n.arraysToBytes)(s);s=null;t(c)}catch(t){e(t)}};i.read().then(a,e)})).then((e=>{if(this.aborted){return}this.onReceiveData({chunk:e,begin:t})}))}requestAllChunks(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(!t){const t=this.stream.getMissingChunks();this._requestChunks(t)}return this._loadedStreamCapability.promise}_requestChunks(t){const e=this.currRequestId++;const i=new Set;this._chunksNeededByRequest.set(e,i);for(const e of t){if(!this.stream.hasChunk(e)){i.add(e)}}if(i.size===0){return Promise.resolve()}const s=(0,n.createPromiseCapability)();this._promisesByRequest.set(e,s);const r=[];for(const t of i){let i=this._requestsByChunk.get(t);if(!i){i=[];this._requestsByChunk.set(t,i);r.push(t)}i.push(e)}if(r.length>0){const t=this.groupChunks(r);for(const e of t){const t=e.beginChunk*this.chunkSize;const i=Math.min(e.endChunk*this.chunkSize,this.length);this.sendRequest(t,i).catch(s.reject)}}return s.promise.catch((t=>{if(this.aborted){return}throw t}))}getStream(){return this.stream}requestRange(t,e){e=Math.min(e,this.length);const i=this.getBeginChunk(t);const n=this.getEndChunk(e);const s=[];for(let t=i;t<n;++t){s.push(t)}return this._requestChunks(s)}requestRanges(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];const e=[];for(const i of t){const t=this.getBeginChunk(i.begin);const n=this.getEndChunk(i.end);for(let i=t;i<n;++i){if(!e.includes(i)){e.push(i)}}}e.sort((function(t,e){return t-e}));return this._requestChunks(e)}groupChunks(t){const e=[];let i=-1;let n=-1;for(let s=0,r=t.length;s<r;++s){const r=t[s];if(i<0){i=r}if(n>=0&&n+1!==r){e.push({beginChunk:i,endChunk:n+1});i=r}if(s+1===t.length){e.push({beginChunk:i,endChunk:r+1})}n=r}return e}onProgress(t){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+t.loaded,total:this.length})}onReceiveData(t){const e=t.chunk;const i=t.begin===undefined;const n=i?this.progressiveDataLength:t.begin;const s=n+e.byteLength;const r=Math.floor(n/this.chunkSize);const a=s<this.length?Math.floor(s/this.chunkSize):Math.ceil(s/this.chunkSize);if(i){this.stream.onReceiveProgressiveData(e);this.progressiveDataLength=s}else{this.stream.onReceiveData(n,e)}if(this.stream.isDataLoaded){this._loadedStreamCapability.resolve(this.stream)}const o=[];for(let t=r;t<a;++t){const e=this._requestsByChunk.get(t);if(!e){continue}this._requestsByChunk.delete(t);for(const i of e){const e=this._chunksNeededByRequest.get(i);if(e.has(t)){e.delete(t)}if(e.size>0){continue}o.push(i)}}if(!this.disableAutoFetch&&this._requestsByChunk.size===0){let t;if(this.stream.numChunksLoaded===1){const e=this.stream.numChunks-1;if(!this.stream.hasChunk(e)){t=e}}else{t=this.stream.nextEmptyChunk(a)}if(Number.isInteger(t)){this._requestChunks([t])}}for(const t of o){const e=this._promisesByRequest.get(t);this._promisesByRequest.delete(t);e.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(t){this._loadedStreamCapability.reject(t)}getBeginChunk(t){return Math.floor(t/this.chunkSize)}getEndChunk(t){return Math.floor((t-1)/this.chunkSize)+1}abort(t){this.aborted=true;if(this.pdfNetworkStream){this.pdfNetworkStream.cancelAllRequests(t)}for(const e of this._promisesByRequest.values()){e.reject(t)}}}e.ChunkedStreamManager=o},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.StringStream=e.Stream=e.NullStream=void 0;var n=i(136);var s=i(2);class r extends n.BaseStream{constructor(t,e,i,n){super();this.bytes=t instanceof Uint8Array?t:new Uint8Array(t);this.start=e||0;this.pos=this.start;this.end=e+i||this.bytes.length;this.dict=n}get length(){return this.end-this.start}get isEmpty(){return this.length===0}getByte(){if(this.pos>=this.end){return-1}return this.bytes[this.pos++]}getBytes(t){const e=this.bytes;const i=this.pos;const n=this.end;if(!t){return e.subarray(i,n)}let s=i+t;if(s>n){s=n}this.pos=s;return e.subarray(i,s)}getByteRange(t,e){if(t<0){t=0}if(e>this.end){e=this.end}return this.bytes.subarray(t,e)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;return new r(this.bytes.buffer,t,e,i)}}e.Stream=r;class a extends r{constructor(t){super((0,s.stringToBytes)(t))}}e.StringStream=a;class o extends r{constructor(){super(new Uint8Array(0))}}e.NullStream=o},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.Page=e.PDFDocument=void 0;var n=i(141);var s=i(2);var r=i(135);var a=i(134);var o=i(180);var c=i(136);var l=i(196);var h=i(198);var u=i(200);var f=i(229);var d=i(146);var p=i(139);var m=i(204);var g=i(191);var b=i(144);var v=i(148);var w=i(203);var y=i(194);var A=i(205);var k=i(230);const x=1;const S=[0,0,612,792];class M{constructor(t){let{pdfManager:e,xref:i,pageIndex:n,pageDict:s,ref:r,globalIdFactory:a,fontCache:o,builtInCMapCache:c,standardFontDataCache:l,globalImageCache:h,nonBlendModesSet:u,xfaFactory:f}=t;this.pdfManager=e;this.pageIndex=n;this.pageDict=s;this.xref=i;this.ref=r;this.fontCache=o;this.builtInCMapCache=c;this.standardFontDataCache=l;this.globalImageCache=h;this.nonBlendModesSet=u;this.evaluatorOptions=e.evaluatorOptions;this.resourcesPromise=null;this.xfaFactory=f;const d={obj:0};this._localIdFactory=class extends a{static createObjId(){return`p${n}_${++d.obj}`}static getPageObjId(){return`page${r.toString()}`}}}_getInheritableProperty(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;const i=(0,r.getInheritableProperty)({dict:this.pageDict,key:t,getArray:e,stopWhenFound:false});if(!Array.isArray(i)){return i}if(i.length===1||!(i[0]instanceof a.Dict)){return i[0]}return a.Dict.merge({xref:this.xref,dictArray:i})}get content(){return this.pageDict.getArray("Contents")}get resources(){const t=this._getInheritableProperty("Resources");return(0,s.shadow)(this,"resources",t instanceof a.Dict?t:a.Dict.empty)}_getBoundingBox(t){if(this.xfaData){return this.xfaData.bbox}const e=this._getInheritableProperty(t,true);if(Array.isArray(e)&&e.length===4){if(e[2]-e[0]!==0&&e[3]-e[1]!==0){return e}(0,s.warn)(`Empty /${t} entry.`)}return null}get mediaBox(){return(0,s.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||S)}get cropBox(){return(0,s.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let t=this.pageDict.get("UserUnit");if(typeof t!=="number"||t<=0){t=x}return(0,s.shadow)(this,"userUnit",t)}get view(){const{cropBox:t,mediaBox:e}=this;let i;if(t===e||(0,s.isArrayEqual)(t,e)){i=e}else{const n=s.Util.intersect(t,e);if(n&&n[2]-n[0]!==0&&n[3]-n[1]!==0){i=n}else{(0,s.warn)("Empty /CropBox and /MediaBox intersection.")}}return(0,s.shadow)(this,"view",i||e)}get rotate(){let t=this._getInheritableProperty("Rotate")||0;if(t%90!==0){t=0}else if(t>=360){t%=360}else if(t<0){t=(t%360+360)%360}return(0,s.shadow)(this,"rotate",t)}_onSubStreamError(t,e,i){if(this.evaluatorOptions.ignoreErrors){t.send("UnsupportedFeature",{featureId:s.UNSUPPORTED_FEATURES.errorContentSubStream});(0,s.warn)(`getContentStream - ignoring sub-stream (${i}): "${e}".`);return}throw e}getContentStream(t){return this.pdfManager.ensure(this,"content").then((e=>{if(e instanceof c.BaseStream){return e}if(Array.isArray(e)){return new v.StreamsSequenceStream(e,this._onSubStreamError.bind(this,t))}return new p.NullStream}))}get xfaData(){return(0,s.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}async saveNewAnnotations(t,e,i){if(this.xfaFactory){throw new Error("XFA: Cannot save new annotations.")}const s=new b.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions});const r=this.pageDict;const a=this.annotations.slice();const o=await n.AnnotationFactory.saveNewAnnotations(s,e,i);for(const{ref:t}of o.annotations){a.push(t)}const c=r.get("Annots");r.set("Annots",a);const l=[];let h=null;if(this.xref.encrypt){h=this.xref.encrypt.createCipherTransform(this.ref.num,this.ref.gen)}(0,y.writeObject)(this.ref,r,l,h);if(c){r.set("Annots",c)}const u=o.dependencies;u.push({ref:this.ref,data:l.join("")},...o.annotations);return u}save(t,e,i){const n=new b.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions});return this._parsedAnnotations.then((function(t){const r=[];for(const a of t){if(!a.mustBePrinted(i)){continue}r.push(a.save(n,e,i).catch((function(t){(0,s.warn)("save - ignoring annotation data during "+`"${e.name}" task: "${t}".`);return null})))}return Promise.all(r).then((function(t){return t.filter((t=>!!t))}))}))}loadResources(t){if(!this.resourcesPromise){this.resourcesPromise=this.pdfManager.ensure(this,"resources")}return this.resourcesPromise.then((()=>{const e=new m.ObjectLoader(this.resources,t,this.xref);return e.load()}))}getOperatorList(t){let{handler:e,sink:i,task:a,intent:o,cacheKey:c,annotationStorage:l=null}=t;const h=this.getContentStream(e);const u=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]);const f=new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions});const d=!this.xfaFactory?(0,r.getNewAnnotationsMap)(l):null;let p=Promise.resolve(null);if(d){const t=d.get(this.pageIndex);if(t){p=n.AnnotationFactory.printNewAnnotations(f,a,t)}}const m=Promise.all([h,u]);const v=m.then((t=>{let[n]=t;const s=new g.OperatorList(o,i);e.send("StartRenderPage",{transparency:f.hasBlendModes(this.resources,this.nonBlendModesSet),pageIndex:this.pageIndex,cacheKey:c});return f.getOperatorList({stream:n,task:a,resources:this.resources,operatorList:s}).then((function(){return s}))}));return Promise.all([v,this._parsedAnnotations,p]).then((function(t){let[e,i,n]=t;if(n){i=i.concat(n)}if(i.length===0||o&s.RenderingIntentFlag.ANNOTATIONS_DISABLE){e.flush(true);return{length:e.totalLength}}const r=!!(o&s.RenderingIntentFlag.ANNOTATIONS_FORMS),c=!!(o&s.RenderingIntentFlag.ANY),h=!!(o&s.RenderingIntentFlag.DISPLAY),u=!!(o&s.RenderingIntentFlag.PRINT);const d=[];for(const t of i){if(c||h&&t.mustBeViewed(l)||u&&t.mustBePrinted(l)){d.push(t.getOperatorList(f,a,o,r,l).catch((function(t){(0,s.warn)("getOperatorList - ignoring annotation data during "+`"${a.name}" task: "${t}".`);return{opList:null,separateForm:false,separateCanvas:false}})))}}return Promise.all(d).then((function(t){let i=false,n=false;for(const{opList:s,separateForm:r,separateCanvas:a}of t){e.addOpList(s);if(r){i=r}if(a){n=a}}e.flush(true,{form:i,canvas:n});return{length:e.totalLength}}))}))}extractTextContent(t){let{handler:e,task:i,includeMarkedContent:n,sink:s,combineTextItems:r}=t;const a=this.getContentStream(e);const o=this.loadResources(["ExtGState","Font","Properties","XObject"]);const c=Promise.all([a,o]);return c.then((t=>{let[a]=t;const o=new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions});return o.getTextContent({stream:a,task:i,resources:this.resources,includeMarkedContent:n,combineTextItems:r,sink:s,viewBox:this.view})}))}async getStructTree(){const t=await this.pdfManager.ensureCatalog("structTreeRoot");if(!t){return null}const e=await this.pdfManager.ensure(this,"_parseStructTree",[t]);return e.serializable}_parseStructTree(t){const e=new w.StructTreePage(t,this.pageDict);e.parse();return e}async getAnnotationsData(t,e,i){const n=await this._parsedAnnotations;if(n.length===0){return[]}const r=[];const a=[];let o;const c=!!(i&s.RenderingIntentFlag.ANY),l=!!(i&s.RenderingIntentFlag.DISPLAY),h=!!(i&s.RenderingIntentFlag.PRINT);for(const i of n){const n=c||l&&i.viewable;if(n||h&&i.printable){a.push(i.data)}if(i.hasTextContent&&n){if(!o){o=new b.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions})}r.push(i.extractTextContent(o,e,this.view).catch((function(t){(0,s.warn)(`getAnnotationsData - ignoring textContent during "${e.name}" task: "${t}".`)})))}}await Promise.all(r);return a}get annotations(){const t=this._getInheritableProperty("Annots");return(0,s.shadow)(this,"annotations",Array.isArray(t)?t:[])}get _parsedAnnotations(){const t=this.pdfManager.ensure(this,"annotations").then((()=>{const t=[];for(const e of this.annotations){t.push(n.AnnotationFactory.create(this.xref,e,this.pdfManager,this._localIdFactory,false).catch((function(t){(0,s.warn)(`_parsedAnnotations: "${t}".`);return null})))}return Promise.all(t).then((function(t){if(t.length===0){return t}const e=[];let i;for(const s of t){if(!s){continue}if(s instanceof n.PopupAnnotation){if(!i){i=[]}i.push(s);continue}e.push(s)}if(i){e.push(...i)}return e}))}));return(0,s.shadow)(this,"_parsedAnnotations",t)}get jsActions(){const t=(0,r.collectActions)(this.xref,this.pageDict,s.PageActionEventType);return(0,s.shadow)(this,"jsActions",t)}}e.Page=M;const _=new Uint8Array([37,80,68,70,45]);const E=new Uint8Array([115,116,97,114,116,120,114,101,102]);const C=new Uint8Array([101,110,100,111,98,106]);const O=1024;const T="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";function I(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1024;let n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;const s=e.length;const r=t.peekBytes(i);const a=r.length-s;if(a<=0){return false}if(n){const i=s-1;let n=r.length-1;while(n>=i){let a=0;while(a<s&&r[n-a]===e[i-a]){a++}if(a>=s){t.pos+=n-i;return true}n--}}else{let i=0;while(i<=a){let n=0;while(n<s&&r[i+n]===e[n]){n++}if(n>=s){t.pos+=i;return true}i++}}return false}class F{constructor(t,e){if(e.length<=0){throw new s.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.")}this.pdfManager=t;this.stream=e;this.xref=new k.XRef(e,t);this._pagePromises=new Map;this._version=null;const i={font:0};this._globalIdFactory=class{static getDocId(){return`g_${t.docId}`}static createFontId(){return`f${++i.font}`}static createObjId(){(0,s.unreachable)("Abstract method `createObjId` called.")}static getPageObjId(){(0,s.unreachable)("Abstract method `getPageObjId` called.")}}}parse(t){this.xref.parse(t);this.catalog=new h.Catalog(this.pdfManager,this.xref)}get linearization(){let t=null;try{t=d.Linearization.create(this.stream)}catch(t){if(t instanceof r.MissingDataException){throw t}(0,s.info)(t)}return(0,s.shadow)(this,"linearization",t)}get startXRef(){const t=this.stream;let e=0;if(this.linearization){t.reset();if(I(t,C)){e=t.pos+6-t.start}}else{const i=1024;const n=E.length;let s=false,a=t.end;while(!s&&a>0){a-=i-n;if(a<0){a=0}t.pos=a;s=I(t,E,i,true)}if(s){t.skip(9);let i;do{i=t.getByte()}while((0,r.isWhiteSpace)(i));let n="";while(i>=32&&i<=57){n+=String.fromCharCode(i);i=t.getByte()}e=parseInt(n,10);if(isNaN(e)){e=0}}}return(0,s.shadow)(this,"startXRef",e)}checkHeader(){const t=this.stream;t.reset();if(!I(t,_)){return}t.moveStart();t.skip(_.length);let e="",i;while((i=t.getByte())>32&&e.length<7){e+=String.fromCharCode(i)}if(r.PDF_VERSION_REGEXP.test(e)){this._version=e}else{(0,s.warn)(`Invalid PDF header version: ${e}`)}}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){let t=0;if(this.catalog.hasActualNumPages){t=this.catalog.numPages}else if(this.xfaFactory){t=this.xfaFactory.getNumPages()}else if(this.linearization){t=this.linearization.numPages}else{t=this.catalog.numPages}return(0,s.shadow)(this,"numPages",t)}_hasOnlyDocumentSignatures(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;const i=10;if(!Array.isArray(t)){return false}return t.every((t=>{t=this.xref.fetchIfRef(t);if(!(t instanceof a.Dict)){return false}if(t.has("Kids")){if(++e>i){(0,s.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached");return false}return this._hasOnlyDocumentSignatures(t.get("Kids"),e)}const n=(0,a.isName)(t.get("FT"),"Sig");const r=t.get("Rect");const o=Array.isArray(r)&&r.every((t=>t===0));return n&&o}))}get _xfaStreams(){const t=this.catalog.acroForm;if(!t){return null}const e=t.get("XFA");const i={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if(e instanceof c.BaseStream&&!e.isEmpty){i["xdp:xdp"]=e;return i}if(!Array.isArray(e)||e.length===0){return null}for(let t=0,n=e.length;t<n;t+=2){let s;if(t===0){s="xdp:xdp"}else if(t===n-2){s="/xdp:xdp"}else{s=e[t]}if(!i.hasOwnProperty(s)){continue}const r=this.xref.fetchIfRef(e[t+1]);if(!(r instanceof c.BaseStream)||r.isEmpty){continue}i[s]=r}return i}get xfaDatasets(){const t=this._xfaStreams;if(!t){return(0,s.shadow)(this,"xfaDatasets",null)}for(const e of["datasets","xdp:xdp"]){const i=t[e];if(!i){continue}try{const t=(0,s.stringToUTF8String)(i.getString());const n={[e]:t};return(0,s.shadow)(this,"xfaDatasets",new f.DatasetReader(n))}catch(t){(0,s.warn)("XFA - Invalid utf-8 string.");break}}return(0,s.shadow)(this,"xfaDatasets",null)}get xfaData(){const t=this._xfaStreams;if(!t){return null}const e=Object.create(null);for(const[i,n]of Object.entries(t)){if(!n){continue}try{e[i]=(0,s.stringToUTF8String)(n.getString())}catch(t){(0,s.warn)("XFA - Invalid utf-8 string.");return null}}return e}get xfaFactory(){let t;if(this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm){t=this.xfaData}return(0,s.shadow)(this,"xfaFactory",t?new A.XFAFactory(t):null)}get isPureXfa(){return this.xfaFactory?this.xfaFactory.isValid():false}get htmlForXfa(){return this.xfaFactory?this.xfaFactory.getPages():null}async loadXfaImages(){const t=await this.pdfManager.ensureCatalog("xfaImages");if(!t){return}const e=t.getKeys();const i=new m.ObjectLoader(t,e,this.xref);await i.load();const n=new Map;for(const i of e){const e=t.get(i);if(e instanceof c.BaseStream){n.set(i,e.getBytes())}}this.xfaFactory.setImages(n)}async loadXfaFonts(t,e){const i=await this.pdfManager.ensureCatalog("acroForm");if(!i){return}const n=await i.getAsync("DR");if(!(n instanceof a.Dict)){return}const c=new m.ObjectLoader(n,["Font"],this.xref);await c.load();const l=n.get("Font");if(!(l instanceof a.Dict)){return}const h=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions);h.useSystemFonts=false;const u=new b.PartialEvaluator({xref:this.xref,handler:t,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:this.catalog.fontCache,builtInCMapCache:this.catalog.builtInCMapCache,standardFontDataCache:this.catalog.standardFontDataCache,options:h});const f=new g.OperatorList;const d=[];const p={get font(){return d.at(-1)},set font(t){d.push(t)},clone(){return this}};const v=new Map;l.forEach(((t,e)=>{v.set(t,e)}));const w=[];for(const[t,i]of v){const o=i.get("FontDescriptor");if(!(o instanceof a.Dict)){continue}let c=o.get("FontFamily");c=c.replace(/[ ]+(\d)/g,"$1");const l=o.get("FontWeight");const h=-o.get("ItalicAngle");const d={fontFamily:c,fontWeight:l,italicAngle:h};if(!(0,r.validateCSSFont)(d)){continue}w.push(u.handleSetFont(n,[a.Name.get(t),1],null,f,e,p,null,d).catch((function(t){(0,s.warn)(`loadXfaFonts: "${t}".`);return null})))}await Promise.all(w);const y=this.xfaFactory.setFonts(d);if(!y){return}h.ignoreErrors=true;w.length=0;d.length=0;const A=new Set;for(const t of y){if(!(0,o.getXfaFontName)(`${t}-Regular`)){A.add(t)}}if(A.size){y.push("PdfJS-Fallback")}for(const t of y){if(A.has(t)){continue}for(const i of[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}]){const r=`${t}-${i.name}`;const c=(0,o.getXfaFontDict)(r);w.push(u.handleSetFont(n,[a.Name.get(r),1],null,f,e,p,c,{fontFamily:t,fontWeight:i.fontWeight,italicAngle:i.italicAngle}).catch((function(t){(0,s.warn)(`loadXfaFonts: "${t}".`);return null})))}}await Promise.all(w);this.xfaFactory.appendFonts(d,A)}async serializeXfaData(t){return this.xfaFactory?this.xfaFactory.serializeData(t):null}get version(){return this.catalog.version||this._version}get formInfo(){const t={hasFields:false,hasAcroForm:false,hasXfa:false,hasSignatures:false};const e=this.catalog.acroForm;if(!e){return(0,s.shadow)(this,"formInfo",t)}try{const i=e.get("Fields");const n=Array.isArray(i)&&i.length>0;t.hasFields=n;const s=e.get("XFA");t.hasXfa=Array.isArray(s)&&s.length>0||s instanceof c.BaseStream&&!s.isEmpty;const r=e.get("SigFlags");const a=!!(r&1);const o=a&&this._hasOnlyDocumentSignatures(i);t.hasAcroForm=n&&!o;t.hasSignatures=a}catch(t){if(t instanceof r.MissingDataException){throw t}(0,s.warn)(`Cannot fetch form information: "${t}".`)}return(0,s.shadow)(this,"formInfo",t)}get documentInfo(){const t={PDFFormatVersion:this.version,Language:this.catalog.lang,EncryptFilterName:this.xref.encrypt?this.xref.encrypt.filterName:null,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures};let e;try{e=this.xref.trailer.get("Info")}catch(t){if(t instanceof r.MissingDataException){throw t}(0,s.info)("The document information dictionary is invalid.")}if(!(e instanceof a.Dict)){return(0,s.shadow)(this,"documentInfo",t)}for(const i of e.getKeys()){const n=e.get(i);switch(i){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if(typeof n==="string"){t[i]=(0,s.stringToPDFString)(n);continue}break;case"Trapped":if(n instanceof a.Name){t[i]=n;continue}break;default:let e;switch(typeof n){case"string":e=(0,s.stringToPDFString)(n);break;case"number":case"boolean":e=n;break;default:if(n instanceof a.Name){e=n}break}if(e===undefined){(0,s.warn)(`Bad value, for custom key "${i}", in Info: ${n}.`);continue}if(!t.Custom){t.Custom=Object.create(null)}t.Custom[i]=e;continue}(0,s.warn)(`Bad value, for key "${i}", in Info: ${n}.`)}return(0,s.shadow)(this,"documentInfo",t)}get fingerprints(){function t(t){return typeof t==="string"&&t.length>0&&t!==T}function e(t){const e=[];for(const i of t){const t=i.toString(16);e.push(t.padStart(2,"0"))}return e.join("")}const i=this.xref.trailer.get("ID");let n,r;if(Array.isArray(i)&&t(i[0])){n=(0,s.stringToBytes)(i[0]);if(i[1]!==i[0]&&t(i[1])){r=(0,s.stringToBytes)(i[1])}}else{n=(0,l.calculateMD5)(this.stream.getByteRange(0,O),0,O)}return(0,s.shadow)(this,"fingerprints",[e(n),r?e(r):null])}async _getLinearizationPage(t){const{catalog:e,linearization:i,xref:n}=this;const r=a.Ref.get(i.objectNumberFirst,0);try{const t=await n.fetchAsync(r);if(t instanceof a.Dict){let i=t.getRaw("Type");if(i instanceof a.Ref){i=await n.fetchAsync(i)}if((0,a.isName)(i,"Page")||!t.has("Type")&&!t.has("Kids")){if(!e.pageKidsCountCache.has(r)){e.pageKidsCountCache.put(r,1)}if(!e.pageIndexCache.has(r)){e.pageIndexCache.put(r,0)}return[t,r]}}throw new s.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")}catch(i){(0,s.warn)(`_getLinearizationPage: "${i.message}".`);return e.getPageDict(t)}}getPage(t){const e=this._pagePromises.get(t);if(e){return e}const{catalog:i,linearization:n,xfaFactory:s}=this;let r;if(s){r=Promise.resolve([a.Dict.empty,null])}else if(n&&n.pageFirst===t){r=this._getLinearizationPage(t)}else{r=i.getPageDict(t)}r=r.then((e=>{let[n,r]=e;return new M({pdfManager:this.pdfManager,xref:this.xref,pageIndex:t,pageDict:n,ref:r,globalIdFactory:this._globalIdFactory,fontCache:i.fontCache,builtInCMapCache:i.builtInCMapCache,standardFontDataCache:i.standardFontDataCache,globalImageCache:i.globalImageCache,nonBlendModesSet:i.nonBlendModesSet,xfaFactory:s})}));this._pagePromises.set(t,r);return r}async checkFirstPage(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(t){return}try{await this.getPage(0)}catch(t){if(t instanceof r.XRefEntryException){this._pagePromises.delete(0);await this.cleanup();throw new r.XRefParseException}}}async checkLastPage(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;const{catalog:e,pdfManager:i}=this;e.setActualNumPages();let n;try{await Promise.all([i.ensureDoc("xfaFactory"),i.ensureDoc("linearization"),i.ensureCatalog("numPages")]);if(this.xfaFactory){return}else if(this.linearization){n=this.linearization.numPages}else{n=e.numPages}if(!Number.isInteger(n)){throw new s.FormatError("Page count is not an integer.")}else if(n<=1){return}await this.getPage(n-1)}catch(a){this._pagePromises.delete(n-1);await this.cleanup();if(a instanceof r.XRefEntryException&&!t){throw new r.XRefParseException}(0,s.warn)(`checkLastPage - invalid /Pages tree /Count: ${n}.`);let o;try{o=await e.getAllPageDicts(t)}catch(i){if(i instanceof r.XRefEntryException&&!t){throw new r.XRefParseException}e.setActualNumPages(1);return}for(const[t,[n,s]]of o){let r;if(n instanceof Error){r=Promise.reject(n);r.catch((()=>{}))}else{r=Promise.resolve(new M({pdfManager:i,xref:this.xref,pageIndex:t,pageDict:n,ref:s,globalIdFactory:this._globalIdFactory,fontCache:e.fontCache,builtInCMapCache:e.builtInCMapCache,standardFontDataCache:e.standardFontDataCache,globalImageCache:e.globalImageCache,nonBlendModesSet:e.nonBlendModesSet,xfaFactory:null}))}this._pagePromises.set(t,r)}e.setActualNumPages(o.size)}}fontFallback(t,e){return this.catalog.fontFallback(t,e)}async cleanup(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;return this.catalog?this.catalog.cleanup(t):(0,u.clearGlobalCaches)()}_collectFieldObjects(t,e,i){const r=this.xref.fetchIfRef(e);if(r.has("T")){const e=(0,s.stringToPDFString)(r.get("T"));if(t===""){t=e}else{t=`${t}.${e}`}}if(!i.has(t)){i.set(t,[])}i.get(t).push(n.AnnotationFactory.create(this.xref,e,this.pdfManager,this._localIdFactory,true).then((t=>t&&t.getFieldObject())).catch((function(t){(0,s.warn)(`_collectFieldObjects: "${t}".`);return null})));if(r.has("Kids")){const e=r.get("Kids");for(const n of e){this._collectFieldObjects(t,n,i)}}}get fieldObjects(){if(!this.formInfo.hasFields){return(0,s.shadow)(this,"fieldObjects",Promise.resolve(null))}const t=Object.create(null);const e=new Map;for(const t of this.catalog.acroForm.get("Fields")){this._collectFieldObjects("",t,e)}const i=[];for(const[n,s]of e){i.push(Promise.all(s).then((e=>{e=e.filter((t=>!!t));if(e.length>0){t[n]=e}})))}return(0,s.shadow)(this,"fieldObjects",Promise.all(i).then((()=>t)))}get hasJSActions(){const t=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,s.shadow)(this,"hasJSActions",t)}async _parseHasJSActions(){const[t,e]=await Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);if(t){return true}if(e){return Object.values(e).some((t=>t.some((t=>t.actions!==null))))}return false}get calculationOrderIds(){const t=this.catalog.acroForm;if(!t||!t.has("CO")){return(0,s.shadow)(this,"calculationOrderIds",null)}const e=t.get("CO");if(!Array.isArray(e)||e.length===0){return(0,s.shadow)(this,"calculationOrderIds",null)}const i=[];for(const t of e){if(t instanceof a.Ref){i.push(t.toString())}}if(i.length===0){return(0,s.shadow)(this,"calculationOrderIds",null)}return(0,s.shadow)(this,"calculationOrderIds",i)}}e.PDFDocument=F},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.PopupAnnotation=e.MarkupAnnotation=e.AnnotationFactory=e.AnnotationBorderStyle=e.Annotation=void 0;e.getQuadPoints=w;var n=i(2);var s=i(135);var r=i(142);var a=i(134);var o=i(194);var c=i(136);var l=i(189);var h=i(198);var u=i(143);var f=i(201);var d=i(204);var p=i(191);var m=i(139);var g=i(205);class b{static create(t,e,i,n,s){return Promise.all([i.ensureCatalog("acroForm"),i.ensureCatalog("baseUrl"),i.ensureCatalog("attachments"),i.ensureDoc("xfaDatasets"),s?this._getPageIndex(t,e,i):-1]).then((r=>{let[a,o,c,l,h]=r;return i.ensure(this,"_create",[t,e,i,n,a,c,l,s,h])}))}static _create(t,e,i,r,o){let c=arguments.length>5&&arguments[5]!==undefined?arguments[5]:null;let l=arguments.length>6?arguments[6]:undefined;let h=arguments.length>7?arguments[7]:undefined;let u=arguments.length>8&&arguments[8]!==undefined?arguments[8]:-1;const f=t.fetchIfRef(e);if(!(f instanceof a.Dict)){return undefined}const d=e instanceof a.Ref?e.toString():`annot_${r.createObjId()}`;let p=f.get("Subtype");p=p instanceof a.Name?p.name:null;const m={xref:t,ref:e,dict:f,subtype:p,id:d,pdfManager:i,acroForm:o instanceof a.Dict?o:a.Dict.empty,attachments:c,xfaDatasets:l,collectFields:h,pageIndex:u};switch(p){case"Link":return new T(m);case"Text":return new O(m);case"Widget":let t=(0,s.getInheritableProperty)({dict:f,key:"FT"});t=t instanceof a.Name?t.name:null;switch(t){case"Tx":return new M(m);case"Btn":return new _(m);case"Ch":return new E(m);case"Sig":return new C(m)}(0,n.warn)(`Unimplemented widget field type "${t}", `+"falling back to base field type.");return new S(m);case"Popup":return new I(m);case"FreeText":return new F(m);case"Line":return new P(m);case"Square":return new D(m);case"Circle":return new R(m);case"PolyLine":return new N(m);case"Polygon":return new j(m);case"Caret":return new L(m);case"Ink":return new U(m);case"Highlight":return new B(m);case"Underline":return new $(m);case"Squiggly":return new q(m);case"StrikeOut":return new G(m);case"Stamp":return new W(m);case"FileAttachment":return new H(m);default:if(!h){if(!p){(0,n.warn)("Annotation is missing the required /Subtype.")}else{(0,n.warn)(`Unimplemented annotation type "${p}", `+"falling back to base annotation.")}}return new A(m)}}static async _getPageIndex(t,e,i){try{const n=await t.fetchIfRefAsync(e);if(!(n instanceof a.Dict)){return-1}const s=n.getRaw("P");if(!(s instanceof a.Ref)){return-1}const r=await i.ensureCatalog("getPageIndex",[s]);return r}catch(t){(0,n.warn)(`_getPageIndex: "${t}".`);return-1}}static async saveNewAnnotations(t,e,i){const s=t.xref;let r;const c=[];const l=[];for(const h of i){switch(h.annotationType){case n.AnnotationEditorType.FREETEXT:if(!r){const t=new a.Dict(s);t.set("BaseFont",a.Name.get("Helvetica"));t.set("Type",a.Name.get("Font"));t.set("Subtype",a.Name.get("Type1"));t.set("Encoding",a.Name.get("WinAnsiEncoding"));const e=[];r=s.getNewRef();(0,o.writeObject)(r,t,e,null);c.push({ref:r,data:e.join("")})}l.push(F.createNewAnnotation(s,h,c,{evaluator:t,task:e,baseFontRef:r}));break;case n.AnnotationEditorType.INK:l.push(U.createNewAnnotation(s,h,c))}}return{annotations:await Promise.all(l),dependencies:c}}static async printNewAnnotations(t,e,i){if(!i){return null}const s=t.xref;const r=[];for(const a of i){switch(a.annotationType){case n.AnnotationEditorType.FREETEXT:r.push(F.createNewPrintAnnotation(s,a,{evaluator:t,task:e}));break;case n.AnnotationEditorType.INK:r.push(U.createNewPrintAnnotation(s,a));break}}return Promise.all(r)}}e.AnnotationFactory=b;function v(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:new Uint8ClampedArray(3);if(!Array.isArray(t)){return e}const i=e||new Uint8ClampedArray(3);switch(t.length){case 0:return null;case 1:u.ColorSpace.singletons.gray.getRgbItem(t,0,i,0);return i;case 3:u.ColorSpace.singletons.rgb.getRgbItem(t,0,i,0);return i;case 4:u.ColorSpace.singletons.cmyk.getRgbItem(t,0,i,0);return i;default:return e}}function w(t,e){if(!t.has("QuadPoints")){return null}const i=t.getArray("QuadPoints");if(!Array.isArray(i)||i.length===0||i.length%8>0){return null}const n=[];for(let t=0,s=i.length/8;t<s;t++){n.push([]);for(let s=t*8,r=t*8+8;s<r;s+=2){const r=i[s];const a=i[s+1];if(e!==null&&(r<e[0]||r>e[2]||a<e[1]||a>e[3])){return null}n[t].push({x:r,y:a})}}return n.map((t=>{const[e,i,n,s]=t.reduce(((t,e)=>{let[i,n,s,r]=t;return[Math.min(i,e.x),Math.max(n,e.x),Math.min(s,e.y),Math.max(r,e.y)]}),[Number.MAX_VALUE,Number.MIN_VALUE,Number.MAX_VALUE,Number.MIN_VALUE]);return[{x:e,y:s},{x:i,y:s},{x:e,y:n},{x:i,y:n}]}))}function y(t,e,i){const[s,r,a,o]=n.Util.getAxialAlignedBoundingBox(e,i);if(s===a||r===o){return[1,0,0,1,t[0],t[1]]}const c=(t[2]-t[0])/(a-s);const l=(t[3]-t[1])/(o-r);return[c,0,0,l,t[0]-s*c,t[1]-r*l]}class A{constructor(t){const e=t.dict;this.setTitle(e.get("T"));this.setContents(e.get("Contents"));this.setModificationDate(e.get("M"));this.setFlags(e.get("F"));this.setRectangle(e.getArray("Rect"));this.setColor(e.getArray("C"));this.setBorderStyle(e);this.setAppearance(e);this.setOptionalContent(e);const i=e.get("MK");this.setBorderAndBackgroundColors(i);this.setRotation(i);this._streams=[];if(this.appearance){this._streams.push(this.appearance)}this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:t.subtype,hasOwnCanvas:false};if(t.collectFields){const i=e.get("Kids");if(Array.isArray(i)){const t=[];for(const e of i){if(e instanceof a.Ref){t.push(e.toString())}}if(t.length!==0){this.data.kidIds=t}}this.data.actions=(0,s.collectActions)(t.xref,e,n.AnnotationActionEventType);this.data.fieldName=this._constructFieldName(e);this.data.pageIndex=t.pageIndex}this._fallbackFontDict=null}_hasFlag(t,e){return!!(t&e)}_isViewable(t){return!this._hasFlag(t,n.AnnotationFlag.INVISIBLE)&&!this._hasFlag(t,n.AnnotationFlag.NOVIEW)}_isPrintable(t){return this._hasFlag(t,n.AnnotationFlag.PRINT)&&!this._hasFlag(t,n.AnnotationFlag.INVISIBLE)}mustBeViewed(t){const e=t&&t.get(this.data.id);if(e&&e.hidden!==undefined){return!e.hidden}return this.viewable&&!this._hasFlag(this.flags,n.AnnotationFlag.HIDDEN)}mustBePrinted(t){const e=t&&t.get(this.data.id);if(e&&e.print!==undefined){return e.print}return this.printable}get viewable(){if(this.data.quadPoints===null){return false}if(this.flags===0){return true}return this._isViewable(this.flags)}get printable(){if(this.data.quadPoints===null){return false}if(this.flags===0){return false}return this._isPrintable(this.flags)}_parseStringHelper(t){const e=typeof t==="string"?(0,n.stringToPDFString)(t):"";const i=e&&(0,l.bidi)(e).dir==="rtl"?"rtl":"ltr";return{str:e,dir:i}}setTitle(t){this._title=this._parseStringHelper(t)}setContents(t){this._contents=this._parseStringHelper(t)}setModificationDate(t){this.modificationDate=typeof t==="string"?t:null}setFlags(t){this.flags=Number.isInteger(t)&&t>0?t:0}hasFlag(t){return this._hasFlag(this.flags,t)}setRectangle(t){if(Array.isArray(t)&&t.length===4){this.rectangle=n.Util.normalizeRect(t)}else{this.rectangle=[0,0,0,0]}}setColor(t){this.color=v(t)}setLineEndings(t){this.lineEndings=["None","None"];if(Array.isArray(t)&&t.length===2){for(let e=0;e<2;e++){const i=t[e];if(i instanceof a.Name){switch(i.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[e]=i.name;continue}}(0,n.warn)(`Ignoring invalid lineEnding: ${i}`)}}}setRotation(t){this.rotation=0;if(t instanceof a.Dict){let e=t.get("R")||0;if(Number.isInteger(e)&&e!==0){e%=360;if(e<0){e+=360}if(e%90===0){this.rotation=e}}}}setBorderAndBackgroundColors(t){if(t instanceof a.Dict){this.borderColor=v(t.getArray("BC"),null);this.backgroundColor=v(t.getArray("BG"),null)}else{this.borderColor=this.backgroundColor=null}}setBorderStyle(t){this.borderStyle=new k;if(!(t instanceof a.Dict)){return}if(t.has("BS")){const e=t.get("BS");const i=e.get("Type");if(!i||(0,a.isName)(i,"Border")){this.borderStyle.setWidth(e.get("W"),this.rectangle);this.borderStyle.setStyle(e.get("S"));this.borderStyle.setDashArray(e.getArray("D"))}}else if(t.has("Border")){const e=t.getArray("Border");if(Array.isArray(e)&&e.length>=3){this.borderStyle.setHorizontalCornerRadius(e[0]);this.borderStyle.setVerticalCornerRadius(e[1]);this.borderStyle.setWidth(e[2],this.rectangle);if(e.length===4){this.borderStyle.setDashArray(e[3],true)}}}else{this.borderStyle.setWidth(0)}}setAppearance(t){this.appearance=null;const e=t.get("AP");if(!(e instanceof a.Dict)){return}const i=e.get("N");if(i instanceof c.BaseStream){this.appearance=i;return}if(!(i instanceof a.Dict)){return}const n=t.get("AS");if(!(n instanceof a.Name)||!i.has(n.name)){return}this.appearance=i.get(n.name)}setOptionalContent(t){this.oc=null;const e=t.get("OC");if(e instanceof a.Name){(0,n.warn)("setOptionalContent: Support for /Name-entry is not implemented.")}else if(e instanceof a.Dict){this.oc=e}}loadResources(t,e){return e.dict.getAsync("Resources").then((e=>{if(!e){return undefined}const i=new d.ObjectLoader(e,t,e.xref);return i.load().then((function(){return e}))}))}async getOperatorList(t,e,i,s,r){const o=this.data;let c=this.appearance;const l=!!(this.data.hasOwnCanvas&&i&n.RenderingIntentFlag.DISPLAY);if(!c){if(!l){return{opList:new p.OperatorList,separateForm:false,separateCanvas:false}}c=new m.StringStream("");c.dict=new a.Dict}const h=c.dict;const u=await this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],c);const f=h.getArray("BBox")||[0,0,1,1];const d=h.getArray("Matrix")||[1,0,0,1,0,0];const g=y(o.rect,f,d);const b=new p.OperatorList;let v;if(this.oc){v=await t.parseMarkedContentProps(this.oc,null)}if(v!==undefined){b.addOp(n.OPS.beginMarkedContentProps,["OC",v])}b.addOp(n.OPS.beginAnnotation,[o.id,o.rect,g,d,l]);await t.getOperatorList({stream:c,task:e,resources:u,operatorList:b,fallbackFontDict:this._fallbackFontDict});b.addOp(n.OPS.endAnnotation,[]);if(v!==undefined){b.addOp(n.OPS.endMarkedContent,[])}this.reset();return{opList:b,separateForm:false,separateCanvas:l}}async save(t,e,i){return null}get hasTextContent(){return false}async extractTextContent(t,e,i){if(!this.appearance){return}const n=await this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance);const s=[];const r=[];const a={desiredSize:Math.Infinity,ready:true,enqueue(t,e){for(const e of t.items){r.push(e.str);if(e.hasEOL){s.push(r.join(""));r.length=0}}}};await t.getTextContent({stream:this.appearance,task:e,resources:n,includeMarkedContent:true,combineTextItems:true,sink:a,viewBox:i});this.reset();if(r.length){s.push(r.join(""))}if(s.length>0){this.data.textContent=s}}getFieldObject(){if(this.data.kidIds){return{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}}return null}reset(){for(const t of this._streams){t.reset()}}_constructFieldName(t){if(!t.has("T")&&!t.has("Parent")){(0,n.warn)("Unknown field name, falling back to empty field name.");return""}if(!t.has("Parent")){return(0,n.stringToPDFString)(t.get("T"))}const e=[];if(t.has("T")){e.unshift((0,n.stringToPDFString)(t.get("T")))}let i=t;const s=new a.RefSet;if(t.objId){s.put(t.objId)}while(i.has("Parent")){i=i.get("Parent");if(!(i instanceof a.Dict)||i.objId&&s.has(i.objId)){break}if(i.objId){s.put(i.objId)}if(i.has("T")){e.unshift((0,n.stringToPDFString)(i.get("T")))}}return e.join(".")}}e.Annotation=A;class k{constructor(){this.width=1;this.style=n.AnnotationBorderStyleType.SOLID;this.dashArray=[3];this.horizontalCornerRadius=0;this.verticalCornerRadius=0}setWidth(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[0,0,0,0];if(t instanceof a.Name){this.width=0;return}if(typeof t==="number"){if(t>0){const i=(e[2]-e[0])/2;const s=(e[3]-e[1])/2;if(i>0&&s>0&&(t>i||t>s)){(0,n.warn)(`AnnotationBorderStyle.setWidth - ignoring width: ${t}`);t=1}}this.width=t}}setStyle(t){if(!(t instanceof a.Name)){return}switch(t.name){case"S":this.style=n.AnnotationBorderStyleType.SOLID;break;case"D":this.style=n.AnnotationBorderStyleType.DASHED;break;case"B":this.style=n.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=n.AnnotationBorderStyleType.INSET;break;case"U":this.style=n.AnnotationBorderStyleType.UNDERLINE;break}}setDashArray(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(Array.isArray(t)&&t.length>0){let i=true;let n=true;for(const e of t){const t=+e>=0;if(!t){i=false;break}else if(e>0){n=false}}if(i&&!n){this.dashArray=t;if(e){this.setStyle(a.Name.get("D"))}}else{this.width=0}}else if(t){this.width=0}}setHorizontalCornerRadius(t){if(Number.isInteger(t)){this.horizontalCornerRadius=t}}setVerticalCornerRadius(t){if(Number.isInteger(t)){this.verticalCornerRadius=t}}}e.AnnotationBorderStyle=k;class x extends A{constructor(t){super(t);const e=t.dict;if(e.has("IRT")){const t=e.getRaw("IRT");this.data.inReplyTo=t instanceof a.Ref?t.toString():null;const i=e.get("RT");this.data.replyType=i instanceof a.Name?i.name:n.AnnotationReplyType.REPLY}if(this.data.replyType===n.AnnotationReplyType.GROUP){const t=e.get("IRT");this.setTitle(t.get("T"));this.data.titleObj=this._title;this.setContents(t.get("Contents"));this.data.contentsObj=this._contents;if(!t.has("CreationDate")){this.data.creationDate=null}else{this.setCreationDate(t.get("CreationDate"));this.data.creationDate=this.creationDate}if(!t.has("M")){this.data.modificationDate=null}else{this.setModificationDate(t.get("M"));this.data.modificationDate=this.modificationDate}this.data.hasPopup=t.has("Popup");if(!t.has("C")){this.data.color=null}else{this.setColor(t.getArray("C"));this.data.color=this.color}}else{this.data.titleObj=this._title;this.setCreationDate(e.get("CreationDate"));this.data.creationDate=this.creationDate;this.data.hasPopup=e.has("Popup");if(!e.has("C")){this.data.color=null}}if(e.has("RC")){this.data.richText=g.XFAFactory.getRichTextAsHtml(e.get("RC"))}}setCreationDate(t){this.creationDate=typeof t==="string"?t:null}_setDefaultAppearance(t){let{xref:e,extra:i,strokeColor:n,fillColor:s,blendMode:r,strokeAlpha:o,fillAlpha:c,pointsCallback:l}=t;let h=Number.MAX_VALUE;let u=Number.MAX_VALUE;let f=Number.MIN_VALUE;let d=Number.MIN_VALUE;const p=["q"];if(i){p.push(i)}if(n){p.push(`${n[0]} ${n[1]} ${n[2]} RG`)}if(s){p.push(`${s[0]} ${s[1]} ${s[2]} rg`)}let g=this.data.quadPoints;if(!g){g=[[{x:this.rectangle[0],y:this.rectangle[3]},{x:this.rectangle[2],y:this.rectangle[3]},{x:this.rectangle[0],y:this.rectangle[1]},{x:this.rectangle[2],y:this.rectangle[1]}]]}for(const t of g){const[e,i,n,s]=l(p,t);h=Math.min(h,e);f=Math.max(f,i);u=Math.min(u,n);d=Math.max(d,s)}p.push("Q");const b=new a.Dict(e);const v=new a.Dict(e);v.set("Subtype",a.Name.get("Form"));const w=new m.StringStream(p.join(" "));w.dict=v;b.set("Fm0",w);const y=new a.Dict(e);if(r){y.set("BM",a.Name.get(r))}if(typeof o==="number"){y.set("CA",o)}if(typeof c==="number"){y.set("ca",c)}const A=new a.Dict(e);A.set("GS0",y);const k=new a.Dict(e);k.set("ExtGState",A);k.set("XObject",b);const x=new a.Dict(e);x.set("Resources",k);const S=this.data.rect=[h,u,f,d];x.set("BBox",S);this.appearance=new m.StringStream("/GS0 gs /Fm0 Do");this.appearance.dict=x;this._streams.push(this.appearance,w)}static async createNewAnnotation(t,e,i,n){const s=t.getNewRef();const r=t.getNewRef();const a=this.createNewDict(e,t,{apRef:r});const c=await this.createNewAppearanceStream(e,t,n);const l=[];let h=t.encrypt?t.encrypt.createCipherTransform(r.num,r.gen):null;(0,o.writeObject)(r,c,l,h);i.push({ref:r,data:l.join("")});l.length=0;h=t.encrypt?t.encrypt.createCipherTransform(s.num,s.gen):null;(0,o.writeObject)(s,a,l,h);return{ref:s,data:l.join("")}}static async createNewPrintAnnotation(t,e,i){const n=await this.createNewAppearanceStream(e,t,i);const s=this.createNewDict(e,t,{ap:n});return new this.prototype.constructor({dict:s,xref:t})}}e.MarkupAnnotation=x;class S extends A{constructor(t){super(t);const e=t.dict;const i=this.data;this.ref=t.ref;i.annotationType=n.AnnotationType.WIDGET;if(i.fieldName===undefined){i.fieldName=this._constructFieldName(e)}if(i.actions===undefined){i.actions=(0,s.collectActions)(t.xref,e,n.AnnotationActionEventType)}let o=(0,s.getInheritableProperty)({dict:e,key:"V",getArray:true});i.fieldValue=this._decodeFormValue(o);const c=(0,s.getInheritableProperty)({dict:e,key:"DV",getArray:true});i.defaultFieldValue=this._decodeFormValue(c);if(o===undefined&&t.xfaDatasets){const e=this._title.str;if(e){this._hasValueFromXFA=true;i.fieldValue=o=t.xfaDatasets.getValue(e)}}if(o===undefined&&i.defaultFieldValue!==null){i.fieldValue=i.defaultFieldValue}i.alternativeText=(0,n.stringToPDFString)(e.get("TU")||"");const l=(0,s.getInheritableProperty)({dict:e,key:"DA"})||t.acroForm.get("DA");this._defaultAppearance=typeof l==="string"?l:"";i.defaultAppearanceData=(0,r.parseDefaultAppearance)(this._defaultAppearance);const h=(0,s.getInheritableProperty)({dict:e,key:"FT"});i.fieldType=h instanceof a.Name?h.name:null;const u=(0,s.getInheritableProperty)({dict:e,key:"DR"});const f=t.acroForm.get("DR");const d=this.appearance&&this.appearance.dict.get("Resources");this._fieldResources={localResources:u,acroFormResources:f,appearanceResources:d,mergedResources:a.Dict.merge({xref:t.xref,dictArray:[u,d,f],mergeSubDicts:true})};i.fieldFlags=(0,s.getInheritableProperty)({dict:e,key:"Ff"});if(!Number.isInteger(i.fieldFlags)||i.fieldFlags<0){i.fieldFlags=0}i.readOnly=this.hasFieldFlag(n.AnnotationFieldFlag.READONLY);i.required=this.hasFieldFlag(n.AnnotationFieldFlag.REQUIRED);i.hidden=this._hasFlag(i.annotationFlags,n.AnnotationFlag.HIDDEN)}_decodeFormValue(t){if(Array.isArray(t)){return t.filter((t=>typeof t==="string")).map((t=>(0,n.stringToPDFString)(t)))}else if(t instanceof a.Name){return(0,n.stringToPDFString)(t.name)}else if(typeof t==="string"){return(0,n.stringToPDFString)(t)}return null}hasFieldFlag(t){return!!(this.data.fieldFlags&t)}static _getRotationMatrix(t,e,i){switch(t){case 90:return[0,1,-1,0,e,0];case 180:return[-1,0,0,-1,e,i];case 270:return[0,-1,1,0,0,i];default:throw new Error("Invalid rotation")}}getRotationMatrix(t){const e=t?t.get(this.data.id):undefined;let i=e&&e.rotation;if(i===undefined){i=this.rotation}if(i===0){return n.IDENTITY_MATRIX}const s=this.data.rect[2]-this.data.rect[0];const r=this.data.rect[3]-this.data.rect[1];return S._getRotationMatrix(i,s,r)}getBorderAndBackgroundAppearances(t){const e=t?t.get(this.data.id):undefined;let i=e&&e.rotation;if(i===undefined){i=this.rotation}if(!this.backgroundColor&&!this.borderColor){return""}const n=this.data.rect[2]-this.data.rect[0];const s=this.data.rect[3]-this.data.rect[1];const a=i===0||i===180?`0 0 ${n} ${s} re`:`0 0 ${s} ${n} re`;let o="";if(this.backgroundColor){o=`${(0,r.getPdfColor)(this.backgroundColor,true)} ${a} f `}if(this.borderColor){const t=this.borderStyle.width||1;o+=`${t} w ${(0,r.getPdfColor)(this.borderColor,false)} ${a} S `}return o}async getOperatorList(t,e,i,s,r){if(s&&!(this instanceof C)){return{opList:new p.OperatorList,separateForm:true,separateCanvas:false}}if(!this._hasText){return super.getOperatorList(t,e,i,s,r)}const a=await this._getAppearance(t,e,r);if(this.appearance&&a===null){return super.getOperatorList(t,e,i,s,r)}const o=new p.OperatorList;if(!this._defaultAppearance||a===null){return{opList:o,separateForm:false,separateCanvas:false}}const c=[1,0,0,1,0,0];const l=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]];const h=y(this.data.rect,l,c);let u;if(this.oc){u=await t.parseMarkedContentProps(this.oc,null)}if(u!==undefined){o.addOp(n.OPS.beginMarkedContentProps,["OC",u])}o.addOp(n.OPS.beginAnnotation,[this.data.id,this.data.rect,h,this.getRotationMatrix(r),false]);const f=new m.StringStream(a);await t.getOperatorList({stream:f,task:e,resources:this._fieldResources.mergedResources,operatorList:o});o.addOp(n.OPS.endAnnotation,[]);if(u!==undefined){o.addOp(n.OPS.endMarkedContent,[])}return{opList:o,separateForm:false,separateCanvas:false}}_getMKDict(t){const e=new a.Dict(null);if(t){e.set("R",t)}if(this.borderColor){e.set("BC",Array.from(this.borderColor,(t=>t/255)))}if(this.backgroundColor){e.set("BG",Array.from(this.backgroundColor,(t=>t/255)))}return e.size>0?e:null}async save(t,e,i){const s=i?i.get(this.data.id):undefined;let r=s&&s.value;let c=s&&s.rotation;if(r===this.data.fieldValue||r===undefined){if(!this._hasValueFromXFA&&c===undefined){return null}r=r||this.data.fieldValue}if(c===undefined&&!this._hasValueFromXFA&&Array.isArray(r)&&Array.isArray(this.data.fieldValue)&&r.length===this.data.fieldValue.length&&r.every(((t,e)=>t===this.data.fieldValue[e]))){return null}if(c===undefined){c=this.rotation}let l=await this._getAppearance(t,e,i);if(l===null){return null}const{xref:h}=t;const u=h.fetchIfRef(this.ref);if(!(u instanceof a.Dict)){return null}const f=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]];const d={path:(0,n.stringToPDFString)(u.get("T")||""),value:r};const p=h.getNewRef();const m=new a.Dict(h);m.set("N",p);const g=h.encrypt;let b=null;let v=null;if(g){b=g.createCipherTransform(this.ref.num,this.ref.gen);v=g.createCipherTransform(p.num,p.gen);l=v.encryptString(l)}const w=t=>(0,n.isAscii)(t)?t:(0,n.stringToUTF16BEString)(t);u.set("V",Array.isArray(r)?r.map(w):w(r));u.set("AP",m);u.set("M",`D:${(0,n.getModificationDate)()}`);const y=this._getMKDict(c);if(y){u.set("MK",y)}const A=new a.Dict(h);A.set("Length",l.length);A.set("Subtype",a.Name.get("Form"));A.set("Resources",this._getSaveFieldResources(h));A.set("BBox",f);const k=this.getRotationMatrix(i);if(k!==n.IDENTITY_MATRIX){A.set("Matrix",k)}const x=[`${this.ref.num} ${this.ref.gen} obj\n`];(0,o.writeDict)(u,x,b);x.push("\nendobj\n");const S=[`${p.num} ${p.gen} obj\n`];(0,o.writeDict)(A,S,v);S.push(" stream\n",l,"\nendstream\nendobj\n");return[{ref:this.ref,data:x.join(""),xfa:d},{ref:p,data:S.join(""),xfa:null}]}async _getAppearance(t,e,i){const s=this.hasFieldFlag(n.AnnotationFieldFlag.PASSWORD);if(s){return null}const a=i?i.get(this.data.id):undefined;let o,c;if(a){o=a.formattedValue||a.value;c=a.rotation}if(c===undefined&&o===undefined){if(!this._hasValueFromXFA||this.appearance){return null}}if(o===undefined){o=this.data.fieldValue;if(!o){return""}}if(Array.isArray(o)&&o.length===1){o=o[0]}(0,n.assert)(typeof o==="string","Expected `value` to be a string.");o=o.trim();if(o===""){return""}if(c===undefined){c=this.rotation}let l=-1;if(this.data.multiLine){l=o.split(/\r\n|\r|\n/).length}const h=2;const u=h;let f=this.data.rect[3]-this.data.rect[1];let d=this.data.rect[2]-this.data.rect[0];if(c===90||c===270){[d,f]=[f,d]}if(!this._defaultAppearance){this.data.defaultAppearanceData=(0,r.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g")}const p=await S._getFontData(t,e,this.data.defaultAppearanceData,this._fieldResources.mergedResources);const[m,g]=this._computeFontSize(f-h,d-2*u,o,p,l);let b=p.descent;if(isNaN(b)){b=0}const v=Math.min(Math.floor((f-g)/2),h);const w=v+Math.abs(b)*g;const y=this.data.textAlignment;if(this.data.multiLine){return this._getMultilineAppearance(m,o,p,g,d,f,y,u,w,i)}const A=p.encodeString(o).join("");if(this.data.comb){return this._getCombAppearance(m,p,A,d,u,w,i)}const k=this.getBorderAndBackgroundAppearances(i);if(y===0||y>2){return`/Tx BMC q ${k}BT `+m+` 1 0 0 1 ${u} ${w} Tm (${(0,n.escapeString)(A)}) Tj`+" ET Q EMC"}const x=this._renderText(A,p,g,d,y,u,w);return`/Tx BMC q ${k}BT `+m+` 1 0 0 1 0 0 Tm ${x}`+" ET Q EMC"}static async _getFontData(t,e,i,n){const s=new p.OperatorList;const r={font:null,clone(){return this}};const{fontName:o,fontSize:c}=i;await t.handleSetFont(n,[o&&a.Name.get(o),c],null,s,e,r,null);return r.font}_getTextWidth(t,e){return e.charsToGlyphs(t).reduce(((t,e)=>t+e.width),0)/1e3}_computeFontSize(t,e,i,s,a){let{fontSize:o}=this.data.defaultAppearanceData;if(!o){const c=t=>Math.floor(t*100)/100;if(a===-1){const r=this._getTextWidth(i,s);o=c(Math.min(t/n.LINE_FACTOR,e/r))}else{const r=i.split(/\r\n?|\n/);const l=[];for(const t of r){const e=s.encodeString(t).join("");const i=s.charsToGlyphs(e);const n=s.getCharPositions(e);l.push({line:e,glyphs:i,positions:n})}const h=i=>{let n=0;for(const r of l){const a=this._splitLine(null,s,i,e,r);n+=a.length*i;if(n>t){return true}}return false};o=12;let u=o*n.LINE_FACTOR;let f=Math.round(t/u);f=Math.max(f,a);while(true){u=t/f;o=c(u/n.LINE_FACTOR);if(h(o)){f++;continue}break}}const{fontName:l,fontColor:h}=this.data.defaultAppearanceData;this._defaultAppearance=(0,r.createDefaultAppearance)({fontSize:o,fontName:l,fontColor:h})}return[this._defaultAppearance,o]}_renderText(t,e,i,r,a,o,c){let l;if(a===1){const n=this._getTextWidth(t,e)*i;l=(r-n)/2}else if(a===2){const n=this._getTextWidth(t,e)*i;l=r-n-o}else{l=o}l=(0,s.numberToString)(l);c=(0,s.numberToString)(c);return`${l} ${c} Td (${(0,n.escapeString)(t)}) Tj`}_getSaveFieldResources(t){const{localResources:e,appearanceResources:i,acroFormResources:n}=this._fieldResources;const s=this.data.defaultAppearanceData&&this.data.defaultAppearanceData.fontName;if(!s){return e||a.Dict.empty}for(const t of[e,i]){if(t instanceof a.Dict){const e=t.get("Font");if(e instanceof a.Dict&&e.has(s)){return t}}}if(n instanceof a.Dict){const i=n.get("Font");if(i instanceof a.Dict&&i.has(s)){const n=new a.Dict(t);n.set(s,i.getRaw(s));const r=new a.Dict(t);r.set("Font",n);return a.Dict.merge({xref:t,dictArray:[r,e],mergeSubDicts:true})}}return e||a.Dict.empty}getFieldObject(){return null}}class M extends S{constructor(t){super(t);this._hasText=true;const e=t.dict;if(typeof this.data.fieldValue!=="string"){this.data.fieldValue=""}let i=(0,s.getInheritableProperty)({dict:e,key:"Q"});if(!Number.isInteger(i)||i<0||i>2){i=null}this.data.textAlignment=i;let r=(0,s.getInheritableProperty)({dict:e,key:"MaxLen"});if(!Number.isInteger(r)||r<0){r=0}this.data.maxLen=r;this.data.multiLine=this.hasFieldFlag(n.AnnotationFieldFlag.MULTILINE);this.data.comb=this.hasFieldFlag(n.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(n.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(n.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(n.AnnotationFieldFlag.FILESELECT)&&this.data.maxLen!==0;this.data.doNotScroll=this.hasFieldFlag(n.AnnotationFieldFlag.DONOTSCROLL)}_getCombAppearance(t,e,i,r,a,o,c){const l=(0,s.numberToString)(r/this.data.maxLen);const h=[];const u=e.getCharPositions(i);for(const[t,e]of u){h.push(`(${(0,n.escapeString)(i.substring(t,e))}) Tj`)}const f=this.getBorderAndBackgroundAppearances(c);const d=h.join(` ${l} 0 Td `);return`/Tx BMC q ${f}BT `+t+` 1 0 0 1 ${a} ${o} Tm ${d}`+" ET Q EMC"}_getMultilineAppearance(t,e,i,n,s,r,a,o,c,l){const h=e.split(/\r\n?|\n/);const u=[];const f=s-2*o;for(const t of h){const e=this._splitLine(t,i,n,f);for(const t of e){const e=u.length===0?o:0;u.push(this._renderText(t,i,n,s,a,e,-n))}}const d=u.join("\n");const p=this.getBorderAndBackgroundAppearances(l);return`/Tx BMC q ${p}BT `+t+` 1 0 0 1 0 ${r} Tm ${d}`+" ET Q EMC"}_splitLine(t,e,i,n){let s=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{};t=s.line||e.encodeString(t).join("");const r=s.glyphs||e.charsToGlyphs(t);if(r.length<=1){return[t]}const a=s.positions||e.getCharPositions(t);const o=i/1e3;const c=[];let l=-1,h=-1,u=-1,f=0,d=0;for(let e=0,i=r.length;e<i;e++){const[i,s]=a[e];const p=r[e];const m=p.width*o;if(p.unicode===" "){if(d+m>n){c.push(t.substring(f,i));f=i;d=m;l=-1;u=-1}else{d+=m;l=i;h=s;u=e}}else{if(d+m>n){if(l!==-1){c.push(t.substring(f,h));f=h;e=u+1;l=-1;d=0}else{c.push(t.substring(f,i));f=i;d=m}}else{d+=m}}}if(f<t.length){c.push(t.substring(f,t.length))}return c}getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.hasFieldFlag(n.AnnotationFieldFlag.PASSWORD),charLimit:this.data.maxLen,comb:this.data.comb,editable:!this.data.readOnly,hidden:this.data.hidden,name:this.data.fieldName,rect:this.data.rect,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:"text"}}}class _ extends S{constructor(t){super(t);this.checkedAppearance=null;this.uncheckedAppearance=null;this.data.checkBox=!this.hasFieldFlag(n.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(n.AnnotationFieldFlag.PUSHBUTTON);this.data.radioButton=this.hasFieldFlag(n.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(n.AnnotationFieldFlag.PUSHBUTTON);this.data.pushButton=this.hasFieldFlag(n.AnnotationFieldFlag.PUSHBUTTON);this.data.isTooltipOnly=false;if(this.data.checkBox){this._processCheckBox(t)}else if(this.data.radioButton){this._processRadioButton(t)}else if(this.data.pushButton){this.data.hasOwnCanvas=true;this._processPushButton(t)}else{(0,n.warn)("Invalid field flags for button widget annotation")}}async getOperatorList(t,e,i,s,r){if(this.data.pushButton){return super.getOperatorList(t,e,i,false,r)}let a=null;let o=null;if(r){const t=r.get(this.data.id);a=t?t.value:null;o=t?t.rotation:null}if(a===null&&this.appearance){return super.getOperatorList(t,e,i,s,r)}if(a===null||a===undefined){if(this.data.checkBox){a=this.data.fieldValue===this.data.exportValue}else{a=this.data.fieldValue===this.data.buttonValue}}const c=a?this.checkedAppearance:this.uncheckedAppearance;if(c){const a=this.appearance;const l=c.dict.getArray("Matrix")||n.IDENTITY_MATRIX;if(o){c.dict.set("Matrix",this.getRotationMatrix(r))}this.appearance=c;const h=super.getOperatorList(t,e,i,s,r);this.appearance=a;c.dict.set("Matrix",l);return h}return{opList:new p.OperatorList,separateForm:false,separateCanvas:false}}async save(t,e,i){if(this.data.checkBox){return this._saveCheckbox(t,e,i)}if(this.data.radioButton){return this._saveRadioButton(t,e,i)}return null}async _saveCheckbox(t,e,i){if(!i){return null}const s=i.get(this.data.id);let r=s&&s.rotation;let c=s&&s.value;if(r===undefined){if(c===undefined){return null}const t=this.data.fieldValue===this.data.exportValue;if(t===c){return null}}const l=t.xref.fetchIfRef(this.ref);if(!(l instanceof a.Dict)){return null}if(r===undefined){r=this.rotation}if(c===undefined){c=this.data.fieldValue===this.data.exportValue}const h={path:(0,n.stringToPDFString)(l.get("T")||""),value:c?this.data.exportValue:""};const u=a.Name.get(c?this.data.exportValue:"Off");l.set("V",u);l.set("AS",u);l.set("M",`D:${(0,n.getModificationDate)()}`);const f=this._getMKDict(r);if(f){l.set("MK",f)}const d=t.xref.encrypt;let p=null;if(d){p=d.createCipherTransform(this.ref.num,this.ref.gen)}const m=[`${this.ref.num} ${this.ref.gen} obj\n`];(0,o.writeDict)(l,m,p);m.push("\nendobj\n");return[{ref:this.ref,data:m.join(""),xfa:h}]}async _saveRadioButton(t,e,i){if(!i){return null}const s=i.get(this.data.id);let r=s&&s.rotation;let c=s&&s.value;if(r===undefined){if(c===undefined){return null}const t=this.data.fieldValue===this.data.buttonValue;if(t===c){return null}}const l=t.xref.fetchIfRef(this.ref);if(!(l instanceof a.Dict)){return null}if(c===undefined){c=this.data.fieldValue===this.data.buttonValue}if(r===undefined){r=this.rotation}const h={path:(0,n.stringToPDFString)(l.get("T")||""),value:c?this.data.buttonValue:""};const u=a.Name.get(c?this.data.buttonValue:"Off");let f=null;const d=t.xref.encrypt;if(c){if(this.parent instanceof a.Ref){const e=t.xref.fetch(this.parent);let i=null;if(d){i=d.createCipherTransform(this.parent.num,this.parent.gen)}e.set("V",u);f=[`${this.parent.num} ${this.parent.gen} obj\n`];(0,o.writeDict)(e,f,i);f.push("\nendobj\n")}else if(this.parent instanceof a.Dict){this.parent.set("V",u)}}l.set("AS",u);l.set("M",`D:${(0,n.getModificationDate)()}`);const p=this._getMKDict(r);if(p){l.set("MK",p)}let m=null;if(d){m=d.createCipherTransform(this.ref.num,this.ref.gen)}const g=[`${this.ref.num} ${this.ref.gen} obj\n`];(0,o.writeDict)(l,g,m);g.push("\nendobj\n");const b=[{ref:this.ref,data:g.join(""),xfa:h}];if(f!==null){b.push({ref:this.parent,data:f.join(""),xfa:null})}return b}_getDefaultCheckedAppearance(t,e){const i=this.data.rect[2]-this.data.rect[0];const r=this.data.rect[3]-this.data.rect[1];const o=[0,0,i,r];const c=.8;const l=Math.min(i,r)*c;let h,u;if(e==="check"){h={width:.755*l,height:.705*l};u="3"}else if(e==="disc"){h={width:.791*l,height:.705*l};u="l"}else{(0,n.unreachable)(`_getDefaultCheckedAppearance - unsupported type: ${e}`)}const f=(0,s.numberToString)((i-h.width)/2);const d=(0,s.numberToString)((r-h.height)/2);const p=`q BT /PdfJsZaDb ${l} Tf 0 g ${f} ${d} Td (${u}) Tj ET Q`;const g=new a.Dict(t.xref);g.set("FormType",1);g.set("Subtype",a.Name.get("Form"));g.set("Type",a.Name.get("XObject"));g.set("BBox",o);g.set("Matrix",[1,0,0,1,0,0]);g.set("Length",p.length);const b=new a.Dict(t.xref);const v=new a.Dict(t.xref);v.set("PdfJsZaDb",this.fallbackFontDict);b.set("Font",v);g.set("Resources",b);this.checkedAppearance=new m.StringStream(p);this.checkedAppearance.dict=g;this._streams.push(this.checkedAppearance)}_processCheckBox(t){const e=t.dict.get("AP");if(!(e instanceof a.Dict)){return}const i=e.get("N");if(!(i instanceof a.Dict)){return}const n=this._decodeFormValue(t.dict.get("AS"));if(typeof n==="string"){this.data.fieldValue=n}const s=this.data.fieldValue!==null&&this.data.fieldValue!=="Off"?this.data.fieldValue:"Yes";const r=i.getKeys();if(r.length===0){r.push("Off",s)}else if(r.length===1){if(r[0]==="Off"){r.push(s)}else{r.unshift("Off")}}else if(r.includes(s)){r.length=0;r.push("Off",s)}else{const t=r.find((t=>t!=="Off"));r.length=0;r.push("Off",t)}if(!r.includes(this.data.fieldValue)){this.data.fieldValue="Off"}this.data.exportValue=r[1];this.checkedAppearance=i.get(this.data.exportValue)||null;this.uncheckedAppearance=i.get("Off")||null;if(this.checkedAppearance){this._streams.push(this.checkedAppearance)}else{this._getDefaultCheckedAppearance(t,"check")}if(this.uncheckedAppearance){this._streams.push(this.uncheckedAppearance)}this._fallbackFontDict=this.fallbackFontDict}_processRadioButton(t){this.data.fieldValue=this.data.buttonValue=null;const e=t.dict.get("Parent");if(e instanceof a.Dict){this.parent=t.dict.getRaw("Parent");const i=e.get("V");if(i instanceof a.Name){this.data.fieldValue=this._decodeFormValue(i)}}const i=t.dict.get("AP");if(!(i instanceof a.Dict)){return}const n=i.get("N");if(!(n instanceof a.Dict)){return}for(const t of n.getKeys()){if(t!=="Off"){this.data.buttonValue=this._decodeFormValue(t);break}}this.checkedAppearance=n.get(this.data.buttonValue)||null;this.uncheckedAppearance=n.get("Off")||null;if(this.checkedAppearance){this._streams.push(this.checkedAppearance)}else{this._getDefaultCheckedAppearance(t,"disc")}if(this.uncheckedAppearance){this._streams.push(this.uncheckedAppearance)}this._fallbackFontDict=this.fallbackFontDict}_processPushButton(t){if(!t.dict.has("A")&&!t.dict.has("AA")&&!this.data.alternativeText){(0,n.warn)("Push buttons without action dictionaries are not supported");return}this.data.isTooltipOnly=!t.dict.has("A")&&!t.dict.has("AA");h.Catalog.parseDestDictionary({destDict:t.dict,resultObj:this.data,docBaseUrl:t.pdfManager.docBaseUrl,docAttachments:t.attachments})}getFieldObject(){let t="button";let e;if(this.data.checkBox){t="checkbox";e=this.data.exportValue}else if(this.data.radioButton){t="radiobutton";e=this.data.buttonValue}return{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:e,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:t}}get fallbackFontDict(){const t=new a.Dict;t.set("BaseFont",a.Name.get("ZapfDingbats"));t.set("Type",a.Name.get("FallbackType"));t.set("Subtype",a.Name.get("FallbackType"));t.set("Encoding",a.Name.get("ZapfDingbatsEncoding"));return(0,n.shadow)(this,"fallbackFontDict",t)}}class E extends S{constructor(t){super(t);this.data.options=[];const e=(0,s.getInheritableProperty)({dict:t.dict,key:"Opt"});if(Array.isArray(e)){const i=t.xref;for(let t=0,n=e.length;t<n;t++){const n=i.fetchIfRef(e[t]);const s=Array.isArray(n);this.data.options[t]={exportValue:this._decodeFormValue(s?i.fetchIfRef(n[0]):n),displayValue:this._decodeFormValue(s?i.fetchIfRef(n[1]):n)}}}if(typeof this.data.fieldValue==="string"){this.data.fieldValue=[this.data.fieldValue]}else if(!this.data.fieldValue){this.data.fieldValue=[]}this.data.combo=this.hasFieldFlag(n.AnnotationFieldFlag.COMBO);this.data.multiSelect=this.hasFieldFlag(n.AnnotationFieldFlag.MULTISELECT);this._hasText=true}getFieldObject(){const t=this.data.combo?"combobox":"listbox";const e=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:e,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:t}}async _getAppearance(t,e,i){if(this.data.combo){return super._getAppearance(t,e,i)}if(!i){return null}const s=i.get(this.data.id);if(!s){return null}const a=s.rotation;let o=s.value;if(a===undefined&&o===undefined){return null}if(o===undefined){o=this.data.fieldValue}else if(!Array.isArray(o)){o=[o]}const c=2;const l=c;let h=this.data.rect[3]-this.data.rect[1];let u=this.data.rect[2]-this.data.rect[0];if(a===90||a===270){[u,h]=[h,u]}const f=this.data.options.length;const d=[];for(let t=0;t<f;t++){const{exportValue:e}=this.data.options[t];if(o.includes(e)){d.push(t)}}if(!this._defaultAppearance){this.data.defaultAppearanceData=(0,r.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g")}const p=await S._getFontData(t,e,this.data.defaultAppearanceData,this._fieldResources.mergedResources);let m;let{fontSize:g}=this.data.defaultAppearanceData;if(!g){const t=(h-c)/f;let e=-1;let i;for(const{displayValue:t}of this.data.options){const n=this._getTextWidth(t,p);if(n>e){e=n;i=t}}[m,g]=this._computeFontSize(t,u-2*l,i,p,-1)}else{m=this._defaultAppearance}const b=g*n.LINE_FACTOR;const v=(b-g)/2;const w=Math.floor(h/b);let y;if(d.length===1){const t=d[0];const e=t%w;y=t-e}else{y=d.length?d[0]:0}const A=Math.min(y+w+1,f);const k=["/Tx BMC q",`1 1 ${u} ${h} re W n`];if(d.length){k.push("0.600006 0.756866 0.854904 rg");for(const t of d){if(y<=t&&t<A){k.push(`1 ${h-(t-y+1)*b} ${u} ${b} re f`)}}}k.push("BT",m,`1 0 0 1 0 ${h} Tm`);for(let t=y;t<A;t++){const{displayValue:e}=this.data.options[t];const i=t===y?l:0;const n=t===y?v:0;k.push(this._renderText(e,p,g,u,0,i,-b+n))}k.push("ET Q EMC");return k.join("\n")}}class C extends S{constructor(t){super(t);this.data.fieldValue=null}getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}class O extends x{constructor(t){const e=22;super(t);const i=t.dict;this.data.annotationType=n.AnnotationType.TEXT;if(this.data.hasAppearance){this.data.name="NoIcon"}else{this.data.rect[1]=this.data.rect[3]-e;this.data.rect[2]=this.data.rect[0]+e;this.data.name=i.has("Name")?i.get("Name").name:"Note"}if(i.has("State")){this.data.state=i.get("State")||null;this.data.stateModel=i.get("StateModel")||null}else{this.data.state=null;this.data.stateModel=null}}}class T extends A{constructor(t){super(t);this.data.annotationType=n.AnnotationType.LINK;const e=w(t.dict,this.rectangle);if(e){this.data.quadPoints=e}this.data.borderColor=this.data.borderColor||this.data.color;h.Catalog.parseDestDictionary({destDict:t.dict,resultObj:this.data,docBaseUrl:t.pdfManager.docBaseUrl,docAttachments:t.attachments})}}class I extends A{constructor(t){super(t);this.data.annotationType=n.AnnotationType.POPUP;let e=t.dict.get("Parent");if(!e){(0,n.warn)("Popup annotation has a missing or invalid parent annotation.");return}const i=e.get("Subtype");this.data.parentType=i instanceof a.Name?i.name:null;const s=t.dict.getRaw("Parent");this.data.parentId=s instanceof a.Ref?s.toString():null;const r=e.getArray("Rect");if(Array.isArray(r)&&r.length===4){this.data.parentRect=n.Util.normalizeRect(r)}else{this.data.parentRect=[0,0,0,0]}const o=e.get("RT");if((0,a.isName)(o,n.AnnotationReplyType.GROUP)){e=e.get("IRT")}if(!e.has("M")){this.data.modificationDate=null}else{this.setModificationDate(e.get("M"));this.data.modificationDate=this.modificationDate}if(!e.has("C")){this.data.color=null}else{this.setColor(e.getArray("C"));this.data.color=this.color}if(!this.viewable){const t=e.get("F");if(this._isViewable(t)){this.setFlags(t)}}this.setTitle(e.get("T"));this.data.titleObj=this._title;this.setContents(e.get("Contents"));this.data.contentsObj=this._contents;if(e.has("RC")){this.data.richText=g.XFAFactory.getRichTextAsHtml(e.get("RC"))}}}e.PopupAnnotation=I;class F extends x{constructor(t){super(t);this.data.annotationType=n.AnnotationType.FREETEXT}get hasTextContent(){return!!this.appearance}static createNewDict(t,e,i){let{apRef:s,ap:o}=i;const{color:c,fontSize:l,rect:h,rotation:u,user:f,value:d}=t;const p=new a.Dict(e);p.set("Type",a.Name.get("Annot"));p.set("Subtype",a.Name.get("FreeText"));p.set("CreationDate",`D:${(0,n.getModificationDate)()}`);p.set("Rect",h);const m=`/Helv ${l} Tf ${(0,r.getPdfColor)(c,true)}`;p.set("DA",m);p.set("Contents",d);p.set("F",4);p.set("Border",[0,0,0]);p.set("Rotate",u);if(f){p.set("T",(0,n.stringToUTF8String)(f))}const g=new a.Dict(e);p.set("AP",g);if(s){g.set("N",s)}else{g.set("N",o)}return p}static async createNewAppearanceStream(t,e,i){const{baseFontRef:o,evaluator:c,task:l}=i;const{color:h,fontSize:u,rect:f,rotation:d,value:p}=t;const g=new a.Dict(e);const b=new a.Dict(e);if(o){b.set("Helv",o)}else{const t=new a.Dict(e);t.set("BaseFont",a.Name.get("Helvetica"));t.set("Type",a.Name.get("Font"));t.set("Subtype",a.Name.get("Type1"));t.set("Encoding",a.Name.get("WinAnsiEncoding"));b.set("Helv",t)}g.set("Font",b);const v=await S._getFontData(c,l,{fontName:"Helvetica",fontSize:u},g);const[w,y,A,k]=f;let x=A-w;let M=k-y;if(d%180!==0){[x,M]=[M,x]}const _=p.split("\n");const E=u/1e3;let C=-Infinity;const O=[];for(let t of _){t=v.encodeString(t).join("");O.push(t);let e=0;const i=v.charsToGlyphs(t);for(const t of i){e+=t.width*E}C=Math.max(C,e)}let T=1;if(C>x){T=x/C}let I=1;const F=n.LINE_FACTOR*u;const P=n.LINE_DESCENT_FACTOR*u;const D=F*_.length;if(D>M){I=M/D}const R=Math.min(T,I);const N=u*R;const j=["q",`0 0 ${(0,s.numberToString)(x)} ${(0,s.numberToString)(M)} re W n`,`BT`,`1 0 0 1 0 ${(0,s.numberToString)(M+P)} Tm 0 Tc ${(0,r.getPdfColor)(h,true)}`,`/Helv ${(0,s.numberToString)(N)} Tf`];const L=(0,s.numberToString)(F);for(const t of O){j.push(`0 -${L} Td (${(0,n.escapeString)(t)}) Tj`)}j.push("ET","Q");const U=j.join("\n");const B=new a.Dict(e);B.set("FormType",1);B.set("Subtype",a.Name.get("Form"));B.set("Type",a.Name.get("XObject"));B.set("BBox",[0,0,x,M]);B.set("Length",U.length);B.set("Resources",g);if(d){const t=S._getRotationMatrix(d,x,M);B.set("Matrix",t)}const $=new m.StringStream(U);$.dict=B;return $}}class P extends x{constructor(t){super(t);const{dict:e}=t;this.data.annotationType=n.AnnotationType.LINE;const i=e.getArray("L");this.data.lineCoordinates=n.Util.normalizeRect(i);this.setLineEndings(e.getArray("LE"));this.data.lineEndings=this.lineEndings;if(!this.appearance){const s=this.color?Array.from(this.color,(t=>t/255)):[0,0,0];const r=e.get("CA");let a=null,o=e.getArray("IC");if(o){o=v(o,null);a=o?Array.from(o,(t=>t/255)):null}const c=a?r:null;const l=this.borderStyle.width||1,h=2*l;const u=[this.data.lineCoordinates[0]-h,this.data.lineCoordinates[1]-h,this.data.lineCoordinates[2]+h,this.data.lineCoordinates[3]+h];if(!n.Util.intersect(this.rectangle,u)){this.rectangle=u}this._setDefaultAppearance({xref:t.xref,extra:`${l} w`,strokeColor:s,fillColor:a,strokeAlpha:r,fillAlpha:c,pointsCallback:(t,e)=>{t.push(`${i[0]} ${i[1]} m`,`${i[2]} ${i[3]} l`,"S");return[e[0].x-l,e[1].x+l,e[3].y-l,e[1].y+l]}})}}}class D extends x{constructor(t){super(t);this.data.annotationType=n.AnnotationType.SQUARE;if(!this.appearance){const e=this.color?Array.from(this.color,(t=>t/255)):[0,0,0];const i=t.dict.get("CA");let n=null,s=t.dict.getArray("IC");if(s){s=v(s,null);n=s?Array.from(s,(t=>t/255)):null}const r=n?i:null;if(this.borderStyle.width===0&&!n){return}this._setDefaultAppearance({xref:t.xref,extra:`${this.borderStyle.width} w`,strokeColor:e,fillColor:n,strokeAlpha:i,fillAlpha:r,pointsCallback:(t,e)=>{const i=e[2].x+this.borderStyle.width/2;const s=e[2].y+this.borderStyle.width/2;const r=e[3].x-e[2].x-this.borderStyle.width;const a=e[1].y-e[3].y-this.borderStyle.width;t.push(`${i} ${s} ${r} ${a} re`);if(n){t.push("B")}else{t.push("S")}return[e[0].x,e[1].x,e[3].y,e[1].y]}})}}}class R extends x{constructor(t){super(t);this.data.annotationType=n.AnnotationType.CIRCLE;if(!this.appearance){const e=this.color?Array.from(this.color,(t=>t/255)):[0,0,0];const i=t.dict.get("CA");let n=null;let s=t.dict.getArray("IC");if(s){s=v(s,null);n=s?Array.from(s,(t=>t/255)):null}const r=n?i:null;if(this.borderStyle.width===0&&!n){return}const a=4/3*Math.tan(Math.PI/(2*4));this._setDefaultAppearance({xref:t.xref,extra:`${this.borderStyle.width} w`,strokeColor:e,fillColor:n,strokeAlpha:i,fillAlpha:r,pointsCallback:(t,e)=>{const i=e[0].x+this.borderStyle.width/2;const s=e[0].y-this.borderStyle.width/2;const r=e[3].x-this.borderStyle.width/2;const o=e[3].y+this.borderStyle.width/2;const c=i+(r-i)/2;const l=s+(o-s)/2;const h=(r-i)/2*a;const u=(o-s)/2*a;t.push(`${c} ${o} m`,`${c+h} ${o} ${r} ${l+u} ${r} ${l} c`,`${r} ${l-u} ${c+h} ${s} ${c} ${s} c`,`${c-h} ${s} ${i} ${l-u} ${i} ${l} c`,`${i} ${l+u} ${c-h} ${o} ${c} ${o} c`,"h");if(n){t.push("B")}else{t.push("S")}return[e[0].x,e[1].x,e[3].y,e[1].y]}})}}}class N extends x{constructor(t){super(t);const{dict:e}=t;this.data.annotationType=n.AnnotationType.POLYLINE;this.data.vertices=[];if(!(this instanceof j)){this.setLineEndings(e.getArray("LE"));this.data.lineEndings=this.lineEndings}const i=e.getArray("Vertices");if(!Array.isArray(i)){return}for(let t=0,e=i.length;t<e;t+=2){this.data.vertices.push({x:i[t],y:i[t+1]})}if(!this.appearance){const i=this.color?Array.from(this.color,(t=>t/255)):[0,0,0];const s=e.get("CA");const r=this.borderStyle.width||1,a=2*r;const o=[Infinity,Infinity,-Infinity,-Infinity];for(const t of this.data.vertices){o[0]=Math.min(o[0],t.x-a);o[1]=Math.min(o[1],t.y-a);o[2]=Math.max(o[2],t.x+a);o[3]=Math.max(o[3],t.y+a)}if(!n.Util.intersect(this.rectangle,o)){this.rectangle=o}this._setDefaultAppearance({xref:t.xref,extra:`${r} w`,strokeColor:i,strokeAlpha:s,pointsCallback:(t,e)=>{const i=this.data.vertices;for(let e=0,n=i.length;e<n;e++){t.push(`${i[e].x} ${i[e].y} ${e===0?"m":"l"}`)}t.push("S");return[e[0].x,e[1].x,e[3].y,e[1].y]}})}}}class j extends N{constructor(t){super(t);this.data.annotationType=n.AnnotationType.POLYGON}}class L extends x{constructor(t){super(t);this.data.annotationType=n.AnnotationType.CARET}}class U extends x{constructor(t){super(t);this.data.annotationType=n.AnnotationType.INK;this.data.inkLists=[];const e=t.dict.getArray("InkList");if(!Array.isArray(e)){return}const i=t.xref;for(let t=0,n=e.length;t<n;++t){this.data.inkLists.push([]);for(let n=0,s=e[t].length;n<s;n+=2){this.data.inkLists[t].push({x:i.fetchIfRef(e[t][n]),y:i.fetchIfRef(e[t][n+1])})}}if(!this.appearance){const e=this.color?Array.from(this.color,(t=>t/255)):[0,0,0];const i=t.dict.get("CA");const s=this.borderStyle.width||1,r=2*s;const a=[Infinity,Infinity,-Infinity,-Infinity];for(const t of this.data.inkLists){for(const e of t){a[0]=Math.min(a[0],e.x-r);a[1]=Math.min(a[1],e.y-r);a[2]=Math.max(a[2],e.x+r);a[3]=Math.max(a[3],e.y+r)}}if(!n.Util.intersect(this.rectangle,a)){this.rectangle=a}this._setDefaultAppearance({xref:t.xref,extra:`${s} w`,strokeColor:e,strokeAlpha:i,pointsCallback:(t,e)=>{for(const e of this.data.inkLists){for(let i=0,n=e.length;i<n;i++){t.push(`${e[i].x} ${e[i].y} ${i===0?"m":"l"}`)}t.push("S")}return[e[0].x,e[1].x,e[3].y,e[1].y]}})}}static createNewDict(t,e,i){let{apRef:s,ap:r}=i;const{paths:o,rect:c,rotation:l}=t;const h=new a.Dict(e);h.set("Type",a.Name.get("Annot"));h.set("Subtype",a.Name.get("Ink"));h.set("CreationDate",`D:${(0,n.getModificationDate)()}`);h.set("Rect",c);h.set("InkList",o.map((t=>t.points)));h.set("F",4);h.set("Border",[0,0,0]);h.set("Rotate",l);const u=new a.Dict(e);h.set("AP",u);if(s){u.set("N",s)}else{u.set("N",r)}return h}static async createNewAppearanceStream(t,e,i){const{color:n,rect:o,rotation:c,paths:l,thickness:h,opacity:u}=t;const[f,d,p,g]=o;let b=p-f;let v=g-d;if(c%180!==0){[b,v]=[v,b]}const w=[`${h} w 1 J 1 j`,`${(0,r.getPdfColor)(n,false)}`];if(u!==1){w.push("/R0 gs")}const y=[];for(const{bezier:t}of l){y.length=0;y.push(`${(0,s.numberToString)(t[0])} ${(0,s.numberToString)(t[1])} m`);for(let e=2,i=t.length;e<i;e+=6){const i=t.slice(e,e+6).map(s.numberToString).join(" ");y.push(`${i} c`)}y.push("S");w.push(y.join("\n"))}const A=w.join("\n");const k=new a.Dict(e);k.set("FormType",1);k.set("Subtype",a.Name.get("Form"));k.set("Type",a.Name.get("XObject"));k.set("BBox",[0,0,b,v]);k.set("Length",A.length);if(c){const t=S._getRotationMatrix(c,b,v);k.set("Matrix",t)}if(u!==1){const t=new a.Dict(e);const i=new a.Dict(e);const n=new a.Dict(e);n.set("CA",u);n.set("Type",a.Name.get("ExtGState"));i.set("R0",n);t.set("ExtGState",i);k.set("Resources",t)}const x=new m.StringStream(A);x.dict=k;return x}}class B extends x{constructor(t){super(t);this.data.annotationType=n.AnnotationType.HIGHLIGHT;const e=this.data.quadPoints=w(t.dict,null);if(e){const e=this.appearance&&this.appearance.dict.get("Resources");if(!this.appearance||!(e&&e.has("ExtGState"))){if(this.appearance){(0,n.warn)("HighlightAnnotation - ignoring built-in appearance stream.")}const e=this.color?Array.from(this.color,(t=>t/255)):[1,1,0];const i=t.dict.get("CA");this._setDefaultAppearance({xref:t.xref,fillColor:e,blendMode:"Multiply",fillAlpha:i,pointsCallback:(t,e)=>{t.push(`${e[0].x} ${e[0].y} m`,`${e[1].x} ${e[1].y} l`,`${e[3].x} ${e[3].y} l`,`${e[2].x} ${e[2].y} l`,"f");return[e[0].x,e[1].x,e[3].y,e[1].y]}})}}else{this.data.hasPopup=false}}}class $ extends x{constructor(t){super(t);this.data.annotationType=n.AnnotationType.UNDERLINE;const e=this.data.quadPoints=w(t.dict,null);if(e){if(!this.appearance){const e=this.color?Array.from(this.color,(t=>t/255)):[0,0,0];const i=t.dict.get("CA");this._setDefaultAppearance({xref:t.xref,extra:"[] 0 d 1 w",strokeColor:e,strokeAlpha:i,pointsCallback:(t,e)=>{t.push(`${e[2].x} ${e[2].y} m`,`${e[3].x} ${e[3].y} l`,"S");return[e[0].x,e[1].x,e[3].y,e[1].y]}})}}else{this.data.hasPopup=false}}}class q extends x{constructor(t){super(t);this.data.annotationType=n.AnnotationType.SQUIGGLY;const e=this.data.quadPoints=w(t.dict,null);if(e){if(!this.appearance){const e=this.color?Array.from(this.color,(t=>t/255)):[0,0,0];const i=t.dict.get("CA");this._setDefaultAppearance({xref:t.xref,extra:"[] 0 d 1 w",strokeColor:e,strokeAlpha:i,pointsCallback:(t,e)=>{const i=(e[0].y-e[2].y)/6;let n=i;let s=e[2].x;const r=e[2].y;const a=e[3].x;t.push(`${s} ${r+n} m`);do{s+=2;n=n===0?i:0;t.push(`${s} ${r+n} l`)}while(s<a);t.push("S");return[e[2].x,a,r-2*i,r+2*i]}})}}else{this.data.hasPopup=false}}}class G extends x{constructor(t){super(t);this.data.annotationType=n.AnnotationType.STRIKEOUT;const e=this.data.quadPoints=w(t.dict,null);if(e){if(!this.appearance){const e=this.color?Array.from(this.color,(t=>t/255)):[0,0,0];const i=t.dict.get("CA");this._setDefaultAppearance({xref:t.xref,extra:"[] 0 d 1 w",strokeColor:e,strokeAlpha:i,pointsCallback:(t,e)=>{t.push(`${(e[0].x+e[2].x)/2} `+`${(e[0].y+e[2].y)/2} m`,`${(e[1].x+e[3].x)/2} `+`${(e[1].y+e[3].y)/2} l`,"S");return[e[0].x,e[1].x,e[3].y,e[1].y]}})}}else{this.data.hasPopup=false}}}class W extends x{constructor(t){super(t);this.data.annotationType=n.AnnotationType.STAMP}}class H extends x{constructor(t){super(t);const e=new f.FileSpec(t.dict.get("FS"),t.xref);this.data.annotationType=n.AnnotationType.FILEATTACHMENT;this.data.file=e.serializable}}},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.createDefaultAppearance=f;e.getPdfColor=u;e.parseDefaultAppearance=h;var n=i(135);var s=i(2);var r=i(143);var a=i(144);var o=i(134);var c=i(139);class l extends a.EvaluatorPreprocessor{constructor(t){super(new c.StringStream(t))}parse(){const t={fn:0,args:[]};const e={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{while(true){t.args.length=0;if(!this.read(t)){break}if(this.savedStatesDepth!==0){continue}const{fn:i,args:n}=t;switch(i|0){case s.OPS.setFont:const[t,i]=n;if(t instanceof o.Name){e.fontName=t.name}if(typeof i==="number"&&i>0){e.fontSize=i}break;case s.OPS.setFillRGBColor:r.ColorSpace.singletons.rgb.getRgbItem(n,0,e.fontColor,0);break;case s.OPS.setFillGray:r.ColorSpace.singletons.gray.getRgbItem(n,0,e.fontColor,0);break;case s.OPS.setFillColorSpace:r.ColorSpace.singletons.cmyk.getRgbItem(n,0,e.fontColor,0);break}}}catch(t){(0,s.warn)(`parseDefaultAppearance - ignoring errors: "${t}".`)}return e}}function h(t){return new l(t).parse()}function u(t,e){if(t[0]===t[1]&&t[1]===t[2]){const i=t[0]/255;return`${(0,n.numberToString)(i)} ${e?"g":"G"}`}return Array.from(t,(t=>(0,n.numberToString)(t/255))).join(" ")+` ${e?"rg":"RG"}`}function f(t){let{fontSize:e,fontName:i,fontColor:s}=t;return`/${(0,n.escapePDFName)(i)} ${e} Tf ${u(s,true)}`}},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.ColorSpace=void 0;var n=i(2);var s=i(134);var r=i(136);var a=i(135);function o(t,e,i,n,s,r,a){const o=3;a=a!==1?0:a;const c=i/s;const l=n/r;let h=0,u;const f=new Uint16Array(s);const d=i*o;for(let t=0;t<s;t++){f[t]=Math.floor(t*c)*o}for(let i=0;i<r;i++){const n=Math.floor(i*l)*d;for(let i=0;i<s;i++){u=n+f[i];e[h++]=t[u++];e[h++]=t[u++];e[h++]=t[u++];h+=a}}}class c{constructor(t,e){if(this.constructor===c){(0,n.unreachable)("Cannot initialize ColorSpace.")}this.name=t;this.numComps=e}getRgb(t,e){const i=new Uint8ClampedArray(3);this.getRgbItem(t,e,i,0);return i}getRgbItem(t,e,i,s){(0,n.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(t,e,i,s,r,a,o){(0,n.unreachable)("Should not call ColorSpace.getRgbBuffer")}getOutputLength(t,e){(0,n.unreachable)("Should not call ColorSpace.getOutputLength")}isPassthrough(t){return false}isDefaultDecode(t,e){return c.isDefaultDecode(t,this.numComps)}fillRgb(t,e,i,n,s,r,a,c,l){const h=e*i;let u=null;const f=1<<a;const d=i!==s||e!==n;if(this.isPassthrough(a)){u=c}else if(this.numComps===1&&h>f&&this.name!=="DeviceGray"&&this.name!=="DeviceRGB"){const e=a<=8?new Uint8Array(f):new Uint16Array(f);for(let t=0;t<f;t++){e[t]=t}const i=new Uint8ClampedArray(f*3);this.getRgbBuffer(e,0,f,i,0,a,0);if(!d){let e=0;for(let n=0;n<h;++n){const s=c[n]*3;t[e++]=i[s];t[e++]=i[s+1];t[e++]=i[s+2];e+=l}}else{u=new Uint8Array(h*3);let t=0;for(let e=0;e<h;++e){const n=c[e]*3;u[t++]=i[n];u[t++]=i[n+1];u[t++]=i[n+2]}}}else{if(!d){this.getRgbBuffer(c,0,n*r,t,0,a,l)}else{u=new Uint8ClampedArray(h*3);this.getRgbBuffer(c,0,h,u,0,a,0)}}if(u){if(d){o(u,t,e,i,n,s,l)}else{let e=0,i=0;for(let s=0,a=n*r;s<a;s++){t[e++]=u[i++];t[e++]=u[i++];t[e++]=u[i++];e+=l}}}}get usesZeroToOneRange(){return(0,n.shadow)(this,"usesZeroToOneRange",true)}static _cache(t,e,i,n){if(!i){throw new Error('ColorSpace._cache - expected "localColorSpaceCache" argument.')}if(!n){throw new Error('ColorSpace._cache - expected "parsedColorSpace" argument.')}let r,a;if(t instanceof s.Ref){a=t;t=e.fetch(t)}if(t instanceof s.Name){r=t.name}if(r||a){i.set(r,a,n)}}static getCached(t,e,i){if(!i){throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.')}if(t instanceof s.Ref){const n=i.getByRef(t);if(n){return n}try{t=e.fetch(t)}catch(t){if(t instanceof a.MissingDataException){throw t}}}if(t instanceof s.Name){const e=i.getByName(t.name);if(e){return e}}return null}static async parseAsync(t){let{cs:e,xref:i,resources:n=null,pdfFunctionFactory:s,localColorSpaceCache:r}=t;const a=this._parse(e,i,n,s);this._cache(e,i,r,a);return a}static parse(t){let{cs:e,xref:i,resources:n=null,pdfFunctionFactory:s,localColorSpaceCache:r}=t;const a=this.getCached(e,i,r);if(a){return a}const o=this._parse(e,i,n,s);this._cache(e,i,r,o);return o}static _parse(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;let r=arguments.length>3?arguments[3]:undefined;t=e.fetchIfRef(t);if(t instanceof s.Name){switch(t.name){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"Pattern":return new h(null);default:if(i instanceof s.Dict){const n=i.get("ColorSpace");if(n instanceof s.Dict){const a=n.get(t.name);if(a){if(a instanceof s.Name){return this._parse(a,e,i,r)}t=a;break}}}throw new n.FormatError(`Unrecognized ColorSpace: ${t.name}`)}}if(Array.isArray(t)){const s=e.fetchIfRef(t[0]).name;let a,o,c,f,d,p;switch(s){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"CalGray":a=e.fetchIfRef(t[1]);f=a.getArray("WhitePoint");d=a.getArray("BlackPoint");p=a.get("Gamma");return new m(f,d,p);case"CalRGB":a=e.fetchIfRef(t[1]);f=a.getArray("WhitePoint");d=a.getArray("BlackPoint");p=a.getArray("Gamma");const v=a.getArray("Matrix");return new g(f,d,p,v);case"ICCBased":const w=e.fetchIfRef(t[1]);const y=w.dict;o=y.get("N");const A=y.get("Alternate");if(A){const t=this._parse(A,e,i,r);if(t.numComps===o){return t}(0,n.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(o===1){return this.singletons.gray}else if(o===3){return this.singletons.rgb}else if(o===4){return this.singletons.cmyk}break;case"Pattern":c=t[1]||null;if(c){c=this._parse(c,e,i,r)}return new h(c);case"I":case"Indexed":c=this._parse(t[1],e,i,r);const k=e.fetchIfRef(t[2])+1;const x=e.fetchIfRef(t[3]);return new u(c,k,x);case"Separation":case"DeviceN":const S=e.fetchIfRef(t[1]);o=Array.isArray(S)?S.length:1;c=this._parse(t[2],e,i,r);const M=r.create(t[3]);return new l(o,c,M);case"Lab":a=e.fetchIfRef(t[1]);f=a.getArray("WhitePoint");d=a.getArray("BlackPoint");const _=a.getArray("Range");return new b(f,d,_);default:throw new n.FormatError(`Unimplemented ColorSpace object: ${s}`)}}throw new n.FormatError(`Unrecognized ColorSpace object: ${t}`)}static isDefaultDecode(t,e){if(!Array.isArray(t)){return true}if(e*2!==t.length){(0,n.warn)("The decode map is not the correct length");return true}for(let e=0,i=t.length;e<i;e+=2){if(t[e]!==0||t[e+1]!==1){return false}}return true}static get singletons(){return(0,n.shadow)(this,"singletons",{get gray(){return(0,n.shadow)(this,"gray",new f)},get rgb(){return(0,n.shadow)(this,"rgb",new d)},get cmyk(){return(0,n.shadow)(this,"cmyk",new p)}})}}e.ColorSpace=c;class l extends c{constructor(t,e,i){super("Alternate",t);this.base=e;this.tintFn=i;this.tmpBuf=new Float32Array(e.numComps)}getRgbItem(t,e,i,n){const s=this.tmpBuf;this.tintFn(t,e,s,0);this.base.getRgbItem(s,0,i,n)}getRgbBuffer(t,e,i,n,s,r,a){const o=this.tintFn;const c=this.base;const l=1/((1<<r)-1);const h=c.numComps;const u=c.usesZeroToOneRange;const f=(c.isPassthrough(8)||!u)&&a===0;let d=f?s:0;const p=f?n:new Uint8ClampedArray(h*i);const m=this.numComps;const g=new Float32Array(m);const b=new Float32Array(h);let v,w;for(v=0;v<i;v++){for(w=0;w<m;w++){g[w]=t[e++]*l}o(g,0,b,0);if(u){for(w=0;w<h;w++){p[d++]=b[w]*255}}else{c.getRgbItem(b,0,p,d);d+=h}}if(!f){c.getRgbBuffer(p,0,i,n,s,8,a)}}getOutputLength(t,e){return this.base.getOutputLength(t*this.base.numComps/this.numComps,e)}}class h extends c{constructor(t){super("Pattern",null);this.base=t}isDefaultDecode(t,e){(0,n.unreachable)("Should not call PatternCS.isDefaultDecode")}}class u extends c{constructor(t,e,i){super("Indexed",1);this.base=t;this.highVal=e;const s=t.numComps*e;this.lookup=new Uint8Array(s);if(i instanceof r.BaseStream){const t=i.getBytes(s);this.lookup.set(t)}else if(typeof i==="string"){for(let t=0;t<s;++t){this.lookup[t]=i.charCodeAt(t)&255}}else{throw new n.FormatError(`IndexedCS - unrecognized lookup table: ${i}`)}}getRgbItem(t,e,i,n){const s=this.base.numComps;const r=t[e]*s;this.base.getRgbBuffer(this.lookup,r,1,i,n,8,0)}getRgbBuffer(t,e,i,n,s,r,a){const o=this.base;const c=o.numComps;const l=o.getOutputLength(c,a);const h=this.lookup;for(let r=0;r<i;++r){const i=t[e++]*c;o.getRgbBuffer(h,i,1,n,s,8,a);s+=l}}getOutputLength(t,e){return this.base.getOutputLength(t*this.base.numComps,e)}isDefaultDecode(t,e){if(!Array.isArray(t)){return true}if(t.length!==2){(0,n.warn)("Decode map length is not correct");return true}if(!Number.isInteger(e)||e<1){(0,n.warn)("Bits per component is not correct");return true}return t[0]===0&&t[1]===(1<<e)-1}}class f extends c{constructor(){super("DeviceGray",1)}getRgbItem(t,e,i,n){const s=t[e]*255;i[n]=i[n+1]=i[n+2]=s}getRgbBuffer(t,e,i,n,s,r,a){const o=255/((1<<r)-1);let c=e,l=s;for(let e=0;e<i;++e){const e=o*t[c++];n[l++]=e;n[l++]=e;n[l++]=e;l+=a}}getOutputLength(t,e){return t*(3+e)}}class d extends c{constructor(){super("DeviceRGB",3)}getRgbItem(t,e,i,n){i[n]=t[e]*255;i[n+1]=t[e+1]*255;i[n+2]=t[e+2]*255}getRgbBuffer(t,e,i,n,s,r,a){if(r===8&&a===0){n.set(t.subarray(e,e+i*3),s);return}const o=255/((1<<r)-1);let c=e,l=s;for(let e=0;e<i;++e){n[l++]=o*t[c++];n[l++]=o*t[c++];n[l++]=o*t[c++];l+=a}}getOutputLength(t,e){return t*(3+e)/3|0}isPassthrough(t){return t===8}}const p=function t(){function e(t,e,i,n,s){const r=t[e]*i;const a=t[e+1]*i;const o=t[e+2]*i;const c=t[e+3]*i;n[s]=255+r*(-4.387332384609988*r+54.48615194189176*a+18.82290502165302*o+212.25662451639585*c+-285.2331026137004)+a*(1.7149763477362134*a-5.6096736904047315*o+-17.873870861415444*c-5.497006427196366)+o*(-2.5217340131683033*o-21.248923337353073*c+17.5119270841813)+c*(-21.86122147463605*c-189.48180835922747);n[s+1]=255+r*(8.841041422036149*r+60.118027045597366*a+6.871425592049007*o+31.159100130055922*c+-79.2970844816548)+a*(-15.310361306967817*a+17.575251261109482*o+131.35250912493976*c-190.9453302588951)+o*(4.444339102852739*o+9.8632861493405*c-24.86741582555878)+c*(-20.737325471181034*c-187.80453709719578);n[s+2]=255+r*(.8842522430003296*r+8.078677503112928*a+30.89978309703729*o-.23883238689178934*c+-14.183576799673286)+a*(10.49593273432072*a+63.02378494754052*o+50.606957656360734*c-112.23884253719248)+o*(.03296041114873217*o+115.60384449646641*c+-193.58209356861505)+c*(-22.33816807309886*c-180.12613974708367)}class i extends c{constructor(){super("DeviceCMYK",4)}getRgbItem(t,i,n,s){e(t,i,1,n,s)}getRgbBuffer(t,i,n,s,r,a,o){const c=1/((1<<a)-1);for(let a=0;a<n;a++){e(t,i,c,s,r);i+=4;r+=3+o}}getOutputLength(t,e){return t/4*(3+e)|0}}return i}();const m=function t(){function e(t,e,i,n,s,r){const a=e[i]*r;const o=a**t.G;const c=t.YW*o;const l=Math.max(295.8*c**.3333333333333333-40.8,0);n[s]=l;n[s+1]=l;n[s+2]=l}class i extends c{constructor(t,e,i){super("CalGray",1);if(!t){throw new n.FormatError("WhitePoint missing - required for color space CalGray")}e=e||[0,0,0];i=i||1;this.XW=t[0];this.YW=t[1];this.ZW=t[2];this.XB=e[0];this.YB=e[1];this.ZB=e[2];this.G=i;if(this.XW<0||this.ZW<0||this.YW!==1){throw new n.FormatError(`Invalid WhitePoint components for ${this.name}`+", no fallback available")}if(this.XB<0||this.YB<0||this.ZB<0){(0,n.info)(`Invalid BlackPoint for ${this.name}, falling back to default.`);this.XB=this.YB=this.ZB=0}if(this.XB!==0||this.YB!==0||this.ZB!==0){(0,n.warn)(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, `+`ZB: ${this.ZB}, only default values are supported.`)}if(this.G<1){(0,n.info)(`Invalid Gamma: ${this.G} for ${this.name}, `+"falling back to default.");this.G=1}}getRgbItem(t,i,n,s){e(this,t,i,n,s,1)}getRgbBuffer(t,i,n,s,r,a,o){const c=1/((1<<a)-1);for(let a=0;a<n;++a){e(this,t,i,s,r,c);i+=1;r+=3+o}}getOutputLength(t,e){return t*(3+e)}}return i}();const g=function t(){const e=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]);const i=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]);const s=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]);const r=new Float32Array([1,1,1]);const a=new Float32Array(3);const o=new Float32Array(3);const l=new Float32Array(3);const h=((8+16)/116)**3/8;function u(t,e,i){i[0]=t[0]*e[0]+t[1]*e[1]+t[2]*e[2];i[1]=t[3]*e[0]+t[4]*e[1]+t[5]*e[2];i[2]=t[6]*e[0]+t[7]*e[1]+t[8]*e[2]}function f(t,e,i){i[0]=e[0]*1/t[0];i[1]=e[1]*1/t[1];i[2]=e[2]*1/t[2]}function d(t,e,i){const n=.95047;const s=1;const r=1.08883;i[0]=e[0]*n/t[0];i[1]=e[1]*s/t[1];i[2]=e[2]*r/t[2]}function p(t){if(t<=.0031308){return m(0,1,12.92*t)}if(t>=.99554525){return 1}return m(0,1,(1+.055)*t**(1/2.4)-.055)}function m(t,e,i){return Math.max(t,Math.min(e,i))}function g(t){if(t<0){return-g(-t)}if(t>8){return((t+16)/116)**3}return t*h}function b(t,e,i){if(t[0]===0&&t[1]===0&&t[2]===0){i[0]=e[0];i[1]=e[1];i[2]=e[2];return}const n=g(0);const s=n;const r=g(t[0]);const a=n;const o=g(t[1]);const c=n;const l=g(t[2]);const h=(1-s)/(1-r);const u=1-h;const f=(1-a)/(1-o);const d=1-f;const p=(1-c)/(1-l);const m=1-p;i[0]=e[0]*h+u;i[1]=e[1]*f+d;i[2]=e[2]*p+m}function v(t,n,s){if(t[0]===1&&t[2]===1){s[0]=n[0];s[1]=n[1];s[2]=n[2];return}const r=s;u(e,n,r);const o=a;f(t,r,o);u(i,o,s)}function w(t,n,s){const r=s;u(e,n,r);const o=a;d(t,r,o);u(i,o,s)}function y(t,e,i,n,a,c){const h=m(0,1,e[i]*c);const f=m(0,1,e[i+1]*c);const d=m(0,1,e[i+2]*c);const g=h===1?1:h**t.GR;const y=f===1?1:f**t.GG;const A=d===1?1:d**t.GB;const k=t.MXA*g+t.MXB*y+t.MXC*A;const x=t.MYA*g+t.MYB*y+t.MYC*A;const S=t.MZA*g+t.MZB*y+t.MZC*A;const M=o;M[0]=k;M[1]=x;M[2]=S;const _=l;v(t.whitePoint,M,_);const E=o;b(t.blackPoint,_,E);const C=l;w(r,E,C);const O=o;u(s,C,O);n[a]=p(O[0])*255;n[a+1]=p(O[1])*255;n[a+2]=p(O[2])*255}class A extends c{constructor(t,e,i,s){super("CalRGB",3);if(!t){throw new n.FormatError("WhitePoint missing - required for color space CalRGB")}e=e||new Float32Array(3);i=i||new Float32Array([1,1,1]);s=s||new Float32Array([1,0,0,0,1,0,0,0,1]);const r=t[0];const a=t[1];const o=t[2];this.whitePoint=t;const c=e[0];const l=e[1];const h=e[2];this.blackPoint=e;this.GR=i[0];this.GG=i[1];this.GB=i[2];this.MXA=s[0];this.MYA=s[1];this.MZA=s[2];this.MXB=s[3];this.MYB=s[4];this.MZB=s[5];this.MXC=s[6];this.MYC=s[7];this.MZC=s[8];if(r<0||o<0||a!==1){throw new n.FormatError(`Invalid WhitePoint components for ${this.name}`+", no fallback available")}if(c<0||l<0||h<0){(0,n.info)(`Invalid BlackPoint for ${this.name} [${c}, ${l}, ${h}], `+"falling back to default.");this.blackPoint=new Float32Array(3)}if(this.GR<0||this.GG<0||this.GB<0){(0,n.info)(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for `+`${this.name}, falling back to default.`);this.GR=this.GG=this.GB=1}}getRgbItem(t,e,i,n){y(this,t,e,i,n,1)}getRgbBuffer(t,e,i,n,s,r,a){const o=1/((1<<r)-1);for(let r=0;r<i;++r){y(this,t,e,n,s,o);e+=3;s+=3+a}}getOutputLength(t,e){return t*(3+e)/3|0}}return A}();const b=function t(){function e(t){let e;if(t>=6/29){e=t**3}else{e=108/841*(t-4/29)}return e}function i(t,e,i,n){return i+t*(n-i)/e}function s(t,n,s,r,a,o){let c=n[s];let l=n[s+1];let h=n[s+2];if(r!==false){c=i(c,r,0,100);l=i(l,r,t.amin,t.amax);h=i(h,r,t.bmin,t.bmax)}if(l>t.amax){l=t.amax}else if(l<t.amin){l=t.amin}if(h>t.bmax){h=t.bmax}else if(h<t.bmin){h=t.bmin}const u=(c+16)/116;const f=u+l/500;const d=u-h/200;const p=t.XW*e(f);const m=t.YW*e(u);const g=t.ZW*e(d);let b,v,w;if(t.ZW<1){b=p*3.1339+m*-1.617+g*-.4906;v=p*-.9785+m*1.916+g*.0333;w=p*.072+m*-.229+g*1.4057}else{b=p*3.2406+m*-1.5372+g*-.4986;v=p*-.9689+m*1.8758+g*.0415;w=p*.0557+m*-.204+g*1.057}a[o]=Math.sqrt(b)*255;a[o+1]=Math.sqrt(v)*255;a[o+2]=Math.sqrt(w)*255}class r extends c{constructor(t,e,i){super("Lab",3);if(!t){throw new n.FormatError("WhitePoint missing - required for color space Lab")}e=e||[0,0,0];i=i||[-100,100,-100,100];this.XW=t[0];this.YW=t[1];this.ZW=t[2];this.amin=i[0];this.amax=i[1];this.bmin=i[2];this.bmax=i[3];this.XB=e[0];this.YB=e[1];this.ZB=e[2];if(this.XW<0||this.ZW<0||this.YW!==1){throw new n.FormatError("Invalid WhitePoint components, no fallback available")}if(this.XB<0||this.YB<0||this.ZB<0){(0,n.info)("Invalid BlackPoint, falling back to default");this.XB=this.YB=this.ZB=0}if(this.amin>this.amax||this.bmin>this.bmax){(0,n.info)("Invalid Range, falling back to defaults");this.amin=-100;this.amax=100;this.bmin=-100;this.bmax=100}}getRgbItem(t,e,i,n){s(this,t,e,false,i,n)}getRgbBuffer(t,e,i,n,r,a,o){const c=(1<<a)-1;for(let a=0;a<i;a++){s(this,t,e,c,n,r);e+=3;r+=3+o}}getOutputLength(t,e){return t*(3+e)/3|0}isDefaultDecode(t,e){return true}get usesZeroToOneRange(){return(0,n.shadow)(this,"usesZeroToOneRange",false)}}return r}()},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.PartialEvaluator=e.EvaluatorPreprocessor=void 0;var n=i(2);var s=i(145);var r=i(134);var a=i(163);var o=i(167);var c=i(166);var l=i(170);var h=i(169);var u=i(179);var f=i(180);var d=i(171);var p=i(186);var m=i(146);var g=i(188);var b=i(139);var v=i(136);var w=i(189);var y=i(143);var A=i(148);var k=i(168);var x=i(135);var S=i(174);var M=i(190);var _=i(191);var E=i(192);const C=Object.freeze({maxImageSize:-1,disableFontFace:false,ignoreErrors:false,isEvalSupported:true,isOffscreenCanvasSupported:true,fontExtraProperties:false,useSystemFonts:true,cMapUrl:null,standardFontDataUrl:null});const O={TILING:1,SHADING:2};const T=10;const I=Promise.resolve();function F(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(Array.isArray(t)){for(const e of t){const t=F(e,true);if(t){return t}}(0,n.warn)(`Unsupported blend mode Array: ${t}`);return"source-over"}if(!(t instanceof r.Name)){if(e){return null}return"source-over"}switch(t.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}if(e){return null}(0,n.warn)(`Unsupported blend mode: ${t.name}`);return"source-over"}function P(t){if(t.fn===n.OPS.paintImageMaskXObject&&t.args[0]&&t.args[0].count>0){t.args[0].count++}}class D{static get TIME_SLOT_DURATION_MS(){return(0,n.shadow)(this,"TIME_SLOT_DURATION_MS",20)}static get CHECK_TIME_EVERY(){return(0,n.shadow)(this,"CHECK_TIME_EVERY",100)}constructor(){this.reset()}check(){if(++this.checked<D.CHECK_TIME_EVERY){return false}this.checked=0;return this.endTime<=Date.now()}reset(){this.endTime=Date.now()+D.TIME_SLOT_DURATION_MS;this.checked=0}}class R{constructor(t){let{xref:e,handler:i,pageIndex:n,idFactory:s,fontCache:r,builtInCMapCache:a,standardFontDataCache:o,globalImageCache:c,options:l=null}=t;this.xref=e;this.handler=i;this.pageIndex=n;this.idFactory=s;this.fontCache=r;this.builtInCMapCache=a;this.standardFontDataCache=o;this.globalImageCache=c;this.options=l||C;this.parsingType3Font=false;this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}get _pdfFunctionFactory(){const t=new p.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported});return(0,n.shadow)(this,"_pdfFunctionFactory",t)}clone(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;const e=Object.create(this);e.options=Object.assign(Object.create(null),this.options,t);return e}hasBlendModes(t,e){if(!(t instanceof r.Dict)){return false}if(t.objId&&e.has(t.objId)){return false}const i=new r.RefSet(e);if(t.objId){i.put(t.objId)}const s=[t],a=this.xref;while(s.length){const t=s.shift();const e=t.get("ExtGState");if(e instanceof r.Dict){for(let t of e.getRawValues()){if(t instanceof r.Ref){if(i.has(t)){continue}try{t=a.fetch(t)}catch(e){i.put(t);(0,n.info)(`hasBlendModes - ignoring ExtGState: "${e}".`);continue}}if(!(t instanceof r.Dict)){continue}if(t.objId){i.put(t.objId)}const e=t.get("BM");if(e instanceof r.Name){if(e.name!=="Normal"){return true}continue}if(e!==undefined&&Array.isArray(e)){for(const t of e){if(t instanceof r.Name&&t.name!=="Normal"){return true}}}}}const o=t.get("XObject");if(!(o instanceof r.Dict)){continue}for(let t of o.getRawValues()){if(t instanceof r.Ref){if(i.has(t)){continue}try{t=a.fetch(t)}catch(e){i.put(t);(0,n.info)(`hasBlendModes - ignoring XObject: "${e}".`);continue}}if(!(t instanceof v.BaseStream)){continue}if(t.dict.objId){i.put(t.dict.objId)}const e=t.dict.get("Resources");if(!(e instanceof r.Dict)){continue}if(e.objId&&i.has(e.objId)){continue}s.push(e);if(e.objId){i.put(e.objId)}}}for(const t of i){e.put(t)}return false}async fetchBuiltInCMap(t){const e=this.builtInCMapCache.get(t);if(e){return e}let i;if(this.options.cMapUrl!==null){const e=`${this.options.cMapUrl}${t}.bcmap`;const s=await fetch(e);if(!s.ok){throw new Error(`fetchBuiltInCMap: failed to fetch file "${e}" with "${s.statusText}".`)}i={cMapData:new Uint8Array(await s.arrayBuffer()),compressionType:n.CMapCompressionType.BINARY}}else{i=await this.handler.sendWithPromise("FetchBuiltInCMap",{name:t})}if(i.compressionType!==n.CMapCompressionType.NONE){this.builtInCMapCache.set(t,i)}return i}async fetchStandardFontData(t){const e=this.standardFontDataCache.get(t);if(e){return new b.Stream(e)}if(this.options.useSystemFonts&&t!=="Symbol"&&t!=="ZapfDingbats"){return null}const i=(0,l.getFontNameToFileMap)(),s=i[t];let r;if(this.options.standardFontDataUrl!==null){const t=`${this.options.standardFontDataUrl}${s}`;const e=await fetch(t);if(!e.ok){(0,n.warn)(`fetchStandardFontData: failed to fetch file "${t}" with "${e.statusText}".`)}else{r=await e.arrayBuffer()}}else{try{r=await this.handler.sendWithPromise("FetchStandardFontData",{filename:s})}catch(t){(0,n.warn)(`fetchStandardFontData: failed to fetch file "${s}" with "${t}".`)}}if(!r){return null}this.standardFontDataCache.set(t,r);return new b.Stream(r)}async buildFormXObject(t,e,i,s,a,o,c){const l=e.dict;const h=l.getArray("Matrix");let u=l.getArray("BBox");if(Array.isArray(u)&&u.length===4){u=n.Util.normalizeRect(u)}else{u=null}let f,d;if(l.has("OC")){f=await this.parseMarkedContentProps(l.get("OC"),t)}if(f!==undefined){s.addOp(n.OPS.beginMarkedContentProps,["OC",f])}const p=l.get("Group");if(p){d={matrix:h,bbox:u,smask:i,isolated:false,knockout:false};const e=p.get("S");let a=null;if((0,r.isName)(e,"Transparency")){d.isolated=p.get("I")||false;d.knockout=p.get("K")||false;if(p.has("CS")){const e=p.getRaw("CS");const i=y.ColorSpace.getCached(e,this.xref,c);if(i){a=i}else{a=await this.parseColorSpace({cs:e,resources:t,localColorSpaceCache:c})}}}if(i&&i.backdrop){a=a||y.ColorSpace.singletons.rgb;i.backdrop=a.getRgb(i.backdrop,0)}s.addOp(n.OPS.beginGroup,[d])}const m=p?[h,null]:[h,u];s.addOp(n.OPS.paintFormXObjectBegin,m);return this.getOperatorList({stream:e,task:a,resources:l.get("Resources")||t,operatorList:s,initialState:o}).then((function(){s.addOp(n.OPS.paintFormXObjectEnd,[]);if(p){s.addOp(n.OPS.endGroup,[d])}if(f!==undefined){s.addOp(n.OPS.endMarkedContent,[])}}))}_sendImgData(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;const n=e?[e.bitmap||e.data.buffer]:null;if(this.parsingType3Font||i){return this.handler.send("commonobj",[t,"Image",e],n)}return this.handler.send("obj",[t,this.pageIndex,"Image",e],n)}async buildPaintImageXObject(t){let{resources:e,image:i,isInline:s=false,operatorList:r,cacheKey:a,localImageCache:o,localColorSpaceCache:c}=t;const l=i.dict;const h=l.objId;const u=l.get("W","Width");const f=l.get("H","Height");if(!(u&&typeof u==="number")||!(f&&typeof f==="number")){(0,n.warn)("Image dimensions are missing, or not numbers.");return}const d=this.options.maxImageSize;if(d!==-1&&u*f>d){const t="Image exceeded maximum allowed size and was removed.";if(this.options.ignoreErrors){(0,n.warn)(t);return}throw new Error(t)}let p;if(l.has("OC")){p=await this.parseMarkedContentProps(l.get("OC"),e)}const m=l.get("IM","ImageMask")||false;let g,b;if(m){const t=l.get("I","Interpolate");const e=u+7>>3;const s=i.getBytes(e*f);const c=l.getArray("D","Decode");if(this.parsingType3Font){g=E.PDFImage.createRawMask({imgArray:s,width:u,height:f,imageIsFromDecodeStream:i instanceof A.DecodeStream,inverseDecode:!!c&&c[0]>0,interpolate:t});g.cached=!!a;b=[g];r.addImageOps(n.OPS.paintImageMaskXObject,b,p);if(a){o.set(a,h,{fn:n.OPS.paintImageMaskXObject,args:b,optionalContent:p})}return}g=E.PDFImage.createMask({imgArray:s,width:u,height:f,imageIsFromDecodeStream:i instanceof A.DecodeStream,inverseDecode:!!c&&c[0]>0,interpolate:t,isOffscreenCanvasSupported:this.options.isOffscreenCanvasSupported});if(g.isSingleOpaquePixel){r.addImageOps(n.OPS.paintSolidColorImageMask,[],p);if(a){o.set(a,h,{fn:n.OPS.paintSolidColorImageMask,args:[],optionalContent:p})}return}const d=`mask_${this.idFactory.createObjId()}`;r.addDependency(d);this._sendImgData(d,g);b=[{data:d,width:g.width,height:g.height,interpolate:g.interpolate,count:1}];r.addImageOps(n.OPS.paintImageMaskXObject,b,p);if(a){o.set(a,h,{fn:n.OPS.paintImageMaskXObject,args:b,optionalContent:p})}return}const v=l.get("SM","SMask")||false;const w=l.get("Mask")||false;const y=200;if(s&&!v&&!w&&u+f<y){const t=new E.PDFImage({xref:this.xref,res:e,image:i,isInline:s,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:c});g=t.createImageData(true);r.addImageOps(n.OPS.paintInlineImageXObject,[g],p);return}let k=`img_${this.idFactory.createObjId()}`,x=false;if(this.parsingType3Font){k=`${this.idFactory.getDocId()}_type3_${k}`}else if(h){x=this.globalImageCache.shouldCache(h,this.pageIndex);if(x){k=`${this.idFactory.getDocId()}_${k}`}}r.addDependency(k);b=[k,u,f];E.PDFImage.buildImage({xref:this.xref,res:e,image:i,isInline:s,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:c}).then((t=>{g=t.createImageData(false);if(a&&h&&x){this.globalImageCache.addByteSize(h,g.data.length)}return this._sendImgData(k,g,x)})).catch((t=>{(0,n.warn)(`Unable to decode image "${k}": "${t}".`);return this._sendImgData(k,null,x)}));r.addImageOps(n.OPS.paintImageXObject,b,p);if(a){o.set(a,h,{fn:n.OPS.paintImageXObject,args:b,optionalContent:p});if(h){(0,n.assert)(!s,"Cannot cache an inline image globally.");this.globalImageCache.addPageIndex(h,this.pageIndex);if(x){this.globalImageCache.setData(h,{objId:k,fn:n.OPS.paintImageXObject,args:b,optionalContent:p,byteSize:0})}}}}handleSMask(t,e,i,n,s,r){const a=t.get("G");const o={subtype:t.get("S").name,backdrop:t.get("BC")};const c=t.get("TR");if((0,p.isPDFFunction)(c)){const t=this._pdfFunctionFactory.create(c);const e=new Uint8Array(256);const i=new Float32Array(1);for(let n=0;n<256;n++){i[0]=n/255;t(i,0,i,0);e[n]=i[0]*255|0}o.transferMap=e}return this.buildFormXObject(e,a,o,i,n,s.state.clone(),r)}handleTransferFunction(t){let e;if(Array.isArray(t)){e=t}else if((0,p.isPDFFunction)(t)){e=[t]}else{return null}const i=[];let n=0,s=0;for(const t of e){const e=this.xref.fetchIfRef(t);n++;if((0,r.isName)(e,"Identity")){i.push(null);continue}else if(!(0,p.isPDFFunction)(e)){return null}const a=this._pdfFunctionFactory.create(e);const o=new Uint8Array(256),c=new Float32Array(1);for(let t=0;t<256;t++){c[0]=t/255;a(c,0,c,0);o[t]=c[0]*255|0}i.push(o);s++}if(!(n===1||n===4)){return null}if(s===0){return null}return i}handleTilingType(t,e,i,s,a,o,c,l){const h=new _.OperatorList;const f=r.Dict.merge({xref:this.xref,dictArray:[a.get("Resources"),i]});return this.getOperatorList({stream:s,task:c,resources:f,operatorList:h}).then((function(){const i=h.getIR();const n=(0,u.getTilingPatternIR)(i,a,e);o.addDependencies(h.dependencies);o.addOp(t,n);if(a.objId){l.set(null,a.objId,{operatorListIR:i,dict:a})}})).catch((t=>{if(t instanceof n.AbortException){return}if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorTilingPattern});(0,n.warn)(`handleTilingType - ignoring pattern: "${t}".`);return}throw t}))}handleSetFont(t,e,i,s,o,c){let l=arguments.length>6&&arguments[6]!==undefined?arguments[6]:null;let h=arguments.length>7&&arguments[7]!==undefined?arguments[7]:null;const u=e&&e[0]instanceof r.Name?e[0].name:null;return this.loadFont(u,i,t,l,h).then((e=>{if(!e.font.isType3Font){return e}return e.loadType3Data(this,t,o).then((function(){s.addDependencies(e.type3Dependencies);return e})).catch((t=>{this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorFontLoadType3});return new N({loadedName:"g_font_error",font:new a.ErrorFont(`Type3 font load error: ${t}`),dict:e.font,evaluatorOptions:this.options})}))})).then((t=>{c.font=t.font;t.send(this.handler);return t.loadedName}))}handleText(t,e){const i=e.font;const s=i.charsToGlyphs(t);if(i.data){const t=!!(e.textRenderingMode&n.TextRenderingMode.ADD_TO_PATH_FLAG);if(t||e.fillColorSpace.name==="Pattern"||i.disableFontFace||this.options.disableFontFace){R.buildFontPaths(i,s,this.handler,this.options)}}return s}ensureStateFont(t){if(t.font){return}const e=new n.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorFontState});(0,n.warn)(`ensureStateFont: "${e}".`);return}throw e}async setGState(t){let{resources:e,gState:i,operatorList:s,cacheKey:a,task:o,stateManager:c,localGStateCache:l,localColorSpaceCache:h}=t;const u=i.objId;let f=true;const d=[];let p=Promise.resolve();for(const t of i.getKeys()){const a=i.get(t);switch(t){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":d.push([t,a]);break;case"Font":f=false;p=p.then((()=>this.handleSetFont(e,null,a[0],s,o,c.state).then((function(e){s.addDependency(e);d.push([t,[e,a[1]]])}))));break;case"BM":d.push([t,F(a)]);break;case"SMask":if((0,r.isName)(a,"None")){d.push([t,false]);break}if(a instanceof r.Dict){f=false;p=p.then((()=>this.handleSMask(a,e,s,o,c,h)));d.push([t,true])}else{(0,n.warn)("Unsupported SMask type")}break;case"TR":const i=this.handleTransferFunction(a);d.push([t,i]);break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,n.info)("graphic state operator "+t);break;default:(0,n.info)("Unknown graphic state operator "+t);break}}return p.then((function(){if(d.length>0){s.addOp(n.OPS.setGState,[d])}if(f){l.set(a,u,d)}}))}loadFont(t,e,i){let s=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;let c=arguments.length>4&&arguments[4]!==undefined?arguments[4]:null;const l=async()=>new N({loadedName:"g_font_error",font:new a.ErrorFont(`Font "${t}" is not available.`),dict:e,evaluatorOptions:this.options});const h=this.xref;let u;if(e){if(e instanceof r.Ref){u=e}}else{const e=i.get("Font");if(e){u=e.getRaw(t)}}if(!u){const i=`Font "${t||e&&e.toString()}" is not available`;if(!this.options.ignoreErrors&&!this.parsingType3Font){(0,n.warn)(`${i}.`);return l()}this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorFontMissing});(0,n.warn)(`${i} -- attempting to fallback to a default font.`);if(s){u=s}else{u=R.fallbackFontDict}}if(this.parsingType3Font&&this.type3FontRefs.has(u)){return l()}if(this.fontCache.has(u)){return this.fontCache.get(u)}e=h.fetchIfRef(u);if(!(e instanceof r.Dict)){return l()}if(e.cacheKey&&this.fontCache.has(e.cacheKey)){return this.fontCache.get(e.cacheKey)}const f=(0,n.createPromiseCapability)();let d;try{d=this.preEvaluateFont(e);d.cssFontInfo=c}catch(t){(0,n.warn)(`loadFont - preEvaluateFont failed: "${t}".`);return l()}const{descriptor:p,hash:m}=d;const g=u instanceof r.Ref;let b;if(g){b=`f${u.toString()}`}if(m&&p instanceof r.Dict){if(!p.fontAliases){p.fontAliases=Object.create(null)}const t=p.fontAliases;if(t[m]){const e=t[m].aliasRef;if(g&&e&&this.fontCache.has(e)){this.fontCache.putAlias(u,e);return this.fontCache.get(u)}}else{t[m]={fontID:this.idFactory.createFontId()}}if(g){t[m].aliasRef=u}b=t[m].fontID}if(g){this.fontCache.put(u,f.promise)}else{if(!b){b=this.idFactory.createFontId()}e.cacheKey=`cacheKey_${b}`;this.fontCache.put(e.cacheKey,f.promise)}(0,n.assert)(b&&b.startsWith("f"),'The "fontID" must be (correctly) defined.');e.loadedName=`${this.idFactory.getDocId()}_${b}`;this.translateFont(d).then((t=>{if(t.fontType!==undefined){h.stats.addFontType(t.fontType)}f.resolve(new N({loadedName:e.loadedName,font:t,dict:e,evaluatorOptions:this.options}))})).catch((t=>{this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorFontTranslate});(0,n.warn)(`loadFont - translateFont failed: "${t}".`);try{const t=p&&p.get("FontFile3");const e=t&&t.get("Subtype");const i=(0,o.getFontType)(d.type,e&&e.name);if(i!==undefined){h.stats.addFontType(i)}}catch(t){}f.resolve(new N({loadedName:e.loadedName,font:new a.ErrorFont(t instanceof Error?t.message:t),dict:e,evaluatorOptions:this.options}))}));return f.promise}buildPath(t,e,i){let s=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;const r=t.length-1;if(!i){i=[]}if(r<0||t.fnArray[r]!==n.OPS.constructPath){if(s){(0,n.warn)(`Encountered path operator "${e}" inside of a text object.`);t.addOp(n.OPS.save,null)}let r;switch(e){case n.OPS.rectangle:const t=i[0]+i[2];const e=i[1]+i[3];r=[Math.min(i[0],t),Math.max(i[0],t),Math.min(i[1],e),Math.max(i[1],e)];break;case n.OPS.moveTo:case n.OPS.lineTo:r=[i[0],i[0],i[1],i[1]];break;default:r=[Infinity,-Infinity,Infinity,-Infinity];break}t.addOp(n.OPS.constructPath,[[e],i,r]);if(s){t.addOp(n.OPS.restore,null)}}else{const s=t.argsArray[r];s[0].push(e);s[1].push(...i);const a=s[2];switch(e){case n.OPS.rectangle:const t=i[0]+i[2];const e=i[1]+i[3];a[0]=Math.min(a[0],i[0],t);a[1]=Math.max(a[1],i[0],t);a[2]=Math.min(a[2],i[1],e);a[3]=Math.max(a[3],i[1],e);break;case n.OPS.moveTo:case n.OPS.lineTo:a[0]=Math.min(a[0],i[0]);a[1]=Math.max(a[1],i[0]);a[2]=Math.min(a[2],i[1]);a[3]=Math.max(a[3],i[1]);break}}}parseColorSpace(t){let{cs:e,resources:i,localColorSpaceCache:s}=t;return y.ColorSpace.parseAsync({cs:e,xref:this.xref,resources:i,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:s}).catch((t=>{if(t instanceof n.AbortException){return null}if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorColorSpace});(0,n.warn)(`parseColorSpace - ignoring ColorSpace: "${t}".`);return null}throw t}))}parseShading(t){let{shading:e,resources:i,localColorSpaceCache:n,localShadingPatternCache:s}=t;let r=s.get(e);if(!r){var a=u.Pattern.parseShading(e,this.xref,i,this.handler,this._pdfFunctionFactory,n);const t=a.getIR();r=`pattern_${this.idFactory.createObjId()}`;s.set(e,r);this.handler.send("obj",[r,this.pageIndex,"Pattern",t])}return r}handleColorN(t,e,i,s,a,o,c,l,h,f){const d=i.pop();if(d instanceof r.Name){const p=a.getRaw(d.name);const m=p instanceof r.Ref&&h.getByRef(p);if(m){try{const n=s.base?s.base.getRgb(i,0):null;const r=(0,u.getTilingPatternIR)(m.operatorListIR,m.dict,n);t.addOp(e,r);return undefined}catch(t){}}const g=this.xref.fetchIfRef(p);if(g){const r=g instanceof v.BaseStream?g.dict:g;const a=r.get("PatternType");if(a===O.TILING){const n=s.base?s.base.getRgb(i,0):null;return this.handleTilingType(e,n,o,g,r,t,c,h)}else if(a===O.SHADING){const i=r.get("Shading");const n=r.getArray("Matrix");const s=this.parseShading({shading:i,resources:o,localColorSpaceCache:l,localShadingPatternCache:f});t.addOp(e,["Shading",s,n]);return undefined}throw new n.FormatError(`Unknown PatternType: ${a}`)}}throw new n.FormatError(`Unknown PatternName: ${d}`)}_parseVisibilityExpression(t,e,i){const s=10;if(++e>s){(0,n.warn)("Visibility expression is too deeply nested");return}const a=t.length;const o=this.xref.fetchIfRef(t[0]);if(a<2||!(o instanceof r.Name)){(0,n.warn)("Invalid visibility expression");return}switch(o.name){case"And":case"Or":case"Not":i.push(o.name);break;default:(0,n.warn)(`Invalid operator ${o.name} in visibility expression`);return}for(let n=1;n<a;n++){const s=t[n];const a=this.xref.fetchIfRef(s);if(Array.isArray(a)){const t=[];i.push(t);this._parseVisibilityExpression(a,e,t)}else if(s instanceof r.Ref){i.push(s.toString())}}}async parseMarkedContentProps(t,e){let i;if(t instanceof r.Name){const n=e.get("Properties");i=n.get(t.name)}else if(t instanceof r.Dict){i=t}else{throw new n.FormatError("Optional content properties malformed.")}const s=i.get("Type").name;if(s==="OCG"){return{type:s,id:i.objId}}else if(s==="OCMD"){const t=i.get("VE");if(Array.isArray(t)){const e=[];this._parseVisibilityExpression(t,0,e);if(e.length>0){return{type:"OCMD",expression:e}}}const e=i.get("OCGs");if(Array.isArray(e)||e instanceof r.Dict){const t=[];if(Array.isArray(e)){for(const i of e){t.push(i.toString())}}else{t.push(e.objId)}return{type:s,ids:t,policy:i.get("P")instanceof r.Name?i.get("P").name:null,expression:null}}else if(e instanceof r.Ref){return{type:s,id:e.toString()}}}return null}getOperatorList(t){let{stream:e,task:i,resources:s,operatorList:a,initialState:o=null,fallbackFontDict:c=null}=t;s=s||r.Dict.empty;o=o||new U;if(!a){throw new Error('getOperatorList: missing "operatorList" parameter')}const l=this;const h=this.xref;let u=false;const f=new g.LocalImageCache;const d=new g.LocalColorSpaceCache;const p=new g.LocalGStateCache;const m=new g.LocalTilingPatternCache;const b=new Map;const w=s.get("XObject")||r.Dict.empty;const A=s.get("Pattern")||r.Dict.empty;const k=new j(o);const x=new B(e,h,k);const S=new D;function M(t){for(let t=0,e=x.savedStatesDepth;t<e;t++){a.addOp(n.OPS.restore,[])}}return new Promise((function t(e,o){const g=function(i){Promise.all([i,a.ready]).then((function(){try{t(e,o)}catch(t){o(t)}}),o)};i.ensureNotTerminated();S.reset();const _={};let E,C,O,T,F,D;while(!(E=S.check())){_.args=null;if(!x.read(_)){break}let t=_.args;let e=_.fn;switch(e|0){case n.OPS.paintXObject:D=t[0]instanceof r.Name;F=t[0].name;if(D){const e=f.getByName(F);if(e){a.addImageOps(e.fn,e.args,e.optionalContent);P(e);t=null;continue}}g(new Promise((function(t,e){if(!D){throw new n.FormatError("XObject must be referred to by name.")}let o=w.getRaw(F);if(o instanceof r.Ref){const e=f.getByRef(o);if(e){a.addImageOps(e.fn,e.args,e.optionalContent);P(e);t();return}const i=l.globalImageCache.getData(o,l.pageIndex);if(i){a.addDependency(i.objId);a.addImageOps(i.fn,i.args,i.optionalContent);t();return}o=h.fetch(o)}if(!(o instanceof v.BaseStream)){throw new n.FormatError("XObject should be a stream")}const c=o.dict.get("Subtype");if(!(c instanceof r.Name)){throw new n.FormatError("XObject should have a Name subtype")}if(c.name==="Form"){k.save();l.buildFormXObject(s,o,null,a,i,k.state.clone(),d).then((function(){k.restore();t()}),e);return}else if(c.name==="Image"){l.buildPaintImageXObject({resources:s,image:o,operatorList:a,cacheKey:F,localImageCache:f,localColorSpaceCache:d}).then(t,e);return}else if(c.name==="PS"){(0,n.info)("Ignored XObject subtype PS")}else{throw new n.FormatError(`Unhandled XObject subtype ${c.name}`)}t()})).catch((function(t){if(t instanceof n.AbortException){return}if(l.options.ignoreErrors){l.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorXObject});(0,n.warn)(`getOperatorList - ignoring XObject: "${t}".`);return}throw t})));return;case n.OPS.setFont:var R=t[1];g(l.handleSetFont(s,t,null,a,i,k.state,c).then((function(t){a.addDependency(t);a.addOp(n.OPS.setFont,[t,R])})));return;case n.OPS.beginText:u=true;break;case n.OPS.endText:u=false;break;case n.OPS.endInlineImage:var N=t[0].cacheKey;if(N){const e=f.getByName(N);if(e){a.addImageOps(e.fn,e.args,e.optionalContent);P(e);t=null;continue}}g(l.buildPaintImageXObject({resources:s,image:t[0],isInline:true,operatorList:a,cacheKey:N,localImageCache:f,localColorSpaceCache:d}));return;case n.OPS.showText:if(!k.state.font){l.ensureStateFont(k.state);continue}t[0]=l.handleText(t[0],k.state);break;case n.OPS.showSpacedText:if(!k.state.font){l.ensureStateFont(k.state);continue}var j=[];var L=k.state;for(const e of t[0]){if(typeof e==="string"){j.push(...l.handleText(e,L))}else if(typeof e==="number"){j.push(e)}}t[0]=j;e=n.OPS.showText;break;case n.OPS.nextLineShowText:if(!k.state.font){l.ensureStateFont(k.state);continue}a.addOp(n.OPS.nextLine);t[0]=l.handleText(t[0],k.state);e=n.OPS.showText;break;case n.OPS.nextLineSetSpacingShowText:if(!k.state.font){l.ensureStateFont(k.state);continue}a.addOp(n.OPS.nextLine);a.addOp(n.OPS.setWordSpacing,[t.shift()]);a.addOp(n.OPS.setCharSpacing,[t.shift()]);t[0]=l.handleText(t[0],k.state);e=n.OPS.showText;break;case n.OPS.setTextRenderingMode:k.state.textRenderingMode=t[0];break;case n.OPS.setFillColorSpace:{const e=y.ColorSpace.getCached(t[0],h,d);if(e){k.state.fillColorSpace=e;continue}g(l.parseColorSpace({cs:t[0],resources:s,localColorSpaceCache:d}).then((function(t){if(t){k.state.fillColorSpace=t}})));return}case n.OPS.setStrokeColorSpace:{const e=y.ColorSpace.getCached(t[0],h,d);if(e){k.state.strokeColorSpace=e;continue}g(l.parseColorSpace({cs:t[0],resources:s,localColorSpaceCache:d}).then((function(t){if(t){k.state.strokeColorSpace=t}})));return}case n.OPS.setFillColor:T=k.state.fillColorSpace;t=T.getRgb(t,0);e=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeColor:T=k.state.strokeColorSpace;t=T.getRgb(t,0);e=n.OPS.setStrokeRGBColor;break;case n.OPS.setFillGray:k.state.fillColorSpace=y.ColorSpace.singletons.gray;t=y.ColorSpace.singletons.gray.getRgb(t,0);e=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeGray:k.state.strokeColorSpace=y.ColorSpace.singletons.gray;t=y.ColorSpace.singletons.gray.getRgb(t,0);e=n.OPS.setStrokeRGBColor;break;case n.OPS.setFillCMYKColor:k.state.fillColorSpace=y.ColorSpace.singletons.cmyk;t=y.ColorSpace.singletons.cmyk.getRgb(t,0);e=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeCMYKColor:k.state.strokeColorSpace=y.ColorSpace.singletons.cmyk;t=y.ColorSpace.singletons.cmyk.getRgb(t,0);e=n.OPS.setStrokeRGBColor;break;case n.OPS.setFillRGBColor:k.state.fillColorSpace=y.ColorSpace.singletons.rgb;t=y.ColorSpace.singletons.rgb.getRgb(t,0);break;case n.OPS.setStrokeRGBColor:k.state.strokeColorSpace=y.ColorSpace.singletons.rgb;t=y.ColorSpace.singletons.rgb.getRgb(t,0);break;case n.OPS.setFillColorN:T=k.state.fillColorSpace;if(T.name==="Pattern"){g(l.handleColorN(a,n.OPS.setFillColorN,t,T,A,s,i,d,m,b));return}t=T.getRgb(t,0);e=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeColorN:T=k.state.strokeColorSpace;if(T.name==="Pattern"){g(l.handleColorN(a,n.OPS.setStrokeColorN,t,T,A,s,i,d,m,b));return}t=T.getRgb(t,0);e=n.OPS.setStrokeRGBColor;break;case n.OPS.shadingFill:var U=s.get("Shading");if(!U){throw new n.FormatError("No shading resource found")}var B=U.get(t[0].name);if(!B){throw new n.FormatError("No shading object found")}const o=l.parseShading({shading:B,resources:s,localColorSpaceCache:d,localShadingPatternCache:b});t=[o];e=n.OPS.shadingFill;break;case n.OPS.setGState:D=t[0]instanceof r.Name;F=t[0].name;if(D){const e=p.getByName(F);if(e){if(e.length>0){a.addOp(n.OPS.setGState,[e])}t=null;continue}}g(new Promise((function(t,e){if(!D){throw new n.FormatError("GState must be referred to by name.")}const o=s.get("ExtGState");if(!(o instanceof r.Dict)){throw new n.FormatError("ExtGState should be a dictionary.")}const c=o.get(F);if(!(c instanceof r.Dict)){throw new n.FormatError("GState should be a dictionary.")}l.setGState({resources:s,gState:c,operatorList:a,cacheKey:F,task:i,stateManager:k,localGStateCache:p,localColorSpaceCache:d}).then(t,e)})).catch((function(t){if(t instanceof n.AbortException){return}if(l.options.ignoreErrors){l.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorExtGState});(0,n.warn)(`getOperatorList - ignoring ExtGState: "${t}".`);return}throw t})));return;case n.OPS.moveTo:case n.OPS.lineTo:case n.OPS.curveTo:case n.OPS.curveTo2:case n.OPS.curveTo3:case n.OPS.closePath:case n.OPS.rectangle:l.buildPath(a,e,t,u);continue;case n.OPS.markPoint:case n.OPS.markPointProps:case n.OPS.beginCompat:case n.OPS.endCompat:continue;case n.OPS.beginMarkedContentProps:if(!(t[0]instanceof r.Name)){(0,n.warn)(`Expected name for beginMarkedContentProps arg0=${t[0]}`);continue}if(t[0].name==="OC"){g(l.parseMarkedContentProps(t[1],s).then((t=>{a.addOp(n.OPS.beginMarkedContentProps,["OC",t])})).catch((t=>{if(t instanceof n.AbortException){return}if(l.options.ignoreErrors){l.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorMarkedContent});(0,n.warn)(`getOperatorList - ignoring beginMarkedContentProps: "${t}".`);return}throw t})));return}t=[t[0].name,t[1]instanceof r.Dict?t[1].get("MCID"):null];break;case n.OPS.beginMarkedContent:case n.OPS.endMarkedContent:default:if(t!==null){for(C=0,O=t.length;C<O;C++){if(t[C]instanceof r.Dict){break}}if(C<O){(0,n.warn)("getOperatorList - ignoring operator: "+e);continue}}}a.addOp(e,t)}if(E){g(I);return}M();e()})).catch((t=>{if(t instanceof n.AbortException){return}if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorOperatorList});(0,n.warn)(`getOperatorList - ignoring errors during "${i.name}" `+`task: "${t}".`);M();return}throw t}))}getTextContent(t){let{stream:e,task:i,resources:s,stateManager:a=null,combineTextItems:o=false,includeMarkedContent:c=false,sink:l,seenStyles:u=new Set,viewBox:f,markedContentData:d=null}=t;s=s||r.Dict.empty;a=a||new j(new L);if(c){d=d||{level:0}}const p=(0,h.getNormalizedUnicodes)();const m={items:[],styles:Object.create(null)};const b={initialized:false,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:false,prevTransform:null,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:Infinity,negativeSpaceMax:-Infinity,notASpace:-Infinity,transform:null,fontName:null,hasEOL:false};const y=[" "," "];let A=0;function k(t){const e=(A+1)%2;const i=y[A]!==" "&&y[e]===" ";y[A]=t;A=e;return i}function x(){y[0]=y[1]=" ";A=0}const S=.1;const M=.03;const _=-.2;const E=.1;const C=.6;const O=this;const F=this.xref;const P=[];let R=null;const N=new g.LocalImageCache;const U=new g.LocalGStateCache;const $=new B(e,F,a);let q;function G(){const t=q.font;const e=[q.fontSize*q.textHScale,0,0,q.fontSize,0,q.textRise];if(t.isType3Font&&(q.fontSize<=1||t.isCharBBox)&&!(0,n.isArrayEqual)(q.fontMatrix,n.FONT_IDENTITY_MATRIX)){const i=t.bbox[3]-t.bbox[1];if(i>0){e[3]*=i*q.fontMatrix[3]}}return n.Util.transform(q.ctm,n.Util.transform(q.textMatrix,e))}function W(){if(b.initialized){return b}const t=q.font,e=t.loadedName;if(!u.has(e)){u.add(e);m.styles[e]={fontFamily:t.fallbackName,ascent:t.ascent,descent:t.descent,vertical:t.vertical}}b.fontName=e;const i=b.transform=G();if(!t.vertical){b.width=b.totalWidth=0;b.height=b.totalHeight=Math.hypot(i[2],i[3]);b.vertical=false}else{b.width=b.totalWidth=Math.hypot(i[0],i[1]);b.height=b.totalHeight=0;b.vertical=true}const n=Math.hypot(q.textLineMatrix[0],q.textLineMatrix[1]);const s=Math.hypot(q.ctm[0],q.ctm[1]);b.textAdvanceScale=s*n;b.trackingSpaceMin=q.fontSize*S;b.notASpace=q.fontSize*M;b.negativeSpaceMax=q.fontSize*_;b.spaceInFlowMin=q.fontSize*E;b.spaceInFlowMax=q.fontSize*C;b.hasEOL=false;b.initialized=true;return b}function H(){if(!b.initialized){return}const t=Math.hypot(q.textLineMatrix[0],q.textLineMatrix[1]);const e=Math.hypot(q.ctm[0],q.ctm[1]);const i=e*t;if(i===b.textAdvanceScale){return}if(!b.vertical){b.totalWidth+=b.width*b.textAdvanceScale;b.width=0}else{b.totalHeight+=b.height*b.textAdvanceScale;b.height=0}b.textAdvanceScale=i}function z(t){const e=t.str.join("");const i=(0,w.bidi)(e,-1,t.vertical);return{str:i.str,dir:i.dir,width:Math.abs(t.totalWidth),height:Math.abs(t.totalHeight),transform:t.transform,fontName:t.fontName,hasEOL:t.hasEOL}}function V(t,e){return O.loadFont(t,e,s).then((function(t){if(!t.font.isType3Font){return t}return t.loadType3Data(O,s,i).catch((function(){})).then((function(){return t}))})).then((function(t){q.font=t.font;q.fontMatrix=t.font.fontMatrix||n.FONT_IDENTITY_MATRIX}))}function X(t,e,i){const n=Math.hypot(i[0],i[1]);return[(i[0]*t+i[1]*e)/n,(i[2]*t+i[3]*e)/n]}function K(){const t=G();let e=t[4];let i=t[5];const n=e-f[0];const s=i-f[1];if(n<0||n>f[2]||s<0||s>f[3]){return false}if(!o||!q.font||!b.prevTransform){return true}let r=b.prevTransform[4];let a=b.prevTransform[5];if(r===e&&a===i){return true}let c=-1;if(t[0]&&t[1]===0&&t[2]===0){c=t[0]>0?0:180}else if(t[1]&&t[0]===0&&t[3]===0){c=t[1]>0?90:270}switch(c){case 0:break;case 90:[e,i]=[i,e];[r,a]=[a,r];break;case 180:[e,i,r,a]=[-e,-i,-r,-a];break;case 270:[e,i]=[-i,-e];[r,a]=[-a,-r];break;default:[e,i]=X(e,i,t);[r,a]=X(r,a,b.prevTransform)}if(q.font.vertical){const t=(a-i)/b.textAdvanceScale;const n=e-r;const s=Math.sign(b.height);if(t<s*b.negativeSpaceMax){if(Math.abs(n)>.5*b.width){J();return true}x();Z();return true}if(Math.abs(n)>b.width){J();return true}if(t<=s*b.notASpace){x()}if(t<=s*b.trackingSpaceMin){b.height+=t}else if(!Q(t,b.prevTransform,s)){if(b.str.length===0){x();m.items.push({str:" ",dir:"ltr",width:0,height:Math.abs(t),transform:b.prevTransform,fontName:b.fontName,hasEOL:false})}else{b.height+=t}}return true}const l=(e-r)/b.textAdvanceScale;const h=i-a;const u=Math.sign(b.width);if(l<u*b.negativeSpaceMax){if(Math.abs(h)>.5*b.height){J();return true}x();Z();return true}if(Math.abs(h)>b.height){J();return true}if(l<=u*b.notASpace){x()}if(l<=u*b.trackingSpaceMin){b.width+=l}else if(!Q(l,b.prevTransform,u)){if(b.str.length===0){x();m.items.push({str:" ",dir:"ltr",width:Math.abs(l),height:0,transform:b.prevTransform,fontName:b.fontName,hasEOL:false})}else{b.width+=l}}return true}function Y(t){let{chars:e,extraSpacing:i}=t;const n=q.font;if(!e){const t=q.charSpacing+i;if(t){if(!n.vertical){q.translateTextMatrix(t*q.textHScale,0)}else{q.translateTextMatrix(0,-t)}}return}const s=n.charsToGlyphs(e);const r=q.fontMatrix[0]*q.fontSize;for(let t=0,e=s.length;t<e;t++){const a=s[t];if(a.isInvisibleFormatMark){continue}let o=q.charSpacing+(t+1===e?i:0);let c=a.width;if(n.vertical){c=a.vmetric?a.vmetric[0]:-c}let l=c*r;if(a.isWhitespace){if(!n.vertical){o+=l+q.wordSpacing;q.translateTextMatrix(o*q.textHScale,0)}else{o+=-l+q.wordSpacing;q.translateTextMatrix(0,-o)}k(" ");continue}if(!K()){continue}const u=W();if(a.isZeroWidthDiacritic){l=0}if(!n.vertical){l*=q.textHScale;q.translateTextMatrix(l,0);u.width+=l}else{q.translateTextMatrix(0,l);l=Math.abs(l);u.height+=l}if(l){u.prevTransform=G()}let f=a.unicode;f=p[f]||f;f=(0,h.reverseIfRtl)(f);if(k(f)){u.str.push(" ")}u.str.push(f);if(o){if(!n.vertical){q.translateTextMatrix(o*q.textHScale,0)}else{q.translateTextMatrix(0,-o)}}}}function J(){x();if(b.initialized){b.hasEOL=true;Z()}else{m.items.push({str:"",dir:"ltr",width:0,height:0,transform:G(),fontName:q.font.loadedName,hasEOL:true})}}function Q(t,e,i){if(i*b.spaceInFlowMin<=t&&t<=i*b.spaceInFlowMax){if(b.initialized){x();b.str.push(" ")}return false}const n=b.fontName;let s=0;if(b.vertical){s=t;t=0}Z();x();m.items.push({str:" ",dir:"ltr",width:Math.abs(t),height:Math.abs(s),transform:e||G(),fontName:n,hasEOL:false});return true}function Z(){if(!b.initialized||!b.str){return}if(!b.vertical){b.totalWidth+=b.width*b.textAdvanceScale}else{b.totalHeight+=b.height*b.textAdvanceScale}m.items.push(z(b));b.initialized=false;b.str.length=0}function tt(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;const e=m.items.length;if(e===0){return}if(t&&e<T){return}l.enqueue(m,e);m.items=[];m.styles=Object.create(null)}const et=new D;return new Promise((function t(e,h){const p=function(i){tt(true);Promise.all([i,l.ready]).then((function(){try{t(e,h)}catch(t){h(t)}}),h)};i.ensureNotTerminated();et.reset();const g={};let b,w=[];while(!(b=et.check())){w.length=0;g.args=w;if(!$.read(g)){break}q=a.state;const t=g.fn;w=g.args;switch(t|0){case n.OPS.setFont:var y=w[0].name,A=w[1];if(q.font&&y===q.fontName&&A===q.fontSize){break}Z();q.fontName=y;q.fontSize=A;p(V(y,null));return;case n.OPS.setTextRise:q.textRise=w[0];break;case n.OPS.setHScale:q.textHScale=w[0]/100;break;case n.OPS.setLeading:q.leading=w[0];break;case n.OPS.moveText:q.translateTextLineMatrix(w[0],w[1]);q.textMatrix=q.textLineMatrix.slice();break;case n.OPS.setLeadingMoveText:q.leading=-w[1];q.translateTextLineMatrix(w[0],w[1]);q.textMatrix=q.textLineMatrix.slice();break;case n.OPS.nextLine:q.carriageReturn();break;case n.OPS.setTextMatrix:q.setTextMatrix(w[0],w[1],w[2],w[3],w[4],w[5]);q.setTextLineMatrix(w[0],w[1],w[2],w[3],w[4],w[5]);H();break;case n.OPS.setCharSpacing:q.charSpacing=w[0];break;case n.OPS.setWordSpacing:q.wordSpacing=w[0];break;case n.OPS.beginText:q.textMatrix=n.IDENTITY_MATRIX.slice();q.textLineMatrix=n.IDENTITY_MATRIX.slice();break;case n.OPS.showSpacedText:if(!a.state.font){O.ensureStateFont(a.state);continue}const t=(q.font.vertical?1:-1)*q.fontSize/1e3;const e=w[0];for(let i=0,n=e.length;i<n-1;i++){const n=e[i];if(typeof n==="string"){P.push(n)}else if(typeof n==="number"&&n!==0){const e=P.join("");P.length=0;Y({chars:e,extraSpacing:n*t})}}const h=e.at(-1);if(typeof h==="string"){P.push(h)}if(P.length>0){const t=P.join("");P.length=0;Y({chars:t,extraSpacing:0})}break;case n.OPS.showText:if(!a.state.font){O.ensureStateFont(a.state);continue}Y({chars:w[0],extraSpacing:0});break;case n.OPS.nextLineShowText:if(!a.state.font){O.ensureStateFont(a.state);continue}q.carriageReturn();Y({chars:w[0],extraSpacing:0});break;case n.OPS.nextLineSetSpacingShowText:if(!a.state.font){O.ensureStateFont(a.state);continue}q.wordSpacing=w[0];q.charSpacing=w[1];q.carriageReturn();Y({chars:w[2],extraSpacing:0});break;case n.OPS.paintXObject:Z();if(!R){R=s.get("XObject")||r.Dict.empty}var k=w[0]instanceof r.Name;var x=w[0].name;if(k&&N.getByName(x)){break}p(new Promise((function(t,e){if(!k){throw new n.FormatError("XObject must be referred to by name.")}let h=R.getRaw(x);if(h instanceof r.Ref){if(N.getByRef(h)){t();return}const e=O.globalImageCache.getData(h,O.pageIndex);if(e){t();return}h=F.fetch(h)}if(!(h instanceof v.BaseStream)){throw new n.FormatError("XObject should be a stream")}const p=h.dict.get("Subtype");if(!(p instanceof r.Name)){throw new n.FormatError("XObject should have a Name subtype")}if(p.name!=="Form"){N.set(x,h.dict.objId,true);t();return}const m=a.state.clone();const g=new j(m);const b=h.dict.getArray("Matrix");if(Array.isArray(b)&&b.length===6){g.transform(b)}tt();const w={enqueueInvoked:false,enqueue(t,e){this.enqueueInvoked=true;l.enqueue(t,e)},get desiredSize(){return l.desiredSize},get ready(){return l.ready}};O.getTextContent({stream:h,task:i,resources:h.dict.get("Resources")||s,stateManager:g,combineTextItems:o,includeMarkedContent:c,sink:w,seenStyles:u,viewBox:f,markedContentData:d}).then((function(){if(!w.enqueueInvoked){N.set(x,h.dict.objId,true)}t()}),e)})).catch((function(t){if(t instanceof n.AbortException){return}if(O.options.ignoreErrors){(0,n.warn)(`getTextContent - ignoring XObject: "${t}".`);return}throw t})));return;case n.OPS.setGState:k=w[0]instanceof r.Name;x=w[0].name;if(k&&U.getByName(x)){break}p(new Promise((function(t,e){if(!k){throw new n.FormatError("GState must be referred to by name.")}const i=s.get("ExtGState");if(!(i instanceof r.Dict)){throw new n.FormatError("ExtGState should be a dictionary.")}const a=i.get(x);if(!(a instanceof r.Dict)){throw new n.FormatError("GState should be a dictionary.")}const o=a.get("Font");if(!o){U.set(x,a.objId,true);t();return}Z();q.fontName=null;q.fontSize=o[1];V(null,o[0]).then(t,e)})).catch((function(t){if(t instanceof n.AbortException){return}if(O.options.ignoreErrors){(0,n.warn)(`getTextContent - ignoring ExtGState: "${t}".`);return}throw t})));return;case n.OPS.beginMarkedContent:Z();if(c){d.level++;m.items.push({type:"beginMarkedContent",tag:w[0]instanceof r.Name?w[0].name:null})}break;case n.OPS.beginMarkedContentProps:Z();if(c){d.level++;let t=null;if(w[1]instanceof r.Dict){t=w[1].get("MCID")}m.items.push({type:"beginMarkedContentProps",id:Number.isInteger(t)?`${O.idFactory.getPageObjId()}_mcid${t}`:null,tag:w[0]instanceof r.Name?w[0].name:null})}break;case n.OPS.endMarkedContent:Z();if(c){if(d.level===0){break}d.level--;m.items.push({type:"endMarkedContent"})}break}if(m.items.length>=l.desiredSize){b=true;break}}if(b){p(I);return}Z();tt();e()})).catch((t=>{if(t instanceof n.AbortException){return}if(this.options.ignoreErrors){(0,n.warn)(`getTextContent - ignoring errors during "${i.name}" `+`task: "${t}".`);Z();tt();return}throw t}))}extractDataStructures(t,e,i){const s=this.xref;let a;const l=this.readToUnicode(i.toUnicode||t.get("ToUnicode")||e.get("ToUnicode"));if(i.composite){const e=t.get("CIDSystemInfo");if(e instanceof r.Dict){i.cidSystemInfo={registry:(0,n.stringToPDFString)(e.get("Registry")),ordering:(0,n.stringToPDFString)(e.get("Ordering")),supplement:e.get("Supplement")}}try{const e=t.get("CIDToGIDMap");if(e instanceof v.BaseStream){a=e.getBytes()}}catch(t){if(!this.options.ignoreErrors){throw t}(0,n.warn)(`extractDataStructures - ignoring CIDToGIDMap data: "${t}".`)}}const h=[];let u=null;let f;if(t.has("Encoding")){f=t.get("Encoding");if(f instanceof r.Dict){u=f.get("BaseEncoding");u=u instanceof r.Name?u.name:null;if(f.has("Differences")){const t=f.get("Differences");let e=0;for(const i of t){const t=s.fetchIfRef(i);if(typeof t==="number"){e=t}else if(t instanceof r.Name){h[e++]=t.name}else{throw new n.FormatError(`Invalid entry in 'Differences' array: ${t}`)}}}}else if(f instanceof r.Name){u=f.name}else{const t="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors){throw new n.FormatError(t)}(0,n.warn)(t)}if(u!=="MacRomanEncoding"&&u!=="MacExpertEncoding"&&u!=="WinAnsiEncoding"){u=null}}if(u){i.defaultEncoding=(0,c.getEncoding)(u)}else{const t=!!(i.flags&o.FontFlags.Symbolic);const e=!!(i.flags&o.FontFlags.Nonsymbolic);f=c.StandardEncoding;if(i.type==="TrueType"&&!e){f=c.WinAnsiEncoding}if(t){f=c.MacRomanEncoding;if(!i.file||i.isInternalFont){if(/Symbol/i.test(i.name)){f=c.SymbolSetEncoding}else if(/Dingbats|Wingdings/i.test(i.name)){f=c.ZapfDingbatsEncoding}}}i.defaultEncoding=f}i.differences=h;i.baseEncodingName=u;i.hasEncoding=!!u||h.length>0;i.dict=t;return l.then((t=>{i.toUnicode=t;return this.buildToUnicode(i)})).then((t=>{i.toUnicode=t;if(a){i.cidToGidMap=this.readCidToGidMap(a,t)}return i}))}_simpleFontToUnicode(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;(0,n.assert)(!t.composite,"Must be a simple font.");const i=[];const s=t.defaultEncoding.slice();const r=t.baseEncodingName;const a=t.differences;for(const t in a){const e=a[t];if(e===".notdef"){continue}s[t]=e}const o=(0,k.getGlyphsUnicode)();for(const n in s){let a=s[n];if(a===""){continue}let l=o[a];if(l!==undefined){i[n]=String.fromCharCode(l);continue}let u=0;switch(a[0]){case"G":if(a.length===3){u=parseInt(a.substring(1),16)}break;case"g":if(a.length===5){u=parseInt(a.substring(1),16)}break;case"C":case"c":if(a.length>=3&&a.length<=4){const i=a.substring(1);if(e){u=parseInt(i,16);break}u=+i;if(Number.isNaN(u)&&Number.isInteger(parseInt(i,16))){return this._simpleFontToUnicode(t,true)}}break;case"u":l=(0,h.getUnicodeForGlyph)(a,o);if(l!==-1){u=l}break}if(u>0&&u<=1114111&&Number.isInteger(u)){if(r&&u===+n){const t=(0,c.getEncoding)(r);if(t&&(a=t[n])){i[n]=String.fromCharCode(o[a]);continue}}i[n]=String.fromCodePoint(u)}}return i}async buildToUnicode(t){t.hasIncludedToUnicodeMap=!!t.toUnicode&&t.toUnicode.length>0;if(t.hasIncludedToUnicodeMap){if(!t.composite&&t.hasEncoding){t.fallbackToUnicode=this._simpleFontToUnicode(t)}return t.toUnicode}if(!t.composite){return new d.ToUnicodeMap(this._simpleFontToUnicode(t))}if(t.composite&&(t.cMap.builtInCMap&&!(t.cMap instanceof s.IdentityCMap)||t.cidSystemInfo.registry==="Adobe"&&(t.cidSystemInfo.ordering==="GB1"||t.cidSystemInfo.ordering==="CNS1"||t.cidSystemInfo.ordering==="Japan1"||t.cidSystemInfo.ordering==="Korea1"))){const{registry:e,ordering:i}=t.cidSystemInfo;const a=r.Name.get(`${e}-${i}-UCS2`);const o=await s.CMapFactory.create({encoding:a,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});const c=[];t.cMap.forEach((function(t,e){if(e>65535){throw new n.FormatError("Max size of CID is 65,535")}const i=o.lookup(e);if(i){c[t]=String.fromCharCode((i.charCodeAt(0)<<8)+i.charCodeAt(1))}}));return new d.ToUnicodeMap(c)}return new d.IdentityToUnicodeMap(t.firstChar,t.lastChar)}readToUnicode(t){if(!t){return Promise.resolve(null)}if(t instanceof r.Name){return s.CMapFactory.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(t){if(t instanceof s.IdentityCMap){return new d.IdentityToUnicodeMap(0,65535)}return new d.ToUnicodeMap(t.getMap())}))}else if(t instanceof v.BaseStream){return s.CMapFactory.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(t){if(t instanceof s.IdentityCMap){return new d.IdentityToUnicodeMap(0,65535)}const e=new Array(t.length);t.forEach((function(t,i){if(typeof i==="number"){e[t]=String.fromCodePoint(i);return}const n=[];for(let t=0;t<i.length;t+=2){const e=i.charCodeAt(t)<<8|i.charCodeAt(t+1);if((e&63488)!==55296){n.push(e);continue}t+=2;const s=i.charCodeAt(t)<<8|i.charCodeAt(t+1);n.push(((e&1023)<<10)+(s&1023)+65536)}e[t]=String.fromCodePoint(...n)}));return new d.ToUnicodeMap(e)}),(t=>{if(t instanceof n.AbortException){return null}if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorFontToUnicode});(0,n.warn)(`readToUnicode - ignoring ToUnicode data: "${t}".`);return null}throw t}))}return Promise.resolve(null)}readCidToGidMap(t,e){const i=[];for(let n=0,s=t.length;n<s;n++){const s=t[n++]<<8|t[n];const r=n>>1;if(s===0&&!e.has(r)){continue}i[r]=s}return i}extractWidths(t,e,i){const n=this.xref;let s=[];let a=0;const c=[];let l;let h,u,f,d,p,m,g;if(i.composite){a=t.has("DW")?t.get("DW"):1e3;g=t.get("W");if(g){for(h=0,u=g.length;h<u;h++){p=n.fetchIfRef(g[h++]);m=n.fetchIfRef(g[h]);if(Array.isArray(m)){for(f=0,d=m.length;f<d;f++){s[p++]=n.fetchIfRef(m[f])}}else{const t=n.fetchIfRef(g[++h]);for(f=p;f<=m;f++){s[f]=t}}}}if(i.vertical){let e=t.getArray("DW2")||[880,-1e3];l=[e[1],a*.5,e[0]];e=t.get("W2");if(e){for(h=0,u=e.length;h<u;h++){p=n.fetchIfRef(e[h++]);m=n.fetchIfRef(e[h]);if(Array.isArray(m)){for(f=0,d=m.length;f<d;f++){c[p++]=[n.fetchIfRef(m[f++]),n.fetchIfRef(m[f++]),n.fetchIfRef(m[f])]}}else{const t=[n.fetchIfRef(e[++h]),n.fetchIfRef(e[++h]),n.fetchIfRef(e[++h])];for(f=p;f<=m;f++){c[f]=t}}}}}}else{const o=i.firstChar;g=t.get("Widths");if(g){f=o;for(h=0,u=g.length;h<u;h++){s[f++]=n.fetchIfRef(g[h])}a=parseFloat(e.get("MissingWidth"))||0}else{const e=t.get("BaseFont");if(e instanceof r.Name){const t=this.getBaseFontMetrics(e.name);s=this.buildCharCodeToWidth(t.widths,i);a=t.defaultWidth}}}let b=true;let v=a;for(const t in s){const e=s[t];if(!e){continue}if(!v){v=e;continue}if(v!==e){b=false;break}}if(b){i.flags|=o.FontFlags.FixedPitch}i.defaultWidth=a;i.widths=s;i.defaultVMetrics=l;i.vmetrics=c}isSerifFont(t){const e=t.split("-")[0];return e in(0,l.getSerifFonts)()||/serif/gi.test(e)}getBaseFontMetrics(t){let e=0;let i=Object.create(null);let n=false;const s=(0,l.getStdFontMap)();let r=s[t]||t;const a=(0,S.getMetrics)();if(!(r in a)){if(this.isSerifFont(t)){r="Times-Roman"}else{r="Helvetica"}}const o=a[r];if(typeof o==="number"){e=o;n=true}else{i=o()}return{defaultWidth:e,monospace:n,widths:i}}buildCharCodeToWidth(t,e){const i=Object.create(null);const n=e.differences;const s=e.defaultEncoding;for(let e=0;e<256;e++){if(e in n&&t[n[e]]){i[e]=t[n[e]];continue}if(e in s&&t[s[e]]){i[e]=t[s[e]];continue}}return i}preEvaluateFont(t){const e=t;let i=t.get("Subtype");if(!(i instanceof r.Name)){throw new n.FormatError("invalid font Subtype")}let s=false;let a,o;if(i.name==="Type0"){const e=t.get("DescendantFonts");if(!e){throw new n.FormatError("Descendant fonts are not specified")}t=Array.isArray(e)?this.xref.fetchIfRef(e[0]):e;if(!(t instanceof r.Dict)){throw new n.FormatError("Descendant font is not a dictionary.")}i=t.get("Subtype");if(!(i instanceof r.Name)){throw new n.FormatError("invalid font Subtype")}s=true}const c=t.get("FirstChar")||0,l=t.get("LastChar")||(s?65535:255);const h=t.get("FontDescriptor");if(h){a=new M.MurmurHash3_64;const i=e.getRaw("Encoding");if(i instanceof r.Name){a.update(i.name)}else if(i instanceof r.Ref){a.update(i.toString())}else if(i instanceof r.Dict){for(const t of i.getRawValues()){if(t instanceof r.Name){a.update(t.name)}else if(t instanceof r.Ref){a.update(t.toString())}else if(Array.isArray(t)){const e=t.length,i=new Array(e);for(let n=0;n<e;n++){const e=t[n];if(e instanceof r.Name){i[n]=e.name}else if(typeof e==="number"||e instanceof r.Ref){i[n]=e.toString()}}a.update(i.join())}}}a.update(`${c}-${l}`);o=t.get("ToUnicode")||e.get("ToUnicode");if(o instanceof v.BaseStream){const t=o.str||o;const e=t.buffer?new Uint8Array(t.buffer.buffer,0,t.bufferLength):new Uint8Array(t.bytes.buffer,t.start,t.end-t.start);a.update(e)}else if(o instanceof r.Name){a.update(o.name)}const n=t.get("Widths")||e.get("Widths");if(Array.isArray(n)){const t=[];for(const e of n){if(typeof e==="number"||e instanceof r.Ref){t.push(e.toString())}}a.update(t.join())}if(s){a.update("compositeFont");const i=t.get("W")||e.get("W");if(Array.isArray(i)){const t=[];for(const e of i){if(typeof e==="number"||e instanceof r.Ref){t.push(e.toString())}else if(Array.isArray(e)){const i=[];for(const t of e){if(typeof t==="number"||t instanceof r.Ref){i.push(t.toString())}}t.push(`[${i.join()}]`)}}a.update(t.join())}const n=t.getRaw("CIDToGIDMap")||e.getRaw("CIDToGIDMap");if(n instanceof r.Name){a.update(n.name)}else if(n instanceof r.Ref){a.update(n.toString())}else if(n instanceof v.BaseStream){a.update(n.peekBytes())}}}return{descriptor:h,dict:t,baseDict:e,composite:s,type:i.name,firstChar:c,lastChar:l,toUnicode:o,hash:a?a.hexdigest():""}}async translateFont(t){let{descriptor:e,dict:i,baseDict:c,composite:h,type:u,firstChar:d,lastChar:p,toUnicode:m,cssFontInfo:g}=t;const v=u==="Type3";let w;if(!e){if(v){e=new r.Dict(null);e.set("FontName",r.Name.get(u));e.set("FontBBox",i.getArray("FontBBox")||[0,0,0,0])}else{let t=i.get("BaseFont");if(!(t instanceof r.Name)){throw new n.FormatError("Base font is not specified")}t=t.name.replace(/[,_]/g,"-");const e=this.getBaseFontMetrics(t);const s=t.split("-")[0];const h=(this.isSerifFont(s)?o.FontFlags.Serif:0)|(e.monospace?o.FontFlags.FixedPitch:0)|((0,l.getSymbolsFonts)()[s]?o.FontFlags.Symbolic:o.FontFlags.Nonsymbolic);w={type:u,name:t,loadedName:c.loadedName,widths:e.widths,defaultWidth:e.defaultWidth,isSimulatedFlags:true,flags:h,firstChar:d,lastChar:p,toUnicode:m,xHeight:0,capHeight:0,italicAngle:0,isType3Font:v};const f=i.get("Widths");const g=(0,l.getStandardFontName)(t);let b=null;if(g){w.isStandardFont=true;b=await this.fetchStandardFontData(g);w.isInternalFont=!!b}return this.extractDataStructures(i,i,w).then((i=>{if(f){const t=[];let e=d;for(const i of f){t[e++]=this.xref.fetchIfRef(i)}i.widths=t}else{i.widths=this.buildCharCodeToWidth(e.widths,i)}return new a.Font(t,b,i)}))}}let y=e.get("FontName");let A=i.get("BaseFont");if(typeof y==="string"){y=r.Name.get(y)}if(typeof A==="string"){A=r.Name.get(A)}if(!v){const t=y&&y.name;const e=A&&A.name;if(t!==e){(0,n.info)(`The FontDescriptor's FontName is "${t}" but `+`should be the same as the Font's BaseFont "${e}".`);if(t&&e&&e.startsWith(t)){y=A}}}y=y||A;if(!(y instanceof r.Name)){throw new n.FormatError("invalid font name")}let k,x,S,M,_;try{k=e.get("FontFile","FontFile2","FontFile3")}catch(t){if(!this.options.ignoreErrors){throw t}(0,n.warn)(`translateFont - fetching "${y.name}" font file: "${t}".`);k=new b.NullStream}let E=false;let C=false;let O=null;if(k){if(k.dict){const t=k.dict.get("Subtype");if(t instanceof r.Name){x=t.name}S=k.dict.get("Length1");M=k.dict.get("Length2");_=k.dict.get("Length3")}}else if(g){const t=(0,f.getXfaFontName)(y.name);if(t){g.fontFamily=`${g.fontFamily}-PdfJS-XFA`;g.metrics=t.metrics||null;O=t.factors||null;k=await this.fetchStandardFontData(t.name);C=!!k;c=i=(0,f.getXfaFontDict)(y.name);h=true}}else if(!v){const t=(0,l.getStandardFontName)(y.name);if(t){E=true;k=await this.fetchStandardFontData(t);C=!!k}}w={type:u,name:y.name,subtype:x,file:k,length1:S,length2:M,length3:_,isStandardFont:E,isInternalFont:C,loadedName:c.loadedName,composite:h,fixedPitch:false,fontMatrix:i.getArray("FontMatrix")||n.FONT_IDENTITY_MATRIX,firstChar:d,lastChar:p,toUnicode:m,bbox:e.getArray("FontBBox")||i.getArray("FontBBox"),ascent:e.get("Ascent"),descent:e.get("Descent"),xHeight:e.get("XHeight")||0,capHeight:e.get("CapHeight")||0,flags:e.get("Flags"),italicAngle:e.get("ItalicAngle")||0,isType3Font:v,cssFontInfo:g,scaleFactors:O};if(h){const t=c.get("Encoding");if(t instanceof r.Name){w.cidEncoding=t.name}const e=await s.CMapFactory.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});w.cMap=e;w.vertical=w.cMap.vertical}return this.extractDataStructures(i,c,w).then((t=>{this.extractWidths(i,e,t);return new a.Font(y.name,k,t)}))}static buildFontPaths(t,e,i,s){function r(e){const r=`${t.loadedName}_path_${e}`;try{if(t.renderer.hasBuiltPath(e)){return}i.send("commonobj",[r,"FontPath",t.renderer.getPathJs(e)])}catch(t){if(s.ignoreErrors){i.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorFontBuildPath});(0,n.warn)(`buildFontPaths - ignoring ${r} glyph: "${t}".`);return}throw t}}for(const t of e){r(t.fontChar);const e=t.accent;if(e&&e.fontChar){r(e.fontChar)}}}static get fallbackFontDict(){const t=new r.Dict;t.set("BaseFont",r.Name.get("PDFJS-FallbackFont"));t.set("Type",r.Name.get("FallbackType"));t.set("Subtype",r.Name.get("FallbackType"));t.set("Encoding",r.Name.get("WinAnsiEncoding"));return(0,n.shadow)(this,"fallbackFontDict",t)}}e.PartialEvaluator=R;class N{constructor(t){let{loadedName:e,font:i,dict:n,evaluatorOptions:s}=t;this.loadedName=e;this.font=i;this.dict=n;this._evaluatorOptions=s||C;this.type3Loaded=null;this.type3Dependencies=i.isType3Font?new Set:null;this.sent=false}send(t){if(this.sent){return}this.sent=true;t.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)])}fallback(t){if(!this.font.data){return}this.font.disableFontFace=true;R.buildFontPaths(this.font,this.font.glyphCacheValues,t,this._evaluatorOptions)}loadType3Data(t,e,i){if(this.type3Loaded){return this.type3Loaded}if(!this.font.isType3Font){throw new Error("Must be a Type3 font.")}const s=t.clone({ignoreErrors:false});s.parsingType3Font=true;const a=new r.RefSet(t.type3FontRefs);if(this.dict.objId&&!a.has(this.dict.objId)){a.put(this.dict.objId)}s.type3FontRefs=a;const o=this.font,c=this.type3Dependencies;let l=Promise.resolve();const h=this.dict.get("CharProcs");const u=this.dict.get("Resources")||e;const f=Object.create(null);const d=n.Util.normalizeRect(o.bbox||[0,0,0,0]),p=d[2]-d[0],m=d[3]-d[1];const g=Math.hypot(p,m);for(const t of h.getKeys()){l=l.then((()=>{const e=h.get(t);const r=new _.OperatorList;return s.getOperatorList({stream:e,task:i,resources:u,operatorList:r}).then((()=>{if(r.fnArray[0]===n.OPS.setCharWidthAndBounds){this._removeType3ColorOperators(r,g)}f[t]=r.getIR();for(const t of r.dependencies){c.add(t)}})).catch((function(e){(0,n.warn)(`Type3 font resource "${t}" is not available.`);const i=new _.OperatorList;f[t]=i.getIR()}))}))}this.type3Loaded=l.then((()=>{o.charProcOperatorList=f;if(this._bbox){o.isCharBBox=true;o.bbox=this._bbox}}));return this.type3Loaded}_removeType3ColorOperators(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:NaN;const i=n.Util.normalizeRect(t.argsArray[0].slice(2)),s=i[2]-i[0],r=i[3]-i[1];const a=Math.hypot(s,r);if(s===0||r===0){t.fnArray.splice(0,1);t.argsArray.splice(0,1)}else if(e===0||Math.round(a/e)>=10){if(!this._bbox){this._bbox=[Infinity,Infinity,-Infinity,-Infinity]}this._bbox[0]=Math.min(this._bbox[0],i[0]);this._bbox[1]=Math.min(this._bbox[1],i[1]);this._bbox[2]=Math.max(this._bbox[2],i[2]);this._bbox[3]=Math.max(this._bbox[3],i[3])}let o=0,c=t.length;while(o<c){switch(t.fnArray[o]){case n.OPS.setCharWidthAndBounds:break;case n.OPS.setStrokeColorSpace:case n.OPS.setFillColorSpace:case n.OPS.setStrokeColor:case n.OPS.setStrokeColorN:case n.OPS.setFillColor:case n.OPS.setFillColorN:case n.OPS.setStrokeGray:case n.OPS.setFillGray:case n.OPS.setStrokeRGBColor:case n.OPS.setFillRGBColor:case n.OPS.setStrokeCMYKColor:case n.OPS.setFillCMYKColor:case n.OPS.shadingFill:case n.OPS.setRenderingIntent:t.fnArray.splice(o,1);t.argsArray.splice(o,1);c--;continue;case n.OPS.setGState:const[e]=t.argsArray[o];let i=0,s=e.length;while(i<s){const[t]=e[i];switch(t){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":e.splice(i,1);s--;continue}i++}break}o++}}}class j{constructor(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:new U;this.state=t;this.stateStack=[]}save(){const t=this.state;this.stateStack.push(this.state);this.state=t.clone()}restore(){const t=this.stateStack.pop();if(t){this.state=t}}transform(t){this.state.ctm=n.Util.transform(this.state.ctm,t)}}class L{constructor(){this.ctm=new Float32Array(n.IDENTITY_MATRIX);this.fontName=null;this.fontSize=0;this.font=null;this.fontMatrix=n.FONT_IDENTITY_MATRIX;this.textMatrix=n.IDENTITY_MATRIX.slice();this.textLineMatrix=n.IDENTITY_MATRIX.slice();this.charSpacing=0;this.wordSpacing=0;this.leading=0;this.textHScale=1;this.textRise=0}setTextMatrix(t,e,i,n,s,r){const a=this.textMatrix;a[0]=t;a[1]=e;a[2]=i;a[3]=n;a[4]=s;a[5]=r}setTextLineMatrix(t,e,i,n,s,r){const a=this.textLineMatrix;a[0]=t;a[1]=e;a[2]=i;a[3]=n;a[4]=s;a[5]=r}translateTextMatrix(t,e){const i=this.textMatrix;i[4]=i[0]*t+i[2]*e+i[4];i[5]=i[1]*t+i[3]*e+i[5]}translateTextLineMatrix(t,e){const i=this.textLineMatrix;i[4]=i[0]*t+i[2]*e+i[4];i[5]=i[1]*t+i[3]*e+i[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading);this.textMatrix=this.textLineMatrix.slice()}clone(){const t=Object.create(this);t.textMatrix=this.textMatrix.slice();t.textLineMatrix=this.textLineMatrix.slice();t.fontMatrix=this.fontMatrix.slice();return t}}class U{constructor(){this.ctm=new Float32Array(n.IDENTITY_MATRIX);this.font=null;this.textRenderingMode=n.TextRenderingMode.FILL;this.fillColorSpace=y.ColorSpace.singletons.gray;this.strokeColorSpace=y.ColorSpace.singletons.gray}clone(){return Object.create(this)}}class B{static get opMap(){const t=(0,x.getLookupTableFactory)((function(t){t.w={id:n.OPS.setLineWidth,numArgs:1,variableArgs:false};t.J={id:n.OPS.setLineCap,numArgs:1,variableArgs:false};t.j={id:n.OPS.setLineJoin,numArgs:1,variableArgs:false};t.M={id:n.OPS.setMiterLimit,numArgs:1,variableArgs:false};t.d={id:n.OPS.setDash,numArgs:2,variableArgs:false};t.ri={id:n.OPS.setRenderingIntent,numArgs:1,variableArgs:false};t.i={id:n.OPS.setFlatness,numArgs:1,variableArgs:false};t.gs={id:n.OPS.setGState,numArgs:1,variableArgs:false};t.q={id:n.OPS.save,numArgs:0,variableArgs:false};t.Q={id:n.OPS.restore,numArgs:0,variableArgs:false};t.cm={id:n.OPS.transform,numArgs:6,variableArgs:false};t.m={id:n.OPS.moveTo,numArgs:2,variableArgs:false};t.l={id:n.OPS.lineTo,numArgs:2,variableArgs:false};t.c={id:n.OPS.curveTo,numArgs:6,variableArgs:false};t.v={id:n.OPS.curveTo2,numArgs:4,variableArgs:false};t.y={id:n.OPS.curveTo3,numArgs:4,variableArgs:false};t.h={id:n.OPS.closePath,numArgs:0,variableArgs:false};t.re={id:n.OPS.rectangle,numArgs:4,variableArgs:false};t.S={id:n.OPS.stroke,numArgs:0,variableArgs:false};t.s={id:n.OPS.closeStroke,numArgs:0,variableArgs:false};t.f={id:n.OPS.fill,numArgs:0,variableArgs:false};t.F={id:n.OPS.fill,numArgs:0,variableArgs:false};t["f*"]={id:n.OPS.eoFill,numArgs:0,variableArgs:false};t.B={id:n.OPS.fillStroke,numArgs:0,variableArgs:false};t["B*"]={id:n.OPS.eoFillStroke,numArgs:0,variableArgs:false};t.b={id:n.OPS.closeFillStroke,numArgs:0,variableArgs:false};t["b*"]={id:n.OPS.closeEOFillStroke,numArgs:0,variableArgs:false};t.n={id:n.OPS.endPath,numArgs:0,variableArgs:false};t.W={id:n.OPS.clip,numArgs:0,variableArgs:false};t["W*"]={id:n.OPS.eoClip,numArgs:0,variableArgs:false};t.BT={id:n.OPS.beginText,numArgs:0,variableArgs:false};t.ET={id:n.OPS.endText,numArgs:0,variableArgs:false};t.Tc={id:n.OPS.setCharSpacing,numArgs:1,variableArgs:false};t.Tw={id:n.OPS.setWordSpacing,numArgs:1,variableArgs:false};t.Tz={id:n.OPS.setHScale,numArgs:1,variableArgs:false};t.TL={id:n.OPS.setLeading,numArgs:1,variableArgs:false};t.Tf={id:n.OPS.setFont,numArgs:2,variableArgs:false};t.Tr={id:n.OPS.setTextRenderingMode,numArgs:1,variableArgs:false};t.Ts={id:n.OPS.setTextRise,numArgs:1,variableArgs:false};t.Td={id:n.OPS.moveText,numArgs:2,variableArgs:false};t.TD={id:n.OPS.setLeadingMoveText,numArgs:2,variableArgs:false};t.Tm={id:n.OPS.setTextMatrix,numArgs:6,variableArgs:false};t["T*"]={id:n.OPS.nextLine,numArgs:0,variableArgs:false};t.Tj={id:n.OPS.showText,numArgs:1,variableArgs:false};t.TJ={id:n.OPS.showSpacedText,numArgs:1,variableArgs:false};t["'"]={id:n.OPS.nextLineShowText,numArgs:1,variableArgs:false};t['"']={id:n.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:false};t.d0={id:n.OPS.setCharWidth,numArgs:2,variableArgs:false};t.d1={id:n.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:false};t.CS={id:n.OPS.setStrokeColorSpace,numArgs:1,variableArgs:false};t.cs={id:n.OPS.setFillColorSpace,numArgs:1,variableArgs:false};t.SC={id:n.OPS.setStrokeColor,numArgs:4,variableArgs:true};t.SCN={id:n.OPS.setStrokeColorN,numArgs:33,variableArgs:true};t.sc={id:n.OPS.setFillColor,numArgs:4,variableArgs:true};t.scn={id:n.OPS.setFillColorN,numArgs:33,variableArgs:true};t.G={id:n.OPS.setStrokeGray,numArgs:1,variableArgs:false};t.g={id:n.OPS.setFillGray,numArgs:1,variableArgs:false};t.RG={id:n.OPS.setStrokeRGBColor,numArgs:3,variableArgs:false};t.rg={id:n.OPS.setFillRGBColor,numArgs:3,variableArgs:false};t.K={id:n.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:false};t.k={id:n.OPS.setFillCMYKColor,numArgs:4,variableArgs:false};t.sh={id:n.OPS.shadingFill,numArgs:1,variableArgs:false};t.BI={id:n.OPS.beginInlineImage,numArgs:0,variableArgs:false};t.ID={id:n.OPS.beginImageData,numArgs:0,variableArgs:false};t.EI={id:n.OPS.endInlineImage,numArgs:1,variableArgs:false};t.Do={id:n.OPS.paintXObject,numArgs:1,variableArgs:false};t.MP={id:n.OPS.markPoint,numArgs:1,variableArgs:false};t.DP={id:n.OPS.markPointProps,numArgs:2,variableArgs:false};t.BMC={id:n.OPS.beginMarkedContent,numArgs:1,variableArgs:false};t.BDC={id:n.OPS.beginMarkedContentProps,numArgs:2,variableArgs:false};t.EMC={id:n.OPS.endMarkedContent,numArgs:0,variableArgs:false};t.BX={id:n.OPS.beginCompat,numArgs:0,variableArgs:false};t.EX={id:n.OPS.endCompat,numArgs:0,variableArgs:false};t.BM=null;t.BD=null;t.true=null;t.fa=null;t.fal=null;t.fals=null;t.false=null;t.nu=null;t.nul=null;t.null=null}));return(0,n.shadow)(this,"opMap",t())}static get MAX_INVALID_PATH_OPS(){return(0,n.shadow)(this,"MAX_INVALID_PATH_OPS",10)}constructor(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:new j;this.parser=new m.Parser({lexer:new m.Lexer(t,B.opMap),xref:e});this.stateManager=i;this.nonProcessedArgs=[];this._isPathOp=false;this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(t){let e=t.args;while(true){const i=this.parser.getObj();if(i instanceof r.Cmd){const s=i.cmd;const r=B.opMap[s];if(!r){(0,n.warn)(`Unknown command "${s}".`);continue}const a=r.id;const o=r.numArgs;let c=e!==null?e.length:0;if(!this._isPathOp){this._numInvalidPathOPS=0}this._isPathOp=a>=n.OPS.moveTo&&a<=n.OPS.endPath;if(!r.variableArgs){if(c!==o){const t=this.nonProcessedArgs;while(c>o){t.push(e.shift());c--}while(c<o&&t.length!==0){if(e===null){e=[]}e.unshift(t.pop());c++}}if(c<o){const t=`command ${s}: expected ${o} args, `+`but received ${c} args.`;if(this._isPathOp&&++this._numInvalidPathOPS>B.MAX_INVALID_PATH_OPS){throw new n.FormatError(`Invalid ${t}`)}(0,n.warn)(`Skipping ${t}`);if(e!==null){e.length=0}continue}}else if(c>o){(0,n.info)(`Command ${s}: expected [0, ${o}] args, `+`but received ${c} args.`)}this.preprocessCommand(a,e);t.fn=a;t.args=e;return true}if(i===r.EOF){return false}if(i!==null){if(e===null){e=[]}e.push(i);if(e.length>33){throw new n.FormatError("Too many arguments")}}}}preprocessCommand(t,e){switch(t|0){case n.OPS.save:this.stateManager.save();break;case n.OPS.restore:this.stateManager.restore();break;case n.OPS.transform:this.stateManager.transform(e);break}}}e.EvaluatorPreprocessor=B},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.IdentityCMap=e.CMapFactory=e.CMap=void 0;var n=i(2);var s=i(134);var r=i(136);var a=i(146);var o=i(135);var c=i(139);const l=["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"];const h=2**24-1;class u{constructor(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;this.codespaceRanges=[[],[],[],[]];this.numCodespaceRanges=0;this._map=[];this.name="";this.vertical=false;this.useCMap=null;this.builtInCMap=t}addCodespaceRange(t,e,i){this.codespaceRanges[t-1].push(e,i);this.numCodespaceRanges++}mapCidRange(t,e,i){if(e-t>h){throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.")}while(t<=e){this._map[t++]=i++}}mapBfRange(t,e,i){if(e-t>h){throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.")}const n=i.length-1;while(t<=e){this._map[t++]=i;const e=i.charCodeAt(n)+1;if(e>255){i=i.substring(0,n-1)+String.fromCharCode(i.charCodeAt(n-1)+1)+"\0";continue}i=i.substring(0,n)+String.fromCharCode(e)}}mapBfRangeToArray(t,e,i){if(e-t>h){throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.")}const n=i.length;let s=0;while(t<=e&&s<n){this._map[t]=i[s++];++t}}mapOne(t,e){this._map[t]=e}lookup(t){return this._map[t]}contains(t){return this._map[t]!==undefined}forEach(t){const e=this._map;const i=e.length;if(i<=65536){for(let n=0;n<i;n++){if(e[n]!==undefined){t(n,e[n])}}}else{for(const i in e){t(i,e[i])}}}charCodeOf(t){const e=this._map;if(e.length<=65536){return e.indexOf(t)}for(const i in e){if(e[i]===t){return i|0}}return-1}getMap(){return this._map}readCharCode(t,e,i){let n=0;const s=this.codespaceRanges;for(let r=0,a=s.length;r<a;r++){n=(n<<8|t.charCodeAt(e+r))>>>0;const a=s[r];for(let t=0,e=a.length;t<e;){const e=a[t++];const s=a[t++];if(n>=e&&n<=s){i.charcode=n;i.length=r+1;return}}}i.charcode=0;i.length=1}getCharCodeLength(t){const e=this.codespaceRanges;for(let i=0,n=e.length;i<n;i++){const n=e[i];for(let e=0,s=n.length;e<s;){const s=n[e++];const r=n[e++];if(t>=s&&t<=r){return i+1}}}return 1}get length(){return this._map.length}get isIdentityCMap(){if(!(this.name==="Identity-H"||this.name==="Identity-V")){return false}if(this._map.length!==65536){return false}for(let t=0;t<65536;t++){if(this._map[t]!==t){return false}}return true}}e.CMap=u;class f extends u{constructor(t,e){super();this.vertical=t;this.addCodespaceRange(e,0,65535)}mapCidRange(t,e,i){(0,n.unreachable)("should not call mapCidRange")}mapBfRange(t,e,i){(0,n.unreachable)("should not call mapBfRange")}mapBfRangeToArray(t,e,i){(0,n.unreachable)("should not call mapBfRangeToArray")}mapOne(t,e){(0,n.unreachable)("should not call mapCidOne")}lookup(t){return Number.isInteger(t)&&t<=65535?t:undefined}contains(t){return Number.isInteger(t)&&t<=65535}forEach(t){for(let e=0;e<=65535;e++){t(e,e)}}charCodeOf(t){return Number.isInteger(t)&&t<=65535?t:-1}getMap(){const t=new Array(65536);for(let e=0;e<=65535;e++){t[e]=e}return t}get length(){return 65536}get isIdentityCMap(){(0,n.unreachable)("should not access .isIdentityCMap")}}e.IdentityCMap=f;const d=function t(){function e(t,e){let i=0;for(let n=0;n<=e;n++){i=i<<8|t[n]}return i>>>0}function i(t,e){if(e===1){return String.fromCharCode(t[0],t[1])}if(e===3){return String.fromCharCode(t[0],t[1],t[2],t[3])}return String.fromCharCode.apply(null,t.subarray(0,e+1))}function s(t,e,i){let n=0;for(let s=i;s>=0;s--){n+=t[s]+e[s];t[s]=n&255;n>>=8}}function r(t,e){let i=1;for(let n=e;n>=0&&i>0;n--){i+=t[n];t[n]=i&255;i>>=8}}const a=16;const o=19;class c{constructor(t){this.buffer=t;this.pos=0;this.end=t.length;this.tmpBuf=new Uint8Array(o)}readByte(){if(this.pos>=this.end){return-1}return this.buffer[this.pos++]}readNumber(){let t=0;let e;do{const i=this.readByte();if(i<0){throw new n.FormatError("unexpected EOF in bcmap")}e=!(i&128);t=t<<7|i&127}while(!e);return t}readSigned(){const t=this.readNumber();return t&1?~(t>>>1):t>>>1}readHex(t,e){t.set(this.buffer.subarray(this.pos,this.pos+e+1));this.pos+=e+1}readHexNumber(t,e){let i;const s=this.tmpBuf;let r=0;do{const t=this.readByte();if(t<0){throw new n.FormatError("unexpected EOF in bcmap")}i=!(t&128);s[r++]=t&127}while(!i);let a=e,o=0,c=0;while(a>=0){while(c<8&&s.length>0){o|=s[--r]<<c;c+=7}t[a]=o&255;a--;o>>=8;c-=8}}readHexSigned(t,e){this.readHexNumber(t,e);const i=t[e]&1?255:0;let n=0;for(let s=0;s<=e;s++){n=(n&1)<<8|t[s];t[s]=n>>1^i}}readString(){const t=this.readNumber();let e="";for(let i=0;i<t;i++){e+=String.fromCharCode(this.readNumber())}return e}}class l{async process(t,n,o){const l=new c(t);const h=l.readByte();n.vertical=!!(h&1);let u=null;const f=new Uint8Array(a);const d=new Uint8Array(a);const p=new Uint8Array(a);const m=new Uint8Array(a);const g=new Uint8Array(a);let b;let v;while((v=l.readByte())>=0){const t=v>>5;if(t===7){switch(v&31){case 0:l.readString();break;case 1:u=l.readString();break}continue}const o=!!(v&16);const c=v&15;if(c+1>a){throw new Error("BinaryCMapReader.process: Invalid dataSize.")}const h=1;const w=l.readNumber();switch(t){case 0:l.readHex(f,c);l.readHexNumber(d,c);s(d,f,c);n.addCodespaceRange(c+1,e(f,c),e(d,c));for(let t=1;t<w;t++){r(d,c);l.readHexNumber(f,c);s(f,d,c);l.readHexNumber(d,c);s(d,f,c);n.addCodespaceRange(c+1,e(f,c),e(d,c))}break;case 1:l.readHex(f,c);l.readHexNumber(d,c);s(d,f,c);l.readNumber();for(let t=1;t<w;t++){r(d,c);l.readHexNumber(f,c);s(f,d,c);l.readHexNumber(d,c);s(d,f,c);l.readNumber()}break;case 2:l.readHex(p,c);b=l.readNumber();n.mapOne(e(p,c),b);for(let t=1;t<w;t++){r(p,c);if(!o){l.readHexNumber(g,c);s(p,g,c)}b=l.readSigned()+(b+1);n.mapOne(e(p,c),b)}break;case 3:l.readHex(f,c);l.readHexNumber(d,c);s(d,f,c);b=l.readNumber();n.mapCidRange(e(f,c),e(d,c),b);for(let t=1;t<w;t++){r(d,c);if(!o){l.readHexNumber(f,c);s(f,d,c)}else{f.set(d)}l.readHexNumber(d,c);s(d,f,c);b=l.readNumber();n.mapCidRange(e(f,c),e(d,c),b)}break;case 4:l.readHex(p,h);l.readHex(m,c);n.mapOne(e(p,h),i(m,c));for(let t=1;t<w;t++){r(p,h);if(!o){l.readHexNumber(g,h);s(p,g,h)}r(m,c);l.readHexSigned(g,c);s(m,g,c);n.mapOne(e(p,h),i(m,c))}break;case 5:l.readHex(f,h);l.readHexNumber(d,h);s(d,f,h);l.readHex(m,c);n.mapBfRange(e(f,h),e(d,h),i(m,c));for(let t=1;t<w;t++){r(d,h);if(!o){l.readHexNumber(f,h);s(f,d,h)}else{f.set(d)}l.readHexNumber(d,h);s(d,f,h);l.readHex(m,c);n.mapBfRange(e(f,h),e(d,h),i(m,c))}break;default:throw new Error(`BinaryCMapReader.process - unknown type: ${t}`)}}if(u){return o(u)}return n}}return l}();const p=function t(){function e(t){let e=0;for(let i=0;i<t.length;i++){e=e<<8|t.charCodeAt(i)}return e>>>0}function i(t){if(typeof t!=="string"){throw new n.FormatError("Malformed CMap: expected string.")}}function h(t){if(!Number.isInteger(t)){throw new n.FormatError("Malformed CMap: expected int.")}}function p(t,n){while(true){let r=n.getObj();if(r===s.EOF){break}if((0,s.isCmd)(r,"endbfchar")){return}i(r);const a=e(r);r=n.getObj();i(r);const o=r;t.mapOne(a,o)}}function m(t,r){while(true){let n=r.getObj();if(n===s.EOF){break}if((0,s.isCmd)(n,"endbfrange")){return}i(n);const a=e(n);n=r.getObj();i(n);const o=e(n);n=r.getObj();if(Number.isInteger(n)||typeof n==="string"){const e=Number.isInteger(n)?String.fromCharCode(n):n;t.mapBfRange(a,o,e)}else if((0,s.isCmd)(n,"[")){n=r.getObj();const e=[];while(!(0,s.isCmd)(n,"]")&&n!==s.EOF){e.push(n);n=r.getObj()}t.mapBfRangeToArray(a,o,e)}else{break}}throw new n.FormatError("Invalid bf range.")}function g(t,n){while(true){let r=n.getObj();if(r===s.EOF){break}if((0,s.isCmd)(r,"endcidchar")){return}i(r);const a=e(r);r=n.getObj();h(r);const o=r;t.mapOne(a,o)}}function b(t,n){while(true){let r=n.getObj();if(r===s.EOF){break}if((0,s.isCmd)(r,"endcidrange")){return}i(r);const a=e(r);r=n.getObj();i(r);const o=e(r);r=n.getObj();h(r);const c=r;t.mapCidRange(a,o,c)}}function v(t,i){while(true){let n=i.getObj();if(n===s.EOF){break}if((0,s.isCmd)(n,"endcodespacerange")){return}if(typeof n!=="string"){break}const r=e(n);n=i.getObj();if(typeof n!=="string"){break}const a=e(n);t.addCodespaceRange(n.length,r,a)}throw new n.FormatError("Invalid codespace range.")}function w(t,e){const i=e.getObj();if(Number.isInteger(i)){t.vertical=!!i}}function y(t,e){const i=e.getObj();if(i instanceof s.Name){t.name=i.name}}async function A(t,e,i,r){let a,c;t:while(true){try{const i=e.getObj();if(i===s.EOF){break}else if(i instanceof s.Name){if(i.name==="WMode"){w(t,e)}else if(i.name==="CMapName"){y(t,e)}a=i}else if(i instanceof s.Cmd){switch(i.cmd){case"endcmap":break t;case"usecmap":if(a instanceof s.Name){c=a.name}break;case"begincodespacerange":v(t,e);break;case"beginbfchar":p(t,e);break;case"begincidchar":g(t,e);break;case"beginbfrange":m(t,e);break;case"begincidrange":b(t,e);break}}}catch(t){if(t instanceof o.MissingDataException){throw t}(0,n.warn)("Invalid cMap data: "+t);continue}}if(!r&&c){r=c}if(r){return k(t,i,r)}return t}async function k(t,e,i){t.useCMap=await x(i,e);if(t.numCodespaceRanges===0){const e=t.useCMap.codespaceRanges;for(let i=0;i<e.length;i++){t.codespaceRanges[i]=e[i].slice()}t.numCodespaceRanges=t.useCMap.numCodespaceRanges}t.useCMap.forEach((function(e,i){if(!t.contains(e)){t.mapOne(e,t.useCMap.lookup(e))}}));return t}async function x(t,e){if(t==="Identity-H"){return new f(false,2)}else if(t==="Identity-V"){return new f(true,2)}if(!l.includes(t)){throw new Error("Unknown CMap name: "+t)}if(!e){throw new Error("Built-in CMap parameters are not provided.")}const{cMapData:i,compressionType:s}=await e(t);const r=new u(true);if(s===n.CMapCompressionType.BINARY){return(new d).process(i,r,(t=>k(r,e,t)))}if(s===n.CMapCompressionType.NONE){const t=new a.Lexer(new c.Stream(i));return A(r,t,e,null)}throw new Error(`Invalid CMap "compressionType" value: ${s}`)}return{async create(t){const e=t.encoding;const i=t.fetchBuiltInCMap;const n=t.useCMap;if(e instanceof s.Name){return x(e.name,i)}else if(e instanceof r.BaseStream){const t=await A(new u,new a.Lexer(e),i,n);if(t.isIdentityCMap){return x(t.name,i)}return t}throw new Error("Encoding required.")}}}();e.CMapFactory=p},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.Parser=e.Linearization=e.Lexer=void 0;var n=i(2);var s=i(134);var r=i(135);var a=i(147);var o=i(149);var c=i(150);var l=i(152);var h=i(153);var u=i(156);var f=i(158);var d=i(160);var p=i(139);var m=i(161);var g=i(162);const b=1e3;const v=5552;function w(t){const e=t.length;let i=1,n=0;for(let s=0;s<e;++s){i+=t[s]&255;n+=i}return n%65521<<16|i%65521}class y{constructor(t){let{lexer:e,xref:i,allowStreams:n=false,recoveryMode:s=false}=t;this.lexer=e;this.xref=i;this.allowStreams=n;this.recoveryMode=s;this.imageCache=Object.create(null);this.refill()}refill(){this.buf1=this.lexer.getObj();this.buf2=this.lexer.getObj()}shift(){if(this.buf2 instanceof s.Cmd&&this.buf2.cmd==="ID"){this.buf1=this.buf2;this.buf2=null}else{this.buf1=this.buf2;this.buf2=this.lexer.getObj()}}tryShift(){try{this.shift();return true}catch(t){if(t instanceof r.MissingDataException){throw t}return false}}getObj(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;const e=this.buf1;this.shift();if(e instanceof s.Cmd){switch(e.cmd){case"BI":return this.makeInlineImage(t);case"[":const i=[];while(!(0,s.isCmd)(this.buf1,"]")&&this.buf1!==s.EOF){i.push(this.getObj(t))}if(this.buf1===s.EOF){if(this.recoveryMode){return i}throw new r.ParserEOFException("End of file inside array.")}this.shift();return i;case"<<":const a=new s.Dict(this.xref);while(!(0,s.isCmd)(this.buf1,">>")&&this.buf1!==s.EOF){if(!(this.buf1 instanceof s.Name)){(0,n.info)("Malformed dictionary: key must be a name object");this.shift();continue}const e=this.buf1.name;this.shift();if(this.buf1===s.EOF){break}a.set(e,this.getObj(t))}if(this.buf1===s.EOF){if(this.recoveryMode){return a}throw new r.ParserEOFException("End of file inside dictionary.")}if((0,s.isCmd)(this.buf2,"stream")){return this.allowStreams?this.makeStream(a,t):a}this.shift();return a;default:return e}}if(Number.isInteger(e)){if(Number.isInteger(this.buf1)&&(0,s.isCmd)(this.buf2,"R")){const t=s.Ref.get(e,this.buf1);this.shift();this.shift();return t}return e}if(typeof e==="string"){if(t){return t.decryptString(e)}return e}return e}findDefaultInlineStreamEnd(t){const e=69,i=73,a=32,o=10,c=13,l=0;const h=this.lexer,u=t.pos,f=10;let d=0,p,m;while((p=t.getByte())!==-1){if(d===0){d=p===e?1:0}else if(d===1){d=p===i?2:0}else{(0,n.assert)(d===2,"findDefaultInlineStreamEnd - invalid state.");if(p===a||p===o||p===c){m=t.pos;const e=t.peekBytes(f);for(let t=0,i=e.length;t<i;t++){p=e[t];if(p===l&&e[t+1]!==l){continue}if(p!==o&&p!==c&&(p<a||p>127)){d=0;break}}if(d!==2){continue}if(h.knownCommands){const t=h.peekObj();if(t instanceof s.Cmd&&!h.knownCommands[t.cmd]){d=0}}else{(0,n.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.")}if(d===2){break}}else{d=0}}}if(p===-1){(0,n.warn)("findDefaultInlineStreamEnd: "+"Reached the end of the stream without finding a valid EI marker");if(m){(0,n.warn)('... trying to recover by using the last "EI" occurrence.');t.skip(-(t.pos-m))}}let g=4;t.skip(-g);p=t.peekByte();t.skip(g);if(!(0,r.isWhiteSpace)(p)){g--}return t.pos-g-u}findDCTDecodeInlineStreamEnd(t){const e=t.pos;let i=false,s,r;while((s=t.getByte())!==-1){if(s!==255){continue}switch(t.getByte()){case 0:break;case 255:t.skip(-1);break;case 217:i=true;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:r=t.getUint16();if(r>2){t.skip(r-2)}else{t.skip(-2)}break}if(i){break}}const a=t.pos-e;if(s===-1){(0,n.warn)("Inline DCTDecode image stream: "+"EOI marker not found, searching for /EI/ instead.");t.skip(-a);return this.findDefaultInlineStreamEnd(t)}this.inlineStreamSkipEI(t);return a}findASCII85DecodeInlineStreamEnd(t){const e=126,i=62;const s=t.pos;let a;while((a=t.getByte())!==-1){if(a===e){const e=t.pos;a=t.peekByte();while((0,r.isWhiteSpace)(a)){t.skip();a=t.peekByte()}if(a===i){t.skip();break}if(t.pos>e){const e=t.peekBytes(2);if(e[0]===69&&e[1]===73){break}}}}const o=t.pos-s;if(a===-1){(0,n.warn)("Inline ASCII85Decode image stream: "+"EOD marker not found, searching for /EI/ instead.");t.skip(-o);return this.findDefaultInlineStreamEnd(t)}this.inlineStreamSkipEI(t);return o}findASCIIHexDecodeInlineStreamEnd(t){const e=62;const i=t.pos;let s;while((s=t.getByte())!==-1){if(s===e){break}}const r=t.pos-i;if(s===-1){(0,n.warn)("Inline ASCIIHexDecode image stream: "+"EOD marker not found, searching for /EI/ instead.");t.skip(-r);return this.findDefaultInlineStreamEnd(t)}this.inlineStreamSkipEI(t);return r}inlineStreamSkipEI(t){const e=69,i=73;let n=0,s;while((s=t.getByte())!==-1){if(n===0){n=s===e?1:0}else if(n===1){n=s===i?2:0}else if(n===2){break}}}makeInlineImage(t){const e=this.lexer;const i=e.stream;const r=new s.Dict(this.xref);let a;while(!(0,s.isCmd)(this.buf1,"ID")&&this.buf1!==s.EOF){if(!(this.buf1 instanceof s.Name)){throw new n.FormatError("Dictionary key must be a name object")}const e=this.buf1.name;this.shift();if(this.buf1===s.EOF){break}r.set(e,this.getObj(t))}if(e.beginInlineImagePos!==-1){a=i.pos-e.beginInlineImagePos}const o=r.get("F","Filter");let c;if(o instanceof s.Name){c=o.name}else if(Array.isArray(o)){const t=this.xref.fetchIfRef(o[0]);if(t instanceof s.Name){c=t.name}}const l=i.pos;let h;switch(c){case"DCT":case"DCTDecode":h=this.findDCTDecodeInlineStreamEnd(i);break;case"A85":case"ASCII85Decode":h=this.findASCII85DecodeInlineStreamEnd(i);break;case"AHx":case"ASCIIHexDecode":h=this.findASCIIHexDecodeInlineStreamEnd(i);break;default:h=this.findDefaultInlineStreamEnd(i)}let u=i.makeSubStream(l,h,r);let f;if(h<b&&a<v){const t=u.getBytes();u.reset();const n=i.pos;i.pos=e.beginInlineImagePos;const r=i.getBytes(a);i.pos=n;f=w(t)+"_"+w(r);const o=this.imageCache[f];if(o!==undefined){this.buf2=s.Cmd.get("EI");this.shift();o.reset();return o}}if(t){u=t.createStream(u,h)}u=this.filter(u,r,h);u.dict=r;if(f!==undefined){u.cacheKey=`inline_${h}_${f}`;this.imageCache[f]=u}this.buf2=s.Cmd.get("EI");this.shift();return u}_findStreamLength(t,e){const{stream:i}=this.lexer;i.pos=t;const n=2048;const s=e.length;while(i.pos<i.end){const r=i.peekBytes(n);const a=r.length-s;if(a<=0){break}let o=0;while(o<a){let n=0;while(n<s&&r[o+n]===e[n]){n++}if(n>=s){i.pos+=o;return i.pos-t}o++}i.pos+=a}return-1}makeStream(t,e){const i=this.lexer;let a=i.stream;i.skipToNextLine();const o=a.pos-1;let c=t.get("Length");if(!Number.isInteger(c)){(0,n.info)(`Bad length "${c&&c.toString()}" in stream.`);c=0}a.pos=o+c;i.nextChar();if(this.tryShift()&&(0,s.isCmd)(this.buf2,"endstream")){this.shift()}else{const t=new Uint8Array([101,110,100,115,116,114,101,97,109]);let e=this._findStreamLength(o,t);if(e<0){const i=1;for(let s=1;s<=i;s++){const i=t.length-s;const c=t.slice(0,i);const l=this._findStreamLength(o,c);if(l>=0){const t=a.peekBytes(i+1)[i];if(!(0,r.isWhiteSpace)(t)){break}(0,n.info)(`Found "${(0,n.bytesToString)(c)}" when `+"searching for endstream command.");e=l;break}}if(e<0){throw new n.FormatError("Missing endstream command.")}}c=e;i.nextChar();this.shift();this.shift()}this.shift();a=a.makeSubStream(o,c,t);if(e){a=e.createStream(a,c)}a=this.filter(a,t,c);a.dict=t;return a}filter(t,e,i){let r=e.get("F","Filter");let a=e.get("DP","DecodeParms");if(r instanceof s.Name){if(Array.isArray(a)){(0,n.warn)("/DecodeParms should not be an Array, when /Filter is a Name.")}return this.makeFilter(t,r.name,i,a)}let o=i;if(Array.isArray(r)){const e=r;const i=a;for(let c=0,l=e.length;c<l;++c){r=this.xref.fetchIfRef(e[c]);if(!(r instanceof s.Name)){throw new n.FormatError(`Bad filter name "${r}"`)}a=null;if(Array.isArray(i)&&c in i){a=this.xref.fetchIfRef(i[c])}t=this.makeFilter(t,r.name,o,a);o=null}}return t}makeFilter(t,e,i,s){if(i===0){(0,n.warn)(`Empty "${e}" stream.`);return new p.NullStream}const b=this.xref.stats;try{switch(e){case"Fl":case"FlateDecode":b.addStreamType(n.StreamType.FLATE);if(s){return new m.PredictorStream(new l.FlateStream(t,i),i,s)}return new l.FlateStream(t,i);case"LZW":case"LZWDecode":b.addStreamType(n.StreamType.LZW);let e=1;if(s){if(s.has("EarlyChange")){e=s.get("EarlyChange")}return new m.PredictorStream(new d.LZWStream(t,i,e),i,s)}return new d.LZWStream(t,i,e);case"DCT":case"DCTDecode":b.addStreamType(n.StreamType.DCT);return new u.JpegStream(t,i,s);case"JPX":case"JPXDecode":b.addStreamType(n.StreamType.JPX);return new f.JpxStream(t,i,s);case"A85":case"ASCII85Decode":b.addStreamType(n.StreamType.A85);return new a.Ascii85Stream(t,i);case"AHx":case"ASCIIHexDecode":b.addStreamType(n.StreamType.AHX);return new o.AsciiHexStream(t,i);case"CCF":case"CCITTFaxDecode":b.addStreamType(n.StreamType.CCF);return new c.CCITTFaxStream(t,i,s);case"RL":case"RunLengthDecode":b.addStreamType(n.StreamType.RLX);return new g.RunLengthStream(t,i);case"JBIG2Decode":b.addStreamType(n.StreamType.JBIG);return new h.Jbig2Stream(t,i,s)}(0,n.warn)(`Filter "${e}" is not supported.`);return t}catch(t){if(t instanceof r.MissingDataException){throw t}(0,n.warn)(`Invalid stream: "${t}"`);return new p.NullStream}}}e.Parser=y;const A=[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 k(t){if(t>=48&&t<=57){return t&15}if(t>=65&&t<=70||t>=97&&t<=102){return(t&15)+9}return-1}class x{constructor(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;this.stream=t;this.nextChar();this.strBuf=[];this.knownCommands=e;this._hexStringNumWarn=0;this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let t=this.currentChar;let e=false;let i=0;let s=0;if(t===45){s=-1;t=this.nextChar();if(t===45){t=this.nextChar()}}else if(t===43){s=1;t=this.nextChar()}if(t===10||t===13){do{t=this.nextChar()}while(t===10||t===13)}if(t===46){i=10;t=this.nextChar()}if(t<48||t>57){const e=`Invalid number: ${String.fromCharCode(t)} (charCode ${t})`;if((0,r.isWhiteSpace)(t)||t===-1){(0,n.info)(`Lexer.getNumber - "${e}".`);return 0}throw new n.FormatError(e)}s=s||1;let a=t-48;let o=0;let c=1;while((t=this.nextChar())>=0){if(t>=48&&t<=57){const n=t-48;if(e){o=o*10+n}else{if(i!==0){i*=10}a=a*10+n}}else if(t===46){if(i===0){i=1}else{break}}else if(t===45){(0,n.warn)("Badly formatted number: minus sign in the middle")}else if(t===69||t===101){t=this.peekChar();if(t===43||t===45){c=t===45?-1:1;this.nextChar()}else if(t<48||t>57){break}e=true}else{break}}if(i!==0){a/=i}if(e){a*=10**(c*o)}return s*a}getString(){let t=1;let e=false;const i=this.strBuf;i.length=0;let s=this.nextChar();while(true){let r=false;switch(s|0){case-1:(0,n.warn)("Unterminated string");e=true;break;case 40:++t;i.push("(");break;case 41:if(--t===0){this.nextChar();e=true}else{i.push(")")}break;case 92:s=this.nextChar();switch(s){case-1:(0,n.warn)("Unterminated string");e=true;break;case 110:i.push("\n");break;case 114:i.push("\r");break;case 116:i.push("\t");break;case 98:i.push("\b");break;case 102:i.push("\f");break;case 92:case 40:case 41:i.push(String.fromCharCode(s));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let t=s&15;s=this.nextChar();r=true;if(s>=48&&s<=55){t=(t<<3)+(s&15);s=this.nextChar();if(s>=48&&s<=55){r=false;t=(t<<3)+(s&15)}}i.push(String.fromCharCode(t));break;case 13:if(this.peekChar()===10){this.nextChar()}break;case 10:break;default:i.push(String.fromCharCode(s));break}break;default:i.push(String.fromCharCode(s));break}if(e){break}if(!r){s=this.nextChar()}}return i.join("")}getName(){let t,e;const i=this.strBuf;i.length=0;while((t=this.nextChar())>=0&&!A[t]){if(t===35){t=this.nextChar();if(A[t]){(0,n.warn)("Lexer_getName: "+"NUMBER SIGN (#) should be followed by a hexadecimal number.");i.push("#");break}const s=k(t);if(s!==-1){e=t;t=this.nextChar();const r=k(t);if(r===-1){(0,n.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(t)}) `+"in hexadecimal number.");i.push("#",String.fromCharCode(e));if(A[t]){break}i.push(String.fromCharCode(t));continue}i.push(String.fromCharCode(s<<4|r))}else{i.push("#",String.fromCharCode(t))}}else{i.push(String.fromCharCode(t))}}if(i.length>127){(0,n.warn)(`Name token is longer than allowed by the spec: ${i.length}`)}return s.Name.get(i.join(""))}_hexStringWarn(t){const e=5;if(this._hexStringNumWarn++===e){(0,n.warn)("getHexString - ignoring additional invalid characters.");return}if(this._hexStringNumWarn>e){return}(0,n.warn)(`getHexString - ignoring invalid character: ${t}`)}getHexString(){const t=this.strBuf;t.length=0;let e=this.currentChar;let i=true;let s,r;this._hexStringNumWarn=0;while(true){if(e<0){(0,n.warn)("Unterminated hex string");break}else if(e===62){this.nextChar();break}else if(A[e]===1){e=this.nextChar();continue}else{if(i){s=k(e);if(s===-1){this._hexStringWarn(e);e=this.nextChar();continue}}else{r=k(e);if(r===-1){this._hexStringWarn(e);e=this.nextChar();continue}t.push(String.fromCharCode(s<<4|r))}i=!i;e=this.nextChar()}}return t.join("")}getObj(){let t=false;let e=this.currentChar;while(true){if(e<0){return s.EOF}if(t){if(e===10||e===13){t=false}}else if(e===37){t=true}else if(A[e]!==1){break}e=this.nextChar()}switch(e|0){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:this.nextChar();return s.Cmd.get("[");case 93:this.nextChar();return s.Cmd.get("]");case 60:e=this.nextChar();if(e===60){this.nextChar();return s.Cmd.get("<<")}return this.getHexString();case 62:e=this.nextChar();if(e===62){this.nextChar();return s.Cmd.get(">>")}return s.Cmd.get(">");case 123:this.nextChar();return s.Cmd.get("{");case 125:this.nextChar();return s.Cmd.get("}");case 41:this.nextChar();throw new n.FormatError(`Illegal character: ${e}`)}let i=String.fromCharCode(e);if(e<32||e>127){const t=this.peekChar();if(t>=32&&t<=127){this.nextChar();return s.Cmd.get(i)}}const r=this.knownCommands;let a=r&&r[i]!==undefined;while((e=this.nextChar())>=0&&!A[e]){const t=i+String.fromCharCode(e);if(a&&r[t]===undefined){break}if(i.length===128){throw new n.FormatError(`Command token too long: ${i.length}`)}i=t;a=r&&r[i]!==undefined}if(i==="true"){return true}if(i==="false"){return false}if(i==="null"){return null}if(i==="BI"){this.beginInlineImagePos=this.stream.pos}return s.Cmd.get(i)}peekObj(){const t=this.stream.pos,e=this.currentChar,i=this.beginInlineImagePos;let s;try{s=this.getObj()}catch(t){if(t instanceof r.MissingDataException){throw t}(0,n.warn)(`peekObj: ${t}`)}this.stream.pos=t;this.currentChar=e;this.beginInlineImagePos=i;return s}skipToNextLine(){let t=this.currentChar;while(t>=0){if(t===13){t=this.nextChar();if(t===10){this.nextChar()}break}else if(t===10){this.nextChar();break}t=this.nextChar()}}}e.Lexer=x;class S{static create(t){function e(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;const n=t.get(e);if(Number.isInteger(n)&&(i?n>=0:n>0)){return n}throw new Error(`The "${e}" parameter in the linearization `+"dictionary is invalid.")}function i(t){const e=t.get("H");let i;if(Array.isArray(e)&&((i=e.length)===2||i===4)){for(let t=0;t<i;t++){const i=e[t];if(!(Number.isInteger(i)&&i>0)){throw new Error(`Hint (${t}) in the linearization dictionary is invalid.`)}}return e}throw new Error("Hint array in the linearization dictionary is invalid.")}const n=new y({lexer:new x(t),xref:null});const r=n.getObj();const a=n.getObj();const o=n.getObj();const c=n.getObj();let l,h;if(!(Number.isInteger(r)&&Number.isInteger(a)&&(0,s.isCmd)(o,"obj")&&c instanceof s.Dict&&typeof(l=c.get("Linearized"))==="number"&&l>0)){return null}else if((h=e(c,"L"))!==t.length){throw new Error('The "L" parameter in the linearization dictionary '+"does not equal the stream length.")}return{length:h,hints:i(c),objectNumberFirst:e(c,"O"),endFirst:e(c,"E"),numPages:e(c,"N"),mainXRefEntriesOffset:e(c,"T"),pageFirst:c.has("P")?e(c,"P",true):0}}}e.Linearization=S},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.Ascii85Stream=void 0;var n=i(148);var s=i(135);class r extends n.DecodeStream{constructor(t,e){if(e){e*=.8}super(e);this.str=t;this.dict=t.dict;this.input=new Uint8Array(5)}readBlock(){const t=126;const e=122;const i=-1;const n=this.str;let r=n.getByte();while((0,s.isWhiteSpace)(r)){r=n.getByte()}if(r===i||r===t){this.eof=true;return}const a=this.bufferLength;let o,c;if(r===e){o=this.ensureBuffer(a+4);for(c=0;c<4;++c){o[a+c]=0}this.bufferLength+=4}else{const e=this.input;e[0]=r;for(c=1;c<5;++c){r=n.getByte();while((0,s.isWhiteSpace)(r)){r=n.getByte()}e[c]=r;if(r===i||r===t){break}}o=this.ensureBuffer(a+c-1);this.bufferLength+=c-1;if(c<5){for(;c<5;++c){e[c]=33+84}this.eof=true}let l=0;for(c=0;c<5;++c){l=l*85+(e[c]-33)}for(c=3;c>=0;--c){o[a+c]=l&255;l>>=8}}}}e.Ascii85Stream=r},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.StreamsSequenceStream=e.DecodeStream=void 0;var n=i(136);var s=i(139);const r=new Uint8Array(0);class a extends n.BaseStream{constructor(t){super();this._rawMinBufferLength=t||0;this.pos=0;this.bufferLength=0;this.eof=false;this.buffer=r;this.minBufferLength=512;if(t){while(this.minBufferLength<t){this.minBufferLength*=2}}}get isEmpty(){while(!this.eof&&this.bufferLength===0){this.readBlock()}return this.bufferLength===0}ensureBuffer(t){const e=this.buffer;if(t<=e.byteLength){return e}let i=this.minBufferLength;while(i<t){i*=2}const n=new Uint8Array(i);n.set(e);return this.buffer=n}getByte(){const t=this.pos;while(this.bufferLength<=t){if(this.eof){return-1}this.readBlock()}return this.buffer[this.pos++]}getBytes(t){const e=this.pos;let i;if(t){this.ensureBuffer(e+t);i=e+t;while(!this.eof&&this.bufferLength<i){this.readBlock()}const n=this.bufferLength;if(i>n){i=n}}else{while(!this.eof){this.readBlock()}i=this.bufferLength}this.pos=i;return this.buffer.subarray(e,i)}reset(){this.pos=0}makeSubStream(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;if(e===undefined){while(!this.eof){this.readBlock()}}else{const i=t+e;while(this.bufferLength<=i&&!this.eof){this.readBlock()}}return new s.Stream(this.buffer,t,e,i)}getBaseStreams(){return this.str?this.str.getBaseStreams():null}}e.DecodeStream=a;class o extends a{constructor(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;let i=0;for(const e of t){i+=e instanceof a?e._rawMinBufferLength:e.length}super(i);this.streams=t;this._onError=e}readBlock(){const t=this.streams;if(t.length===0){this.eof=true;return}const e=t.shift();let i;try{i=e.getBytes()}catch(t){if(this._onError){this._onError(t,e.dict&&e.dict.objId);return}throw t}const n=this.bufferLength;const s=n+i.length;const r=this.ensureBuffer(s);r.set(i,n);this.bufferLength=s}getBaseStreams(){const t=[];for(const e of this.streams){const i=e.getBaseStreams();if(i){t.push(...i)}}return t.length>0?t:null}}e.StreamsSequenceStream=o},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.AsciiHexStream=void 0;var n=i(148);class s extends n.DecodeStream{constructor(t,e){if(e){e*=.5}super(e);this.str=t;this.dict=t.dict;this.firstDigit=-1}readBlock(){const t=8e3;const e=this.str.getBytes(t);if(!e.length){this.eof=true;return}const i=e.length+1>>1;const n=this.ensureBuffer(this.bufferLength+i);let s=this.bufferLength;let r=this.firstDigit;for(const t of e){let e;if(t>=48&&t<=57){e=t&15}else if(t>=65&&t<=70||t>=97&&t<=102){e=(t&15)+9}else if(t===62){this.eof=true;break}else{continue}if(r<0){r=e}else{n[s++]=r<<4|e;r=-1}}if(r>=0&&this.eof){n[s++]=r<<4;r=-1}this.firstDigit=r;this.bufferLength=s}}e.AsciiHexStream=s},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.CCITTFaxStream=void 0;var n=i(151);var s=i(148);var r=i(134);class a extends s.DecodeStream{constructor(t,e,i){super(e);this.str=t;this.dict=t.dict;if(!(i instanceof r.Dict)){i=r.Dict.empty}const s={next(){return t.getByte()}};this.ccittFaxDecoder=new n.CCITTFaxDecoder(s,{K:i.get("K"),EndOfLine:i.get("EndOfLine"),EncodedByteAlign:i.get("EncodedByteAlign"),Columns:i.get("Columns"),Rows:i.get("Rows"),EndOfBlock:i.get("EndOfBlock"),BlackIs1:i.get("BlackIs1")})}readBlock(){while(!this.eof){const t=this.ccittFaxDecoder.readNextChar();if(t===-1){this.eof=true;return}this.ensureBuffer(this.bufferLength+1);this.buffer[this.bufferLength++]=t}}}e.CCITTFaxStream=a},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.CCITTFaxDecoder=void 0;var n=i(2);const s=-2;const r=-1;const a=0;const o=1;const c=2;const l=3;const h=4;const u=5;const f=6;const d=7;const p=8;const m=[[-1,-1],[-1,-1],[7,p],[7,d],[6,f],[6,f],[6,u],[6,u],[4,a],[4,a],[4,a],[4,a],[4,a],[4,a],[4,a],[4,a],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c]];const g=[[-1,-1],[12,s],[-1,-1],[-1,-1],[-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]];const b=[[-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]];const v=[[-1,-1],[-1,-1],[12,s],[12,s],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-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]];const w=[[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]];const y=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];class A{constructor(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(!t||typeof t.next!=="function"){throw new Error('CCITTFaxDecoder - invalid "source" parameter.')}this.source=t;this.eof=false;this.encoding=e.K||0;this.eoline=e.EndOfLine||false;this.byteAlign=e.EncodedByteAlign||false;this.columns=e.Columns||1728;this.rows=e.Rows||0;let i=e.EndOfBlock;if(i===null||i===undefined){i=true}this.eoblock=i;this.black=e.BlackIs1||false;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=false;let n;while((n=this._lookBits(12))===0){this._eatBits(1)}if(n===1){this._eatBits(12)}if(this.encoding>0){this.nextLine2D=!this._lookBits(1);this._eatBits(1)}}readNextChar(){if(this.eof){return-1}const t=this.refLine;const e=this.codingLine;const i=this.columns;let s,m,g,b;if(this.outputBits===0){if(this.rowsDone){this.eof=true}if(this.eof){return-1}this.err=false;let g,v,w;if(this.nextLine2D){for(b=0;e[b]<i;++b){t[b]=e[b]}t[b++]=i;t[b]=i;e[0]=0;this.codingPos=0;s=0;m=0;while(e[this.codingPos]<i){g=this._getTwoDimCode();switch(g){case a:this._addPixels(t[s+1],m);if(t[s+1]<i){s+=2}break;case o:g=v=0;if(m){do{g+=w=this._getBlackCode()}while(w>=64);do{v+=w=this._getWhiteCode()}while(w>=64)}else{do{g+=w=this._getWhiteCode()}while(w>=64);do{v+=w=this._getBlackCode()}while(w>=64)}this._addPixels(e[this.codingPos]+g,m);if(e[this.codingPos]<i){this._addPixels(e[this.codingPos]+v,m^1)}while(t[s]<=e[this.codingPos]&&t[s]<i){s+=2}break;case d:this._addPixels(t[s]+3,m);m^=1;if(e[this.codingPos]<i){++s;while(t[s]<=e[this.codingPos]&&t[s]<i){s+=2}}break;case u:this._addPixels(t[s]+2,m);m^=1;if(e[this.codingPos]<i){++s;while(t[s]<=e[this.codingPos]&&t[s]<i){s+=2}}break;case l:this._addPixels(t[s]+1,m);m^=1;if(e[this.codingPos]<i){++s;while(t[s]<=e[this.codingPos]&&t[s]<i){s+=2}}break;case c:this._addPixels(t[s],m);m^=1;if(e[this.codingPos]<i){++s;while(t[s]<=e[this.codingPos]&&t[s]<i){s+=2}}break;case p:this._addPixelsNeg(t[s]-3,m);m^=1;if(e[this.codingPos]<i){if(s>0){--s}else{++s}while(t[s]<=e[this.codingPos]&&t[s]<i){s+=2}}break;case f:this._addPixelsNeg(t[s]-2,m);m^=1;if(e[this.codingPos]<i){if(s>0){--s}else{++s}while(t[s]<=e[this.codingPos]&&t[s]<i){s+=2}}break;case h:this._addPixelsNeg(t[s]-1,m);m^=1;if(e[this.codingPos]<i){if(s>0){--s}else{++s}while(t[s]<=e[this.codingPos]&&t[s]<i){s+=2}}break;case r:this._addPixels(i,0);this.eof=true;break;default:(0,n.info)("bad 2d code");this._addPixels(i,0);this.err=true}}}else{e[0]=0;this.codingPos=0;m=0;while(e[this.codingPos]<i){g=0;if(m){do{g+=w=this._getBlackCode()}while(w>=64)}else{do{g+=w=this._getWhiteCode()}while(w>=64)}this._addPixels(e[this.codingPos]+g,m);m^=1}}let y=false;if(this.byteAlign){this.inputBits&=~7}if(!this.eoblock&&this.row===this.rows-1){this.rowsDone=true}else{g=this._lookBits(12);if(this.eoline){while(g!==r&&g!==1){this._eatBits(1);g=this._lookBits(12)}}else{while(g===0){this._eatBits(1);g=this._lookBits(12)}}if(g===1){this._eatBits(12);y=true}else if(g===r){this.eof=true}}if(!this.eof&&this.encoding>0&&!this.rowsDone){this.nextLine2D=!this._lookBits(1);this._eatBits(1)}if(this.eoblock&&y&&this.byteAlign){g=this._lookBits(12);if(g===1){this._eatBits(12);if(this.encoding>0){this._lookBits(1);this._eatBits(1)}if(this.encoding>=0){for(b=0;b<4;++b){g=this._lookBits(12);if(g!==1){(0,n.info)("bad rtc code: "+g)}this._eatBits(12);if(this.encoding>0){this._lookBits(1);this._eatBits(1)}}}this.eof=true}}else if(this.err&&this.eoline){while(true){g=this._lookBits(13);if(g===r){this.eof=true;return-1}if(g>>1===1){break}this._eatBits(1)}this._eatBits(12);if(this.encoding>0){this._eatBits(1);this.nextLine2D=!(g&1)}}if(e[0]>0){this.outputBits=e[this.codingPos=0]}else{this.outputBits=e[this.codingPos=1]}this.row++}let v;if(this.outputBits>=8){v=this.codingPos&1?0:255;this.outputBits-=8;if(this.outputBits===0&&e[this.codingPos]<i){this.codingPos++;this.outputBits=e[this.codingPos]-e[this.codingPos-1]}}else{g=8;v=0;do{if(typeof this.outputBits!=="number"){throw new n.FormatError('Invalid /CCITTFaxDecode data, "outputBits" must be a number.')}if(this.outputBits>g){v<<=g;if(!(this.codingPos&1)){v|=255>>8-g}this.outputBits-=g;g=0}else{v<<=this.outputBits;if(!(this.codingPos&1)){v|=255>>8-this.outputBits}g-=this.outputBits;this.outputBits=0;if(e[this.codingPos]<i){this.codingPos++;this.outputBits=e[this.codingPos]-e[this.codingPos-1]}else if(g>0){v<<=g;g=0}}}while(g)}if(this.black){v^=255}return v}_addPixels(t,e){const i=this.codingLine;let s=this.codingPos;if(t>i[s]){if(t>this.columns){(0,n.info)("row is wrong length");this.err=true;t=this.columns}if(s&1^e){++s}i[s]=t}this.codingPos=s}_addPixelsNeg(t,e){const i=this.codingLine;let s=this.codingPos;if(t>i[s]){if(t>this.columns){(0,n.info)("row is wrong length");this.err=true;t=this.columns}if(s&1^e){++s}i[s]=t}else if(t<i[s]){if(t<0){(0,n.info)("invalid code");this.err=true;t=0}while(s>0&&t<i[s-1]){--s}i[s]=t}this.codingPos=s}_findTableCode(t,e,i,n){const s=n||0;for(let n=t;n<=e;++n){let t=this._lookBits(n);if(t===r){return[true,1,false]}if(n<e){t<<=e-n}if(!s||t>=s){const e=i[t-s];if(e[0]===n){this._eatBits(n);return[true,e[1],true]}}}return[false,0,false]}_getTwoDimCode(){let t=0;let e;if(this.eoblock){t=this._lookBits(7);e=m[t];if(e&&e[0]>0){this._eatBits(e[0]);return e[1]}}else{const t=this._findTableCode(1,7,m);if(t[0]&&t[2]){return t[1]}}(0,n.info)("Bad two dim code");return r}_getWhiteCode(){let t=0;let e;if(this.eoblock){t=this._lookBits(12);if(t===r){return 1}if(t>>5===0){e=g[t]}else{e=b[t>>3]}if(e[0]>0){this._eatBits(e[0]);return e[1]}}else{let t=this._findTableCode(1,9,b);if(t[0]){return t[1]}t=this._findTableCode(11,12,g);if(t[0]){return t[1]}}(0,n.info)("bad white code");this._eatBits(1);return 1}_getBlackCode(){let t,e;if(this.eoblock){t=this._lookBits(13);if(t===r){return 1}if(t>>7===0){e=v[t]}else if(t>>9===0&&t>>7!==0){e=w[(t>>1)-64]}else{e=y[t>>7]}if(e[0]>0){this._eatBits(e[0]);return e[1]}}else{let t=this._findTableCode(2,6,y);if(t[0]){return t[1]}t=this._findTableCode(7,12,w,64);if(t[0]){return t[1]}t=this._findTableCode(10,13,v);if(t[0]){return t[1]}}(0,n.info)("bad black code");this._eatBits(1);return 1}_lookBits(t){let e;while(this.inputBits<t){if((e=this.source.next())===-1){if(this.inputBits===0){return r}return this.inputBuf<<t-this.inputBits&65535>>16-t}this.inputBuf=this.inputBuf<<8|e;this.inputBits+=8}return this.inputBuf>>this.inputBits-t&65535>>16-t}_eatBits(t){if((this.inputBits-=t)<0){this.inputBits=0}}}e.CCITTFaxDecoder=A},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.FlateStream=void 0;var n=i(148);var s=i(2);const r=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);const a=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]);const o=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]);const c=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9];const l=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];class h extends n.DecodeStream{constructor(t,e){super(e);this.str=t;this.dict=t.dict;const i=t.getByte();const n=t.getByte();if(i===-1||n===-1){throw new s.FormatError(`Invalid header in flate stream: ${i}, ${n}`)}if((i&15)!==8){throw new s.FormatError(`Unknown compression method in flate stream: ${i}, ${n}`)}if(((i<<8)+n)%31!==0){throw new s.FormatError(`Bad FCHECK in flate stream: ${i}, ${n}`)}if(n&32){throw new s.FormatError(`FDICT bit set in flate stream: ${i}, ${n}`)}this.codeSize=0;this.codeBuf=0}getBits(t){const e=this.str;let i=this.codeSize;let n=this.codeBuf;let r;while(i<t){if((r=e.getByte())===-1){throw new s.FormatError("Bad encoding in flate stream")}n|=r<<i;i+=8}r=n&(1<<t)-1;this.codeBuf=n>>t;this.codeSize=i-=t;return r}getCode(t){const e=this.str;const i=t[0];const n=t[1];let r=this.codeSize;let a=this.codeBuf;let o;while(r<n){if((o=e.getByte())===-1){break}a|=o<<r;r+=8}const c=i[a&(1<<n)-1];const l=c>>16;const h=c&65535;if(l<1||r<l){throw new s.FormatError("Bad encoding in flate stream")}this.codeBuf=a>>l;this.codeSize=r-l;return h}generateHuffmanTable(t){const e=t.length;let i=0;let n;for(n=0;n<e;++n){if(t[n]>i){i=t[n]}}const s=1<<i;const r=new Int32Array(s);for(let a=1,o=0,c=2;a<=i;++a,o<<=1,c<<=1){for(let i=0;i<e;++i){if(t[i]===a){let t=0;let e=o;for(n=0;n<a;++n){t=t<<1|e&1;e>>=1}for(n=t;n<s;n+=c){r[n]=a<<16|i}++o}}}return[r,i]}readBlock(){let t,e;const i=this.str;let n=this.getBits(3);if(n&1){this.eof=true}n>>=1;if(n===0){let e;if((e=i.getByte())===-1){throw new s.FormatError("Bad block header in flate stream")}let n=e;if((e=i.getByte())===-1){throw new s.FormatError("Bad block header in flate stream")}n|=e<<8;if((e=i.getByte())===-1){throw new s.FormatError("Bad block header in flate stream")}let r=e;if((e=i.getByte())===-1){throw new s.FormatError("Bad block header in flate stream")}r|=e<<8;if(r!==(~n&65535)&&(n!==0||r!==0)){throw new s.FormatError("Bad uncompressed block length in flate stream")}this.codeBuf=0;this.codeSize=0;const a=this.bufferLength,o=a+n;t=this.ensureBuffer(o);this.bufferLength=o;if(n===0){if(i.peekByte()===-1){this.eof=true}}else{const e=i.getBytes(n);t.set(e,a);if(e.length<n){this.eof=true}}return}let h;let u;if(n===1){h=c;u=l}else if(n===2){const t=this.getBits(5)+257;const i=this.getBits(5)+1;const n=this.getBits(4)+4;const s=new Uint8Array(r.length);let a;for(a=0;a<n;++a){s[r[a]]=this.getBits(3)}const o=this.generateHuffmanTable(s);e=0;a=0;const c=t+i;const l=new Uint8Array(c);let f,d,p;while(a<c){const t=this.getCode(o);if(t===16){f=2;d=3;p=e}else if(t===17){f=3;d=3;p=e=0}else if(t===18){f=7;d=11;p=e=0}else{l[a++]=e=t;continue}let i=this.getBits(f)+d;while(i-- >0){l[a++]=p}}h=this.generateHuffmanTable(l.subarray(0,t));u=this.generateHuffmanTable(l.subarray(t,c))}else{throw new s.FormatError("Unknown block type in flate stream")}t=this.buffer;let f=t?t.length:0;let d=this.bufferLength;while(true){let i=this.getCode(h);if(i<256){if(d+1>=f){t=this.ensureBuffer(d+1);f=t.length}t[d++]=i;continue}if(i===256){this.bufferLength=d;return}i-=257;i=a[i];let n=i>>16;if(n>0){n=this.getBits(n)}e=(i&65535)+n;i=this.getCode(u);i=o[i];n=i>>16;if(n>0){n=this.getBits(n)}const s=(i&65535)+n;if(d+e>=f){t=this.ensureBuffer(d+e);f=t.length}for(let i=0;i<e;++i,++d){t[d]=t[d-s]}}}}e.FlateStream=h},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.Jbig2Stream=void 0;var n=i(136);var s=i(148);var r=i(134);var a=i(154);var o=i(2);class c extends s.DecodeStream{constructor(t,e,i){super(e);this.stream=t;this.dict=t.dict;this.maybeLength=e;this.params=i}get bytes(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(t){}readBlock(){if(this.eof){return}const t=new a.Jbig2Image;const e=[];if(this.params instanceof r.Dict){const t=this.params.get("JBIG2Globals");if(t instanceof n.BaseStream){const i=t.getBytes();e.push({data:i,start:0,end:i.length})}}e.push({data:this.bytes,start:0,end:this.bytes.length});const i=t.parseChunks(e);const s=i.length;for(let t=0;t<s;t++){i[t]^=255}this.buffer=i;this.bufferLength=s;this.eof=true}}e.Jbig2Stream=c},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.Jbig2Image=void 0;var n=i(2);var s=i(135);var r=i(155);var a=i(151);class o extends n.BaseException{constructor(t){super(`JBIG2 error: ${t}`,"Jbig2Error")}}class c{getContexts(t){if(t in this){return this[t]}return this[t]=new Int8Array(1<<16)}}class l{constructor(t,e,i){this.data=t;this.start=e;this.end=i}get decoder(){const t=new r.ArithmeticDecoder(this.data,this.start,this.end);return(0,n.shadow)(this,"decoder",t)}get contextCache(){const t=new c;return(0,n.shadow)(this,"contextCache",t)}}function h(t,e,i){const n=t.getContexts(e);let s=1;function r(t){let e=0;for(let r=0;r<t;r++){const t=i.readBit(n,s);s=s<256?s<<1|t:(s<<1|t)&511|256;e=e<<1|t}return e>>>0}const a=r(1);const o=r(1)?r(1)?r(1)?r(1)?r(1)?r(32)+4436:r(12)+340:r(8)+84:r(6)+20:r(4)+4:r(2);if(a===0){return o}else if(o>0){return-o}return null}function u(t,e,i){const n=t.getContexts("IAID");let s=1;for(let t=0;t<i;t++){const t=e.readBit(n,s);s=s<<1|t}if(i<31){return s&(1<<i)-1}return s&2147483647}const f=["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"];const d=[[{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}]];const p=[{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}]}];const m=[39717,1941,229,405];const g=[32,8];function b(t,e,i){const n=i.decoder;const s=i.contextCache.getContexts("GB");const r=[];let a,o,c,l,h,u,f;const d=31735;for(o=0;o<e;o++){h=r[o]=new Uint8Array(t);u=o<1?h:r[o-1];f=o<2?h:r[o-2];a=f[0]<<13|f[1]<<12|f[2]<<11|u[0]<<7|u[1]<<6|u[2]<<5|u[3]<<4;for(c=0;c<t;c++){h[c]=l=n.readBit(s,a);a=(a&d)<<1|(c+3<t?f[c+3]<<11:0)|(c+4<t?u[c+4]<<4:0)|l}}return r}function v(t,e,i,n,s,r,a,o){if(t){const t=new L(o.data,o.start,o.end);return G(t,e,i,false)}if(n===0&&!r&&!s&&a.length===4&&a[0].x===3&&a[0].y===-1&&a[1].x===-3&&a[1].y===-1&&a[2].x===2&&a[2].y===-2&&a[3].x===-2&&a[3].y===-2){return b(e,i,o)}const c=!!r;const l=d[n].concat(a);l.sort((function(t,e){return t.y-e.y||t.x-e.x}));const h=l.length;const u=new Int8Array(h);const f=new Int8Array(h);const p=[];let g=0,v=0,w=0,y=0;let A,k;for(k=0;k<h;k++){u[k]=l[k].x;f[k]=l[k].y;v=Math.min(v,l[k].x);w=Math.max(w,l[k].x);y=Math.min(y,l[k].y);if(k<h-1&&l[k].y===l[k+1].y&&l[k].x===l[k+1].x-1){g|=1<<h-1-k}else{p.push(k)}}const x=p.length;const S=new Int8Array(x);const M=new Int8Array(x);const _=new Uint16Array(x);for(A=0;A<x;A++){k=p[A];S[A]=l[k].x;M[A]=l[k].y;_[A]=1<<h-1-k}const E=-v;const C=-y;const O=e-w;const T=m[n];let I=new Uint8Array(e);const F=[];const P=o.decoder;const D=o.contextCache.getContexts("GB");let R=0,N,j,U,B=0,$,q;for(let t=0;t<i;t++){if(s){const t=P.readBit(D,T);R^=t;if(R){F.push(I);continue}}I=new Uint8Array(I);F.push(I);for(N=0;N<e;N++){if(c&&r[t][N]){I[N]=0;continue}if(N>=E&&N<O&&t>=C){B=B<<1&g;for(k=0;k<x;k++){j=t+M[k];U=N+S[k];$=F[j][U];if($){$=_[k];B|=$}}}else{B=0;q=h-1;for(k=0;k<h;k++,q--){U=N+u[k];if(U>=0&&U<e){j=t+f[k];if(j>=0){$=F[j][U];if($){B|=$<<q}}}}}const i=P.readBit(D,B);I[N]=i}}return F}function w(t,e,i,n,s,r,a,c,l){let h=p[i].coding;if(i===0){h=h.concat([c[0]])}const u=h.length;const f=new Int32Array(u);const d=new Int32Array(u);let m;for(m=0;m<u;m++){f[m]=h[m].x;d[m]=h[m].y}let b=p[i].reference;if(i===0){b=b.concat([c[1]])}const v=b.length;const w=new Int32Array(v);const y=new Int32Array(v);for(m=0;m<v;m++){w[m]=b[m].x;y[m]=b[m].y}const A=n[0].length;const k=n.length;const x=g[i];const S=[];const M=l.decoder;const _=l.contextCache.getContexts("GR");let E=0;for(let i=0;i<e;i++){if(a){const t=M.readBit(_,x);E^=t;if(E){throw new o("prediction is not supported")}}const e=new Uint8Array(t);S.push(e);for(let a=0;a<t;a++){let o,c;let l=0;for(m=0;m<u;m++){o=i+d[m];c=a+f[m];if(o<0||c<0||c>=t){l<<=1}else{l=l<<1|S[o][c]}}for(m=0;m<v;m++){o=i+y[m]-r;c=a+w[m]-s;if(o<0||o>=k||c<0||c>=A){l<<=1}else{l=l<<1|n[o][c]}}const h=M.readBit(_,l);e[a]=h}}return S}function y(t,e,i,n,r,a,c,l,f,d,p,m){if(t&&e){throw new o("symbol refinement with Huffman is not supported")}const g=[];let b=0;let y=(0,s.log2)(i.length+n);const k=p.decoder;const x=p.contextCache;let S,M;if(t){S=j(1);M=[];y=Math.max(y,1)}while(g.length<n){const n=t?a.tableDeltaHeight.decode(m):h(x,"IADH",k);b+=n;let s=0,r=0;const o=t?M.length:0;while(true){const n=t?a.tableDeltaWidth.decode(m):h(x,"IADW",k);if(n===null){break}s+=n;r+=s;let o;if(e){const n=h(x,"IAAI",k);if(n>1){o=A(t,e,s,b,0,n,1,i.concat(g),y,0,0,1,0,a,f,d,p,0,m)}else{const t=u(x,k,y);const e=h(x,"IARDX",k);const n=h(x,"IARDY",k);const r=t<i.length?i[t]:g[t-i.length];o=w(s,b,f,r,e,n,false,d,p)}g.push(o)}else if(t){M.push(s)}else{o=v(false,s,b,c,false,null,l,p);g.push(o)}}if(t&&!e){const t=a.tableBitmapSize.decode(m);m.byteAlign();let e;if(t===0){e=q(m,r,b)}else{const i=m.end;const n=m.position+t;m.end=n;e=G(m,r,b,false);m.end=i;m.position=n}const i=M.length;if(o===i-1){g.push(e)}else{let t,n,s=0,r,a,c;for(t=o;t<i;t++){a=M[t];r=s+a;c=[];for(n=0;n<b;n++){c.push(e[n].subarray(s,r))}g.push(c);s=r}}}}const _=[],E=[];let C=false,O,T;const I=i.length+n;while(E.length<I){let e=t?S.decode(m):h(x,"IAEX",k);while(e--){E.push(C)}C=!C}for(O=0,T=i.length;O<T;O++){if(E[O]){_.push(i[O])}}for(let t=0;t<n;O++,t++){if(E[O]){_.push(g[t])}}return _}function A(t,e,i,n,s,r,a,c,l,f,d,p,m,g,b,v,y,A,k){if(t&&e){throw new o("refinement with Huffman is not supported")}const x=[];let S,M;for(S=0;S<n;S++){M=new Uint8Array(i);if(s){for(let t=0;t<i;t++){M[t]=s}}x.push(M)}const _=y.decoder;const E=y.contextCache;let C=t?-g.tableDeltaT.decode(k):-h(E,"IADT",_);let O=0;S=0;while(S<r){const n=t?g.tableDeltaT.decode(k):h(E,"IADT",_);C+=n;const s=t?g.tableFirstS.decode(k):h(E,"IAFS",_);O+=s;let r=O;do{let n=0;if(a>1){n=t?k.readBits(A):h(E,"IAIT",_)}const s=a*C+n;const O=t?g.symbolIDTable.decode(k):u(E,_,l);const T=e&&(t?k.readBit():h(E,"IARI",_));let I=c[O];let F=I[0].length;let P=I.length;if(T){const t=h(E,"IARDW",_);const e=h(E,"IARDH",_);const i=h(E,"IARDX",_);const n=h(E,"IARDY",_);F+=t;P+=e;I=w(F,P,b,I,(t>>1)+i,(e>>1)+n,false,v,y)}const D=s-(p&1?0:P-1);const R=r-(p&2?F-1:0);let N,j,L;if(f){for(N=0;N<P;N++){M=x[R+N];if(!M){continue}L=I[N];const t=Math.min(i-D,F);switch(m){case 0:for(j=0;j<t;j++){M[D+j]|=L[j]}break;case 2:for(j=0;j<t;j++){M[D+j]^=L[j]}break;default:throw new o(`operator ${m} is not supported`)}}r+=P-1}else{for(j=0;j<P;j++){M=x[D+j];if(!M){continue}L=I[j];switch(m){case 0:for(N=0;N<F;N++){M[R+N]|=L[N]}break;case 2:for(N=0;N<F;N++){M[R+N]^=L[N]}break;default:throw new o(`operator ${m} is not supported`)}}r+=F-1}S++;const U=t?g.tableDeltaS.decode(k):h(E,"IADS",_);if(U===null){break}r+=U+d}while(true)}return x}function k(t,e,i,n,s,r){const a=[];if(!t){a.push({x:-e,y:0});if(s===0){a.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2})}}const o=(n+1)*e;const c=v(t,o,i,s,false,null,a,r);const l=[];for(let t=0;t<=n;t++){const n=[];const s=e*t;const r=s+e;for(let t=0;t<i;t++){n.push(c[t].subarray(s,r))}l.push(n)}return l}function x(t,e,i,n,r,a,c,l,h,u,f,d,p,m,g){const b=null;if(c){throw new o("skip is not supported")}if(l!==0){throw new o(`operator "${l}" is not supported in halftone region`)}const w=[];let y,A,k;for(y=0;y<r;y++){k=new Uint8Array(n);if(a){for(A=0;A<n;A++){k[A]=a}}w.push(k)}const x=e.length;const S=e[0];const M=S[0].length,_=S.length;const E=(0,s.log2)(x);const C=[];if(!t){C.push({x:i<=1?3:2,y:-1});if(i===0){C.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2})}}const O=[];let T,I;if(t){T=new L(g.data,g.start,g.end)}for(y=E-1;y>=0;y--){if(t){I=G(T,h,u,true)}else{I=v(false,h,u,i,false,b,C,g)}O[y]=I}let F,P,D,R,N,j,U,B,$;for(F=0;F<u;F++){for(P=0;P<h;P++){D=0;R=0;for(A=E-1;A>=0;A--){D^=O[A][F][P];R|=D<<A}N=e[R];j=f+F*m+P*p>>8;U=d+F*p-P*m>>8;if(j>=0&&j+M<=n&&U>=0&&U+_<=r){for(y=0;y<_;y++){$=w[U+y];B=N[y];for(A=0;A<M;A++){$[j+A]|=B[A]}}}else{let t,e;for(y=0;y<_;y++){e=U+y;if(e<0||e>=r){continue}$=w[e];B=N[y];for(A=0;A<M;A++){t=j+A;if(t>=0&&t<n){$[t]|=B[A]}}}}}}return w}function S(t,e){const i={};i.number=(0,s.readUint32)(t,e);const n=t[e+4];const r=n&63;if(!f[r]){throw new o("invalid segment type: "+r)}i.type=r;i.typeName=f[r];i.deferredNonRetain=!!(n&128);const a=!!(n&64);const c=t[e+5];let l=c>>5&7;const h=[c&31];let u=e+6;if(c===7){l=(0,s.readUint32)(t,u-1)&536870911;u+=3;let e=l+7>>3;h[0]=t[u++];while(--e>0){h.push(t[u++])}}else if(c===5||c===6){throw new o("invalid referred-to flags")}i.retainBits=h;let d=4;if(i.number<=256){d=1}else if(i.number<=65536){d=2}const p=[];let m,g;for(m=0;m<l;m++){let e;if(d===1){e=t[u]}else if(d===2){e=(0,s.readUint16)(t,u)}else{e=(0,s.readUint32)(t,u)}p.push(e);u+=d}i.referredTo=p;if(!a){i.pageAssociation=t[u++]}else{i.pageAssociation=(0,s.readUint32)(t,u);u+=4}i.length=(0,s.readUint32)(t,u);u+=4;if(i.length===4294967295){if(r===38){const e=_(t,u);const n=t[u+E];const s=!!(n&1);const r=6;const a=new Uint8Array(r);if(!s){a[0]=255;a[1]=172}a[2]=e.height>>>24&255;a[3]=e.height>>16&255;a[4]=e.height>>8&255;a[5]=e.height&255;for(m=u,g=t.length;m<g;m++){let e=0;while(e<r&&a[e]===t[m+e]){e++}if(e===r){i.length=m+r;break}}if(i.length===4294967295){throw new o("segment end was not found")}}else{throw new o("invalid unknown segment length")}}i.headerEnd=u;return i}function M(t,e,i,n){const s=[];let r=i;while(r<n){const i=S(e,r);r=i.headerEnd;const n={header:i,data:e};if(!t.randomAccess){n.start=r;r+=i.length;n.end=r}s.push(n);if(i.type===51){break}}if(t.randomAccess){for(let t=0,e=s.length;t<e;t++){s[t].start=r;r+=s[t].header.length;s[t].end=r}}return s}function _(t,e){return{width:(0,s.readUint32)(t,e),height:(0,s.readUint32)(t,e+4),x:(0,s.readUint32)(t,e+8),y:(0,s.readUint32)(t,e+12),combinationOperator:t[e+16]&7}}const E=17;function C(t,e){const i=t.header;const n=t.data,r=t.end;let a=t.start;let c,l,h,u;switch(i.type){case 0:const t={};const e=(0,s.readUint16)(n,a);t.huffman=!!(e&1);t.refinement=!!(e&2);t.huffmanDHSelector=e>>2&3;t.huffmanDWSelector=e>>4&3;t.bitmapSizeSelector=e>>6&1;t.aggregationInstancesSelector=e>>7&1;t.bitmapCodingContextUsed=!!(e&256);t.bitmapCodingContextRetained=!!(e&512);t.template=e>>10&3;t.refinementTemplate=e>>12&1;a+=2;if(!t.huffman){u=t.template===0?4:1;l=[];for(h=0;h<u;h++){l.push({x:(0,s.readInt8)(n,a),y:(0,s.readInt8)(n,a+1)});a+=2}t.at=l}if(t.refinement&&!t.refinementTemplate){l=[];for(h=0;h<2;h++){l.push({x:(0,s.readInt8)(n,a),y:(0,s.readInt8)(n,a+1)});a+=2}t.refinementAt=l}t.numberOfExportedSymbols=(0,s.readUint32)(n,a);a+=4;t.numberOfNewSymbols=(0,s.readUint32)(n,a);a+=4;c=[t,i.number,i.referredTo,n,a,r];break;case 6:case 7:const f={};f.info=_(n,a);a+=E;const d=(0,s.readUint16)(n,a);a+=2;f.huffman=!!(d&1);f.refinement=!!(d&2);f.logStripSize=d>>2&3;f.stripSize=1<<f.logStripSize;f.referenceCorner=d>>4&3;f.transposed=!!(d&64);f.combinationOperator=d>>7&3;f.defaultPixelValue=d>>9&1;f.dsOffset=d<<17>>27;f.refinementTemplate=d>>15&1;if(f.huffman){const t=(0,s.readUint16)(n,a);a+=2;f.huffmanFS=t&3;f.huffmanDS=t>>2&3;f.huffmanDT=t>>4&3;f.huffmanRefinementDW=t>>6&3;f.huffmanRefinementDH=t>>8&3;f.huffmanRefinementDX=t>>10&3;f.huffmanRefinementDY=t>>12&3;f.huffmanRefinementSizeSelector=!!(t&16384)}if(f.refinement&&!f.refinementTemplate){l=[];for(h=0;h<2;h++){l.push({x:(0,s.readInt8)(n,a),y:(0,s.readInt8)(n,a+1)});a+=2}f.refinementAt=l}f.numberOfSymbolInstances=(0,s.readUint32)(n,a);a+=4;c=[f,i.referredTo,n,a,r];break;case 16:const p={};const m=n[a++];p.mmr=!!(m&1);p.template=m>>1&3;p.patternWidth=n[a++];p.patternHeight=n[a++];p.maxPatternIndex=(0,s.readUint32)(n,a);a+=4;c=[p,i.number,n,a,r];break;case 22:case 23:const g={};g.info=_(n,a);a+=E;const b=n[a++];g.mmr=!!(b&1);g.template=b>>1&3;g.enableSkip=!!(b&8);g.combinationOperator=b>>4&7;g.defaultPixelValue=b>>7&1;g.gridWidth=(0,s.readUint32)(n,a);a+=4;g.gridHeight=(0,s.readUint32)(n,a);a+=4;g.gridOffsetX=(0,s.readUint32)(n,a)&4294967295;a+=4;g.gridOffsetY=(0,s.readUint32)(n,a)&4294967295;a+=4;g.gridVectorX=(0,s.readUint16)(n,a);a+=2;g.gridVectorY=(0,s.readUint16)(n,a);a+=2;c=[g,i.referredTo,n,a,r];break;case 38:case 39:const v={};v.info=_(n,a);a+=E;const w=n[a++];v.mmr=!!(w&1);v.template=w>>1&3;v.prediction=!!(w&8);if(!v.mmr){u=v.template===0?4:1;l=[];for(h=0;h<u;h++){l.push({x:(0,s.readInt8)(n,a),y:(0,s.readInt8)(n,a+1)});a+=2}v.at=l}c=[v,n,a,r];break;case 48:const y={width:(0,s.readUint32)(n,a),height:(0,s.readUint32)(n,a+4),resolutionX:(0,s.readUint32)(n,a+8),resolutionY:(0,s.readUint32)(n,a+12)};if(y.height===4294967295){delete y.height}const A=n[a+16];(0,s.readUint16)(n,a+17);y.lossless=!!(A&1);y.refinement=!!(A&2);y.defaultPixelValue=A>>2&1;y.combinationOperator=A>>3&3;y.requiresBuffer=!!(A&32);y.combinationOperatorOverride=!!(A&64);c=[y];break;case 49:break;case 50:break;case 51:break;case 53:c=[i.number,n,a,r];break;case 62:break;default:throw new o(`segment type ${i.typeName}(${i.type}) is not implemented`)}const f="on"+i.typeName;if(f in e){e[f].apply(e,c)}}function O(t,e){for(let i=0,n=t.length;i<n;i++){C(t[i],e)}}function T(t){const e=new I;for(let i=0,n=t.length;i<n;i++){const n=t[i];const s=M({},n.data,n.start,n.end);O(s,e)}return e.buffer}class I{onPageInformation(t){this.currentPageInfo=t;const e=t.width+7>>3;const i=new Uint8ClampedArray(e*t.height);if(t.defaultPixelValue){i.fill(255)}this.buffer=i}drawBitmap(t,e){const i=this.currentPageInfo;const n=t.width,s=t.height;const r=i.width+7>>3;const a=i.combinationOperatorOverride?t.combinationOperator:i.combinationOperator;const c=this.buffer;const l=128>>(t.x&7);let h=t.y*r+(t.x>>3);let u,f,d,p;switch(a){case 0:for(u=0;u<s;u++){d=l;p=h;for(f=0;f<n;f++){if(e[u][f]){c[p]|=d}d>>=1;if(!d){d=128;p++}}h+=r}break;case 2:for(u=0;u<s;u++){d=l;p=h;for(f=0;f<n;f++){if(e[u][f]){c[p]^=d}d>>=1;if(!d){d=128;p++}}h+=r}break;default:throw new o(`operator ${a} is not supported`)}}onImmediateGenericRegion(t,e,i,n){const s=t.info;const r=new l(e,i,n);const a=v(t.mmr,s.width,s.height,t.template,t.prediction,null,t.at,r);this.drawBitmap(s,a)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(t,e,i,n,s,r){let a,o;if(t.huffman){a=$(t,i,this.customTables);o=new L(n,s,r)}let c=this.symbols;if(!c){this.symbols=c={}}const h=[];for(const t of i){const e=c[t];if(e){h.push(...e)}}const u=new l(n,s,r);c[e]=y(t.huffman,t.refinement,h,t.numberOfNewSymbols,t.numberOfExportedSymbols,a,t.template,t.at,t.refinementTemplate,t.refinementAt,u,o)}onImmediateTextRegion(t,e,i,n,r){const a=t.info;let o,c;const h=this.symbols;const u=[];for(const t of e){const e=h[t];if(e){u.push(...e)}}const f=(0,s.log2)(u.length);if(t.huffman){c=new L(i,n,r);o=B(t,e,this.customTables,u.length,c)}const d=new l(i,n,r);const p=A(t.huffman,t.refinement,a.width,a.height,t.defaultPixelValue,t.numberOfSymbolInstances,t.stripSize,u,f,t.transposed,t.dsOffset,t.referenceCorner,t.combinationOperator,o,t.refinementTemplate,t.refinementAt,d,t.logStripSize,c);this.drawBitmap(a,p)}onImmediateLosslessTextRegion(){this.onImmediateTextRegion(...arguments)}onPatternDictionary(t,e,i,n,s){let r=this.patterns;if(!r){this.patterns=r={}}const a=new l(i,n,s);r[e]=k(t.mmr,t.patternWidth,t.patternHeight,t.maxPatternIndex,t.template,a)}onImmediateHalftoneRegion(t,e,i,n,s){const r=this.patterns[e[0]];const a=t.info;const o=new l(i,n,s);const c=x(t.mmr,r,t.template,a.width,a.height,t.defaultPixelValue,t.enableSkip,t.combinationOperator,t.gridWidth,t.gridHeight,t.gridOffsetX,t.gridOffsetY,t.gridVectorX,t.gridVectorY,o);this.drawBitmap(a,c)}onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion(...arguments)}onTables(t,e,i,n){let s=this.customTables;if(!s){this.customTables=s={}}s[t]=R(e,i,n)}}class F{constructor(t){if(t.length===2){this.isOOB=true;this.rangeLow=0;this.prefixLength=t[0];this.rangeLength=0;this.prefixCode=t[1];this.isLowerRange=false}else{this.isOOB=false;this.rangeLow=t[0];this.prefixLength=t[1];this.rangeLength=t[2];this.prefixCode=t[3];this.isLowerRange=t[4]==="lower"}}}class P{constructor(t){this.children=[];if(t){this.isLeaf=true;this.rangeLength=t.rangeLength;this.rangeLow=t.rangeLow;this.isLowerRange=t.isLowerRange;this.isOOB=t.isOOB}else{this.isLeaf=false}}buildTree(t,e){const i=t.prefixCode>>e&1;if(e<=0){this.children[i]=new P(t)}else{let n=this.children[i];if(!n){this.children[i]=n=new P(null)}n.buildTree(t,e-1)}}decodeNode(t){if(this.isLeaf){if(this.isOOB){return null}const e=t.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-e:e)}const e=this.children[t.readBit()];if(!e){throw new o("invalid Huffman data")}return e.decodeNode(t)}}class D{constructor(t,e){if(!e){this.assignPrefixCodes(t)}this.rootNode=new P(null);for(let e=0,i=t.length;e<i;e++){const i=t[e];if(i.prefixLength>0){this.rootNode.buildTree(i,i.prefixLength-1)}}}decode(t){return this.rootNode.decodeNode(t)}assignPrefixCodes(t){const e=t.length;let i=0;for(let n=0;n<e;n++){i=Math.max(i,t[n].prefixLength)}const n=new Uint32Array(i+1);for(let i=0;i<e;i++){n[t[i].prefixLength]++}let s=1,r=0,a,o,c;n[0]=0;while(s<=i){r=r+n[s-1]<<1;a=r;o=0;while(o<e){c=t[o];if(c.prefixLength===s){c.prefixCode=a;a++}o++}s++}}}function R(t,e,i){const n=t[e];const r=(0,s.readUint32)(t,e+1)&4294967295;const a=(0,s.readUint32)(t,e+5)&4294967295;const o=new L(t,e+9,i);const c=(n>>1&7)+1;const l=(n>>4&7)+1;const h=[];let u,f,d=r;do{u=o.readBits(c);f=o.readBits(l);h.push(new F([d,u,f,0]));d+=1<<f}while(d<a);u=o.readBits(c);h.push(new F([r-1,u,32,0,"lower"]));u=o.readBits(c);h.push(new F([a,u,32,0]));if(n&1){u=o.readBits(c);h.push(new F([u,0]))}return new D(h,false)}const N={};function j(t){let e=N[t];if(e){return e}let i;switch(t){case 1:i=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:i=[[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:i=[[-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:i=[[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:i=[[-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:i=[[-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:i=[[-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:i=[[-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:i=[[-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:i=[[-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:i=[[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:i=[[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:i=[[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:i=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:i=[[-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 o(`standard table B.${t} does not exist`)}for(let t=0,e=i.length;t<e;t++){i[t]=new F(i[t])}e=new D(i,true);N[t]=e;return e}class L{constructor(t,e,i){this.data=t;this.start=e;this.end=i;this.position=e;this.shift=-1;this.currentByte=0}readBit(){if(this.shift<0){if(this.position>=this.end){throw new o("end of data while reading bit")}this.currentByte=this.data[this.position++];this.shift=7}const t=this.currentByte>>this.shift&1;this.shift--;return t}readBits(t){let e=0,i;for(i=t-1;i>=0;i--){e|=this.readBit()<<i}return e}byteAlign(){this.shift=-1}next(){if(this.position>=this.end){return-1}return this.data[this.position++]}}function U(t,e,i){let n=0;for(let s=0,r=e.length;s<r;s++){const r=i[e[s]];if(r){if(t===n){return r}n++}}throw new o("can't find custom Huffman table")}function B(t,e,i,n,s){const r=[];for(let t=0;t<=34;t++){const e=s.readBits(4);r.push(new F([t,e,0,0]))}const a=new D(r,false);r.length=0;for(let t=0;t<n;){const e=a.decode(s);if(e>=32){let i,n,a;switch(e){case 32:if(t===0){throw new o("no previous value in symbol ID table")}n=s.readBits(2)+3;i=r[t-1].prefixLength;break;case 33:n=s.readBits(3)+3;i=0;break;case 34:n=s.readBits(7)+11;i=0;break;default:throw new o("invalid code length in symbol ID table")}for(a=0;a<n;a++){r.push(new F([t,i,0,0]));t++}}else{r.push(new F([t,e,0,0]));t++}}s.byteAlign();const c=new D(r,false);let l=0,h,u,f;switch(t.huffmanFS){case 0:case 1:h=j(t.huffmanFS+6);break;case 3:h=U(l,e,i);l++;break;default:throw new o("invalid Huffman FS selector")}switch(t.huffmanDS){case 0:case 1:case 2:u=j(t.huffmanDS+8);break;case 3:u=U(l,e,i);l++;break;default:throw new o("invalid Huffman DS selector")}switch(t.huffmanDT){case 0:case 1:case 2:f=j(t.huffmanDT+11);break;case 3:f=U(l,e,i);l++;break;default:throw new o("invalid Huffman DT selector")}if(t.refinement){throw new o("refinement with Huffman is not supported")}return{symbolIDTable:c,tableFirstS:h,tableDeltaS:u,tableDeltaT:f}}function $(t,e,i){let n=0,s,r;switch(t.huffmanDHSelector){case 0:case 1:s=j(t.huffmanDHSelector+4);break;case 3:s=U(n,e,i);n++;break;default:throw new o("invalid Huffman DH selector")}switch(t.huffmanDWSelector){case 0:case 1:r=j(t.huffmanDWSelector+2);break;case 3:r=U(n,e,i);n++;break;default:throw new o("invalid Huffman DW selector")}let a,c;if(t.bitmapSizeSelector){a=U(n,e,i);n++}else{a=j(1)}if(t.aggregationInstancesSelector){c=U(n,e,i)}else{c=j(1)}return{tableDeltaHeight:s,tableDeltaWidth:r,tableBitmapSize:a,tableAggregateInstances:c}}function q(t,e,i){const n=[];for(let s=0;s<i;s++){const i=new Uint8Array(e);n.push(i);for(let n=0;n<e;n++){i[n]=t.readBit()}t.byteAlign()}return n}function G(t,e,i,n){const s={K:-1,Columns:e,Rows:i,BlackIs1:true,EndOfBlock:n};const r=new a.CCITTFaxDecoder(t,s);const o=[];let c,l=false;for(let t=0;t<i;t++){const t=new Uint8Array(e);o.push(t);let i=-1;for(let n=0;n<e;n++){if(i<0){c=r.readNextChar();if(c===-1){c=0;l=true}i=7}t[n]=c>>i&1;i--}}if(n&&!l){const t=5;for(let e=0;e<t;e++){if(r.readNextChar()===-1){break}}}return o}class W{parseChunks(t){return T(t)}parse(t){throw new Error("Not implemented: Jbig2Image.parse")}}e.Jbig2Image=W},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.ArithmeticDecoder=void 0;const i=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}];class n{constructor(t,e,i){this.data=t;this.bp=e;this.dataEnd=i;this.chigh=t[e];this.clow=0;this.byteIn();this.chigh=this.chigh<<7&65535|this.clow>>9&127;this.clow=this.clow<<7&65535;this.ct-=7;this.a=32768}byteIn(){const t=this.data;let e=this.bp;if(t[e]===255){if(t[e+1]>143){this.clow+=65280;this.ct=8}else{e++;this.clow+=t[e]<<9;this.ct=7;this.bp=e}}else{e++;this.clow+=e<this.dataEnd?t[e]<<8:65280;this.ct=8;this.bp=e}if(this.clow>65535){this.chigh+=this.clow>>16;this.clow&=65535}}readBit(t,e){let n=t[e]>>1,s=t[e]&1;const r=i[n];const a=r.qe;let o;let c=this.a-a;if(this.chigh<a){if(c<a){c=a;o=s;n=r.nmps}else{c=a;o=1^s;if(r.switchFlag===1){s=o}n=r.nlps}}else{this.chigh-=a;if((c&32768)!==0){this.a=c;return s}if(c<a){o=1^s;if(r.switchFlag===1){s=o}n=r.nlps}else{o=s;n=r.nmps}}do{if(this.ct===0){this.byteIn()}c<<=1;this.chigh=this.chigh<<1&65535|this.clow>>15&1;this.clow=this.clow<<1&65535;this.ct--}while((c&32768)===0);this.a=c;t[e]=n<<1|s;return o}}e.ArithmeticDecoder=n},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.JpegStream=void 0;var n=i(148);var s=i(134);var r=i(157);var a=i(2);class o extends n.DecodeStream{constructor(t,e,i){let n;while((n=t.getByte())!==-1){if(n===255){t.skip(-1);break}}super(e);this.stream=t;this.dict=t.dict;this.maybeLength=e;this.params=i}get bytes(){return(0,a.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(t){}readBlock(){if(this.eof){return}const t={decodeTransform:undefined,colorTransform:undefined};const e=this.dict.getArray("D","Decode");if(this.forceRGB&&Array.isArray(e)){const i=this.dict.get("BPC","BitsPerComponent")||8;const n=e.length;const s=new Int32Array(n);let r=false;const a=(1<<i)-1;for(let t=0;t<n;t+=2){s[t]=(e[t+1]-e[t])*256|0;s[t+1]=e[t]*a|0;if(s[t]!==256||s[t+1]!==0){r=true}}if(r){t.decodeTransform=s}}if(this.params instanceof s.Dict){const e=this.params.get("ColorTransform");if(Number.isInteger(e)){t.colorTransform=e}}const i=new r.JpegImage(t);i.parse(this.bytes);const n=i.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:true});this.buffer=n;this.bufferLength=n.length;this.eof=true}}e.JpegStream=o},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.JpegImage=void 0;var n=i(2);var s=i(135);class r extends n.BaseException{constructor(t){super(`JPEG error: ${t}`,"JpegError")}}class a extends n.BaseException{constructor(t,e){super(t,"DNLMarkerError");this.scanLines=e}}class o extends n.BaseException{constructor(t){super(t,"EOIMarkerError")}}const c=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]);const l=4017;const h=799;const u=3406;const f=2276;const d=1567;const p=3784;const m=5793;const g=2896;function b(t,e){let i=0,n,s,r=16;while(r>0&&!t[r-1]){r--}const a=[{children:[],index:0}];let o=a[0],c;for(n=0;n<r;n++){for(s=0;s<t[n];s++){o=a.pop();o.children[o.index]=e[i];while(o.index>0){o=a.pop()}o.index++;a.push(o);while(a.length<=n){a.push(c={children:[],index:0});o.children[o.index]=c.children;o=c}i++}if(n+1<r){a.push(c={children:[],index:0});o.children[o.index]=c.children;o=c}}return a[0].children}function v(t,e,i){return 64*((t.blocksPerLine+1)*e+i)}function w(t,e,i,l,h,u,f,d,p){let m=arguments.length>9&&arguments[9]!==undefined?arguments[9]:false;const g=i.mcusPerLine;const b=i.progressive;const w=e;let y=0,A=0;function x(){if(A>0){A--;return y>>A&1}y=t[e++];if(y===255){const n=t[e++];if(n){if(n===220&&m){e+=2;const n=(0,s.readUint16)(t,e);e+=2;if(n>0&&n!==i.scanLines){throw new a("Found DNL marker (0xFFDC) while parsing scan data",n)}}else if(n===217){if(m){const t=R*(i.precision===8?8:0);if(t>0&&Math.round(i.scanLines/t)>=5){throw new a("Found EOI marker (0xFFD9) while parsing scan data, "+"possibly caused by incorrect `scanLines` parameter",t)}}throw new o("Found EOI marker (0xFFD9) while parsing scan data")}throw new r(`unexpected marker ${(y<<8|n).toString(16)}`)}}A=7;return y>>>7}function S(t){let e=t;while(true){e=e[x()];switch(typeof e){case"number":return e;case"object":continue}throw new r("invalid huffman sequence")}}function M(t){let e=0;while(t>0){e=e<<1|x();t--}return e}function _(t){if(t===1){return x()===1?1:-1}const e=M(t);if(e>=1<<t-1){return e}return e+(-1<<t)+1}function E(t,e){const i=S(t.huffmanTableDC);const n=i===0?0:_(i);t.blockData[e]=t.pred+=n;let s=1;while(s<64){const i=S(t.huffmanTableAC);const n=i&15,r=i>>4;if(n===0){if(r<15){break}s+=16;continue}s+=r;const a=c[s];t.blockData[e+a]=_(n);s++}}function C(t,e){const i=S(t.huffmanTableDC);const n=i===0?0:_(i)<<p;t.blockData[e]=t.pred+=n}function O(t,e){t.blockData[e]|=x()<<p}let T=0;function I(t,e){if(T>0){T--;return}let i=u;const n=f;while(i<=n){const n=S(t.huffmanTableAC);const s=n&15,r=n>>4;if(s===0){if(r<15){T=M(r)+(1<<r)-1;break}i+=16;continue}i+=r;const a=c[i];t.blockData[e+a]=_(s)*(1<<p);i++}}let F=0,P;function D(t,e){let i=u;const n=f;let s=0;let a;let o;while(i<=n){const n=e+c[i];const l=t.blockData[n]<0?-1:1;switch(F){case 0:o=S(t.huffmanTableAC);a=o&15;s=o>>4;if(a===0){if(s<15){T=M(s)+(1<<s);F=4}else{s=16;F=1}}else{if(a!==1){throw new r("invalid ACn encoding")}P=_(a);F=s?2:3}continue;case 1:case 2:if(t.blockData[n]){t.blockData[n]+=l*(x()<<p)}else{s--;if(s===0){F=F===2?3:0}}break;case 3:if(t.blockData[n]){t.blockData[n]+=l*(x()<<p)}else{t.blockData[n]=P<<p;F=0}break;case 4:if(t.blockData[n]){t.blockData[n]+=l*(x()<<p)}break}i++}if(F===4){T--;if(T===0){F=0}}}let R=0;function N(t,e,i,n,s){const r=i/g|0;const a=i%g;R=r*t.v+n;const o=a*t.h+s;const c=v(t,R,o);e(t,c)}function j(t,e,i){R=i/t.blocksPerLine|0;const n=i%t.blocksPerLine;const s=v(t,R,n);e(t,s)}const L=l.length;let U,B,$,q,G;let W;if(b){if(u===0){W=d===0?C:O}else{W=d===0?I:D}}else{W=E}let H=0,z;let V;if(L===1){V=l[0].blocksPerLine*l[0].blocksPerColumn}else{V=g*i.mcusPerColumn}let X,K;while(H<=V){const i=h?Math.min(V-H,h):V;if(i>0){for(B=0;B<L;B++){l[B].pred=0}T=0;if(L===1){U=l[0];for(G=0;G<i;G++){j(U,W,H);H++}}else{for(G=0;G<i;G++){for(B=0;B<L;B++){U=l[B];X=U.h;K=U.v;for($=0;$<K;$++){for(q=0;q<X;q++){N(U,W,H,$,q)}}}H++}}}A=0;z=k(t,e);if(!z){break}if(z.invalid){const t=i>0?"unexpected":"excessive";(0,n.warn)(`decodeScan - ${t} MCU data, current marker is: ${z.invalid}`);e=z.offset}if(z.marker>=65488&&z.marker<=65495){e+=2}else{break}}return e-w}function y(t,e,i){const n=t.quantizationTable,s=t.blockData;let a,o,c,b,v,w,y,A;let k,x,S,M,_,E,C,O;let T;if(!n){throw new r("missing required Quantization Table.")}for(let t=0;t<64;t+=8){k=s[e+t];x=s[e+t+1];S=s[e+t+2];M=s[e+t+3];_=s[e+t+4];E=s[e+t+5];C=s[e+t+6];O=s[e+t+7];k*=n[t];if((x|S|M|_|E|C|O)===0){T=m*k+512>>10;i[t]=T;i[t+1]=T;i[t+2]=T;i[t+3]=T;i[t+4]=T;i[t+5]=T;i[t+6]=T;i[t+7]=T;continue}x*=n[t+1];S*=n[t+2];M*=n[t+3];_*=n[t+4];E*=n[t+5];C*=n[t+6];O*=n[t+7];a=m*k+128>>8;o=m*_+128>>8;c=S;b=C;v=g*(x-O)+128>>8;A=g*(x+O)+128>>8;w=M<<4;y=E<<4;a=a+o+1>>1;o=a-o;T=c*p+b*d+128>>8;c=c*d-b*p+128>>8;b=T;v=v+y+1>>1;y=v-y;A=A+w+1>>1;w=A-w;a=a+b+1>>1;b=a-b;o=o+c+1>>1;c=o-c;T=v*f+A*u+2048>>12;v=v*u-A*f+2048>>12;A=T;T=w*h+y*l+2048>>12;w=w*l-y*h+2048>>12;y=T;i[t]=a+A;i[t+7]=a-A;i[t+1]=o+y;i[t+6]=o-y;i[t+2]=c+w;i[t+5]=c-w;i[t+3]=b+v;i[t+4]=b-v}for(let t=0;t<8;++t){k=i[t];x=i[t+8];S=i[t+16];M=i[t+24];_=i[t+32];E=i[t+40];C=i[t+48];O=i[t+56];if((x|S|M|_|E|C|O)===0){T=m*k+8192>>14;if(T<-2040){T=0}else if(T>=2024){T=255}else{T=T+2056>>4}s[e+t]=T;s[e+t+8]=T;s[e+t+16]=T;s[e+t+24]=T;s[e+t+32]=T;s[e+t+40]=T;s[e+t+48]=T;s[e+t+56]=T;continue}a=m*k+2048>>12;o=m*_+2048>>12;c=S;b=C;v=g*(x-O)+2048>>12;A=g*(x+O)+2048>>12;w=M;y=E;a=(a+o+1>>1)+4112;o=a-o;T=c*p+b*d+2048>>12;c=c*d-b*p+2048>>12;b=T;v=v+y+1>>1;y=v-y;A=A+w+1>>1;w=A-w;a=a+b+1>>1;b=a-b;o=o+c+1>>1;c=o-c;T=v*f+A*u+2048>>12;v=v*u-A*f+2048>>12;A=T;T=w*h+y*l+2048>>12;w=w*l-y*h+2048>>12;y=T;k=a+A;O=a-A;x=o+y;C=o-y;S=c+w;E=c-w;M=b+v;_=b-v;if(k<16){k=0}else if(k>=4080){k=255}else{k>>=4}if(x<16){x=0}else if(x>=4080){x=255}else{x>>=4}if(S<16){S=0}else if(S>=4080){S=255}else{S>>=4}if(M<16){M=0}else if(M>=4080){M=255}else{M>>=4}if(_<16){_=0}else if(_>=4080){_=255}else{_>>=4}if(E<16){E=0}else if(E>=4080){E=255}else{E>>=4}if(C<16){C=0}else if(C>=4080){C=255}else{C>>=4}if(O<16){O=0}else if(O>=4080){O=255}else{O>>=4}s[e+t]=k;s[e+t+8]=x;s[e+t+16]=S;s[e+t+24]=M;s[e+t+32]=_;s[e+t+40]=E;s[e+t+48]=C;s[e+t+56]=O}}function A(t,e){const i=e.blocksPerLine;const n=e.blocksPerColumn;const s=new Int16Array(64);for(let t=0;t<n;t++){for(let n=0;n<i;n++){const i=v(e,t,n);y(e,i,s)}}return e.blockData}function k(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:e;const n=t.length-1;let r=i<e?i:e;if(e>=n){return null}const a=(0,s.readUint16)(t,e);if(a>=65472&&a<=65534){return{invalid:null,marker:a,offset:e}}let o=(0,s.readUint16)(t,r);while(!(o>=65472&&o<=65534)){if(++r>=n){return null}o=(0,s.readUint16)(t,r)}return{invalid:a.toString(16),marker:o,offset:r}}class x{constructor(){let{decodeTransform:t=null,colorTransform:e=-1}=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};this._decodeTransform=t;this._colorTransform=e}parse(t){let{dnlScanLines:e=null}=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};function i(){const e=(0,s.readUint16)(t,h);h+=2;let i=h+e-2;const r=k(t,i,h);if(r&&r.invalid){(0,n.warn)("readDataBlock - incorrect length, current marker is: "+r.invalid);i=r.offset}const a=t.subarray(h,i);h+=a.length;return a}function l(t){const e=Math.ceil(t.samplesPerLine/8/t.maxH);const i=Math.ceil(t.scanLines/8/t.maxV);for(const n of t.components){const s=Math.ceil(Math.ceil(t.samplesPerLine/8)*n.h/t.maxH);const r=Math.ceil(Math.ceil(t.scanLines/8)*n.v/t.maxV);const a=e*n.h;const o=i*n.v;const c=64*o*(a+1);n.blockData=new Int16Array(c);n.blocksPerLine=s;n.blocksPerColumn=r}t.mcusPerLine=e;t.mcusPerColumn=i}let h=0;let u=null;let f=null;let d,p;let m=0;const g=[];const v=[],y=[];let x=(0,s.readUint16)(t,h);h+=2;if(x!==65496){throw new r("SOI not found")}x=(0,s.readUint16)(t,h);h+=2;t:while(x!==65497){let A,S,M;switch(x){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:const _=i();if(x===65504){if(_[0]===74&&_[1]===70&&_[2]===73&&_[3]===70&&_[4]===0){u={version:{major:_[5],minor:_[6]},densityUnits:_[7],xDensity:_[8]<<8|_[9],yDensity:_[10]<<8|_[11],thumbWidth:_[12],thumbHeight:_[13],thumbData:_.subarray(14,14+3*_[12]*_[13])}}}if(x===65518){if(_[0]===65&&_[1]===100&&_[2]===111&&_[3]===98&&_[4]===101){f={version:_[5]<<8|_[6],flags0:_[7]<<8|_[8],flags1:_[9]<<8|_[10],transformCode:_[11]}}}break;case 65499:const E=(0,s.readUint16)(t,h);h+=2;const C=E+h-2;let O;while(h<C){const e=t[h++];const i=new Uint16Array(64);if(e>>4===0){for(S=0;S<64;S++){O=c[S];i[O]=t[h++]}}else if(e>>4===1){for(S=0;S<64;S++){O=c[S];i[O]=(0,s.readUint16)(t,h);h+=2}}else{throw new r("DQT - invalid table spec")}g[e&15]=i}break;case 65472:case 65473:case 65474:if(d){throw new r("Only single frame JPEGs supported")}h+=2;d={};d.extended=x===65473;d.progressive=x===65474;d.precision=t[h++];const T=(0,s.readUint16)(t,h);h+=2;d.scanLines=e||T;d.samplesPerLine=(0,s.readUint16)(t,h);h+=2;d.components=[];d.componentIds={};const I=t[h++];let F=0,P=0;for(A=0;A<I;A++){const e=t[h];const i=t[h+1]>>4;const n=t[h+1]&15;if(F<i){F=i}if(P<n){P=n}const s=t[h+2];M=d.components.push({h:i,v:n,quantizationId:s,quantizationTable:null});d.componentIds[e]=M-1;h+=3}d.maxH=F;d.maxV=P;l(d);break;case 65476:const D=(0,s.readUint16)(t,h);h+=2;for(A=2;A<D;){const e=t[h++];const i=new Uint8Array(16);let n=0;for(S=0;S<16;S++,h++){n+=i[S]=t[h]}const s=new Uint8Array(n);for(S=0;S<n;S++,h++){s[S]=t[h]}A+=17+n;(e>>4===0?y:v)[e&15]=b(i,s)}break;case 65501:h+=2;p=(0,s.readUint16)(t,h);h+=2;break;case 65498:const R=++m===1&&!e;h+=2;const N=t[h++],j=[];for(A=0;A<N;A++){const e=t[h++];const i=d.componentIds[e];const n=d.components[i];n.index=e;const s=t[h++];n.huffmanTableDC=y[s>>4];n.huffmanTableAC=v[s&15];j.push(n)}const L=t[h++],U=t[h++],B=t[h++];try{const e=w(t,h,d,j,p,L,U,B>>4,B&15,R);h+=e}catch(e){if(e instanceof a){(0,n.warn)(`${e.message} -- attempting to re-parse the JPEG image.`);return this.parse(t,{dnlScanLines:e.scanLines})}else if(e instanceof o){(0,n.warn)(`${e.message} -- ignoring the rest of the image data.`);break t}throw e}break;case 65500:h+=4;break;case 65535:if(t[h]!==255){h--}break;default:const $=k(t,h-2,h-3);if($&&$.invalid){(0,n.warn)("JpegImage.parse - unexpected data, current marker is: "+$.invalid);h=$.offset;break}if(!$||h>=t.length-1){(0,n.warn)("JpegImage.parse - reached the end of the image data "+"without finding an EOI marker (0xFFD9).");break t}throw new r("JpegImage.parse - unknown marker: "+x.toString(16))}x=(0,s.readUint16)(t,h);h+=2}this.width=d.samplesPerLine;this.height=d.scanLines;this.jfif=u;this.adobe=f;this.components=[];for(const t of d.components){const e=g[t.quantizationId];if(e){t.quantizationTable=e}this.components.push({index:t.index,output:A(d,t),scaleX:t.h/d.maxH,scaleY:t.v/d.maxV,blocksPerLine:t.blocksPerLine,blocksPerColumn:t.blocksPerColumn})}this.numComponents=this.components.length;return undefined}_getLinearizedBlockData(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;const n=this.width/t,s=this.height/e;let r,a,o,c;let l,h,u,f,d;let p;let m=0;let g;const b=this.components.length;const v=t*e*b;const w=new Uint8ClampedArray(v);const y=new Uint32Array(t);const A=4294967288;let k;for(u=0;u<b;u++){r=this.components[u];a=r.scaleX*n;o=r.scaleY*s;m=u;g=r.output;c=r.blocksPerLine+1<<3;if(a!==k){for(l=0;l<t;l++){f=0|l*a;y[l]=(f&A)<<3|f&7}k=a}for(h=0;h<e;h++){f=0|h*o;p=c*(f&A)|(f&7)<<3;for(l=0;l<t;l++){w[m]=g[p+y[l]];m+=b}}}let x=this._decodeTransform;if(!i&&b===4&&!x){x=new Int32Array([-256,255,-256,255,-256,255,-256,255])}if(x){for(u=0;u<v;){for(f=0,d=0;f<b;f++,u++,d+=2){w[u]=(w[u]*x[d]>>8)+x[d+1]}}}return w}get _isColorConversionNeeded(){if(this.adobe){return!!this.adobe.transformCode}if(this.numComponents===3){if(this._colorTransform===0){return false}else if(this.components[0].index===82&&this.components[1].index===71&&this.components[2].index===66){return false}return true}if(this._colorTransform===1){return true}return false}_convertYccToRgb(t){let e,i,n;for(let s=0,r=t.length;s<r;s+=3){e=t[s];i=t[s+1];n=t[s+2];t[s]=e-179.456+1.402*n;t[s+1]=e+135.459-.344*i-.714*n;t[s+2]=e-226.816+1.772*i}return t}_convertYcckToRgb(t){let e,i,n,s;let r=0;for(let a=0,o=t.length;a<o;a+=4){e=t[a];i=t[a+1];n=t[a+2];s=t[a+3];t[r++]=-122.67195406894+i*(-660635669420364e-19*i+.000437130475926232*n-54080610064599e-18*e+.00048449797120281*s-.154362151871126)+n*(-.000957964378445773*n+.000817076911346625*e-.00477271405408747*s+1.53380253221734)+e*(.000961250184130688*e-.00266257332283933*s+.48357088451265)+s*(-.000336197177618394*s+.484791561490776);t[r++]=107.268039397724+i*(219927104525741e-19*i-.000640992018297945*n+.000659397001245577*e+.000426105652938837*s-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*e+.000770482631801132*s-.151051492775562)+e*(.00126935368114843*e-.00265090189010898*s+.25802910206845)+s*(-.000318913117588328*s-.213742400323665);t[r++]=-20.810012546947+i*(-.000570115196973677*i-263409051004589e-19*n+.0020741088115012*e-.00288260236853442*s+.814272968359295)+n*(-153496057440975e-19*n-.000132689043961446*e+.000560833691242812*s-.195152027534049)+e*(.00174418132927582*e-.00255243321439347*s+.116935020465145)+s*(-.000343531996510555*s+.24165260232407)}return t.subarray(0,r)}_convertYcckToCmyk(t){let e,i,n;for(let s=0,r=t.length;s<r;s+=4){e=t[s];i=t[s+1];n=t[s+2];t[s]=434.456-e-1.402*n;t[s+1]=119.541-e+.344*i+.714*n;t[s+2]=481.816-e-1.772*i}return t}_convertCmykToRgb(t){let e,i,n,s;let r=0;for(let a=0,o=t.length;a<o;a+=4){e=t[a];i=t[a+1];n=t[a+2];s=t[a+3];t[r++]=255+e*(-6747147073602441e-20*e+.0008379262121013727*i+.0002894718188643294*n+.003264231057537806*s-1.1185611867203937)+i*(26374107616089405e-21*i-8626949158638572e-20*n-.0002748769067499491*s-.02155688794978967)+n*(-3878099212869363e-20*n-.0003267808279485286*s+.0686742238595345)-s*(.0003361971776183937*s+.7430659151342254);t[r++]=255+e*(.00013596372813588848*e+.000924537132573585*i+.00010567359618683593*n+.0004791864687436512*s-.3109689587515875)+i*(-.00023545346108370344*i+.0002702845253534714*n+.0020200308977307156*s-.7488052167015494)+n*(6834815998235662e-20*n+.00015168452363460973*s-.09751927774728933)-s*(.0003189131175883281*s+.7364883807733168);t[r++]=255+e*(13598650411385307e-21*e+.00012423956175490851*i+.0004751985097583589*n-36729317476630422e-22*s-.05562186980264034)+i*(.00016141380598724676*i+.0009692239130725186*n+.0007782692450036253*s-.44015232367526463)+n*(5.068882914068769e-7*n+.0017778369011375071*s-.7591454649749609)-s*(.0003435319965105553*s+.7063770186160144)}return t.subarray(0,r)}getData(t){let{width:e,height:i,forceRGB:n=false,isSourcePDF:s=false}=t;if(this.numComponents>4){throw new r("Unsupported color mode")}const a=this._getLinearizedBlockData(e,i,s);if(this.numComponents===1&&n){const t=new Uint8ClampedArray(a.length*3);let e=0;for(const i of a){t[e++]=i;t[e++]=i;t[e++]=i}return t}else if(this.numComponents===3&&this._isColorConversionNeeded){return this._convertYccToRgb(a)}else if(this.numComponents===4){if(this._isColorConversionNeeded){if(n){return this._convertYcckToRgb(a)}return this._convertYcckToCmyk(a)}else if(n){return this._convertCmykToRgb(a)}}return a}}e.JpegImage=x},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.JpxStream=void 0;var n=i(148);var s=i(159);var r=i(2);class a extends n.DecodeStream{constructor(t,e,i){super(e);this.stream=t;this.dict=t.dict;this.maybeLength=e;this.params=i}get bytes(){return(0,r.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(t){}readBlock(){if(this.eof){return}const t=new s.JpxImage;t.parse(this.bytes);const e=t.width;const i=t.height;const n=t.componentsCount;const r=t.tiles.length;if(r===1){this.buffer=t.tiles[0].items}else{const s=new Uint8ClampedArray(e*i*n);for(let i=0;i<r;i++){const r=t.tiles[i];const a=r.width;const o=r.height;const c=r.left;const l=r.top;const h=r.items;let u=0;let f=(e*l+c)*n;const d=e*n;const p=a*n;for(let t=0;t<o;t++){const t=h.subarray(u,u+p);s.set(t,f);u+=p;f+=d}}this.buffer=s}this.bufferLength=this.buffer.length;this.eof=true}}e.JpxStream=a},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.JpxImage=void 0;var n=i(2);var s=i(135);var r=i(155);class a extends n.BaseException{constructor(t){super(`JPX error: ${t}`,"JpxError")}}const o={LL:0,LH:1,HL:1,HH:2};class c{constructor(){this.failOnCorruptedImage=false}parse(t){const e=(0,s.readUint16)(t,0);if(e===65359){this.parseCodestream(t,0,t.length);return}const i=t.length;let r=0;while(r<i){let e=8;let o=(0,s.readUint32)(t,r);const c=(0,s.readUint32)(t,r+4);r+=e;if(o===1){o=(0,s.readUint32)(t,r)*4294967296+(0,s.readUint32)(t,r+4);r+=8;e+=8}if(o===0){o=i-r+e}if(o<e){throw new a("Invalid box field size")}const l=o-e;let h=true;switch(c){case 1785737832:h=false;break;case 1668246642:const e=t[r];if(e===1){const e=(0,s.readUint32)(t,r+3);switch(e){case 16:case 17:case 18:break;default:(0,n.warn)("Unknown colorspace "+e);break}}else if(e===2){(0,n.info)("ICC profile not supported")}break;case 1785737827:this.parseCodestream(t,r,r+l);break;case 1783636e3:if((0,s.readUint32)(t,r)!==218793738){(0,n.warn)("Invalid JP2 signature")}break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:const i=String.fromCharCode(c>>24&255,c>>16&255,c>>8&255,c&255);(0,n.warn)(`Unsupported header type ${c} (${i}).`);break}if(h){r+=l}}}parseImageProperties(t){let e=t.getByte();while(e>=0){const i=e;e=t.getByte();const n=i<<8|e;if(n===65361){t.skip(4);const e=t.getInt32()>>>0;const i=t.getInt32()>>>0;const n=t.getInt32()>>>0;const s=t.getInt32()>>>0;t.skip(16);const r=t.getUint16();this.width=e-n;this.height=i-s;this.componentsCount=r;this.bitsPerComponent=8;return}}throw new a("No size marker found in JPX stream")}parseCodestream(t,e,i){const r={};let o=false;try{let a=e;while(a+1<i){const e=(0,s.readUint16)(t,a);a+=2;let i=0,c,u,f,d,p,m;switch(e){case 65359:r.mainHeader=true;break;case 65497:break;case 65361:i=(0,s.readUint16)(t,a);const g={};g.Xsiz=(0,s.readUint32)(t,a+4);g.Ysiz=(0,s.readUint32)(t,a+8);g.XOsiz=(0,s.readUint32)(t,a+12);g.YOsiz=(0,s.readUint32)(t,a+16);g.XTsiz=(0,s.readUint32)(t,a+20);g.YTsiz=(0,s.readUint32)(t,a+24);g.XTOsiz=(0,s.readUint32)(t,a+28);g.YTOsiz=(0,s.readUint32)(t,a+32);const b=(0,s.readUint16)(t,a+36);g.Csiz=b;const v=[];c=a+38;for(let e=0;e<b;e++){const e={precision:(t[c]&127)+1,isSigned:!!(t[c]&128),XRsiz:t[c+1],YRsiz:t[c+2]};c+=3;l(e,g);v.push(e)}r.SIZ=g;r.components=v;h(r,v);r.QCC=[];r.COC=[];break;case 65372:i=(0,s.readUint16)(t,a);const w={};c=a+2;u=t[c++];switch(u&31){case 0:d=8;p=true;break;case 1:d=16;p=false;break;case 2:d=16;p=true;break;default:throw new Error("Invalid SQcd value "+u)}w.noQuantization=d===8;w.scalarExpounded=p;w.guardBits=u>>5;f=[];while(c<i+a){const e={};if(d===8){e.epsilon=t[c++]>>3;e.mu=0}else{e.epsilon=t[c]>>3;e.mu=(t[c]&7)<<8|t[c+1];c+=2}f.push(e)}w.SPqcds=f;if(r.mainHeader){r.QCD=w}else{r.currentTile.QCD=w;r.currentTile.QCC=[]}break;case 65373:i=(0,s.readUint16)(t,a);const y={};c=a+2;let A;if(r.SIZ.Csiz<257){A=t[c++]}else{A=(0,s.readUint16)(t,c);c+=2}u=t[c++];switch(u&31){case 0:d=8;p=true;break;case 1:d=16;p=false;break;case 2:d=16;p=true;break;default:throw new Error("Invalid SQcd value "+u)}y.noQuantization=d===8;y.scalarExpounded=p;y.guardBits=u>>5;f=[];while(c<i+a){const e={};if(d===8){e.epsilon=t[c++]>>3;e.mu=0}else{e.epsilon=t[c]>>3;e.mu=(t[c]&7)<<8|t[c+1];c+=2}f.push(e)}y.SPqcds=f;if(r.mainHeader){r.QCC[A]=y}else{r.currentTile.QCC[A]=y}break;case 65362:i=(0,s.readUint16)(t,a);const S={};c=a+2;const M=t[c++];S.entropyCoderWithCustomPrecincts=!!(M&1);S.sopMarkerUsed=!!(M&2);S.ephMarkerUsed=!!(M&4);S.progressionOrder=t[c++];S.layersCount=(0,s.readUint16)(t,c);c+=2;S.multipleComponentTransform=t[c++];S.decompositionLevelsCount=t[c++];S.xcb=(t[c++]&15)+2;S.ycb=(t[c++]&15)+2;const _=t[c++];S.selectiveArithmeticCodingBypass=!!(_&1);S.resetContextProbabilities=!!(_&2);S.terminationOnEachCodingPass=!!(_&4);S.verticallyStripe=!!(_&8);S.predictableTermination=!!(_&16);S.segmentationSymbolUsed=!!(_&32);S.reversibleTransformation=t[c++];if(S.entropyCoderWithCustomPrecincts){const e=[];while(c<i+a){const i=t[c++];e.push({PPx:i&15,PPy:i>>4})}S.precinctsSizes=e}const C=[];if(S.selectiveArithmeticCodingBypass){C.push("selectiveArithmeticCodingBypass")}if(S.terminationOnEachCodingPass){C.push("terminationOnEachCodingPass")}if(S.verticallyStripe){C.push("verticallyStripe")}if(S.predictableTermination){C.push("predictableTermination")}if(C.length>0){o=true;(0,n.warn)(`JPX: Unsupported COD options (${C.join(", ")}).`)}if(r.mainHeader){r.COD=S}else{r.currentTile.COD=S;r.currentTile.COC=[]}break;case 65424:i=(0,s.readUint16)(t,a);m={};m.index=(0,s.readUint16)(t,a+2);m.length=(0,s.readUint32)(t,a+4);m.dataEnd=m.length+a-2;m.partIndex=t[a+8];m.partsCount=t[a+9];r.mainHeader=false;if(m.partIndex===0){m.COD=r.COD;m.COC=r.COC.slice(0);m.QCD=r.QCD;m.QCC=r.QCC.slice(0)}r.currentTile=m;break;case 65427:m=r.currentTile;if(m.partIndex===0){E(r,m.index);k(r)}i=m.dataEnd-a;x(r,t,a,i);break;case 65363:(0,n.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:i=(0,s.readUint16)(t,a);break;default:throw new Error("Unknown codestream code: "+e.toString(16))}a+=i}}catch(t){if(o||this.failOnCorruptedImage){throw new a(t.message)}else{(0,n.warn)(`JPX: Trying to recover from: "${t.message}".`)}}this.tiles=_(r);this.width=r.SIZ.Xsiz-r.SIZ.XOsiz;this.height=r.SIZ.Ysiz-r.SIZ.YOsiz;this.componentsCount=r.SIZ.Csiz}}e.JpxImage=c;function l(t,e){t.x0=Math.ceil(e.XOsiz/t.XRsiz);t.x1=Math.ceil(e.Xsiz/t.XRsiz);t.y0=Math.ceil(e.YOsiz/t.YRsiz);t.y1=Math.ceil(e.Ysiz/t.YRsiz);t.width=t.x1-t.x0;t.height=t.y1-t.y0}function h(t,e){const i=t.SIZ;const n=[];let s;const r=Math.ceil((i.Xsiz-i.XTOsiz)/i.XTsiz);const a=Math.ceil((i.Ysiz-i.YTOsiz)/i.YTsiz);for(let t=0;t<a;t++){for(let e=0;e<r;e++){s={};s.tx0=Math.max(i.XTOsiz+e*i.XTsiz,i.XOsiz);s.ty0=Math.max(i.YTOsiz+t*i.YTsiz,i.YOsiz);s.tx1=Math.min(i.XTOsiz+(e+1)*i.XTsiz,i.Xsiz);s.ty1=Math.min(i.YTOsiz+(t+1)*i.YTsiz,i.Ysiz);s.width=s.tx1-s.tx0;s.height=s.ty1-s.ty0;s.components=[];n.push(s)}}t.tiles=n;const o=i.Csiz;for(let t=0,i=o;t<i;t++){const i=e[t];for(let e=0,r=n.length;e<r;e++){const r={};s=n[e];r.tcx0=Math.ceil(s.tx0/i.XRsiz);r.tcy0=Math.ceil(s.ty0/i.YRsiz);r.tcx1=Math.ceil(s.tx1/i.XRsiz);r.tcy1=Math.ceil(s.ty1/i.YRsiz);r.width=r.tcx1-r.tcx0;r.height=r.tcy1-r.tcy0;s.components[t]=r}}}function u(t,e,i){const n=e.codingStyleParameters;const s={};if(!n.entropyCoderWithCustomPrecincts){s.PPx=15;s.PPy=15}else{s.PPx=n.precinctsSizes[i].PPx;s.PPy=n.precinctsSizes[i].PPy}s.xcb_=i>0?Math.min(n.xcb,s.PPx-1):Math.min(n.xcb,s.PPx);s.ycb_=i>0?Math.min(n.ycb,s.PPy-1):Math.min(n.ycb,s.PPy);return s}function f(t,e,i){const n=1<<i.PPx;const s=1<<i.PPy;const r=e.resLevel===0;const a=1<<i.PPx+(r?0:-1);const o=1<<i.PPy+(r?0:-1);const c=e.trx1>e.trx0?Math.ceil(e.trx1/n)-Math.floor(e.trx0/n):0;const l=e.try1>e.try0?Math.ceil(e.try1/s)-Math.floor(e.try0/s):0;const h=c*l;e.precinctParameters={precinctWidth:n,precinctHeight:s,numprecinctswide:c,numprecinctshigh:l,numprecincts:h,precinctWidthInSubband:a,precinctHeightInSubband:o}}function d(t,e,i){const n=i.xcb_;const s=i.ycb_;const r=1<<n;const a=1<<s;const o=e.tbx0>>n;const c=e.tby0>>s;const l=e.tbx1+r-1>>n;const h=e.tby1+a-1>>s;const u=e.resolution.precinctParameters;const f=[];const d=[];let p,m,g,b;for(m=c;m<h;m++){for(p=o;p<l;p++){g={cbx:p,cby:m,tbx0:r*p,tby0:a*m,tbx1:r*(p+1),tby1:a*(m+1)};g.tbx0_=Math.max(e.tbx0,g.tbx0);g.tby0_=Math.max(e.tby0,g.tby0);g.tbx1_=Math.min(e.tbx1,g.tbx1);g.tby1_=Math.min(e.tby1,g.tby1);const t=Math.floor((g.tbx0_-e.tbx0)/u.precinctWidthInSubband);const i=Math.floor((g.tby0_-e.tby0)/u.precinctHeightInSubband);b=t+i*u.numprecinctswide;g.precinctNumber=b;g.subbandType=e.type;g.Lblock=3;if(g.tbx1_<=g.tbx0_||g.tby1_<=g.tby0_){continue}f.push(g);let n=d[b];if(n!==undefined){if(p<n.cbxMin){n.cbxMin=p}else if(p>n.cbxMax){n.cbxMax=p}if(m<n.cbyMin){n.cbxMin=m}else if(m>n.cbyMax){n.cbyMax=m}}else{d[b]=n={cbxMin:p,cbyMin:m,cbxMax:p,cbyMax:m}}g.precinct=n}}e.codeblockParameters={codeblockWidth:n,codeblockHeight:s,numcodeblockwide:l-o+1,numcodeblockhigh:h-c+1};e.codeblocks=f;e.precincts=d}function p(t,e,i){const n=[];const s=t.subbands;for(let t=0,i=s.length;t<i;t++){const i=s[t];const r=i.codeblocks;for(let t=0,i=r.length;t<i;t++){const i=r[t];if(i.precinctNumber!==e){continue}n.push(i)}}return{layerNumber:i,codeblocks:n}}function m(t){const e=t.SIZ;const i=t.currentTile.index;const n=t.tiles[i];const s=n.codingStyleDefaultParameters.layersCount;const r=e.Csiz;let o=0;for(let t=0;t<r;t++){o=Math.max(o,n.components[t].codingStyleParameters.decompositionLevelsCount)}let c=0,l=0,h=0,u=0;this.nextPacket=function t(){for(;c<s;c++){for(;l<=o;l++){for(;h<r;h++){const t=n.components[h];if(l>t.codingStyleParameters.decompositionLevelsCount){continue}const e=t.resolutions[l];const i=e.precinctParameters.numprecincts;for(;u<i;){const t=p(e,u,c);u++;return t}u=0}h=0}l=0}throw new a("Out of packets")}}function g(t){const e=t.SIZ;const i=t.currentTile.index;const n=t.tiles[i];const s=n.codingStyleDefaultParameters.layersCount;const r=e.Csiz;let o=0;for(let t=0;t<r;t++){o=Math.max(o,n.components[t].codingStyleParameters.decompositionLevelsCount)}let c=0,l=0,h=0,u=0;this.nextPacket=function t(){for(;c<=o;c++){for(;l<s;l++){for(;h<r;h++){const t=n.components[h];if(c>t.codingStyleParameters.decompositionLevelsCount){continue}const e=t.resolutions[c];const i=e.precinctParameters.numprecincts;for(;u<i;){const t=p(e,u,l);u++;return t}u=0}h=0}l=0}throw new a("Out of packets")}}function b(t){const e=t.SIZ;const i=t.currentTile.index;const n=t.tiles[i];const s=n.codingStyleDefaultParameters.layersCount;const r=e.Csiz;let o,c,l,h;let u=0;for(l=0;l<r;l++){const t=n.components[l];u=Math.max(u,t.codingStyleParameters.decompositionLevelsCount)}const f=new Int32Array(u+1);for(c=0;c<=u;++c){let t=0;for(l=0;l<r;++l){const e=n.components[l].resolutions;if(c<e.length){t=Math.max(t,e[c].precinctParameters.numprecincts)}}f[c]=t}o=0;c=0;l=0;h=0;this.nextPacket=function t(){for(;c<=u;c++){for(;h<f[c];h++){for(;l<r;l++){const t=n.components[l];if(c>t.codingStyleParameters.decompositionLevelsCount){continue}const e=t.resolutions[c];const i=e.precinctParameters.numprecincts;if(h>=i){continue}for(;o<s;){const t=p(e,h,o);o++;return t}o=0}l=0}h=0}throw new a("Out of packets")}}function v(t){const e=t.SIZ;const i=t.currentTile.index;const n=t.tiles[i];const s=n.codingStyleDefaultParameters.layersCount;const r=e.Csiz;const o=A(n);const c=o;let l=0,h=0,u=0,f=0,d=0;this.nextPacket=function t(){for(;d<c.maxNumHigh;d++){for(;f<c.maxNumWide;f++){for(;u<r;u++){const t=n.components[u];const e=t.codingStyleParameters.decompositionLevelsCount;for(;h<=e;h++){const e=t.resolutions[h];const i=o.components[u].resolutions[h];const n=y(f,d,i,c,e);if(n===null){continue}for(;l<s;){const t=p(e,n,l);l++;return t}l=0}h=0}u=0}f=0}throw new a("Out of packets")}}function w(t){const e=t.SIZ;const i=t.currentTile.index;const n=t.tiles[i];const s=n.codingStyleDefaultParameters.layersCount;const r=e.Csiz;const o=A(n);let c=0,l=0,h=0,u=0,f=0;this.nextPacket=function t(){for(;h<r;++h){const t=n.components[h];const e=o.components[h];const i=t.codingStyleParameters.decompositionLevelsCount;for(;f<e.maxNumHigh;f++){for(;u<e.maxNumWide;u++){for(;l<=i;l++){const i=t.resolutions[l];const n=e.resolutions[l];const r=y(u,f,n,e,i);if(r===null){continue}for(;c<s;){const t=p(i,r,c);c++;return t}c=0}l=0}u=0}f=0}throw new a("Out of packets")}}function y(t,e,i,n,s){const r=t*n.minWidth;const a=e*n.minHeight;if(r%i.width!==0||a%i.height!==0){return null}const o=a/i.width*s.precinctParameters.numprecinctswide;return r/i.height+o}function A(t){const e=t.components.length;let i=Number.MAX_VALUE;let n=Number.MAX_VALUE;let s=0;let r=0;const a=new Array(e);for(let o=0;o<e;o++){const e=t.components[o];const c=e.codingStyleParameters.decompositionLevelsCount;const l=new Array(c+1);let h=Number.MAX_VALUE;let u=Number.MAX_VALUE;let f=0;let d=0;let p=1;for(let t=c;t>=0;--t){const i=e.resolutions[t];const n=p*i.precinctParameters.precinctWidth;const s=p*i.precinctParameters.precinctHeight;h=Math.min(h,n);u=Math.min(u,s);f=Math.max(f,i.precinctParameters.numprecinctswide);d=Math.max(d,i.precinctParameters.numprecinctshigh);l[t]={width:n,height:s};p<<=1}i=Math.min(i,h);n=Math.min(n,u);s=Math.max(s,f);r=Math.max(r,d);a[o]={resolutions:l,minWidth:h,minHeight:u,maxNumWide:f,maxNumHigh:d}}return{components:a,minWidth:i,minHeight:n,maxNumWide:s,maxNumHigh:r}}function k(t){const e=t.SIZ;const i=t.currentTile.index;const n=t.tiles[i];const s=e.Csiz;for(let e=0;e<s;e++){const i=n.components[e];const s=i.codingStyleParameters.decompositionLevelsCount;const r=[];const a=[];for(let e=0;e<=s;e++){const n=u(t,i,e);const o={};const c=1<<s-e;o.trx0=Math.ceil(i.tcx0/c);o.try0=Math.ceil(i.tcy0/c);o.trx1=Math.ceil(i.tcx1/c);o.try1=Math.ceil(i.tcy1/c);o.resLevel=e;f(t,o,n);r.push(o);let l;if(e===0){l={};l.type="LL";l.tbx0=Math.ceil(i.tcx0/c);l.tby0=Math.ceil(i.tcy0/c);l.tbx1=Math.ceil(i.tcx1/c);l.tby1=Math.ceil(i.tcy1/c);l.resolution=o;d(t,l,n);a.push(l);o.subbands=[l]}else{const r=1<<s-e+1;const c=[];l={};l.type="HL";l.tbx0=Math.ceil(i.tcx0/r-.5);l.tby0=Math.ceil(i.tcy0/r);l.tbx1=Math.ceil(i.tcx1/r-.5);l.tby1=Math.ceil(i.tcy1/r);l.resolution=o;d(t,l,n);a.push(l);c.push(l);l={};l.type="LH";l.tbx0=Math.ceil(i.tcx0/r);l.tby0=Math.ceil(i.tcy0/r-.5);l.tbx1=Math.ceil(i.tcx1/r);l.tby1=Math.ceil(i.tcy1/r-.5);l.resolution=o;d(t,l,n);a.push(l);c.push(l);l={};l.type="HH";l.tbx0=Math.ceil(i.tcx0/r-.5);l.tby0=Math.ceil(i.tcy0/r-.5);l.tbx1=Math.ceil(i.tcx1/r-.5);l.tby1=Math.ceil(i.tcy1/r-.5);l.resolution=o;d(t,l,n);a.push(l);c.push(l);o.subbands=c}}i.resolutions=r;i.subbands=a}const r=n.codingStyleDefaultParameters.progressionOrder;switch(r){case 0:n.packetsIterator=new m(t);break;case 1:n.packetsIterator=new g(t);break;case 2:n.packetsIterator=new b(t);break;case 3:n.packetsIterator=new v(t);break;case 4:n.packetsIterator=new w(t);break;default:throw new a(`Unsupported progression order ${r}`)}}function x(t,e,i,n){let r=0;let o,c=0,l=false;function h(t){while(c<t){const t=e[i+r];r++;if(l){o=o<<7|t;c+=7;l=false}else{o=o<<8|t;c+=8}if(t===255){l=true}}c-=t;return o>>>c&(1<<t)-1}function u(t){if(e[i+r-1]===255&&e[i+r]===t){f(1);return true}else if(e[i+r]===255&&e[i+r+1]===t){f(2);return true}return false}function f(t){r+=t}function d(){c=0;if(l){r++;l=false}}function p(){if(h(1)===0){return 1}if(h(1)===0){return 2}let t=h(2);if(t<3){return t+3}t=h(5);if(t<31){return t+6}t=h(7);return t+37}const m=t.currentTile.index;const g=t.tiles[m];const b=t.COD.sopMarkerUsed;const v=t.COD.ephMarkerUsed;const w=g.packetsIterator;while(r<n){d();if(b&&u(145)){f(4)}const t=w.nextPacket();if(!h(1)){continue}const n=t.layerNumber,o=[];let c;for(let e=0,i=t.codeblocks.length;e<i;e++){c=t.codeblocks[e];let i=c.precinct;const r=c.cbx-i.cbxMin;const l=c.cby-i.cbyMin;let u=false;let f=false;let d,m;if(c.included!==undefined){u=!!h(1)}else{i=c.precinct;let t;if(i.inclusionTree!==undefined){t=i.inclusionTree}else{const e=i.cbxMax-i.cbxMin+1;const s=i.cbyMax-i.cbyMin+1;t=new O(e,s,n);m=new C(e,s);i.inclusionTree=t;i.zeroBitPlanesTree=m;for(let t=0;t<n;t++){if(h(1)!==0){throw new a("Invalid tag tree")}}}if(t.reset(r,l,n)){while(true){if(h(1)){d=!t.nextLevel();if(d){c.included=true;u=f=true;break}}else{t.incrementValue(n);break}}}}if(!u){continue}if(f){m=i.zeroBitPlanesTree;m.reset(r,l);while(true){if(h(1)){d=!m.nextLevel();if(d){break}}else{m.incrementValue()}}c.zeroBitPlanes=m.value}const g=p();while(h(1)){c.Lblock++}const b=(0,s.log2)(g);const v=(g<1<<b?b-1:b)+c.Lblock;const w=h(v);o.push({codeblock:c,codingpasses:g,dataLength:w})}d();if(v){u(146)}while(o.length>0){const t=o.shift();c=t.codeblock;if(c.data===undefined){c.data=[]}c.data.push({data:e,start:i+r,end:i+r+t.dataLength,codingpasses:t.codingpasses});r+=t.dataLength}}return r}function S(t,e,i,n,s,a,o,c,l){const h=n.tbx0;const u=n.tby0;const f=n.tbx1-n.tbx0;const d=n.codeblocks;const p=n.type.charAt(0)==="H"?1:0;const m=n.type.charAt(1)==="H"?e:0;for(let i=0,g=d.length;i<g;++i){const g=d[i];const b=g.tbx1_-g.tbx0_;const v=g.tby1_-g.tby0_;if(b===0||v===0){continue}if(g.data===undefined){continue}const w=new T(b,v,g.subbandType,g.zeroBitPlanes,a);let y=2;const A=g.data;let k=0,x=0;let S,M,_;for(S=0,M=A.length;S<M;S++){_=A[S];k+=_.end-_.start;x+=_.codingpasses}const E=new Uint8Array(k);let C=0;for(S=0,M=A.length;S<M;S++){_=A[S];const t=_.data.subarray(_.start,_.end);E.set(t,C);C+=t.length}const O=new r.ArithmeticDecoder(E,0,k);w.setDecoder(O);for(S=0;S<x;S++){switch(y){case 0:w.runSignificancePropagationPass();break;case 1:w.runMagnitudeRefinementPass();break;case 2:w.runCleanupPass();if(c){w.checkSegmentationSymbol()}break}if(l){w.reset()}y=(y+1)%3}let I=g.tbx0_-h+(g.tby0_-u)*f;const F=w.coefficentsSign;const P=w.coefficentsMagnitude;const D=w.bitsDecoded;const R=o?0:.5;let N,j,L;C=0;const U=n.type!=="LL";for(S=0;S<v;S++){const i=I/f|0;const n=2*i*(e-f)+p+m;for(N=0;N<b;N++){j=P[C];if(j!==0){j=(j+R)*s;if(F[C]!==0){j=-j}L=D[C];const e=U?n+(I<<1):I;if(o&&L>=a){t[e]=j}else{t[e]=j*(1<<a-L)}}I++;C++}I+=f-b}}}function M(t,e,i){const n=e.components[i];const s=n.codingStyleParameters;const r=n.quantizationParameters;const a=s.decompositionLevelsCount;const c=r.SPqcds;const l=r.scalarExpounded;const h=r.guardBits;const u=s.segmentationSymbolUsed;const f=s.resetContextProbabilities;const d=t.components[i].precision;const p=s.reversibleTransformation;const m=p?new P:new F;const g=[];let b=0;for(let t=0;t<=a;t++){const e=n.resolutions[t];const i=e.trx1-e.trx0;const s=e.try1-e.try0;const r=new Float32Array(i*s);for(let n=0,a=e.subbands.length;n<a;n++){let a,m;if(!l){a=c[0].mu;m=c[0].epsilon+(t>0?1-t:0)}else{a=c[b].mu;m=c[b].epsilon;b++}const g=e.subbands[n];const v=o[g.type];const w=p?1:2**(d+v-m)*(1+a/2048);const y=h+m-1;S(r,i,s,g,w,y,p,u,f)}g.push({width:i,height:s,items:r})}const v=m.calculate(g,n.tcx0,n.tcy0);return{left:n.tcx0,top:n.tcy0,width:v.width,height:v.height,items:v.items}}function _(t){const e=t.SIZ;const i=t.components;const n=e.Csiz;const s=[];for(let e=0,r=t.tiles.length;e<r;e++){const r=t.tiles[e];const a=[];for(let e=0;e<n;e++){a[e]=M(t,r,e)}const o=a[0];const c=new Uint8ClampedArray(o.items.length*n);const l={left:o.left,top:o.top,width:o.width,height:o.height,items:c};let h,u;let f=0,d,p,m,g,b;if(r.codingStyleDefaultParameters.multipleComponentTransform){const t=n===4;const e=a[0].items;const s=a[1].items;const o=a[2].items;const l=t?a[3].items:null;h=i[0].precision-8;u=(128<<h)+.5;const v=r.components[0];const w=n-3;p=e.length;if(!v.codingStyleParameters.reversibleTransformation){for(d=0;d<p;d++,f+=w){m=e[d]+u;g=s[d];b=o[d];c[f++]=m+1.402*b>>h;c[f++]=m-.34413*g-.71414*b>>h;c[f++]=m+1.772*g>>h}}else{for(d=0;d<p;d++,f+=w){m=e[d]+u;g=s[d];b=o[d];const t=m-(b+g>>2);c[f++]=t+b>>h;c[f++]=t>>h;c[f++]=t+g>>h}}if(t){for(d=0,f=3;d<p;d++,f+=4){c[f]=l[d]+u>>h}}}else{for(let t=0;t<n;t++){const e=a[t].items;h=i[t].precision-8;u=(128<<h)+.5;for(f=t,d=0,p=e.length;d<p;d++){c[f]=e[d]+u>>h;f+=n}}}s.push(l)}return s}function E(t,e){const i=t.SIZ;const n=i.Csiz;const s=t.tiles[e];for(let e=0;e<n;e++){const i=s.components[e];const n=t.currentTile.QCC[e]!==undefined?t.currentTile.QCC[e]:t.currentTile.QCD;i.quantizationParameters=n;const r=t.currentTile.COC[e]!==undefined?t.currentTile.COC[e]:t.currentTile.COD;i.codingStyleParameters=r}s.codingStyleDefaultParameters=t.currentTile.COD}class C{constructor(t,e){const i=(0,s.log2)(Math.max(t,e))+1;this.levels=[];for(let n=0;n<i;n++){const i={width:t,height:e,items:[]};this.levels.push(i);t=Math.ceil(t/2);e=Math.ceil(e/2)}}reset(t,e){let i=0,n=0,s;while(i<this.levels.length){s=this.levels[i];const r=t+e*s.width;if(s.items[r]!==undefined){n=s.items[r];break}s.index=r;t>>=1;e>>=1;i++}i--;s=this.levels[i];s.items[s.index]=n;this.currentLevel=i;delete this.value}incrementValue(){const t=this.levels[this.currentLevel];t.items[t.index]++}nextLevel(){let t=this.currentLevel;let e=this.levels[t];const i=e.items[e.index];t--;if(t<0){this.value=i;return false}this.currentLevel=t;e=this.levels[t];e.items[e.index]=i;return true}}class O{constructor(t,e,i){const n=(0,s.log2)(Math.max(t,e))+1;this.levels=[];for(let s=0;s<n;s++){const n=new Uint8Array(t*e);for(let t=0,e=n.length;t<e;t++){n[t]=i}const s={width:t,height:e,items:n};this.levels.push(s);t=Math.ceil(t/2);e=Math.ceil(e/2)}}reset(t,e,i){let n=0;while(n<this.levels.length){const s=this.levels[n];const r=t+e*s.width;s.index=r;const a=s.items[r];if(a===255){break}if(a>i){this.currentLevel=n;this.propagateValues();return false}t>>=1;e>>=1;n++}this.currentLevel=n-1;return true}incrementValue(t){const e=this.levels[this.currentLevel];e.items[e.index]=t+1;this.propagateValues()}propagateValues(){let t=this.currentLevel;let e=this.levels[t];const i=e.items[e.index];while(--t>=0){e=this.levels[t];e.items[e.index]=i}}nextLevel(){let t=this.currentLevel;let e=this.levels[t];const i=e.items[e.index];e.items[e.index]=255;t--;if(t<0){return false}this.currentLevel=t;e=this.levels[t];e.items[e.index]=i;return true}}const T=function t(){const e=17;const i=18;const n=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]);const s=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]);const r=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]);class o{constructor(t,e,i,a,o){this.width=t;this.height=e;let c;if(i==="HH"){c=r}else if(i==="HL"){c=s}else{c=n}this.contextLabelTable=c;const l=t*e;this.neighborsSignificance=new Uint8Array(l);this.coefficentsSign=new Uint8Array(l);let h;if(o>14){h=new Uint32Array(l)}else if(o>6){h=new Uint16Array(l)}else{h=new Uint8Array(l)}this.coefficentsMagnitude=h;this.processingFlags=new Uint8Array(l);const u=new Uint8Array(l);if(a!==0){for(let t=0;t<l;t++){u[t]=a}}this.bitsDecoded=u;this.reset()}setDecoder(t){this.decoder=t}reset(){this.contexts=new Int8Array(19);this.contexts[0]=4<<1|0;this.contexts[e]=46<<1|0;this.contexts[i]=3<<1|0}setNeighborsSignificance(t,e,i){const n=this.neighborsSignificance;const s=this.width,r=this.height;const a=e>0;const o=e+1<s;let c;if(t>0){c=i-s;if(a){n[c-1]+=16}if(o){n[c+1]+=16}n[c]+=4}if(t+1<r){c=i+s;if(a){n[c-1]+=16}if(o){n[c+1]+=16}n[c]+=4}if(a){n[i-1]+=1}if(o){n[i+1]+=1}n[i]|=128}runSignificancePropagationPass(){const t=this.decoder;const e=this.width,i=this.height;const n=this.coefficentsMagnitude;const s=this.coefficentsSign;const r=this.neighborsSignificance;const a=this.processingFlags;const o=this.contexts;const c=this.contextLabelTable;const l=this.bitsDecoded;const h=~1;const u=1;const f=2;for(let d=0;d<i;d+=4){for(let p=0;p<e;p++){let m=d*e+p;for(let g=0;g<4;g++,m+=e){const e=d+g;if(e>=i){break}a[m]&=h;if(n[m]||!r[m]){continue}const b=c[r[m]];const v=t.readBit(o,b);if(v){const t=this.decodeSignBit(e,p,m);s[m]=t;n[m]=1;this.setNeighborsSignificance(e,p,m);a[m]|=f}l[m]++;a[m]|=u}}}}decodeSignBit(t,e,i){const n=this.width,s=this.height;const r=this.coefficentsMagnitude;const a=this.coefficentsSign;let o,c,l,h;let u,f;h=e>0&&r[i-1]!==0;if(e+1<n&&r[i+1]!==0){l=a[i+1];if(h){c=a[i-1];o=1-l-c}else{o=1-l-l}}else if(h){c=a[i-1];o=1-c-c}else{o=0}const d=3*o;h=t>0&&r[i-n]!==0;if(t+1<s&&r[i+n]!==0){l=a[i+n];if(h){c=a[i-n];o=1-l-c+d}else{o=1-l-l+d}}else if(h){c=a[i-n];o=1-c-c+d}else{o=d}if(o>=0){u=9+o;f=this.decoder.readBit(this.contexts,u)}else{u=9-o;f=this.decoder.readBit(this.contexts,u)^1}return f}runMagnitudeRefinementPass(){const t=this.decoder;const e=this.width,i=this.height;const n=this.coefficentsMagnitude;const s=this.neighborsSignificance;const r=this.contexts;const a=this.bitsDecoded;const o=this.processingFlags;const c=1;const l=2;const h=e*i;const u=e*4;for(let i=0,f;i<h;i=f){f=Math.min(h,i+u);for(let h=0;h<e;h++){for(let u=i+h;u<f;u+=e){if(!n[u]||(o[u]&c)!==0){continue}let e=16;if((o[u]&l)!==0){o[u]^=l;const t=s[u]&127;e=t===0?15:14}const i=t.readBit(r,e);n[u]=n[u]<<1|i;a[u]++;o[u]|=c}}}}runCleanupPass(){const t=this.decoder;const n=this.width,s=this.height;const r=this.neighborsSignificance;const a=this.coefficentsMagnitude;const o=this.coefficentsSign;const c=this.contexts;const l=this.contextLabelTable;const h=this.bitsDecoded;const u=this.processingFlags;const f=1;const d=2;const p=n;const m=n*2;const g=n*3;let b;for(let v=0;v<s;v=b){b=Math.min(v+4,s);const w=v*n;const y=v+3<s;for(let s=0;s<n;s++){const A=w+s;const k=y&&u[A]===0&&u[A+p]===0&&u[A+m]===0&&u[A+g]===0&&r[A]===0&&r[A+p]===0&&r[A+m]===0&&r[A+g]===0;let x=0,S=A;let M=v,_;if(k){const r=t.readBit(c,i);if(!r){h[A]++;h[A+p]++;h[A+m]++;h[A+g]++;continue}x=t.readBit(c,e)<<1|t.readBit(c,e);if(x!==0){M=v+x;S+=x*n}_=this.decodeSignBit(M,s,S);o[S]=_;a[S]=1;this.setNeighborsSignificance(M,s,S);u[S]|=d;S=A;for(let t=v;t<=M;t++,S+=n){h[S]++}x++}for(M=v+x;M<b;M++,S+=n){if(a[S]||(u[S]&f)!==0){continue}const e=l[r[S]];const i=t.readBit(c,e);if(i===1){_=this.decodeSignBit(M,s,S);o[S]=_;a[S]=1;this.setNeighborsSignificance(M,s,S);u[S]|=d}h[S]++}}}}checkSegmentationSymbol(){const t=this.decoder;const i=this.contexts;const n=t.readBit(i,e)<<3|t.readBit(i,e)<<2|t.readBit(i,e)<<1|t.readBit(i,e);if(n!==10){throw new a("Invalid segmentation symbol")}}}return o}();class I{constructor(){if(this.constructor===I){(0,n.unreachable)("Cannot initialize Transform.")}}calculate(t,e,i){let n=t[0];for(let s=1,r=t.length;s<r;s++){n=this.iterate(n,t[s],e,i)}return n}extend(t,e,i){let n=e-1,s=e+1;let r=e+i-2,a=e+i;t[n--]=t[s++];t[a++]=t[r--];t[n--]=t[s++];t[a++]=t[r--];t[n--]=t[s++];t[a++]=t[r--];t[n]=t[s];t[a]=t[r]}filter(t,e,i){(0,n.unreachable)("Abstract method `filter` called")}iterate(t,e,i,n){const s=t.width,r=t.height;let a=t.items;const o=e.width;const c=e.height;const l=e.items;let h,u,f,d,p,m;for(f=0,h=0;h<r;h++){d=h*2*o;for(u=0;u<s;u++,f++,d+=2){l[d]=a[f]}}a=t.items=null;const g=4;const b=new Float32Array(o+2*g);if(o===1){if((i&1)!==0){for(m=0,f=0;m<c;m++,f+=o){l[f]*=.5}}}else{for(m=0,f=0;m<c;m++,f+=o){b.set(l.subarray(f,f+o),g);this.extend(b,g,o);this.filter(b,g,o);l.set(b.subarray(g,g+o),f)}}let v=16;const w=[];for(h=0;h<v;h++){w.push(new Float32Array(c+2*g))}let y,A=0;t=g+c;if(c===1){if((n&1)!==0){for(p=0;p<o;p++){l[p]*=.5}}}else{for(p=0;p<o;p++){if(A===0){v=Math.min(o-p,v);for(f=p,d=g;d<t;f+=o,d++){for(y=0;y<v;y++){w[y][d]=l[f+y]}}A=v}A--;const e=w[A];this.extend(e,g,c);this.filter(e,g,c);if(A===0){f=p-v+1;for(d=g;d<t;f+=o,d++){for(y=0;y<v;y++){l[f+y]=w[y][d]}}}}}return{width:o,height:c,items:l}}}class F extends I{filter(t,e,i){const n=i>>1;e|=0;let s,r,a,o;const c=-1.586134342059924;const l=-.052980118572961;const h=.882911075530934;const u=.443506852043971;const f=1.230174104914001;const d=1/f;s=e-3;for(r=n+4;r--;s+=2){t[s]*=d}s=e-2;a=u*t[s-1];for(r=n+3;r--;s+=2){o=u*t[s+1];t[s]=f*t[s]-a-o;if(r--){s+=2;a=u*t[s+1];t[s]=f*t[s]-a-o}else{break}}s=e-1;a=h*t[s-1];for(r=n+2;r--;s+=2){o=h*t[s+1];t[s]-=a+o;if(r--){s+=2;a=h*t[s+1];t[s]-=a+o}else{break}}s=e;a=l*t[s-1];for(r=n+1;r--;s+=2){o=l*t[s+1];t[s]-=a+o;if(r--){s+=2;a=l*t[s+1];t[s]-=a+o}else{break}}if(n!==0){s=e+1;a=c*t[s-1];for(r=n;r--;s+=2){o=c*t[s+1];t[s]-=a+o;if(r--){s+=2;a=c*t[s+1];t[s]-=a+o}else{break}}}}}class P extends I{filter(t,e,i){const n=i>>1;e|=0;let s,r;for(s=e,r=n+1;r--;s+=2){t[s]-=t[s-1]+t[s+1]+2>>2}for(s=e+1,r=n;r--;s+=2){t[s]+=t[s-1]+t[s+1]>>1}}}},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.LZWStream=void 0;var n=i(148);class s extends n.DecodeStream{constructor(t,e,i){super(e);this.str=t;this.dict=t.dict;this.cachedData=0;this.bitsCached=0;const n=4096;const s={earlyChange:i,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(n),dictionaryLengths:new Uint16Array(n),dictionaryPrevCodes:new Uint16Array(n),currentSequence:new Uint8Array(n),currentSequenceLength:0};for(let t=0;t<256;++t){s.dictionaryValues[t]=t;s.dictionaryLengths[t]=1}this.lzwState=s}readBits(t){let e=this.bitsCached;let i=this.cachedData;while(e<t){const t=this.str.getByte();if(t===-1){this.eof=true;return null}i=i<<8|t;e+=8}this.bitsCached=e-=t;this.cachedData=i;this.lastCode=null;return i>>>e&(1<<t)-1}readBlock(){const t=512,e=t;let i=t*2;let n,s,r;const a=this.lzwState;if(!a){return}const o=a.earlyChange;let c=a.nextCode;const l=a.dictionaryValues;const h=a.dictionaryLengths;const u=a.dictionaryPrevCodes;let f=a.codeLength;let d=a.prevCode;const p=a.currentSequence;let m=a.currentSequenceLength;let g=0;let b=this.bufferLength;let v=this.ensureBuffer(this.bufferLength+i);for(n=0;n<t;n++){const t=this.readBits(f);const n=m>0;if(t<256){p[0]=t;m=1}else if(t>=258){if(t<c){m=h[t];for(s=m-1,r=t;s>=0;s--){p[s]=l[r];r=u[r]}}else{p[m++]=p[0]}}else if(t===256){f=9;c=258;m=0;continue}else{this.eof=true;delete this.lzwState;break}if(n){u[c]=d;h[c]=h[d]+1;l[c]=p[0];c++;f=c+o&c+o-1?f:Math.min(Math.log(c+o)/.6931471805599453+1,12)|0}d=t;g+=m;if(i<g){do{i+=e}while(i<g);v=this.ensureBuffer(this.bufferLength+i)}for(s=0;s<m;s++){v[b++]=p[s]}}a.nextCode=c;a.codeLength=f;a.prevCode=d;a.currentSequenceLength=m;this.bufferLength=b}}e.LZWStream=s},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.PredictorStream=void 0;var n=i(148);var s=i(134);var r=i(2);class a extends n.DecodeStream{constructor(t,e,i){super(e);if(!(i instanceof s.Dict)){return t}const n=this.predictor=i.get("Predictor")||1;if(n<=1){return t}if(n!==2&&(n<10||n>15)){throw new r.FormatError(`Unsupported predictor: ${n}`)}if(n===2){this.readBlock=this.readBlockTiff}else{this.readBlock=this.readBlockPng}this.str=t;this.dict=t.dict;const a=this.colors=i.get("Colors")||1;const o=this.bits=i.get("BPC","BitsPerComponent")||8;const c=this.columns=i.get("Columns")||1;this.pixBytes=a*o+7>>3;this.rowBytes=c*a*o+7>>3;return this}readBlockTiff(){const t=this.rowBytes;const e=this.bufferLength;const i=this.ensureBuffer(e+t);const n=this.bits;const s=this.colors;const r=this.str.getBytes(t);this.eof=!r.length;if(this.eof){return}let a=0,o=0;let c=0,l=0;let h=e;let u;if(n===1&&s===1){for(u=0;u<t;++u){let t=r[u]^a;t^=t>>1;t^=t>>2;t^=t>>4;a=(t&1)<<7;i[h++]=t}}else if(n===8){for(u=0;u<s;++u){i[h++]=r[u]}for(;u<t;++u){i[h]=i[h-s]+r[u];h++}}else if(n===16){const e=s*2;for(u=0;u<e;++u){i[h++]=r[u]}for(;u<t;u+=2){const t=((r[u]&255)<<8)+(r[u+1]&255)+((i[h-e]&255)<<8)+(i[h-e+1]&255);i[h++]=t>>8&255;i[h++]=t&255}}else{const t=new Uint8Array(s+1);const h=(1<<n)-1;let f=0,d=e;const p=this.columns;for(u=0;u<p;++u){for(let e=0;e<s;++e){if(c<n){a=a<<8|r[f++]&255;c+=8}t[e]=t[e]+(a>>c-n)&h;c-=n;o=o<<n|t[e];l+=n;if(l>=8){i[d++]=o>>l-8&255;l-=8}}}if(l>0){i[d++]=(o<<8-l)+(a&(1<<8-l)-1)}}this.bufferLength+=t}readBlockPng(){const t=this.rowBytes;const e=this.pixBytes;const i=this.str.getByte();const n=this.str.getBytes(t);this.eof=!n.length;if(this.eof){return}const s=this.bufferLength;const a=this.ensureBuffer(s+t);let o=a.subarray(s-t,s);if(o.length===0){o=new Uint8Array(t)}let c,l=s,h,u;switch(i){case 0:for(c=0;c<t;++c){a[l++]=n[c]}break;case 1:for(c=0;c<e;++c){a[l++]=n[c]}for(;c<t;++c){a[l]=a[l-e]+n[c]&255;l++}break;case 2:for(c=0;c<t;++c){a[l++]=o[c]+n[c]&255}break;case 3:for(c=0;c<e;++c){a[l++]=(o[c]>>1)+n[c]}for(;c<t;++c){a[l]=(o[c]+a[l-e]>>1)+n[c]&255;l++}break;case 4:for(c=0;c<e;++c){h=o[c];u=n[c];a[l++]=h+u}for(;c<t;++c){h=o[c];const t=o[c-e];const i=a[l-e];const s=i+h-t;let r=s-i;if(r<0){r=-r}let f=s-h;if(f<0){f=-f}let d=s-t;if(d<0){d=-d}u=n[c];if(r<=f&&r<=d){a[l++]=i+u}else if(f<=d){a[l++]=h+u}else{a[l++]=t+u}}break;default:throw new r.FormatError(`Unsupported predictor: ${i}`)}this.bufferLength+=t}}e.PredictorStream=a},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.RunLengthStream=void 0;var n=i(148);class s extends n.DecodeStream{constructor(t,e){super(e);this.str=t;this.dict=t.dict}readBlock(){const t=this.str.getBytes(2);if(!t||t.length<2||t[0]===128){this.eof=true;return}let e;let i=this.bufferLength;let n=t[0];if(n<128){e=this.ensureBuffer(i+n+1);e[i++]=t[1];if(n>0){const t=this.str.getBytes(n);e.set(t,i);i+=n}}else{n=257-n;const s=t[1];e=this.ensureBuffer(i+n+1);for(let t=0;t<n;t++){e[i++]=s}}this.bufferLength=i}}e.RunLengthStream=s},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.Font=e.ErrorFont=void 0;var n=i(2);var s=i(164);var r=i(167);var a=i(169);var o=i(168);var c=i(166);var l=i(170);var h=i(171);var u=i(172);var f=i(173);var d=i(174);var p=i(175);var m=i(145);var g=i(176);var b=i(135);var v=i(139);var w=i(177);const y=[[57344,63743],[1048576,1114109]];const A=1e3;const k=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","fontType","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"];const x=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function S(t){if(!t.fontMatrix){return}if(t.fontMatrix[0]===n.FONT_IDENTITY_MATRIX[0]){return}const e=.001/t.fontMatrix[0];const i=t.widths;for(const t in i){i[t]*=e}t.defaultWidth*=e}function M(t,e){if(t.isInternalFont){return}if(t.hasIncludedToUnicodeMap){return}if(e===t.defaultEncoding){return}if(t.toUnicode instanceof h.IdentityToUnicodeMap){return}const i=[],n=(0,o.getGlyphsUnicode)();for(const s in e){if(t.hasEncoding){if(t.differences.length===0||t.differences[s]!==undefined){continue}}const r=e[s];const o=(0,a.getUnicodeForGlyph)(r,n);if(o!==-1){i[s]=String.fromCharCode(o)}}if(i.length>0){t.toUnicode.amend(i)}}function _(t){if(!t.fallbackToUnicode){return}if(t.toUnicode instanceof h.IdentityToUnicodeMap){return}const e=[];for(const i in t.fallbackToUnicode){if(t.toUnicode.has(i)){continue}e[i]=t.fallbackToUnicode[i]}if(e.length>0){t.toUnicode.amend(e)}}class E{constructor(t,e,i,n,s,r,o,c,l){this.originalCharCode=t;this.fontChar=e;this.unicode=i;this.accent=n;this.width=s;this.vmetric=r;this.operatorListId=o;this.isSpace=c;this.isInFont=l;const h=(0,a.getCharUnicodeCategory)(i);this.isWhitespace=h.isWhitespace;this.isZeroWidthDiacritic=h.isZeroWidthDiacritic;this.isInvisibleFormatMark=h.isInvisibleFormatMark}}function C(t,e){return(t<<8)+e}function O(t,e,i){t[e+1]=i;t[e]=i>>>8}function T(t,e){const i=(t<<8)+e;return i&1<<15?i-65536:i}function I(t,e,i,n){return(t<<24)+(e<<16)+(i<<8)+n}function F(t){return String.fromCharCode(t>>8&255,t&255)}function P(t){if(t>32767){t=32767}else if(t<-32768){t=-32768}return String.fromCharCode(t>>8&255,t&255)}function D(t){const e=t.peekBytes(4);return(0,b.readUint32)(e,0)===65536||(0,n.bytesToString)(e)==="true"}function R(t){const e=t.peekBytes(4);return(0,n.bytesToString)(e)==="ttcf"}function N(t){const e=t.peekBytes(4);return(0,n.bytesToString)(e)==="OTTO"}function j(t){const e=t.peekBytes(2);if(e[0]===37&&e[1]===33){return true}if(e[0]===128&&e[1]===1){return true}return false}function L(t){const e=t.peekBytes(4);if(e[0]>=1&&e[3]>=1&&e[3]<=4){return true}return false}function U(t,e){let{type:i,subtype:s,composite:r}=e;let a,o;if(D(t)||R(t)){if(r){a="CIDFontType2"}else{a="TrueType"}}else if(N(t)){if(r){a="CIDFontType2"}else{a="OpenType"}}else if(j(t)){if(r){a="CIDFontType0"}else{a=i==="MMType1"?"MMType1":"Type1"}}else if(L(t)){if(r){a="CIDFontType0";o="CIDFontType0C"}else{a=i==="MMType1"?"MMType1":"Type1";o="Type1C"}}else{(0,n.warn)("getFontFileType: Unable to detect correct font file Type/Subtype.");a=i;o=s}return[a,o]}function B(t,e){for(const i in e){t[+i]=e[i]}}function $(t,e,i){const n=[];let s;for(let i=0,r=t.length;i<r;i++){s=(0,a.getUnicodeForGlyph)(t[i],e);if(s!==-1){n[i]=s}}for(const t in i){s=(0,a.getUnicodeForGlyph)(i[t],e);if(s!==-1){n[+t]=s}}return n}function q(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;switch(e.length){case 1:return e.charCodeAt(0);case 2:return e.charCodeAt(0)<<8|e.charCodeAt(1)}const s=`Unsupported CID string (charCode ${t}): "${e}".`;if(i){throw new n.FormatError(s)}(0,n.warn)(s);return e}function G(t,e,i,s){const r=Object.create(null);const a=new Map;const o=[];const c=new Set;let l=0;const h=y[l][0];let u=h;let f=y[l][1];for(let d in t){d|=0;let p=t[d];if(!e(p)){continue}if(u>f){l++;if(l>=y.length){(0,n.warn)("Ran out of space in font private use area.");break}u=y[l][0];f=y[l][1]}const m=u++;if(p===0){p=i}let g=s.get(d);if(typeof g==="string"){g=g.codePointAt(0)}if(g&&g<h&&!c.has(p)){a.set(g,p);c.add(p)}r[m]=p;o[d]=m}return{toFontChar:o,charCodeToGlyphId:r,toUnicodeExtraMap:a,nextAvailableFontCharCode:u}}function W(t,e,i){const n=[];for(const e in t){if(t[e]>=i){continue}n.push({fontCharCode:e|0,glyphId:t[e]})}if(e){for(const[t,s]of e){if(s>=i){continue}n.push({fontCharCode:t,glyphId:s})}}if(n.length===0){n.push({fontCharCode:0,glyphId:0})}n.sort((function t(e,i){return e.fontCharCode-i.fontCharCode}));const s=[];const r=n.length;for(let t=0;t<r;){const e=n[t].fontCharCode;const i=[n[t].glyphId];++t;let a=e;while(t<r&&a+1===n[t].fontCharCode){i.push(n[t].glyphId);++a;++t;if(a===65535){break}}s.push([e,a,i])}return s}function H(t,e,i){const s=W(t,e,i);const r=s.at(-1)[1]>65535?2:1;let a="\0\0"+F(r)+"\0"+"\0"+(0,n.string32)(4+r*8);let o,c,l,h;for(o=s.length-1;o>=0;--o){if(s[o][0]<=65535){break}}const u=o+1;if(s[o][0]<65535&&s[o][1]===65535){s[o][1]=65534}const f=s[o][1]<65535?1:0;const d=u+f;const p=g.OpenTypeFileBuilder.getSearchParams(d,2);let m="";let b="";let v="";let w="";let y="";let A=0;let k,x,S,M;for(o=0,c=u;o<c;o++){k=s[o];x=k[0];S=k[1];m+=F(x);b+=F(S);M=k[2];let t=true;for(l=1,h=M.length;l<h;++l){if(M[l]!==M[l-1]+1){t=false;break}}if(!t){const t=(d-o)*2+A*2;A+=S-x+1;v+=F(0);w+=F(t);for(l=0,h=M.length;l<h;++l){y+=F(M[l])}}else{const t=M[0];v+=F(t-x&65535);w+=F(0)}}if(f>0){b+="ÿÿ";m+="ÿÿ";v+="\0";w+="\0\0"}const _="\0\0"+F(2*d)+F(p.range)+F(p.entry)+F(p.rangeShift)+b+"\0\0"+m+v+w+y;let E="";let C="";if(r>1){a+="\0"+"\0\n"+(0,n.string32)(4+r*8+4+_.length);E="";for(o=0,c=s.length;o<c;o++){k=s[o];x=k[0];M=k[2];let t=M[0];for(l=1,h=M.length;l<h;++l){if(M[l]!==M[l-1]+1){S=k[0]+l-1;E+=(0,n.string32)(x)+(0,n.string32)(S)+(0,n.string32)(t);x=S+1;t=M[l]}}E+=(0,n.string32)(x)+(0,n.string32)(k[1])+(0,n.string32)(t)}C="\0\f"+"\0\0"+(0,n.string32)(E.length+16)+"\0\0\0\0"+(0,n.string32)(E.length/12)}return a+"\0"+F(_.length+4)+_+C+E}function z(t,e){e.pos=(e.start||0)+t.offset;const i=e.getUint16();e.skip(60);const n=e.getUint16();if(i<4&&n&768){return false}const s=e.getUint16();const r=e.getUint16();if(s>r){return false}e.skip(6);const a=e.getUint16();if(a===0){return false}t.data[8]=t.data[9]=0;return true}function V(t,e,i){i=i||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};let s=0;let r=0;let o=0;let c=0;let l=null;let h=0;if(e){for(let t in e){t|=0;if(l>t||!l){l=t}if(h<t){h=t}const e=(0,a.getUnicodeRangeFor)(t);if(e<32){s|=1<<e}else if(e<64){r|=1<<e-32}else if(e<96){o|=1<<e-64}else if(e<123){c|=1<<e-96}else{throw new n.FormatError("Unicode ranges Bits > 123 are reserved for internal usage")}}if(h>65535){h=65535}}else{l=0;h=255}const u=t.bbox||[0,0,0,0];const f=i.unitsPerEm||1/(t.fontMatrix||n.FONT_IDENTITY_MATRIX)[0];const d=t.ascentScaled?1:f/A;const p=i.ascent||Math.round(d*(t.ascent||u[3]));let m=i.descent||Math.round(d*(t.descent||u[1]));if(m>0&&t.descent>0&&u[1]<0){m=-m}const g=i.yMax||p;const b=-i.yMin||-m;return"\0"+"$"+"ô"+"\0"+"\0\0"+""+"»"+"\0\0"+"\0"+""+"»"+"\0\0"+"ß"+"\x001"+""+"\0\0"+"\0\0"+String.fromCharCode(t.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,n.string32)(s)+(0,n.string32)(r)+(0,n.string32)(o)+(0,n.string32)(c)+"*21*"+F(t.italicAngle?1:0)+F(l||t.firstChar)+F(h||t.lastChar)+F(p)+F(m)+"\0d"+F(g)+F(b)+"\0\0\0\0"+"\0\0\0\0"+F(t.xHeight)+F(t.capHeight)+F(0)+F(l||t.firstChar)+"\0"}function X(t){const e=Math.floor(t.italicAngle*2**16);return"\0\0\0"+(0,n.string32)(e)+"\0\0"+"\0\0"+(0,n.string32)(t.fixedPitch?1:0)+"\0\0\0\0"+"\0\0\0\0"+"\0\0\0\0"+"\0\0\0\0"}function K(t){return t.replace(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function Y(t,e){if(!e){e=[[],[]]}const i=[e[0][0]||"Original licence",e[0][1]||t,e[0][2]||"Unknown",e[0][3]||"uniqueID",e[0][4]||t,e[0][5]||"Version 0.11",e[0][6]||K(t),e[0][7]||"Unknown",e[0][8]||"Unknown",e[0][9]||"Unknown"];const n=[];let s,r,a,o,c;for(s=0,r=i.length;s<r;s++){c=e[1][s]||i[s];const t=[];for(a=0,o=c.length;a<o;a++){t.push(F(c.charCodeAt(a)))}n.push(t.join(""))}const l=[i,n];const h=["\0","\0"];const u=["\0\0","\0"];const f=["\0\0","\t"];const d=i.length*h.length;let p="\0\0"+F(d)+F(d*12+6);let m=0;for(s=0,r=h.length;s<r;s++){const t=l[s];for(a=0,o=t.length;a<o;a++){c=t[a];const e=h[s]+u[s]+f[s]+F(a)+F(c.length)+F(m);p+=e;m+=c.length}}p+=i.join("")+n.join("");return p}class J{constructor(t,e,i){this.name=t;this.psName=null;this.mimetype=null;this.disableFontFace=false;this.loadedName=i.loadedName;this.isType3Font=i.isType3Font;this.missingFile=false;this.cssFontInfo=i.cssFontInfo;this._charsCache=Object.create(null);this._glyphCache=Object.create(null);let s=!!(i.flags&r.FontFlags.Serif);if(!s&&!i.isSimulatedFlags){const e=t.replace(/[,_]/g,"-").split("-")[0],i=(0,l.getSerifFonts)();for(const t of e.split("+")){if(i[t]){s=true;break}}}this.isSerifFont=s;this.isSymbolicFont=!!(i.flags&r.FontFlags.Symbolic);this.isMonospace=!!(i.flags&r.FontFlags.FixedPitch);let a=i.type;let o=i.subtype;this.type=a;this.subtype=o;let c="sans-serif";if(this.isMonospace){c="monospace"}else if(this.isSerifFont){c="serif"}this.fallbackName=c;this.differences=i.differences;this.widths=i.widths;this.defaultWidth=i.defaultWidth;this.composite=i.composite;this.cMap=i.cMap;this.capHeight=i.capHeight/A;this.ascent=i.ascent/A;this.descent=i.descent/A;this.lineHeight=this.ascent-this.descent;this.fontMatrix=i.fontMatrix;this.bbox=i.bbox;this.defaultEncoding=i.defaultEncoding;this.toUnicode=i.toUnicode;this.toFontChar=[];if(i.type==="Type3"){for(let t=0;t<256;t++){this.toFontChar[t]=this.differences[t]||i.defaultEncoding[t]}this.fontType=n.FontType.TYPE3;return}this.cidEncoding=i.cidEncoding||"";this.vertical=!!i.vertical;if(this.vertical){this.vmetrics=i.vmetrics;this.defaultVMetrics=i.defaultVMetrics}if(!e||e.isEmpty){if(e){(0,n.warn)('Font file is empty in "'+t+'" ('+this.loadedName+")")}this.fallbackToSystemFont(i);return}[a,o]=U(e,i);if(a!==this.type||o!==this.subtype){(0,n.info)("Inconsistent font file Type/SubType, expected: "+`${this.type}/${this.subtype} but found: ${a}/${o}.`)}let h;try{switch(a){case"MMType1":(0,n.info)("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";const s=o==="Type1C"||o==="CIDFontType0C"?new u.CFFFont(e,i):new w.Type1Font(t,e,i);S(i);h=this.convert(t,s,i);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype";h=this.checkAndRepair(t,e,i);if(this.isOpenType){S(i);a="OpenType"}break;default:throw new n.FormatError(`Font ${a} is not supported`)}}catch(t){(0,n.warn)(t);this.fallbackToSystemFont(i);return}_(i);this.data=h;this.fontType=(0,r.getFontType)(a,o,i.isStandardFont);this.fontMatrix=i.fontMatrix;this.widths=i.widths;this.defaultWidth=i.defaultWidth;this.toUnicode=i.toUnicode;this.seacMap=i.seacMap}get renderer(){const t=f.FontRendererFactory.create(this,r.SEAC_ANALYSIS_ENABLED);return(0,n.shadow)(this,"renderer",t)}exportData(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;const e=t?[...k,...x]:k;const i=Object.create(null);let n,s;for(n of e){s=this[n];if(s!==undefined){i[n]=s}}return i}fallbackToSystemFont(t){this.missingFile=true;const e=this.name;const i=this.type;const s=this.subtype;let u=(0,r.normalizeFontName)(e);const f=(0,l.getStdFontMap)(),p=(0,l.getNonStdFontMap)();const m=!!f[u];const g=!!(p[u]&&f[p[u]]);u=f[u]||p[u]||u;const b=(0,d.getFontBasicMetrics)();const v=b[u];if(v){if(isNaN(this.ascent)){this.ascent=v.ascent/A}if(isNaN(this.descent)){this.descent=v.descent/A}if(isNaN(this.capHeight)){this.capHeight=v.capHeight/A}}this.bold=/bold/gi.test(u);this.italic=/oblique|italic/gi.test(u);this.black=/Black/g.test(e);const w=/Narrow/g.test(e);this.remeasure=(!m||w)&&Object.keys(this.widths).length>0;if((m||g)&&i==="CIDFontType2"&&this.cidEncoding.startsWith("Identity-")){const i=t.cidToGidMap;const n=[];B(n,(0,l.getGlyphMapForStandardFonts)());if(/Arial-?Black/i.test(e)){B(n,(0,l.getSupplementalGlyphMapForArialBlack)())}else if(/Calibri/i.test(e)){B(n,(0,l.getSupplementalGlyphMapForCalibri)())}if(i){for(const t in n){const e=n[t];if(i[e]!==undefined){n[+t]=i[e]}}if(i.length!==this.toUnicode.length&&t.hasIncludedToUnicodeMap&&this.toUnicode instanceof h.IdentityToUnicodeMap){this.toUnicode.forEach((function(t,e){const s=n[t];if(i[s]===undefined){n[+t]=e}}))}}if(!(this.toUnicode instanceof h.IdentityToUnicodeMap)){this.toUnicode.forEach((function(t,e){n[+t]=e}))}this.toFontChar=n;this.toUnicode=new h.ToUnicodeMap(n)}else if(/Symbol/i.test(u)){this.toFontChar=$(c.SymbolSetEncoding,(0,o.getGlyphsUnicode)(),this.differences)}else if(/Dingbats/i.test(u)){if(/Wingdings/i.test(e)){(0,n.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats.")}this.toFontChar=$(c.ZapfDingbatsEncoding,(0,o.getDingbatsGlyphsUnicode)(),this.differences)}else if(m){const t=$(this.defaultEncoding,(0,o.getGlyphsUnicode)(),this.differences);if(i==="CIDFontType2"&&!this.cidEncoding.startsWith("Identity-")&&!(this.toUnicode instanceof h.IdentityToUnicodeMap)){this.toUnicode.forEach((function(e,i){t[+e]=i}))}this.toFontChar=t}else{const t=(0,o.getGlyphsUnicode)();const i=[];this.toUnicode.forEach(((e,n)=>{if(!this.composite){const i=this.differences[e]||this.defaultEncoding[e];const s=(0,a.getUnicodeForGlyph)(i,t);if(s!==-1){n=s}}i[+e]=n}));if(this.composite&&this.toUnicode instanceof h.IdentityToUnicodeMap){if(/Verdana/i.test(e)){B(i,(0,l.getGlyphMapForStandardFonts)())}}this.toFontChar=i}_(t);this.loadedName=u.split("-")[0];this.fontType=(0,r.getFontType)(i,s,t.isStandardFont)}checkAndRepair(t,e,i){const a=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function l(t,e){const i=Object.create(null);i["OS/2"]=null;i.cmap=null;i.head=null;i.hhea=null;i.hmtx=null;i.maxp=null;i.name=null;i.post=null;for(let n=0;n<e;n++){const e=f(t);if(!a.includes(e.tag)){continue}if(e.length===0){continue}i[e.tag]=e}return i}function f(t){const e=t.getString(4);const i=t.getInt32()>>>0;const n=t.getInt32()>>>0;const s=t.getInt32()>>>0;const r=t.pos;t.pos=t.start||0;t.skip(n);const a=t.getBytes(s);t.pos=r;if(e==="head"){a[8]=a[9]=a[10]=a[11]=0;a[17]|=32}return{tag:e,checksum:i,length:s,offset:n,data:a}}function d(t){return{version:t.getString(4),numTables:t.getUint16(),searchRange:t.getUint16(),entrySelector:t.getUint16(),rangeShift:t.getUint16()}}function b(t){const e=t.getString(4);(0,n.assert)(e==="ttcf","Must be a TrueType Collection font.");const i=t.getUint16();const s=t.getUint16();const r=t.getInt32()>>>0;const a=[];for(let e=0;e<r;e++){a.push(t.getInt32()>>>0)}const o={ttcTag:e,majorVersion:i,minorVersion:s,numFonts:r,offsetTable:a};switch(i){case 1:return o;case 2:o.dsigTag=t.getInt32()>>>0;o.dsigLength=t.getInt32()>>>0;o.dsigOffset=t.getInt32()>>>0;return o}throw new n.FormatError(`Invalid TrueType Collection majorVersion: ${i}.`)}function w(t,e){const{numFonts:i,offsetTable:s}=b(t);const r=e.split("+");let a;for(let o=0;o<i;o++){t.pos=(t.start||0)+s[o];const i=d(t);const c=l(t,i.numTables);if(!c.name){throw new n.FormatError('TrueType Collection font must contain a "name" table.')}const h=E(c.name);for(let t=0,n=h.length;t<n;t++){for(let n=0,s=h[t].length;n<s;n++){const s=h[t][n]&&h[t][n].replace(/\s/g,"");if(!s){continue}if(s===e){return{header:i,tables:c}}if(r.length<2){continue}for(const t of r){if(s===t){a={name:t,header:i,tables:c}}}}}}if(a){(0,n.warn)(`TrueType Collection does not contain "${e}" font, `+`falling back to "${a.name}" font instead.`);return{header:a.header,tables:a.tables}}throw new n.FormatError(`TrueType Collection does not contain "${e}" font.`)}function y(t,e,i,s){if(!t){(0,n.warn)("No cmap table available.");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:false}}let r;let a=(e.start||0)+t.offset;e.pos=a;e.skip(2);const o=e.getUint16();let c;let l=false;for(let t=0;t<o;t++){const n=e.getUint16();const r=e.getUint16();const a=e.getInt32()>>>0;let h=false;if(c&&c.platformId===n&&c.encodingId===r){continue}if(n===0&&(r===0||r===1||r===3)){h=true}else if(n===1&&r===0){h=true}else if(n===3&&r===1&&(s||!c)){h=true;if(!i){l=true}}else if(i&&n===3&&r===0){h=true;let i=true;if(t<o-1){const t=e.peekBytes(2),s=C(t[0],t[1]);if(s<n){i=false}}if(i){l=true}}if(h){c={platformId:n,encodingId:r,offset:a}}if(l){break}}if(c){e.pos=a+c.offset}if(!c||e.peekByte()===-1){(0,n.warn)("Could not find a preferred cmap table.");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:false}}const h=e.getUint16();let u=false;const f=[];let d,p;if(h===0){e.skip(2+2);for(d=0;d<256;d++){const t=e.getByte();if(!t){continue}f.push({charCode:d,glyphId:t})}u=true}else if(h===2){e.skip(2+2);const t=[];let i=0;for(let n=0;n<256;n++){const n=e.getUint16()>>3;t.push(n);i=Math.max(n,i)}const n=[];for(let t=0;t<=i;t++){n.push({firstCode:e.getUint16(),entryCount:e.getUint16(),idDelta:T(e.getByte(),e.getByte()),idRangePos:e.pos+e.getUint16()})}for(let i=0;i<256;i++){if(t[i]===0){e.pos=n[0].idRangePos+2*i;p=e.getUint16();f.push({charCode:i,glyphId:p})}else{const s=n[t[i]];for(d=0;d<s.entryCount;d++){const t=(i<<8)+d+s.firstCode;e.pos=s.idRangePos+2*d;p=e.getUint16();if(p!==0){p=(p+s.idDelta)%65536}f.push({charCode:t,glyphId:p})}}}}else if(h===4){e.skip(2+2);const t=e.getUint16()>>1;e.skip(6);const i=[];let n;for(n=0;n<t;n++){i.push({end:e.getUint16()})}e.skip(2);for(n=0;n<t;n++){i[n].start=e.getUint16()}for(n=0;n<t;n++){i[n].delta=e.getUint16()}let s=0,o;for(n=0;n<t;n++){r=i[n];const a=e.getUint16();if(!a){r.offsetIndex=-1;continue}o=(a>>1)-(t-n);r.offsetIndex=o;s=Math.max(s,o+r.end-r.start+1)}const c=[];for(d=0;d<s;d++){c.push(e.getUint16())}for(n=0;n<t;n++){r=i[n];a=r.start;const t=r.end;const e=r.delta;o=r.offsetIndex;for(d=a;d<=t;d++){if(d===65535){continue}p=o<0?d:c[o+d-a];p=p+e&65535;f.push({charCode:d,glyphId:p})}}}else if(h===6){e.skip(2+2);const t=e.getUint16();const i=e.getUint16();for(d=0;d<i;d++){p=e.getUint16();const i=t+d;f.push({charCode:i,glyphId:p})}}else if(h===12){e.skip(2+4+4);const t=e.getInt32()>>>0;for(d=0;d<t;d++){const t=e.getInt32()>>>0;const i=e.getInt32()>>>0;let n=e.getInt32()>>>0;for(let e=t;e<=i;e++){f.push({charCode:e,glyphId:n++})}}}else{(0,n.warn)("cmap table has unsupported format: "+h);return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:false}}f.sort((function(t,e){return t.charCode-e.charCode}));for(let t=1;t<f.length;t++){if(f[t-1].charCode===f[t].charCode){f.splice(t,1);t--}}return{platformId:c.platformId,encodingId:c.encodingId,mappings:f,hasShortCmap:u}}function A(t,e,i,s,r,a){if(!e){if(i){i.data=null}return}t.pos=(t.start||0)+e.offset;t.pos+=4;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;const o=t.getUint16();t.pos+=8;t.pos+=2;let c=t.getUint16();if(o!==0){const t=C(s.data[44],s.data[45]);if(!(t&2)){e.data[22]=0;e.data[23]=0}}if(c>r){(0,n.info)(`The numOfMetrics (${c}) should not be `+`greater than the numGlyphs (${r}).`);c=r;e.data[34]=(c&65280)>>8;e.data[35]=c&255}const l=r-c;const h=l-(i.length-c*4>>1);if(h>0){const t=new Uint8Array(i.length+h*2);t.set(i.data);if(a){t[i.length]=i.data[2];t[i.length+1]=i.data[3]}i.data=t}}function k(t,e,i,n,s,r){const a={length:0,sizeOfInstructions:0};if(i-e<=12){return a}const o=t.subarray(e,i);let c=T(o[0],o[1]);if(c<0){c=-1;O(o,0,c);n.set(o,s);a.length=o.length;return a}let l,h=10,u=0;for(l=0;l<c;l++){const t=o[h]<<8|o[h+1];u=t+1;h+=2}const f=h;const d=o[h]<<8|o[h+1];a.sizeOfInstructions=d;h+=2+d;const p=h;let m=0;for(l=0;l<u;l++){const t=o[h++];if(t&192){o[h-1]=t&63}let e=2;if(t&2){e=1}else if(t&16){e=0}let i=2;if(t&4){i=1}else if(t&32){i=0}const n=e+i;m+=n;if(t&8){const t=o[h++];l+=t;m+=t*n}}if(m===0){return a}let g=h+m;if(g>o.length){return a}if(!r&&d>0){n.set(o.subarray(0,f),s);n.set([0,0],s+f);n.set(o.subarray(p,g),s+f+2);g-=d;if(o.length-g>3){g=g+3&~3}a.length=g;return a}if(o.length-g>3){g=g+3&~3;n.set(o.subarray(0,g),s);a.length=g;return a}n.set(o,s);a.length=o.length;return a}function x(t,e,i){const s=t.data;const r=I(s[0],s[1],s[2],s[3]);if(r>>16!==1){(0,n.info)("Attempting to fix invalid version in head table: "+r);s[0]=0;s[1]=1;s[2]=0;s[3]=0}const a=C(s[50],s[51]);if(a<0||a>1){(0,n.info)("Attempting to fix invalid indexToLocFormat in head table: "+a);const t=e+1;if(i===t<<1){s[50]=0;s[51]=0}else if(i===t<<2){s[50]=0;s[51]=1}else{throw new n.FormatError("Could not fix indexToLocFormat: "+a)}}}function M(t,e,i,n,s,r,a){let o,c,l;if(n){o=4;c=function t(e,i){return e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]};l=function t(e,i,n){e[i]=n>>>24&255;e[i+1]=n>>16&255;e[i+2]=n>>8&255;e[i+3]=n&255}}else{o=2;c=function t(e,i){return e[i]<<9|e[i+1]<<1};l=function t(e,i,n){e[i]=n>>9&255;e[i+1]=n>>1&255}}const h=r?i+1:i;const u=o*(1+h);const f=new Uint8Array(u);f.set(t.data.subarray(0,u));t.data=f;const d=e.data;const p=d.length;const m=new Uint8Array(p);let g,b;const v=[];for(g=0,b=0;g<i+1;g++,b+=o){let t=c(f,b);if(t>p){t=p}v.push({index:g,offset:t,endOffset:0})}v.sort(((t,e)=>t.offset-e.offset));for(g=0;g<i;g++){v[g].endOffset=v[g+1].offset}v.sort(((t,e)=>t.index-e.index));for(g=0;g<i;g++){const{offset:t,endOffset:e}=v[g];if(t!==0||e!==0){break}const i=v[g+1].offset;if(i===0){continue}v[g].endOffset=i;break}const w=Object.create(null);let y=0;l(f,0,y);for(g=0,b=o;g<i;g++,b+=o){const t=k(d,v[g].offset,v[g].endOffset,m,y,s);const e=t.length;if(e===0){w[g]=true}if(t.sizeOfInstructions>a){a=t.sizeOfInstructions}y+=e;l(f,b,y)}if(y===0){const t=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(g=0,b=o;g<h;g++,b+=o){l(f,b,t.length)}e.data=t}else if(r){const i=c(f,o);if(m.length>i+y){e.data=m.subarray(0,i+y)}else{e.data=new Uint8Array(i+y);e.data.set(m.subarray(0,y))}e.data.set(m.subarray(0,i),y);l(t.data,f.length-o,y+i)}else{e.data=m.subarray(0,y)}return{missingGlyphs:w,maxSizeOfInstructions:a}}function _(t,i,s){const a=(e.start||0)+t.offset;e.pos=a;const o=t.length,c=a+o;const l=e.getInt32();e.skip(28);let h;let u=true;let f;switch(l){case 65536:h=r.MacStandardGlyphOrdering;break;case 131072:const t=e.getUint16();if(t!==s){u=false;break}const a=[];for(f=0;f<t;++f){const t=e.getUint16();if(t>=32768){u=false;break}a.push(t)}if(!u){break}const o=[],d=[];while(e.pos<c){const t=e.getByte();d.length=t;for(f=0;f<t;++f){d[f]=String.fromCharCode(e.getByte())}o.push(d.join(""))}h=[];for(f=0;f<t;++f){const t=a[f];if(t<258){h.push(r.MacStandardGlyphOrdering[t]);continue}h.push(o[t-258])}break;case 196608:break;default:(0,n.warn)("Unknown/unsupported post table version "+l);u=false;if(i.defaultEncoding){h=i.defaultEncoding}break}i.glyphNames=h;return u}function E(t){const i=(e.start||0)+t.offset;e.pos=i;const n=[[],[]];const s=t.length,r=i+s;const a=e.getUint16();const o=6;if(a!==0||s<o){return n}const c=e.getUint16();const l=e.getUint16();const h=[];const u=12;let f,d;for(f=0;f<c&&e.pos+u<=r;f++){const t={platform:e.getUint16(),encoding:e.getUint16(),language:e.getUint16(),name:e.getUint16(),length:e.getUint16(),offset:e.getUint16()};if(t.platform===1&&t.encoding===0&&t.language===0||t.platform===3&&t.encoding===1&&t.language===1033){h.push(t)}}for(f=0,d=h.length;f<d;f++){const t=h[f];if(t.length<=0){continue}const s=i+l+t.offset;if(s+t.length>r){continue}e.pos=s;const a=t.name;if(t.encoding){let i="";for(let n=0,s=t.length;n<s;n+=2){i+=String.fromCharCode(e.getUint16())}n[1][a]=i}else{n[0][a]=e.getString(t.length)}}return n}const F=[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 P(t,e){let i=t.data;let s=0,r,a,o,c,l,h=0,u=0;const f=[];const d=[];const p=[];let m=e.tooComplexToFollowFunctions;let g=false,b=0,v=0;for(let t=i.length;s<t;){const t=i[s++];if(t===64){a=i[s++];if(g||v){s+=a}else{for(r=0;r<a;r++){f.push(i[s++])}}}else if(t===65){a=i[s++];if(g||v){s+=a*2}else{for(r=0;r<a;r++){o=i[s++];f.push(o<<8|i[s++])}}}else if((t&248)===176){a=t-176+1;if(g||v){s+=a}else{for(r=0;r<a;r++){f.push(i[s++])}}}else if((t&248)===184){a=t-184+1;if(g||v){s+=a*2}else{for(r=0;r<a;r++){o=i[s++];f.push(o<<8|i[s++])}}}else if(t===43&&!m){if(!g&&!v){c=f.at(-1);if(isNaN(c)){(0,n.info)("TT: CALL empty stack (or invalid entry).")}else{e.functionsUsed[c]=true;if(c in e.functionsStackDeltas){const t=f.length+e.functionsStackDeltas[c];if(t<0){(0,n.warn)("TT: CALL invalid functions stack delta.");e.hintsValid=false;return}f.length=t}else if(c in e.functionsDefined&&!p.includes(c)){d.push({data:i,i:s,stackTop:f.length-1});p.push(c);l=e.functionsDefined[c];if(!l){(0,n.warn)("TT: CALL non-existent function");e.hintsValid=false;return}i=l.data;s=l.i}}}}else if(t===44&&!m){if(g||v){(0,n.warn)("TT: nested FDEFs not allowed");m=true}g=true;u=s;c=f.pop();e.functionsDefined[c]={data:i,i:s}}else if(t===45){if(g){g=false;h=s}else{l=d.pop();if(!l){(0,n.warn)("TT: ENDF bad stack");e.hintsValid=false;return}c=p.pop();i=l.data;s=l.i;e.functionsStackDeltas[c]=f.length-l.stackTop}}else if(t===137){if(g||v){(0,n.warn)("TT: nested IDEFs not allowed");m=true}g=true;u=s}else if(t===88){++b}else if(t===27){v=b}else if(t===89){if(v===b){v=0}--b}else if(t===28){if(!g&&!v){const t=f.at(-1);if(t>0){s+=t-1}}}if(!g&&!v){let e=0;if(t<=142){e=F[t]}else if(t>=192&&t<=223){e=-1}else if(t>=224){e=-2}if(t>=113&&t<=117){a=f.pop();if(!isNaN(a)){e=-a*2}}while(e<0&&f.length>0){f.pop();e++}while(e>0){f.push(NaN);e--}}}e.tooComplexToFollowFunctions=m;const w=[i];if(s>i.length){w.push(new Uint8Array(s-i.length))}if(u>h){(0,n.warn)("TT: complementing a missing function tail");w.push(new Uint8Array([34,45]))}N(t,w)}function D(t,e){if(t.tooComplexToFollowFunctions){return}if(t.functionsDefined.length>e){(0,n.warn)("TT: more functions defined than expected");t.hintsValid=false;return}for(let i=0,s=t.functionsUsed.length;i<s;i++){if(i>e){(0,n.warn)("TT: invalid function id: "+i);t.hintsValid=false;return}if(t.functionsUsed[i]&&!t.functionsDefined[i]){(0,n.warn)("TT: undefined function: "+i);t.hintsValid=false;return}}}function N(t,e){if(e.length>1){let i=0;let n,s;for(n=0,s=e.length;n<s;n++){i+=e[n].length}i=i+3&~3;const r=new Uint8Array(i);let a=0;for(n=0,s=e.length;n<s;n++){r.set(e[n],a);a+=e[n].length}t.data=r;t.length=i}}function j(t,e,i,n){const s={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:false,hintsValid:true};if(t){P(t,s)}if(e){P(e,s)}if(t){D(s,n)}if(i&&i.length&1){const t=new Uint8Array(i.length+1);t.set(i.data);i.data=t}return s.hintsValid}e=new v.Stream(new Uint8Array(e.getBytes()));let L,U;if(R(e)){const t=w(e,this.name);L=t.header;U=t.tables}else{L=d(e);U=l(e,L.numTables)}let B,$;const W=!U["CFF "];if(!W){const e=i.composite&&((i.cidToGidMap||[]).length>0||!(i.cMap instanceof m.IdentityCMap));if(L.version==="OTTO"&&!e||!U.head||!U.hhea||!U.maxp||!U.post){$=new v.Stream(U["CFF "].data);B=new u.CFFFont($,i);S(i);return this.convert(t,B,i)}delete U.glyf;delete U.loca;delete U.fpgm;delete U.prep;delete U["cvt "];this.isOpenType=true}else{if(!U.loca){throw new n.FormatError('Required "loca" table is not found')}if(!U.glyf){(0,n.warn)('Required "glyf" table is not found -- trying to recover.');U.glyf={tag:"glyf",data:new Uint8Array(0)}}this.isOpenType=false}if(!U.maxp){throw new n.FormatError('Required "maxp" table is not found')}e.pos=(e.start||0)+U.maxp.offset;const K=e.getInt32();const J=e.getUint16();if(i.scaleFactors&&i.scaleFactors.length===J&&W){const{scaleFactors:t}=i;const e=C(U.head.data[50],U.head.data[51]);const n=new p.GlyfTable({glyfTable:U.glyf.data,isGlyphLocationsLong:e,locaTable:U.loca.data,numGlyphs:J});n.scale(t);const{glyf:s,loca:r,isLocationLong:a}=n.write();U.glyf.data=s;U.loca.data=r;if(a!==!!e){U.head.data[50]=0;U.head.data[51]=a?1:0}const o=U.hmtx.data;for(let e=0;e<J;e++){const i=4*e;const n=Math.round(t[e]*C(o[i],o[i+1]));o[i]=n>>8&255;o[i+1]=n&255;const s=Math.round(t[e]*T(o[i+2],o[i+3]));O(o,i+2,s)}}let Q=J+1;let Z=true;if(Q>65535){Z=false;Q=J;(0,n.warn)("Not enough space in glyfs to duplicate first glyph.")}let tt=0;let et=0;if(K>=65536&&U.maxp.length>=22){e.pos+=8;const t=e.getUint16();if(t>2){U.maxp.data[14]=0;U.maxp.data[15]=2}e.pos+=4;tt=e.getUint16();e.pos+=4;et=e.getUint16()}U.maxp.data[4]=Q>>8;U.maxp.data[5]=Q&255;const it=j(U.fpgm,U.prep,U["cvt "],tt);if(!it){delete U.fpgm;delete U.prep;delete U["cvt "]}A(e,U.hhea,U.hmtx,U.head,Q,Z);if(!U.head){throw new n.FormatError('Required "head" table is not found')}x(U.head,J,W?U.loca.length:0);let nt=Object.create(null);if(W){const t=C(U.head.data[50],U.head.data[51]);const e=M(U.loca,U.glyf,J,t,it,Z,et);nt=e.missingGlyphs;if(K>=65536&&U.maxp.length>=22){U.maxp.data[26]=e.maxSizeOfInstructions>>8;U.maxp.data[27]=e.maxSizeOfInstructions&255}}if(!U.hhea){throw new n.FormatError('Required "hhea" table is not found')}if(U.hhea.data[10]===0&&U.hhea.data[11]===0){U.hhea.data[10]=255;U.hhea.data[11]=255}const st={unitsPerEm:C(U.head.data[18],U.head.data[19]),yMax:C(U.head.data[42],U.head.data[43]),yMin:T(U.head.data[38],U.head.data[39]),ascent:T(U.hhea.data[4],U.hhea.data[5]),descent:T(U.hhea.data[6],U.hhea.data[7]),lineGap:T(U.hhea.data[8],U.hhea.data[9])};this.ascent=st.ascent/st.unitsPerEm;this.descent=st.descent/st.unitsPerEm;this.lineGap=st.lineGap/st.unitsPerEm;if(this.cssFontInfo&&this.cssFontInfo.lineHeight){this.lineHeight=this.cssFontInfo.metrics.lineHeight;this.lineGap=this.cssFontInfo.metrics.lineGap}else{this.lineHeight=this.ascent-this.descent+this.lineGap}if(U.post){_(U.post,i,J)}U.post={tag:"post",data:X(i)};const rt=[];function at(t){return!nt[t]}if(i.composite){const t=i.cidToGidMap||[];const e=t.length===0;i.cMap.forEach((function(i,s){if(typeof s==="string"){s=q(i,s,true)}if(s>65535){throw new n.FormatError("Max size of CID is 65,535")}let r=-1;if(e){r=s}else if(t[s]!==undefined){r=t[s]}if(r>=0&&r<J&&at(r)){rt[i]=r}}))}else{const t=y(U.cmap,e,this.isSymbolicFont,i.hasEncoding);const n=t.platformId;const s=t.encodingId;const a=t.mappings;let l=[],u=false;if(i.hasEncoding&&(i.baseEncodingName==="MacRomanEncoding"||i.baseEncodingName==="WinAnsiEncoding")){l=(0,c.getEncoding)(i.baseEncodingName)}if(i.hasEncoding&&!this.isSymbolicFont&&(n===3&&s===1||n===1&&s===0)){const t=(0,o.getGlyphsUnicode)();for(let e=0;e<256;e++){let o;if(this.differences[e]!==undefined){o=this.differences[e]}else if(l.length&&l[e]!==""){o=l[e]}else{o=c.StandardEncoding[e]}if(!o){continue}const u=(0,r.recoverGlyphName)(o,t);let f;if(n===3&&s===1){f=t[u]}else if(n===1&&s===0){f=c.MacRomanEncoding.indexOf(u)}if(f===undefined){if(!i.glyphNames&&i.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof h.IdentityToUnicodeMap)){const t=this.toUnicode.get(e);if(t){f=t.codePointAt(0)}}if(f===undefined){continue}}for(const t of a){if(t.charCode!==f){continue}rt[e]=t.glyphId;break}}}else if(n===0){for(const t of a){rt[t.charCode]=t.glyphId}u=true}else{for(const t of a){let e=t.charCode;if(n===3&&e>=61440&&e<=61695){e&=255}rt[e]=t.glyphId}}if(i.glyphNames&&(l.length||this.differences.length)){for(let t=0;t<256;++t){if(!u&&rt[t]!==undefined){continue}const e=this.differences[t]||l[t];if(!e){continue}const n=i.glyphNames.indexOf(e);if(n>0&&at(n)){rt[t]=n}}}}if(rt.length===0){rt[0]=0}let ot=Q-1;if(!Z){ot=0}if(!i.cssFontInfo){const t=G(rt,at,ot,this.toUnicode);this.toFontChar=t.toFontChar;U.cmap={tag:"cmap",data:H(t.charCodeToGlyphId,t.toUnicodeExtraMap,Q)};if(!U["OS/2"]||!z(U["OS/2"],e)){U["OS/2"]={tag:"OS/2",data:V(i,t.charCodeToGlyphId,st)}}}if(!W){try{$=new v.Stream(U["CFF "].data);const t=new s.CFFParser($,i,r.SEAC_ANALYSIS_ENABLED);B=t.parse();B.duplicateFirstGlyph();const e=new s.CFFCompiler(B);U["CFF "].data=e.compile()}catch(t){(0,n.warn)("Failed to compile font "+i.loadedName)}}if(!U.name){U.name={tag:"name",data:Y(this.name)}}else{const e=E(U.name);U.name.data=Y(t,e);this.psName=e[0][6]||null}const ct=new g.OpenTypeFileBuilder(L.version);for(const t in U){ct.addTable(t,U[t].data)}return ct.toArray()}convert(t,e,i){i.fixedPitch=false;if(i.builtInEncoding){M(i,i.builtInEncoding)}let s=1;if(e instanceof u.CFFFont){s=e.numGlyphs-1}const a=e.getGlyphMapping(i);let o=null;let l=a;let h=null;if(!i.cssFontInfo){o=G(a,e.hasGlyphId.bind(e),s,this.toUnicode);this.toFontChar=o.toFontChar;l=o.charCodeToGlyphId;h=o.toUnicodeExtraMap}const f=e.numGlyphs;function d(t,e){let i=null;for(const n in t){if(e===t[n]){if(!i){i=[]}i.push(n|0)}}return i}function p(t,e){for(const i in t){if(e===t[i]){return i|0}}o.charCodeToGlyphId[o.nextAvailableFontCharCode]=e;return o.nextAvailableFontCharCode++}const m=e.seacs;if(o&&r.SEAC_ANALYSIS_ENABLED&&m&&m.length){const t=i.fontMatrix||n.FONT_IDENTITY_MATRIX;const s=e.getCharset();const r=Object.create(null);for(let e in m){e|=0;const i=m[e];const n=c.StandardEncoding[i[2]];const l=c.StandardEncoding[i[3]];const h=s.indexOf(n);const u=s.indexOf(l);if(h<0||u<0){continue}const f={x:i[0]*t[0]+i[1]*t[2]+t[4],y:i[0]*t[1]+i[1]*t[3]+t[5]};const g=d(a,e);if(!g){continue}for(const t of g){const e=o.charCodeToGlyphId;const i=p(e,h);const n=p(e,u);r[t]={baseFontCharCode:i,accentFontCharCode:n,accentOffset:f}}}i.seacMap=r}const b=1/(i.fontMatrix||n.FONT_IDENTITY_MATRIX)[0];const v=new g.OpenTypeFileBuilder("OTTO");v.addTable("CFF ",e.data);v.addTable("OS/2",V(i,l));v.addTable("cmap",H(l,h,f));v.addTable("head","\0\0\0"+"\0\0\0"+"\0\0\0\0"+"_<õ"+"\0\0"+P(b)+"\0\0\0\0\v~'"+"\0\0\0\0\v~'"+"\0\0"+P(i.descent)+"ÿ"+P(i.ascent)+F(i.italicAngle?2:0)+"\0"+"\0\0"+"\0\0"+"\0\0");v.addTable("hhea","\0\0\0"+P(i.ascent)+P(i.descent)+"\0\0"+"ÿÿ"+"\0\0"+"\0\0"+"\0\0"+P(i.capHeight)+P(Math.tan(i.italicAngle)*i.xHeight)+"\0\0"+"\0\0"+"\0\0"+"\0\0"+"\0\0"+"\0\0"+F(f));v.addTable("hmtx",function t(){const i=e.charstrings;const n=e.cff?e.cff.widths:null;let s="\0\0\0\0";for(let t=1,e=f;t<e;t++){let e=0;if(i){const n=i[t-1];e="width"in n?n.width:0}else if(n){e=Math.ceil(n[t]||0)}s+=F(e)+F(0)}return s}());v.addTable("maxp","\0\0P\0"+F(f));v.addTable("name",Y(t));v.addTable("post",X(i));return v.toArray()}get spaceWidth(){const t=["space","minus","one","i","I"];let e;for(const i of t){if(i in this.widths){e=this.widths[i];break}const t=(0,o.getGlyphsUnicode)();const n=t[i];let s=0;if(this.composite&&this.cMap.contains(n)){s=this.cMap.lookup(n);if(typeof s==="string"){s=q(n,s)}}if(!s&&this.toUnicode){s=this.toUnicode.charCodeOf(n)}if(s<=0){s=n}e=this.widths[s];if(e){break}}e=e||this.defaultWidth;return(0,n.shadow)(this,"spaceWidth",e)}_charToGlyph(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;let i=this._glyphCache[t];if(i&&i.isSpace===e){return i}let s,r,o;let c=t;if(this.cMap&&this.cMap.contains(t)){c=this.cMap.lookup(t);if(typeof c==="string"){c=q(t,c)}}r=this.widths[c];if(typeof r!=="number"){r=this.defaultWidth}const l=this.vmetrics&&this.vmetrics[c];let h=this.toUnicode.get(t)||t;if(typeof h==="number"){h=String.fromCharCode(h)}let u=this.toFontChar[t]!==undefined;s=this.toFontChar[t]||t;if(this.missingFile){const e=this.differences[t]||this.defaultEncoding[t];if((e===".notdef"||e==="")&&this.type==="Type1"){s=32}s=(0,a.mapSpecialUnicodeValues)(s)}if(this.isType3Font){o=s}let f=null;if(this.seacMap&&this.seacMap[t]){u=true;const e=this.seacMap[t];s=e.baseFontCharCode;f={fontChar:String.fromCodePoint(e.accentFontCharCode),offset:e.accentOffset}}let d="";if(typeof s==="number"){if(s<=1114111){d=String.fromCodePoint(s)}else{(0,n.warn)(`charToGlyph - invalid fontCharCode: ${s}`)}}i=new E(t,d,h,f,r,l,o,e,u);return this._glyphCache[t]=i}charsToGlyphs(t){let e=this._charsCache[t];if(e){return e}e=[];if(this.cMap){const i=Object.create(null),n=t.length;let s=0;while(s<n){this.cMap.readCharCode(t,s,i);const{charcode:n,length:r}=i;s+=r;const a=this._charToGlyph(n,r===1&&t.charCodeAt(s-1)===32);e.push(a)}}else{for(let i=0,n=t.length;i<n;++i){const n=t.charCodeAt(i);const s=this._charToGlyph(n,n===32);e.push(s)}}return this._charsCache[t]=e}getCharPositions(t){const e=[];if(this.cMap){const i=Object.create(null);let n=0;while(n<t.length){this.cMap.readCharCode(t,n,i);const s=i.length;e.push([n,n+s]);n+=s}}else{for(let i=0,n=t.length;i<n;++i){e.push([i,i+1])}}return e}get glyphCacheValues(){return Object.values(this._glyphCache)}encodeString(t){const e=[];const i=[];const n=()=>e.length%2===1;const s=this.toUnicode instanceof h.IdentityToUnicodeMap?t=>this.toUnicode.charCodeOf(t):t=>this.toUnicode.charCodeOf(String.fromCodePoint(t));for(let r=0,a=t.length;r<a;r++){const a=t.codePointAt(r);if(a>55295&&(a<57344||a>65533)){r++}if(this.toUnicode){const t=s(a);if(t!==-1){if(n()){e.push(i.join(""));i.length=0}const s=this.cMap?this.cMap.getCharCodeLength(t):1;for(let e=s-1;e>=0;e--){i.push(String.fromCharCode(t>>8*e&255))}continue}}if(!n()){e.push(i.join(""));i.length=0}i.push(String.fromCodePoint(a))}e.push(i.join(""));return e}}e.Font=J;class Q{constructor(t){this.error=t;this.loadedName="g_font_error";this.missingFile=true}charsToGlyphs(){return[]}encodeString(t){return[t]}exportData(){return{error:this.error}}}e.ErrorFont=Q},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.CFFTopDict=e.CFFStrings=e.CFFStandardStrings=e.CFFPrivateDict=e.CFFParser=e.CFFIndex=e.CFFHeader=e.CFFFDSelect=e.CFFCompiler=e.CFFCharset=e.CFF=void 0;var n=i(2);var s=i(165);var r=i(166);const a=10;const o=[".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"];e.CFFStandardStrings=o;const c=391;const l=[null,{id:"hstem",min:2,stackClearing:true,stem:true},null,{id:"vstem",min:2,stackClearing:true,stem:true},{id:"vmoveto",min:1,stackClearing:true},{id:"rlineto",min:2,resetStack:true},{id:"hlineto",min:1,resetStack:true},{id:"vlineto",min:1,resetStack:true},{id:"rrcurveto",min:6,resetStack:true},null,{id:"callsubr",min:1,undefStack:true},{id:"return",min:0,undefStack:true},null,null,{id:"endchar",min:0,stackClearing:true},null,null,null,{id:"hstemhm",min:2,stackClearing:true,stem:true},{id:"hintmask",min:0,stackClearing:true},{id:"cntrmask",min:0,stackClearing:true},{id:"rmoveto",min:2,stackClearing:true},{id:"hmoveto",min:1,stackClearing:true},{id:"vstemhm",min:2,stackClearing:true,stem:true},{id:"rcurveline",min:8,resetStack:true},{id:"rlinecurve",min:8,resetStack:true},{id:"vvcurveto",min:4,resetStack:true},{id:"hhcurveto",min:4,resetStack:true},null,{id:"callgsubr",min:1,undefStack:true},{id:"vhcurveto",min:4,resetStack:true},{id:"hvcurveto",min:4,resetStack:true}];const h=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn(t,e){t[e-2]=t[e-2]+t[e-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(t,e){t[e-2]=t[e-2]-t[e-1]}},{id:"div",min:2,stackDelta:-1,stackFn(t,e){t[e-2]=t[e-2]/t[e-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(t,e){t[e-1]=-t[e-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn(t,e){t[e-2]=t[e-2]*t[e-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:true},{id:"flex",min:13,resetStack:true},{id:"hflex1",min:9,resetStack:true},{id:"flex1",min:11,resetStack:true}];class u{constructor(t,e,i){this.bytes=t.getBytes();this.properties=e;this.seacAnalysisEnabled=!!i}parse(){const t=this.properties;const e=new f;this.cff=e;const i=this.parseHeader();const n=this.parseIndex(i.endPos);const s=this.parseIndex(n.endPos);const r=this.parseIndex(s.endPos);const a=this.parseIndex(r.endPos);const o=this.parseDict(s.obj.get(0));const c=this.createDict(v,o,e.strings);e.header=i.obj;e.names=this.parseNameIndex(n.obj);e.strings=this.parseStringIndex(r.obj);e.topDict=c;e.globalSubrIndex=a.obj;this.parsePrivateDict(e.topDict);e.isCIDFont=c.hasName("ROS");const l=c.getByName("CharStrings");const h=this.parseIndex(l).obj;const u=c.getByName("FontMatrix");if(u){t.fontMatrix=u}const d=c.getByName("FontBBox");if(d){t.ascent=Math.max(d[3],d[1]);t.descent=Math.min(d[1],d[3]);t.ascentScaled=true}let p,m;if(e.isCIDFont){const t=this.parseIndex(c.getByName("FDArray")).obj;for(let i=0,n=t.count;i<n;++i){const n=t.get(i);const s=this.createDict(v,this.parseDict(n),e.strings);this.parsePrivateDict(s);e.fdArray.push(s)}m=null;p=this.parseCharsets(c.getByName("charset"),h.count,e.strings,true);e.fdSelect=this.parseFDSelect(c.getByName("FDSelect"),h.count)}else{p=this.parseCharsets(c.getByName("charset"),h.count,e.strings,false);m=this.parseEncoding(c.getByName("Encoding"),t,e.strings,p.charset)}e.charset=p;e.encoding=m;const g=this.parseCharStrings({charStrings:h,localSubrIndex:c.privateDict.subrsIndex,globalSubrIndex:a.obj,fdSelect:e.fdSelect,fdArray:e.fdArray,privateDict:c.privateDict});e.charStrings=g.charStrings;e.seacs=g.seacs;e.widths=g.widths;return e}parseHeader(){let t=this.bytes;const e=t.length;let i=0;while(i<e&&t[i]!==1){++i}if(i>=e){throw new n.FormatError("Invalid CFF header")}if(i!==0){(0,n.info)("cff data is shifted");t=t.subarray(i);this.bytes=t}const s=t[0];const r=t[1];const a=t[2];const o=t[3];const c=new d(s,r,a,o);return{obj:c,endPos:a}}parseDict(t){let e=0;function i(){let i=t[e++];if(i===30){return s()}else if(i===28){i=t[e++];i=(i<<24|t[e++]<<16)>>16;return i}else if(i===29){i=t[e++];i=i<<8|t[e++];i=i<<8|t[e++];i=i<<8|t[e++];return i}else if(i>=32&&i<=246){return i-139}else if(i>=247&&i<=250){return(i-247)*256+t[e++]+108}else if(i>=251&&i<=254){return-((i-251)*256)-t[e++]-108}(0,n.warn)('CFFParser_parseDict: "'+i+'" is a reserved command.');return NaN}function s(){let i="";const n=15;const s=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];const r=t.length;while(e<r){const r=t[e++];const a=r>>4;const o=r&15;if(a===n){break}i+=s[a];if(o===n){break}i+=s[o]}return parseFloat(i)}let r=[];const a=[];e=0;const o=t.length;while(e<o){let n=t[e];if(n<=21){if(n===12){n=n<<8|t[++e]}a.push([n,r]);r=[];++e}else{r.push(i())}}return a}parseIndex(t){const e=new m;const i=this.bytes;const n=i[t++]<<8|i[t++];const s=[];let r=t;let a,o;if(n!==0){const e=i[t++];const c=t+(n+1)*e-1;for(a=0,o=n+1;a<o;++a){let n=0;for(let s=0;s<e;++s){n<<=8;n+=i[t++]}s.push(c+n)}r=s[n]}for(a=0,o=s.length-1;a<o;++a){const t=s[a];const n=s[a+1];e.add(i.subarray(t,n))}return{obj:e,endPos:r}}parseNameIndex(t){const e=[];for(let i=0,s=t.count;i<s;++i){const s=t.get(i);e.push((0,n.bytesToString)(s))}return e}parseStringIndex(t){const e=new p;for(let i=0,s=t.count;i<s;++i){const s=t.get(i);e.add((0,n.bytesToString)(s))}return e}createDict(t,e,i){const n=new t(i);for(const[t,i]of e){n.setByKey(t,i)}return n}parseCharString(t,e,i,s){if(!e||t.callDepth>a){return false}let r=t.stackSize;const o=t.stack;const c=e.length;for(let a=0;a<c;){const c=e[a++];let u=null;if(c===12){const t=e[a++];if(t===0){e[a-2]=139;e[a-1]=22;r=0}else{u=h[t]}}else if(c===28){o[r]=(e[a]<<24|e[a+1]<<16)>>16;a+=2;r++}else if(c===14){if(r>=4){r-=4;if(this.seacAnalysisEnabled){t.seac=o.slice(r,r+4);return false}}u=l[c]}else if(c>=32&&c<=246){o[r]=c-139;r++}else if(c>=247&&c<=254){o[r]=c<251?(c-247<<8)+e[a]+108:-(c-251<<8)-e[a]-108;a++;r++}else if(c===255){o[r]=(e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3])/65536;a+=4;r++}else if(c===19||c===20){t.hints+=r>>1;a+=t.hints+7>>3;r%=2;u=l[c]}else if(c===10||c===29){let e;if(c===10){e=i}else{e=s}if(!e){u=l[c];(0,n.warn)("Missing subrsIndex for "+u.id);return false}let a=32768;if(e.count<1240){a=107}else if(e.count<33900){a=1131}const h=o[--r]+a;if(h<0||h>=e.count||isNaN(h)){u=l[c];(0,n.warn)("Out of bounds subrIndex for "+u.id);return false}t.stackSize=r;t.callDepth++;const f=this.parseCharString(t,e.get(h),i,s);if(!f){return false}t.callDepth--;r=t.stackSize;continue}else if(c===11){t.stackSize=r;return true}else if(c===0&&a===e.length){e[a-1]=14;u=l[14]}else{u=l[c]}if(u){if(u.stem){t.hints+=r>>1;if(c===3||c===23){t.hasVStems=true}else if(t.hasVStems&&(c===1||c===18)){(0,n.warn)("CFF stem hints are in wrong order");e[a-1]=c===1?3:23}}if("min"in u){if(!t.undefStack&&r<u.min){(0,n.warn)("Not enough parameters for "+u.id+"; actual: "+r+", expected: "+u.min);if(r===0){e[a-1]=14;return true}return false}}if(t.firstStackClearing&&u.stackClearing){t.firstStackClearing=false;r-=u.min;if(r>=2&&u.stem){r%=2}else if(r>1){(0,n.warn)("Found too many parameters for stack-clearing command")}if(r>0){t.width=o[r-1]}}if("stackDelta"in u){if("stackFn"in u){u.stackFn(o,r)}r+=u.stackDelta}else if(u.stackClearing){r=0}else if(u.resetStack){r=0;t.undefStack=false}else if(u.undefStack){r=0;t.undefStack=true;t.firstStackClearing=false}}}t.stackSize=r;return true}parseCharStrings(t){let{charStrings:e,localSubrIndex:i,globalSubrIndex:s,fdSelect:r,fdArray:a,privateDict:o}=t;const c=[];const l=[];const h=e.count;for(let t=0;t<h;t++){const h=e.get(t);const u={callDepth:0,stackSize:0,stack:[],undefStack:true,hints:0,firstStackClearing:true,seac:null,width:null,hasVStems:false};let f=true;let d=null;let p=o;if(r&&a.length){const e=r.getFDIndex(t);if(e===-1){(0,n.warn)("Glyph index is not in fd select.");f=false}if(e>=a.length){(0,n.warn)("Invalid fd index for glyph index.");f=false}if(f){p=a[e].privateDict;d=p.subrsIndex}}else if(i){d=i}if(f){f=this.parseCharString(u,h,d,s)}if(u.width!==null){const e=p.getByName("nominalWidthX");l[t]=e+u.width}else{const e=p.getByName("defaultWidthX");l[t]=e}if(u.seac!==null){c[t]=u.seac}if(!f){e.set(t,new Uint8Array([14]))}}return{charStrings:e,seacs:c,widths:l}}emptyPrivateDictionary(t){const e=this.createDict(y,[],t.strings);t.setByKey(18,[0,0]);t.privateDict=e}parsePrivateDict(t){if(!t.hasName("Private")){this.emptyPrivateDictionary(t);return}const e=t.getByName("Private");if(!Array.isArray(e)||e.length!==2){t.removeByName("Private");return}const i=e[0];const n=e[1];if(i===0||n>=this.bytes.length){this.emptyPrivateDictionary(t);return}const s=n+i;const r=this.bytes.subarray(n,s);const a=this.parseDict(r);const o=this.createDict(y,a,t.strings);t.privateDict=o;if(!o.getByName("Subrs")){return}const c=o.getByName("Subrs");const l=n+c;if(c===0||l>=this.bytes.length){this.emptyPrivateDictionary(t);return}const h=this.parseIndex(l);o.subrsIndex=h.obj}parseCharsets(t,e,i,r){if(t===0){return new k(true,A.ISO_ADOBE,s.ISOAdobeCharset)}else if(t===1){return new k(true,A.EXPERT,s.ExpertCharset)}else if(t===2){return new k(true,A.EXPERT_SUBSET,s.ExpertSubsetCharset)}const a=this.bytes;const o=t;const c=a[t++];const l=[r?0:".notdef"];let h,u,f;e-=1;switch(c){case 0:for(f=0;f<e;f++){h=a[t++]<<8|a[t++];l.push(r?h:i.get(h))}break;case 1:while(l.length<=e){h=a[t++]<<8|a[t++];u=a[t++];for(f=0;f<=u;f++){l.push(r?h++:i.get(h++))}}break;case 2:while(l.length<=e){h=a[t++]<<8|a[t++];u=a[t++]<<8|a[t++];for(f=0;f<=u;f++){l.push(r?h++:i.get(h++))}}break;default:throw new n.FormatError("Unknown charset format")}const d=t;const p=a.subarray(o,d);return new k(false,c,l,p)}parseEncoding(t,e,i,s){const a=Object.create(null);const o=this.bytes;let c=false;let l,h,u;let f=null;function d(){const e=o[t++];for(h=0;h<e;h++){const e=o[t++];const n=(o[t++]<<8)+(o[t++]&255);a[e]=s.indexOf(i.get(n))}}if(t===0||t===1){c=true;l=t;const e=t?r.ExpertEncoding:r.StandardEncoding;for(h=0,u=s.length;h<u;h++){const t=e.indexOf(s[h]);if(t!==-1){a[t]=h}}}else{const e=t;l=o[t++];switch(l&127){case 0:const e=o[t++];for(h=1;h<=e;h++){a[o[t++]]=h}break;case 1:const i=o[t++];let s=1;for(h=0;h<i;h++){const e=o[t++];const i=o[t++];for(let t=e;t<=e+i;t++){a[t]=s++}}break;default:throw new n.FormatError(`Unknown encoding format: ${l} in CFF`)}const i=t;if(l&128){o[e]&=127;d()}f=o.subarray(e,i)}l&=127;return new x(c,l,a,f)}parseFDSelect(t,e){const i=this.bytes;const s=i[t++];const r=[];let a;switch(s){case 0:for(a=0;a<e;++a){const e=i[t++];r.push(e)}break;case 3:const o=i[t++]<<8|i[t++];for(a=0;a<o;++a){let e=i[t++]<<8|i[t++];if(a===0&&e!==0){(0,n.warn)("parseFDSelect: The first range must have a first GID of 0"+" -- trying to recover.");e=0}const s=i[t++];const o=i[t]<<8|i[t+1];for(let t=e;t<o;++t){r.push(s)}}t+=2;break;default:throw new n.FormatError(`parseFDSelect: Unknown format "${s}".`)}if(r.length!==e){throw new n.FormatError("parseFDSelect: Invalid font data.")}return new S(s,r)}}e.CFFParser=u;class f{constructor(){this.header=null;this.names=[];this.topDict=null;this.strings=new p;this.globalSubrIndex=null;this.encoding=null;this.charset=null;this.charStrings=null;this.fdArray=[];this.fdSelect=null;this.isCIDFont=false}duplicateFirstGlyph(){if(this.charStrings.count>=65535){(0,n.warn)("Not enough space in charstrings to duplicate first glyph.");return}const t=this.charStrings.get(0);this.charStrings.add(t);if(this.isCIDFont){this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}}hasGlyphId(t){if(t<0||t>=this.charStrings.count){return false}const e=this.charStrings.get(t);return e.length>0}}e.CFF=f;class d{constructor(t,e,i,n){this.major=t;this.minor=e;this.hdrSize=i;this.offSize=n}}e.CFFHeader=d;class p{constructor(){this.strings=[]}get(t){if(t>=0&&t<=c-1){return o[t]}if(t-c<=this.strings.length){return this.strings[t-c]}return o[0]}getSID(t){let e=o.indexOf(t);if(e!==-1){return e}e=this.strings.indexOf(t);if(e!==-1){return e+c}return-1}add(t){this.strings.push(t)}get count(){return this.strings.length}}e.CFFStrings=p;class m{constructor(){this.objects=[];this.length=0}add(t){this.length+=t.length;this.objects.push(t)}set(t,e){this.length+=e.length-this.objects[t].length;this.objects[t]=e}get(t){return this.objects[t]}get count(){return this.objects.length}}e.CFFIndex=m;class g{constructor(t,e){this.keyToNameMap=t.keyToNameMap;this.nameToKeyMap=t.nameToKeyMap;this.defaults=t.defaults;this.types=t.types;this.opcodes=t.opcodes;this.order=t.order;this.strings=e;this.values=Object.create(null)}setByKey(t,e){if(!(t in this.keyToNameMap)){return false}if(e.length===0){return true}for(const i of e){if(isNaN(i)){(0,n.warn)(`Invalid CFFDict value: "${e}" for key "${t}".`);return true}}const i=this.types[t];if(i==="num"||i==="sid"||i==="offset"){e=e[0]}this.values[t]=e;return true}setByName(t,e){if(!(t in this.nameToKeyMap)){throw new n.FormatError(`Invalid dictionary name "${t}"`)}this.values[this.nameToKeyMap[t]]=e}hasName(t){return this.nameToKeyMap[t]in this.values}getByName(t){if(!(t in this.nameToKeyMap)){throw new n.FormatError(`Invalid dictionary name ${t}"`)}const e=this.nameToKeyMap[t];if(!(e in this.values)){return this.defaults[e]}return this.values[e]}removeByName(t){delete this.values[this.nameToKeyMap[t]]}static createTables(t){const e={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(const i of t){const t=Array.isArray(i[0])?(i[0][0]<<8)+i[0][1]:i[0];e.keyToNameMap[t]=i[1];e.nameToKeyMap[i[1]]=t;e.types[t]=i[2];e.defaults[t]=i[3];e.opcodes[t]=Array.isArray(i[0])?i[0]:[i[0]];e.order.push(t)}return e}}const b=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]];class v extends g{static get tables(){return(0,n.shadow)(this,"tables",this.createTables(b))}constructor(t){super(v.tables,t);this.privateDict=null}}e.CFFTopDict=v;const w=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]];class y extends g{static get tables(){return(0,n.shadow)(this,"tables",this.createTables(w))}constructor(t){super(y.tables,t);this.subrsIndex=null}}e.CFFPrivateDict=y;const A={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};class k{constructor(t,e,i,n){this.predefined=t;this.format=e;this.charset=i;this.raw=n}}e.CFFCharset=k;class x{constructor(t,e,i,n){this.predefined=t;this.format=e;this.encoding=i;this.raw=n}}class S{constructor(t,e){this.format=t;this.fdSelect=e}getFDIndex(t){if(t<0||t>=this.fdSelect.length){return-1}return this.fdSelect[t]}}e.CFFFDSelect=S;class M{constructor(){this.offsets=Object.create(null)}isTracking(t){return t in this.offsets}track(t,e){if(t in this.offsets){throw new n.FormatError(`Already tracking location of ${t}`)}this.offsets[t]=e}offset(t){for(const e in this.offsets){this.offsets[e]+=t}}setEntryLocation(t,e,i){if(!(t in this.offsets)){throw new n.FormatError(`Not tracking location of ${t}`)}const s=i.data;const r=this.offsets[t];const a=5;for(let t=0,i=e.length;t<i;++t){const i=t*a+r;const o=i+1;const c=i+2;const l=i+3;const h=i+4;if(s[i]!==29||s[o]!==0||s[c]!==0||s[l]!==0||s[h]!==0){throw new n.FormatError("writing to an offset that is not empty")}const u=e[t];s[i]=29;s[o]=u>>24&255;s[c]=u>>16&255;s[l]=u>>8&255;s[h]=u&255}}}class _{constructor(t){this.cff=t}compile(){const t=this.cff;const e={data:[],length:0,add(t){this.data=this.data.concat(t);this.length=this.data.length}};const i=this.compileHeader(t.header);e.add(i);const s=this.compileNameIndex(t.names);e.add(s);if(t.isCIDFont){if(t.topDict.hasName("FontMatrix")){const e=t.topDict.getByName("FontMatrix");t.topDict.removeByName("FontMatrix");for(const i of t.fdArray){let t=e.slice(0);if(i.hasName("FontMatrix")){t=n.Util.transform(t,i.getByName("FontMatrix"))}i.setByName("FontMatrix",t)}}}const r=t.topDict.getByName("XUID");if(r&&r.length>16){t.topDict.removeByName("XUID")}t.topDict.setByName("charset",0);let a=this.compileTopDicts([t.topDict],e.length,t.isCIDFont);e.add(a.output);const o=a.trackers[0];const c=this.compileStringIndex(t.strings.strings);e.add(c);const l=this.compileIndex(t.globalSubrIndex);e.add(l);if(t.encoding&&t.topDict.hasName("Encoding")){if(t.encoding.predefined){o.setEntryLocation("Encoding",[t.encoding.format],e)}else{const i=this.compileEncoding(t.encoding);o.setEntryLocation("Encoding",[e.length],e);e.add(i)}}const h=this.compileCharset(t.charset,t.charStrings.count,t.strings,t.isCIDFont);o.setEntryLocation("charset",[e.length],e);e.add(h);const u=this.compileCharStrings(t.charStrings);o.setEntryLocation("CharStrings",[e.length],e);e.add(u);if(t.isCIDFont){o.setEntryLocation("FDSelect",[e.length],e);const i=this.compileFDSelect(t.fdSelect);e.add(i);a=this.compileTopDicts(t.fdArray,e.length,true);o.setEntryLocation("FDArray",[e.length],e);e.add(a.output);const n=a.trackers;this.compilePrivateDicts(t.fdArray,n,e)}this.compilePrivateDicts([t.topDict],[o],e);e.add([0]);return e.data}encodeNumber(t){if(Number.isInteger(t)){return this.encodeInteger(t)}return this.encodeFloat(t)}static get EncodeFloatRegExp(){return(0,n.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(t){let e=t.toString();const i=_.EncodeFloatRegExp.exec(e);if(i){const n=parseFloat("1e"+((i[2]?+i[2]:0)+i[1].length));e=(Math.round(t*n)/n).toString()}let n="";let s,r;for(s=0,r=e.length;s<r;++s){const t=e[s];if(t==="e"){n+=e[++s]==="-"?"c":"b"}else if(t==="."){n+="a"}else if(t==="-"){n+="e"}else{n+=t}}n+=n.length&1?"f":"ff";const a=[30];for(s=0,r=n.length;s<r;s+=2){a.push(parseInt(n.substring(s,s+2),16))}return a}encodeInteger(t){let e;if(t>=-107&&t<=107){e=[t+139]}else if(t>=108&&t<=1131){t-=108;e=[(t>>8)+247,t&255]}else if(t>=-1131&&t<=-108){t=-t-108;e=[(t>>8)+251,t&255]}else if(t>=-32768&&t<=32767){e=[28,t>>8&255,t&255]}else{e=[29,t>>24&255,t>>16&255,t>>8&255,t&255]}return e}compileHeader(t){return[t.major,t.minor,4,t.offSize]}compileNameIndex(t){const e=new m;for(const i of t){const t=Math.min(i.length,127);let s=new Array(t);for(let e=0;e<t;e++){let t=i[e];if(t<"!"||t>"~"||t==="["||t==="]"||t==="("||t===")"||t==="{"||t==="}"||t==="<"||t===">"||t==="/"||t==="%"){t="_"}s[e]=t}s=s.join("");if(s===""){s="Bad_Font_Name"}e.add((0,n.stringToBytes)(s))}return this.compileIndex(e)}compileTopDicts(t,e,i){const n=[];let s=new m;for(const r of t){if(i){r.removeByName("CIDFontVersion");r.removeByName("CIDFontRevision");r.removeByName("CIDFontType");r.removeByName("CIDCount");r.removeByName("UIDBase")}const t=new M;const a=this.compileDict(r,t);n.push(t);s.add(a);t.offset(e)}s=this.compileIndex(s,n);return{trackers:n,output:s}}compilePrivateDicts(t,e,i){for(let s=0,r=t.length;s<r;++s){const r=t[s];const a=r.privateDict;if(!a||!r.hasName("Private")){throw new n.FormatError("There must be a private dictionary.")}const o=new M;const c=this.compileDict(a,o);let l=i.length;o.offset(l);if(!c.length){l=0}e[s].setEntryLocation("Private",[c.length,l],i);i.add(c);if(a.subrsIndex&&a.hasName("Subrs")){const t=this.compileIndex(a.subrsIndex);o.setEntryLocation("Subrs",[c.length],i);i.add(t)}}}compileDict(t,e){const i=[];for(const s of t.order){if(!(s in t.values)){continue}let r=t.values[s];let a=t.types[s];if(!Array.isArray(a)){a=[a]}if(!Array.isArray(r)){r=[r]}if(r.length===0){continue}for(let o=0,c=a.length;o<c;++o){const c=a[o];const l=r[o];switch(c){case"num":case"sid":i.push(...this.encodeNumber(l));break;case"offset":const a=t.keyToNameMap[s];if(!e.isTracking(a)){e.track(a,i.length)}i.push(29,0,0,0,0);break;case"array":case"delta":i.push(...this.encodeNumber(l));for(let t=1,e=r.length;t<e;++t){i.push(...this.encodeNumber(r[t]))}break;default:throw new n.FormatError(`Unknown data type of ${c}`)}}i.push(...t.opcodes[s])}return i}compileStringIndex(t){const e=new m;for(const i of t){e.add((0,n.stringToBytes)(i))}return this.compileIndex(e)}compileGlobalSubrIndex(){const t=this.cff.globalSubrIndex;this.out.writeByteArray(this.compileIndex(t))}compileCharStrings(t){const e=new m;for(let i=0;i<t.count;i++){const n=t.get(i);if(n.length===0){e.add(new Uint8Array([139,14]));continue}e.add(n)}return this.compileIndex(e)}compileCharset(t,e,i,s){let r;const a=e-1;if(s){r=new Uint8Array([2,0,0,a>>8&255,a&255])}else{const e=1+a*2;r=new Uint8Array(e);r[0]=0;let s=0;const o=t.charset.length;let c=false;for(let e=1;e<r.length;e+=2){let a=0;if(s<o){const e=t.charset[s++];a=i.getSID(e);if(a===-1){a=0;if(!c){c=true;(0,n.warn)(`Couldn't find ${e} in CFF strings`)}}}r[e]=a>>8&255;r[e+1]=a&255}}return this.compileTypedArray(r)}compileEncoding(t){return this.compileTypedArray(t.raw)}compileFDSelect(t){const e=t.format;let i,n;switch(e){case 0:i=new Uint8Array(1+t.fdSelect.length);i[0]=e;for(n=0;n<t.fdSelect.length;n++){i[n+1]=t.fdSelect[n]}break;case 3:const s=0;let r=t.fdSelect[0];const a=[e,0,0,s>>8&255,s&255,r];for(n=1;n<t.fdSelect.length;n++){const e=t.fdSelect[n];if(e!==r){a.push(n>>8&255,n&255,e);r=e}}const o=(a.length-3)/3;a[1]=o>>8&255;a[2]=o&255;a.push(n>>8&255,n&255);i=new Uint8Array(a);break}return this.compileTypedArray(i)}compileTypedArray(t){const e=[];for(let i=0,n=t.length;i<n;++i){e[i]=t[i]}return e}compileIndex(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];const i=t.objects;const n=i.length;if(n===0){return[0,0]}const s=[n>>8&255,n&255];let r=1,a;for(a=0;a<n;++a){r+=i[a].length}let o;if(r<256){o=1}else if(r<65536){o=2}else if(r<16777216){o=3}else{o=4}s.push(o);let c=1;for(a=0;a<n+1;a++){if(o===1){s.push(c&255)}else if(o===2){s.push(c>>8&255,c&255)}else if(o===3){s.push(c>>16&255,c>>8&255,c&255)}else{s.push(c>>>24&255,c>>16&255,c>>8&255,c&255)}if(i[a]){c+=i[a].length}}for(a=0;a<n;a++){if(e[a]){e[a].offset(s.length)}s.push(...i[a])}return s}}e.CFFCompiler=_},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.ISOAdobeCharset=e.ExpertSubsetCharset=e.ExpertCharset=void 0;const i=[".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"];e.ISOAdobeCharset=i;const n=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];e.ExpertCharset=n;const s=[".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"];e.ExpertSubsetCharset=s},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.ZapfDingbatsEncoding=e.WinAnsiEncoding=e.SymbolSetEncoding=e.StandardEncoding=e.MacRomanEncoding=e.ExpertEncoding=void 0;e.getEncoding=l;const i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];e.ExpertEncoding=i;const n=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""];const s=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];e.MacRomanEncoding=s;const r=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""];e.StandardEncoding=r;const a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];e.WinAnsiEncoding=a;const o=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];e.SymbolSetEncoding=o;const c=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""];e.ZapfDingbatsEncoding=c;function l(t){switch(t){case"WinAnsiEncoding":return a;case"StandardEncoding":return r;case"MacRomanEncoding":return s;case"SymbolSetEncoding":return o;case"ZapfDingbatsEncoding":return c;case"ExpertEncoding":return i;case"MacExpertEncoding":return n;default:return null}}},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.SEAC_ANALYSIS_ENABLED=e.MacStandardGlyphOrdering=e.FontFlags=void 0;e.getFontType=h;e.normalizeFontName=d;e.recoverGlyphName=u;e.type1FontGlyphMapping=f;var n=i(2);var s=i(166);var r=i(168);var a=i(169);const o=true;e.SEAC_ANALYSIS_ENABLED=o;const c={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};e.FontFlags=c;const l=[".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"];e.MacStandardGlyphOrdering=l;function h(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;switch(t){case"Type1":if(i){return n.FontType.TYPE1STANDARD}return e==="Type1C"?n.FontType.TYPE1C:n.FontType.TYPE1;case"CIDFontType0":return e==="CIDFontType0C"?n.FontType.CIDFONTTYPE0C:n.FontType.CIDFONTTYPE0;case"OpenType":return n.FontType.OPENTYPE;case"TrueType":return n.FontType.TRUETYPE;case"CIDFontType2":return n.FontType.CIDFONTTYPE2;case"MMType1":return n.FontType.MMTYPE1;case"Type0":return n.FontType.TYPE0;default:return n.FontType.UNKNOWN}}function u(t,e){if(e[t]!==undefined){return t}const i=(0,a.getUnicodeForGlyph)(t,e);if(i!==-1){for(const t in e){if(e[t]===i){return t}}}(0,n.info)("Unable to recover a standard glyph name for: "+t);return t}function f(t,e,i){const n=Object.create(null);let a,o,l;const h=!!(t.flags&c.Symbolic);if(t.isInternalFont){l=e;for(o=0;o<l.length;o++){a=i.indexOf(l[o]);if(a>=0){n[o]=a}else{n[o]=0}}}else if(t.baseEncodingName){l=(0,s.getEncoding)(t.baseEncodingName);for(o=0;o<l.length;o++){a=i.indexOf(l[o]);if(a>=0){n[o]=a}else{n[o]=0}}}else if(h){for(o in e){n[o]=e[o]}}else{l=s.StandardEncoding;for(o=0;o<l.length;o++){a=i.indexOf(l[o]);if(a>=0){n[o]=a}else{n[o]=0}}}const f=t.differences;let d;if(f){for(o in f){const t=f[o];a=i.indexOf(t);if(a===-1){if(!d){d=(0,r.getGlyphsUnicode)()}const e=u(t,d);if(e!==t){a=i.indexOf(e)}}if(a>=0){n[o]=a}else{n[o]=0}}}return n}function d(t){return t.replace(/[,_]/g,"-").replace(/\s/g,"")}},(t,e,i)=>{i.r(e);i.d(e,{getDingbatsGlyphsUnicode:()=>r,getGlyphsUnicode:()=>s});var n=i(135);const s=(0,n.getArrayLookupTableFactory)((function(){return["A",65,"AE",198,"AEacute",508,"AEmacron",482,"AEsmall",63462,"Aacute",193,"Aacutesmall",63457,"Abreve",258,"Abreveacute",7854,"Abrevecyrillic",1232,"Abrevedotbelow",7862,"Abrevegrave",7856,"Abrevehookabove",7858,"Abrevetilde",7860,"Acaron",461,"Acircle",9398,"Acircumflex",194,"Acircumflexacute",7844,"Acircumflexdotbelow",7852,"Acircumflexgrave",7846,"Acircumflexhookabove",7848,"Acircumflexsmall",63458,"Acircumflextilde",7850,"Acute",63177,"Acutesmall",63412,"Acyrillic",1040,"Adblgrave",512,"Adieresis",196,"Adieresiscyrillic",1234,"Adieresismacron",478,"Adieresissmall",63460,"Adotbelow",7840,"Adotmacron",480,"Agrave",192,"Agravesmall",63456,"Ahookabove",7842,"Aiecyrillic",1236,"Ainvertedbreve",514,"Alpha",913,"Alphatonos",902,"Amacron",256,"Amonospace",65313,"Aogonek",260,"Aring",197,"Aringacute",506,"Aringbelow",7680,"Aringsmall",63461,"Asmall",63329,"Atilde",195,"Atildesmall",63459,"Aybarmenian",1329,"B",66,"Bcircle",9399,"Bdotaccent",7682,"Bdotbelow",7684,"Becyrillic",1041,"Benarmenian",1330,"Beta",914,"Bhook",385,"Blinebelow",7686,"Bmonospace",65314,"Brevesmall",63220,"Bsmall",63330,"Btopbar",386,"C",67,"Caarmenian",1342,"Cacute",262,"Caron",63178,"Caronsmall",63221,"Ccaron",268,"Ccedilla",199,"Ccedillaacute",7688,"Ccedillasmall",63463,"Ccircle",9400,"Ccircumflex",264,"Cdot",266,"Cdotaccent",266,"Cedillasmall",63416,"Chaarmenian",1353,"Cheabkhasiancyrillic",1212,"Checyrillic",1063,"Chedescenderabkhasiancyrillic",1214,"Chedescendercyrillic",1206,"Chedieresiscyrillic",1268,"Cheharmenian",1347,"Chekhakassiancyrillic",1227,"Cheverticalstrokecyrillic",1208,"Chi",935,"Chook",391,"Circumflexsmall",63222,"Cmonospace",65315,"Coarmenian",1361,"Csmall",63331,"D",68,"DZ",497,"DZcaron",452,"Daarmenian",1332,"Dafrican",393,"Dcaron",270,"Dcedilla",7696,"Dcircle",9401,"Dcircumflexbelow",7698,"Dcroat",272,"Ddotaccent",7690,"Ddotbelow",7692,"Decyrillic",1044,"Deicoptic",1006,"Delta",8710,"Deltagreek",916,"Dhook",394,"Dieresis",63179,"DieresisAcute",63180,"DieresisGrave",63181,"Dieresissmall",63400,"Digammagreek",988,"Djecyrillic",1026,"Dlinebelow",7694,"Dmonospace",65316,"Dotaccentsmall",63223,"Dslash",272,"Dsmall",63332,"Dtopbar",395,"Dz",498,"Dzcaron",453,"Dzeabkhasiancyrillic",1248,"Dzecyrillic",1029,"Dzhecyrillic",1039,"E",69,"Eacute",201,"Eacutesmall",63465,"Ebreve",276,"Ecaron",282,"Ecedillabreve",7708,"Echarmenian",1333,"Ecircle",9402,"Ecircumflex",202,"Ecircumflexacute",7870,"Ecircumflexbelow",7704,"Ecircumflexdotbelow",7878,"Ecircumflexgrave",7872,"Ecircumflexhookabove",7874,"Ecircumflexsmall",63466,"Ecircumflextilde",7876,"Ecyrillic",1028,"Edblgrave",516,"Edieresis",203,"Edieresissmall",63467,"Edot",278,"Edotaccent",278,"Edotbelow",7864,"Efcyrillic",1060,"Egrave",200,"Egravesmall",63464,"Eharmenian",1335,"Ehookabove",7866,"Eightroman",8551,"Einvertedbreve",518,"Eiotifiedcyrillic",1124,"Elcyrillic",1051,"Elevenroman",8554,"Emacron",274,"Emacronacute",7702,"Emacrongrave",7700,"Emcyrillic",1052,"Emonospace",65317,"Encyrillic",1053,"Endescendercyrillic",1186,"Eng",330,"Enghecyrillic",1188,"Enhookcyrillic",1223,"Eogonek",280,"Eopen",400,"Epsilon",917,"Epsilontonos",904,"Ercyrillic",1056,"Ereversed",398,"Ereversedcyrillic",1069,"Escyrillic",1057,"Esdescendercyrillic",1194,"Esh",425,"Esmall",63333,"Eta",919,"Etarmenian",1336,"Etatonos",905,"Eth",208,"Ethsmall",63472,"Etilde",7868,"Etildebelow",7706,"Euro",8364,"Ezh",439,"Ezhcaron",494,"Ezhreversed",440,"F",70,"Fcircle",9403,"Fdotaccent",7710,"Feharmenian",1366,"Feicoptic",996,"Fhook",401,"Fitacyrillic",1138,"Fiveroman",8548,"Fmonospace",65318,"Fourroman",8547,"Fsmall",63334,"G",71,"GBsquare",13191,"Gacute",500,"Gamma",915,"Gammaafrican",404,"Gangiacoptic",1002,"Gbreve",286,"Gcaron",486,"Gcedilla",290,"Gcircle",9404,"Gcircumflex",284,"Gcommaaccent",290,"Gdot",288,"Gdotaccent",288,"Gecyrillic",1043,"Ghadarmenian",1346,"Ghemiddlehookcyrillic",1172,"Ghestrokecyrillic",1170,"Gheupturncyrillic",1168,"Ghook",403,"Gimarmenian",1331,"Gjecyrillic",1027,"Gmacron",7712,"Gmonospace",65319,"Grave",63182,"Gravesmall",63328,"Gsmall",63335,"Gsmallhook",667,"Gstroke",484,"H",72,"H18533",9679,"H18543",9642,"H18551",9643,"H22073",9633,"HPsquare",13259,"Haabkhasiancyrillic",1192,"Hadescendercyrillic",1202,"Hardsigncyrillic",1066,"Hbar",294,"Hbrevebelow",7722,"Hcedilla",7720,"Hcircle",9405,"Hcircumflex",292,"Hdieresis",7718,"Hdotaccent",7714,"Hdotbelow",7716,"Hmonospace",65320,"Hoarmenian",1344,"Horicoptic",1e3,"Hsmall",63336,"Hungarumlaut",63183,"Hungarumlautsmall",63224,"Hzsquare",13200,"I",73,"IAcyrillic",1071,"IJ",306,"IUcyrillic",1070,"Iacute",205,"Iacutesmall",63469,"Ibreve",300,"Icaron",463,"Icircle",9406,"Icircumflex",206,"Icircumflexsmall",63470,"Icyrillic",1030,"Idblgrave",520,"Idieresis",207,"Idieresisacute",7726,"Idieresiscyrillic",1252,"Idieresissmall",63471,"Idot",304,"Idotaccent",304,"Idotbelow",7882,"Iebrevecyrillic",1238,"Iecyrillic",1045,"Ifraktur",8465,"Igrave",204,"Igravesmall",63468,"Ihookabove",7880,"Iicyrillic",1048,"Iinvertedbreve",522,"Iishortcyrillic",1049,"Imacron",298,"Imacroncyrillic",1250,"Imonospace",65321,"Iniarmenian",1339,"Iocyrillic",1025,"Iogonek",302,"Iota",921,"Iotaafrican",406,"Iotadieresis",938,"Iotatonos",906,"Ismall",63337,"Istroke",407,"Itilde",296,"Itildebelow",7724,"Izhitsacyrillic",1140,"Izhitsadblgravecyrillic",1142,"J",74,"Jaarmenian",1345,"Jcircle",9407,"Jcircumflex",308,"Jecyrillic",1032,"Jheharmenian",1355,"Jmonospace",65322,"Jsmall",63338,"K",75,"KBsquare",13189,"KKsquare",13261,"Kabashkircyrillic",1184,"Kacute",7728,"Kacyrillic",1050,"Kadescendercyrillic",1178,"Kahookcyrillic",1219,"Kappa",922,"Kastrokecyrillic",1182,"Kaverticalstrokecyrillic",1180,"Kcaron",488,"Kcedilla",310,"Kcircle",9408,"Kcommaaccent",310,"Kdotbelow",7730,"Keharmenian",1364,"Kenarmenian",1343,"Khacyrillic",1061,"Kheicoptic",998,"Khook",408,"Kjecyrillic",1036,"Klinebelow",7732,"Kmonospace",65323,"Koppacyrillic",1152,"Koppagreek",990,"Ksicyrillic",1134,"Ksmall",63339,"L",76,"LJ",455,"LL",63167,"Lacute",313,"Lambda",923,"Lcaron",317,"Lcedilla",315,"Lcircle",9409,"Lcircumflexbelow",7740,"Lcommaaccent",315,"Ldot",319,"Ldotaccent",319,"Ldotbelow",7734,"Ldotbelowmacron",7736,"Liwnarmenian",1340,"Lj",456,"Ljecyrillic",1033,"Llinebelow",7738,"Lmonospace",65324,"Lslash",321,"Lslashsmall",63225,"Lsmall",63340,"M",77,"MBsquare",13190,"Macron",63184,"Macronsmall",63407,"Macute",7742,"Mcircle",9410,"Mdotaccent",7744,"Mdotbelow",7746,"Menarmenian",1348,"Mmonospace",65325,"Msmall",63341,"Mturned",412,"Mu",924,"N",78,"NJ",458,"Nacute",323,"Ncaron",327,"Ncedilla",325,"Ncircle",9411,"Ncircumflexbelow",7754,"Ncommaaccent",325,"Ndotaccent",7748,"Ndotbelow",7750,"Nhookleft",413,"Nineroman",8552,"Nj",459,"Njecyrillic",1034,"Nlinebelow",7752,"Nmonospace",65326,"Nowarmenian",1350,"Nsmall",63342,"Ntilde",209,"Ntildesmall",63473,"Nu",925,"O",79,"OE",338,"OEsmall",63226,"Oacute",211,"Oacutesmall",63475,"Obarredcyrillic",1256,"Obarreddieresiscyrillic",1258,"Obreve",334,"Ocaron",465,"Ocenteredtilde",415,"Ocircle",9412,"Ocircumflex",212,"Ocircumflexacute",7888,"Ocircumflexdotbelow",7896,"Ocircumflexgrave",7890,"Ocircumflexhookabove",7892,"Ocircumflexsmall",63476,"Ocircumflextilde",7894,"Ocyrillic",1054,"Odblacute",336,"Odblgrave",524,"Odieresis",214,"Odieresiscyrillic",1254,"Odieresissmall",63478,"Odotbelow",7884,"Ogoneksmall",63227,"Ograve",210,"Ogravesmall",63474,"Oharmenian",1365,"Ohm",8486,"Ohookabove",7886,"Ohorn",416,"Ohornacute",7898,"Ohorndotbelow",7906,"Ohorngrave",7900,"Ohornhookabove",7902,"Ohorntilde",7904,"Ohungarumlaut",336,"Oi",418,"Oinvertedbreve",526,"Omacron",332,"Omacronacute",7762,"Omacrongrave",7760,"Omega",8486,"Omegacyrillic",1120,"Omegagreek",937,"Omegaroundcyrillic",1146,"Omegatitlocyrillic",1148,"Omegatonos",911,"Omicron",927,"Omicrontonos",908,"Omonospace",65327,"Oneroman",8544,"Oogonek",490,"Oogonekmacron",492,"Oopen",390,"Oslash",216,"Oslashacute",510,"Oslashsmall",63480,"Osmall",63343,"Ostrokeacute",510,"Otcyrillic",1150,"Otilde",213,"Otildeacute",7756,"Otildedieresis",7758,"Otildesmall",63477,"P",80,"Pacute",7764,"Pcircle",9413,"Pdotaccent",7766,"Pecyrillic",1055,"Peharmenian",1354,"Pemiddlehookcyrillic",1190,"Phi",934,"Phook",420,"Pi",928,"Piwrarmenian",1363,"Pmonospace",65328,"Psi",936,"Psicyrillic",1136,"Psmall",63344,"Q",81,"Qcircle",9414,"Qmonospace",65329,"Qsmall",63345,"R",82,"Raarmenian",1356,"Racute",340,"Rcaron",344,"Rcedilla",342,"Rcircle",9415,"Rcommaaccent",342,"Rdblgrave",528,"Rdotaccent",7768,"Rdotbelow",7770,"Rdotbelowmacron",7772,"Reharmenian",1360,"Rfraktur",8476,"Rho",929,"Ringsmall",63228,"Rinvertedbreve",530,"Rlinebelow",7774,"Rmonospace",65330,"Rsmall",63346,"Rsmallinverted",641,"Rsmallinvertedsuperior",694,"S",83,"SF010000",9484,"SF020000",9492,"SF030000",9488,"SF040000",9496,"SF050000",9532,"SF060000",9516,"SF070000",9524,"SF080000",9500,"SF090000",9508,"SF100000",9472,"SF110000",9474,"SF190000",9569,"SF200000",9570,"SF210000",9558,"SF220000",9557,"SF230000",9571,"SF240000",9553,"SF250000",9559,"SF260000",9565,"SF270000",9564,"SF280000",9563,"SF360000",9566,"SF370000",9567,"SF380000",9562,"SF390000",9556,"SF400000",9577,"SF410000",9574,"SF420000",9568,"SF430000",9552,"SF440000",9580,"SF450000",9575,"SF460000",9576,"SF470000",9572,"SF480000",9573,"SF490000",9561,"SF500000",9560,"SF510000",9554,"SF520000",9555,"SF530000",9579,"SF540000",9578,"Sacute",346,"Sacutedotaccent",7780,"Sampigreek",992,"Scaron",352,"Scarondotaccent",7782,"Scaronsmall",63229,"Scedilla",350,"Schwa",399,"Schwacyrillic",1240,"Schwadieresiscyrillic",1242,"Scircle",9416,"Scircumflex",348,"Scommaaccent",536,"Sdotaccent",7776,"Sdotbelow",7778,"Sdotbelowdotaccent",7784,"Seharmenian",1357,"Sevenroman",8550,"Shaarmenian",1351,"Shacyrillic",1064,"Shchacyrillic",1065,"Sheicoptic",994,"Shhacyrillic",1210,"Shimacoptic",1004,"Sigma",931,"Sixroman",8549,"Smonospace",65331,"Softsigncyrillic",1068,"Ssmall",63347,"Stigmagreek",986,"T",84,"Tau",932,"Tbar",358,"Tcaron",356,"Tcedilla",354,"Tcircle",9417,"Tcircumflexbelow",7792,"Tcommaaccent",354,"Tdotaccent",7786,"Tdotbelow",7788,"Tecyrillic",1058,"Tedescendercyrillic",1196,"Tenroman",8553,"Tetsecyrillic",1204,"Theta",920,"Thook",428,"Thorn",222,"Thornsmall",63486,"Threeroman",8546,"Tildesmall",63230,"Tiwnarmenian",1359,"Tlinebelow",7790,"Tmonospace",65332,"Toarmenian",1337,"Tonefive",444,"Tonesix",388,"Tonetwo",423,"Tretroflexhook",430,"Tsecyrillic",1062,"Tshecyrillic",1035,"Tsmall",63348,"Twelveroman",8555,"Tworoman",8545,"U",85,"Uacute",218,"Uacutesmall",63482,"Ubreve",364,"Ucaron",467,"Ucircle",9418,"Ucircumflex",219,"Ucircumflexbelow",7798,"Ucircumflexsmall",63483,"Ucyrillic",1059,"Udblacute",368,"Udblgrave",532,"Udieresis",220,"Udieresisacute",471,"Udieresisbelow",7794,"Udieresiscaron",473,"Udieresiscyrillic",1264,"Udieresisgrave",475,"Udieresismacron",469,"Udieresissmall",63484,"Udotbelow",7908,"Ugrave",217,"Ugravesmall",63481,"Uhookabove",7910,"Uhorn",431,"Uhornacute",7912,"Uhorndotbelow",7920,"Uhorngrave",7914,"Uhornhookabove",7916,"Uhorntilde",7918,"Uhungarumlaut",368,"Uhungarumlautcyrillic",1266,"Uinvertedbreve",534,"Ukcyrillic",1144,"Umacron",362,"Umacroncyrillic",1262,"Umacrondieresis",7802,"Umonospace",65333,"Uogonek",370,"Upsilon",933,"Upsilon1",978,"Upsilonacutehooksymbolgreek",979,"Upsilonafrican",433,"Upsilondieresis",939,"Upsilondieresishooksymbolgreek",980,"Upsilonhooksymbol",978,"Upsilontonos",910,"Uring",366,"Ushortcyrillic",1038,"Usmall",63349,"Ustraightcyrillic",1198,"Ustraightstrokecyrillic",1200,"Utilde",360,"Utildeacute",7800,"Utildebelow",7796,"V",86,"Vcircle",9419,"Vdotbelow",7806,"Vecyrillic",1042,"Vewarmenian",1358,"Vhook",434,"Vmonospace",65334,"Voarmenian",1352,"Vsmall",63350,"Vtilde",7804,"W",87,"Wacute",7810,"Wcircle",9420,"Wcircumflex",372,"Wdieresis",7812,"Wdotaccent",7814,"Wdotbelow",7816,"Wgrave",7808,"Wmonospace",65335,"Wsmall",63351,"X",88,"Xcircle",9421,"Xdieresis",7820,"Xdotaccent",7818,"Xeharmenian",1341,"Xi",926,"Xmonospace",65336,"Xsmall",63352,"Y",89,"Yacute",221,"Yacutesmall",63485,"Yatcyrillic",1122,"Ycircle",9422,"Ycircumflex",374,"Ydieresis",376,"Ydieresissmall",63487,"Ydotaccent",7822,"Ydotbelow",7924,"Yericyrillic",1067,"Yerudieresiscyrillic",1272,"Ygrave",7922,"Yhook",435,"Yhookabove",7926,"Yiarmenian",1349,"Yicyrillic",1031,"Yiwnarmenian",1362,"Ymonospace",65337,"Ysmall",63353,"Ytilde",7928,"Yusbigcyrillic",1130,"Yusbigiotifiedcyrillic",1132,"Yuslittlecyrillic",1126,"Yuslittleiotifiedcyrillic",1128,"Z",90,"Zaarmenian",1334,"Zacute",377,"Zcaron",381,"Zcaronsmall",63231,"Zcircle",9423,"Zcircumflex",7824,"Zdot",379,"Zdotaccent",379,"Zdotbelow",7826,"Zecyrillic",1047,"Zedescendercyrillic",1176,"Zedieresiscyrillic",1246,"Zeta",918,"Zhearmenian",1338,"Zhebrevecyrillic",1217,"Zhecyrillic",1046,"Zhedescendercyrillic",1174,"Zhedieresiscyrillic",1244,"Zlinebelow",7828,"Zmonospace",65338,"Zsmall",63354,"Zstroke",437,"a",97,"aabengali",2438,"aacute",225,"aadeva",2310,"aagujarati",2694,"aagurmukhi",2566,"aamatragurmukhi",2622,"aarusquare",13059,"aavowelsignbengali",2494,"aavowelsigndeva",2366,"aavowelsigngujarati",2750,"abbreviationmarkarmenian",1375,"abbreviationsigndeva",2416,"abengali",2437,"abopomofo",12570,"abreve",259,"abreveacute",7855,"abrevecyrillic",1233,"abrevedotbelow",7863,"abrevegrave",7857,"abrevehookabove",7859,"abrevetilde",7861,"acaron",462,"acircle",9424,"acircumflex",226,"acircumflexacute",7845,"acircumflexdotbelow",7853,"acircumflexgrave",7847,"acircumflexhookabove",7849,"acircumflextilde",7851,"acute",180,"acutebelowcmb",791,"acutecmb",769,"acutecomb",769,"acutedeva",2388,"acutelowmod",719,"acutetonecmb",833,"acyrillic",1072,"adblgrave",513,"addakgurmukhi",2673,"adeva",2309,"adieresis",228,"adieresiscyrillic",1235,"adieresismacron",479,"adotbelow",7841,"adotmacron",481,"ae",230,"aeacute",509,"aekorean",12624,"aemacron",483,"afii00208",8213,"afii08941",8356,"afii10017",1040,"afii10018",1041,"afii10019",1042,"afii10020",1043,"afii10021",1044,"afii10022",1045,"afii10023",1025,"afii10024",1046,"afii10025",1047,"afii10026",1048,"afii10027",1049,"afii10028",1050,"afii10029",1051,"afii10030",1052,"afii10031",1053,"afii10032",1054,"afii10033",1055,"afii10034",1056,"afii10035",1057,"afii10036",1058,"afii10037",1059,"afii10038",1060,"afii10039",1061,"afii10040",1062,"afii10041",1063,"afii10042",1064,"afii10043",1065,"afii10044",1066,"afii10045",1067,"afii10046",1068,"afii10047",1069,"afii10048",1070,"afii10049",1071,"afii10050",1168,"afii10051",1026,"afii10052",1027,"afii10053",1028,"afii10054",1029,"afii10055",1030,"afii10056",1031,"afii10057",1032,"afii10058",1033,"afii10059",1034,"afii10060",1035,"afii10061",1036,"afii10062",1038,"afii10063",63172,"afii10064",63173,"afii10065",1072,"afii10066",1073,"afii10067",1074,"afii10068",1075,"afii10069",1076,"afii10070",1077,"afii10071",1105,"afii10072",1078,"afii10073",1079,"afii10074",1080,"afii10075",1081,"afii10076",1082,"afii10077",1083,"afii10078",1084,"afii10079",1085,"afii10080",1086,"afii10081",1087,"afii10082",1088,"afii10083",1089,"afii10084",1090,"afii10085",1091,"afii10086",1092,"afii10087",1093,"afii10088",1094,"afii10089",1095,"afii10090",1096,"afii10091",1097,"afii10092",1098,"afii10093",1099,"afii10094",1100,"afii10095",1101,"afii10096",1102,"afii10097",1103,"afii10098",1169,"afii10099",1106,"afii10100",1107,"afii10101",1108,"afii10102",1109,"afii10103",1110,"afii10104",1111,"afii10105",1112,"afii10106",1113,"afii10107",1114,"afii10108",1115,"afii10109",1116,"afii10110",1118,"afii10145",1039,"afii10146",1122,"afii10147",1138,"afii10148",1140,"afii10192",63174,"afii10193",1119,"afii10194",1123,"afii10195",1139,"afii10196",1141,"afii10831",63175,"afii10832",63176,"afii10846",1241,"afii299",8206,"afii300",8207,"afii301",8205,"afii57381",1642,"afii57388",1548,"afii57392",1632,"afii57393",1633,"afii57394",1634,"afii57395",1635,"afii57396",1636,"afii57397",1637,"afii57398",1638,"afii57399",1639,"afii57400",1640,"afii57401",1641,"afii57403",1563,"afii57407",1567,"afii57409",1569,"afii57410",1570,"afii57411",1571,"afii57412",1572,"afii57413",1573,"afii57414",1574,"afii57415",1575,"afii57416",1576,"afii57417",1577,"afii57418",1578,"afii57419",1579,"afii57420",1580,"afii57421",1581,"afii57422",1582,"afii57423",1583,"afii57424",1584,"afii57425",1585,"afii57426",1586,"afii57427",1587,"afii57428",1588,"afii57429",1589,"afii57430",1590,"afii57431",1591,"afii57432",1592,"afii57433",1593,"afii57434",1594,"afii57440",1600,"afii57441",1601,"afii57442",1602,"afii57443",1603,"afii57444",1604,"afii57445",1605,"afii57446",1606,"afii57448",1608,"afii57449",1609,"afii57450",1610,"afii57451",1611,"afii57452",1612,"afii57453",1613,"afii57454",1614,"afii57455",1615,"afii57456",1616,"afii57457",1617,"afii57458",1618,"afii57470",1607,"afii57505",1700,"afii57506",1662,"afii57507",1670,"afii57508",1688,"afii57509",1711,"afii57511",1657,"afii57512",1672,"afii57513",1681,"afii57514",1722,"afii57519",1746,"afii57534",1749,"afii57636",8362,"afii57645",1470,"afii57658",1475,"afii57664",1488,"afii57665",1489,"afii57666",1490,"afii57667",1491,"afii57668",1492,"afii57669",1493,"afii57670",1494,"afii57671",1495,"afii57672",1496,"afii57673",1497,"afii57674",1498,"afii57675",1499,"afii57676",1500,"afii57677",1501,"afii57678",1502,"afii57679",1503,"afii57680",1504,"afii57681",1505,"afii57682",1506,"afii57683",1507,"afii57684",1508,"afii57685",1509,"afii57686",1510,"afii57687",1511,"afii57688",1512,"afii57689",1513,"afii57690",1514,"afii57694",64298,"afii57695",64299,"afii57700",64331,"afii57705",64287,"afii57716",1520,"afii57717",1521,"afii57718",1522,"afii57723",64309,"afii57793",1460,"afii57794",1461,"afii57795",1462,"afii57796",1467,"afii57797",1464,"afii57798",1463,"afii57799",1456,"afii57800",1458,"afii57801",1457,"afii57802",1459,"afii57803",1474,"afii57804",1473,"afii57806",1465,"afii57807",1468,"afii57839",1469,"afii57841",1471,"afii57842",1472,"afii57929",700,"afii61248",8453,"afii61289",8467,"afii61352",8470,"afii61573",8236,"afii61574",8237,"afii61575",8238,"afii61664",8204,"afii63167",1645,"afii64937",701,"agrave",224,"agujarati",2693,"agurmukhi",2565,"ahiragana",12354,"ahookabove",7843,"aibengali",2448,"aibopomofo",12574,"aideva",2320,"aiecyrillic",1237,"aigujarati",2704,"aigurmukhi",2576,"aimatragurmukhi",2632,"ainarabic",1593,"ainfinalarabic",65226,"aininitialarabic",65227,"ainmedialarabic",65228,"ainvertedbreve",515,"aivowelsignbengali",2504,"aivowelsigndeva",2376,"aivowelsigngujarati",2760,"akatakana",12450,"akatakanahalfwidth",65393,"akorean",12623,"alef",1488,"alefarabic",1575,"alefdageshhebrew",64304,"aleffinalarabic",65166,"alefhamzaabovearabic",1571,"alefhamzaabovefinalarabic",65156,"alefhamzabelowarabic",1573,"alefhamzabelowfinalarabic",65160,"alefhebrew",1488,"aleflamedhebrew",64335,"alefmaddaabovearabic",1570,"alefmaddaabovefinalarabic",65154,"alefmaksuraarabic",1609,"alefmaksurafinalarabic",65264,"alefmaksurainitialarabic",65267,"alefmaksuramedialarabic",65268,"alefpatahhebrew",64302,"alefqamatshebrew",64303,"aleph",8501,"allequal",8780,"alpha",945,"alphatonos",940,"amacron",257,"amonospace",65345,"ampersand",38,"ampersandmonospace",65286,"ampersandsmall",63270,"amsquare",13250,"anbopomofo",12578,"angbopomofo",12580,"angbracketleft",12296,"angbracketright",12297,"angkhankhuthai",3674,"angle",8736,"anglebracketleft",12296,"anglebracketleftvertical",65087,"anglebracketright",12297,"anglebracketrightvertical",65088,"angleleft",9001,"angleright",9002,"angstrom",8491,"anoteleia",903,"anudattadeva",2386,"anusvarabengali",2434,"anusvaradeva",2306,"anusvaragujarati",2690,"aogonek",261,"apaatosquare",13056,"aparen",9372,"apostrophearmenian",1370,"apostrophemod",700,"apple",63743,"approaches",8784,"approxequal",8776,"approxequalorimage",8786,"approximatelyequal",8773,"araeaekorean",12686,"araeakorean",12685,"arc",8978,"arighthalfring",7834,"aring",229,"aringacute",507,"aringbelow",7681,"arrowboth",8596,"arrowdashdown",8675,"arrowdashleft",8672,"arrowdashright",8674,"arrowdashup",8673,"arrowdblboth",8660,"arrowdbldown",8659,"arrowdblleft",8656,"arrowdblright",8658,"arrowdblup",8657,"arrowdown",8595,"arrowdownleft",8601,"arrowdownright",8600,"arrowdownwhite",8681,"arrowheaddownmod",709,"arrowheadleftmod",706,"arrowheadrightmod",707,"arrowheadupmod",708,"arrowhorizex",63719,"arrowleft",8592,"arrowleftdbl",8656,"arrowleftdblstroke",8653,"arrowleftoverright",8646,"arrowleftwhite",8678,"arrowright",8594,"arrowrightdblstroke",8655,"arrowrightheavy",10142,"arrowrightoverleft",8644,"arrowrightwhite",8680,"arrowtableft",8676,"arrowtabright",8677,"arrowup",8593,"arrowupdn",8597,"arrowupdnbse",8616,"arrowupdownbase",8616,"arrowupleft",8598,"arrowupleftofdown",8645,"arrowupright",8599,"arrowupwhite",8679,"arrowvertex",63718,"asciicircum",94,"asciicircummonospace",65342,"asciitilde",126,"asciitildemonospace",65374,"ascript",593,"ascriptturned",594,"asmallhiragana",12353,"asmallkatakana",12449,"asmallkatakanahalfwidth",65383,"asterisk",42,"asteriskaltonearabic",1645,"asteriskarabic",1645,"asteriskmath",8727,"asteriskmonospace",65290,"asterisksmall",65121,"asterism",8258,"asuperior",63209,"asymptoticallyequal",8771,"at",64,"atilde",227,"atmonospace",65312,"atsmall",65131,"aturned",592,"aubengali",2452,"aubopomofo",12576,"audeva",2324,"augujarati",2708,"augurmukhi",2580,"aulengthmarkbengali",2519,"aumatragurmukhi",2636,"auvowelsignbengali",2508,"auvowelsigndeva",2380,"auvowelsigngujarati",2764,"avagrahadeva",2365,"aybarmenian",1377,"ayin",1506,"ayinaltonehebrew",64288,"ayinhebrew",1506,"b",98,"babengali",2476,"backslash",92,"backslashmonospace",65340,"badeva",2348,"bagujarati",2732,"bagurmukhi",2604,"bahiragana",12400,"bahtthai",3647,"bakatakana",12496,"bar",124,"barmonospace",65372,"bbopomofo",12549,"bcircle",9425,"bdotaccent",7683,"bdotbelow",7685,"beamedsixteenthnotes",9836,"because",8757,"becyrillic",1073,"beharabic",1576,"behfinalarabic",65168,"behinitialarabic",65169,"behiragana",12409,"behmedialarabic",65170,"behmeeminitialarabic",64671,"behmeemisolatedarabic",64520,"behnoonfinalarabic",64621,"bekatakana",12505,"benarmenian",1378,"bet",1489,"beta",946,"betasymbolgreek",976,"betdagesh",64305,"betdageshhebrew",64305,"bethebrew",1489,"betrafehebrew",64332,"bhabengali",2477,"bhadeva",2349,"bhagujarati",2733,"bhagurmukhi",2605,"bhook",595,"bihiragana",12403,"bikatakana",12499,"bilabialclick",664,"bindigurmukhi",2562,"birusquare",13105,"blackcircle",9679,"blackdiamond",9670,"blackdownpointingtriangle",9660,"blackleftpointingpointer",9668,"blackleftpointingtriangle",9664,"blacklenticularbracketleft",12304,"blacklenticularbracketleftvertical",65083,"blacklenticularbracketright",12305,"blacklenticularbracketrightvertical",65084,"blacklowerlefttriangle",9699,"blacklowerrighttriangle",9698,"blackrectangle",9644,"blackrightpointingpointer",9658,"blackrightpointingtriangle",9654,"blacksmallsquare",9642,"blacksmilingface",9787,"blacksquare",9632,"blackstar",9733,"blackupperlefttriangle",9700,"blackupperrighttriangle",9701,"blackuppointingsmalltriangle",9652,"blackuppointingtriangle",9650,"blank",9251,"blinebelow",7687,"block",9608,"bmonospace",65346,"bobaimaithai",3610,"bohiragana",12412,"bokatakana",12508,"bparen",9373,"bqsquare",13251,"braceex",63732,"braceleft",123,"braceleftbt",63731,"braceleftmid",63730,"braceleftmonospace",65371,"braceleftsmall",65115,"bracelefttp",63729,"braceleftvertical",65079,"braceright",125,"bracerightbt",63742,"bracerightmid",63741,"bracerightmonospace",65373,"bracerightsmall",65116,"bracerighttp",63740,"bracerightvertical",65080,"bracketleft",91,"bracketleftbt",63728,"bracketleftex",63727,"bracketleftmonospace",65339,"bracketlefttp",63726,"bracketright",93,"bracketrightbt",63739,"bracketrightex",63738,"bracketrightmonospace",65341,"bracketrighttp",63737,"breve",728,"brevebelowcmb",814,"brevecmb",774,"breveinvertedbelowcmb",815,"breveinvertedcmb",785,"breveinverteddoublecmb",865,"bridgebelowcmb",810,"bridgeinvertedbelowcmb",826,"brokenbar",166,"bstroke",384,"bsuperior",63210,"btopbar",387,"buhiragana",12406,"bukatakana",12502,"bullet",8226,"bulletinverse",9688,"bulletoperator",8729,"bullseye",9678,"c",99,"caarmenian",1390,"cabengali",2458,"cacute",263,"cadeva",2330,"cagujarati",2714,"cagurmukhi",2586,"calsquare",13192,"candrabindubengali",2433,"candrabinducmb",784,"candrabindudeva",2305,"candrabindugujarati",2689,"capslock",8682,"careof",8453,"caron",711,"caronbelowcmb",812,"caroncmb",780,"carriagereturn",8629,"cbopomofo",12568,"ccaron",269,"ccedilla",231,"ccedillaacute",7689,"ccircle",9426,"ccircumflex",265,"ccurl",597,"cdot",267,"cdotaccent",267,"cdsquare",13253,"cedilla",184,"cedillacmb",807,"cent",162,"centigrade",8451,"centinferior",63199,"centmonospace",65504,"centoldstyle",63394,"centsuperior",63200,"chaarmenian",1401,"chabengali",2459,"chadeva",2331,"chagujarati",2715,"chagurmukhi",2587,"chbopomofo",12564,"cheabkhasiancyrillic",1213,"checkmark",10003,"checyrillic",1095,"chedescenderabkhasiancyrillic",1215,"chedescendercyrillic",1207,"chedieresiscyrillic",1269,"cheharmenian",1395,"chekhakassiancyrillic",1228,"cheverticalstrokecyrillic",1209,"chi",967,"chieuchacirclekorean",12919,"chieuchaparenkorean",12823,"chieuchcirclekorean",12905,"chieuchkorean",12618,"chieuchparenkorean",12809,"chochangthai",3594,"chochanthai",3592,"chochingthai",3593,"chochoethai",3596,"chook",392,"cieucacirclekorean",12918,"cieucaparenkorean",12822,"cieuccirclekorean",12904,"cieuckorean",12616,"cieucparenkorean",12808,"cieucuparenkorean",12828,"circle",9675,"circlecopyrt",169,"circlemultiply",8855,"circleot",8857,"circleplus",8853,"circlepostalmark",12342,"circlewithlefthalfblack",9680,"circlewithrighthalfblack",9681,"circumflex",710,"circumflexbelowcmb",813,"circumflexcmb",770,"clear",8999,"clickalveolar",450,"clickdental",448,"clicklateral",449,"clickretroflex",451,"club",9827,"clubsuitblack",9827,"clubsuitwhite",9831,"cmcubedsquare",13220,"cmonospace",65347,"cmsquaredsquare",13216,"coarmenian",1409,"colon",58,"colonmonetary",8353,"colonmonospace",65306,"colonsign",8353,"colonsmall",65109,"colontriangularhalfmod",721,"colontriangularmod",720,"comma",44,"commaabovecmb",787,"commaaboverightcmb",789,"commaaccent",63171,"commaarabic",1548,"commaarmenian",1373,"commainferior",63201,"commamonospace",65292,"commareversedabovecmb",788,"commareversedmod",701,"commasmall",65104,"commasuperior",63202,"commaturnedabovecmb",786,"commaturnedmod",699,"compass",9788,"congruent",8773,"contourintegral",8750,"control",8963,"controlACK",6,"controlBEL",7,"controlBS",8,"controlCAN",24,"controlCR",13,"controlDC1",17,"controlDC2",18,"controlDC3",19,"controlDC4",20,"controlDEL",127,"controlDLE",16,"controlEM",25,"controlENQ",5,"controlEOT",4,"controlESC",27,"controlETB",23,"controlETX",3,"controlFF",12,"controlFS",28,"controlGS",29,"controlHT",9,"controlLF",10,"controlNAK",21,"controlNULL",0,"controlRS",30,"controlSI",15,"controlSO",14,"controlSOT",2,"controlSTX",1,"controlSUB",26,"controlSYN",22,"controlUS",31,"controlVT",11,"copyright",169,"copyrightsans",63721,"copyrightserif",63193,"cornerbracketleft",12300,"cornerbracketlefthalfwidth",65378,"cornerbracketleftvertical",65089,"cornerbracketright",12301,"cornerbracketrighthalfwidth",65379,"cornerbracketrightvertical",65090,"corporationsquare",13183,"cosquare",13255,"coverkgsquare",13254,"cparen",9374,"cruzeiro",8354,"cstretched",663,"curlyand",8911,"curlyor",8910,"currency",164,"cyrBreve",63185,"cyrFlex",63186,"cyrbreve",63188,"cyrflex",63189,"d",100,"daarmenian",1380,"dabengali",2470,"dadarabic",1590,"dadeva",2342,"dadfinalarabic",65214,"dadinitialarabic",65215,"dadmedialarabic",65216,"dagesh",1468,"dageshhebrew",1468,"dagger",8224,"daggerdbl",8225,"dagujarati",2726,"dagurmukhi",2598,"dahiragana",12384,"dakatakana",12480,"dalarabic",1583,"dalet",1491,"daletdagesh",64307,"daletdageshhebrew",64307,"dalethebrew",1491,"dalfinalarabic",65194,"dammaarabic",1615,"dammalowarabic",1615,"dammatanaltonearabic",1612,"dammatanarabic",1612,"danda",2404,"dargahebrew",1447,"dargalefthebrew",1447,"dasiapneumatacyrilliccmb",1157,"dblGrave",63187,"dblanglebracketleft",12298,"dblanglebracketleftvertical",65085,"dblanglebracketright",12299,"dblanglebracketrightvertical",65086,"dblarchinvertedbelowcmb",811,"dblarrowleft",8660,"dblarrowright",8658,"dbldanda",2405,"dblgrave",63190,"dblgravecmb",783,"dblintegral",8748,"dbllowline",8215,"dbllowlinecmb",819,"dbloverlinecmb",831,"dblprimemod",698,"dblverticalbar",8214,"dblverticallineabovecmb",782,"dbopomofo",12553,"dbsquare",13256,"dcaron",271,"dcedilla",7697,"dcircle",9427,"dcircumflexbelow",7699,"dcroat",273,"ddabengali",2465,"ddadeva",2337,"ddagujarati",2721,"ddagurmukhi",2593,"ddalarabic",1672,"ddalfinalarabic",64393,"dddhadeva",2396,"ddhabengali",2466,"ddhadeva",2338,"ddhagujarati",2722,"ddhagurmukhi",2594,"ddotaccent",7691,"ddotbelow",7693,"decimalseparatorarabic",1643,"decimalseparatorpersian",1643,"decyrillic",1076,"degree",176,"dehihebrew",1453,"dehiragana",12391,"deicoptic",1007,"dekatakana",12487,"deleteleft",9003,"deleteright",8998,"delta",948,"deltaturned",397,"denominatorminusonenumeratorbengali",2552,"dezh",676,"dhabengali",2471,"dhadeva",2343,"dhagujarati",2727,"dhagurmukhi",2599,"dhook",599,"dialytikatonos",901,"dialytikatonoscmb",836,"diamond",9830,"diamondsuitwhite",9826,"dieresis",168,"dieresisacute",63191,"dieresisbelowcmb",804,"dieresiscmb",776,"dieresisgrave",63192,"dieresistonos",901,"dihiragana",12386,"dikatakana",12482,"dittomark",12291,"divide",247,"divides",8739,"divisionslash",8725,"djecyrillic",1106,"dkshade",9619,"dlinebelow",7695,"dlsquare",13207,"dmacron",273,"dmonospace",65348,"dnblock",9604,"dochadathai",3598,"dodekthai",3604,"dohiragana",12393,"dokatakana",12489,"dollar",36,"dollarinferior",63203,"dollarmonospace",65284,"dollaroldstyle",63268,"dollarsmall",65129,"dollarsuperior",63204,"dong",8363,"dorusquare",13094,"dotaccent",729,"dotaccentcmb",775,"dotbelowcmb",803,"dotbelowcomb",803,"dotkatakana",12539,"dotlessi",305,"dotlessj",63166,"dotlessjstrokehook",644,"dotmath",8901,"dottedcircle",9676,"doubleyodpatah",64287,"doubleyodpatahhebrew",64287,"downtackbelowcmb",798,"downtackmod",725,"dparen",9375,"dsuperior",63211,"dtail",598,"dtopbar",396,"duhiragana",12389,"dukatakana",12485,"dz",499,"dzaltone",675,"dzcaron",454,"dzcurl",677,"dzeabkhasiancyrillic",1249,"dzecyrillic",1109,"dzhecyrillic",1119,"e",101,"eacute",233,"earth",9793,"ebengali",2447,"ebopomofo",12572,"ebreve",277,"ecandradeva",2317,"ecandragujarati",2701,"ecandravowelsigndeva",2373,"ecandravowelsigngujarati",2757,"ecaron",283,"ecedillabreve",7709,"echarmenian",1381,"echyiwnarmenian",1415,"ecircle",9428,"ecircumflex",234,"ecircumflexacute",7871,"ecircumflexbelow",7705,"ecircumflexdotbelow",7879,"ecircumflexgrave",7873,"ecircumflexhookabove",7875,"ecircumflextilde",7877,"ecyrillic",1108,"edblgrave",517,"edeva",2319,"edieresis",235,"edot",279,"edotaccent",279,"edotbelow",7865,"eegurmukhi",2575,"eematragurmukhi",2631,"efcyrillic",1092,"egrave",232,"egujarati",2703,"eharmenian",1383,"ehbopomofo",12573,"ehiragana",12360,"ehookabove",7867,"eibopomofo",12575,"eight",56,"eightarabic",1640,"eightbengali",2542,"eightcircle",9319,"eightcircleinversesansserif",10129,"eightdeva",2414,"eighteencircle",9329,"eighteenparen",9349,"eighteenperiod",9369,"eightgujarati",2798,"eightgurmukhi",2670,"eighthackarabic",1640,"eighthangzhou",12328,"eighthnotebeamed",9835,"eightideographicparen",12839,"eightinferior",8328,"eightmonospace",65304,"eightoldstyle",63288,"eightparen",9339,"eightperiod",9359,"eightpersian",1784,"eightroman",8567,"eightsuperior",8312,"eightthai",3672,"einvertedbreve",519,"eiotifiedcyrillic",1125,"ekatakana",12456,"ekatakanahalfwidth",65396,"ekonkargurmukhi",2676,"ekorean",12628,"elcyrillic",1083,"element",8712,"elevencircle",9322,"elevenparen",9342,"elevenperiod",9362,"elevenroman",8570,"ellipsis",8230,"ellipsisvertical",8942,"emacron",275,"emacronacute",7703,"emacrongrave",7701,"emcyrillic",1084,"emdash",8212,"emdashvertical",65073,"emonospace",65349,"emphasismarkarmenian",1371,"emptyset",8709,"enbopomofo",12579,"encyrillic",1085,"endash",8211,"endashvertical",65074,"endescendercyrillic",1187,"eng",331,"engbopomofo",12581,"enghecyrillic",1189,"enhookcyrillic",1224,"enspace",8194,"eogonek",281,"eokorean",12627,"eopen",603,"eopenclosed",666,"eopenreversed",604,"eopenreversedclosed",606,"eopenreversedhook",605,"eparen",9376,"epsilon",949,"epsilontonos",941,"equal",61,"equalmonospace",65309,"equalsmall",65126,"equalsuperior",8316,"equivalence",8801,"erbopomofo",12582,"ercyrillic",1088,"ereversed",600,"ereversedcyrillic",1101,"escyrillic",1089,"esdescendercyrillic",1195,"esh",643,"eshcurl",646,"eshortdeva",2318,"eshortvowelsigndeva",2374,"eshreversedloop",426,"eshsquatreversed",645,"esmallhiragana",12359,"esmallkatakana",12455,"esmallkatakanahalfwidth",65386,"estimated",8494,"esuperior",63212,"eta",951,"etarmenian",1384,"etatonos",942,"eth",240,"etilde",7869,"etildebelow",7707,"etnahtafoukhhebrew",1425,"etnahtafoukhlefthebrew",1425,"etnahtahebrew",1425,"etnahtalefthebrew",1425,"eturned",477,"eukorean",12641,"euro",8364,"evowelsignbengali",2503,"evowelsigndeva",2375,"evowelsigngujarati",2759,"exclam",33,"exclamarmenian",1372,"exclamdbl",8252,"exclamdown",161,"exclamdownsmall",63393,"exclammonospace",65281,"exclamsmall",63265,"existential",8707,"ezh",658,"ezhcaron",495,"ezhcurl",659,"ezhreversed",441,"ezhtail",442,"f",102,"fadeva",2398,"fagurmukhi",2654,"fahrenheit",8457,"fathaarabic",1614,"fathalowarabic",1614,"fathatanarabic",1611,"fbopomofo",12552,"fcircle",9429,"fdotaccent",7711,"feharabic",1601,"feharmenian",1414,"fehfinalarabic",65234,"fehinitialarabic",65235,"fehmedialarabic",65236,"feicoptic",997,"female",9792,"ff",64256,"f_f",64256,"ffi",64259,"f_f_i",64259,"ffl",64260,"f_f_l",64260,"fi",64257,"f_i",64257,"fifteencircle",9326,"fifteenparen",9346,"fifteenperiod",9366,"figuredash",8210,"filledbox",9632,"filledrect",9644,"finalkaf",1498,"finalkafdagesh",64314,"finalkafdageshhebrew",64314,"finalkafhebrew",1498,"finalmem",1501,"finalmemhebrew",1501,"finalnun",1503,"finalnunhebrew",1503,"finalpe",1507,"finalpehebrew",1507,"finaltsadi",1509,"finaltsadihebrew",1509,"firsttonechinese",713,"fisheye",9673,"fitacyrillic",1139,"five",53,"fivearabic",1637,"fivebengali",2539,"fivecircle",9316,"fivecircleinversesansserif",10126,"fivedeva",2411,"fiveeighths",8541,"fivegujarati",2795,"fivegurmukhi",2667,"fivehackarabic",1637,"fivehangzhou",12325,"fiveideographicparen",12836,"fiveinferior",8325,"fivemonospace",65301,"fiveoldstyle",63285,"fiveparen",9336,"fiveperiod",9356,"fivepersian",1781,"fiveroman",8564,"fivesuperior",8309,"fivethai",3669,"fl",64258,"f_l",64258,"florin",402,"fmonospace",65350,"fmsquare",13209,"fofanthai",3615,"fofathai",3613,"fongmanthai",3663,"forall",8704,"four",52,"fourarabic",1636,"fourbengali",2538,"fourcircle",9315,"fourcircleinversesansserif",10125,"fourdeva",2410,"fourgujarati",2794,"fourgurmukhi",2666,"fourhackarabic",1636,"fourhangzhou",12324,"fourideographicparen",12835,"fourinferior",8324,"fourmonospace",65300,"fournumeratorbengali",2551,"fouroldstyle",63284,"fourparen",9335,"fourperiod",9355,"fourpersian",1780,"fourroman",8563,"foursuperior",8308,"fourteencircle",9325,"fourteenparen",9345,"fourteenperiod",9365,"fourthai",3668,"fourthtonechinese",715,"fparen",9377,"fraction",8260,"franc",8355,"g",103,"gabengali",2455,"gacute",501,"gadeva",2327,"gafarabic",1711,"gaffinalarabic",64403,"gafinitialarabic",64404,"gafmedialarabic",64405,"gagujarati",2711,"gagurmukhi",2583,"gahiragana",12364,"gakatakana",12460,"gamma",947,"gammalatinsmall",611,"gammasuperior",736,"gangiacoptic",1003,"gbopomofo",12557,"gbreve",287,"gcaron",487,"gcedilla",291,"gcircle",9430,"gcircumflex",285,"gcommaaccent",291,"gdot",289,"gdotaccent",289,"gecyrillic",1075,"gehiragana",12370,"gekatakana",12466,"geometricallyequal",8785,"gereshaccenthebrew",1436,"gereshhebrew",1523,"gereshmuqdamhebrew",1437,"germandbls",223,"gershayimaccenthebrew",1438,"gershayimhebrew",1524,"getamark",12307,"ghabengali",2456,"ghadarmenian",1394,"ghadeva",2328,"ghagujarati",2712,"ghagurmukhi",2584,"ghainarabic",1594,"ghainfinalarabic",65230,"ghaininitialarabic",65231,"ghainmedialarabic",65232,"ghemiddlehookcyrillic",1173,"ghestrokecyrillic",1171,"gheupturncyrillic",1169,"ghhadeva",2394,"ghhagurmukhi",2650,"ghook",608,"ghzsquare",13203,"gihiragana",12366,"gikatakana",12462,"gimarmenian",1379,"gimel",1490,"gimeldagesh",64306,"gimeldageshhebrew",64306,"gimelhebrew",1490,"gjecyrillic",1107,"glottalinvertedstroke",446,"glottalstop",660,"glottalstopinverted",662,"glottalstopmod",704,"glottalstopreversed",661,"glottalstopreversedmod",705,"glottalstopreversedsuperior",740,"glottalstopstroke",673,"glottalstopstrokereversed",674,"gmacron",7713,"gmonospace",65351,"gohiragana",12372,"gokatakana",12468,"gparen",9378,"gpasquare",13228,"gradient",8711,"grave",96,"gravebelowcmb",790,"gravecmb",768,"gravecomb",768,"gravedeva",2387,"gravelowmod",718,"gravemonospace",65344,"gravetonecmb",832,"greater",62,"greaterequal",8805,"greaterequalorless",8923,"greatermonospace",65310,"greaterorequivalent",8819,"greaterorless",8823,"greateroverequal",8807,"greatersmall",65125,"gscript",609,"gstroke",485,"guhiragana",12368,"guillemotleft",171,"guillemotright",187,"guilsinglleft",8249,"guilsinglright",8250,"gukatakana",12464,"guramusquare",13080,"gysquare",13257,"h",104,"haabkhasiancyrillic",1193,"haaltonearabic",1729,"habengali",2489,"hadescendercyrillic",1203,"hadeva",2361,"hagujarati",2745,"hagurmukhi",2617,"haharabic",1581,"hahfinalarabic",65186,"hahinitialarabic",65187,"hahiragana",12399,"hahmedialarabic",65188,"haitusquare",13098,"hakatakana",12495,"hakatakanahalfwidth",65418,"halantgurmukhi",2637,"hamzaarabic",1569,"hamzalowarabic",1569,"hangulfiller",12644,"hardsigncyrillic",1098,"harpoonleftbarbup",8636,"harpoonrightbarbup",8640,"hasquare",13258,"hatafpatah",1458,"hatafpatah16",1458,"hatafpatah23",1458,"hatafpatah2f",1458,"hatafpatahhebrew",1458,"hatafpatahnarrowhebrew",1458,"hatafpatahquarterhebrew",1458,"hatafpatahwidehebrew",1458,"hatafqamats",1459,"hatafqamats1b",1459,"hatafqamats28",1459,"hatafqamats34",1459,"hatafqamatshebrew",1459,"hatafqamatsnarrowhebrew",1459,"hatafqamatsquarterhebrew",1459,"hatafqamatswidehebrew",1459,"hatafsegol",1457,"hatafsegol17",1457,"hatafsegol24",1457,"hatafsegol30",1457,"hatafsegolhebrew",1457,"hatafsegolnarrowhebrew",1457,"hatafsegolquarterhebrew",1457,"hatafsegolwidehebrew",1457,"hbar",295,"hbopomofo",12559,"hbrevebelow",7723,"hcedilla",7721,"hcircle",9431,"hcircumflex",293,"hdieresis",7719,"hdotaccent",7715,"hdotbelow",7717,"he",1492,"heart",9829,"heartsuitblack",9829,"heartsuitwhite",9825,"hedagesh",64308,"hedageshhebrew",64308,"hehaltonearabic",1729,"heharabic",1607,"hehebrew",1492,"hehfinalaltonearabic",64423,"hehfinalalttwoarabic",65258,"hehfinalarabic",65258,"hehhamzaabovefinalarabic",64421,"hehhamzaaboveisolatedarabic",64420,"hehinitialaltonearabic",64424,"hehinitialarabic",65259,"hehiragana",12408,"hehmedialaltonearabic",64425,"hehmedialarabic",65260,"heiseierasquare",13179,"hekatakana",12504,"hekatakanahalfwidth",65421,"hekutaarusquare",13110,"henghook",615,"herutusquare",13113,"het",1495,"hethebrew",1495,"hhook",614,"hhooksuperior",689,"hieuhacirclekorean",12923,"hieuhaparenkorean",12827,"hieuhcirclekorean",12909,"hieuhkorean",12622,"hieuhparenkorean",12813,"hihiragana",12402,"hikatakana",12498,"hikatakanahalfwidth",65419,"hiriq",1460,"hiriq14",1460,"hiriq21",1460,"hiriq2d",1460,"hiriqhebrew",1460,"hiriqnarrowhebrew",1460,"hiriqquarterhebrew",1460,"hiriqwidehebrew",1460,"hlinebelow",7830,"hmonospace",65352,"hoarmenian",1392,"hohipthai",3627,"hohiragana",12411,"hokatakana",12507,"hokatakanahalfwidth",65422,"holam",1465,"holam19",1465,"holam26",1465,"holam32",1465,"holamhebrew",1465,"holamnarrowhebrew",1465,"holamquarterhebrew",1465,"holamwidehebrew",1465,"honokhukthai",3630,"hookabovecomb",777,"hookcmb",777,"hookpalatalizedbelowcmb",801,"hookretroflexbelowcmb",802,"hoonsquare",13122,"horicoptic",1001,"horizontalbar",8213,"horncmb",795,"hotsprings",9832,"house",8962,"hparen",9379,"hsuperior",688,"hturned",613,"huhiragana",12405,"huiitosquare",13107,"hukatakana",12501,"hukatakanahalfwidth",65420,"hungarumlaut",733,"hungarumlautcmb",779,"hv",405,"hyphen",45,"hypheninferior",63205,"hyphenmonospace",65293,"hyphensmall",65123,"hyphensuperior",63206,"hyphentwo",8208,"i",105,"iacute",237,"iacyrillic",1103,"ibengali",2439,"ibopomofo",12583,"ibreve",301,"icaron",464,"icircle",9432,"icircumflex",238,"icyrillic",1110,"idblgrave",521,"ideographearthcircle",12943,"ideographfirecircle",12939,"ideographicallianceparen",12863,"ideographiccallparen",12858,"ideographiccentrecircle",12965,"ideographicclose",12294,"ideographiccomma",12289,"ideographiccommaleft",65380,"ideographiccongratulationparen",12855,"ideographiccorrectcircle",12963,"ideographicearthparen",12847,"ideographicenterpriseparen",12861,"ideographicexcellentcircle",12957,"ideographicfestivalparen",12864,"ideographicfinancialcircle",12950,"ideographicfinancialparen",12854,"ideographicfireparen",12843,"ideographichaveparen",12850,"ideographichighcircle",12964,"ideographiciterationmark",12293,"ideographiclaborcircle",12952,"ideographiclaborparen",12856,"ideographicleftcircle",12967,"ideographiclowcircle",12966,"ideographicmedicinecircle",12969,"ideographicmetalparen",12846,"ideographicmoonparen",12842,"ideographicnameparen",12852,"ideographicperiod",12290,"ideographicprintcircle",12958,"ideographicreachparen",12867,"ideographicrepresentparen",12857,"ideographicresourceparen",12862,"ideographicrightcircle",12968,"ideographicsecretcircle",12953,"ideographicselfparen",12866,"ideographicsocietyparen",12851,"ideographicspace",12288,"ideographicspecialparen",12853,"ideographicstockparen",12849,"ideographicstudyparen",12859,"ideographicsunparen",12848,"ideographicsuperviseparen",12860,"ideographicwaterparen",12844,"ideographicwoodparen",12845,"ideographiczero",12295,"ideographmetalcircle",12942,"ideographmooncircle",12938,"ideographnamecircle",12948,"ideographsuncircle",12944,"ideographwatercircle",12940,"ideographwoodcircle",12941,"ideva",2311,"idieresis",239,"idieresisacute",7727,"idieresiscyrillic",1253,"idotbelow",7883,"iebrevecyrillic",1239,"iecyrillic",1077,"ieungacirclekorean",12917,"ieungaparenkorean",12821,"ieungcirclekorean",12903,"ieungkorean",12615,"ieungparenkorean",12807,"igrave",236,"igujarati",2695,"igurmukhi",2567,"ihiragana",12356,"ihookabove",7881,"iibengali",2440,"iicyrillic",1080,"iideva",2312,"iigujarati",2696,"iigurmukhi",2568,"iimatragurmukhi",2624,"iinvertedbreve",523,"iishortcyrillic",1081,"iivowelsignbengali",2496,"iivowelsigndeva",2368,"iivowelsigngujarati",2752,"ij",307,"ikatakana",12452,"ikatakanahalfwidth",65394,"ikorean",12643,"ilde",732,"iluyhebrew",1452,"imacron",299,"imacroncyrillic",1251,"imageorapproximatelyequal",8787,"imatragurmukhi",2623,"imonospace",65353,"increment",8710,"infinity",8734,"iniarmenian",1387,"integral",8747,"integralbottom",8993,"integralbt",8993,"integralex",63733,"integraltop",8992,"integraltp",8992,"intersection",8745,"intisquare",13061,"invbullet",9688,"invcircle",9689,"invsmileface",9787,"iocyrillic",1105,"iogonek",303,"iota",953,"iotadieresis",970,"iotadieresistonos",912,"iotalatin",617,"iotatonos",943,"iparen",9380,"irigurmukhi",2674,"ismallhiragana",12355,"ismallkatakana",12451,"ismallkatakanahalfwidth",65384,"issharbengali",2554,"istroke",616,"isuperior",63213,"iterationhiragana",12445,"iterationkatakana",12541,"itilde",297,"itildebelow",7725,"iubopomofo",12585,"iucyrillic",1102,"ivowelsignbengali",2495,"ivowelsigndeva",2367,"ivowelsigngujarati",2751,"izhitsacyrillic",1141,"izhitsadblgravecyrillic",1143,"j",106,"jaarmenian",1393,"jabengali",2460,"jadeva",2332,"jagujarati",2716,"jagurmukhi",2588,"jbopomofo",12560,"jcaron",496,"jcircle",9433,"jcircumflex",309,"jcrossedtail",669,"jdotlessstroke",607,"jecyrillic",1112,"jeemarabic",1580,"jeemfinalarabic",65182,"jeeminitialarabic",65183,"jeemmedialarabic",65184,"jeharabic",1688,"jehfinalarabic",64395,"jhabengali",2461,"jhadeva",2333,"jhagujarati",2717,"jhagurmukhi",2589,"jheharmenian",1403,"jis",12292,"jmonospace",65354,"jparen",9381,"jsuperior",690,"k",107,"kabashkircyrillic",1185,"kabengali",2453,"kacute",7729,"kacyrillic",1082,"kadescendercyrillic",1179,"kadeva",2325,"kaf",1499,"kafarabic",1603,"kafdagesh",64315,"kafdageshhebrew",64315,"kaffinalarabic",65242,"kafhebrew",1499,"kafinitialarabic",65243,"kafmedialarabic",65244,"kafrafehebrew",64333,"kagujarati",2709,"kagurmukhi",2581,"kahiragana",12363,"kahookcyrillic",1220,"kakatakana",12459,"kakatakanahalfwidth",65398,"kappa",954,"kappasymbolgreek",1008,"kapyeounmieumkorean",12657,"kapyeounphieuphkorean",12676,"kapyeounpieupkorean",12664,"kapyeounssangpieupkorean",12665,"karoriisquare",13069,"kashidaautoarabic",1600,"kashidaautonosidebearingarabic",1600,"kasmallkatakana",12533,"kasquare",13188,"kasraarabic",1616,"kasratanarabic",1613,"kastrokecyrillic",1183,"katahiraprolongmarkhalfwidth",65392,"kaverticalstrokecyrillic",1181,"kbopomofo",12558,"kcalsquare",13193,"kcaron",489,"kcedilla",311,"kcircle",9434,"kcommaaccent",311,"kdotbelow",7731,"keharmenian",1412,"kehiragana",12369,"kekatakana",12465,"kekatakanahalfwidth",65401,"kenarmenian",1391,"kesmallkatakana",12534,"kgreenlandic",312,"khabengali",2454,"khacyrillic",1093,"khadeva",2326,"khagujarati",2710,"khagurmukhi",2582,"khaharabic",1582,"khahfinalarabic",65190,"khahinitialarabic",65191,"khahmedialarabic",65192,"kheicoptic",999,"khhadeva",2393,"khhagurmukhi",2649,"khieukhacirclekorean",12920,"khieukhaparenkorean",12824,"khieukhcirclekorean",12906,"khieukhkorean",12619,"khieukhparenkorean",12810,"khokhaithai",3586,"khokhonthai",3589,"khokhuatthai",3587,"khokhwaithai",3588,"khomutthai",3675,"khook",409,"khorakhangthai",3590,"khzsquare",13201,"kihiragana",12365,"kikatakana",12461,"kikatakanahalfwidth",65399,"kiroguramusquare",13077,"kiromeetorusquare",13078,"kirosquare",13076,"kiyeokacirclekorean",12910,"kiyeokaparenkorean",12814,"kiyeokcirclekorean",12896,"kiyeokkorean",12593,"kiyeokparenkorean",12800,"kiyeoksioskorean",12595,"kjecyrillic",1116,"klinebelow",7733,"klsquare",13208,"kmcubedsquare",13222,"kmonospace",65355,"kmsquaredsquare",13218,"kohiragana",12371,"kohmsquare",13248,"kokaithai",3585,"kokatakana",12467,"kokatakanahalfwidth",65402,"kooposquare",13086,"koppacyrillic",1153,"koreanstandardsymbol",12927,"koroniscmb",835,"kparen",9382,"kpasquare",13226,"ksicyrillic",1135,"ktsquare",13263,"kturned",670,"kuhiragana",12367,"kukatakana",12463,"kukatakanahalfwidth",65400,"kvsquare",13240,"kwsquare",13246,"l",108,"labengali",2482,"lacute",314,"ladeva",2354,"lagujarati",2738,"lagurmukhi",2610,"lakkhangyaothai",3653,"lamaleffinalarabic",65276,"lamalefhamzaabovefinalarabic",65272,"lamalefhamzaaboveisolatedarabic",65271,"lamalefhamzabelowfinalarabic",65274,"lamalefhamzabelowisolatedarabic",65273,"lamalefisolatedarabic",65275,"lamalefmaddaabovefinalarabic",65270,"lamalefmaddaaboveisolatedarabic",65269,"lamarabic",1604,"lambda",955,"lambdastroke",411,"lamed",1500,"lameddagesh",64316,"lameddageshhebrew",64316,"lamedhebrew",1500,"lamfinalarabic",65246,"lamhahinitialarabic",64714,"laminitialarabic",65247,"lamjeeminitialarabic",64713,"lamkhahinitialarabic",64715,"lamlamhehisolatedarabic",65010,"lammedialarabic",65248,"lammeemhahinitialarabic",64904,"lammeeminitialarabic",64716,"largecircle",9711,"lbar",410,"lbelt",620,"lbopomofo",12556,"lcaron",318,"lcedilla",316,"lcircle",9435,"lcircumflexbelow",7741,"lcommaaccent",316,"ldot",320,"ldotaccent",320,"ldotbelow",7735,"ldotbelowmacron",7737,"leftangleabovecmb",794,"lefttackbelowcmb",792,"less",60,"lessequal",8804,"lessequalorgreater",8922,"lessmonospace",65308,"lessorequivalent",8818,"lessorgreater",8822,"lessoverequal",8806,"lesssmall",65124,"lezh",622,"lfblock",9612,"lhookretroflex",621,"lira",8356,"liwnarmenian",1388,"lj",457,"ljecyrillic",1113,"ll",63168,"lladeva",2355,"llagujarati",2739,"llinebelow",7739,"llladeva",2356,"llvocalicbengali",2529,"llvocalicdeva",2401,"llvocalicvowelsignbengali",2531,"llvocalicvowelsigndeva",2403,"lmiddletilde",619,"lmonospace",65356,"lmsquare",13264,"lochulathai",3628,"logicaland",8743,"logicalnot",172,"logicalnotreversed",8976,"logicalor",8744,"lolingthai",3621,"longs",383,"lowlinecenterline",65102,"lowlinecmb",818,"lowlinedashed",65101,"lozenge",9674,"lparen",9383,"lslash",322,"lsquare",8467,"lsuperior",63214,"ltshade",9617,"luthai",3622,"lvocalicbengali",2444,"lvocalicdeva",2316,"lvocalicvowelsignbengali",2530,"lvocalicvowelsigndeva",2402,"lxsquare",13267,"m",109,"mabengali",2478,"macron",175,"macronbelowcmb",817,"macroncmb",772,"macronlowmod",717,"macronmonospace",65507,"macute",7743,"madeva",2350,"magujarati",2734,"magurmukhi",2606,"mahapakhhebrew",1444,"mahapakhlefthebrew",1444,"mahiragana",12414,"maichattawalowleftthai",63637,"maichattawalowrightthai",63636,"maichattawathai",3659,"maichattawaupperleftthai",63635,"maieklowleftthai",63628,"maieklowrightthai",63627,"maiekthai",3656,"maiekupperleftthai",63626,"maihanakatleftthai",63620,"maihanakatthai",3633,"maitaikhuleftthai",63625,"maitaikhuthai",3655,"maitholowleftthai",63631,"maitholowrightthai",63630,"maithothai",3657,"maithoupperleftthai",63629,"maitrilowleftthai",63634,"maitrilowrightthai",63633,"maitrithai",3658,"maitriupperleftthai",63632,"maiyamokthai",3654,"makatakana",12510,"makatakanahalfwidth",65423,"male",9794,"mansyonsquare",13127,"maqafhebrew",1470,"mars",9794,"masoracirclehebrew",1455,"masquare",13187,"mbopomofo",12551,"mbsquare",13268,"mcircle",9436,"mcubedsquare",13221,"mdotaccent",7745,"mdotbelow",7747,"meemarabic",1605,"meemfinalarabic",65250,"meeminitialarabic",65251,"meemmedialarabic",65252,"meemmeeminitialarabic",64721,"meemmeemisolatedarabic",64584,"meetorusquare",13133,"mehiragana",12417,"meizierasquare",13182,"mekatakana",12513,"mekatakanahalfwidth",65426,"mem",1502,"memdagesh",64318,"memdageshhebrew",64318,"memhebrew",1502,"menarmenian",1396,"merkhahebrew",1445,"merkhakefulahebrew",1446,"merkhakefulalefthebrew",1446,"merkhalefthebrew",1445,"mhook",625,"mhzsquare",13202,"middledotkatakanahalfwidth",65381,"middot",183,"mieumacirclekorean",12914,"mieumaparenkorean",12818,"mieumcirclekorean",12900,"mieumkorean",12609,"mieumpansioskorean",12656,"mieumparenkorean",12804,"mieumpieupkorean",12654,"mieumsioskorean",12655,"mihiragana",12415,"mikatakana",12511,"mikatakanahalfwidth",65424,"minus",8722,"minusbelowcmb",800,"minuscircle",8854,"minusmod",727,"minusplus",8723,"minute",8242,"miribaarusquare",13130,"mirisquare",13129,"mlonglegturned",624,"mlsquare",13206,"mmcubedsquare",13219,"mmonospace",65357,"mmsquaredsquare",13215,"mohiragana",12418,"mohmsquare",13249,"mokatakana",12514,"mokatakanahalfwidth",65427,"molsquare",13270,"momathai",3617,"moverssquare",13223,"moverssquaredsquare",13224,"mparen",9384,"mpasquare",13227,"mssquare",13235,"msuperior",63215,"mturned",623,"mu",181,"mu1",181,"muasquare",13186,"muchgreater",8811,"muchless",8810,"mufsquare",13196,"mugreek",956,"mugsquare",13197,"muhiragana",12416,"mukatakana",12512,"mukatakanahalfwidth",65425,"mulsquare",13205,"multiply",215,"mumsquare",13211,"munahhebrew",1443,"munahlefthebrew",1443,"musicalnote",9834,"musicalnotedbl",9835,"musicflatsign",9837,"musicsharpsign",9839,"mussquare",13234,"muvsquare",13238,"muwsquare",13244,"mvmegasquare",13241,"mvsquare",13239,"mwmegasquare",13247,"mwsquare",13245,"n",110,"nabengali",2472,"nabla",8711,"nacute",324,"nadeva",2344,"nagujarati",2728,"nagurmukhi",2600,"nahiragana",12394,"nakatakana",12490,"nakatakanahalfwidth",65413,"napostrophe",329,"nasquare",13185,"nbopomofo",12555,"nbspace",160,"ncaron",328,"ncedilla",326,"ncircle",9437,"ncircumflexbelow",7755,"ncommaaccent",326,"ndotaccent",7749,"ndotbelow",7751,"nehiragana",12397,"nekatakana",12493,"nekatakanahalfwidth",65416,"newsheqelsign",8362,"nfsquare",13195,"ngabengali",2457,"ngadeva",2329,"ngagujarati",2713,"ngagurmukhi",2585,"ngonguthai",3591,"nhiragana",12435,"nhookleft",626,"nhookretroflex",627,"nieunacirclekorean",12911,"nieunaparenkorean",12815,"nieuncieuckorean",12597,"nieuncirclekorean",12897,"nieunhieuhkorean",12598,"nieunkorean",12596,"nieunpansioskorean",12648,"nieunparenkorean",12801,"nieunsioskorean",12647,"nieuntikeutkorean",12646,"nihiragana",12395,"nikatakana",12491,"nikatakanahalfwidth",65414,"nikhahitleftthai",63641,"nikhahitthai",3661,"nine",57,"ninearabic",1641,"ninebengali",2543,"ninecircle",9320,"ninecircleinversesansserif",10130,"ninedeva",2415,"ninegujarati",2799,"ninegurmukhi",2671,"ninehackarabic",1641,"ninehangzhou",12329,"nineideographicparen",12840,"nineinferior",8329,"ninemonospace",65305,"nineoldstyle",63289,"nineparen",9340,"nineperiod",9360,"ninepersian",1785,"nineroman",8568,"ninesuperior",8313,"nineteencircle",9330,"nineteenparen",9350,"nineteenperiod",9370,"ninethai",3673,"nj",460,"njecyrillic",1114,"nkatakana",12531,"nkatakanahalfwidth",65437,"nlegrightlong",414,"nlinebelow",7753,"nmonospace",65358,"nmsquare",13210,"nnabengali",2467,"nnadeva",2339,"nnagujarati",2723,"nnagurmukhi",2595,"nnnadeva",2345,"nohiragana",12398,"nokatakana",12494,"nokatakanahalfwidth",65417,"nonbreakingspace",160,"nonenthai",3603,"nonuthai",3609,"noonarabic",1606,"noonfinalarabic",65254,"noonghunnaarabic",1722,"noonghunnafinalarabic",64415,"nooninitialarabic",65255,"noonjeeminitialarabic",64722,"noonjeemisolatedarabic",64587,"noonmedialarabic",65256,"noonmeeminitialarabic",64725,"noonmeemisolatedarabic",64590,"noonnoonfinalarabic",64653,"notcontains",8716,"notelement",8713,"notelementof",8713,"notequal",8800,"notgreater",8815,"notgreaternorequal",8817,"notgreaternorless",8825,"notidentical",8802,"notless",8814,"notlessnorequal",8816,"notparallel",8742,"notprecedes",8832,"notsubset",8836,"notsucceeds",8833,"notsuperset",8837,"nowarmenian",1398,"nparen",9385,"nssquare",13233,"nsuperior",8319,"ntilde",241,"nu",957,"nuhiragana",12396,"nukatakana",12492,"nukatakanahalfwidth",65415,"nuktabengali",2492,"nuktadeva",2364,"nuktagujarati",2748,"nuktagurmukhi",2620,"numbersign",35,"numbersignmonospace",65283,"numbersignsmall",65119,"numeralsigngreek",884,"numeralsignlowergreek",885,"numero",8470,"nun",1504,"nundagesh",64320,"nundageshhebrew",64320,"nunhebrew",1504,"nvsquare",13237,"nwsquare",13243,"nyabengali",2462,"nyadeva",2334,"nyagujarati",2718,"nyagurmukhi",2590,"o",111,"oacute",243,"oangthai",3629,"obarred",629,"obarredcyrillic",1257,"obarreddieresiscyrillic",1259,"obengali",2451,"obopomofo",12571,"obreve",335,"ocandradeva",2321,"ocandragujarati",2705,"ocandravowelsigndeva",2377,"ocandravowelsigngujarati",2761,"ocaron",466,"ocircle",9438,"ocircumflex",244,"ocircumflexacute",7889,"ocircumflexdotbelow",7897,"ocircumflexgrave",7891,"ocircumflexhookabove",7893,"ocircumflextilde",7895,"ocyrillic",1086,"odblacute",337,"odblgrave",525,"odeva",2323,"odieresis",246,"odieresiscyrillic",1255,"odotbelow",7885,"oe",339,"oekorean",12634,"ogonek",731,"ogonekcmb",808,"ograve",242,"ogujarati",2707,"oharmenian",1413,"ohiragana",12362,"ohookabove",7887,"ohorn",417,"ohornacute",7899,"ohorndotbelow",7907,"ohorngrave",7901,"ohornhookabove",7903,"ohorntilde",7905,"ohungarumlaut",337,"oi",419,"oinvertedbreve",527,"okatakana",12458,"okatakanahalfwidth",65397,"okorean",12631,"olehebrew",1451,"omacron",333,"omacronacute",7763,"omacrongrave",7761,"omdeva",2384,"omega",969,"omega1",982,"omegacyrillic",1121,"omegalatinclosed",631,"omegaroundcyrillic",1147,"omegatitlocyrillic",1149,"omegatonos",974,"omgujarati",2768,"omicron",959,"omicrontonos",972,"omonospace",65359,"one",49,"onearabic",1633,"onebengali",2535,"onecircle",9312,"onecircleinversesansserif",10122,"onedeva",2407,"onedotenleader",8228,"oneeighth",8539,"onefitted",63196,"onegujarati",2791,"onegurmukhi",2663,"onehackarabic",1633,"onehalf",189,"onehangzhou",12321,"oneideographicparen",12832,"oneinferior",8321,"onemonospace",65297,"onenumeratorbengali",2548,"oneoldstyle",63281,"oneparen",9332,"oneperiod",9352,"onepersian",1777,"onequarter",188,"oneroman",8560,"onesuperior",185,"onethai",3665,"onethird",8531,"oogonek",491,"oogonekmacron",493,"oogurmukhi",2579,"oomatragurmukhi",2635,"oopen",596,"oparen",9386,"openbullet",9702,"option",8997,"ordfeminine",170,"ordmasculine",186,"orthogonal",8735,"oshortdeva",2322,"oshortvowelsigndeva",2378,"oslash",248,"oslashacute",511,"osmallhiragana",12361,"osmallkatakana",12457,"osmallkatakanahalfwidth",65387,"ostrokeacute",511,"osuperior",63216,"otcyrillic",1151,"otilde",245,"otildeacute",7757,"otildedieresis",7759,"oubopomofo",12577,"overline",8254,"overlinecenterline",65098,"overlinecmb",773,"overlinedashed",65097,"overlinedblwavy",65100,"overlinewavy",65099,"overscore",175,"ovowelsignbengali",2507,"ovowelsigndeva",2379,"ovowelsigngujarati",2763,"p",112,"paampssquare",13184,"paasentosquare",13099,"pabengali",2474,"pacute",7765,"padeva",2346,"pagedown",8671,"pageup",8670,"pagujarati",2730,"pagurmukhi",2602,"pahiragana",12401,"paiyannoithai",3631,"pakatakana",12497,"palatalizationcyrilliccmb",1156,"palochkacyrillic",1216,"pansioskorean",12671,"paragraph",182,"parallel",8741,"parenleft",40,"parenleftaltonearabic",64830,"parenleftbt",63725,"parenleftex",63724,"parenleftinferior",8333,"parenleftmonospace",65288,"parenleftsmall",65113,"parenleftsuperior",8317,"parenlefttp",63723,"parenleftvertical",65077,"parenright",41,"parenrightaltonearabic",64831,"parenrightbt",63736,"parenrightex",63735,"parenrightinferior",8334,"parenrightmonospace",65289,"parenrightsmall",65114,"parenrightsuperior",8318,"parenrighttp",63734,"parenrightvertical",65078,"partialdiff",8706,"paseqhebrew",1472,"pashtahebrew",1433,"pasquare",13225,"patah",1463,"patah11",1463,"patah1d",1463,"patah2a",1463,"patahhebrew",1463,"patahnarrowhebrew",1463,"patahquarterhebrew",1463,"patahwidehebrew",1463,"pazerhebrew",1441,"pbopomofo",12550,"pcircle",9439,"pdotaccent",7767,"pe",1508,"pecyrillic",1087,"pedagesh",64324,"pedageshhebrew",64324,"peezisquare",13115,"pefinaldageshhebrew",64323,"peharabic",1662,"peharmenian",1402,"pehebrew",1508,"pehfinalarabic",64343,"pehinitialarabic",64344,"pehiragana",12410,"pehmedialarabic",64345,"pekatakana",12506,"pemiddlehookcyrillic",1191,"perafehebrew",64334,"percent",37,"percentarabic",1642,"percentmonospace",65285,"percentsmall",65130,"period",46,"periodarmenian",1417,"periodcentered",183,"periodhalfwidth",65377,"periodinferior",63207,"periodmonospace",65294,"periodsmall",65106,"periodsuperior",63208,"perispomenigreekcmb",834,"perpendicular",8869,"perthousand",8240,"peseta",8359,"pfsquare",13194,"phabengali",2475,"phadeva",2347,"phagujarati",2731,"phagurmukhi",2603,"phi",966,"phi1",981,"phieuphacirclekorean",12922,"phieuphaparenkorean",12826,"phieuphcirclekorean",12908,"phieuphkorean",12621,"phieuphparenkorean",12812,"philatin",632,"phinthuthai",3642,"phisymbolgreek",981,"phook",421,"phophanthai",3614,"phophungthai",3612,"phosamphaothai",3616,"pi",960,"pieupacirclekorean",12915,"pieupaparenkorean",12819,"pieupcieuckorean",12662,"pieupcirclekorean",12901,"pieupkiyeokkorean",12658,"pieupkorean",12610,"pieupparenkorean",12805,"pieupsioskiyeokkorean",12660,"pieupsioskorean",12612,"pieupsiostikeutkorean",12661,"pieupthieuthkorean",12663,"pieuptikeutkorean",12659,"pihiragana",12404,"pikatakana",12500,"pisymbolgreek",982,"piwrarmenian",1411,"plus",43,"plusbelowcmb",799,"pluscircle",8853,"plusminus",177,"plusmod",726,"plusmonospace",65291,"plussmall",65122,"plussuperior",8314,"pmonospace",65360,"pmsquare",13272,"pohiragana",12413,"pointingindexdownwhite",9759,"pointingindexleftwhite",9756,"pointingindexrightwhite",9758,"pointingindexupwhite",9757,"pokatakana",12509,"poplathai",3611,"postalmark",12306,"postalmarkface",12320,"pparen",9387,"precedes",8826,"prescription",8478,"primemod",697,"primereversed",8245,"product",8719,"projective",8965,"prolongedkana",12540,"propellor",8984,"propersubset",8834,"propersuperset",8835,"proportion",8759,"proportional",8733,"psi",968,"psicyrillic",1137,"psilipneumatacyrilliccmb",1158,"pssquare",13232,"puhiragana",12407,"pukatakana",12503,"pvsquare",13236,"pwsquare",13242,"q",113,"qadeva",2392,"qadmahebrew",1448,"qafarabic",1602,"qaffinalarabic",65238,"qafinitialarabic",65239,"qafmedialarabic",65240,"qamats",1464,"qamats10",1464,"qamats1a",1464,"qamats1c",1464,"qamats27",1464,"qamats29",1464,"qamats33",1464,"qamatsde",1464,"qamatshebrew",1464,"qamatsnarrowhebrew",1464,"qamatsqatanhebrew",1464,"qamatsqatannarrowhebrew",1464,"qamatsqatanquarterhebrew",1464,"qamatsqatanwidehebrew",1464,"qamatsquarterhebrew",1464,"qamatswidehebrew",1464,"qarneyparahebrew",1439,"qbopomofo",12561,"qcircle",9440,"qhook",672,"qmonospace",65361,"qof",1511,"qofdagesh",64327,"qofdageshhebrew",64327,"qofhebrew",1511,"qparen",9388,"quarternote",9833,"qubuts",1467,"qubuts18",1467,"qubuts25",1467,"qubuts31",1467,"qubutshebrew",1467,"qubutsnarrowhebrew",1467,"qubutsquarterhebrew",1467,"qubutswidehebrew",1467,"question",63,"questionarabic",1567,"questionarmenian",1374,"questiondown",191,"questiondownsmall",63423,"questiongreek",894,"questionmonospace",65311,"questionsmall",63295,"quotedbl",34,"quotedblbase",8222,"quotedblleft",8220,"quotedblmonospace",65282,"quotedblprime",12318,"quotedblprimereversed",12317,"quotedblright",8221,"quoteleft",8216,"quoteleftreversed",8219,"quotereversed",8219,"quoteright",8217,"quoterightn",329,"quotesinglbase",8218,"quotesingle",39,"quotesinglemonospace",65287,"r",114,"raarmenian",1404,"rabengali",2480,"racute",341,"radeva",2352,"radical",8730,"radicalex",63717,"radoverssquare",13230,"radoverssquaredsquare",13231,"radsquare",13229,"rafe",1471,"rafehebrew",1471,"ragujarati",2736,"ragurmukhi",2608,"rahiragana",12425,"rakatakana",12521,"rakatakanahalfwidth",65431,"ralowerdiagonalbengali",2545,"ramiddlediagonalbengali",2544,"ramshorn",612,"ratio",8758,"rbopomofo",12566,"rcaron",345,"rcedilla",343,"rcircle",9441,"rcommaaccent",343,"rdblgrave",529,"rdotaccent",7769,"rdotbelow",7771,"rdotbelowmacron",7773,"referencemark",8251,"reflexsubset",8838,"reflexsuperset",8839,"registered",174,"registersans",63720,"registerserif",63194,"reharabic",1585,"reharmenian",1408,"rehfinalarabic",65198,"rehiragana",12428,"rekatakana",12524,"rekatakanahalfwidth",65434,"resh",1512,"reshdageshhebrew",64328,"reshhebrew",1512,"reversedtilde",8765,"reviahebrew",1431,"reviamugrashhebrew",1431,"revlogicalnot",8976,"rfishhook",638,"rfishhookreversed",639,"rhabengali",2525,"rhadeva",2397,"rho",961,"rhook",637,"rhookturned",635,"rhookturnedsuperior",693,"rhosymbolgreek",1009,"rhotichookmod",734,"rieulacirclekorean",12913,"rieulaparenkorean",12817,"rieulcirclekorean",12899,"rieulhieuhkorean",12608,"rieulkiyeokkorean",12602,"rieulkiyeoksioskorean",12649,"rieulkorean",12601,"rieulmieumkorean",12603,"rieulpansioskorean",12652,"rieulparenkorean",12803,"rieulphieuphkorean",12607,"rieulpieupkorean",12604,"rieulpieupsioskorean",12651,"rieulsioskorean",12605,"rieulthieuthkorean",12606,"rieultikeutkorean",12650,"rieulyeorinhieuhkorean",12653,"rightangle",8735,"righttackbelowcmb",793,"righttriangle",8895,"rihiragana",12426,"rikatakana",12522,"rikatakanahalfwidth",65432,"ring",730,"ringbelowcmb",805,"ringcmb",778,"ringhalfleft",703,"ringhalfleftarmenian",1369,"ringhalfleftbelowcmb",796,"ringhalfleftcentered",723,"ringhalfright",702,"ringhalfrightbelowcmb",825,"ringhalfrightcentered",722,"rinvertedbreve",531,"rittorusquare",13137,"rlinebelow",7775,"rlongleg",636,"rlonglegturned",634,"rmonospace",65362,"rohiragana",12429,"rokatakana",12525,"rokatakanahalfwidth",65435,"roruathai",3619,"rparen",9389,"rrabengali",2524,"rradeva",2353,"rragurmukhi",2652,"rreharabic",1681,"rrehfinalarabic",64397,"rrvocalicbengali",2528,"rrvocalicdeva",2400,"rrvocalicgujarati",2784,"rrvocalicvowelsignbengali",2500,"rrvocalicvowelsigndeva",2372,"rrvocalicvowelsigngujarati",2756,"rsuperior",63217,"rtblock",9616,"rturned",633,"rturnedsuperior",692,"ruhiragana",12427,"rukatakana",12523,"rukatakanahalfwidth",65433,"rupeemarkbengali",2546,"rupeesignbengali",2547,"rupiah",63197,"ruthai",3620,"rvocalicbengali",2443,"rvocalicdeva",2315,"rvocalicgujarati",2699,"rvocalicvowelsignbengali",2499,"rvocalicvowelsigndeva",2371,"rvocalicvowelsigngujarati",2755,"s",115,"sabengali",2488,"sacute",347,"sacutedotaccent",7781,"sadarabic",1589,"sadeva",2360,"sadfinalarabic",65210,"sadinitialarabic",65211,"sadmedialarabic",65212,"sagujarati",2744,"sagurmukhi",2616,"sahiragana",12373,"sakatakana",12469,"sakatakanahalfwidth",65403,"sallallahoualayhewasallamarabic",65018,"samekh",1505,"samekhdagesh",64321,"samekhdageshhebrew",64321,"samekhhebrew",1505,"saraaathai",3634,"saraaethai",3649,"saraaimaimalaithai",3652,"saraaimaimuanthai",3651,"saraamthai",3635,"saraathai",3632,"saraethai",3648,"saraiileftthai",63622,"saraiithai",3637,"saraileftthai",63621,"saraithai",3636,"saraothai",3650,"saraueeleftthai",63624,"saraueethai",3639,"saraueleftthai",63623,"sarauethai",3638,"sarauthai",3640,"sarauuthai",3641,"sbopomofo",12569,"scaron",353,"scarondotaccent",7783,"scedilla",351,"schwa",601,"schwacyrillic",1241,"schwadieresiscyrillic",1243,"schwahook",602,"scircle",9442,"scircumflex",349,"scommaaccent",537,"sdotaccent",7777,"sdotbelow",7779,"sdotbelowdotaccent",7785,"seagullbelowcmb",828,"second",8243,"secondtonechinese",714,"section",167,"seenarabic",1587,"seenfinalarabic",65202,"seeninitialarabic",65203,"seenmedialarabic",65204,"segol",1462,"segol13",1462,"segol1f",1462,"segol2c",1462,"segolhebrew",1462,"segolnarrowhebrew",1462,"segolquarterhebrew",1462,"segoltahebrew",1426,"segolwidehebrew",1462,"seharmenian",1405,"sehiragana",12379,"sekatakana",12475,"sekatakanahalfwidth",65406,"semicolon",59,"semicolonarabic",1563,"semicolonmonospace",65307,"semicolonsmall",65108,"semivoicedmarkkana",12444,"semivoicedmarkkanahalfwidth",65439,"sentisquare",13090,"sentosquare",13091,"seven",55,"sevenarabic",1639,"sevenbengali",2541,"sevencircle",9318,"sevencircleinversesansserif",10128,"sevendeva",2413,"seveneighths",8542,"sevengujarati",2797,"sevengurmukhi",2669,"sevenhackarabic",1639,"sevenhangzhou",12327,"sevenideographicparen",12838,"seveninferior",8327,"sevenmonospace",65303,"sevenoldstyle",63287,"sevenparen",9338,"sevenperiod",9358,"sevenpersian",1783,"sevenroman",8566,"sevensuperior",8311,"seventeencircle",9328,"seventeenparen",9348,"seventeenperiod",9368,"seventhai",3671,"sfthyphen",173,"shaarmenian",1399,"shabengali",2486,"shacyrillic",1096,"shaddaarabic",1617,"shaddadammaarabic",64609,"shaddadammatanarabic",64606,"shaddafathaarabic",64608,"shaddakasraarabic",64610,"shaddakasratanarabic",64607,"shade",9618,"shadedark",9619,"shadelight",9617,"shademedium",9618,"shadeva",2358,"shagujarati",2742,"shagurmukhi",2614,"shalshelethebrew",1427,"shbopomofo",12565,"shchacyrillic",1097,"sheenarabic",1588,"sheenfinalarabic",65206,"sheeninitialarabic",65207,"sheenmedialarabic",65208,"sheicoptic",995,"sheqel",8362,"sheqelhebrew",8362,"sheva",1456,"sheva115",1456,"sheva15",1456,"sheva22",1456,"sheva2e",1456,"shevahebrew",1456,"shevanarrowhebrew",1456,"shevaquarterhebrew",1456,"shevawidehebrew",1456,"shhacyrillic",1211,"shimacoptic",1005,"shin",1513,"shindagesh",64329,"shindageshhebrew",64329,"shindageshshindot",64300,"shindageshshindothebrew",64300,"shindageshsindot",64301,"shindageshsindothebrew",64301,"shindothebrew",1473,"shinhebrew",1513,"shinshindot",64298,"shinshindothebrew",64298,"shinsindot",64299,"shinsindothebrew",64299,"shook",642,"sigma",963,"sigma1",962,"sigmafinal",962,"sigmalunatesymbolgreek",1010,"sihiragana",12375,"sikatakana",12471,"sikatakanahalfwidth",65404,"siluqhebrew",1469,"siluqlefthebrew",1469,"similar",8764,"sindothebrew",1474,"siosacirclekorean",12916,"siosaparenkorean",12820,"sioscieuckorean",12670,"sioscirclekorean",12902,"sioskiyeokkorean",12666,"sioskorean",12613,"siosnieunkorean",12667,"siosparenkorean",12806,"siospieupkorean",12669,"siostikeutkorean",12668,"six",54,"sixarabic",1638,"sixbengali",2540,"sixcircle",9317,"sixcircleinversesansserif",10127,"sixdeva",2412,"sixgujarati",2796,"sixgurmukhi",2668,"sixhackarabic",1638,"sixhangzhou",12326,"sixideographicparen",12837,"sixinferior",8326,"sixmonospace",65302,"sixoldstyle",63286,"sixparen",9337,"sixperiod",9357,"sixpersian",1782,"sixroman",8565,"sixsuperior",8310,"sixteencircle",9327,"sixteencurrencydenominatorbengali",2553,"sixteenparen",9347,"sixteenperiod",9367,"sixthai",3670,"slash",47,"slashmonospace",65295,"slong",383,"slongdotaccent",7835,"smileface",9786,"smonospace",65363,"sofpasuqhebrew",1475,"softhyphen",173,"softsigncyrillic",1100,"sohiragana",12381,"sokatakana",12477,"sokatakanahalfwidth",65407,"soliduslongoverlaycmb",824,"solidusshortoverlaycmb",823,"sorusithai",3625,"sosalathai",3624,"sosothai",3595,"sosuathai",3626,"space",32,"spacehackarabic",32,"spade",9824,"spadesuitblack",9824,"spadesuitwhite",9828,"sparen",9390,"squarebelowcmb",827,"squarecc",13252,"squarecm",13213,"squarediagonalcrosshatchfill",9641,"squarehorizontalfill",9636,"squarekg",13199,"squarekm",13214,"squarekmcapital",13262,"squareln",13265,"squarelog",13266,"squaremg",13198,"squaremil",13269,"squaremm",13212,"squaremsquared",13217,"squareorthogonalcrosshatchfill",9638,"squareupperlefttolowerrightfill",9639,"squareupperrighttolowerleftfill",9640,"squareverticalfill",9637,"squarewhitewithsmallblack",9635,"srsquare",13275,"ssabengali",2487,"ssadeva",2359,"ssagujarati",2743,"ssangcieuckorean",12617,"ssanghieuhkorean",12677,"ssangieungkorean",12672,"ssangkiyeokkorean",12594,"ssangnieunkorean",12645,"ssangpieupkorean",12611,"ssangsioskorean",12614,"ssangtikeutkorean",12600,"ssuperior",63218,"sterling",163,"sterlingmonospace",65505,"strokelongoverlaycmb",822,"strokeshortoverlaycmb",821,"subset",8834,"subsetnotequal",8842,"subsetorequal",8838,"succeeds",8827,"suchthat",8715,"suhiragana",12377,"sukatakana",12473,"sukatakanahalfwidth",65405,"sukunarabic",1618,"summation",8721,"sun",9788,"superset",8835,"supersetnotequal",8843,"supersetorequal",8839,"svsquare",13276,"syouwaerasquare",13180,"t",116,"tabengali",2468,"tackdown",8868,"tackleft",8867,"tadeva",2340,"tagujarati",2724,"tagurmukhi",2596,"taharabic",1591,"tahfinalarabic",65218,"tahinitialarabic",65219,"tahiragana",12383,"tahmedialarabic",65220,"taisyouerasquare",13181,"takatakana",12479,"takatakanahalfwidth",65408,"tatweelarabic",1600,"tau",964,"tav",1514,"tavdages",64330,"tavdagesh",64330,"tavdageshhebrew",64330,"tavhebrew",1514,"tbar",359,"tbopomofo",12554,"tcaron",357,"tccurl",680,"tcedilla",355,"tcheharabic",1670,"tchehfinalarabic",64379,"tchehinitialarabic",64380,"tchehmedialarabic",64381,"tcircle",9443,"tcircumflexbelow",7793,"tcommaaccent",355,"tdieresis",7831,"tdotaccent",7787,"tdotbelow",7789,"tecyrillic",1090,"tedescendercyrillic",1197,"teharabic",1578,"tehfinalarabic",65174,"tehhahinitialarabic",64674,"tehhahisolatedarabic",64524,"tehinitialarabic",65175,"tehiragana",12390,"tehjeeminitialarabic",64673,"tehjeemisolatedarabic",64523,"tehmarbutaarabic",1577,"tehmarbutafinalarabic",65172,"tehmedialarabic",65176,"tehmeeminitialarabic",64676,"tehmeemisolatedarabic",64526,"tehnoonfinalarabic",64627,"tekatakana",12486,"tekatakanahalfwidth",65411,"telephone",8481,"telephoneblack",9742,"telishagedolahebrew",1440,"telishaqetanahebrew",1449,"tencircle",9321,"tenideographicparen",12841,"tenparen",9341,"tenperiod",9361,"tenroman",8569,"tesh",679,"tet",1496,"tetdagesh",64312,"tetdageshhebrew",64312,"tethebrew",1496,"tetsecyrillic",1205,"tevirhebrew",1435,"tevirlefthebrew",1435,"thabengali",2469,"thadeva",2341,"thagujarati",2725,"thagurmukhi",2597,"thalarabic",1584,"thalfinalarabic",65196,"thanthakhatlowleftthai",63640,"thanthakhatlowrightthai",63639,"thanthakhatthai",3660,"thanthakhatupperleftthai",63638,"theharabic",1579,"thehfinalarabic",65178,"thehinitialarabic",65179,"thehmedialarabic",65180,"thereexists",8707,"therefore",8756,"theta",952,"theta1",977,"thetasymbolgreek",977,"thieuthacirclekorean",12921,"thieuthaparenkorean",12825,"thieuthcirclekorean",12907,"thieuthkorean",12620,"thieuthparenkorean",12811,"thirteencircle",9324,"thirteenparen",9344,"thirteenperiod",9364,"thonangmonthothai",3601,"thook",429,"thophuthaothai",3602,"thorn",254,"thothahanthai",3607,"thothanthai",3600,"thothongthai",3608,"thothungthai",3606,"thousandcyrillic",1154,"thousandsseparatorarabic",1644,"thousandsseparatorpersian",1644,"three",51,"threearabic",1635,"threebengali",2537,"threecircle",9314,"threecircleinversesansserif",10124,"threedeva",2409,"threeeighths",8540,"threegujarati",2793,"threegurmukhi",2665,"threehackarabic",1635,"threehangzhou",12323,"threeideographicparen",12834,"threeinferior",8323,"threemonospace",65299,"threenumeratorbengali",2550,"threeoldstyle",63283,"threeparen",9334,"threeperiod",9354,"threepersian",1779,"threequarters",190,"threequartersemdash",63198,"threeroman",8562,"threesuperior",179,"threethai",3667,"thzsquare",13204,"tihiragana",12385,"tikatakana",12481,"tikatakanahalfwidth",65409,"tikeutacirclekorean",12912,"tikeutaparenkorean",12816,"tikeutcirclekorean",12898,"tikeutkorean",12599,"tikeutparenkorean",12802,"tilde",732,"tildebelowcmb",816,"tildecmb",771,"tildecomb",771,"tildedoublecmb",864,"tildeoperator",8764,"tildeoverlaycmb",820,"tildeverticalcmb",830,"timescircle",8855,"tipehahebrew",1430,"tipehalefthebrew",1430,"tippigurmukhi",2672,"titlocyrilliccmb",1155,"tiwnarmenian",1407,"tlinebelow",7791,"tmonospace",65364,"toarmenian",1385,"tohiragana",12392,"tokatakana",12488,"tokatakanahalfwidth",65412,"tonebarextrahighmod",741,"tonebarextralowmod",745,"tonebarhighmod",742,"tonebarlowmod",744,"tonebarmidmod",743,"tonefive",445,"tonesix",389,"tonetwo",424,"tonos",900,"tonsquare",13095,"topatakthai",3599,"tortoiseshellbracketleft",12308,"tortoiseshellbracketleftsmall",65117,"tortoiseshellbracketleftvertical",65081,"tortoiseshellbracketright",12309,"tortoiseshellbracketrightsmall",65118,"tortoiseshellbracketrightvertical",65082,"totaothai",3605,"tpalatalhook",427,"tparen",9391,"trademark",8482,"trademarksans",63722,"trademarkserif",63195,"tretroflexhook",648,"triagdn",9660,"triaglf",9668,"triagrt",9658,"triagup",9650,"ts",678,"tsadi",1510,"tsadidagesh",64326,"tsadidageshhebrew",64326,"tsadihebrew",1510,"tsecyrillic",1094,"tsere",1461,"tsere12",1461,"tsere1e",1461,"tsere2b",1461,"tserehebrew",1461,"tserenarrowhebrew",1461,"tserequarterhebrew",1461,"tserewidehebrew",1461,"tshecyrillic",1115,"tsuperior",63219,"ttabengali",2463,"ttadeva",2335,"ttagujarati",2719,"ttagurmukhi",2591,"tteharabic",1657,"ttehfinalarabic",64359,"ttehinitialarabic",64360,"ttehmedialarabic",64361,"tthabengali",2464,"tthadeva",2336,"tthagujarati",2720,"tthagurmukhi",2592,"tturned",647,"tuhiragana",12388,"tukatakana",12484,"tukatakanahalfwidth",65410,"tusmallhiragana",12387,"tusmallkatakana",12483,"tusmallkatakanahalfwidth",65391,"twelvecircle",9323,"twelveparen",9343,"twelveperiod",9363,"twelveroman",8571,"twentycircle",9331,"twentyhangzhou",21316,"twentyparen",9351,"twentyperiod",9371,"two",50,"twoarabic",1634,"twobengali",2536,"twocircle",9313,"twocircleinversesansserif",10123,"twodeva",2408,"twodotenleader",8229,"twodotleader",8229,"twodotleadervertical",65072,"twogujarati",2792,"twogurmukhi",2664,"twohackarabic",1634,"twohangzhou",12322,"twoideographicparen",12833,"twoinferior",8322,"twomonospace",65298,"twonumeratorbengali",2549,"twooldstyle",63282,"twoparen",9333,"twoperiod",9353,"twopersian",1778,"tworoman",8561,"twostroke",443,"twosuperior",178,"twothai",3666,"twothirds",8532,"u",117,"uacute",250,"ubar",649,"ubengali",2441,"ubopomofo",12584,"ubreve",365,"ucaron",468,"ucircle",9444,"ucircumflex",251,"ucircumflexbelow",7799,"ucyrillic",1091,"udattadeva",2385,"udblacute",369,"udblgrave",533,"udeva",2313,"udieresis",252,"udieresisacute",472,"udieresisbelow",7795,"udieresiscaron",474,"udieresiscyrillic",1265,"udieresisgrave",476,"udieresismacron",470,"udotbelow",7909,"ugrave",249,"ugujarati",2697,"ugurmukhi",2569,"uhiragana",12358,"uhookabove",7911,"uhorn",432,"uhornacute",7913,"uhorndotbelow",7921,"uhorngrave",7915,"uhornhookabove",7917,"uhorntilde",7919,"uhungarumlaut",369,"uhungarumlautcyrillic",1267,"uinvertedbreve",535,"ukatakana",12454,"ukatakanahalfwidth",65395,"ukcyrillic",1145,"ukorean",12636,"umacron",363,"umacroncyrillic",1263,"umacrondieresis",7803,"umatragurmukhi",2625,"umonospace",65365,"underscore",95,"underscoredbl",8215,"underscoremonospace",65343,"underscorevertical",65075,"underscorewavy",65103,"union",8746,"universal",8704,"uogonek",371,"uparen",9392,"upblock",9600,"upperdothebrew",1476,"upsilon",965,"upsilondieresis",971,"upsilondieresistonos",944,"upsilonlatin",650,"upsilontonos",973,"uptackbelowcmb",797,"uptackmod",724,"uragurmukhi",2675,"uring",367,"ushortcyrillic",1118,"usmallhiragana",12357,"usmallkatakana",12453,"usmallkatakanahalfwidth",65385,"ustraightcyrillic",1199,"ustraightstrokecyrillic",1201,"utilde",361,"utildeacute",7801,"utildebelow",7797,"uubengali",2442,"uudeva",2314,"uugujarati",2698,"uugurmukhi",2570,"uumatragurmukhi",2626,"uuvowelsignbengali",2498,"uuvowelsigndeva",2370,"uuvowelsigngujarati",2754,"uvowelsignbengali",2497,"uvowelsigndeva",2369,"uvowelsigngujarati",2753,"v",118,"vadeva",2357,"vagujarati",2741,"vagurmukhi",2613,"vakatakana",12535,"vav",1493,"vavdagesh",64309,"vavdagesh65",64309,"vavdageshhebrew",64309,"vavhebrew",1493,"vavholam",64331,"vavholamhebrew",64331,"vavvavhebrew",1520,"vavyodhebrew",1521,"vcircle",9445,"vdotbelow",7807,"vecyrillic",1074,"veharabic",1700,"vehfinalarabic",64363,"vehinitialarabic",64364,"vehmedialarabic",64365,"vekatakana",12537,"venus",9792,"verticalbar",124,"verticallineabovecmb",781,"verticallinebelowcmb",809,"verticallinelowmod",716,"verticallinemod",712,"vewarmenian",1406,"vhook",651,"vikatakana",12536,"viramabengali",2509,"viramadeva",2381,"viramagujarati",2765,"visargabengali",2435,"visargadeva",2307,"visargagujarati",2691,"vmonospace",65366,"voarmenian",1400,"voicediterationhiragana",12446,"voicediterationkatakana",12542,"voicedmarkkana",12443,"voicedmarkkanahalfwidth",65438,"vokatakana",12538,"vparen",9393,"vtilde",7805,"vturned",652,"vuhiragana",12436,"vukatakana",12532,"w",119,"wacute",7811,"waekorean",12633,"wahiragana",12431,"wakatakana",12527,"wakatakanahalfwidth",65436,"wakorean",12632,"wasmallhiragana",12430,"wasmallkatakana",12526,"wattosquare",13143,"wavedash",12316,"wavyunderscorevertical",65076,"wawarabic",1608,"wawfinalarabic",65262,"wawhamzaabovearabic",1572,"wawhamzaabovefinalarabic",65158,"wbsquare",13277,"wcircle",9446,"wcircumflex",373,"wdieresis",7813,"wdotaccent",7815,"wdotbelow",7817,"wehiragana",12433,"weierstrass",8472,"wekatakana",12529,"wekorean",12638,"weokorean",12637,"wgrave",7809,"whitebullet",9702,"whitecircle",9675,"whitecircleinverse",9689,"whitecornerbracketleft",12302,"whitecornerbracketleftvertical",65091,"whitecornerbracketright",12303,"whitecornerbracketrightvertical",65092,"whitediamond",9671,"whitediamondcontainingblacksmalldiamond",9672,"whitedownpointingsmalltriangle",9663,"whitedownpointingtriangle",9661,"whiteleftpointingsmalltriangle",9667,"whiteleftpointingtriangle",9665,"whitelenticularbracketleft",12310,"whitelenticularbracketright",12311,"whiterightpointingsmalltriangle",9657,"whiterightpointingtriangle",9655,"whitesmallsquare",9643,"whitesmilingface",9786,"whitesquare",9633,"whitestar",9734,"whitetelephone",9743,"whitetortoiseshellbracketleft",12312,"whitetortoiseshellbracketright",12313,"whiteuppointingsmalltriangle",9653,"whiteuppointingtriangle",9651,"wihiragana",12432,"wikatakana",12528,"wikorean",12639,"wmonospace",65367,"wohiragana",12434,"wokatakana",12530,"wokatakanahalfwidth",65382,"won",8361,"wonmonospace",65510,"wowaenthai",3623,"wparen",9394,"wring",7832,"wsuperior",695,"wturned",653,"wynn",447,"x",120,"xabovecmb",829,"xbopomofo",12562,"xcircle",9447,"xdieresis",7821,"xdotaccent",7819,"xeharmenian",1389,"xi",958,"xmonospace",65368,"xparen",9395,"xsuperior",739,"y",121,"yaadosquare",13134,"yabengali",2479,"yacute",253,"yadeva",2351,"yaekorean",12626,"yagujarati",2735,"yagurmukhi",2607,"yahiragana",12420,"yakatakana",12516,"yakatakanahalfwidth",65428,"yakorean",12625,"yamakkanthai",3662,"yasmallhiragana",12419,"yasmallkatakana",12515,"yasmallkatakanahalfwidth",65388,"yatcyrillic",1123,"ycircle",9448,"ycircumflex",375,"ydieresis",255,"ydotaccent",7823,"ydotbelow",7925,"yeharabic",1610,"yehbarreearabic",1746,"yehbarreefinalarabic",64431,"yehfinalarabic",65266,"yehhamzaabovearabic",1574,"yehhamzaabovefinalarabic",65162,"yehhamzaaboveinitialarabic",65163,"yehhamzaabovemedialarabic",65164,"yehinitialarabic",65267,"yehmedialarabic",65268,"yehmeeminitialarabic",64733,"yehmeemisolatedarabic",64600,"yehnoonfinalarabic",64660,"yehthreedotsbelowarabic",1745,"yekorean",12630,"yen",165,"yenmonospace",65509,"yeokorean",12629,"yeorinhieuhkorean",12678,"yerahbenyomohebrew",1450,"yerahbenyomolefthebrew",1450,"yericyrillic",1099,"yerudieresiscyrillic",1273,"yesieungkorean",12673,"yesieungpansioskorean",12675,"yesieungsioskorean",12674,"yetivhebrew",1434,"ygrave",7923,"yhook",436,"yhookabove",7927,"yiarmenian",1397,"yicyrillic",1111,"yikorean",12642,"yinyang",9775,"yiwnarmenian",1410,"ymonospace",65369,"yod",1497,"yoddagesh",64313,"yoddageshhebrew",64313,"yodhebrew",1497,"yodyodhebrew",1522,"yodyodpatahhebrew",64287,"yohiragana",12424,"yoikorean",12681,"yokatakana",12520,"yokatakanahalfwidth",65430,"yokorean",12635,"yosmallhiragana",12423,"yosmallkatakana",12519,"yosmallkatakanahalfwidth",65390,"yotgreek",1011,"yoyaekorean",12680,"yoyakorean",12679,"yoyakthai",3618,"yoyingthai",3597,"yparen",9396,"ypogegrammeni",890,"ypogegrammenigreekcmb",837,"yr",422,"yring",7833,"ysuperior",696,"ytilde",7929,"yturned",654,"yuhiragana",12422,"yuikorean",12684,"yukatakana",12518,"yukatakanahalfwidth",65429,"yukorean",12640,"yusbigcyrillic",1131,"yusbigiotifiedcyrillic",1133,"yuslittlecyrillic",1127,"yuslittleiotifiedcyrillic",1129,"yusmallhiragana",12421,"yusmallkatakana",12517,"yusmallkatakanahalfwidth",65389,"yuyekorean",12683,"yuyeokorean",12682,"yyabengali",2527,"yyadeva",2399,"z",122,"zaarmenian",1382,"zacute",378,"zadeva",2395,"zagurmukhi",2651,"zaharabic",1592,"zahfinalarabic",65222,"zahinitialarabic",65223,"zahiragana",12374,"zahmedialarabic",65224,"zainarabic",1586,"zainfinalarabic",65200,"zakatakana",12470,"zaqefgadolhebrew",1429,"zaqefqatanhebrew",1428,"zarqahebrew",1432,"zayin",1494,"zayindagesh",64310,"zayindageshhebrew",64310,"zayinhebrew",1494,"zbopomofo",12567,"zcaron",382,"zcircle",9449,"zcircumflex",7825,"zcurl",657,"zdot",380,"zdotaccent",380,"zdotbelow",7827,"zecyrillic",1079,"zedescendercyrillic",1177,"zedieresiscyrillic",1247,"zehiragana",12380,"zekatakana",12476,"zero",48,"zeroarabic",1632,"zerobengali",2534,"zerodeva",2406,"zerogujarati",2790,"zerogurmukhi",2662,"zerohackarabic",1632,"zeroinferior",8320,"zeromonospace",65296,"zerooldstyle",63280,"zeropersian",1776,"zerosuperior",8304,"zerothai",3664,"zerowidthjoiner",65279,"zerowidthnonjoiner",8204,"zerowidthspace",8203,"zeta",950,"zhbopomofo",12563,"zhearmenian",1386,"zhebrevecyrillic",1218,"zhecyrillic",1078,"zhedescendercyrillic",1175,"zhedieresiscyrillic",1245,"zihiragana",12376,"zikatakana",12472,"zinorhebrew",1454,"zlinebelow",7829,"zmonospace",65370,"zohiragana",12382,"zokatakana",12478,"zparen",9397,"zretroflexhook",656,"zstroke",438,"zuhiragana",12378,"zukatakana",12474,".notdef",0,"angbracketleftbig",9001,"angbracketleftBig",9001,"angbracketleftbigg",9001,"angbracketleftBigg",9001,"angbracketrightBig",9002,"angbracketrightbig",9002,"angbracketrightBigg",9002,"angbracketrightbigg",9002,"arrowhookleft",8618,"arrowhookright",8617,"arrowlefttophalf",8636,"arrowleftbothalf",8637,"arrownortheast",8599,"arrownorthwest",8598,"arrowrighttophalf",8640,"arrowrightbothalf",8641,"arrowsoutheast",8600,"arrowsouthwest",8601,"backslashbig",8726,"backslashBig",8726,"backslashBigg",8726,"backslashbigg",8726,"bardbl",8214,"bracehtipdownleft",65079,"bracehtipdownright",65079,"bracehtipupleft",65080,"bracehtipupright",65080,"braceleftBig",123,"braceleftbig",123,"braceleftbigg",123,"braceleftBigg",123,"bracerightBig",125,"bracerightbig",125,"bracerightbigg",125,"bracerightBigg",125,"bracketleftbig",91,"bracketleftBig",91,"bracketleftbigg",91,"bracketleftBigg",91,"bracketrightBig",93,"bracketrightbig",93,"bracketrightbigg",93,"bracketrightBigg",93,"ceilingleftbig",8968,"ceilingleftBig",8968,"ceilingleftBigg",8968,"ceilingleftbigg",8968,"ceilingrightbig",8969,"ceilingrightBig",8969,"ceilingrightbigg",8969,"ceilingrightBigg",8969,"circledotdisplay",8857,"circledottext",8857,"circlemultiplydisplay",8855,"circlemultiplytext",8855,"circleplusdisplay",8853,"circleplustext",8853,"contintegraldisplay",8750,"contintegraltext",8750,"coproductdisplay",8720,"coproducttext",8720,"floorleftBig",8970,"floorleftbig",8970,"floorleftbigg",8970,"floorleftBigg",8970,"floorrightbig",8971,"floorrightBig",8971,"floorrightBigg",8971,"floorrightbigg",8971,"hatwide",770,"hatwider",770,"hatwidest",770,"intercal",7488,"integraldisplay",8747,"integraltext",8747,"intersectiondisplay",8898,"intersectiontext",8898,"logicalanddisplay",8743,"logicalandtext",8743,"logicalordisplay",8744,"logicalortext",8744,"parenleftBig",40,"parenleftbig",40,"parenleftBigg",40,"parenleftbigg",40,"parenrightBig",41,"parenrightbig",41,"parenrightBigg",41,"parenrightbigg",41,"prime",8242,"productdisplay",8719,"producttext",8719,"radicalbig",8730,"radicalBig",8730,"radicalBigg",8730,"radicalbigg",8730,"radicalbt",8730,"radicaltp",8730,"radicalvertex",8730,"slashbig",47,"slashBig",47,"slashBigg",47,"slashbigg",47,"summationdisplay",8721,"summationtext",8721,"tildewide",732,"tildewider",732,"tildewidest",732,"uniondisplay",8899,"unionmultidisplay",8846,"unionmultitext",8846,"unionsqdisplay",8852,"unionsqtext",8852,"uniontext",8899,"vextenddouble",8741,"vextendsingle",8739]}));const r=(0,n.getArrayLookupTableFactory)((function(){return["space",32,"a1",9985,"a2",9986,"a202",9987,"a3",9988,"a4",9742,"a5",9990,"a119",9991,"a118",9992,"a117",9993,"a11",9755,"a12",9758,"a13",9996,"a14",9997,"a15",9998,"a16",9999,"a105",1e4,"a17",10001,"a18",10002,"a19",10003,"a20",10004,"a21",10005,"a22",10006,"a23",10007,"a24",10008,"a25",10009,"a26",10010,"a27",10011,"a28",10012,"a6",10013,"a7",10014,"a8",10015,"a9",10016,"a10",10017,"a29",10018,"a30",10019,"a31",10020,"a32",10021,"a33",10022,"a34",10023,"a35",9733,"a36",10025,"a37",10026,"a38",10027,"a39",10028,"a40",10029,"a41",10030,"a42",10031,"a43",10032,"a44",10033,"a45",10034,"a46",10035,"a47",10036,"a48",10037,"a49",10038,"a50",10039,"a51",10040,"a52",10041,"a53",10042,"a54",10043,"a55",10044,"a56",10045,"a57",10046,"a58",10047,"a59",10048,"a60",10049,"a61",10050,"a62",10051,"a63",10052,"a64",10053,"a65",10054,"a66",10055,"a67",10056,"a68",10057,"a69",10058,"a70",10059,"a71",9679,"a72",10061,"a73",9632,"a74",10063,"a203",10064,"a75",10065,"a204",10066,"a76",9650,"a77",9660,"a78",9670,"a79",10070,"a81",9687,"a82",10072,"a83",10073,"a84",10074,"a97",10075,"a98",10076,"a99",10077,"a100",10078,"a101",10081,"a102",10082,"a103",10083,"a104",10084,"a106",10085,"a107",10086,"a108",10087,"a112",9827,"a111",9830,"a110",9829,"a109",9824,"a120",9312,"a121",9313,"a122",9314,"a123",9315,"a124",9316,"a125",9317,"a126",9318,"a127",9319,"a128",9320,"a129",9321,"a130",10102,"a131",10103,"a132",10104,"a133",10105,"a134",10106,"a135",10107,"a136",10108,"a137",10109,"a138",10110,"a139",10111,"a140",10112,"a141",10113,"a142",10114,"a143",10115,"a144",10116,"a145",10117,"a146",10118,"a147",10119,"a148",10120,"a149",10121,"a150",10122,"a151",10123,"a152",10124,"a153",10125,"a154",10126,"a155",10127,"a156",10128,"a157",10129,"a158",10130,"a159",10131,"a160",10132,"a161",8594,"a163",8596,"a164",8597,"a196",10136,"a165",10137,"a192",10138,"a166",10139,"a167",10140,"a168",10141,"a169",10142,"a170",10143,"a171",10144,"a172",10145,"a173",10146,"a162",10147,"a174",10148,"a175",10149,"a176",10150,"a177",10151,"a178",10152,"a179",10153,"a193",10154,"a180",10155,"a199",10156,"a181",10157,"a200",10158,"a182",10159,"a201",10161,"a183",10162,"a184",10163,"a197",10164,"a185",10165,"a194",10166,"a198",10167,"a186",10168,"a195",10169,"a187",10170,"a188",10171,"a189",10172,"a190",10173,"a191",10174,"a89",10088,"a90",10089,"a93",10090,"a94",10091,"a91",10092,"a92",10093,"a205",10094,"a85",10095,"a206",10096,"a86",10097,"a87",10098,"a88",10099,"a95",10100,"a96",10101,".notdef",0]}))},(t,e,i)=>{i.r(e);i.d(e,{clearUnicodeCaches:()=>m,getCharUnicodeCategory:()=>p,getNormalizedUnicodes:()=>h,getUnicodeForGlyph:()=>a,getUnicodeRangeFor:()=>c,mapSpecialUnicodeValues:()=>r,reverseIfRtl:()=>u});var n=i(135);const s=(0,n.getLookupTableFactory)((function(t){t[63721]=169;t[63193]=169;t[63720]=174;t[63194]=174;t[63722]=8482;t[63195]=8482;t[63729]=9127;t[63730]=9128;t[63731]=9129;t[63740]=9131;t[63741]=9132;t[63742]=9133;t[63726]=9121;t[63727]=9122;t[63728]=9123;t[63737]=9124;t[63738]=9125;t[63739]=9126;t[63723]=9115;t[63724]=9116;t[63725]=9117;t[63734]=9118;t[63735]=9119;t[63736]=9120}));function r(t){if(t>=65520&&t<=65535){return 0}else if(t>=62976&&t<=63743){return s()[t]||t}else if(t===173){return 45}return t}function a(t,e){let i=e[t];if(i!==undefined){return i}if(!t){return-1}if(t[0]==="u"){const e=t.length;let n;if(e===7&&t[1]==="n"&&t[2]==="i"){n=t.substring(3)}else if(e>=5&&e<=7){n=t.substring(1)}else{return-1}if(n===n.toUpperCase()){i=parseInt(n,16);if(i>=0){return i}}}return-1}const o=[{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 c(t){for(let e=0,i=o.length;e<i;e++){const i=o[e];if(t>=i.begin&&t<i.end){return e}}return-1}function l(t){let e=o[13];if(t>=e.begin&&t<e.end){return true}e=o[11];if(t>=e.begin&&t<e.end){return true}return false}const h=(0,n.getArrayLookupTableFactory)((function(){return["¨"," ̈","¯"," ̄","´"," ́","µ","μ","¸"," ̧","IJ","IJ","ij","ij","Ŀ","L·","ŀ","l·","ʼn","ʼn","ſ","s","DŽ","DŽ","Dž","Dž","dž","dž","LJ","LJ","Lj","Lj","lj","lj","NJ","NJ","Nj","Nj","nj","nj","DZ","DZ","Dz","Dz","dz","dz","˘"," ̆","˙"," ̇","˚"," ̊","˛"," ̨","˜"," ̃","˝"," ̋","ͺ"," ͅ","΄"," ́","ϐ","β","ϑ","θ","ϒ","Υ","ϕ","φ","ϖ","π","ϰ","κ","ϱ","ρ","ϲ","ς","ϴ","Θ","ϵ","ε","Ϲ","Σ","և","եւ","ٵ","اٴ","ٶ","وٴ","ٷ","ۇٴ","ٸ","يٴ","ำ","ํา","ຳ","ໍາ","ໜ","ຫນ","ໝ","ຫມ","ཷ","ྲཱྀ","ཹ","ླཱྀ","ẚ","aʾ","᾽"," ̓","᾿"," ̓","῀"," ͂","῾"," ̔"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","‗"," ̳","․",".","‥","..","…","...","″","′′","‴","′′′","‶","‵‵","‷","‵‵‵","‼","!!","‾"," ̅","⁇","??","⁈","?!","⁉","!?","⁗","′′′′"," "," ","₨","Rs","℀","a/c","℁","a/s","℃","°C","℅","c/o","℆","c/u","ℇ","Ɛ","℉","°F","№","No","℡","TEL","ℵ","א","ℶ","ב","ℷ","ג","ℸ","ד","℻","FAX","Ⅰ","I","Ⅱ","II","Ⅲ","III","Ⅳ","IV","Ⅴ","V","Ⅵ","VI","Ⅶ","VII","Ⅷ","VIII","Ⅸ","IX","Ⅹ","X","Ⅺ","XI","Ⅻ","XII","Ⅼ","L","Ⅽ","C","Ⅾ","D","Ⅿ","M","ⅰ","i","ⅱ","ii","ⅲ","iii","ⅳ","iv","ⅴ","v","ⅵ","vi","ⅶ","vii","ⅷ","viii","ⅸ","ix","ⅹ","x","ⅺ","xi","ⅻ","xii","ⅼ","l","ⅽ","c","ⅾ","d","ⅿ","m","∬","∫∫","∭","∫∫∫","∯","∮∮","∰","∮∮∮","⑴","(1)","⑵","(2)","⑶","(3)","⑷","(4)","⑸","(5)","⑹","(6)","⑺","(7)","⑻","(8)","⑼","(9)","⑽","(10)","⑾","(11)","⑿","(12)","⒀","(13)","⒁","(14)","⒂","(15)","⒃","(16)","⒄","(17)","⒅","(18)","⒆","(19)","⒇","(20)","⒈","1.","⒉","2.","⒊","3.","⒋","4.","⒌","5.","⒍","6.","⒎","7.","⒏","8.","⒐","9.","⒑","10.","⒒","11.","⒓","12.","⒔","13.","⒕","14.","⒖","15.","⒗","16.","⒘","17.","⒙","18.","⒚","19.","⒛","20.","⒜","(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)","⨌","∫∫∫∫","⩴","::=","⩵","==","⩶","===","⺟","母","⻳","龟","⼀","一","⼁","丨","⼂","丶","⼃","丿","⼄","乙","⼅","亅","⼆","二","⼇","亠","⼈","人","⼉","儿","⼊","入","⼋","八","⼌","冂","⼍","冖","⼎","冫","⼏","几","⼐","凵","⼑","刀","⼒","力","⼓","勹","⼔","匕","⼕","匚","⼖","匸","⼗","十","⼘","卜","⼙","卩","⼚","厂","⼛","厶","⼜","又","⼝","口","⼞","囗","⼟","土","⼠","士","⼡","夂","⼢","夊","⼣","夕","⼤","大","⼥","女","⼦","子","⼧","宀","⼨","寸","⼩","小","⼪","尢","⼫","尸","⼬","屮","⼭","山","⼮","巛","⼯","工","⼰","己","⼱","巾","⼲","干","⼳","幺","⼴","广","⼵","廴","⼶","廾","⼷","弋","⼸","弓","⼹","彐","⼺","彡","⼻","彳","⼼","心","⼽","戈","⼾","戶","⼿","手","⽀","支","⽁","攴","⽂","文","⽃","斗","⽄","斤","⽅","方","⽆","无","⽇","日","⽈","曰","⽉","月","⽊","木","⽋","欠","⽌","止","⽍","歹","⽎","殳","⽏","毋","⽐","比","⽑","毛","⽒","氏","⽓","气","⽔","水","⽕","火","⽖","爪","⽗","父","⽘","爻","⽙","爿","⽚","片","⽛","牙","⽜","牛","⽝","犬","⽞","玄","⽟","玉","⽠","瓜","⽡","瓦","⽢","甘","⽣","生","⽤","用","⽥","田","⽦","疋","⽧","疒","⽨","癶","⽩","白","⽪","皮","⽫","皿","⽬","目","⽭","矛","⽮","矢","⽯","石","⽰","示","⽱","禸","⽲","禾","⽳","穴","⽴","立","⽵","竹","⽶","米","⽷","糸","⽸","缶","⽹","网","⽺","羊","⽻","羽","⽼","老","⽽","而","⽾","耒","⽿","耳","⾀","聿","⾁","肉","⾂","臣","⾃","自","⾄","至","⾅","臼","⾆","舌","⾇","舛","⾈","舟","⾉","艮","⾊","色","⾋","艸","⾌","虍","⾍","虫","⾎","血","⾏","行","⾐","衣","⾑","襾","⾒","見","⾓","角","⾔","言","⾕","谷","⾖","豆","⾗","豕","⾘","豸","⾙","貝","⾚","赤","⾛","走","⾜","足","⾝","身","⾞","車","⾟","辛","⾠","辰","⾡","辵","⾢","邑","⾣","酉","⾤","釆","⾥","里","⾦","金","⾧","長","⾨","門","⾩","阜","⾪","隶","⾫","隹","⾬","雨","⾭","靑","⾮","非","⾯","面","⾰","革","⾱","韋","⾲","韭","⾳","音","⾴","頁","⾵","風","⾶","飛","⾷","食","⾸","首","⾹","香","⾺","馬","⾻","骨","⾼","高","⾽","髟","⾾","鬥","⾿","鬯","⿀","鬲","⿁","鬼","⿂","魚","⿃","鳥","⿄","鹵","⿅","鹿","⿆","麥","⿇","麻","⿈","黃","⿉","黍","⿊","黑","⿋","黹","⿌","黽","⿍","鼎","⿎","鼓","⿏","鼠","⿐","鼻","⿑","齊","⿒","齒","⿓","龍","⿔","龜","⿕","龠","〶","〒","〸","十","〹","卄","〺","卅","゛"," ゙","゜"," ゚","ㄱ","ᄀ","ㄲ","ᄁ","ㄳ","ᆪ","ㄴ","ᄂ","ㄵ","ᆬ","ㄶ","ᆭ","ㄷ","ᄃ","ㄸ","ᄄ","ㄹ","ᄅ","ㄺ","ᆰ","ㄻ","ᆱ","ㄼ","ᆲ","ㄽ","ᆳ","ㄾ","ᆴ","ㄿ","ᆵ","ㅀ","ᄚ","ㅁ","ᄆ","ㅂ","ᄇ","ㅃ","ᄈ","ㅄ","ᄡ","ㅅ","ᄉ","ㅆ","ᄊ","ㅇ","ᄋ","ㅈ","ᄌ","ㅉ","ᄍ","ㅊ","ᄎ","ㅋ","ᄏ","ㅌ","ᄐ","ㅍ","ᄑ","ㅎ","ᄒ","ㅏ","ᅡ","ㅐ","ᅢ","ㅑ","ᅣ","ㅒ","ᅤ","ㅓ","ᅥ","ㅔ","ᅦ","ㅕ","ᅧ","ㅖ","ᅨ","ㅗ","ᅩ","ㅘ","ᅪ","ㅙ","ᅫ","ㅚ","ᅬ","ㅛ","ᅭ","ㅜ","ᅮ","ㅝ","ᅯ","ㅞ","ᅰ","ㅟ","ᅱ","ㅠ","ᅲ","ㅡ","ᅳ","ㅢ","ᅴ","ㅣ","ᅵ","ㅤ","ᅠ","ㅥ","ᄔ","ㅦ","ᄕ","ㅧ","ᇇ","ㅨ","ᇈ","ㅩ","ᇌ","ㅪ","ᇎ","ㅫ","ᇓ","ㅬ","ᇗ","ㅭ","ᇙ","ㅮ","ᄜ","ㅯ","ᇝ","ㅰ","ᇟ","ㅱ","ᄝ","ㅲ","ᄞ","ㅳ","ᄠ","ㅴ","ᄢ","ㅵ","ᄣ","ㅶ","ᄧ","ㅷ","ᄩ","ㅸ","ᄫ","ㅹ","ᄬ","ㅺ","ᄭ","ㅻ","ᄮ","ㅼ","ᄯ","ㅽ","ᄲ","ㅾ","ᄶ","ㅿ","ᅀ","ㆀ","ᅇ","ㆁ","ᅌ","ㆂ","ᇱ","ㆃ","ᇲ","ㆄ","ᅗ","ㆅ","ᅘ","ㆆ","ᅙ","ㆇ","ᆄ","ㆈ","ᆅ","ㆉ","ᆈ","ㆊ","ᆑ","ㆋ","ᆒ","ㆌ","ᆔ","ㆍ","ᆞ","ㆎ","ᆡ","㈀","(ᄀ)","㈁","(ᄂ)","㈂","(ᄃ)","㈃","(ᄅ)","㈄","(ᄆ)","㈅","(ᄇ)","㈆","(ᄉ)","㈇","(ᄋ)","㈈","(ᄌ)","㈉","(ᄎ)","㈊","(ᄏ)","㈋","(ᄐ)","㈌","(ᄑ)","㈍","(ᄒ)","㈎","(가)","㈏","(나)","㈐","(다)","㈑","(라)","㈒","(마)","㈓","(바)","㈔","(사)","㈕","(아)","㈖","(자)","㈗","(차)","㈘","(카)","㈙","(타)","㈚","(파)","㈛","(하)","㈜","(주)","㈝","(오전)","㈞","(오후)","㈠","(一)","㈡","(二)","㈢","(三)","㈣","(四)","㈤","(五)","㈥","(六)","㈦","(七)","㈧","(八)","㈨","(九)","㈩","(十)","㈪","(月)","㈫","(火)","㈬","(水)","㈭","(木)","㈮","(金)","㈯","(土)","㈰","(日)","㈱","(株)","㈲","(有)","㈳","(社)","㈴","(名)","㈵","(特)","㈶","(財)","㈷","(祝)","㈸","(労)","㈹","(代)","㈺","(呼)","㈻","(学)","㈼","(監)","㈽","(企)","㈾","(資)","㈿","(協)","㉀","(祭)","㉁","(休)","㉂","(自)","㉃","(至)","㋀","1月","㋁","2月","㋂","3月","㋃","4月","㋄","5月","㋅","6月","㋆","7月","㋇","8月","㋈","9月","㋉","10月","㋊","11月","㋋","12月","㍘","0点","㍙","1点","㍚","2点","㍛","3点","㍜","4点","㍝","5点","㍞","6点","㍟","7点","㍠","8点","㍡","9点","㍢","10点","㍣","11点","㍤","12点","㍥","13点","㍦","14点","㍧","15点","㍨","16点","㍩","17点","㍪","18点","㍫","19点","㍬","20点","㍭","21点","㍮","22点","㍯","23点","㍰","24点","㏠","1日","㏡","2日","㏢","3日","㏣","4日","㏤","5日","㏥","6日","㏦","7日","㏧","8日","㏨","9日","㏩","10日","㏪","11日","㏫","12日","㏬","13日","㏭","14日","㏮","15日","㏯","16日","㏰","17日","㏱","18日","㏲","19日","㏳","20日","㏴","21日","㏵","22日","㏶","23日","㏷","24日","㏸","25日","㏹","26日","㏺","27日","㏻","28日","㏼","29日","㏽","30日","㏾","31日","ff","ff","fi","fi","fl","fl","ffi","ffi","ffl","ffl","ſt","ſt","st","st","ﬓ","մն","ﬔ","մե","ﬕ","մի","ﬖ","վն","ﬗ","մխ","ﭏ","אל","ﭐ","ٱ","ﭑ","ٱ","ﭒ","ٻ","ﭓ","ٻ","ﭔ","ٻ","ﭕ","ٻ","ﭖ","پ","ﭗ","پ","ﭘ","پ","ﭙ","پ","ﭚ","ڀ","ﭛ","ڀ","ﭜ","ڀ","ﭝ","ڀ","ﭞ","ٺ","ﭟ","ٺ","ﭠ","ٺ","ﭡ","ٺ","ﭢ","ٿ","ﭣ","ٿ","ﭤ","ٿ","ﭥ","ٿ","ﭦ","ٹ","ﭧ","ٹ","ﭨ","ٹ","ﭩ","ٹ","ﭪ","ڤ","ﭫ","ڤ","ﭬ","ڤ","ﭭ","ڤ","ﭮ","ڦ","ﭯ","ڦ","ﭰ","ڦ","ﭱ","ڦ","ﭲ","ڄ","ﭳ","ڄ","ﭴ","ڄ","ﭵ","ڄ","ﭶ","ڃ","ﭷ","ڃ","ﭸ","ڃ","ﭹ","ڃ","ﭺ","چ","ﭻ","چ","ﭼ","چ","ﭽ","چ","ﭾ","ڇ","ﭿ","ڇ","ﮀ","ڇ","ﮁ","ڇ","ﮂ","ڍ","ﮃ","ڍ","ﮄ","ڌ","ﮅ","ڌ","ﮆ","ڎ","ﮇ","ڎ","ﮈ","ڈ","ﮉ","ڈ","ﮊ","ژ","ﮋ","ژ","ﮌ","ڑ","ﮍ","ڑ","ﮎ","ک","ﮏ","ک","ﮐ","ک","ﮑ","ک","ﮒ","گ","ﮓ","گ","ﮔ","گ","ﮕ","گ","ﮖ","ڳ","ﮗ","ڳ","ﮘ","ڳ","ﮙ","ڳ","ﮚ","ڱ","ﮛ","ڱ","ﮜ","ڱ","ﮝ","ڱ","ﮞ","ں","ﮟ","ں","ﮠ","ڻ","ﮡ","ڻ","ﮢ","ڻ","ﮣ","ڻ","ﮤ","ۀ","ﮥ","ۀ","ﮦ","ہ","ﮧ","ہ","ﮨ","ہ","ﮩ","ہ","ﮪ","ھ","ﮫ","ھ","ﮬ","ھ","ﮭ","ھ","ﮮ","ے","ﮯ","ے","ﮰ","ۓ","ﮱ","ۓ","ﯓ","ڭ","ﯔ","ڭ","ﯕ","ڭ","ﯖ","ڭ","ﯗ","ۇ","ﯘ","ۇ","ﯙ","ۆ","ﯚ","ۆ","ﯛ","ۈ","ﯜ","ۈ","ﯝ","ٷ","ﯞ","ۋ","ﯟ","ۋ","ﯠ","ۅ","ﯡ","ۅ","ﯢ","ۉ","ﯣ","ۉ","ﯤ","ې","ﯥ","ې","ﯦ","ې","ﯧ","ې","ﯨ","ى","ﯩ","ى","ﯪ","ئا","ﯫ","ئا","ﯬ","ئە","ﯭ","ئە","ﯮ","ئو","ﯯ","ئو","ﯰ","ئۇ","ﯱ","ئۇ","ﯲ","ئۆ","ﯳ","ئۆ","ﯴ","ئۈ","ﯵ","ئۈ","ﯶ","ئې","ﯷ","ئې","ﯸ","ئې","ﯹ","ئى","ﯺ","ئى","ﯻ","ئى","ﯼ","ی","ﯽ","ی","ﯾ","ی","ﯿ","ی","ﰀ","ئج","ﰁ","ئح","ﰂ","ئم","ﰃ","ئى","ﰄ","ئي","ﰅ","بج","ﰆ","بح","ﰇ","بخ","ﰈ","بم","ﰉ","بى","ﰊ","بي","ﰋ","تج","ﰌ","تح","ﰍ","تخ","ﰎ","تم","ﰏ","تى","ﰐ","تي","ﰑ","ثج","ﰒ","ثم","ﰓ","ثى","ﰔ","ثي","ﰕ","جح","ﰖ","جم","ﰗ","حج","ﰘ","حم","ﰙ","خج","ﰚ","خح","ﰛ","خم","ﰜ","سج","ﰝ","سح","ﰞ","سخ","ﰟ","سم","ﰠ","صح","ﰡ","صم","ﰢ","ضج","ﰣ","ضح","ﰤ","ضخ","ﰥ","ضم","ﰦ","طح","ﰧ","طم","ﰨ","ظم","ﰩ","عج","ﰪ","عم","ﰫ","غج","ﰬ","غم","ﰭ","فج","ﰮ","فح","ﰯ","فخ","ﰰ","فم","ﰱ","فى","ﰲ","في","ﰳ","قح","ﰴ","قم","ﰵ","قى","ﰶ","قي","ﰷ","كا","ﰸ","كج","ﰹ","كح","ﰺ","كخ","ﰻ","كل","ﰼ","كم","ﰽ","كى","ﰾ","كي","ﰿ","لج","ﱀ","لح","ﱁ","لخ","ﱂ","لم","ﱃ","لى","ﱄ","لي","ﱅ","مج","ﱆ","مح","ﱇ","مخ","ﱈ","مم","ﱉ","مى","ﱊ","مي","ﱋ","نج","ﱌ","نح","ﱍ","نخ","ﱎ","نم","ﱏ","نى","ﱐ","ني","ﱑ","هج","ﱒ","هم","ﱓ","هى","ﱔ","هي","ﱕ","يج","ﱖ","يح","ﱗ","يخ","ﱘ","يم","ﱙ","يى","ﱚ","يي","ﱛ","ذٰ","ﱜ","رٰ","ﱝ","ىٰ","ﱞ"," ٌّ","ﱟ"," ٍّ","ﱠ"," َّ","ﱡ"," ُّ","ﱢ"," ِّ","ﱣ"," ّٰ","ﱤ","ئر","ﱥ","ئز","ﱦ","ئم","ﱧ","ئن","ﱨ","ئى","ﱩ","ئي","ﱪ","بر","ﱫ","بز","ﱬ","بم","ﱭ","بن","ﱮ","بى","ﱯ","بي","ﱰ","تر","ﱱ","تز","ﱲ","تم","ﱳ","تن","ﱴ","تى","ﱵ","تي","ﱶ","ثر","ﱷ","ثز","ﱸ","ثم","ﱹ","ثن","ﱺ","ثى","ﱻ","ثي","ﱼ","فى","ﱽ","في","ﱾ","قى","ﱿ","قي","ﲀ","كا","ﲁ","كل","ﲂ","كم","ﲃ","كى","ﲄ","كي","ﲅ","لم","ﲆ","لى","ﲇ","لي","ﲈ","ما","ﲉ","مم","ﲊ","نر","ﲋ","نز","ﲌ","نم","ﲍ","نن","ﲎ","نى","ﲏ","ني","ﲐ","ىٰ","ﲑ","ير","ﲒ","يز","ﲓ","يم","ﲔ","ين","ﲕ","يى","ﲖ","يي","ﲗ","ئج","ﲘ","ئح","ﲙ","ئخ","ﲚ","ئم","ﲛ","ئه","ﲜ","بج","ﲝ","بح","ﲞ","بخ","ﲟ","بم","ﲠ","به","ﲡ","تج","ﲢ","تح","ﲣ","تخ","ﲤ","تم","ﲥ","ته","ﲦ","ثم","ﲧ","جح","ﲨ","جم","ﲩ","حج","ﲪ","حم","ﲫ","خج","ﲬ","خم","ﲭ","سج","ﲮ","سح","ﲯ","سخ","ﲰ","سم","ﲱ","صح","ﲲ","صخ","ﲳ","صم","ﲴ","ضج","ﲵ","ضح","ﲶ","ضخ","ﲷ","ضم","ﲸ","طح","ﲹ","ظم","ﲺ","عج","ﲻ","عم","ﲼ","غج","ﲽ","غم","ﲾ","فج","ﲿ","فح","ﳀ","فخ","ﳁ","فم","ﳂ","قح","ﳃ","قم","ﳄ","كج","ﳅ","كح","ﳆ","كخ","ﳇ","كل","ﳈ","كم","ﳉ","لج","ﳊ","لح","ﳋ","لخ","ﳌ","لم","ﳍ","له","ﳎ","مج","ﳏ","مح","ﳐ","مخ","ﳑ","مم","ﳒ","نج","ﳓ","نح","ﳔ","نخ","ﳕ","نم","ﳖ","نه","ﳗ","هج","ﳘ","هم","ﳙ","هٰ","ﳚ","يج","ﳛ","يح","ﳜ","يخ","ﳝ","يم","ﳞ","يه","ﳟ","ئم","ﳠ","ئه","ﳡ","بم","ﳢ","به","ﳣ","تم","ﳤ","ته","ﳥ","ثم","ﳦ","ثه","ﳧ","سم","ﳨ","سه","ﳩ","شم","ﳪ","شه","ﳫ","كل","ﳬ","كم","ﳭ","لم","ﳮ","نم","ﳯ","نه","ﳰ","يم","ﳱ","يه","ﳲ","ـَّ","ﳳ","ـُّ","ﳴ","ـِّ","ﳵ","طى","ﳶ","طي","ﳷ","عى","ﳸ","عي","ﳹ","غى","ﳺ","غي","ﳻ","سى","ﳼ","سي","ﳽ","شى","ﳾ","شي","ﳿ","حى","ﴀ","حي","ﴁ","جى","ﴂ","جي","ﴃ","خى","ﴄ","خي","ﴅ","صى","ﴆ","صي","ﴇ","ضى","ﴈ","ضي","ﴉ","شج","ﴊ","شح","ﴋ","شخ","ﴌ","شم","ﴍ","شر","ﴎ","سر","ﴏ","صر","ﴐ","ضر","ﴑ","طى","ﴒ","طي","ﴓ","عى","ﴔ","عي","ﴕ","غى","ﴖ","غي","ﴗ","سى","ﴘ","سي","ﴙ","شى","ﴚ","شي","ﴛ","حى","ﴜ","حي","ﴝ","جى","ﴞ","جي","ﴟ","خى","ﴠ","خي","ﴡ","صى","ﴢ","صي","ﴣ","ضى","ﴤ","ضي","ﴥ","شج","ﴦ","شح","ﴧ","شخ","ﴨ","شم","ﴩ","شر","ﴪ","سر","ﴫ","صر","ﴬ","ضر","ﴭ","شج","ﴮ","شح","ﴯ","شخ","ﴰ","شم","ﴱ","سه","ﴲ","شه","ﴳ","طم","ﴴ","سج","ﴵ","سح","ﴶ","سخ","ﴷ","شج","ﴸ","شح","ﴹ","شخ","ﴺ","طم","ﴻ","ظم","ﴼ","اً","ﴽ","اً","ﵐ","تجم","ﵑ","تحج","ﵒ","تحج","ﵓ","تحم","ﵔ","تخم","ﵕ","تمج","ﵖ","تمح","ﵗ","تمخ","ﵘ","جمح","ﵙ","جمح","ﵚ","حمي","ﵛ","حمى","ﵜ","سحج","ﵝ","سجح","ﵞ","سجى","ﵟ","سمح","ﵠ","سمح","ﵡ","سمج","ﵢ","سمم","ﵣ","سمم","ﵤ","صحح","ﵥ","صحح","ﵦ","صمم","ﵧ","شحم","ﵨ","شحم","ﵩ","شجي","ﵪ","شمخ","ﵫ","شمخ","ﵬ","شمم","ﵭ","شمم","ﵮ","ضحى","ﵯ","ضخم","ﵰ","ضخم","ﵱ","طمح","ﵲ","طمح","ﵳ","طمم","ﵴ","طمي","ﵵ","عجم","ﵶ","عمم","ﵷ","عمم","ﵸ","عمى","ﵹ","غمم","ﵺ","غمي","ﵻ","غمى","ﵼ","فخم","ﵽ","فخم","ﵾ","قمح","ﵿ","قمم","ﶀ","لحم","ﶁ","لحي","ﶂ","لحى","ﶃ","لجج","ﶄ","لجج","ﶅ","لخم","ﶆ","لخم","ﶇ","لمح","ﶈ","لمح","ﶉ","محج","ﶊ","محم","ﶋ","محي","ﶌ","مجح","ﶍ","مجم","ﶎ","مخج","ﶏ","مخم","ﶒ","مجخ","ﶓ","همج","ﶔ","همم","ﶕ","نحم","ﶖ","نحى","ﶗ","نجم","ﶘ","نجم","ﶙ","نجى","ﶚ","نمي","ﶛ","نمى","ﶜ","يمم","ﶝ","يمم","ﶞ","بخي","ﶟ","تجي","ﶠ","تجى","ﶡ","تخي","ﶢ","تخى","ﶣ","تمي","ﶤ","تمى","ﶥ","جمي","ﶦ","جحى","ﶧ","جمى","ﶨ","سخى","ﶩ","صحي","ﶪ","شحي","ﶫ","ضحي","ﶬ","لجي","ﶭ","لمي","ﶮ","يحي","ﶯ","يجي","ﶰ","يمي","ﶱ","ممي","ﶲ","قمي","ﶳ","نحي","ﶴ","قمح","ﶵ","لحم","ﶶ","عمي","ﶷ","كمي","ﶸ","نجح","ﶹ","مخي","ﶺ","لجم","ﶻ","كمم","ﶼ","لجم","ﶽ","نجح","ﶾ","جحي","ﶿ","حجي","ﷀ","مجي","ﷁ","فمي","ﷂ","بحي","ﷃ","كمم","ﷄ","عجم","ﷅ","صمم","ﷆ","سخي","ﷇ","نجي","﹉","‾","﹊","‾","﹋","‾","﹌","‾","﹍","_","﹎","_","﹏","_","ﺀ","ء","ﺁ","آ","ﺂ","آ","ﺃ","أ","ﺄ","أ","ﺅ","ؤ","ﺆ","ؤ","ﺇ","إ","ﺈ","إ","ﺉ","ئ","ﺊ","ئ","ﺋ","ئ","ﺌ","ئ","ﺍ","ا","ﺎ","ا","ﺏ","ب","ﺐ","ب","ﺑ","ب","ﺒ","ب","ﺓ","ة","ﺔ","ة","ﺕ","ت","ﺖ","ت","ﺗ","ت","ﺘ","ت","ﺙ","ث","ﺚ","ث","ﺛ","ث","ﺜ","ث","ﺝ","ج","ﺞ","ج","ﺟ","ج","ﺠ","ج","ﺡ","ح","ﺢ","ح","ﺣ","ح","ﺤ","ح","ﺥ","خ","ﺦ","خ","ﺧ","خ","ﺨ","خ","ﺩ","د","ﺪ","د","ﺫ","ذ","ﺬ","ذ","ﺭ","ر","ﺮ","ر","ﺯ","ز","ﺰ","ز","ﺱ","س","ﺲ","س","ﺳ","س","ﺴ","س","ﺵ","ش","ﺶ","ش","ﺷ","ش","ﺸ","ش","ﺹ","ص","ﺺ","ص","ﺻ","ص","ﺼ","ص","ﺽ","ض","ﺾ","ض","ﺿ","ض","ﻀ","ض","ﻁ","ط","ﻂ","ط","ﻃ","ط","ﻄ","ط","ﻅ","ظ","ﻆ","ظ","ﻇ","ظ","ﻈ","ظ","ﻉ","ع","ﻊ","ع","ﻋ","ع","ﻌ","ع","ﻍ","غ","ﻎ","غ","ﻏ","غ","ﻐ","غ","ﻑ","ف","ﻒ","ف","ﻓ","ف","ﻔ","ف","ﻕ","ق","ﻖ","ق","ﻗ","ق","ﻘ","ق","ﻙ","ك","ﻚ","ك","ﻛ","ك","ﻜ","ك","ﻝ","ل","ﻞ","ل","ﻟ","ل","ﻠ","ل","ﻡ","م","ﻢ","م","ﻣ","م","ﻤ","م","ﻥ","ن","ﻦ","ن","ﻧ","ن","ﻨ","ن","ﻩ","ه","ﻪ","ه","ﻫ","ه","ﻬ","ه","ﻭ","و","ﻮ","و","ﻯ","ى","ﻰ","ى","ﻱ","ي","ﻲ","ي","ﻳ","ي","ﻴ","ي","ﻵ","لآ","ﻶ","لآ","ﻷ","لأ","ﻸ","لأ","ﻹ","لإ","ﻺ","لإ","ﻻ","لا","ﻼ","لا"]}));function u(t){const e=t.length;if(e<=1||!l(t.charCodeAt(0))){return t}const i=[];for(let n=e-1;n>=0;n--){i.push(t[n])}return i.join("")}const f=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u");const d=new Map;function p(t){const e=d.get(t);if(e){return e}const i=t.match(f);const n={isWhitespace:!!(i&&i[1]),isZeroWidthDiacritic:!!(i&&i[2]),isInvisibleFormatMark:!!(i&&i[3])};d.set(t,n);return n}function m(){d.clear()}},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.getSerifFonts=e.getNonStdFontMap=e.getGlyphMapForStandardFonts=e.getFontNameToFileMap=void 0;e.getStandardFontName=d;e.getSymbolsFonts=e.getSupplementalGlyphMapForCalibri=e.getSupplementalGlyphMapForArialBlack=e.getStdFontMap=void 0;var n=i(135);var s=i(167);const r=(0,n.getLookupTableFactory)((function(t){t["Times-Roman"]="Times-Roman";t.Helvetica="Helvetica";t.Courier="Courier";t.Symbol="Symbol";t["Times-Bold"]="Times-Bold";t["Helvetica-Bold"]="Helvetica-Bold";t["Courier-Bold"]="Courier-Bold";t.ZapfDingbats="ZapfDingbats";t["Times-Italic"]="Times-Italic";t["Helvetica-Oblique"]="Helvetica-Oblique";t["Courier-Oblique"]="Courier-Oblique";t["Times-BoldItalic"]="Times-BoldItalic";t["Helvetica-BoldOblique"]="Helvetica-BoldOblique";t["Courier-BoldOblique"]="Courier-BoldOblique";t.ArialNarrow="Helvetica";t["ArialNarrow-Bold"]="Helvetica-Bold";t["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique";t["ArialNarrow-Italic"]="Helvetica-Oblique";t.ArialBlack="Helvetica";t["ArialBlack-Bold"]="Helvetica-Bold";t["ArialBlack-BoldItalic"]="Helvetica-BoldOblique";t["ArialBlack-Italic"]="Helvetica-Oblique";t["Arial-Black"]="Helvetica";t["Arial-Black-Bold"]="Helvetica-Bold";t["Arial-Black-BoldItalic"]="Helvetica-BoldOblique";t["Arial-Black-Italic"]="Helvetica-Oblique";t.Arial="Helvetica";t["Arial-Bold"]="Helvetica-Bold";t["Arial-BoldItalic"]="Helvetica-BoldOblique";t["Arial-Italic"]="Helvetica-Oblique";t.ArialMT="Helvetica";t["Arial-BoldItalicMT"]="Helvetica-BoldOblique";t["Arial-BoldMT"]="Helvetica-Bold";t["Arial-ItalicMT"]="Helvetica-Oblique";t.ArialUnicodeMS="Helvetica";t["ArialUnicodeMS-Bold"]="Helvetica-Bold";t["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique";t["ArialUnicodeMS-Italic"]="Helvetica-Oblique";t["Courier-BoldItalic"]="Courier-BoldOblique";t["Courier-Italic"]="Courier-Oblique";t.CourierNew="Courier";t["CourierNew-Bold"]="Courier-Bold";t["CourierNew-BoldItalic"]="Courier-BoldOblique";t["CourierNew-Italic"]="Courier-Oblique";t["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique";t["CourierNewPS-BoldMT"]="Courier-Bold";t["CourierNewPS-ItalicMT"]="Courier-Oblique";t.CourierNewPSMT="Courier";t["Helvetica-BoldItalic"]="Helvetica-BoldOblique";t["Helvetica-Italic"]="Helvetica-Oblique";t["Symbol-Bold"]="Symbol";t["Symbol-BoldItalic"]="Symbol";t["Symbol-Italic"]="Symbol";t.TimesNewRoman="Times-Roman";t["TimesNewRoman-Bold"]="Times-Bold";t["TimesNewRoman-BoldItalic"]="Times-BoldItalic";t["TimesNewRoman-Italic"]="Times-Italic";t.TimesNewRomanPS="Times-Roman";t["TimesNewRomanPS-Bold"]="Times-Bold";t["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic";t["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic";t["TimesNewRomanPS-BoldMT"]="Times-Bold";t["TimesNewRomanPS-Italic"]="Times-Italic";t["TimesNewRomanPS-ItalicMT"]="Times-Italic";t.TimesNewRomanPSMT="Times-Roman";t["TimesNewRomanPSMT-Bold"]="Times-Bold";t["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic";t["TimesNewRomanPSMT-Italic"]="Times-Italic"}));e.getStdFontMap=r;const a=(0,n.getLookupTableFactory)((function(t){t.Courier="FoxitFixed.pfb";t["Courier-Bold"]="FoxitFixedBold.pfb";t["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb";t["Courier-Oblique"]="FoxitFixedItalic.pfb";t.Helvetica="FoxitSans.pfb";t["Helvetica-Bold"]="FoxitSansBold.pfb";t["Helvetica-BoldOblique"]="FoxitSansBoldItalic.pfb";t["Helvetica-Oblique"]="FoxitSansItalic.pfb";t["Times-Roman"]="FoxitSerif.pfb";t["Times-Bold"]="FoxitSerifBold.pfb";t["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb";t["Times-Italic"]="FoxitSerifItalic.pfb";t.Symbol="FoxitSymbol.pfb";t.ZapfDingbats="FoxitDingbats.pfb";t["LiberationSans-Regular"]="LiberationSans-Regular.ttf";t["LiberationSans-Bold"]="LiberationSans-Bold.ttf";t["LiberationSans-Italic"]="LiberationSans-Italic.ttf";t["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"}));e.getFontNameToFileMap=a;const o=(0,n.getLookupTableFactory)((function(t){t.Calibri="Helvetica";t["Calibri-Bold"]="Helvetica-Bold";t["Calibri-BoldItalic"]="Helvetica-BoldOblique";t["Calibri-Italic"]="Helvetica-Oblique";t.CenturyGothic="Helvetica";t["CenturyGothic-Bold"]="Helvetica-Bold";t["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique";t["CenturyGothic-Italic"]="Helvetica-Oblique";t.ComicSansMS="Comic Sans MS";t["ComicSansMS-Bold"]="Comic Sans MS-Bold";t["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic";t["ComicSansMS-Italic"]="Comic Sans MS-Italic";t["ItcSymbol-Bold"]="Helvetica-Bold";t["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique";t["ItcSymbol-Book"]="Helvetica";t["ItcSymbol-BookItalic"]="Helvetica-Oblique";t["ItcSymbol-Medium"]="Helvetica";t["ItcSymbol-MediumItalic"]="Helvetica-Oblique";t.LucidaConsole="Courier";t["LucidaConsole-Bold"]="Courier-Bold";t["LucidaConsole-BoldItalic"]="Courier-BoldOblique";t["LucidaConsole-Italic"]="Courier-Oblique";t["LucidaSans-Demi"]="Helvetica-Bold";t["MS-Gothic"]="MS Gothic";t["MS-Gothic-Bold"]="MS Gothic-Bold";t["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic";t["MS-Gothic-Italic"]="MS Gothic-Italic";t["MS-Mincho"]="MS Mincho";t["MS-Mincho-Bold"]="MS Mincho-Bold";t["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic";t["MS-Mincho-Italic"]="MS Mincho-Italic";t["MS-PGothic"]="MS PGothic";t["MS-PGothic-Bold"]="MS PGothic-Bold";t["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic";t["MS-PGothic-Italic"]="MS PGothic-Italic";t["MS-PMincho"]="MS PMincho";t["MS-PMincho-Bold"]="MS PMincho-Bold";t["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic";t["MS-PMincho-Italic"]="MS PMincho-Italic";t.NuptialScript="Times-Italic";t.SegoeUISymbol="Helvetica";t.Wingdings="ZapfDingbats";t["Wingdings-Regular"]="ZapfDingbats"}));e.getNonStdFontMap=o;const c=(0,n.getLookupTableFactory)((function(t){t["Adobe Jenson"]=true;t["Adobe Text"]=true;t.Albertus=true;t.Aldus=true;t.Alexandria=true;t.Algerian=true;t["American Typewriter"]=true;t.Antiqua=true;t.Apex=true;t.Arno=true;t.Aster=true;t.Aurora=true;t.Baskerville=true;t.Bell=true;t.Bembo=true;t["Bembo Schoolbook"]=true;t.Benguiat=true;t["Berkeley Old Style"]=true;t["Bernhard Modern"]=true;t["Berthold City"]=true;t.Bodoni=true;t["Bauer Bodoni"]=true;t["Book Antiqua"]=true;t.Bookman=true;t["Bordeaux Roman"]=true;t["Californian FB"]=true;t.Calisto=true;t.Calvert=true;t.Capitals=true;t.Cambria=true;t.Cartier=true;t.Caslon=true;t.Catull=true;t.Centaur=true;t["Century Old Style"]=true;t["Century Schoolbook"]=true;t.Chaparral=true;t["Charis SIL"]=true;t.Cheltenham=true;t["Cholla Slab"]=true;t.Clarendon=true;t.Clearface=true;t.Cochin=true;t.Colonna=true;t["Computer Modern"]=true;t["Concrete Roman"]=true;t.Constantia=true;t["Cooper Black"]=true;t.Corona=true;t.Ecotype=true;t.Egyptienne=true;t.Elephant=true;t.Excelsior=true;t.Fairfield=true;t["FF Scala"]=true;t.Folkard=true;t.Footlight=true;t.FreeSerif=true;t["Friz Quadrata"]=true;t.Garamond=true;t.Gentium=true;t.Georgia=true;t.Gloucester=true;t["Goudy Old Style"]=true;t["Goudy Schoolbook"]=true;t["Goudy Pro Font"]=true;t.Granjon=true;t["Guardian Egyptian"]=true;t.Heather=true;t.Hercules=true;t["High Tower Text"]=true;t.Hiroshige=true;t["Hoefler Text"]=true;t["Humana Serif"]=true;t.Imprint=true;t["Ionic No. 5"]=true;t.Janson=true;t.Joanna=true;t.Korinna=true;t.Lexicon=true;t.LiberationSerif=true;t["Liberation Serif"]=true;t["Linux Libertine"]=true;t.Literaturnaya=true;t.Lucida=true;t["Lucida Bright"]=true;t.Melior=true;t.Memphis=true;t.Miller=true;t.Minion=true;t.Modern=true;t["Mona Lisa"]=true;t["Mrs Eaves"]=true;t["MS Serif"]=true;t["Museo Slab"]=true;t["New York"]=true;t["Nimbus Roman"]=true;t["NPS Rawlinson Roadway"]=true;t.NuptialScript=true;t.Palatino=true;t.Perpetua=true;t.Plantin=true;t["Plantin Schoolbook"]=true;t.Playbill=true;t["Poor Richard"]=true;t["Rawlinson Roadway"]=true;t.Renault=true;t.Requiem=true;t.Rockwell=true;t.Roman=true;t["Rotis Serif"]=true;t.Sabon=true;t.Scala=true;t.Seagull=true;t.Sistina=true;t.Souvenir=true;t.STIX=true;t["Stone Informal"]=true;t["Stone Serif"]=true;t.Sylfaen=true;t.Times=true;t.Trajan=true;t["Trinité"]=true;t["Trump Mediaeval"]=true;t.Utopia=true;t["Vale Type"]=true;t["Bitstream Vera"]=true;t["Vera Serif"]=true;t.Versailles=true;t.Wanted=true;t.Weiss=true;t["Wide Latin"]=true;t.Windsor=true;t.XITS=true}));e.getSerifFonts=c;const l=(0,n.getLookupTableFactory)((function(t){t.Dingbats=true;t.Symbol=true;t.ZapfDingbats=true}));e.getSymbolsFonts=l;const h=(0,n.getLookupTableFactory)((function(t){t[2]=10;t[3]=32;t[4]=33;t[5]=34;t[6]=35;t[7]=36;t[8]=37;t[9]=38;t[10]=39;t[11]=40;t[12]=41;t[13]=42;t[14]=43;t[15]=44;t[16]=45;t[17]=46;t[18]=47;t[19]=48;t[20]=49;t[21]=50;t[22]=51;t[23]=52;t[24]=53;t[25]=54;t[26]=55;t[27]=56;t[28]=57;t[29]=58;t[30]=894;t[31]=60;t[32]=61;t[33]=62;t[34]=63;t[35]=64;t[36]=65;t[37]=66;t[38]=67;t[39]=68;t[40]=69;t[41]=70;t[42]=71;t[43]=72;t[44]=73;t[45]=74;t[46]=75;t[47]=76;t[48]=77;t[49]=78;t[50]=79;t[51]=80;t[52]=81;t[53]=82;t[54]=83;t[55]=84;t[56]=85;t[57]=86;t[58]=87;t[59]=88;t[60]=89;t[61]=90;t[62]=91;t[63]=92;t[64]=93;t[65]=94;t[66]=95;t[67]=96;t[68]=97;t[69]=98;t[70]=99;t[71]=100;t[72]=101;t[73]=102;t[74]=103;t[75]=104;t[76]=105;t[77]=106;t[78]=107;t[79]=108;t[80]=109;t[81]=110;t[82]=111;t[83]=112;t[84]=113;t[85]=114;t[86]=115;t[87]=116;t[88]=117;t[89]=118;t[90]=119;t[91]=120;t[92]=121;t[93]=122;t[94]=123;t[95]=124;t[96]=125;t[97]=126;t[98]=196;t[99]=197;t[100]=199;t[101]=201;t[102]=209;t[103]=214;t[104]=220;t[105]=225;t[106]=224;t[107]=226;t[108]=228;t[109]=227;t[110]=229;t[111]=231;t[112]=233;t[113]=232;t[114]=234;t[115]=235;t[116]=237;t[117]=236;t[118]=238;t[119]=239;t[120]=241;t[121]=243;t[122]=242;t[123]=244;t[124]=246;t[125]=245;t[126]=250;t[127]=249;t[128]=251;t[129]=252;t[130]=8224;t[131]=176;t[132]=162;t[133]=163;t[134]=167;t[135]=8226;t[136]=182;t[137]=223;t[138]=174;t[139]=169;t[140]=8482;t[141]=180;t[142]=168;t[143]=8800;t[144]=198;t[145]=216;t[146]=8734;t[147]=177;t[148]=8804;t[149]=8805;t[150]=165;t[151]=181;t[152]=8706;t[153]=8721;t[154]=8719;t[156]=8747;t[157]=170;t[158]=186;t[159]=8486;t[160]=230;t[161]=248;t[162]=191;t[163]=161;t[164]=172;t[165]=8730;t[166]=402;t[167]=8776;t[168]=8710;t[169]=171;t[170]=187;t[171]=8230;t[179]=8220;t[180]=8221;t[181]=8216;t[182]=8217;t[200]=193;t[203]=205;t[210]=218;t[223]=711;t[224]=321;t[225]=322;t[226]=352;t[227]=353;t[228]=381;t[229]=382;t[233]=221;t[234]=253;t[252]=263;t[253]=268;t[254]=269;t[258]=258;t[260]=260;t[261]=261;t[265]=280;t[266]=281;t[267]=282;t[268]=283;t[269]=313;t[275]=323;t[276]=324;t[278]=328;t[283]=344;t[284]=345;t[285]=346;t[286]=347;t[292]=367;t[295]=377;t[296]=378;t[298]=380;t[305]=963;t[306]=964;t[307]=966;t[308]=8215;t[309]=8252;t[310]=8319;t[311]=8359;t[312]=8592;t[313]=8593;t[337]=9552;t[493]=1039;t[494]=1040;t[672]=1488;t[673]=1489;t[674]=1490;t[675]=1491;t[676]=1492;t[677]=1493;t[678]=1494;t[679]=1495;t[680]=1496;t[681]=1497;t[682]=1498;t[683]=1499;t[684]=1500;t[685]=1501;t[686]=1502;t[687]=1503;t[688]=1504;t[689]=1505;t[690]=1506;t[691]=1507;t[692]=1508;t[693]=1509;t[694]=1510;t[695]=1511;t[696]=1512;t[697]=1513;t[698]=1514;t[705]=1524;t[706]=8362;t[710]=64288;t[711]=64298;t[759]=1617;t[761]=1776;t[763]=1778;t[775]=1652;t[777]=1764;t[778]=1780;t[779]=1781;t[780]=1782;t[782]=771;t[783]=64726;t[786]=8363;t[788]=8532;t[790]=768;t[791]=769;t[792]=768;t[795]=803;t[797]=64336;t[798]=64337;t[799]=64342;t[800]=64343;t[801]=64344;t[802]=64345;t[803]=64362;t[804]=64363;t[805]=64364;t[2424]=7821;t[2425]=7822;t[2426]=7823;t[2427]=7824;t[2428]=7825;t[2429]=7826;t[2430]=7827;t[2433]=7682;t[2678]=8045;t[2679]=8046;t[2830]=1552;t[2838]=686;t[2840]=751;t[2842]=753;t[2843]=754;t[2844]=755;t[2846]=757;t[2856]=767;t[2857]=848;t[2858]=849;t[2862]=853;t[2863]=854;t[2864]=855;t[2865]=861;t[2866]=862;t[2906]=7460;t[2908]=7462;t[2909]=7463;t[2910]=7464;t[2912]=7466;t[2913]=7467;t[2914]=7468;t[2916]=7470;t[2917]=7471;t[2918]=7472;t[2920]=7474;t[2921]=7475;t[2922]=7476;t[2924]=7478;t[2925]=7479;t[2926]=7480;t[2928]=7482;t[2929]=7483;t[2930]=7484;t[2932]=7486;t[2933]=7487;t[2934]=7488;t[2936]=7490;t[2937]=7491;t[2938]=7492;t[2940]=7494;t[2941]=7495;t[2942]=7496;t[2944]=7498;t[2946]=7500;t[2948]=7502;t[2950]=7504;t[2951]=7505;t[2952]=7506;t[2954]=7508;t[2955]=7509;t[2956]=7510;t[2958]=7512;t[2959]=7513;t[2960]=7514;t[2962]=7516;t[2963]=7517;t[2964]=7518;t[2966]=7520;t[2967]=7521;t[2968]=7522;t[2970]=7524;t[2971]=7525;t[2972]=7526;t[2974]=7528;t[2975]=7529;t[2976]=7530;t[2978]=1537;t[2979]=1538;t[2980]=1539;t[2982]=1549;t[2983]=1551;t[2984]=1552;t[2986]=1554;t[2987]=1555;t[2988]=1556;t[2990]=1623;t[2991]=1624;t[2995]=1775;t[2999]=1791;t[3002]=64290;t[3003]=64291;t[3004]=64292;t[3006]=64294;t[3007]=64295;t[3008]=64296;t[3011]=1900;t[3014]=8223;t[3015]=8244;t[3017]=7532;t[3018]=7533;t[3019]=7534;t[3075]=7590;t[3076]=7591;t[3079]=7594;t[3080]=7595;t[3083]=7598;t[3084]=7599;t[3087]=7602;t[3088]=7603;t[3091]=7606;t[3092]=7607;t[3095]=7610;t[3096]=7611;t[3099]=7614;t[3100]=7615;t[3103]=7618;t[3104]=7619;t[3107]=8337;t[3108]=8338;t[3116]=1884;t[3119]=1885;t[3120]=1885;t[3123]=1886;t[3124]=1886;t[3127]=1887;t[3128]=1887;t[3131]=1888;t[3132]=1888;t[3135]=1889;t[3136]=1889;t[3139]=1890;t[3140]=1890;t[3143]=1891;t[3144]=1891;t[3147]=1892;t[3148]=1892;t[3153]=580;t[3154]=581;t[3157]=584;t[3158]=585;t[3161]=588;t[3162]=589;t[3165]=891;t[3166]=892;t[3169]=1274;t[3170]=1275;t[3173]=1278;t[3174]=1279;t[3181]=7622;t[3182]=7623;t[3282]=11799;t[3316]=578;t[3379]=42785;t[3393]=1159;t[3416]=8377}));e.getGlyphMapForStandardFonts=h;const u=(0,n.getLookupTableFactory)((function(t){t[227]=322;t[264]=261;t[291]=346}));e.getSupplementalGlyphMapForArialBlack=u;const f=(0,n.getLookupTableFactory)((function(t){t[1]=32;t[4]=65;t[5]=192;t[6]=193;t[9]=196;t[17]=66;t[18]=67;t[21]=268;t[24]=68;t[28]=69;t[29]=200;t[30]=201;t[32]=282;t[38]=70;t[39]=71;t[44]=72;t[47]=73;t[48]=204;t[49]=205;t[58]=74;t[60]=75;t[62]=76;t[68]=77;t[69]=78;t[75]=79;t[76]=210;t[80]=214;t[87]=80;t[89]=81;t[90]=82;t[92]=344;t[94]=83;t[97]=352;t[100]=84;t[104]=85;t[109]=220;t[115]=86;t[116]=87;t[121]=88;t[122]=89;t[124]=221;t[127]=90;t[129]=381;t[258]=97;t[259]=224;t[260]=225;t[263]=228;t[268]=261;t[271]=98;t[272]=99;t[273]=263;t[275]=269;t[282]=100;t[286]=101;t[287]=232;t[288]=233;t[290]=283;t[295]=281;t[296]=102;t[336]=103;t[346]=104;t[349]=105;t[350]=236;t[351]=237;t[361]=106;t[364]=107;t[367]=108;t[371]=322;t[373]=109;t[374]=110;t[381]=111;t[382]=242;t[383]=243;t[386]=246;t[393]=112;t[395]=113;t[396]=114;t[398]=345;t[400]=115;t[401]=347;t[403]=353;t[410]=116;t[437]=117;t[442]=252;t[448]=118;t[449]=119;t[454]=120;t[455]=121;t[457]=253;t[460]=122;t[462]=382;t[463]=380;t[853]=44;t[855]=58;t[856]=46;t[876]=47;t[878]=45;t[882]=45;t[894]=40;t[895]=41;t[896]=91;t[897]=93;t[923]=64;t[1004]=48;t[1005]=49;t[1006]=50;t[1007]=51;t[1008]=52;t[1009]=53;t[1010]=54;t[1011]=55;t[1012]=56;t[1013]=57;t[1081]=37;t[1085]=43;t[1086]=45}));e.getSupplementalGlyphMapForCalibri=f;function d(t){const e=(0,s.normalizeFontName)(t);const i=r();return i[e]}},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.ToUnicodeMap=e.IdentityToUnicodeMap=void 0;var n=i(2);class s{constructor(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];this._map=t}get length(){return this._map.length}forEach(t){for(const e in this._map){t(e,this._map[e].charCodeAt(0))}}has(t){return this._map[t]!==undefined}get(t){return this._map[t]}charCodeOf(t){const e=this._map;if(e.length<=65536){return e.indexOf(t)}for(const i in e){if(e[i]===t){return i|0}}return-1}amend(t){for(const e in t){this._map[e]=t[e]}}}e.ToUnicodeMap=s;class r{constructor(t,e){this.firstChar=t;this.lastChar=e}get length(){return this.lastChar+1-this.firstChar}forEach(t){for(let e=this.firstChar,i=this.lastChar;e<=i;e++){t(e,e)}}has(t){return this.firstChar<=t&&t<=this.lastChar}get(t){if(this.firstChar<=t&&t<=this.lastChar){return String.fromCharCode(t)}return undefined}charCodeOf(t){return Number.isInteger(t)&&t>=this.firstChar&&t<=this.lastChar?t:-1}amend(t){(0,n.unreachable)("Should not call amend()")}}e.IdentityToUnicodeMap=r},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.CFFFont=void 0;var n=i(164);var s=i(167);var r=i(2);class a{constructor(t,e){this.properties=e;const i=new n.CFFParser(t,e,s.SEAC_ANALYSIS_ENABLED);this.cff=i.parse();this.cff.duplicateFirstGlyph();const a=new n.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=a.compile()}catch(i){(0,r.warn)("Failed to compile font "+e.loadedName);this.data=t}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){const t=this.cff;const e=this.properties;const{cidToGidMap:i,cMap:n}=e;const r=t.charset.charset;let a;let o;if(e.composite){let e;if(i&&i.length>0){e=Object.create(null);for(let t=0,n=i.length;t<n;t++){const n=i[t];if(n!==undefined){e[n]=t}}}a=Object.create(null);let s;if(t.isCIDFont){for(o=0;o<r.length;o++){const t=r[o];s=n.charCodeOf(t);if(e&&e[s]!==undefined){s=e[s]}a[s]=o}}else{for(o=0;o<t.charStrings.count;o++){s=n.charCodeOf(o);a[s]=o}}return a}let c=t.encoding?t.encoding.encoding:null;if(e.isInternalFont){c=e.defaultEncoding}a=(0,s.type1FontGlyphMapping)(e,c,r);return a}hasGlyphId(t){return this.cff.hasGlyphId(t)}_createBuiltInEncoding(){const{charset:t,encoding:e}=this.cff;if(!t||!e){return}const i=t.charset,n=e.encoding;const s=[];for(const t in n){const e=n[t];if(e>=0){const n=i[e];if(n){s[t]=n}}}if(s.length>0){this.properties.builtInEncoding=s}}}e.CFFFont=a},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.FontRendererFactory=void 0;var n=i(2);var s=i(164);var r=i(168);var a=i(166);var o=i(139);function c(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}function l(t,e){return t[e]<<8|t[e+1]}function h(t,e){return(t[e]<<24|t[e+1]<<16)>>16}function u(t,e){return t[e]<<24>>24}function f(t,e){return h(t,e)/16384}function d(t){const e=t.length;let i=32768;if(e<1240){i=107}else if(e<33900){i=1131}return i}function p(t,e,i){const s=l(t,e+2)===1?c(t,e+8):c(t,e+16);const r=l(t,e+s);let a,o,h;if(r===4){const i=l(t,e+s+6)>>1;o=e+s+14;a=[];for(h=0;h<i;h++,o+=2){a[h]={end:l(t,o)}}o+=2;for(h=0;h<i;h++,o+=2){a[h].start=l(t,o)}for(h=0;h<i;h++,o+=2){a[h].idDelta=l(t,o)}for(h=0;h<i;h++,o+=2){let e=l(t,o);if(e===0){continue}a[h].ids=[];for(let i=0,n=a[h].end-a[h].start+1;i<n;i++){a[h].ids[i]=l(t,o+e);e+=2}}return a}else if(r===12){const i=c(t,e+s+12);o=e+s+16;a=[];for(h=0;h<i;h++){e=c(t,o);a.push({start:e,end:c(t,o+4),idDelta:c(t,o+8)-e});o+=12}return a}throw new n.FormatError(`unsupported cmap: ${r}`)}function m(t,e,i,n){const r={};const a=new s.CFFParser(new o.Stream(t,e,i-e),r,n);const c=a.parse();return{glyphs:c.charStrings.objects,subrs:c.topDict.privateDict&&c.topDict.privateDict.subrsIndex&&c.topDict.privateDict.subrsIndex.objects,gsubrs:c.globalSubrIndex&&c.globalSubrIndex.objects,isCFFCIDFont:c.isCIDFont,fdSelect:c.fdSelect,fdArray:c.fdArray}}function g(t,e,i){let n,s;if(i){n=4;s=c}else{n=2;s=(t,e)=>2*l(t,e)}const r=[];let a=s(e,0);for(let i=n;i<e.length;i+=n){const n=s(e,i);r.push(t.subarray(a,n));a=n}return r}function b(t,e){const i=e.codePointAt(0);let n=0,s=0,r=t.length-1;while(s<r){const e=s+r+1>>1;if(i<t[e].start){r=e-1}else{s=e}}if(t[s].start<=i&&i<=t[s].end){n=t[s].idDelta+(t[s].ids?t[s].ids[i-t[s].start]:i)&65535}return{charCode:i,glyphId:n}}function v(t,e,i){function n(t,i){e.push({cmd:"moveTo",args:[t,i]})}function s(t,i){e.push({cmd:"lineTo",args:[t,i]})}function r(t,i,n,s){e.push({cmd:"quadraticCurveTo",args:[t,i,n,s]})}let a=0;const o=h(t,a);let c;let d=0,p=0;a+=10;if(o<0){do{c=l(t,a);const n=l(t,a+2);a+=4;let s,r;if(c&1){if(c&2){s=h(t,a);r=h(t,a+2)}else{s=l(t,a);r=l(t,a+2)}a+=4}else{if(c&2){s=u(t,a++);r=u(t,a++)}else{s=t[a++];r=t[a++]}}if(c&2){d=s;p=r}else{d=0;p=0}let o=1,m=1,g=0,b=0;if(c&8){o=m=f(t,a);a+=2}else if(c&64){o=f(t,a);m=f(t,a+2);a+=4}else if(c&128){o=f(t,a);g=f(t,a+2);b=f(t,a+4);m=f(t,a+6);a+=8}const w=i.glyphs[n];if(w){e.push({cmd:"save"},{cmd:"transform",args:[o,g,b,m,d,p]});v(w,e,i);e.push({cmd:"restore"})}}while(c&32)}else{const e=[];let i,u;for(i=0;i<o;i++){e.push(l(t,a));a+=2}const f=l(t,a);a+=2+f;const m=e.at(-1)+1;const g=[];while(g.length<m){c=t[a++];let e=1;if(c&8){e+=t[a++]}while(e-- >0){g.push({flags:c})}}for(i=0;i<m;i++){switch(g[i].flags&18){case 0:d+=h(t,a);a+=2;break;case 2:d-=t[a++];break;case 18:d+=t[a++];break}g[i].x=d}for(i=0;i<m;i++){switch(g[i].flags&36){case 0:p+=h(t,a);a+=2;break;case 4:p-=t[a++];break;case 36:p+=t[a++];break}g[i].y=p}let b=0;for(a=0;a<o;a++){const t=e[a];const o=g.slice(b,t+1);if(o[0].flags&1){o.push(o[0])}else if(o.at(-1).flags&1){o.unshift(o.at(-1))}else{const t={flags:1,x:(o[0].x+o.at(-1).x)/2,y:(o[0].y+o.at(-1).y)/2};o.unshift(t);o.push(t)}n(o[0].x,o[0].y);for(i=1,u=o.length;i<u;i++){if(o[i].flags&1){s(o[i].x,o[i].y)}else if(o[i+1].flags&1){r(o[i].x,o[i].y,o[i+1].x,o[i+1].y);i++}else{r(o[i].x,o[i].y,(o[i].x+o[i+1].x)/2,(o[i].y+o[i+1].y)/2)}}b=t+1}}}function w(t,e,i,s){function r(t,i){e.push({cmd:"moveTo",args:[t,i]})}function o(t,i){e.push({cmd:"lineTo",args:[t,i]})}function c(t,i,n,s,r,a){e.push({cmd:"bezierCurveTo",args:[t,i,n,s,r,a]})}const l=[];let h=0,u=0;let f=0;function p(t){let m=0;while(m<t.length){let g=false;let v=t[m++];let y,A,k,x,S,M,_,E,C;switch(v){case 1:f+=l.length>>1;g=true;break;case 3:f+=l.length>>1;g=true;break;case 4:u+=l.pop();r(h,u);g=true;break;case 5:while(l.length>0){h+=l.shift();u+=l.shift();o(h,u)}break;case 6:while(l.length>0){h+=l.shift();o(h,u);if(l.length===0){break}u+=l.shift();o(h,u)}break;case 7:while(l.length>0){u+=l.shift();o(h,u);if(l.length===0){break}h+=l.shift();o(h,u)}break;case 8:while(l.length>0){y=h+l.shift();k=u+l.shift();A=y+l.shift();x=k+l.shift();h=A+l.shift();u=x+l.shift();c(y,k,A,x,h,u)}break;case 10:E=l.pop();C=null;if(i.isCFFCIDFont){const t=i.fdSelect.getFDIndex(s);if(t>=0&&t<i.fdArray.length){const e=i.fdArray[t];let n;if(e.privateDict&&e.privateDict.subrsIndex){n=e.privateDict.subrsIndex.objects}if(n){E+=d(n);C=n[E]}}else{(0,n.warn)("Invalid fd index for glyph index.")}}else{C=i.subrs[E+i.subrsBias]}if(C){p(C)}break;case 11:return;case 12:v=t[m++];switch(v){case 34:y=h+l.shift();A=y+l.shift();S=u+l.shift();h=A+l.shift();c(y,u,A,S,h,S);y=h+l.shift();A=y+l.shift();h=A+l.shift();c(y,S,A,u,h,u);break;case 35:y=h+l.shift();k=u+l.shift();A=y+l.shift();x=k+l.shift();h=A+l.shift();u=x+l.shift();c(y,k,A,x,h,u);y=h+l.shift();k=u+l.shift();A=y+l.shift();x=k+l.shift();h=A+l.shift();u=x+l.shift();c(y,k,A,x,h,u);l.pop();break;case 36:y=h+l.shift();S=u+l.shift();A=y+l.shift();M=S+l.shift();h=A+l.shift();c(y,S,A,M,h,M);y=h+l.shift();A=y+l.shift();_=M+l.shift();h=A+l.shift();c(y,M,A,_,h,u);break;case 37:const t=h,e=u;y=h+l.shift();k=u+l.shift();A=y+l.shift();x=k+l.shift();h=A+l.shift();u=x+l.shift();c(y,k,A,x,h,u);y=h+l.shift();k=u+l.shift();A=y+l.shift();x=k+l.shift();h=A;u=x;if(Math.abs(h-t)>Math.abs(u-e)){h+=l.shift()}else{u+=l.shift()}c(y,k,A,x,h,u);break;default:throw new n.FormatError(`unknown operator: 12 ${v}`)}break;case 14:if(l.length>=4){const t=l.pop();const n=l.pop();u=l.pop();h=l.pop();e.push({cmd:"save"},{cmd:"translate",args:[h,u]});let s=b(i.cmap,String.fromCharCode(i.glyphNameMap[a.StandardEncoding[t]]));w(i.glyphs[s.glyphId],e,i,s.glyphId);e.push({cmd:"restore"});s=b(i.cmap,String.fromCharCode(i.glyphNameMap[a.StandardEncoding[n]]));w(i.glyphs[s.glyphId],e,i,s.glyphId)}return;case 18:f+=l.length>>1;g=true;break;case 19:f+=l.length>>1;m+=f+7>>3;g=true;break;case 20:f+=l.length>>1;m+=f+7>>3;g=true;break;case 21:u+=l.pop();h+=l.pop();r(h,u);g=true;break;case 22:h+=l.pop();r(h,u);g=true;break;case 23:f+=l.length>>1;g=true;break;case 24:while(l.length>2){y=h+l.shift();k=u+l.shift();A=y+l.shift();x=k+l.shift();h=A+l.shift();u=x+l.shift();c(y,k,A,x,h,u)}h+=l.shift();u+=l.shift();o(h,u);break;case 25:while(l.length>6){h+=l.shift();u+=l.shift();o(h,u)}y=h+l.shift();k=u+l.shift();A=y+l.shift();x=k+l.shift();h=A+l.shift();u=x+l.shift();c(y,k,A,x,h,u);break;case 26:if(l.length%2){h+=l.shift()}while(l.length>0){y=h;k=u+l.shift();A=y+l.shift();x=k+l.shift();h=A;u=x+l.shift();c(y,k,A,x,h,u)}break;case 27:if(l.length%2){u+=l.shift()}while(l.length>0){y=h+l.shift();k=u;A=y+l.shift();x=k+l.shift();h=A+l.shift();u=x;c(y,k,A,x,h,u)}break;case 28:l.push((t[m]<<24|t[m+1]<<16)>>16);m+=2;break;case 29:E=l.pop()+i.gsubrsBias;C=i.gsubrs[E];if(C){p(C)}break;case 30:while(l.length>0){y=h;k=u+l.shift();A=y+l.shift();x=k+l.shift();h=A+l.shift();u=x+(l.length===1?l.shift():0);c(y,k,A,x,h,u);if(l.length===0){break}y=h+l.shift();k=u;A=y+l.shift();x=k+l.shift();u=x+l.shift();h=A+(l.length===1?l.shift():0);c(y,k,A,x,h,u)}break;case 31:while(l.length>0){y=h+l.shift();k=u;A=y+l.shift();x=k+l.shift();u=x+l.shift();h=A+(l.length===1?l.shift():0);c(y,k,A,x,h,u);if(l.length===0){break}y=h;k=u+l.shift();A=y+l.shift();x=k+l.shift();h=A+l.shift();u=x+(l.length===1?l.shift():0);c(y,k,A,x,h,u)}break;default:if(v<32){throw new n.FormatError(`unknown operator: ${v}`)}if(v<247){l.push(v-139)}else if(v<251){l.push((v-247)*256+t[m++]+108)}else if(v<255){l.push(-(v-251)*256-t[m++]-108)}else{l.push((t[m]<<24|t[m+1]<<16|t[m+2]<<8|t[m+3])/65536);m+=4}break}if(g){l.length=0}}}p(t)}const y=[];class A{constructor(t){if(this.constructor===A){(0,n.unreachable)("Cannot initialize CompiledFont.")}this.fontMatrix=t;this.compiledGlyphs=Object.create(null);this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(t){const{charCode:e,glyphId:i}=b(this.cmap,t);let n=this.compiledGlyphs[i];if(!n){try{n=this.compileGlyph(this.glyphs[i],i);this.compiledGlyphs[i]=n}catch(t){this.compiledGlyphs[i]=y;if(this.compiledCharCodeToGlyphId[e]===undefined){this.compiledCharCodeToGlyphId[e]=i}throw t}}if(this.compiledCharCodeToGlyphId[e]===undefined){this.compiledCharCodeToGlyphId[e]=i}return n}compileGlyph(t,e){if(!t||t.length===0||t[0]===14){return y}let i=this.fontMatrix;if(this.isCFFCIDFont){const t=this.fdSelect.getFDIndex(e);if(t>=0&&t<this.fdArray.length){const e=this.fdArray[t];i=e.getByName("FontMatrix")||n.FONT_IDENTITY_MATRIX}else{(0,n.warn)("Invalid fd index for glyph index.")}}const s=[{cmd:"save"},{cmd:"transform",args:i.slice()},{cmd:"scale",args:["size","-size"]}];this.compileGlyphImpl(t,s,e);s.push({cmd:"restore"});return s}compileGlyphImpl(){(0,n.unreachable)("Children classes should implement this.")}hasBuiltPath(t){const{charCode:e,glyphId:i}=b(this.cmap,t);return this.compiledGlyphs[i]!==undefined&&this.compiledCharCodeToGlyphId[e]!==undefined}}class k extends A{constructor(t,e,i){super(i||[488e-6,0,0,488e-6,0,0]);this.glyphs=t;this.cmap=e}compileGlyphImpl(t,e){v(t,e,this)}}class x extends A{constructor(t,e,i,n){super(i||[.001,0,0,.001,0,0]);this.glyphs=t.glyphs;this.gsubrs=t.gsubrs||[];this.subrs=t.subrs||[];this.cmap=e;this.glyphNameMap=n||(0,r.getGlyphsUnicode)();this.gsubrsBias=d(this.gsubrs);this.subrsBias=d(this.subrs);this.isCFFCIDFont=t.isCFFCIDFont;this.fdSelect=t.fdSelect;this.fdArray=t.fdArray}compileGlyphImpl(t,e,i){w(t,e,this,i)}}class S{static create(t,e){const i=new Uint8Array(t.data);let s,r,a,o,h,u;const f=l(i,4);for(let t=0,d=12;t<f;t++,d+=16){const t=(0,n.bytesToString)(i.subarray(d,d+4));const f=c(i,d+8);const g=c(i,d+12);switch(t){case"cmap":s=p(i,f);break;case"glyf":r=i.subarray(f,f+g);break;case"loca":a=i.subarray(f,f+g);break;case"head":u=l(i,f+18);h=l(i,f+50);break;case"CFF ":o=m(i,f,f+g,e);break}}if(r){const e=!u?t.fontMatrix:[1/u,0,0,1/u,0,0];return new k(g(r,a,h),s,e)}return new x(o,s,t.fontMatrix,t.glyphNameMap)}}e.FontRendererFactory=S},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.getMetrics=e.getFontBasicMetrics=void 0;var n=i(135);const s=(0,n.getLookupTableFactory)((function(t){t.Courier=600;t["Courier-Bold"]=600;t["Courier-BoldOblique"]=600;t["Courier-Oblique"]=600;t.Helvetica=(0,n.getLookupTableFactory)((function(t){t.space=278;t.exclam=278;t.quotedbl=355;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=667;t.quoteright=222;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=278;t.semicolon=278;t.less=584;t.equal=584;t.greater=584;t.question=556;t.at=1015;t.A=667;t.B=667;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=500;t.K=667;t.L=556;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=278;t.backslash=278;t.bracketright=278;t.asciicircum=469;t.underscore=556;t.quoteleft=222;t.a=556;t.b=556;t.c=500;t.d=556;t.e=556;t.f=278;t.g=556;t.h=556;t.i=222;t.j=222;t.k=500;t.l=222;t.m=833;t.n=556;t.o=556;t.p=556;t.q=556;t.r=333;t.s=500;t.t=278;t.u=556;t.v=500;t.w=722;t.x=500;t.y=500;t.z=500;t.braceleft=334;t.bar=260;t.braceright=334;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=191;t.quotedblleft=333;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=500;t.fl=500;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=537;t.bullet=350;t.quotesinglbase=222;t.quotedblbase=333;t.quotedblright=333;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=556;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=222;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=556;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=667;t.aacute=556;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=500;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=500;t.aring=556;t.Ncommaaccent=722;t.lacute=222;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=500;t.scedilla=500;t.iacute=278;t.lozenge=471;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=556;t.acircumflex=556;t.Amacron=667;t.rcaron=333;t.ccedilla=500;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=643;t.Umacron=722;t.uring=556;t.threesuperior=333;t.Ograve=778;t.Agrave=667;t.Abreve=667;t.multiply=584;t.uacute=556;t.Tcaron=611;t.partialdiff=476;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=500;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=260;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=333;t.omacron=556;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=222;t.tcaron=317;t.eogonek=556;t.Uogonek=722;t.Aacute=667;t.Adieresis=667;t.egrave=556;t.zacute=500;t.iogonek=222;t.Oacute=778;t.oacute=556;t.amacron=556;t.sacute=500;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=556;t.twosuperior=333;t.Odieresis=778;t.mu=556;t.igrave=278;t.ohungarumlaut=556;t.Eogonek=667;t.dcroat=556;t.threequarters=834;t.Scedilla=667;t.lcaron=299;t.Kcommaaccent=667;t.Lacute=556;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=556;t.onehalf=834;t.lessequal=549;t.ocircumflex=556;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=556;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=556;t.Ccaron=722;t.ugrave=556;t.radical=453;t.Dcaron=722;t.rcommaaccent=333;t.Ntilde=722;t.otilde=556;t.Rcommaaccent=722;t.Lcommaaccent=556;t.Atilde=667;t.Aogonek=667;t.Aring=667;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=500;t.minus=584;t.Icircumflex=278;t.ncaron=556;t.tcommaaccent=278;t.logicalnot=584;t.odieresis=556;t.udieresis=556;t.notequal=549;t.gcommaaccent=556;t.eth=556;t.zcaron=500;t.ncommaaccent=556;t.onesuperior=333;t.imacron=278;t.Euro=556}));t["Helvetica-Bold"]=(0,n.getLookupTableFactory)((function(t){t.space=278;t.exclam=333;t.quotedbl=474;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=722;t.quoteright=278;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=333;t.semicolon=333;t.less=584;t.equal=584;t.greater=584;t.question=611;t.at=975;t.A=722;t.B=722;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=556;t.K=722;t.L=611;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=584;t.underscore=556;t.quoteleft=278;t.a=556;t.b=611;t.c=556;t.d=611;t.e=556;t.f=333;t.g=611;t.h=611;t.i=278;t.j=278;t.k=556;t.l=278;t.m=889;t.n=611;t.o=611;t.p=611;t.q=611;t.r=389;t.s=556;t.t=333;t.u=611;t.v=556;t.w=778;t.x=556;t.y=556;t.z=500;t.braceleft=389;t.bar=280;t.braceright=389;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=238;t.quotedblleft=500;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=611;t.fl=611;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=556;t.bullet=350;t.quotesinglbase=278;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=611;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=278;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=611;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=722;t.aacute=556;t.Ucircumflex=722;t.yacute=556;t.scommaaccent=556;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=611;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=556;t.aring=556;t.Ncommaaccent=722;t.lacute=278;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=556;t.scedilla=556;t.iacute=278;t.lozenge=494;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=611;t.acircumflex=556;t.Amacron=722;t.rcaron=389;t.ccedilla=556;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=743;t.Umacron=722;t.uring=611;t.threesuperior=333;t.Ograve=778;t.Agrave=722;t.Abreve=722;t.multiply=584;t.uacute=611;t.Tcaron=611;t.partialdiff=494;t.ydieresis=556;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=556;t.nacute=611;t.umacron=611;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=280;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=389;t.omacron=611;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=278;t.tcaron=389;t.eogonek=556;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=556;t.zacute=500;t.iogonek=278;t.Oacute=778;t.oacute=611;t.amacron=556;t.sacute=556;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=611;t.twosuperior=333;t.Odieresis=778;t.mu=611;t.igrave=278;t.ohungarumlaut=611;t.Eogonek=667;t.dcroat=611;t.threequarters=834;t.Scedilla=667;t.lcaron=400;t.Kcommaaccent=722;t.Lacute=611;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=611;t.onehalf=834;t.lessequal=549;t.ocircumflex=611;t.ntilde=611;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=611;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=611;t.Ccaron=722;t.ugrave=611;t.radical=549;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=722;t.otilde=611;t.Rcommaaccent=722;t.Lcommaaccent=611;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=556;t.minus=584;t.Icircumflex=278;t.ncaron=611;t.tcommaaccent=333;t.logicalnot=584;t.odieresis=611;t.udieresis=611;t.notequal=549;t.gcommaaccent=611;t.eth=611;t.zcaron=500;t.ncommaaccent=611;t.onesuperior=333;t.imacron=278;t.Euro=556}));t["Helvetica-BoldOblique"]=(0,n.getLookupTableFactory)((function(t){t.space=278;t.exclam=333;t.quotedbl=474;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=722;t.quoteright=278;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=333;t.semicolon=333;t.less=584;t.equal=584;t.greater=584;t.question=611;t.at=975;t.A=722;t.B=722;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=556;t.K=722;t.L=611;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=584;t.underscore=556;t.quoteleft=278;t.a=556;t.b=611;t.c=556;t.d=611;t.e=556;t.f=333;t.g=611;t.h=611;t.i=278;t.j=278;t.k=556;t.l=278;t.m=889;t.n=611;t.o=611;t.p=611;t.q=611;t.r=389;t.s=556;t.t=333;t.u=611;t.v=556;t.w=778;t.x=556;t.y=556;t.z=500;t.braceleft=389;t.bar=280;t.braceright=389;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=238;t.quotedblleft=500;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=611;t.fl=611;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=556;t.bullet=350;t.quotesinglbase=278;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=611;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=278;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=611;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=722;t.aacute=556;t.Ucircumflex=722;t.yacute=556;t.scommaaccent=556;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=611;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=556;t.aring=556;t.Ncommaaccent=722;t.lacute=278;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=556;t.scedilla=556;t.iacute=278;t.lozenge=494;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=611;t.acircumflex=556;t.Amacron=722;t.rcaron=389;t.ccedilla=556;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=743;t.Umacron=722;t.uring=611;t.threesuperior=333;t.Ograve=778;t.Agrave=722;t.Abreve=722;t.multiply=584;t.uacute=611;t.Tcaron=611;t.partialdiff=494;t.ydieresis=556;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=556;t.nacute=611;t.umacron=611;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=280;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=389;t.omacron=611;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=278;t.tcaron=389;t.eogonek=556;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=556;t.zacute=500;t.iogonek=278;t.Oacute=778;t.oacute=611;t.amacron=556;t.sacute=556;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=611;t.twosuperior=333;t.Odieresis=778;t.mu=611;t.igrave=278;t.ohungarumlaut=611;t.Eogonek=667;t.dcroat=611;t.threequarters=834;t.Scedilla=667;t.lcaron=400;t.Kcommaaccent=722;t.Lacute=611;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=611;t.onehalf=834;t.lessequal=549;t.ocircumflex=611;t.ntilde=611;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=611;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=611;t.Ccaron=722;t.ugrave=611;t.radical=549;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=722;t.otilde=611;t.Rcommaaccent=722;t.Lcommaaccent=611;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=556;t.minus=584;t.Icircumflex=278;t.ncaron=611;t.tcommaaccent=333;t.logicalnot=584;t.odieresis=611;t.udieresis=611;t.notequal=549;t.gcommaaccent=611;t.eth=611;t.zcaron=500;t.ncommaaccent=611;t.onesuperior=333;t.imacron=278;t.Euro=556}));t["Helvetica-Oblique"]=(0,n.getLookupTableFactory)((function(t){t.space=278;t.exclam=278;t.quotedbl=355;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=667;t.quoteright=222;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=278;t.semicolon=278;t.less=584;t.equal=584;t.greater=584;t.question=556;t.at=1015;t.A=667;t.B=667;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=500;t.K=667;t.L=556;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=278;t.backslash=278;t.bracketright=278;t.asciicircum=469;t.underscore=556;t.quoteleft=222;t.a=556;t.b=556;t.c=500;t.d=556;t.e=556;t.f=278;t.g=556;t.h=556;t.i=222;t.j=222;t.k=500;t.l=222;t.m=833;t.n=556;t.o=556;t.p=556;t.q=556;t.r=333;t.s=500;t.t=278;t.u=556;t.v=500;t.w=722;t.x=500;t.y=500;t.z=500;t.braceleft=334;t.bar=260;t.braceright=334;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=191;t.quotedblleft=333;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=500;t.fl=500;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=537;t.bullet=350;t.quotesinglbase=222;t.quotedblbase=333;t.quotedblright=333;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=556;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=222;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=556;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=667;t.aacute=556;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=500;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=500;t.aring=556;t.Ncommaaccent=722;t.lacute=222;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=500;t.scedilla=500;t.iacute=278;t.lozenge=471;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=556;t.acircumflex=556;t.Amacron=667;t.rcaron=333;t.ccedilla=500;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=643;t.Umacron=722;t.uring=556;t.threesuperior=333;t.Ograve=778;t.Agrave=667;t.Abreve=667;t.multiply=584;t.uacute=556;t.Tcaron=611;t.partialdiff=476;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=500;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=260;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=333;t.omacron=556;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=222;t.tcaron=317;t.eogonek=556;t.Uogonek=722;t.Aacute=667;t.Adieresis=667;t.egrave=556;t.zacute=500;t.iogonek=222;t.Oacute=778;t.oacute=556;t.amacron=556;t.sacute=500;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=556;t.twosuperior=333;t.Odieresis=778;t.mu=556;t.igrave=278;t.ohungarumlaut=556;t.Eogonek=667;t.dcroat=556;t.threequarters=834;t.Scedilla=667;t.lcaron=299;t.Kcommaaccent=667;t.Lacute=556;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=556;t.onehalf=834;t.lessequal=549;t.ocircumflex=556;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=556;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=556;t.Ccaron=722;t.ugrave=556;t.radical=453;t.Dcaron=722;t.rcommaaccent=333;t.Ntilde=722;t.otilde=556;t.Rcommaaccent=722;t.Lcommaaccent=556;t.Atilde=667;t.Aogonek=667;t.Aring=667;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=500;t.minus=584;t.Icircumflex=278;t.ncaron=556;t.tcommaaccent=278;t.logicalnot=584;t.odieresis=556;t.udieresis=556;t.notequal=549;t.gcommaaccent=556;t.eth=556;t.zcaron=500;t.ncommaaccent=556;t.onesuperior=333;t.imacron=278;t.Euro=556}));t.Symbol=(0,n.getLookupTableFactory)((function(t){t.space=250;t.exclam=333;t.universal=713;t.numbersign=500;t.existential=549;t.percent=833;t.ampersand=778;t.suchthat=439;t.parenleft=333;t.parenright=333;t.asteriskmath=500;t.plus=549;t.comma=250;t.minus=549;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=278;t.semicolon=278;t.less=549;t.equal=549;t.greater=549;t.question=444;t.congruent=549;t.Alpha=722;t.Beta=667;t.Chi=722;t.Delta=612;t.Epsilon=611;t.Phi=763;t.Gamma=603;t.Eta=722;t.Iota=333;t.theta1=631;t.Kappa=722;t.Lambda=686;t.Mu=889;t.Nu=722;t.Omicron=722;t.Pi=768;t.Theta=741;t.Rho=556;t.Sigma=592;t.Tau=611;t.Upsilon=690;t.sigma1=439;t.Omega=768;t.Xi=645;t.Psi=795;t.Zeta=611;t.bracketleft=333;t.therefore=863;t.bracketright=333;t.perpendicular=658;t.underscore=500;t.radicalex=500;t.alpha=631;t.beta=549;t.chi=549;t.delta=494;t.epsilon=439;t.phi=521;t.gamma=411;t.eta=603;t.iota=329;t.phi1=603;t.kappa=549;t.lambda=549;t.mu=576;t.nu=521;t.omicron=549;t.pi=549;t.theta=521;t.rho=549;t.sigma=603;t.tau=439;t.upsilon=576;t.omega1=713;t.omega=686;t.xi=493;t.psi=686;t.zeta=494;t.braceleft=480;t.bar=200;t.braceright=480;t.similar=549;t.Euro=750;t.Upsilon1=620;t.minute=247;t.lessequal=549;t.fraction=167;t.infinity=713;t.florin=500;t.club=753;t.diamond=753;t.heart=753;t.spade=753;t.arrowboth=1042;t.arrowleft=987;t.arrowup=603;t.arrowright=987;t.arrowdown=603;t.degree=400;t.plusminus=549;t.second=411;t.greaterequal=549;t.multiply=549;t.proportional=713;t.partialdiff=494;t.bullet=460;t.divide=549;t.notequal=549;t.equivalence=549;t.approxequal=549;t.ellipsis=1e3;t.arrowvertex=603;t.arrowhorizex=1e3;t.carriagereturn=658;t.aleph=823;t.Ifraktur=686;t.Rfraktur=795;t.weierstrass=987;t.circlemultiply=768;t.circleplus=768;t.emptyset=823;t.intersection=768;t.union=768;t.propersuperset=713;t.reflexsuperset=713;t.notsubset=713;t.propersubset=713;t.reflexsubset=713;t.element=713;t.notelement=713;t.angle=768;t.gradient=713;t.registerserif=790;t.copyrightserif=790;t.trademarkserif=890;t.product=823;t.radical=549;t.dotmath=250;t.logicalnot=713;t.logicaland=603;t.logicalor=603;t.arrowdblboth=1042;t.arrowdblleft=987;t.arrowdblup=603;t.arrowdblright=987;t.arrowdbldown=603;t.lozenge=494;t.angleleft=329;t.registersans=790;t.copyrightsans=790;t.trademarksans=786;t.summation=713;t.parenlefttp=384;t.parenleftex=384;t.parenleftbt=384;t.bracketlefttp=384;t.bracketleftex=384;t.bracketleftbt=384;t.bracelefttp=494;t.braceleftmid=494;t.braceleftbt=494;t.braceex=494;t.angleright=329;t.integral=274;t.integraltp=686;t.integralex=686;t.integralbt=686;t.parenrighttp=384;t.parenrightex=384;t.parenrightbt=384;t.bracketrighttp=384;t.bracketrightex=384;t.bracketrightbt=384;t.bracerighttp=494;t.bracerightmid=494;t.bracerightbt=494;t.apple=790}));t["Times-Roman"]=(0,n.getLookupTableFactory)((function(t){t.space=250;t.exclam=333;t.quotedbl=408;t.numbersign=500;t.dollar=500;t.percent=833;t.ampersand=778;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=564;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=278;t.semicolon=278;t.less=564;t.equal=564;t.greater=564;t.question=444;t.at=921;t.A=722;t.B=667;t.C=667;t.D=722;t.E=611;t.F=556;t.G=722;t.H=722;t.I=333;t.J=389;t.K=722;t.L=611;t.M=889;t.N=722;t.O=722;t.P=556;t.Q=722;t.R=667;t.S=556;t.T=611;t.U=722;t.V=722;t.W=944;t.X=722;t.Y=722;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=469;t.underscore=500;t.quoteleft=333;t.a=444;t.b=500;t.c=444;t.d=500;t.e=444;t.f=333;t.g=500;t.h=500;t.i=278;t.j=278;t.k=500;t.l=278;t.m=778;t.n=500;t.o=500;t.p=500;t.q=500;t.r=333;t.s=389;t.t=278;t.u=500;t.v=500;t.w=722;t.x=500;t.y=500;t.z=444;t.braceleft=480;t.bar=200;t.braceright=480;t.asciitilde=541;t.exclamdown=333;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=180;t.quotedblleft=444;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=556;t.fl=556;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=453;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=444;t.quotedblright=444;t.guillemotright=500;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=444;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=889;t.ordfeminine=276;t.Lslash=611;t.Oslash=722;t.OE=889;t.ordmasculine=310;t.ae=667;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=722;t.germandbls=500;t.Idieresis=333;t.eacute=444;t.abreve=444;t.uhungarumlaut=500;t.ecaron=444;t.Ydieresis=722;t.divide=564;t.Yacute=722;t.Acircumflex=722;t.aacute=444;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=444;t.Uacute=722;t.uogonek=500;t.Edieresis=611;t.Dcroat=722;t.commaaccent=250;t.copyright=760;t.Emacron=611;t.ccaron=444;t.aring=444;t.Ncommaaccent=722;t.lacute=278;t.agrave=444;t.Tcommaaccent=611;t.Cacute=667;t.atilde=444;t.Edotaccent=611;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=471;t.Rcaron=667;t.Gcommaaccent=722;t.ucircumflex=500;t.acircumflex=444;t.Amacron=722;t.rcaron=333;t.ccedilla=444;t.Zdotaccent=611;t.Thorn=556;t.Omacron=722;t.Racute=667;t.Sacute=556;t.dcaron=588;t.Umacron=722;t.uring=500;t.threesuperior=300;t.Ograve=722;t.Agrave=722;t.Abreve=722;t.multiply=564;t.uacute=500;t.Tcaron=611;t.partialdiff=476;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=611;t.adieresis=444;t.edieresis=444;t.cacute=444;t.nacute=500;t.umacron=500;t.Ncaron=722;t.Iacute=333;t.plusminus=564;t.brokenbar=200;t.registered=760;t.Gbreve=722;t.Idotaccent=333;t.summation=600;t.Egrave=611;t.racute=333;t.omacron=500;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=667;t.lcommaaccent=278;t.tcaron=326;t.eogonek=444;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=444;t.zacute=444;t.iogonek=278;t.Oacute=722;t.oacute=500;t.amacron=444;t.sacute=389;t.idieresis=278;t.Ocircumflex=722;t.Ugrave=722;t.Delta=612;t.thorn=500;t.twosuperior=300;t.Odieresis=722;t.mu=500;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=611;t.dcroat=500;t.threequarters=750;t.Scedilla=556;t.lcaron=344;t.Kcommaaccent=722;t.Lacute=611;t.trademark=980;t.edotaccent=444;t.Igrave=333;t.Imacron=333;t.Lcaron=611;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=500;t.Uhungarumlaut=722;t.Eacute=611;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=556;t.Scommaaccent=556;t.Ohungarumlaut=722;t.degree=400;t.ograve=500;t.Ccaron=667;t.ugrave=500;t.radical=453;t.Dcaron=722;t.rcommaaccent=333;t.Ntilde=722;t.otilde=500;t.Rcommaaccent=667;t.Lcommaaccent=611;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=722;t.zdotaccent=444;t.Ecaron=611;t.Iogonek=333;t.kcommaaccent=500;t.minus=564;t.Icircumflex=333;t.ncaron=500;t.tcommaaccent=278;t.logicalnot=564;t.odieresis=500;t.udieresis=500;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=444;t.ncommaaccent=500;t.onesuperior=300;t.imacron=278;t.Euro=500}));t["Times-Bold"]=(0,n.getLookupTableFactory)((function(t){t.space=250;t.exclam=333;t.quotedbl=555;t.numbersign=500;t.dollar=500;t.percent=1e3;t.ampersand=833;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=570;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=333;t.semicolon=333;t.less=570;t.equal=570;t.greater=570;t.question=500;t.at=930;t.A=722;t.B=667;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=778;t.I=389;t.J=500;t.K=778;t.L=667;t.M=944;t.N=722;t.O=778;t.P=611;t.Q=778;t.R=722;t.S=556;t.T=667;t.U=722;t.V=722;t.W=1e3;t.X=722;t.Y=722;t.Z=667;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=581;t.underscore=500;t.quoteleft=333;t.a=500;t.b=556;t.c=444;t.d=556;t.e=444;t.f=333;t.g=500;t.h=556;t.i=278;t.j=333;t.k=556;t.l=278;t.m=833;t.n=556;t.o=500;t.p=556;t.q=556;t.r=444;t.s=389;t.t=333;t.u=556;t.v=500;t.w=722;t.x=500;t.y=500;t.z=444;t.braceleft=394;t.bar=220;t.braceright=394;t.asciitilde=520;t.exclamdown=333;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=278;t.quotedblleft=500;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=556;t.fl=556;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=540;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=500;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=500;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=300;t.Lslash=667;t.Oslash=778;t.OE=1e3;t.ordmasculine=330;t.ae=722;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=722;t.germandbls=556;t.Idieresis=389;t.eacute=444;t.abreve=500;t.uhungarumlaut=556;t.ecaron=444;t.Ydieresis=722;t.divide=570;t.Yacute=722;t.Acircumflex=722;t.aacute=500;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=500;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=747;t.Emacron=667;t.ccaron=444;t.aring=500;t.Ncommaaccent=722;t.lacute=278;t.agrave=500;t.Tcommaaccent=667;t.Cacute=722;t.atilde=500;t.Edotaccent=667;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=494;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=556;t.acircumflex=500;t.Amacron=722;t.rcaron=444;t.ccedilla=444;t.Zdotaccent=667;t.Thorn=611;t.Omacron=778;t.Racute=722;t.Sacute=556;t.dcaron=672;t.Umacron=722;t.uring=556;t.threesuperior=300;t.Ograve=778;t.Agrave=722;t.Abreve=722;t.multiply=570;t.uacute=556;t.Tcaron=667;t.partialdiff=494;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=500;t.edieresis=444;t.cacute=444;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=389;t.plusminus=570;t.brokenbar=220;t.registered=747;t.Gbreve=778;t.Idotaccent=389;t.summation=600;t.Egrave=667;t.racute=444;t.omacron=500;t.Zacute=667;t.Zcaron=667;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=278;t.tcaron=416;t.eogonek=444;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=444;t.zacute=444;t.iogonek=278;t.Oacute=778;t.oacute=500;t.amacron=500;t.sacute=389;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=556;t.twosuperior=300;t.Odieresis=778;t.mu=556;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=667;t.dcroat=556;t.threequarters=750;t.Scedilla=556;t.lcaron=394;t.Kcommaaccent=778;t.Lacute=667;t.trademark=1e3;t.edotaccent=444;t.Igrave=389;t.Imacron=389;t.Lcaron=667;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=556;t.Scommaaccent=556;t.Ohungarumlaut=778;t.degree=400;t.ograve=500;t.Ccaron=722;t.ugrave=556;t.radical=549;t.Dcaron=722;t.rcommaaccent=444;t.Ntilde=722;t.otilde=500;t.Rcommaaccent=722;t.Lcommaaccent=667;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=778;t.zdotaccent=444;t.Ecaron=667;t.Iogonek=389;t.kcommaaccent=556;t.minus=570;t.Icircumflex=389;t.ncaron=556;t.tcommaaccent=333;t.logicalnot=570;t.odieresis=500;t.udieresis=556;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=444;t.ncommaaccent=556;t.onesuperior=300;t.imacron=278;t.Euro=500}));t["Times-BoldItalic"]=(0,n.getLookupTableFactory)((function(t){t.space=250;t.exclam=389;t.quotedbl=555;t.numbersign=500;t.dollar=500;t.percent=833;t.ampersand=778;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=570;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=333;t.semicolon=333;t.less=570;t.equal=570;t.greater=570;t.question=500;t.at=832;t.A=667;t.B=667;t.C=667;t.D=722;t.E=667;t.F=667;t.G=722;t.H=778;t.I=389;t.J=500;t.K=667;t.L=611;t.M=889;t.N=722;t.O=722;t.P=611;t.Q=722;t.R=667;t.S=556;t.T=611;t.U=722;t.V=667;t.W=889;t.X=667;t.Y=611;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=570;t.underscore=500;t.quoteleft=333;t.a=500;t.b=500;t.c=444;t.d=500;t.e=444;t.f=333;t.g=500;t.h=556;t.i=278;t.j=278;t.k=500;t.l=278;t.m=778;t.n=556;t.o=500;t.p=500;t.q=500;t.r=389;t.s=389;t.t=278;t.u=556;t.v=444;t.w=667;t.x=500;t.y=444;t.z=389;t.braceleft=348;t.bar=220;t.braceright=348;t.asciitilde=570;t.exclamdown=389;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=278;t.quotedblleft=500;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=556;t.fl=556;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=500;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=500;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=500;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=944;t.ordfeminine=266;t.Lslash=611;t.Oslash=722;t.OE=944;t.ordmasculine=300;t.ae=722;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=722;t.germandbls=500;t.Idieresis=389;t.eacute=444;t.abreve=500;t.uhungarumlaut=556;t.ecaron=444;t.Ydieresis=611;t.divide=570;t.Yacute=611;t.Acircumflex=667;t.aacute=500;t.Ucircumflex=722;t.yacute=444;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=500;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=747;t.Emacron=667;t.ccaron=444;t.aring=500;t.Ncommaaccent=722;t.lacute=278;t.agrave=500;t.Tcommaaccent=611;t.Cacute=667;t.atilde=500;t.Edotaccent=667;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=494;t.Rcaron=667;t.Gcommaaccent=722;t.ucircumflex=556;t.acircumflex=500;t.Amacron=667;t.rcaron=389;t.ccedilla=444;t.Zdotaccent=611;t.Thorn=611;t.Omacron=722;t.Racute=667;t.Sacute=556;t.dcaron=608;t.Umacron=722;t.uring=556;t.threesuperior=300;t.Ograve=722;t.Agrave=667;t.Abreve=667;t.multiply=570;t.uacute=556;t.Tcaron=611;t.partialdiff=494;t.ydieresis=444;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=500;t.edieresis=444;t.cacute=444;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=389;t.plusminus=570;t.brokenbar=220;t.registered=747;t.Gbreve=722;t.Idotaccent=389;t.summation=600;t.Egrave=667;t.racute=389;t.omacron=500;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=667;t.lcommaaccent=278;t.tcaron=366;t.eogonek=444;t.Uogonek=722;t.Aacute=667;t.Adieresis=667;t.egrave=444;t.zacute=389;t.iogonek=278;t.Oacute=722;t.oacute=500;t.amacron=500;t.sacute=389;t.idieresis=278;t.Ocircumflex=722;t.Ugrave=722;t.Delta=612;t.thorn=500;t.twosuperior=300;t.Odieresis=722;t.mu=576;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=667;t.dcroat=500;t.threequarters=750;t.Scedilla=556;t.lcaron=382;t.Kcommaaccent=667;t.Lacute=611;t.trademark=1e3;t.edotaccent=444;t.Igrave=389;t.Imacron=389;t.Lcaron=611;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=556;t.Scommaaccent=556;t.Ohungarumlaut=722;t.degree=400;t.ograve=500;t.Ccaron=667;t.ugrave=556;t.radical=549;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=722;t.otilde=500;t.Rcommaaccent=667;t.Lcommaaccent=611;t.Atilde=667;t.Aogonek=667;t.Aring=667;t.Otilde=722;t.zdotaccent=389;t.Ecaron=667;t.Iogonek=389;t.kcommaaccent=500;t.minus=606;t.Icircumflex=389;t.ncaron=556;t.tcommaaccent=278;t.logicalnot=606;t.odieresis=500;t.udieresis=556;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=389;t.ncommaaccent=556;t.onesuperior=300;t.imacron=278;t.Euro=500}));t["Times-Italic"]=(0,n.getLookupTableFactory)((function(t){t.space=250;t.exclam=333;t.quotedbl=420;t.numbersign=500;t.dollar=500;t.percent=833;t.ampersand=778;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=675;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=333;t.semicolon=333;t.less=675;t.equal=675;t.greater=675;t.question=500;t.at=920;t.A=611;t.B=611;t.C=667;t.D=722;t.E=611;t.F=611;t.G=722;t.H=722;t.I=333;t.J=444;t.K=667;t.L=556;t.M=833;t.N=667;t.O=722;t.P=611;t.Q=722;t.R=611;t.S=500;t.T=556;t.U=722;t.V=611;t.W=833;t.X=611;t.Y=556;t.Z=556;t.bracketleft=389;t.backslash=278;t.bracketright=389;t.asciicircum=422;t.underscore=500;t.quoteleft=333;t.a=500;t.b=500;t.c=444;t.d=500;t.e=444;t.f=278;t.g=500;t.h=500;t.i=278;t.j=278;t.k=444;t.l=278;t.m=722;t.n=500;t.o=500;t.p=500;t.q=500;t.r=389;t.s=389;t.t=278;t.u=500;t.v=444;t.w=667;t.x=444;t.y=444;t.z=389;t.braceleft=400;t.bar=275;t.braceright=400;t.asciitilde=541;t.exclamdown=389;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=214;t.quotedblleft=556;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=500;t.fl=500;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=523;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=556;t.quotedblright=556;t.guillemotright=500;t.ellipsis=889;t.perthousand=1e3;t.questiondown=500;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=889;t.AE=889;t.ordfeminine=276;t.Lslash=556;t.Oslash=722;t.OE=944;t.ordmasculine=310;t.ae=667;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=667;t.germandbls=500;t.Idieresis=333;t.eacute=444;t.abreve=500;t.uhungarumlaut=500;t.ecaron=444;t.Ydieresis=556;t.divide=675;t.Yacute=556;t.Acircumflex=611;t.aacute=500;t.Ucircumflex=722;t.yacute=444;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=500;t.Uacute=722;t.uogonek=500;t.Edieresis=611;t.Dcroat=722;t.commaaccent=250;t.copyright=760;t.Emacron=611;t.ccaron=444;t.aring=500;t.Ncommaaccent=667;t.lacute=278;t.agrave=500;t.Tcommaaccent=556;t.Cacute=667;t.atilde=500;t.Edotaccent=611;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=471;t.Rcaron=611;t.Gcommaaccent=722;t.ucircumflex=500;t.acircumflex=500;t.Amacron=611;t.rcaron=389;t.ccedilla=444;t.Zdotaccent=556;t.Thorn=611;t.Omacron=722;t.Racute=611;t.Sacute=500;t.dcaron=544;t.Umacron=722;t.uring=500;t.threesuperior=300;t.Ograve=722;t.Agrave=611;t.Abreve=611;t.multiply=675;t.uacute=500;t.Tcaron=556;t.partialdiff=476;t.ydieresis=444;t.Nacute=667;t.icircumflex=278;t.Ecircumflex=611;t.adieresis=500;t.edieresis=444;t.cacute=444;t.nacute=500;t.umacron=500;t.Ncaron=667;t.Iacute=333;t.plusminus=675;t.brokenbar=275;t.registered=760;t.Gbreve=722;t.Idotaccent=333;t.summation=600;t.Egrave=611;t.racute=389;t.omacron=500;t.Zacute=556;t.Zcaron=556;t.greaterequal=549;t.Eth=722;t.Ccedilla=667;t.lcommaaccent=278;t.tcaron=300;t.eogonek=444;t.Uogonek=722;t.Aacute=611;t.Adieresis=611;t.egrave=444;t.zacute=389;t.iogonek=278;t.Oacute=722;t.oacute=500;t.amacron=500;t.sacute=389;t.idieresis=278;t.Ocircumflex=722;t.Ugrave=722;t.Delta=612;t.thorn=500;t.twosuperior=300;t.Odieresis=722;t.mu=500;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=611;t.dcroat=500;t.threequarters=750;t.Scedilla=500;t.lcaron=300;t.Kcommaaccent=667;t.Lacute=556;t.trademark=980;t.edotaccent=444;t.Igrave=333;t.Imacron=333;t.Lcaron=611;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=500;t.Uhungarumlaut=722;t.Eacute=611;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=500;t.Scommaaccent=500;t.Ohungarumlaut=722;t.degree=400;t.ograve=500;t.Ccaron=667;t.ugrave=500;t.radical=453;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=667;t.otilde=500;t.Rcommaaccent=611;t.Lcommaaccent=556;t.Atilde=611;t.Aogonek=611;t.Aring=611;t.Otilde=722;t.zdotaccent=389;t.Ecaron=611;t.Iogonek=333;t.kcommaaccent=444;t.minus=675;t.Icircumflex=333;t.ncaron=500;t.tcommaaccent=278;t.logicalnot=675;t.odieresis=500;t.udieresis=500;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=389;t.ncommaaccent=500;t.onesuperior=300;t.imacron=278;t.Euro=500}));t.ZapfDingbats=(0,n.getLookupTableFactory)((function(t){t.space=278;t.a1=974;t.a2=961;t.a202=974;t.a3=980;t.a4=719;t.a5=789;t.a119=790;t.a118=791;t.a117=690;t.a11=960;t.a12=939;t.a13=549;t.a14=855;t.a15=911;t.a16=933;t.a105=911;t.a17=945;t.a18=974;t.a19=755;t.a20=846;t.a21=762;t.a22=761;t.a23=571;t.a24=677;t.a25=763;t.a26=760;t.a27=759;t.a28=754;t.a6=494;t.a7=552;t.a8=537;t.a9=577;t.a10=692;t.a29=786;t.a30=788;t.a31=788;t.a32=790;t.a33=793;t.a34=794;t.a35=816;t.a36=823;t.a37=789;t.a38=841;t.a39=823;t.a40=833;t.a41=816;t.a42=831;t.a43=923;t.a44=744;t.a45=723;t.a46=749;t.a47=790;t.a48=792;t.a49=695;t.a50=776;t.a51=768;t.a52=792;t.a53=759;t.a54=707;t.a55=708;t.a56=682;t.a57=701;t.a58=826;t.a59=815;t.a60=789;t.a61=789;t.a62=707;t.a63=687;t.a64=696;t.a65=689;t.a66=786;t.a67=787;t.a68=713;t.a69=791;t.a70=785;t.a71=791;t.a72=873;t.a73=761;t.a74=762;t.a203=762;t.a75=759;t.a204=759;t.a76=892;t.a77=892;t.a78=788;t.a79=784;t.a81=438;t.a82=138;t.a83=277;t.a84=415;t.a97=392;t.a98=392;t.a99=668;t.a100=668;t.a89=390;t.a90=390;t.a93=317;t.a94=317;t.a91=276;t.a92=276;t.a205=509;t.a85=509;t.a206=410;t.a86=410;t.a87=234;t.a88=234;t.a95=334;t.a96=334;t.a101=732;t.a102=544;t.a103=544;t.a104=910;t.a106=667;t.a107=760;t.a108=760;t.a112=776;t.a111=595;t.a110=694;t.a109=626;t.a120=788;t.a121=788;t.a122=788;t.a123=788;t.a124=788;t.a125=788;t.a126=788;t.a127=788;t.a128=788;t.a129=788;t.a130=788;t.a131=788;t.a132=788;t.a133=788;t.a134=788;t.a135=788;t.a136=788;t.a137=788;t.a138=788;t.a139=788;t.a140=788;t.a141=788;t.a142=788;t.a143=788;t.a144=788;t.a145=788;t.a146=788;t.a147=788;t.a148=788;t.a149=788;t.a150=788;t.a151=788;t.a152=788;t.a153=788;t.a154=788;t.a155=788;t.a156=788;t.a157=788;t.a158=788;t.a159=788;t.a160=894;t.a161=838;t.a163=1016;t.a164=458;t.a196=748;t.a165=924;t.a192=748;t.a166=918;t.a167=927;t.a168=928;t.a169=928;t.a170=834;t.a171=873;t.a172=828;t.a173=924;t.a162=924;t.a174=917;t.a175=930;t.a176=931;t.a177=463;t.a178=883;t.a179=836;t.a193=836;t.a180=867;t.a199=867;t.a181=696;t.a200=696;t.a182=874;t.a201=874;t.a183=760;t.a184=946;t.a197=771;t.a185=865;t.a194=771;t.a198=888;t.a186=967;t.a195=888;t.a187=831;t.a188=873;t.a189=927;t.a190=970;t.a191=918}))}));e.getMetrics=s;const r=(0,n.getLookupTableFactory)((function(t){t.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426};t["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439};t["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426};t["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426};t.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523};t["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532};t["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523};t["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532};t["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450};t["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461};t["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441};t["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462};t.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN};t.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}}));e.getFontBasicMetrics=r},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.GlyfTable=void 0;const i=1<<0;const n=1<<1;const s=1<<2;const r=1<<3;const a=1<<4;const o=1<<5;const c=1<<6;const l=1<<0;const h=1<<1;const u=1<<3;const f=1<<5;const d=1<<6;const p=1<<7;const m=1<<8;class g{constructor(t){let{glyfTable:e,isGlyphLocationsLong:i,locaTable:n,numGlyphs:s}=t;this.glyphs=[];const r=new DataView(n.buffer,n.byteOffset,n.byteLength);const a=new DataView(e.buffer,e.byteOffset,e.byteLength);const o=i?4:2;let c=i?r.getUint32(0):2*r.getUint16(0);let l=0;for(let t=0;t<s;t++){l+=o;const t=i?r.getUint32(l):2*r.getUint16(l);if(t===c){this.glyphs.push(new b({}));continue}const e=b.parse(c,a);this.glyphs.push(e);c=t}}getSize(){return this.glyphs.reduce(((t,e)=>{const i=e.getSize();return t+(i+3&~3)}),0)}write(){const t=this.getSize();const e=new DataView(new ArrayBuffer(t));const i=t>131070;const n=i?4:2;const s=new DataView(new ArrayBuffer((this.glyphs.length+1)*n));if(i){s.setUint32(0,0)}else{s.setUint16(0,0)}let r=0;let a=0;for(const t of this.glyphs){r+=t.write(r,e);r=r+3&~3;a+=n;if(i){s.setUint32(a,r)}else{s.setUint16(a,r>>1)}}return{isLocationLong:i,loca:new Uint8Array(s.buffer),glyf:new Uint8Array(e.buffer)}}scale(t){for(let e=0,i=this.glyphs.length;e<i;e++){this.glyphs[e].scale(t[e])}}}e.GlyfTable=g;class b{constructor(t){let{header:e=null,simple:i=null,composites:n=null}=t;this.header=e;this.simple=i;this.composites=n}static parse(t,e){const[i,n]=v.parse(t,e);t+=i;if(n.numberOfContours<0){const i=[];while(true){const[n,s]=A.parse(t,e);t+=n;i.push(s);if(!(s.flags&f)){break}}return new b({header:n,composites:i})}const s=y.parse(t,e,n.numberOfContours);return new b({header:n,simple:s})}getSize(){if(!this.header){return 0}const t=this.simple?this.simple.getSize():this.composites.reduce(((t,e)=>t+e.getSize()),0);return this.header.getSize()+t}write(t,e){if(!this.header){return 0}const i=t;t+=this.header.write(t,e);if(this.simple){t+=this.simple.write(t,e)}else{for(const i of this.composites){t+=i.write(t,e)}}return t-i}scale(t){if(!this.header){return}const e=(this.header.xMin+this.header.xMax)/2;this.header.scale(e,t);if(this.simple){this.simple.scale(e,t)}else{for(const i of this.composites){i.scale(e,t)}}}}class v{constructor(t){let{numberOfContours:e,xMin:i,yMin:n,xMax:s,yMax:r}=t;this.numberOfContours=e;this.xMin=i;this.yMin=n;this.xMax=s;this.yMax=r}static parse(t,e){return[10,new v({numberOfContours:e.getInt16(t),xMin:e.getInt16(t+2),yMin:e.getInt16(t+4),xMax:e.getInt16(t+6),yMax:e.getInt16(t+8)})]}getSize(){return 10}write(t,e){e.setInt16(t,this.numberOfContours);e.setInt16(t+2,this.xMin);e.setInt16(t+4,this.yMin);e.setInt16(t+6,this.xMax);e.setInt16(t+8,this.yMax);return 10}scale(t,e){this.xMin=Math.round(t+(this.xMin-t)*e);this.xMax=Math.round(t+(this.xMax-t)*e)}}class w{constructor(t){let{flags:e,xCoordinates:i,yCoordinates:n}=t;this.xCoordinates=i;this.yCoordinates=n;this.flags=e}}class y{constructor(t){let{contours:e,instructions:i}=t;this.contours=e;this.instructions=i}static parse(t,e,l){const h=[];for(let i=0;i<l;i++){const i=e.getUint16(t);t+=2;h.push(i)}const u=h[l-1]+1;const f=e.getUint16(t);t+=2;const d=new Uint8Array(e).slice(t,t+f);t+=f;const p=[];for(let i=0;i<u;t++,i++){let n=e.getUint8(t);p.push(n);if(n&r){const s=e.getUint8(++t);n^=r;for(let t=0;t<s;t++){p.push(n)}i+=s}}const m=[];let g=[];let b=[];let v=[];const A=[];let k=0;let x=0;for(let i=0;i<u;i++){const s=p[i];if(s&n){const i=e.getUint8(t++);x+=s&a?i:-i;g.push(x)}else if(s&a){g.push(x)}else{x+=e.getInt16(t);t+=2;g.push(x)}if(h[k]===i){k++;m.push(g);g=[]}}x=0;k=0;for(let n=0;n<u;n++){const r=p[n];if(r&s){const i=e.getUint8(t++);x+=r&o?i:-i;b.push(x)}else if(r&o){b.push(x)}else{x+=e.getInt16(t);t+=2;b.push(x)}v.push(r&i|r&c);if(h[k]===n){g=m[k];k++;A.push(new w({flags:v,xCoordinates:g,yCoordinates:b}));b=[];v=[]}}return new y({contours:A,instructions:d})}getSize(){let t=this.contours.length*2+2+this.instructions.length;let e=0;let i=0;for(const n of this.contours){t+=n.flags.length;for(let s=0,r=n.xCoordinates.length;s<r;s++){const r=n.xCoordinates[s];const a=n.yCoordinates[s];let o=Math.abs(r-e);if(o>255){t+=2}else if(o>0){t+=1}e=r;o=Math.abs(a-i);if(o>255){t+=2}else if(o>0){t+=1}i=a}}return t}write(t,e){const i=t;const r=[];const c=[];const l=[];let h=0;let u=0;for(const i of this.contours){for(let t=0,e=i.xCoordinates.length;t<e;t++){let e=i.flags[t];const f=i.xCoordinates[t];let d=f-h;if(d===0){e|=a;r.push(0)}else{const t=Math.abs(d);if(t<=255){e|=d>=0?n|a:n;r.push(t)}else{r.push(d)}}h=f;const p=i.yCoordinates[t];d=p-u;if(d===0){e|=o;c.push(0)}else{const t=Math.abs(d);if(t<=255){e|=d>=0?s|o:s;c.push(t)}else{c.push(d)}}u=p;l.push(e)}e.setUint16(t,r.length-1);t+=2}e.setUint16(t,this.instructions.length);t+=2;if(this.instructions.length){new Uint8Array(e.buffer,0,e.buffer.byteLength).set(this.instructions,t);t+=this.instructions.length}for(const i of l){e.setUint8(t++,i)}for(let i=0,s=r.length;i<s;i++){const s=r[i];const o=l[i];if(o&n){e.setUint8(t++,s)}else if(!(o&a)){e.setInt16(t,s);t+=2}}for(let i=0,n=c.length;i<n;i++){const n=c[i];const r=l[i];if(r&s){e.setUint8(t++,n)}else if(!(r&o)){e.setInt16(t,n);t+=2}}return t-i}scale(t,e){for(const i of this.contours){if(i.xCoordinates.length===0){continue}for(let n=0,s=i.xCoordinates.length;n<s;n++){i.xCoordinates[n]=Math.round(t+(i.xCoordinates[n]-t)*e)}}}}class A{constructor(t){let{flags:e,glyphIndex:i,argument1:n,argument2:s,transf:r,instructions:a}=t;this.flags=e;this.glyphIndex=i;this.argument1=n;this.argument2=s;this.transf=r;this.instructions=a}static parse(t,e){const i=t;const n=[];let s=e.getUint16(t);const r=e.getUint16(t+2);t+=4;let a,o;if(s&l){if(s&h){a=e.getInt16(t);o=e.getInt16(t+2)}else{a=e.getUint16(t);o=e.getUint16(t+2)}t+=4;s^=l}else{if(s&h){a=e.getInt8(t);o=e.getInt8(t+1)}else{a=e.getUint8(t);o=e.getUint8(t+1)}t+=2}if(s&u){n.push(e.getUint16(t));t+=2}else if(s&d){n.push(e.getUint16(t),e.getUint16(t+2));t+=4}else if(s&p){n.push(e.getUint16(t),e.getUint16(t+2),e.getUint16(t+4),e.getUint16(t+6));t+=8}let c=null;if(s&m){const i=e.getUint16(t);t+=2;c=new Uint8Array(e).slice(t,t+i);t+=i}return[t-i,new A({flags:s,glyphIndex:r,argument1:a,argument2:o,transf:n,instructions:c})]}getSize(){let t=2+2+this.transf.length*2;if(this.flags&m){t+=2+this.instructions.length}t+=2;if(this.flags&2){if(!(this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127)){t+=2}}else{if(!(this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255)){t+=2}}return t}write(t,e){const i=t;if(this.flags&h){if(!(this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127)){this.flags|=l}}else{if(!(this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255)){this.flags|=l}}e.setUint16(t,this.flags);e.setUint16(t+2,this.glyphIndex);t+=4;if(this.flags&l){if(this.flags&h){e.setInt16(t,this.argument1);e.setInt16(t+2,this.argument2)}else{e.setUint16(t,this.argument1);e.setUint16(t+2,this.argument2)}t+=4}else{e.setUint8(t,this.argument1);e.setUint8(t+1,this.argument2);t+=2}if(this.flags&m){e.setUint16(t,this.instructions.length);t+=2;if(this.instructions.length){new Uint8Array(e.buffer,0,e.buffer.byteLength).set(this.instructions,t);t+=this.instructions.length}}return t-i}scale(t,e){}}},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.OpenTypeFileBuilder=void 0;var n=i(135);var s=i(2);function r(t,e,i){t[e]=i>>8&255;t[e+1]=i&255}function a(t,e,i){t[e]=i>>24&255;t[e+1]=i>>16&255;t[e+2]=i>>8&255;t[e+3]=i&255}function o(t,e,i){if(i instanceof Uint8Array){t.set(i,e)}else if(typeof i==="string"){for(let n=0,s=i.length;n<s;n++){t[e++]=i.charCodeAt(n)&255}}else{for(const n of i){t[e++]=n&255}}}const c=12;const l=16;class h{constructor(t){this.sfnt=t;this.tables=Object.create(null)}static getSearchParams(t,e){let i=1,n=0;while((i^t)>i){i<<=1;n++}const s=i*e;return{range:s,entry:n,rangeShift:e*t-s}}toArray(){let t=this.sfnt;const e=this.tables;const i=Object.keys(e);i.sort();const u=i.length;let f,d,p,m,g;let b=c+u*l;const v=[b];for(f=0;f<u;f++){m=e[i[f]];const t=(m.length+3&~3)>>>0;b+=t;v.push(b)}const w=new Uint8Array(b);for(f=0;f<u;f++){m=e[i[f]];o(w,v[f],m)}if(t==="true"){t=(0,s.string32)(65536)}w[0]=t.charCodeAt(0)&255;w[1]=t.charCodeAt(1)&255;w[2]=t.charCodeAt(2)&255;w[3]=t.charCodeAt(3)&255;r(w,4,u);const y=h.getSearchParams(u,16);r(w,6,y.range);r(w,8,y.entry);r(w,10,y.rangeShift);b=c;for(f=0;f<u;f++){g=i[f];w[b]=g.charCodeAt(0)&255;w[b+1]=g.charCodeAt(1)&255;w[b+2]=g.charCodeAt(2)&255;w[b+3]=g.charCodeAt(3)&255;let t=0;for(d=v[f],p=v[f+1];d<p;d+=4){const e=(0,n.readUint32)(w,d);t=t+e>>>0}a(w,b+4,t);a(w,b+8,v[f]);a(w,b+12,e[g].length);b+=l}return w}addTable(t,e){if(t in this.tables){throw new Error("Table "+t+" already exists")}this.tables[t]=e}}e.OpenTypeFileBuilder=h},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.Type1Font=void 0;var n=i(164);var s=i(2);var r=i(167);var a=i(135);var o=i(139);var c=i(178);function l(t,e,i){const n=t.length;const s=e.length;const r=n-s;let o=i,c=false;while(o<r){let i=0;while(i<s&&t[o+i]===e[i]){i++}if(i>=s){o+=i;while(o<n&&(0,a.isWhiteSpace)(t[o])){o++}c=true;break}o++}return{found:c,length:o}}function h(t,e){const i=[101,101,120,101,99];const n=t.pos;let r,a,c;try{r=t.getBytes(e);a=r.length}catch(t){}if(a===e){c=l(r,i,e-2*i.length);if(c.found&&c.length===e){return{stream:new o.Stream(r),length:e}}}(0,s.warn)('Invalid "Length1" property in Type1 font -- trying to recover.');t.pos=n;const h=2048;let u;while(true){const e=t.peekBytes(h);c=l(e,i,0);if(c.length===0){break}t.pos+=c.length;if(c.found){u=t.pos-n;break}}t.pos=n;if(u){return{stream:new o.Stream(t.getBytes(u)),length:u}}(0,s.warn)('Unable to recover "Length1" property in Type1 font -- using as is.');return{stream:new o.Stream(t.getBytes(e)),length:e}}function u(t,e){const i=t.getBytes();if(i.length===0){throw new s.FormatError("getEexecBlock - no font program found.")}return{stream:new o.Stream(i),length:i.length}}class f{constructor(t,e,i){const n=6;let s=i.length1;let a=e.peekBytes(n);const o=a[0]===128&&a[1]===1;if(o){e.skip(n);s=a[5]<<24|a[4]<<16|a[3]<<8|a[2]}const l=h(e,s);const f=new c.Type1Parser(l.stream,false,r.SEAC_ANALYSIS_ENABLED);f.extractFontHeader(i);if(o){a=e.getBytes(n)}const d=u(e);const p=new c.Type1Parser(d.stream,true,r.SEAC_ANALYSIS_ENABLED);const m=p.extractFontProgram(i);for(const t in m.properties){i[t]=m.properties[t]}const g=m.charstrings;const b=this.getType2Charstrings(g);const v=this.getType2Subrs(m.subrs);this.charstrings=g;this.data=this.wrap(t,b,this.charstrings,v,i);this.seacs=this.getSeacs(m.charstrings)}get numGlyphs(){return this.charstrings.length+1}getCharset(){const t=[".notdef"];for(const{glyphName:e}of this.charstrings){t.push(e)}return t}getGlyphMapping(t){const e=this.charstrings;if(t.composite){const i=Object.create(null);for(let n=0,s=e.length;n<s;n++){const e=t.cMap.charCodeOf(n);i[e]=n+1}return i}const i=[".notdef"];let n,s;for(s=0;s<e.length;s++){i.push(e[s].glyphName)}const a=t.builtInEncoding;if(a){n=Object.create(null);for(const t in a){s=i.indexOf(a[t]);if(s>=0){n[t]=s}}}return(0,r.type1FontGlyphMapping)(t,n,i)}hasGlyphId(t){if(t<0||t>=this.numGlyphs){return false}if(t===0){return true}const e=this.charstrings[t-1];return e.charstring.length>0}getSeacs(t){const e=[];for(let i=0,n=t.length;i<n;i++){const n=t[i];if(n.seac){e[i+1]=n.seac}}return e}getType2Charstrings(t){const e=[];for(const i of t){e.push(i.charstring)}return e}getType2Subrs(t){let e=0;const i=t.length;if(i<1133){e=107}else if(i<33769){e=1131}else{e=32768}const n=[];let s;for(s=0;s<e;s++){n.push([11])}for(s=0;s<i;s++){n.push(t[s])}return n}wrap(t,e,i,s,r){const a=new n.CFF;a.header=new n.CFFHeader(1,0,4,4);a.names=[t];const o=new n.CFFTopDict;o.setByName("version",391);o.setByName("Notice",392);o.setByName("FullName",393);o.setByName("FamilyName",394);o.setByName("Weight",395);o.setByName("Encoding",null);o.setByName("FontMatrix",r.fontMatrix);o.setByName("FontBBox",r.bbox);o.setByName("charset",null);o.setByName("CharStrings",null);o.setByName("Private",null);a.topDict=o;const c=new n.CFFStrings;c.add("Version 0.11");c.add("See original notice");c.add(t);c.add(t);c.add("Medium");a.strings=c;a.globalSubrIndex=new n.CFFIndex;const l=e.length;const h=[".notdef"];let u,f;for(u=0;u<l;u++){const t=i[u].glyphName;const e=n.CFFStandardStrings.indexOf(t);if(e===-1){c.add(t)}h.push(t)}a.charset=new n.CFFCharset(false,0,h);const d=new n.CFFIndex;d.add([139,14]);for(u=0;u<l;u++){d.add(e[u])}a.charStrings=d;const p=new n.CFFPrivateDict;p.setByName("Subrs",null);const m=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(u=0,f=m.length;u<f;u++){const t=m[u];if(!(t in r.privateData)){continue}const e=r.privateData[t];if(Array.isArray(e)){for(let t=e.length-1;t>0;t--){e[t]-=e[t-1]}}p.setByName(t,e)}a.topDict.privateDict=p;const g=new n.CFFIndex;for(u=0,f=s.length;u<f;u++){g.add(s[u])}p.subrsIndex=g;const b=new n.CFFCompiler(a);return b.compile()}}e.Type1Font=f},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.Type1Parser=void 0;var n=i(166);var s=i(135);var r=i(139);var a=i(2);const o=false;const c={hstem:[1],vstem:[3],vmoveto:[4],rlineto:[5],hlineto:[6],vlineto:[7],rrcurveto:[8],callsubr:[10],flex:[12,35],drop:[12,18],endchar:[14],rmoveto:[21],hmoveto:[22],vhcurveto:[30],hvcurveto:[31]};class l{constructor(){this.width=0;this.lsb=0;this.flexing=false;this.output=[];this.stack=[]}convert(t,e,i){const n=t.length;let s=false;let r,o,l;for(let h=0;h<n;h++){let n=t[h];if(n<32){if(n===12){n=(n<<8)+t[++h]}switch(n){case 1:{this.stack=[];break}case 3:{this.stack=[];break}case 4:if(this.flexing){if(this.stack.length<1){s=true;break}const t=this.stack.pop();this.stack.push(0,t);break}s=this.executeCommand(1,c.vmoveto);break;case 5:s=this.executeCommand(2,c.rlineto);break;case 6:s=this.executeCommand(1,c.hlineto);break;case 7:s=this.executeCommand(1,c.vlineto);break;case 8:s=this.executeCommand(6,c.rrcurveto);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){s=true;break}l=this.stack.pop();if(!e[l]){s=true;break}s=this.convert(e[l],e,i);break;case 11:return s;case 13:if(this.stack.length<2){s=true;break}r=this.stack.pop();o=this.stack.pop();this.lsb=o;this.width=r;this.stack.push(r,o);s=this.executeCommand(2,c.hmoveto);break;case 14:this.output.push(c.endchar[0]);break;case 21:if(this.flexing){break}s=this.executeCommand(2,c.rmoveto);break;case 22:if(this.flexing){this.stack.push(0);break}s=this.executeCommand(1,c.hmoveto);break;case 30:s=this.executeCommand(4,c.vhcurveto);break;case 31:s=this.executeCommand(4,c.hvcurveto);break;case(12<<8)+0:this.stack=[];break;case(12<<8)+1:{this.stack=[];break}case(12<<8)+2:{this.stack=[];break}case(12<<8)+6:if(i){const t=this.stack.at(-5);this.seac=this.stack.splice(-4,4);this.seac[0]+=this.lsb-t;s=this.executeCommand(0,c.endchar)}else{s=this.executeCommand(4,c.endchar)}break;case(12<<8)+7:if(this.stack.length<4){s=true;break}this.stack.pop();r=this.stack.pop();const t=this.stack.pop();o=this.stack.pop();this.lsb=o;this.width=r;this.stack.push(r,o,t);s=this.executeCommand(3,c.rmoveto);break;case(12<<8)+12:if(this.stack.length<2){s=true;break}const h=this.stack.pop();const u=this.stack.pop();this.stack.push(u/h);break;case(12<<8)+16:if(this.stack.length<2){s=true;break}l=this.stack.pop();const f=this.stack.pop();if(l===0&&f===3){const t=this.stack.splice(this.stack.length-17,17);this.stack.push(t[2]+t[0],t[3]+t[1],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14]);s=this.executeCommand(13,c.flex,true);this.flexing=false;this.stack.push(t[15],t[16])}else if(l===1&&f===0){this.flexing=true}break;case(12<<8)+17:break;case(12<<8)+33:this.stack=[];break;default:(0,a.warn)('Unknown type 1 charstring command of "'+n+'"');break}if(s){break}continue}else if(n<=246){n-=139}else if(n<=250){n=(n-247)*256+t[++h]+108}else if(n<=254){n=-((n-251)*256)-t[++h]-108}else{n=(t[++h]&255)<<24|(t[++h]&255)<<16|(t[++h]&255)<<8|(t[++h]&255)<<0}this.stack.push(n)}return s}executeCommand(t,e,i){const n=this.stack.length;if(t>n){return true}const s=n-t;for(let t=s;t<n;t++){let e=this.stack[t];if(Number.isInteger(e)){this.output.push(28,e>>8&255,e&255)}else{e=65536*e|0;this.output.push(255,e>>24&255,e>>16&255,e>>8&255,e&255)}}this.output.push(...e);if(i){this.stack.splice(s,t)}else{this.stack.length=0}return false}}const h=55665;const u=4330;function f(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function d(t,e,i){if(i>=t.length){return new Uint8Array(0)}const n=52845,s=22719;let r=e|0,a,o;for(a=0;a<i;a++){r=(t[a]+r)*n+s&(1<<16)-1}const c=t.length-i;const l=new Uint8Array(c);for(a=i,o=0;o<c;a++,o++){const e=t[a];l[o]=e^r>>8;r=(e+r)*n+s&(1<<16)-1}return l}function p(t,e,i){const n=52845,s=22719;let r=e|0;const a=t.length,o=a>>>1;const c=new Uint8Array(o);let l,h;for(l=0,h=0;l<a;l++){const e=t[l];if(!f(e)){continue}l++;let i;while(l<a&&!f(i=t[l])){l++}if(l<a){const t=parseInt(String.fromCharCode(e,i),16);c[h++]=t^r>>8;r=(t+r)*n+s&(1<<16)-1}}return c.slice(i,h)}function m(t){return t===47||t===91||t===93||t===123||t===125||t===40||t===41}class g{constructor(t,e,i){if(e){const e=t.getBytes();const i=!((f(e[0])||(0,s.isWhiteSpace)(e[0]))&&f(e[1])&&f(e[2])&&f(e[3])&&f(e[4])&&f(e[5])&&f(e[6])&&f(e[7]));t=new r.Stream(i?d(e,h,4):p(e,h,4))}this.seacAnalysisEnabled=!!i;this.stream=t;this.nextChar()}readNumberArray(){this.getToken();const t=[];while(true){const e=this.getToken();if(e===null||e==="]"||e==="}"){break}t.push(parseFloat(e||0))}return t}readNumber(){const t=this.getToken();return parseFloat(t||0)}readInt(){const t=this.getToken();return parseInt(t||0,10)|0}readBoolean(){const t=this.getToken();return t==="true"?1:0}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){this.stream.skip(-2);return this.currentChar=this.stream.getByte()}getToken(){let t=false;let e=this.currentChar;while(true){if(e===-1){return null}if(t){if(e===10||e===13){t=false}}else if(e===37){t=true}else if(!(0,s.isWhiteSpace)(e)){break}e=this.nextChar()}if(m(e)){this.nextChar();return String.fromCharCode(e)}let i="";do{i+=String.fromCharCode(e);e=this.nextChar()}while(e>=0&&!(0,s.isWhiteSpace)(e)&&!m(e));return i}readCharStrings(t,e){if(e===-1){return t}return d(t,u,e)}extractFontProgram(t){const e=this.stream;const i=[],n=[];const s=Object.create(null);s.lenIV=4;const r={subrs:[],charstrings:[],properties:{privateData:s}};let a,c,h,u;while((a=this.getToken())!==null){if(a!=="/"){continue}a=this.getToken();switch(a){case"CharStrings":this.getToken();this.getToken();this.getToken();this.getToken();while(true){a=this.getToken();if(a===null||a==="end"){break}if(a!=="/"){continue}const t=this.getToken();c=this.readInt();this.getToken();h=c>0?e.getBytes(c):new Uint8Array(0);u=r.properties.privateData.lenIV;const i=this.readCharStrings(h,u);this.nextChar();a=this.getToken();if(a==="noaccess"){this.getToken()}else if(a==="/"){this.prevChar()}n.push({glyph:t,encoded:i})}break;case"Subrs":this.readInt();this.getToken();while(this.getToken()==="dup"){const t=this.readInt();c=this.readInt();this.getToken();h=c>0?e.getBytes(c):new Uint8Array(0);u=r.properties.privateData.lenIV;const n=this.readCharStrings(h,u);this.nextChar();a=this.getToken();if(a==="noaccess"){this.getToken()}i[t]=n}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":const t=this.readNumberArray();if(t.length>0&&t.length%2===0&&o){r.properties.privateData[a]=t}break;case"StemSnapH":case"StemSnapV":r.properties.privateData[a]=this.readNumberArray();break;case"StdHW":case"StdVW":r.properties.privateData[a]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":r.properties.privateData[a]=this.readNumber();break;case"ForceBold":r.properties.privateData[a]=this.readBoolean();break}}for(const{encoded:e,glyph:s}of n){const n=new l;const a=n.convert(e,i,this.seacAnalysisEnabled);let o=n.output;if(a){o=[14]}const c={glyphName:s,charstring:o,width:n.width,lsb:n.lsb,seac:n.seac};if(s===".notdef"){r.charstrings.unshift(c)}else{r.charstrings.push(c)}if(t.builtInEncoding){const e=t.builtInEncoding.indexOf(s);if(e>-1&&t.widths[e]===undefined&&e>=t.firstChar&&e<=t.lastChar){t.widths[e]=n.width}}}return r}extractFontHeader(t){let e;while((e=this.getToken())!==null){if(e!=="/"){continue}e=this.getToken();switch(e){case"FontMatrix":const i=this.readNumberArray();t.fontMatrix=i;break;case"Encoding":const s=this.getToken();let r;if(!/^\d+$/.test(s)){r=(0,n.getEncoding)(s)}else{r=[];const t=parseInt(s,10)|0;this.getToken();for(let i=0;i<t;i++){e=this.getToken();while(e!=="dup"&&e!=="def"){e=this.getToken();if(e===null){return}}if(e==="def"){break}const t=this.readInt();this.getToken();const i=this.getToken();r[t]=i;this.getToken()}}t.builtInEncoding=r;break;case"FontBBox":const a=this.readNumberArray();t.ascent=Math.max(a[3],a[1]);t.descent=Math.min(a[1],a[3]);t.ascentScaled=true;break}}}}e.Type1Parser=g},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.Pattern=void 0;e.getTilingPatternIR=m;var n=i(2);var s=i(136);var r=i(143);var a=i(135);const o={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7};class c{constructor(){(0,n.unreachable)("Cannot initialize Pattern.")}static parseShading(t,e,i,r,c,l){const u=t instanceof s.BaseStream?t.dict:t;const f=u.get("ShadingType");try{switch(f){case o.AXIAL:case o.RADIAL:return new h(u,e,i,c,l);case o.FREE_FORM_MESH:case o.LATTICE_FORM_MESH:case o.COONS_PATCH_MESH:case o.TENSOR_PATCH_MESH:return new d(t,e,i,c,l);default:throw new n.FormatError("Unsupported ShadingType: "+f)}}catch(t){if(t instanceof a.MissingDataException){throw t}r.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.shadingPattern});(0,n.warn)(t);return new p}}}e.Pattern=c;class l{static get SMALL_NUMBER(){return(0,n.shadow)(this,"SMALL_NUMBER",1e-6)}constructor(){if(this.constructor===l){(0,n.unreachable)("Cannot initialize BaseShading.")}}getIR(){(0,n.unreachable)("Abstract method `getIR` called.")}}class h extends l{constructor(t,e,i,s,a){super();this.coordsArr=t.getArray("Coords");this.shadingType=t.get("ShadingType");const c=r.ColorSpace.parse({cs:t.getRaw("CS")||t.getRaw("ColorSpace"),xref:e,resources:i,pdfFunctionFactory:s,localColorSpaceCache:a});const h=t.getArray("BBox");if(Array.isArray(h)&&h.length===4){this.bbox=n.Util.normalizeRect(h)}else{this.bbox=null}let u=0,f=1;if(t.has("Domain")){const e=t.getArray("Domain");u=e[0];f=e[1]}let d=false,p=false;if(t.has("Extend")){const e=t.getArray("Extend");d=e[0];p=e[1]}if(this.shadingType===o.RADIAL&&(!d||!p)){const[t,e,i,s,r,a]=this.coordsArr;const o=Math.hypot(t-s,e-r);if(i<=a+o&&a<=i+o){(0,n.warn)("Unsupported radial gradient.")}}this.extendStart=d;this.extendEnd=p;const m=t.getRaw("Function");const g=s.createFromArray(m);const b=10;const v=(f-u)/b;const w=this.colorStops=[];if(u>=f||v<=0){(0,n.info)("Bad shading domain.");return}const y=new Float32Array(c.numComps),A=new Float32Array(1);let k;for(let t=0;t<=b;t++){A[0]=u+t*v;g(A,0,y,0);k=c.getRgb(y,0);const e=n.Util.makeHexColor(k[0],k[1],k[2]);w.push([t/b,e])}let x="transparent";if(t.has("Background")){k=c.getRgb(t.get("Background"),0);x=n.Util.makeHexColor(k[0],k[1],k[2])}if(!d){w.unshift([0,x]);w[1][0]+=l.SMALL_NUMBER}if(!p){w.at(-1)[0]-=l.SMALL_NUMBER;w.push([1,x])}this.colorStops=w}getIR(){const t=this.coordsArr;const e=this.shadingType;let i,s,r,a,c;if(e===o.AXIAL){s=[t[0],t[1]];r=[t[2],t[3]];a=null;c=null;i="axial"}else if(e===o.RADIAL){s=[t[0],t[1]];r=[t[3],t[4]];a=t[2];c=t[5];i="radial"}else{(0,n.unreachable)(`getPattern type unknown: ${e}`)}return["RadialAxial",i,this.bbox,this.colorStops,s,r,a,c]}}class u{constructor(t,e){this.stream=t;this.context=e;this.buffer=0;this.bufferLength=0;const i=e.numComps;this.tmpCompsBuf=new Float32Array(i);const n=e.colorSpace.numComps;this.tmpCsCompsBuf=e.colorFn?new Float32Array(n):this.tmpCompsBuf}get hasData(){if(this.stream.end){return this.stream.pos<this.stream.end}if(this.bufferLength>0){return true}const t=this.stream.getByte();if(t<0){return false}this.buffer=t;this.bufferLength=8;return true}readBits(t){let e=this.buffer;let i=this.bufferLength;if(t===32){if(i===0){return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0}e=e<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();const t=this.stream.getByte();this.buffer=t&(1<<i)-1;return(e<<8-i|(t&255)>>i)>>>0}if(t===8&&i===0){return this.stream.getByte()}while(i<t){e=e<<8|this.stream.getByte();i+=8}i-=t;this.bufferLength=i;this.buffer=e&(1<<i)-1;return e>>i}align(){this.buffer=0;this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){const t=this.context.bitsPerCoordinate;const e=this.readBits(t);const i=this.readBits(t);const n=this.context.decode;const s=t<32?1/((1<<t)-1):2.3283064365386963e-10;return[e*s*(n[1]-n[0])+n[0],i*s*(n[3]-n[2])+n[2]]}readComponents(){const t=this.context.numComps;const e=this.context.bitsPerComponent;const i=e<32?1/((1<<e)-1):2.3283064365386963e-10;const n=this.context.decode;const s=this.tmpCompsBuf;for(let r=0,a=4;r<t;r++,a+=2){const t=this.readBits(e);s[r]=t*i*(n[a+1]-n[a])+n[a]}const r=this.tmpCsCompsBuf;if(this.context.colorFn){this.context.colorFn(s,0,r,0)}return this.context.colorSpace.getRgb(r,0)}}const f=function t(){function e(t){const e=[];for(let i=0;i<=t;i++){const n=i/t,s=1-n;e.push(new Float32Array([s*s*s,3*n*s*s,3*n*n*s,n*n*n]))}return e}const i=[];return function(t){if(!i[t]){i[t]=e(t)}return i[t]}}();class d extends l{static get MIN_SPLIT_PATCH_CHUNKS_AMOUNT(){return(0,n.shadow)(this,"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",3)}static get MAX_SPLIT_PATCH_CHUNKS_AMOUNT(){return(0,n.shadow)(this,"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",20)}static get TRIANGLE_DENSITY(){return(0,n.shadow)(this,"TRIANGLE_DENSITY",20)}constructor(t,e,i,a,c){super();if(!(t instanceof s.BaseStream)){throw new n.FormatError("Mesh data is not a stream")}const l=t.dict;this.shadingType=l.get("ShadingType");const h=l.getArray("BBox");if(Array.isArray(h)&&h.length===4){this.bbox=n.Util.normalizeRect(h)}else{this.bbox=null}const f=r.ColorSpace.parse({cs:l.getRaw("CS")||l.getRaw("ColorSpace"),xref:e,resources:i,pdfFunctionFactory:a,localColorSpaceCache:c});this.background=l.has("Background")?f.getRgb(l.get("Background"),0):null;const d=l.getRaw("Function");const p=d?a.createFromArray(d):null;this.coords=[];this.colors=[];this.figures=[];const m={bitsPerCoordinate:l.get("BitsPerCoordinate"),bitsPerComponent:l.get("BitsPerComponent"),bitsPerFlag:l.get("BitsPerFlag"),decode:l.getArray("Decode"),colorFn:p,colorSpace:f,numComps:p?1:f.numComps};const g=new u(t,m);let b=false;switch(this.shadingType){case o.FREE_FORM_MESH:this._decodeType4Shading(g);break;case o.LATTICE_FORM_MESH:const t=l.get("VerticesPerRow")|0;if(t<2){throw new n.FormatError("Invalid VerticesPerRow")}this._decodeType5Shading(g,t);break;case o.COONS_PATCH_MESH:this._decodeType6Shading(g);b=true;break;case o.TENSOR_PATCH_MESH:this._decodeType7Shading(g);b=true;break;default:(0,n.unreachable)("Unsupported mesh type.");break}if(b){this._updateBounds();for(let t=0,e=this.figures.length;t<e;t++){this._buildFigureFromPatch(t)}}this._updateBounds();this._packData()}_decodeType4Shading(t){const e=this.coords;const i=this.colors;const s=[];let r=0;while(t.hasData){const a=t.readFlag();const o=t.readCoordinate();const c=t.readComponents();if(r===0){if(!(0<=a&&a<=2)){throw new n.FormatError("Unknown type4 flag")}switch(a){case 0:r=3;break;case 1:s.push(s.at(-2),s.at(-1));r=1;break;case 2:s.push(s.at(-3),s.at(-1));r=1;break}}s.push(e.length);e.push(o);i.push(c);r--;t.align()}this.figures.push({type:"triangles",coords:new Int32Array(s),colors:new Int32Array(s)})}_decodeType5Shading(t,e){const i=this.coords;const n=this.colors;const s=[];while(t.hasData){const e=t.readCoordinate();const r=t.readComponents();s.push(i.length);i.push(e);n.push(r)}this.figures.push({type:"lattice",coords:new Int32Array(s),colors:new Int32Array(s),verticesPerRow:e})}_decodeType6Shading(t){const e=this.coords;const i=this.colors;const s=new Int32Array(16);const r=new Int32Array(4);while(t.hasData){const a=t.readFlag();if(!(0<=a&&a<=3)){throw new n.FormatError("Unknown type6 flag")}const o=e.length;for(let i=0,n=a!==0?8:12;i<n;i++){e.push(t.readCoordinate())}const c=i.length;for(let e=0,n=a!==0?2:4;e<n;e++){i.push(t.readComponents())}let l,h,u,f;switch(a){case 0:s[12]=o+3;s[13]=o+4;s[14]=o+5;s[15]=o+6;s[8]=o+2;s[11]=o+7;s[4]=o+1;s[7]=o+8;s[0]=o;s[1]=o+11;s[2]=o+10;s[3]=o+9;r[2]=c+1;r[3]=c+2;r[0]=c;r[1]=c+3;break;case 1:l=s[12];h=s[13];u=s[14];f=s[15];s[12]=f;s[13]=o+0;s[14]=o+1;s[15]=o+2;s[8]=u;s[11]=o+3;s[4]=h;s[7]=o+4;s[0]=l;s[1]=o+7;s[2]=o+6;s[3]=o+5;l=r[2];h=r[3];r[2]=h;r[3]=c;r[0]=l;r[1]=c+1;break;case 2:l=s[15];h=s[11];s[12]=s[3];s[13]=o+0;s[14]=o+1;s[15]=o+2;s[8]=s[7];s[11]=o+3;s[4]=h;s[7]=o+4;s[0]=l;s[1]=o+7;s[2]=o+6;s[3]=o+5;l=r[3];r[2]=r[1];r[3]=c;r[0]=l;r[1]=c+1;break;case 3:s[12]=s[0];s[13]=o+0;s[14]=o+1;s[15]=o+2;s[8]=s[1];s[11]=o+3;s[4]=s[2];s[7]=o+4;s[0]=s[3];s[1]=o+7;s[2]=o+6;s[3]=o+5;r[2]=r[0];r[3]=c;r[0]=r[1];r[1]=c+1;break}s[5]=e.length;e.push([(-4*e[s[0]][0]-e[s[15]][0]+6*(e[s[4]][0]+e[s[1]][0])-2*(e[s[12]][0]+e[s[3]][0])+3*(e[s[13]][0]+e[s[7]][0]))/9,(-4*e[s[0]][1]-e[s[15]][1]+6*(e[s[4]][1]+e[s[1]][1])-2*(e[s[12]][1]+e[s[3]][1])+3*(e[s[13]][1]+e[s[7]][1]))/9]);s[6]=e.length;e.push([(-4*e[s[3]][0]-e[s[12]][0]+6*(e[s[2]][0]+e[s[7]][0])-2*(e[s[0]][0]+e[s[15]][0])+3*(e[s[4]][0]+e[s[14]][0]))/9,(-4*e[s[3]][1]-e[s[12]][1]+6*(e[s[2]][1]+e[s[7]][1])-2*(e[s[0]][1]+e[s[15]][1])+3*(e[s[4]][1]+e[s[14]][1]))/9]);s[9]=e.length;e.push([(-4*e[s[12]][0]-e[s[3]][0]+6*(e[s[8]][0]+e[s[13]][0])-2*(e[s[0]][0]+e[s[15]][0])+3*(e[s[11]][0]+e[s[1]][0]))/9,(-4*e[s[12]][1]-e[s[3]][1]+6*(e[s[8]][1]+e[s[13]][1])-2*(e[s[0]][1]+e[s[15]][1])+3*(e[s[11]][1]+e[s[1]][1]))/9]);s[10]=e.length;e.push([(-4*e[s[15]][0]-e[s[0]][0]+6*(e[s[11]][0]+e[s[14]][0])-2*(e[s[12]][0]+e[s[3]][0])+3*(e[s[2]][0]+e[s[8]][0]))/9,(-4*e[s[15]][1]-e[s[0]][1]+6*(e[s[11]][1]+e[s[14]][1])-2*(e[s[12]][1]+e[s[3]][1])+3*(e[s[2]][1]+e[s[8]][1]))/9]);this.figures.push({type:"patch",coords:new Int32Array(s),colors:new Int32Array(r)})}}_decodeType7Shading(t){const e=this.coords;const i=this.colors;const s=new Int32Array(16);const r=new Int32Array(4);while(t.hasData){const a=t.readFlag();if(!(0<=a&&a<=3)){throw new n.FormatError("Unknown type7 flag")}const o=e.length;for(let i=0,n=a!==0?12:16;i<n;i++){e.push(t.readCoordinate())}const c=i.length;for(let e=0,n=a!==0?2:4;e<n;e++){i.push(t.readComponents())}let l,h,u,f;switch(a){case 0:s[12]=o+3;s[13]=o+4;s[14]=o+5;s[15]=o+6;s[8]=o+2;s[9]=o+13;s[10]=o+14;s[11]=o+7;s[4]=o+1;s[5]=o+12;s[6]=o+15;s[7]=o+8;s[0]=o;s[1]=o+11;s[2]=o+10;s[3]=o+9;r[2]=c+1;r[3]=c+2;r[0]=c;r[1]=c+3;break;case 1:l=s[12];h=s[13];u=s[14];f=s[15];s[12]=f;s[13]=o+0;s[14]=o+1;s[15]=o+2;s[8]=u;s[9]=o+9;s[10]=o+10;s[11]=o+3;s[4]=h;s[5]=o+8;s[6]=o+11;s[7]=o+4;s[0]=l;s[1]=o+7;s[2]=o+6;s[3]=o+5;l=r[2];h=r[3];r[2]=h;r[3]=c;r[0]=l;r[1]=c+1;break;case 2:l=s[15];h=s[11];s[12]=s[3];s[13]=o+0;s[14]=o+1;s[15]=o+2;s[8]=s[7];s[9]=o+9;s[10]=o+10;s[11]=o+3;s[4]=h;s[5]=o+8;s[6]=o+11;s[7]=o+4;s[0]=l;s[1]=o+7;s[2]=o+6;s[3]=o+5;l=r[3];r[2]=r[1];r[3]=c;r[0]=l;r[1]=c+1;break;case 3:s[12]=s[0];s[13]=o+0;s[14]=o+1;s[15]=o+2;s[8]=s[1];s[9]=o+9;s[10]=o+10;s[11]=o+3;s[4]=s[2];s[5]=o+8;s[6]=o+11;s[7]=o+4;s[0]=s[3];s[1]=o+7;s[2]=o+6;s[3]=o+5;r[2]=r[0];r[3]=c;r[0]=r[1];r[1]=c+1;break}this.figures.push({type:"patch",coords:new Int32Array(s),colors:new Int32Array(r)})}}_buildFigureFromPatch(t){const e=this.figures[t];(0,n.assert)(e.type==="patch","Unexpected patch mesh figure");const i=this.coords,s=this.colors;const r=e.coords;const a=e.colors;const o=Math.min(i[r[0]][0],i[r[3]][0],i[r[12]][0],i[r[15]][0]);const c=Math.min(i[r[0]][1],i[r[3]][1],i[r[12]][1],i[r[15]][1]);const l=Math.max(i[r[0]][0],i[r[3]][0],i[r[12]][0],i[r[15]][0]);const h=Math.max(i[r[0]][1],i[r[3]][1],i[r[12]][1],i[r[15]][1]);let u=Math.ceil((l-o)*d.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));u=Math.max(d.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(d.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,u));let p=Math.ceil((h-c)*d.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));p=Math.max(d.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(d.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,p));const m=u+1;const g=new Int32Array((p+1)*m);const b=new Int32Array((p+1)*m);let v=0;const w=new Uint8Array(3),y=new Uint8Array(3);const A=s[a[0]],k=s[a[1]],x=s[a[2]],S=s[a[3]];const M=f(p),_=f(u);for(let t=0;t<=p;t++){w[0]=(A[0]*(p-t)+x[0]*t)/p|0;w[1]=(A[1]*(p-t)+x[1]*t)/p|0;w[2]=(A[2]*(p-t)+x[2]*t)/p|0;y[0]=(k[0]*(p-t)+S[0]*t)/p|0;y[1]=(k[1]*(p-t)+S[1]*t)/p|0;y[2]=(k[2]*(p-t)+S[2]*t)/p|0;for(let e=0;e<=u;e++,v++){if((t===0||t===p)&&(e===0||e===u)){continue}let n=0,a=0;let o=0;for(let s=0;s<=3;s++){for(let c=0;c<=3;c++,o++){const l=M[t][s]*_[e][c];n+=i[r[o]][0]*l;a+=i[r[o]][1]*l}}g[v]=i.length;i.push([n,a]);b[v]=s.length;const c=new Uint8Array(3);c[0]=(w[0]*(u-e)+y[0]*e)/u|0;c[1]=(w[1]*(u-e)+y[1]*e)/u|0;c[2]=(w[2]*(u-e)+y[2]*e)/u|0;s.push(c)}}g[0]=r[0];b[0]=a[0];g[u]=r[3];b[u]=a[1];g[m*p]=r[12];b[m*p]=a[2];g[m*p+u]=r[15];b[m*p+u]=a[3];this.figures[t]={type:"lattice",coords:g,colors:b,verticesPerRow:m}}_updateBounds(){let t=this.coords[0][0],e=this.coords[0][1],i=t,n=e;for(let s=1,r=this.coords.length;s<r;s++){const r=this.coords[s][0],a=this.coords[s][1];t=t>r?r:t;e=e>a?a:e;i=i<r?r:i;n=n<a?a:n}this.bounds=[t,e,i,n]}_packData(){let t,e,i,n;const s=this.coords;const r=new Float32Array(s.length*2);for(t=0,i=0,e=s.length;t<e;t++){const e=s[t];r[i++]=e[0];r[i++]=e[1]}this.coords=r;const a=this.colors;const o=new Uint8Array(a.length*3);for(t=0,i=0,e=a.length;t<e;t++){const e=a[t];o[i++]=e[0];o[i++]=e[1];o[i++]=e[2]}this.colors=o;const c=this.figures;for(t=0,e=c.length;t<e;t++){const e=c[t],s=e.coords,r=e.colors;for(i=0,n=s.length;i<n;i++){s[i]*=2;r[i]*=3}}}getIR(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.bbox,this.background]}}class p extends l{getIR(){return["Dummy"]}}function m(t,e,i){const s=e.getArray("Matrix");const r=n.Util.normalizeRect(e.getArray("BBox"));const a=e.get("XStep");const o=e.get("YStep");const c=e.get("PaintType");const l=e.get("TilingType");if(r[2]-r[0]===0||r[3]-r[1]===0){throw new n.FormatError(`Invalid getTilingPatternIR /BBox array: [${r}].`)}return["TilingPattern",i,t,s,r,a,o,c,l]}},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.getXfaFontDict=p;e.getXfaFontName=f;var n=i(181);var s=i(134);var r=i(182);var a=i(183);var o=i(184);var c=i(185);var l=i(135);var h=i(167);const u=(0,l.getLookupTableFactory)((function(t){t["MyriadPro-Regular"]=t["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:o.MyriadProRegularFactors,baseWidths:a.LiberationSansRegularWidths,baseMapping:a.LiberationSansRegularMapping,metrics:o.MyriadProRegularMetrics};t["MyriadPro-Bold"]=t["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:o.MyriadProBoldFactors,baseWidths:a.LiberationSansBoldWidths,baseMapping:a.LiberationSansBoldMapping,metrics:o.MyriadProBoldMetrics};t["MyriadPro-It"]=t["MyriadPro-Italic"]=t["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:o.MyriadProItalicFactors,baseWidths:a.LiberationSansItalicWidths,baseMapping:a.LiberationSansItalicMapping,metrics:o.MyriadProItalicMetrics};t["MyriadPro-BoldIt"]=t["MyriadPro-BoldItalic"]=t["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:o.MyriadProBoldItalicFactors,baseWidths:a.LiberationSansBoldItalicWidths,baseMapping:a.LiberationSansBoldItalicMapping,metrics:o.MyriadProBoldItalicMetrics};t.ArialMT=t.Arial=t["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:a.LiberationSansRegularWidths,baseMapping:a.LiberationSansRegularMapping};t["Arial-BoldMT"]=t["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:a.LiberationSansBoldWidths,baseMapping:a.LiberationSansBoldMapping};t["Arial-ItalicMT"]=t["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:a.LiberationSansItalicWidths,baseMapping:a.LiberationSansItalicMapping};t["Arial-BoldItalicMT"]=t["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:a.LiberationSansBoldItalicWidths,baseMapping:a.LiberationSansBoldItalicMapping};t["Calibri-Regular"]={name:"LiberationSans-Regular",factors:n.CalibriRegularFactors,baseWidths:a.LiberationSansRegularWidths,baseMapping:a.LiberationSansRegularMapping,metrics:n.CalibriRegularMetrics};t["Calibri-Bold"]={name:"LiberationSans-Bold",factors:n.CalibriBoldFactors,baseWidths:a.LiberationSansBoldWidths,baseMapping:a.LiberationSansBoldMapping,metrics:n.CalibriBoldMetrics};t["Calibri-Italic"]={name:"LiberationSans-Italic",factors:n.CalibriItalicFactors,baseWidths:a.LiberationSansItalicWidths,baseMapping:a.LiberationSansItalicMapping,metrics:n.CalibriItalicMetrics};t["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:n.CalibriBoldItalicFactors,baseWidths:a.LiberationSansBoldItalicWidths,baseMapping:a.LiberationSansBoldItalicMapping,metrics:n.CalibriBoldItalicMetrics};t["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:c.SegoeuiRegularFactors,baseWidths:a.LiberationSansRegularWidths,baseMapping:a.LiberationSansRegularMapping,metrics:c.SegoeuiRegularMetrics};t["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:c.SegoeuiBoldFactors,baseWidths:a.LiberationSansBoldWidths,baseMapping:a.LiberationSansBoldMapping,metrics:c.SegoeuiBoldMetrics};t["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:c.SegoeuiItalicFactors,baseWidths:a.LiberationSansItalicWidths,baseMapping:a.LiberationSansItalicMapping,metrics:c.SegoeuiItalicMetrics};t["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:c.SegoeuiBoldItalicFactors,baseWidths:a.LiberationSansBoldItalicWidths,baseMapping:a.LiberationSansBoldItalicMapping,metrics:c.SegoeuiBoldItalicMetrics};t["Helvetica-Regular"]=t.Helvetica={name:"LiberationSans-Regular",factors:r.HelveticaRegularFactors,baseWidths:a.LiberationSansRegularWidths,baseMapping:a.LiberationSansRegularMapping,metrics:r.HelveticaRegularMetrics};t["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:r.HelveticaBoldFactors,baseWidths:a.LiberationSansBoldWidths,baseMapping:a.LiberationSansBoldMapping,metrics:r.HelveticaBoldMetrics};t["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:r.HelveticaItalicFactors,baseWidths:a.LiberationSansItalicWidths,baseMapping:a.LiberationSansItalicMapping,metrics:r.HelveticaItalicMetrics};t["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:r.HelveticaBoldItalicFactors,baseWidths:a.LiberationSansBoldItalicWidths,baseMapping:a.LiberationSansBoldItalicMapping,metrics:r.HelveticaBoldItalicMetrics}}));function f(t){const e=(0,h.normalizeFontName)(t);const i=u();return i[e]}function d(t){const e=f(t);if(!e){return null}const{baseWidths:i,baseMapping:n,factors:s}=e;let r;if(!s){r=i}else{r=i.map(((t,e)=>t*s[e]))}let a=-2;let o;const c=[];for(const[t,e]of n.map(((t,e)=>[t,e])).sort(((t,e)=>{let[i]=t;let[n]=e;return i-n}))){if(t===-1){continue}if(t===a+1){o.push(r[e]);a+=1}else{a=t;o=[r[e]];c.push(t,o)}}return c}function p(t){const e=d(t);const i=new s.Dict(null);i.set("BaseFont",s.Name.get(t));i.set("Type",s.Name.get("Font"));i.set("Subtype",s.Name.get("CIDFontType2"));i.set("Encoding",s.Name.get("Identity-H"));i.set("CIDToGIDMap",s.Name.get("Identity"));i.set("W",e);i.set("FirstChar",e[0]);i.set("LastChar",e.at(-2)+e.at(-1).length-1);const n=new s.Dict(null);i.set("FontDescriptor",n);const r=new s.Dict(null);r.set("Ordering","Identity");r.set("Registry","Adobe");r.set("Supplement",0);i.set("CIDSystemInfo",r);return i}},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.CalibriRegularMetrics=e.CalibriRegularFactors=e.CalibriItalicMetrics=e.CalibriItalicFactors=e.CalibriBoldMetrics=e.CalibriBoldItalicMetrics=e.CalibriBoldItalicFactors=e.CalibriBoldFactors=void 0;const i=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.54657,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.73293,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.9121,.86943,.79795,.88198,.77958,.70864,.81055,.90399,.88653,.96017,.82577,.77892,.78257,.97507,1.54657,.97507,.85284,.89552,.90176,.88762,.8785,.75241,.8785,.90518,.95015,.77618,.8785,.88401,.91916,.86304,.88401,.91488,.8785,.8801,.8785,.8785,.91343,.7173,1.04106,.8785,.85075,.95794,.82616,.85162,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.12401,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.73293,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.9121,.86943,.86943,.86943,.86943,.86943,.85284,.87508,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.88762,.88762,.88762,.88762,.88762,.88762,.8715,.75241,.90518,.90518,.90518,.90518,.88401,.88401,.88401,.88401,.8785,.8785,.8801,.8801,.8801,.8801,.8801,.90747,.89049,.8785,.8785,.8785,.8785,.85162,.8785,.85162,.83908,.88762,.83908,.88762,.83908,.88762,.73293,.75241,.73293,.75241,.73293,.75241,.73293,.75241,.87289,.83016,.88506,.93125,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.81921,.77618,.81921,.77618,.81921,.77618,1,1,.87356,.8785,.91075,.89608,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76229,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.79468,.91926,.88175,.70823,.94903,.9121,.8785,1,1,.9121,.8785,.87802,.88656,.8785,.86943,.8801,.86943,.8801,.86943,.8801,.87402,.89291,.77958,.91343,1,1,.77958,.91343,.70864,.7173,.70864,.7173,.70864,.7173,.70864,.7173,1,1,.81055,.75841,.81055,1.06452,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.96017,.95794,.77892,.85162,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.88762,.77539,.8715,.87508,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70674,.98387,.94721,1.33431,1.45894,.95161,1.06303,.83908,.80352,.57184,.6965,.56289,.82001,.56029,.81235,1.02988,.83908,.7762,.68156,.80367,.73133,.78257,.87356,.86943,.95958,.75727,.89019,1.04924,.9121,.7648,.86943,.87356,.79795,.78275,.81055,.77892,.9762,.82577,.99819,.84896,.95958,.77892,.96108,1.01407,.89049,1.02988,.94211,.96108,.8936,.84021,.87842,.96399,.79109,.89049,1.00813,1.02988,.86077,.87445,.92099,.84723,.86513,.8801,.75638,.85714,.78216,.79586,.87965,.94211,.97747,.78287,.97926,.84971,1.02988,.94211,.8801,.94211,.84971,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90264,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.90518,1,1,1,1,1,1,1,1,1,1,1,1,.90548,1,1,1,1,1,1,.96017,.95794,.96017,.95794,.96017,.95794,.77892,.85162,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.92794,.87012,.87012,.87012,.89552,.89552,1.42259,.71143,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.93835,.83406,.91133,.84107,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90527,1.81055,.90527,1.81055,1.31006,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.CalibriBoldFactors=i;const n={lineHeight:1.2207,lineGap:.2207};e.CalibriBoldMetrics=n;const s=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.56239,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.71805,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.90872,.85938,.79795,.87068,.77958,.69766,.81055,.90399,.88653,.96068,.82577,.77892,.78257,.97507,1.529,.97507,.85284,.89552,.90176,.94908,.86411,.74012,.86411,.88323,.95015,.86411,.86331,.88401,.91916,.86304,.88401,.9039,.86331,.86331,.86411,.86411,.90464,.70852,1.04106,.86331,.84372,.95794,.82616,.84548,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.19129,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.71805,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.90872,.85938,.85938,.85938,.85938,.85938,.85284,.87068,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.94908,.94908,.94908,.94908,.94908,.94908,.85887,.74012,.88323,.88323,.88323,.88323,.88401,.88401,.88401,.88401,.8785,.86331,.86331,.86331,.86331,.86331,.86331,.90747,.89049,.86331,.86331,.86331,.86331,.84548,.86411,.84548,.83908,.94908,.83908,.94908,.83908,.94908,.71805,.74012,.71805,.74012,.71805,.74012,.71805,.74012,.87289,.79538,.88506,.92726,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.81921,.86411,.81921,.86411,.81921,.86411,1,1,.87356,.86331,.91075,.8777,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76467,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.77312,.91926,.88175,.70823,.94903,.90872,.86331,1,1,.90872,.86331,.86906,.88116,.86331,.85938,.86331,.85938,.86331,.85938,.86331,.87402,.86549,.77958,.90464,1,1,.77958,.90464,.69766,.70852,.69766,.70852,.69766,.70852,.69766,.70852,1,1,.81055,.75841,.81055,1.06452,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.96068,.95794,.77892,.84548,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.94908,.77539,.85887,.87068,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70088,.98387,.94721,1.33431,1.45894,.95161,1.48387,.83908,.80352,.57118,.6965,.56347,.79179,.55853,.80346,1.02988,.83908,.7762,.67174,.86036,.73133,.78257,.87356,.86441,.95958,.75727,.89019,1.04924,.90872,.74889,.85938,.87891,.79795,.7957,.81055,.77892,.97447,.82577,.97466,.87179,.95958,.77892,.94252,.95612,.8753,1.02988,.92733,.94252,.87411,.84021,.8728,.95612,.74081,.8753,1.02189,1.02988,.84814,.87445,.91822,.84723,.85668,.86331,.81344,.87581,.76422,.82046,.96057,.92733,.99375,.78022,.95452,.86015,1.02988,.92733,.86331,.92733,.86015,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90631,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.88323,1,1,1,1,1,1,1,1,1,1,1,1,.85174,1,1,1,1,1,1,.96068,.95794,.96068,.95794,.96068,.95794,.77892,.84548,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.89807,.87012,.87012,.87012,.89552,.89552,1.42259,.71094,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.92972,.83406,.91133,.83326,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90616,1.81055,.90527,1.81055,1.3107,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.CalibriBoldItalicFactors=s;const r={lineHeight:1.2207,lineGap:.2207};e.CalibriBoldItalicMetrics=r;const a=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39543,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.72346,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89249,.84118,.77452,.85374,.75186,.67789,.79776,.88844,.85066,.94309,.77818,.7306,.76659,1.10369,1.38313,1.10369,1.06139,.89552,.8739,.9245,.9245,.83203,.9245,.85865,1.09842,.9245,.9245,1.03297,1.07692,.90918,1.03297,.94959,.9245,.92274,.9245,.9245,1.02933,.77832,1.20562,.9245,.8916,.98986,.86621,.89453,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.16359,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.72346,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89249,.84118,.84118,.84118,.84118,.84118,.85284,.84557,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.9245,.9245,.9245,.9245,.9245,.9245,.84843,.83203,.85865,.85865,.85865,.85865,.82601,.82601,.82601,.82601,.94469,.9245,.92274,.92274,.92274,.92274,.92274,.90747,.86651,.9245,.9245,.9245,.9245,.89453,.9245,.89453,.8675,.9245,.8675,.9245,.8675,.9245,.72346,.83203,.72346,.83203,.72346,.83203,.72346,.83203,.85193,.8875,.86477,.99034,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.81105,.9245,.81105,.9245,.81105,.9245,1,1,.86275,.9245,.90872,.93591,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77896,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.9375,.98156,.93407,.77261,1.11429,.89249,.9245,1,1,.89249,.9245,.92534,.86698,.9245,.84118,.92274,.84118,.92274,.84118,.92274,.8667,.86291,.75186,1.02933,1,1,.75186,1.02933,.67789,.77832,.67789,.77832,.67789,.77832,.67789,.77832,1,1,.79776,.97655,.79776,1.23023,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.94309,.98986,.7306,.89453,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.9245,.76318,.84843,.84557,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67009,.96334,.93695,1.35191,1.40909,.95161,1.48387,.8675,.90861,.6192,.7363,.64824,.82411,.56321,.85696,1.23516,.8675,.81552,.7286,.84134,.73206,.76659,.86275,.84369,.90685,.77892,.85871,1.02638,.89249,.75828,.84118,.85984,.77452,.76466,.79776,.7306,.90782,.77818,.903,.87291,.90685,.7306,.99058,1.03667,.94635,1.23516,.9849,.99058,.92393,.8916,.942,1.03667,.75026,.94635,1.0297,1.23516,.90918,.94048,.98217,.89746,.84153,.92274,.82507,.88832,.84438,.88178,1.03525,.9849,1.00225,.78086,.97248,.89404,1.23516,.9849,.92274,.9849,.89404,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.89693,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.85865,1,1,1,1,1,1,1,1,1,1,1,1,.90933,1,1,1,1,1,1,.94309,.98986,.94309,.98986,.94309,.98986,.7306,.89453,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.97858,.82616,.91133,.83437,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90572,1.81055,.90749,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85284,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.CalibriItalicFactors=a;const o={lineHeight:1.2207,lineGap:.2207};e.CalibriItalicMetrics=o;const c=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39016,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.73834,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89385,.85122,.77452,.86503,.75186,.68887,.79776,.88844,.85066,.94258,.77818,.7306,.76659,1.10369,1.39016,1.10369,1.06139,.89552,.8739,.86128,.94469,.8457,.94469,.89464,1.09842,.84636,.94469,1.03297,1.07692,.90918,1.03297,.95897,.94469,.9482,.94469,.94469,1.04692,.78223,1.20562,.94469,.90332,.98986,.86621,.90527,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.08707,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.73834,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89385,.85122,.85122,.85122,.85122,.85122,.85284,.85311,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.86128,.86128,.86128,.86128,.86128,.86128,.8693,.8457,.89464,.89464,.89464,.89464,.82601,.82601,.82601,.82601,.94469,.94469,.9482,.9482,.9482,.9482,.9482,.90747,.86651,.94469,.94469,.94469,.94469,.90527,.94469,.90527,.8675,.86128,.8675,.86128,.8675,.86128,.73834,.8457,.73834,.8457,.73834,.8457,.73834,.8457,.85193,.92454,.86477,.9921,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.81105,.84636,.81105,.84636,.81105,.84636,1,1,.86275,.94469,.90872,.95786,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77741,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.90452,.98156,1.11842,.77261,1.11429,.89385,.94469,1,1,.89385,.94469,.95877,.86901,.94469,.85122,.9482,.85122,.9482,.85122,.9482,.8667,.90016,.75186,1.04692,1,1,.75186,1.04692,.68887,.78223,.68887,.78223,.68887,.78223,.68887,.78223,1,1,.79776,.92188,.79776,1.23023,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.94258,.98986,.7306,.90527,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.86128,.76318,.8693,.85311,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67742,.96334,.93695,1.35191,1.40909,.95161,1.48387,.86686,.90861,.62267,.74359,.65649,.85498,.56963,.88254,1.23516,.8675,.81552,.75443,.84503,.73206,.76659,.86275,.85122,.90685,.77892,.85746,1.02638,.89385,.75657,.85122,.86275,.77452,.74171,.79776,.7306,.95165,.77818,.89772,.88831,.90685,.7306,.98142,1.02191,.96576,1.23516,.99018,.98142,.9236,.89258,.94035,1.02191,.78848,.96576,.9561,1.23516,.90918,.92578,.95424,.89746,.83969,.9482,.80113,.89442,.85208,.86155,.98022,.99018,1.00452,.81209,.99247,.89181,1.23516,.99018,.9482,.99018,.89181,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.88844,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89464,1,1,1,1,1,1,1,1,1,1,1,1,.96766,1,1,1,1,1,1,.94258,.98986,.94258,.98986,.94258,.98986,.7306,.90527,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.99331,.82616,.91133,.84286,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90527,1.81055,.90527,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,.99413,.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1];e.CalibriRegularFactors=c;const l={lineHeight:1.2207,lineGap:.2207};e.CalibriRegularMetrics=l},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.HelveticaRegularMetrics=e.HelveticaRegularFactors=e.HelveticaItalicMetrics=e.HelveticaItalicFactors=e.HelveticaBoldMetrics=e.HelveticaBoldItalicMetrics=e.HelveticaBoldItalicFactors=e.HelveticaBoldFactors=void 0;const i=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.03374,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00042,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.03828,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00034,.99977,1,.99997,1.00026,1.00078,1.00036,.99973,1.00013,1.0006,.99977,.99977,.99988,.85148,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,1.00069,1.00022,.99977,1.00001,.99984,1.00026,1.00001,1.00024,1.00001,.9999,1,1.0006,1.00001,1.00041,.99962,1.00026,1.0006,.99995,1.00041,.99942,.99973,.99927,1.00082,.99902,1.00026,1.00087,1.0006,1.00069,.99973,.99867,.99973,.9993,1.00026,1.00049,1.00056,1,.99988,.99935,.99995,.99954,1.00055,.99945,1.00032,1.0006,.99995,1.00026,.99995,1.00032,1.00001,1.00008,.99971,1.00019,.9994,1.00001,1.0006,1.00044,.99973,1.00023,1.00047,1,.99942,.99561,.99989,1.00035,.99977,1.00035,.99977,1.00019,.99944,1.00001,1.00021,.99926,1.00035,1.00035,.99942,1.00048,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.99989,1.00057,1.00001,.99936,1.00052,1.00012,.99996,1.00043,1,1.00035,.9994,.99976,1.00035,.99973,1.00052,1.00041,1.00119,1.00037,.99973,1.00002,.99986,1.00041,1.00041,.99902,.9996,1.00034,.99999,1.00026,.99999,1.00026,.99973,1.00052,.99973,1,.99973,1.00041,1.00075,.9994,1.0003,.99999,1,1.00041,.99955,1,.99915,.99973,.99973,1.00026,1.00119,.99955,.99973,1.0006,.99911,1.0006,1.00026,.99972,1.00026,.99902,1.00041,.99973,.99999,1,1,1.00038,1.0005,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,1.00047,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];e.HelveticaBoldFactors=i;const n={lineHeight:1.2,lineGap:.2};e.HelveticaBoldMetrics=n;const s=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.0044,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99971,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.01011,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99977,1,1,1.00026,.99969,.99972,.99981,.9998,1.0006,.99977,.99977,1.00022,.91155,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,.99966,1.00022,1.00032,1.00001,.99944,1.00026,1.00001,.99968,1.00001,1.00047,1,1.0006,1.00001,.99981,1.00101,1.00026,1.0006,.99948,.99981,1.00064,.99973,.99942,1.00101,1.00061,1.00026,1.00069,1.0006,1.00014,.99973,1.01322,.99973,1.00065,1.00026,1.00012,.99923,1,1.00064,1.00076,.99948,1.00055,1.00063,1.00007,.99943,1.0006,.99948,1.00026,.99948,.99943,1.00001,1.00001,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,.99973,.99978,1.00001,1.00057,.99989,.99967,.99964,.99967,.99977,.99999,.99977,1.00038,.99977,1.00001,.99973,1.00066,.99967,.99967,1.00041,.99998,.99999,.99977,1.00022,.99967,1.00001,.99977,1.00026,.99964,1.00031,1.00001,.99999,.99999,1,1.00023,1,1,.99999,1.00035,1.00001,.99999,.99973,.99977,.99999,1.00058,.99973,.99973,.99955,.9995,1.00026,1.00026,1.00032,.99989,1.00034,.99999,1.00026,1.00026,1.00026,.99973,.45998,.99973,1.00026,.99973,1.00001,.99999,.99982,.99994,.99996,1,1.00042,1.00044,1.00029,1.00023,.99973,.99973,1.00026,.99949,1.00002,.99973,1.0006,1.0006,1.0006,.99975,1.00026,1.00026,1.00032,.98685,.99973,1.00026,1,1,.99966,1.00044,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1,.99973,.99971,.99978,1,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00098,1,1,1,1.00049,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];e.HelveticaBoldItalicFactors=s;const r={lineHeight:1.35,lineGap:.2};e.HelveticaBoldItalicMetrics=r;const a=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.0288,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,.99946,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.06311,.99973,1.00024,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,1.00041,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.89547,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00001,1,1.00054,.99977,1.00084,1.00007,.99973,1.00013,.99924,1.00001,1.00001,.99945,.91221,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00001,.99999,.99977,.99933,1.00022,1.00054,1.00001,1.00065,1.00026,1.00001,1.0001,1.00001,1.00052,1,1.0006,1.00001,.99945,.99897,.99968,.99924,1.00036,.99945,.99949,1,1.0006,.99897,.99918,.99968,.99911,.99924,1,.99962,1.01487,1,1.0005,.99973,1.00012,1.00043,1,.99995,.99994,1.00036,.99947,1.00019,1.00063,1.00025,.99924,1.00036,.99973,1.00036,1.00025,1.00001,1.00001,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,.99957,.99972,.9994,.99954,.99975,1.00051,1.00001,1.00019,1.00001,1.0001,.99986,1.00001,1.00001,1.00038,.99954,.99954,.9994,1.00066,.99999,.99977,1.00022,1.00054,1.00001,.99977,1.00026,.99975,1.0001,1.00001,.99993,.9995,.99955,1.00016,.99978,.99974,1.00019,1.00022,.99955,1.00053,.99973,1.00089,1.00005,.99967,1.00048,.99973,1.00002,1.00034,.99973,.99973,.99964,1.00006,1.00066,.99947,.99973,.98894,.99973,1,.44898,1,.99946,1,1.00039,1.00082,.99991,.99991,.99985,1.00022,1.00023,1.00061,1.00006,.99966,.99973,.99973,.99973,1.00019,1.0008,1,.99924,.99924,.99924,.99983,1.00044,.99973,.99964,.98332,1,.99973,1,1,.99962,.99895,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,1.00423,.99925,.99999,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00049,1,1.00245,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,1.00003,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];e.HelveticaItalicFactors=a;const o={lineHeight:1.35,lineGap:.2};e.HelveticaItalicMetrics=o;const c=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.04596,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,1.00019,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.02572,.99973,1.00005,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,.99999,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.84533,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99928,1,.99977,1.00013,1.00055,.99947,.99945,.99941,.99924,1.00001,1.00001,1.0004,.91621,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00005,.99999,.99977,1.00015,1.00022,.99977,1.00001,.99973,1.00026,1.00001,1.00019,1.00001,.99946,1,1.0006,1.00001,.99978,1.00045,.99973,.99924,1.00023,.99978,.99966,1,1.00065,1.00045,1.00019,.99973,.99973,.99924,1,1,.96499,1,1.00055,.99973,1.00008,1.00027,1,.9997,.99995,1.00023,.99933,1.00019,1.00015,1.00031,.99924,1.00023,.99973,1.00023,1.00031,1.00001,.99928,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,.99988,.99975,1,1.00082,.99561,.9996,1.00035,1.00001,.99962,1.00001,1.00092,.99964,1.00001,.99963,.99999,1.00035,1.00035,1.00082,.99962,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.9996,.99967,1.00001,1.00034,1.00074,1.00054,1.00053,1.00063,.99971,.99962,1.00035,.99975,.99977,.99973,1.00043,.99953,1.0007,.99915,.99973,1.00008,.99892,1.00073,1.00073,1.00114,.99915,1.00073,.99955,.99973,1.00092,.99973,1,.99998,1,1.0003,1,1.00043,1.00001,.99969,1.0003,1,1.00035,1.00001,.9995,1,1.00092,.99973,.99973,.99973,1.0007,.9995,1,.99924,1.0006,.99924,.99972,1.00062,.99973,1.00114,1.00073,1,.99955,1,1,1.00047,.99968,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,.99925,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.HelveticaRegularFactors=c;const l={lineHeight:1.2,lineGap:.2};e.HelveticaRegularMetrics=l},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.LiberationSansRegularWidths=e.LiberationSansRegularMapping=e.LiberationSansItalicWidths=e.LiberationSansItalicMapping=e.LiberationSansBoldWidths=e.LiberationSansBoldMapping=e.LiberationSansBoldItalicWidths=e.LiberationSansBoldItalicMapping=void 0;const i=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,719,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,785,556,556,278,722,556,556,611,278,611,278,611,385,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,465,722,333,853,906,474,825,927,838,278,722,722,601,719,667,611,722,778,278,722,667,833,722,644,778,722,667,600,611,667,821,667,809,802,278,667,615,451,611,278,582,615,610,556,606,475,460,611,541,278,558,556,612,556,445,611,766,619,520,684,446,582,715,576,753,845,278,582,611,582,845,667,669,885,567,711,667,278,276,556,1094,1062,875,610,722,622,719,722,719,722,567,712,667,904,626,719,719,610,702,833,722,778,719,667,722,611,622,854,667,730,703,1005,1019,870,979,719,711,1031,719,556,618,615,417,635,556,709,497,615,615,500,635,740,604,611,604,611,556,490,556,875,556,615,581,833,844,729,854,615,552,854,583,556,556,611,417,552,556,278,281,278,969,906,611,500,615,556,604,778,611,487,447,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333];e.LiberationSansBoldWidths=i;const n=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];e.LiberationSansBoldMapping=n;const s=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,740,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,782,556,556,278,722,556,556,611,278,611,278,611,396,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,333,722,333,854,906,473,844,930,847,278,722,722,610,671,667,611,722,778,278,722,667,833,722,657,778,718,667,590,611,667,822,667,829,781,278,667,620,479,611,278,591,620,621,556,610,479,492,611,558,278,566,556,603,556,450,611,712,605,532,664,409,591,704,578,773,834,278,591,611,591,834,667,667,886,614,719,667,278,278,556,1094,1042,854,622,719,677,719,722,708,722,614,722,667,927,643,719,719,615,687,833,722,778,719,667,722,611,677,781,667,729,708,979,989,854,1e3,708,719,1042,729,556,619,604,534,618,556,736,510,611,611,507,622,740,604,611,611,611,556,889,556,885,556,646,583,889,935,707,854,594,552,865,589,556,556,611,469,563,556,278,278,278,969,906,611,507,619,556,611,778,611,575,467,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1e3,768,600,834,834,834,834,999,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333];e.LiberationSansBoldItalicWidths=s;const r=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];e.LiberationSansBoldItalicMapping=r;const a=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,625,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,733,444,500,222,667,500,500,556,222,556,222,556,281,556,400,556,222,722,556,722,556,722,556,615,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,354,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,789,846,389,794,865,775,222,667,667,570,671,667,611,722,778,278,667,667,833,722,648,778,725,667,600,611,667,837,667,831,761,278,667,570,439,555,222,550,570,571,500,556,439,463,555,542,222,500,492,548,500,447,556,670,573,486,603,374,550,652,546,728,779,222,550,556,550,779,667,667,843,544,708,667,278,278,500,1066,982,844,589,715,639,724,667,651,667,544,704,667,917,614,715,715,589,686,833,722,778,725,667,722,611,639,795,667,727,673,920,923,805,886,651,694,1022,682,556,562,522,493,553,556,688,465,556,556,472,564,686,550,556,556,556,500,833,500,835,500,572,518,830,851,621,736,526,492,752,534,556,556,556,378,496,500,222,222,222,910,828,556,472,565,500,556,778,556,492,339,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1e3,768,600,834,834,834,834,1e3,500,998,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,584,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285];e.LiberationSansItalicWidths=a;const o=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];e.LiberationSansItalicMapping=o;const c=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,615,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,735,444,500,222,667,500,500,556,222,556,222,556,292,556,334,556,222,722,556,722,556,722,556,604,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,375,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,784,838,384,774,855,752,222,667,667,551,668,667,611,722,778,278,667,668,833,722,650,778,722,667,618,611,667,798,667,835,748,278,667,578,446,556,222,547,578,575,500,557,446,441,556,556,222,500,500,576,500,448,556,690,569,482,617,395,547,648,525,713,781,222,547,556,547,781,667,667,865,542,719,667,278,278,500,1057,1010,854,583,722,635,719,667,656,667,542,677,667,923,604,719,719,583,656,833,722,778,719,667,722,611,635,760,667,740,667,917,938,792,885,656,719,1010,722,556,573,531,365,583,556,669,458,559,559,438,583,688,552,556,542,556,500,458,500,823,500,573,521,802,823,625,719,521,510,750,542,556,556,556,365,510,500,222,278,222,906,812,556,438,559,500,552,778,556,489,411,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285];e.LiberationSansRegularWidths=c;const l=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];e.LiberationSansRegularMapping=l},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.MyriadProRegularMetrics=e.MyriadProRegularFactors=e.MyriadProItalicMetrics=e.MyriadProItalicFactors=e.MyriadProBoldMetrics=e.MyriadProBoldItalicMetrics=e.MyriadProBoldItalicFactors=e.MyriadProBoldFactors=void 0;const i=[1.36898,1,1,.72706,.80479,.83734,.98894,.99793,.9897,.93884,.86209,.94292,.94292,1.16661,1.02058,.93582,.96694,.93582,1.19137,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.78076,.78076,1.02058,1.02058,1.02058,.72851,.78966,.90838,.83637,.82391,.96376,.80061,.86275,.8768,.95407,1.0258,.73901,.85022,.83655,1.0156,.95546,.92179,.87107,.92179,.82114,.8096,.89713,.94438,.95353,.94083,.91905,.90406,.9446,.94292,1.18777,.94292,1.02058,.89903,.90088,.94938,.97898,.81093,.97571,.94938,1.024,.9577,.95933,.98621,1.0474,.97455,.98981,.9672,.95933,.9446,.97898,.97407,.97646,.78036,1.10208,.95442,.95298,.97579,.9332,.94039,.938,.80687,1.01149,.80687,1.02058,.80479,.99793,.99793,.99793,.99793,1.01149,1.00872,.90088,.91882,1.0213,.8361,1.02058,.62295,.54324,.89022,1.08595,1,1,.90088,1,.97455,.93582,.90088,1,1.05686,.8361,.99642,.99642,.99642,.72851,.90838,.90838,.90838,.90838,.90838,.90838,.868,.82391,.80061,.80061,.80061,.80061,1.0258,1.0258,1.0258,1.0258,.97484,.95546,.92179,.92179,.92179,.92179,.92179,1.02058,.92179,.94438,.94438,.94438,.94438,.90406,.86958,.98225,.94938,.94938,.94938,.94938,.94938,.94938,.9031,.81093,.94938,.94938,.94938,.94938,.98621,.98621,.98621,.98621,.93969,.95933,.9446,.9446,.9446,.9446,.9446,1.08595,.9446,.95442,.95442,.95442,.95442,.94039,.97898,.94039,.90838,.94938,.90838,.94938,.90838,.94938,.82391,.81093,.82391,.81093,.82391,.81093,.82391,.81093,.96376,.84313,.97484,.97571,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.8768,.9577,.8768,.9577,.8768,.9577,1,1,.95407,.95933,.97069,.95933,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,.887,1.01591,.73901,1.0474,1,1,.97455,.83655,.98981,1,1,.83655,.73977,.83655,.73903,.84638,1.033,.95546,.95933,1,1,.95546,.95933,.8271,.95417,.95933,.92179,.9446,.92179,.9446,.92179,.9446,.936,.91964,.82114,.97646,1,1,.82114,.97646,.8096,.78036,.8096,.78036,1,1,.8096,.78036,1,1,.89713,.77452,.89713,1.10208,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94083,.97579,.90406,.94039,.90406,.9446,.938,.9446,.938,.9446,.938,1,.99793,.90838,.94938,.868,.9031,.92179,.9446,1,1,.89713,1.10208,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90989,.9358,.91945,.83181,.75261,.87992,.82976,.96034,.83689,.97268,1.0078,.90838,.83637,.8019,.90157,.80061,.9446,.95407,.92436,1.0258,.85022,.97153,1.0156,.95546,.89192,.92179,.92361,.87107,.96318,.89713,.93704,.95638,.91905,.91709,.92796,1.0258,.93704,.94836,1.0373,.95933,1.0078,.95871,.94836,.96174,.92601,.9498,.98607,.95776,.95933,1.05453,1.0078,.98275,.9314,.95617,.91701,1.05993,.9446,.78367,.9553,1,.86832,1.0128,.95871,.99394,.87548,.96361,.86774,1.0078,.95871,.9446,.95871,.86774,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.94083,.97579,.94083,.97579,.94083,.97579,.90406,.94039,.96694,1,.89903,1,1,1,.93582,.93582,.93582,1,.908,.908,.918,.94219,.94219,.96544,1,1.285,1,1,.81079,.81079,1,1,.74854,1,1,1,1,.99793,1,1,1,.65,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.17173,1,.80535,.76169,1.02058,1.0732,1.05486,1,1,1.30692,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.16161,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.MyriadProBoldFactors=i;const n={lineHeight:1.2,lineGap:.2};e.MyriadProBoldMetrics=n;const s=[1.36898,1,1,.66227,.80779,.81625,.97276,.97276,.97733,.92222,.83266,.94292,.94292,1.16148,1.02058,.93582,.96694,.93582,1.17337,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.78076,.78076,1.02058,1.02058,1.02058,.71541,.76813,.85576,.80591,.80729,.94299,.77512,.83655,.86523,.92222,.98621,.71743,.81698,.79726,.98558,.92222,.90637,.83809,.90637,.80729,.76463,.86275,.90699,.91605,.9154,.85308,.85458,.90531,.94292,1.21296,.94292,1.02058,.89903,1.18616,.99613,.91677,.78216,.91677,.90083,.98796,.9135,.92168,.95381,.98981,.95298,.95381,.93459,.92168,.91513,.92004,.91677,.95077,.748,1.04502,.91677,.92061,.94236,.89544,.89364,.9,.80687,.8578,.80687,1.02058,.80779,.97276,.97276,.97276,.97276,.8578,.99973,1.18616,.91339,1.08074,.82891,1.02058,.55509,.71526,.89022,1.08595,1,1,1.18616,1,.96736,.93582,1.18616,1,1.04864,.82711,.99043,.99043,.99043,.71541,.85576,.85576,.85576,.85576,.85576,.85576,.845,.80729,.77512,.77512,.77512,.77512,.98621,.98621,.98621,.98621,.95961,.92222,.90637,.90637,.90637,.90637,.90637,1.02058,.90251,.90699,.90699,.90699,.90699,.85458,.83659,.94951,.99613,.99613,.99613,.99613,.99613,.99613,.85811,.78216,.90083,.90083,.90083,.90083,.95381,.95381,.95381,.95381,.9135,.92168,.91513,.91513,.91513,.91513,.91513,1.08595,.91677,.91677,.91677,.91677,.91677,.89364,.92332,.89364,.85576,.99613,.85576,.99613,.85576,.99613,.80729,.78216,.80729,.78216,.80729,.78216,.80729,.78216,.94299,.76783,.95961,.91677,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.86523,.9135,.86523,.9135,.86523,.9135,1,1,.92222,.92168,.92222,.92168,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.86036,.97096,.71743,.98981,1,1,.95298,.79726,.95381,1,1,.79726,.6894,.79726,.74321,.81691,1.0006,.92222,.92168,1,1,.92222,.92168,.79464,.92098,.92168,.90637,.91513,.90637,.91513,.90637,.91513,.909,.87514,.80729,.95077,1,1,.80729,.95077,.76463,.748,.76463,.748,1,1,.76463,.748,1,1,.86275,.72651,.86275,1.04502,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.9154,.94236,.85458,.89364,.85458,.90531,.9,.90531,.9,.90531,.9,1,.97276,.85576,.99613,.845,.85811,.90251,.91677,1,1,.86275,1.04502,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.00899,1.30628,.85576,.80178,.66862,.7927,.69323,.88127,.72459,.89711,.95381,.85576,.80591,.7805,.94729,.77512,.90531,.92222,.90637,.98621,.81698,.92655,.98558,.92222,.85359,.90637,.90976,.83809,.94523,.86275,.83509,.93157,.85308,.83392,.92346,.98621,.83509,.92886,.91324,.92168,.95381,.90646,.92886,.90557,.86847,.90276,.91324,.86842,.92168,.99531,.95381,.9224,.85408,.92699,.86847,1.0051,.91513,.80487,.93481,1,.88159,1.05214,.90646,.97355,.81539,.89398,.85923,.95381,.90646,.91513,.90646,.85923,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9154,.94236,.9154,.94236,.9154,.94236,.85458,.89364,.96694,1,.89903,1,1,1,.91782,.91782,.91782,1,.896,.896,.896,.9332,.9332,.95973,1,1.26,1,1,.80479,.80178,1,1,.85633,1,1,1,1,.97276,1,1,1,.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,.79199,.78694,1.02058,1.03493,1.05486,1,1,1.23026,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.20006,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.MyriadProBoldItalicFactors=s;const r={lineHeight:1.2,lineGap:.2};e.MyriadProBoldItalicMetrics=r;const a=[1.36898,1,1,.65507,.84943,.85639,.88465,.88465,.86936,.88307,.86948,.85283,.85283,1.06383,1.02058,.75945,.9219,.75945,1.17337,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.75945,.75945,1.02058,1.02058,1.02058,.69046,.70926,.85158,.77812,.76852,.89591,.70466,.76125,.80094,.86822,.83864,.728,.77212,.79475,.93637,.87514,.8588,.76013,.8588,.72421,.69866,.77598,.85991,.80811,.87832,.78112,.77512,.8562,1.0222,1.18417,1.0222,1.27014,.89903,1.15012,.93859,.94399,.846,.94399,.81453,1.0186,.94219,.96017,1.03075,1.02175,.912,1.03075,.96998,.96017,.93859,.94399,.94399,.95493,.746,1.12658,.94578,.91,.979,.882,.882,.83,.85034,.83537,.85034,1.02058,.70869,.88465,.88465,.88465,.88465,.83537,.90083,1.15012,.9161,.94565,.73541,1.02058,.53609,.69353,.79519,1.08595,1,1,1.15012,1,.91974,.75945,1.15012,1,.9446,.73361,.9005,.9005,.9005,.62864,.85158,.85158,.85158,.85158,.85158,.85158,.773,.76852,.70466,.70466,.70466,.70466,.83864,.83864,.83864,.83864,.90561,.87514,.8588,.8588,.8588,.8588,.8588,1.02058,.85751,.85991,.85991,.85991,.85991,.77512,.76013,.88075,.93859,.93859,.93859,.93859,.93859,.93859,.8075,.846,.81453,.81453,.81453,.81453,.82424,.82424,.82424,.82424,.9278,.96017,.93859,.93859,.93859,.93859,.93859,1.08595,.8562,.94578,.94578,.94578,.94578,.882,.94578,.882,.85158,.93859,.85158,.93859,.85158,.93859,.76852,.846,.76852,.846,.76852,.846,.76852,.846,.89591,.8544,.90561,.94399,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.80094,.94219,.80094,.94219,.80094,.94219,1,1,.86822,.96017,.86822,.96017,.83864,.82424,.83864,.82424,.83864,.82424,.83864,1.03075,.83864,.82424,.81402,1.02738,.728,1.02175,1,1,.912,.79475,1.03075,1,1,.79475,.83911,.79475,.66266,.80553,1.06676,.87514,.96017,1,1,.87514,.96017,.86865,.87396,.96017,.8588,.93859,.8588,.93859,.8588,.93859,.867,.84759,.72421,.95493,1,1,.72421,.95493,.69866,.746,.69866,.746,1,1,.69866,.746,1,1,.77598,.88417,.77598,1.12658,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.87832,.979,.77512,.882,.77512,.8562,.83,.8562,.83,.8562,.83,1,.88465,.85158,.93859,.773,.8075,.85751,.8562,1,1,.77598,1.12658,1.15012,1.15012,1.15012,1.15012,1.15012,1.15313,1.15012,1.15012,1.15012,1.08106,1.03901,.85158,.77025,.62264,.7646,.65351,.86026,.69461,.89947,1.03075,.85158,.77812,.76449,.88836,.70466,.8562,.86822,.8588,.83864,.77212,.85308,.93637,.87514,.82352,.8588,.85701,.76013,.89058,.77598,.8156,.82565,.78112,.77899,.89386,.83864,.8156,.9486,.92388,.96186,1.03075,.91123,.9486,.93298,.878,.93942,.92388,.84596,.96186,.95119,1.03075,.922,.88787,.95829,.88,.93559,.93859,.78815,.93758,1,.89217,1.03737,.91123,.93969,.77487,.85769,.86799,1.03075,.91123,.93859,.91123,.86799,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87832,.979,.87832,.979,.87832,.979,.77512,.882,.9219,1,.89903,1,1,1,.87321,.87321,.87321,1,1.027,1.027,1.027,.86847,.86847,.79121,1,1.124,1,1,.73572,.73572,1,1,.85034,1,1,1,1,.88465,1,1,1,.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,.74948,.75187,1.02058,.98391,1.02119,1,1,1.06233,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05233,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.MyriadProItalicFactors=a;const o={lineHeight:1.2,lineGap:.2};e.MyriadProItalicMetrics=o;const c=[1.36898,1,1,.76305,.82784,.94935,.89364,.92241,.89073,.90706,.98472,.85283,.85283,1.0664,1.02058,.74505,.9219,.74505,1.23456,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.74505,.74505,1.02058,1.02058,1.02058,.73002,.72601,.91755,.8126,.80314,.92222,.73764,.79726,.83051,.90284,.86023,.74,.8126,.84869,.96518,.91115,.8858,.79761,.8858,.74498,.73914,.81363,.89591,.83659,.89633,.85608,.8111,.90531,1.0222,1.22736,1.0222,1.27014,.89903,.90088,.86667,1.0231,.896,1.01411,.90083,1.05099,1.00512,.99793,1.05326,1.09377,.938,1.06226,1.00119,.99793,.98714,1.0231,1.01231,.98196,.792,1.19137,.99074,.962,1.01915,.926,.942,.856,.85034,.92006,.85034,1.02058,.69067,.92241,.92241,.92241,.92241,.92006,.9332,.90088,.91882,.93484,.75339,1.02058,.56866,.54324,.79519,1.08595,1,1,.90088,1,.95325,.74505,.90088,1,.97198,.75339,.91009,.91009,.91009,.66466,.91755,.91755,.91755,.91755,.91755,.91755,.788,.80314,.73764,.73764,.73764,.73764,.86023,.86023,.86023,.86023,.92915,.91115,.8858,.8858,.8858,.8858,.8858,1.02058,.8858,.89591,.89591,.89591,.89591,.8111,.79611,.89713,.86667,.86667,.86667,.86667,.86667,.86667,.86936,.896,.90083,.90083,.90083,.90083,.84224,.84224,.84224,.84224,.97276,.99793,.98714,.98714,.98714,.98714,.98714,1.08595,.89876,.99074,.99074,.99074,.99074,.942,1.0231,.942,.91755,.86667,.91755,.86667,.91755,.86667,.80314,.896,.80314,.896,.80314,.896,.80314,.896,.92222,.93372,.92915,1.01411,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.83051,1.00512,.83051,1.00512,.83051,1.00512,1,1,.90284,.99793,.90976,.99793,.86023,.84224,.86023,.84224,.86023,.84224,.86023,1.05326,.86023,.84224,.82873,1.07469,.74,1.09377,1,1,.938,.84869,1.06226,1,1,.84869,.83704,.84869,.81441,.85588,1.08927,.91115,.99793,1,1,.91115,.99793,.91887,.90991,.99793,.8858,.98714,.8858,.98714,.8858,.98714,.894,.91434,.74498,.98196,1,1,.74498,.98196,.73914,.792,.73914,.792,1,1,.73914,.792,1,1,.81363,.904,.81363,1.19137,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89633,1.01915,.8111,.942,.8111,.90531,.856,.90531,.856,.90531,.856,1,.92241,.91755,.86667,.788,.86936,.8858,.89876,1,1,.81363,1.19137,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90388,1.03901,.92138,.78105,.7154,.86169,.80513,.94007,.82528,.98612,1.06226,.91755,.8126,.81884,.92819,.73764,.90531,.90284,.8858,.86023,.8126,.91172,.96518,.91115,.83089,.8858,.87791,.79761,.89297,.81363,.88157,.89992,.85608,.81992,.94307,.86023,.88157,.95308,.98699,.99793,1.06226,.95817,.95308,.97358,.928,.98088,.98699,.92761,.99793,.96017,1.06226,.986,.944,.95978,.938,.96705,.98714,.80442,.98972,1,.89762,1.04552,.95817,.99007,.87064,.91879,.88888,1.06226,.95817,.98714,.95817,.88888,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89633,1.01915,.89633,1.01915,.89633,1.01915,.8111,.942,.9219,1,.89903,1,1,1,.93173,.93173,.93173,1,1.06304,1.06304,1.06904,.89903,.89903,.80549,1,1.156,1,1,.76575,.76575,1,1,.72458,1,1,1,1,.92241,1,1,1,.619,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.07257,1,.74705,.71119,1.02058,1.024,1.02119,1,1,1.1536,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05638,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.MyriadProRegularFactors=c;const l={lineHeight:1.2,lineGap:.2};e.MyriadProRegularMetrics=l},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.SegoeuiRegularMetrics=e.SegoeuiRegularFactors=e.SegoeuiItalicMetrics=e.SegoeuiItalicFactors=e.SegoeuiBoldMetrics=e.SegoeuiBoldItalicMetrics=e.SegoeuiBoldItalicFactors=e.SegoeuiBoldFactors=void 0;const i=[1.76738,1,1,.99297,.9824,1.04016,1.06497,1.03424,.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,.9754,1.21408,.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,.81378,.81378,1.2107,1.2107,1.2107,.71703,.97847,.97363,.88776,.8641,1.02096,.79795,.85132,.914,1.06085,1.1406,.8007,.89858,.83693,1.14889,1.09398,.97489,.92094,.97489,.90399,.84041,.95923,1.00135,1,1.06467,.98243,.90996,.99361,1.1085,1.56942,1.1085,1.2107,.74627,.94282,.96752,1.01519,.86304,1.01359,.97278,1.15103,1.01359,.98561,1.02285,1.02285,1.00527,1.02285,1.0302,.99041,1.0008,1.01519,1.01359,1.02258,.79104,1.16862,.99041,.97454,1.02511,.99298,.96752,.95801,.94856,1.16579,.94856,1.2107,.9824,1.03424,1.03424,1,1.03424,1.16579,.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,.75155,.94994,1.28826,1.21408,1.21408,.91056,1,.91572,.9754,.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,.71703,.97363,.97363,.97363,.97363,.97363,.97363,.93506,.8641,.79795,.79795,.79795,.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,.97426,.97426,.97426,.97426,.97426,1.2107,.97489,1.00135,1.00135,1.00135,1.00135,.90996,.92094,1.02798,.96752,.96752,.96752,.96752,.96752,.96752,.93136,.86304,.97278,.97278,.97278,.97278,1.02285,1.02285,1.02285,1.02285,.97122,.99041,1,1,1,1,1,1.28826,1.0008,.99041,.99041,.99041,.99041,.96752,1.01519,.96752,.97363,.96752,.97363,.96752,.97363,.96752,.8641,.86304,.8641,.86304,.8641,.86304,.8641,.86304,1.02096,1.03057,1.02096,1.03517,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.914,1.01359,.914,1.01359,.914,1.01359,1,1,1.06085,.98561,1.06085,1.00879,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,.97138,1.08692,.8007,1.02285,1,1,1.00527,.83693,1.02285,1,1,.83693,.9455,.83693,.90418,.83693,1.13005,1.09398,.99041,1,1,1.09398,.99041,.96692,1.09251,.99041,.97489,1.0008,.97489,1.0008,.97489,1.0008,.93994,.97931,.90399,1.02258,1,1,.90399,1.02258,.84041,.79104,.84041,.79104,.84041,.79104,.84041,.79104,1,1,.95923,1.07034,.95923,1.16862,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.06467,1.02511,.90996,.96752,.90996,.99361,.95801,.99361,.95801,.99361,.95801,1.07733,1.03424,.97363,.96752,.93506,.93136,.97489,1.0008,1,1,.95923,1.16862,1.15103,1.15103,1.01173,1.03959,.75953,.81378,.79912,1.15103,1.21994,.95161,.87815,1.01149,.81525,.7676,.98167,1.01134,1.02546,.84097,1.03089,1.18102,.97363,.88776,.85134,.97826,.79795,.99361,1.06085,.97489,1.1406,.89858,1.0388,1.14889,1.09398,.86039,.97489,1.0595,.92094,.94793,.95923,.90996,.99346,.98243,1.02112,.95493,1.1406,.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,.97531,1.0106,1.0008,1.13189,1.18102,1.02277,.98683,1.0016,.99561,1.07237,1.0008,.90434,.99921,.93803,.8965,1.23085,1.06628,1.04983,.96268,1.0499,.98439,1.18102,1.06628,1.0008,1.06628,.98439,.79795,1,1,1,1,1,1,1,1,1,1,1,1,1.09466,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.97278,1,1,1,1,1,1,1,1,1,1,1,1,1.02065,1,1,1,1,1,1,1.06467,1.02511,1.06467,1.02511,1.06467,1.02511,.90996,.96752,1,1.21408,.89903,1,1,.75155,1.04394,1.04394,1.04394,1.04394,.98633,.98633,.98633,.73047,.73047,1.20642,.91211,1.25635,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.12454,.93503,1.03424,1.19687,1.03424,1,1,1,.771,1,1,1.15749,1.15749,1.15749,1.10948,.86279,.94434,.86279,.94434,.86182,1,1,1.16897,1,.96085,.90137,1.2107,1.18416,1.13973,.69825,.9716,2.10339,1.29004,1.29004,1.21172,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18874,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.09193,1.09193,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.SegoeuiBoldFactors=i;const n={lineHeight:1.33008,lineGap:0};e.SegoeuiBoldMetrics=n;const s=[1.76738,1,1,.98946,1.03959,1.04016,1.02809,1.036,.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,.9754,1.21261,.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,.81378,.81378,1.21237,1.21237,1.21237,.73541,.97847,.97363,.89723,.87897,1.0426,.79429,.85292,.91149,1.05815,1.1406,.79631,.90128,.83853,1.04396,1.10615,.97552,.94436,.97552,.88641,.80527,.96083,1.00135,1,1.06777,.9817,.91142,.99361,1.11144,1.57293,1.11144,1.21237,.74627,1.31818,1.06585,.97042,.83055,.97042,.93503,1.1261,.97042,.97922,1.14236,.94552,1.01054,1.14236,1.02471,.97922,.94165,.97042,.97042,1.0276,.78929,1.1261,.97922,.95874,1.02197,.98507,.96752,.97168,.95107,1.16579,.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,.79487,.94994,1.29004,1.24047,1.24047,1.31818,1,.91484,.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,.73541,.97363,.97363,.97363,.97363,.97363,.97363,.94385,.87897,.79429,.79429,.79429,.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,.97552,.97552,.97552,.97552,.97552,1.21237,.97552,1.00135,1.00135,1.00135,1.00135,.91142,.94436,.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,.96705,.83055,.93503,.93503,.93503,.93503,1.14236,1.14236,1.14236,1.14236,.93125,.97922,.94165,.94165,.94165,.94165,.94165,1.29004,.94165,.97922,.97922,.97922,.97922,.96752,.97042,.96752,.97363,1.06585,.97363,1.06585,.97363,1.06585,.87897,.83055,.87897,.83055,.87897,.83055,.87897,.83055,1.0426,1.0033,1.0426,.97042,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.91149,.97042,.91149,.97042,.91149,.97042,1,1,1.05815,.97922,1.05815,.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,.97441,1.04302,.79631,1.01582,1,1,1.01054,.83853,1.14236,1,1,.83853,1.09125,.83853,.90418,.83853,1.19508,1.10615,.97922,1,1,1.10615,.97922,1.01034,1.10466,.97922,.97552,.94165,.97552,.94165,.97552,.94165,.91602,.91981,.88641,1.0276,1,1,.88641,1.0276,.80527,.78929,.80527,.78929,.80527,.78929,.80527,.78929,1,1,.96083,1.05403,.95923,1.16862,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.06777,1.02197,.91142,.96752,.91142,.99361,.97168,.99361,.97168,.99361,.97168,1.23199,1.036,.97363,1.06585,.94385,.96705,.97552,.94165,1,1,.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,.95161,1.27126,1.00811,.83284,.77702,.99137,.95253,1.0347,.86142,1.07205,1.14236,.97363,.89723,.86869,1.09818,.79429,.99361,1.05815,.97552,1.1406,.90128,1.06662,1.04396,1.10615,.84918,.97552,1.04694,.94436,.98015,.96083,.91142,1.00356,.9817,1.01945,.98999,1.1406,.91142,1.04961,.9898,1.00639,1.14236,1.07514,1.04961,.99607,1.02897,1.008,.9898,.95134,1.00639,1.11121,1.14236,1.00518,.97981,1.02186,1,1.08578,.94165,.99314,.98387,.93028,.93377,1.35125,1.07514,1.10687,.93491,1.04232,1.00351,1.14236,1.07514,.94165,1.07514,1.00351,.79429,1,1,1,1,1,1,1,1,1,1,1,1,1.09097,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.93503,1,1,1,1,1,1,1,1,1,1,1,1,.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,.91142,.96752,1,1.21261,.89903,1,1,.75155,1.04745,1.04745,1.04745,1.04394,.98633,.98633,.98633,.72959,.72959,1.20502,.91406,1.26514,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.09125,.93327,1.03336,1.16541,1.036,1,1,1,.771,1,1,1.15574,1.15574,1.15574,1.15574,.86364,.94434,.86279,.94434,.86224,1,1,1.16798,1,.96085,.90068,1.21237,1.18416,1.13904,.69825,.9716,2.10339,1.29004,1.29004,1.21339,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18775,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.13269,1.13269,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.SegoeuiBoldItalicFactors=s;const r={lineHeight:1.33008,lineGap:0};e.SegoeuiBoldItalicMetrics=r;const a=[1.76738,1,1,.98946,1.14763,1.05365,1.06234,.96927,.92586,1.15373,1.18414,.91349,.91349,1.07403,1.17308,.78383,1.20088,.78383,1.42531,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78383,.78383,1.17308,1.17308,1.17308,.77349,.94565,.94729,.85944,.88506,.9858,.74817,.80016,.88449,.98039,.95782,.69238,.89898,.83231,.98183,1.03989,.96924,.86237,.96924,.80595,.74524,.86091,.95402,.94143,.98448,.8858,.83089,.93285,1.0949,1.39016,1.0949,1.45994,.74627,1.04839,.97454,.97454,.87207,.97454,.87533,1.06151,.97454,1.00176,1.16484,1.08132,.98047,1.16484,1.02989,1.01054,.96225,.97454,.97454,1.06598,.79004,1.16344,1.00351,.94629,.9973,.91016,.96777,.9043,.91082,.92481,.91082,1.17308,.95748,.96927,.96927,1,.96927,.92481,.80597,1.04839,1.23393,1.1781,.9245,1.17308,1.20808,.63218,.94261,1.24822,1.09971,1.09971,1.04839,1,.85273,.78032,1.04839,1.09971,1.22326,.9245,1.09836,1.13525,1.15222,.70424,.94729,.94729,.94729,.94729,.94729,.94729,.85498,.88506,.74817,.74817,.74817,.74817,.95782,.95782,.95782,.95782,.9858,1.03989,.96924,.96924,.96924,.96924,.96924,1.17308,.96924,.95402,.95402,.95402,.95402,.83089,.86237,.88409,.97454,.97454,.97454,.97454,.97454,.97454,.92916,.87207,.87533,.87533,.87533,.87533,.93146,.93146,.93146,.93146,.93854,1.01054,.96225,.96225,.96225,.96225,.96225,1.24822,.8761,1.00351,1.00351,1.00351,1.00351,.96777,.97454,.96777,.94729,.97454,.94729,.97454,.94729,.97454,.88506,.87207,.88506,.87207,.88506,.87207,.88506,.87207,.9858,.95391,.9858,.97454,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.88449,.97454,.88449,.97454,.88449,.97454,1,1,.98039,1.00176,.98039,1.00176,.95782,.93146,.95782,.93146,.95782,.93146,.95782,1.16484,.95782,.93146,.84421,1.12761,.69238,1.08132,1,1,.98047,.83231,1.16484,1,1,.84723,1.04861,.84723,.78755,.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,.9857,1.03849,1.01054,.96924,.96225,.96924,.96225,.96924,.96225,.92383,.90171,.80595,1.06598,1,1,.80595,1.06598,.74524,.79004,.74524,.79004,.74524,.79004,.74524,.79004,1,1,.86091,1.02759,.85771,1.16344,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.98448,.9973,.83089,.96777,.83089,.93285,.9043,.93285,.9043,.93285,.9043,1.31868,.96927,.94729,.97454,.85498,.92916,.96924,.8761,1,1,.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,.81965,.81965,.94729,.78032,.71022,.90883,.84171,.99877,.77596,1.05734,1.2,.94729,.85944,.82791,.9607,.74817,.93285,.98039,.96924,.95782,.89898,.98316,.98183,1.03989,.78614,.96924,.97642,.86237,.86075,.86091,.83089,.90082,.8858,.97296,1.01284,.95782,.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,.98205,1.03809,1.05097,1.04,.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,.96225,.8965,.97783,.93574,.94818,1.30679,1.0675,1.11826,.99821,1.0557,1.0326,1.2,1.0675,.96225,1.0675,1.0326,.74817,1,1,1,1,1,1,1,1,1,1,1,1,1.03754,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87533,1,1,1,1,1,1,1,1,1,1,1,1,.98705,1,1,1,1,1,1,.98448,.9973,.98448,.9973,.98448,.9973,.83089,.96777,1,1.20088,.89903,1,1,.75155,.94945,.94945,.94945,.94945,1.12317,1.12317,1.12317,.67603,.67603,1.15621,.73584,1.21191,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87709,.96927,1.01473,.96927,1,1,1,.77295,1,1,1.09836,1.09836,1.09836,1.01522,.86321,.94434,.8649,.94434,.86182,1,1,1.083,1,.91578,.86438,1.17308,1.18416,1.14589,.69825,.97622,1.96791,1.24822,1.24822,1.17308,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.17984,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10742,1.10742,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.SegoeuiItalicFactors=a;const o={lineHeight:1.33008,lineGap:0};e.SegoeuiItalicMetrics=o;const c=[1.76738,1,1,.98594,1.02285,1.10454,1.06234,.96927,.92037,1.19985,1.2046,.90616,.90616,1.07152,1.1714,.78032,1.20088,.78032,1.40246,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78032,.78032,1.1714,1.1714,1.1714,.80597,.94084,.96706,.85944,.85734,.97093,.75842,.79936,.88198,.9831,.95782,.71387,.86969,.84636,1.07796,1.03584,.96924,.83968,.96924,.82826,.79649,.85771,.95132,.93119,.98965,.88433,.8287,.93365,1.08612,1.3638,1.08612,1.45786,.74627,.80499,.91484,1.05707,.92383,1.05882,.9403,1.12654,1.05882,1.01756,1.09011,1.09011,.99414,1.09011,1.034,1.01756,1.05356,1.05707,1.05882,1.04399,.84863,1.21968,1.01756,.95801,1.00068,.91797,.96777,.9043,.90351,.92105,.90351,1.1714,.85337,.96927,.96927,.99912,.96927,.92105,.80597,1.2434,1.20808,1.05937,.90957,1.1714,1.20808,.75155,.94261,1.24644,1.09971,1.09971,.84751,1,.85273,.78032,.61584,1.05425,1.17914,.90957,1.08665,1.11593,1.14169,.73381,.96706,.96706,.96706,.96706,.96706,.96706,.86035,.85734,.75842,.75842,.75842,.75842,.95782,.95782,.95782,.95782,.97093,1.03584,.96924,.96924,.96924,.96924,.96924,1.1714,.96924,.95132,.95132,.95132,.95132,.8287,.83968,.89049,.91484,.91484,.91484,.91484,.91484,.91484,.93575,.92383,.9403,.9403,.9403,.9403,.8717,.8717,.8717,.8717,1.00527,1.01756,1.05356,1.05356,1.05356,1.05356,1.05356,1.24644,.95923,1.01756,1.01756,1.01756,1.01756,.96777,1.05707,.96777,.96706,.91484,.96706,.91484,.96706,.91484,.85734,.92383,.85734,.92383,.85734,.92383,.85734,.92383,.97093,1.0969,.97093,1.05882,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.88198,1.05882,.88198,1.05882,.88198,1.05882,1,1,.9831,1.01756,.9831,1.01756,.95782,.8717,.95782,.8717,.95782,.8717,.95782,1.09011,.95782,.8717,.84784,1.11551,.71387,1.09011,1,1,.99414,.84636,1.09011,1,1,.84636,1.0536,.84636,.94298,.84636,1.23297,1.03584,1.01756,1,1,1.03584,1.01756,1.00323,1.03444,1.01756,.96924,1.05356,.96924,1.05356,.96924,1.05356,.93066,.98293,.82826,1.04399,1,1,.82826,1.04399,.79649,.84863,.79649,.84863,.79649,.84863,.79649,.84863,1,1,.85771,1.17318,.85771,1.21968,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.98965,1.00068,.8287,.96777,.8287,.93365,.9043,.93365,.9043,.93365,.9043,1.08571,.96927,.96706,.91484,.86035,.93575,.96924,.95923,1,1,.85771,1.21968,1.11437,1.11437,.93109,.91202,.60411,.84164,.55572,1.01173,.97361,.81818,.81818,.96635,.78032,.72727,.92366,.98601,1.03405,.77968,1.09799,1.2,.96706,.85944,.85638,.96491,.75842,.93365,.9831,.96924,.95782,.86969,.94152,1.07796,1.03584,.78437,.96924,.98715,.83968,.83491,.85771,.8287,.94492,.88433,.9287,1.0098,.95782,.8287,1.0625,.98248,1.03424,1.2,1.01071,1.0625,.95246,1.03809,1.04912,.98248,1.00221,1.03424,1.05443,1.2,1.04785,.99609,1.00169,1.05176,.99346,1.05356,.9087,1.03004,.95542,.93117,1.23362,1.01071,1.07831,1.02512,1.05205,1.03502,1.2,1.01071,1.05356,1.01071,1.03502,.75842,1,1,1,1,1,1,1,1,1,1,1,1,1.03719,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9403,1,1,1,1,1,1,1,1,1,1,1,1,1.04021,1,1,1,1,1,1,.98965,1.00068,.98965,1.00068,.98965,1.00068,.8287,.96777,1,1.20088,.89903,1,1,.75155,1.03077,1.03077,1.03077,1.03077,1.13196,1.13196,1.13196,.67428,.67428,1.16039,.73291,1.20996,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87796,.96927,1.01518,.96927,1,1,1,.77295,1,1,1.10539,1.10539,1.11358,1.06967,.86279,.94434,.86279,.94434,.86182,1,1,1.083,1,.91578,.86507,1.1714,1.18416,1.14589,.69825,.97622,1.9697,1.24822,1.24822,1.17238,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18083,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10938,1.10938,1,1,1,1.05425,1.09971,1.09971,1.09971,1,1,1,1,1,1,1,1,1,1,1];e.SegoeuiRegularFactors=c;const l={lineHeight:1.33008,lineGap:0};e.SegoeuiRegularMetrics=l},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.PostScriptEvaluator=e.PostScriptCompiler=e.PDFFunctionFactory=void 0;e.isPDFFunction=u;var n=i(134);var s=i(2);var r=i(187);var a=i(136);var o=i(188);class c{constructor(t){let{xref:e,isEvalSupported:i=true}=t;this.xref=e;this.isEvalSupported=i!==false}create(t){const e=this.getCached(t);if(e){return e}const i=h.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:t instanceof n.Ref?this.xref.fetch(t):t});this._cache(t,i);return i}createFromArray(t){const e=this.getCached(t);if(e){return e}const i=h.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:t instanceof n.Ref?this.xref.fetch(t):t});this._cache(t,i);return i}getCached(t){let e;if(t instanceof n.Ref){e=t}else if(t instanceof n.Dict){e=t.objId}else if(t instanceof a.BaseStream){e=t.dict&&t.dict.objId}if(e){const t=this._localFunctionCache.getByRef(e);if(t){return t}}return null}_cache(t,e){if(!e){throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.')}let i;if(t instanceof n.Ref){i=t}else if(t instanceof n.Dict){i=t.objId}else if(t instanceof a.BaseStream){i=t.dict&&t.dict.objId}if(i){this._localFunctionCache.set(null,i,e)}}get _localFunctionCache(){return(0,s.shadow)(this,"_localFunctionCache",new o.LocalFunctionCache)}}e.PDFFunctionFactory=c;function l(t){if(!Array.isArray(t)){return null}const e=t.length;for(let i=0;i<e;i++){if(typeof t[i]!=="number"){const i=new Array(e);for(let n=0;n<e;n++){i[n]=+t[n]}return i}}return t}class h{static getSampleArray(t,e,i,n){let s,r;let a=1;for(s=0,r=t.length;s<r;s++){a*=t[s]}a*=e;const o=new Array(a);let c=0;let l=0;const h=1/(2**i-1);const u=n.getBytes((a*i+7)/8);let f=0;for(s=0;s<a;s++){while(c<i){l<<=8;l|=u[f++];c+=8}c-=i;o[s]=(l>>c)*h;l&=(1<<c)-1}return o}static parse(t){let{xref:e,isEvalSupported:i,fn:n}=t;const r=n.dict||n;const a=r.get("FunctionType");switch(a){case 0:return this.constructSampled({xref:e,isEvalSupported:i,fn:n,dict:r});case 1:break;case 2:return this.constructInterpolated({xref:e,isEvalSupported:i,dict:r});case 3:return this.constructStiched({xref:e,isEvalSupported:i,dict:r});case 4:return this.constructPostScript({xref:e,isEvalSupported:i,fn:n,dict:r})}throw new s.FormatError("Unknown type of function")}static parseArray(t){let{xref:e,isEvalSupported:i,fnObj:n}=t;if(!Array.isArray(n)){return this.parse({xref:e,isEvalSupported:i,fn:n})}const s=[];for(const t of n){s.push(this.parse({xref:e,isEvalSupported:i,fn:e.fetchIfRef(t)}))}return function(t,e,i,n){for(let r=0,a=s.length;r<a;r++){s[r](t,e,i,n+r)}}}static constructSampled(t){let{xref:e,isEvalSupported:i,fn:n,dict:r}=t;function a(t){const e=t.length;const i=[];let n=0;for(let s=0;s<e;s+=2){i[n++]=[t[s],t[s+1]]}return i}function o(t,e,i,n,s){return n+(t-e)*((s-n)/(i-e))}let c=l(r.getArray("Domain"));let h=l(r.getArray("Range"));if(!c||!h){throw new s.FormatError("No domain or range")}const u=c.length/2;const f=h.length/2;c=a(c);h=a(h);const d=l(r.getArray("Size"));const p=r.get("BitsPerSample");const m=r.get("Order")||1;if(m!==1){(0,s.info)("No support for cubic spline interpolation: "+m)}let g=l(r.getArray("Encode"));if(!g){g=[];for(let t=0;t<u;++t){g.push([0,d[t]-1])}}else{g=a(g)}let b=l(r.getArray("Decode"));if(!b){b=h}else{b=a(b)}const v=this.getSampleArray(d,f,p,n);return function t(e,i,n,s){const r=1<<u;const a=new Float64Array(r);const l=new Uint32Array(r);let p,m;for(m=0;m<r;m++){a[m]=1}let w=f,y=1;for(p=0;p<u;++p){const t=c[p][0];const n=c[p][1];const s=Math.min(Math.max(e[i+p],t),n);let h=o(s,t,n,g[p][0],g[p][1]);const u=d[p];h=Math.min(Math.max(h,0),u-1);const f=h<u-1?Math.floor(h):h-1;const b=f+1-h;const v=h-f;const A=f*w;const k=A+w;for(m=0;m<r;m++){if(m&y){a[m]*=v;l[m]+=k}else{a[m]*=b;l[m]+=A}}w*=u;y<<=1}for(m=0;m<f;++m){let t=0;for(p=0;p<r;p++){t+=v[l[p]+m]*a[p]}t=o(t,0,1,b[m][0],b[m][1]);n[s+m]=Math.min(Math.max(t,h[m][0]),h[m][1])}}}static constructInterpolated(t){let{xref:e,isEvalSupported:i,dict:n}=t;const s=l(n.getArray("C0"))||[0];const r=l(n.getArray("C1"))||[1];const a=n.get("N");const o=[];for(let t=0,e=s.length;t<e;++t){o.push(r[t]-s[t])}const c=o.length;return function t(e,i,n,r){const l=a===1?e[i]:e[i]**a;for(let t=0;t<c;++t){n[r+t]=s[t]+l*o[t]}}}static constructStiched(t){let{xref:e,isEvalSupported:i,dict:n}=t;const r=l(n.getArray("Domain"));if(!r){throw new s.FormatError("No domain")}const a=r.length/2;if(a!==1){throw new s.FormatError("Bad domain for stiched function")}const o=[];for(const t of n.get("Functions")){o.push(this.parse({xref:e,isEvalSupported:i,fn:e.fetchIfRef(t)}))}const c=l(n.getArray("Bounds"));const h=l(n.getArray("Encode"));const u=new Float32Array(1);return function t(e,i,n,s){const a=function t(e,i,n){if(e>n){e=n}else if(e<i){e=i}return e};const l=a(e[i],r[0],r[1]);const f=c.length;let d;for(d=0;d<f;++d){if(l<c[d]){break}}let p=r[0];if(d>0){p=c[d-1]}let m=r[1];if(d<c.length){m=c[d]}const g=h[2*d];const b=h[2*d+1];u[0]=p===m?g:g+(l-p)*(b-g)/(m-p);o[d](u,0,n,s)}}static constructPostScript(t){let{xref:e,isEvalSupported:i,fn:n,dict:a}=t;const o=l(a.getArray("Domain"));const c=l(a.getArray("Range"));if(!o){throw new s.FormatError("No domain.")}if(!c){throw new s.FormatError("No range.")}const h=new r.PostScriptLexer(n);const u=new r.PostScriptParser(h);const f=u.parse();if(i&&s.FeatureTest.isEvalSupported){const t=(new _).compile(f,o,c);if(t){return new Function("src","srcOffset","dest","destOffset",t)}}(0,s.info)("Unable to compile PS function");const p=c.length>>1;const m=o.length>>1;const g=new d(f);const b=Object.create(null);const v=2048*4;let w=v;const y=new Float32Array(m);return function t(e,i,n,s){let r,a;let o="";const l=y;for(r=0;r<m;r++){a=e[i+r];l[r]=a;o+=a+"_"}const h=b[o];if(h!==undefined){n.set(h,s);return}const u=new Float32Array(p);const f=g.execute(l);const d=f.length-p;for(r=0;r<p;r++){a=f[d+r];let t=c[r*2];if(a<t){a=t}else{t=c[r*2+1];if(a>t){a=t}}u[r]=a}if(w>0){w--;b[o]=u}n.set(u,s)}}}function u(t){let e;if(typeof t!=="object"){return false}else if(t instanceof n.Dict){e=t}else if(t instanceof a.BaseStream){e=t.dict}else{return false}return e.has("FunctionType")}class f{static get MAX_STACK_SIZE(){return(0,s.shadow)(this,"MAX_STACK_SIZE",100)}constructor(t){this.stack=t?Array.from(t):[]}push(t){if(this.stack.length>=f.MAX_STACK_SIZE){throw new Error("PostScript function stack overflow.")}this.stack.push(t)}pop(){if(this.stack.length<=0){throw new Error("PostScript function stack underflow.")}return this.stack.pop()}copy(t){if(this.stack.length+t>=f.MAX_STACK_SIZE){throw new Error("PostScript function stack overflow.")}const e=this.stack;for(let i=e.length-t,n=t-1;n>=0;n--,i++){e.push(e[i])}}index(t){this.push(this.stack[this.stack.length-t-1])}roll(t,e){const i=this.stack;const n=i.length-t;const s=i.length-1;const r=n+(e-Math.floor(e/t)*t);for(let t=n,e=s;t<e;t++,e--){const n=i[t];i[t]=i[e];i[e]=n}for(let t=n,e=r-1;t<e;t++,e--){const n=i[t];i[t]=i[e];i[e]=n}for(let t=r,e=s;t<e;t++,e--){const n=i[t];i[t]=i[e];i[e]=n}}}class d{constructor(t){this.operators=t}execute(t){const e=new f(t);let i=0;const n=this.operators;const r=n.length;let a,o,c;while(i<r){a=n[i++];if(typeof a==="number"){e.push(a);continue}switch(a){case"jz":c=e.pop();o=e.pop();if(!o){i=c}break;case"j":o=e.pop();i=o;break;case"abs":o=e.pop();e.push(Math.abs(o));break;case"add":c=e.pop();o=e.pop();e.push(o+c);break;case"and":c=e.pop();o=e.pop();if(typeof o==="boolean"&&typeof c==="boolean"){e.push(o&&c)}else{e.push(o&c)}break;case"atan":o=e.pop();e.push(Math.atan(o));break;case"bitshift":c=e.pop();o=e.pop();if(o>0){e.push(o<<c)}else{e.push(o>>c)}break;case"ceiling":o=e.pop();e.push(Math.ceil(o));break;case"copy":o=e.pop();e.copy(o);break;case"cos":o=e.pop();e.push(Math.cos(o));break;case"cvi":o=e.pop()|0;e.push(o);break;case"cvr":break;case"div":c=e.pop();o=e.pop();e.push(o/c);break;case"dup":e.copy(1);break;case"eq":c=e.pop();o=e.pop();e.push(o===c);break;case"exch":e.roll(2,1);break;case"exp":c=e.pop();o=e.pop();e.push(o**c);break;case"false":e.push(false);break;case"floor":o=e.pop();e.push(Math.floor(o));break;case"ge":c=e.pop();o=e.pop();e.push(o>=c);break;case"gt":c=e.pop();o=e.pop();e.push(o>c);break;case"idiv":c=e.pop();o=e.pop();e.push(o/c|0);break;case"index":o=e.pop();e.index(o);break;case"le":c=e.pop();o=e.pop();e.push(o<=c);break;case"ln":o=e.pop();e.push(Math.log(o));break;case"log":o=e.pop();e.push(Math.log(o)/Math.LN10);break;case"lt":c=e.pop();o=e.pop();e.push(o<c);break;case"mod":c=e.pop();o=e.pop();e.push(o%c);break;case"mul":c=e.pop();o=e.pop();e.push(o*c);break;case"ne":c=e.pop();o=e.pop();e.push(o!==c);break;case"neg":o=e.pop();e.push(-o);break;case"not":o=e.pop();if(typeof o==="boolean"){e.push(!o)}else{e.push(~o)}break;case"or":c=e.pop();o=e.pop();if(typeof o==="boolean"&&typeof c==="boolean"){e.push(o||c)}else{e.push(o|c)}break;case"pop":e.pop();break;case"roll":c=e.pop();o=e.pop();e.roll(o,c);break;case"round":o=e.pop();e.push(Math.round(o));break;case"sin":o=e.pop();e.push(Math.sin(o));break;case"sqrt":o=e.pop();e.push(Math.sqrt(o));break;case"sub":c=e.pop();o=e.pop();e.push(o-c);break;case"true":e.push(true);break;case"truncate":o=e.pop();o=o<0?Math.ceil(o):Math.floor(o);e.push(o);break;case"xor":c=e.pop();o=e.pop();if(typeof o==="boolean"&&typeof c==="boolean"){e.push(o!==c)}else{e.push(o^c)}break;default:throw new s.FormatError(`Unknown operator ${a}`)}}return e.stack}}e.PostScriptEvaluator=d;class p{constructor(t){this.type=t}visit(t){(0,s.unreachable)("abstract method")}}class m extends p{constructor(t,e,i){super("args");this.index=t;this.min=e;this.max=i}visit(t){t.visitArgument(this)}}class g extends p{constructor(t){super("literal");this.number=t;this.min=t;this.max=t}visit(t){t.visitLiteral(this)}}class b extends p{constructor(t,e,i,n,s){super("binary");this.op=t;this.arg1=e;this.arg2=i;this.min=n;this.max=s}visit(t){t.visitBinaryOperation(this)}}class v extends p{constructor(t,e){super("max");this.arg=t;this.min=t.min;this.max=e}visit(t){t.visitMin(this)}}class w extends p{constructor(t,e,i){super("var");this.index=t;this.min=e;this.max=i}visit(t){t.visitVariable(this)}}class y extends p{constructor(t,e){super("definition");this.variable=t;this.arg=e}visit(t){t.visitVariableDefinition(this)}}class A{constructor(){this.parts=[]}visitArgument(t){this.parts.push("Math.max(",t.min,", Math.min(",t.max,", src[srcOffset + ",t.index,"]))")}visitVariable(t){this.parts.push("v",t.index)}visitLiteral(t){this.parts.push(t.number)}visitBinaryOperation(t){this.parts.push("(");t.arg1.visit(this);this.parts.push(" ",t.op," ");t.arg2.visit(this);this.parts.push(")")}visitVariableDefinition(t){this.parts.push("var ");t.variable.visit(this);this.parts.push(" = ");t.arg.visit(this);this.parts.push(";")}visitMin(t){this.parts.push("Math.min(");t.arg.visit(this);this.parts.push(", ",t.max,")")}toString(){return this.parts.join("")}}function k(t,e){if(e.type==="literal"&&e.number===0){return t}if(t.type==="literal"&&t.number===0){return e}if(e.type==="literal"&&t.type==="literal"){return new g(t.number+e.number)}return new b("+",t,e,t.min+e.min,t.max+e.max)}function x(t,e){if(e.type==="literal"){if(e.number===0){return new g(0)}else if(e.number===1){return t}else if(t.type==="literal"){return new g(t.number*e.number)}}if(t.type==="literal"){if(t.number===0){return new g(0)}else if(t.number===1){return e}}const i=Math.min(t.min*e.min,t.min*e.max,t.max*e.min,t.max*e.max);const n=Math.max(t.min*e.min,t.min*e.max,t.max*e.min,t.max*e.max);return new b("*",t,e,i,n)}function S(t,e){if(e.type==="literal"){if(e.number===0){return t}else if(t.type==="literal"){return new g(t.number-e.number)}}if(e.type==="binary"&&e.op==="-"&&t.type==="literal"&&t.number===1&&e.arg1.type==="literal"&&e.arg1.number===1){return e.arg2}return new b("-",t,e,t.min-e.max,t.max-e.min)}function M(t,e){if(t.min>=e){return new g(e)}else if(t.max<=e){return t}return new v(t,e)}class _{compile(t,e,i){const n=[];const s=[];const r=e.length>>1,a=i.length>>1;let o=0;let c,l;let h,u,f,d,p,b;for(let t=0;t<r;t++){n.push(new m(t,e[t*2],e[t*2+1]))}for(let e=0,i=t.length;e<i;e++){b=t[e];if(typeof b==="number"){n.push(new g(b));continue}switch(b){case"add":if(n.length<2){return null}u=n.pop();h=n.pop();n.push(k(h,u));break;case"cvr":if(n.length<1){return null}break;case"mul":if(n.length<2){return null}u=n.pop();h=n.pop();n.push(x(h,u));break;case"sub":if(n.length<2){return null}u=n.pop();h=n.pop();n.push(S(h,u));break;case"exch":if(n.length<2){return null}f=n.pop();d=n.pop();n.push(f,d);break;case"pop":if(n.length<1){return null}n.pop();break;case"index":if(n.length<1){return null}h=n.pop();if(h.type!=="literal"){return null}c=h.number;if(c<0||!Number.isInteger(c)||n.length<c){return null}f=n[n.length-c-1];if(f.type==="literal"||f.type==="var"){n.push(f);break}p=new w(o++,f.min,f.max);n[n.length-c-1]=p;n.push(p);s.push(new y(p,f));break;case"dup":if(n.length<1){return null}if(typeof t[e+1]==="number"&&t[e+2]==="gt"&&t[e+3]===e+7&&t[e+4]==="jz"&&t[e+5]==="pop"&&t[e+6]===t[e+1]){h=n.pop();n.push(M(h,t[e+1]));e+=6;break}f=n.at(-1);if(f.type==="literal"||f.type==="var"){n.push(f);break}p=new w(o++,f.min,f.max);n[n.length-1]=p;n.push(p);s.push(new y(p,f));break;case"roll":if(n.length<2){return null}u=n.pop();h=n.pop();if(u.type!=="literal"||h.type!=="literal"){return null}l=u.number;c=h.number;if(c<=0||!Number.isInteger(c)||!Number.isInteger(l)||n.length<c){return null}l=(l%c+c)%c;if(l===0){break}n.push(...n.splice(n.length-c,c-l));break;default:return null}}if(n.length!==a){return null}const v=[];for(const t of s){const e=new A;t.visit(e);v.push(e.toString())}for(let t=0,e=n.length;t<e;t++){const e=n[t],s=new A;e.visit(s);const r=i[t*2],a=i[t*2+1];const o=[s.toString()];if(r>e.min){o.unshift("Math.max(",r,", ");o.push(")")}if(a<e.max){o.unshift("Math.min(",a,", ");o.push(")")}o.unshift("dest[destOffset + ",t,"] = ");o.push(";");v.push(o.join(""))}return v.join("\n")}}e.PostScriptCompiler=_},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.PostScriptParser=e.PostScriptLexer=void 0;var n=i(2);var s=i(134);var r=i(135);class a{constructor(t){this.lexer=t;this.operators=[];this.token=null;this.prev=null}nextToken(){this.prev=this.token;this.token=this.lexer.getToken()}accept(t){if(this.token.type===t){this.nextToken();return true}return false}expect(t){if(this.accept(t)){return true}throw new n.FormatError(`Unexpected symbol: found ${this.token.type} expected ${t}.`)}parse(){this.nextToken();this.expect(o.LBRACE);this.parseBlock();this.expect(o.RBRACE);return this.operators}parseBlock(){while(true){if(this.accept(o.NUMBER)){this.operators.push(this.prev.value)}else if(this.accept(o.OPERATOR)){this.operators.push(this.prev.value)}else if(this.accept(o.LBRACE)){this.parseCondition()}else{return}}}parseCondition(){const t=this.operators.length;this.operators.push(null,null);this.parseBlock();this.expect(o.RBRACE);if(this.accept(o.IF)){this.operators[t]=this.operators.length;this.operators[t+1]="jz"}else if(this.accept(o.LBRACE)){const e=this.operators.length;this.operators.push(null,null);const i=this.operators.length;this.parseBlock();this.expect(o.RBRACE);this.expect(o.IFELSE);this.operators[e]=this.operators.length;this.operators[e+1]="j";this.operators[t]=i;this.operators[t+1]="jz"}else{throw new n.FormatError("PS Function: error parsing conditional.")}}}e.PostScriptParser=a;const o={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};class c{static get opCache(){return(0,n.shadow)(this,"opCache",Object.create(null))}constructor(t,e){this.type=t;this.value=e}static getOperator(t){const e=c.opCache[t];if(e){return e}return c.opCache[t]=new c(o.OPERATOR,t)}static get LBRACE(){return(0,n.shadow)(this,"LBRACE",new c(o.LBRACE,"{"))}static get RBRACE(){return(0,n.shadow)(this,"RBRACE",new c(o.RBRACE,"}"))}static get IF(){return(0,n.shadow)(this,"IF",new c(o.IF,"IF"))}static get IFELSE(){return(0,n.shadow)(this,"IFELSE",new c(o.IFELSE,"IFELSE"))}}class l{constructor(t){this.stream=t;this.nextChar();this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let t=false;let e=this.currentChar;while(true){if(e<0){return s.EOF}if(t){if(e===10||e===13){t=false}}else if(e===37){t=true}else if(!(0,r.isWhiteSpace)(e)){break}e=this.nextChar()}switch(e|0){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new c(o.NUMBER,this.getNumber());case 123:this.nextChar();return c.LBRACE;case 125:this.nextChar();return c.RBRACE}const i=this.strBuf;i.length=0;i[0]=String.fromCharCode(e);while((e=this.nextChar())>=0&&(e>=65&&e<=90||e>=97&&e<=122)){i.push(String.fromCharCode(e))}const n=i.join("");switch(n.toLowerCase()){case"if":return c.IF;case"ifelse":return c.IFELSE;default:return c.getOperator(n)}}getNumber(){let t=this.currentChar;const e=this.strBuf;e.length=0;e[0]=String.fromCharCode(t);while((t=this.nextChar())>=0){if(t>=48&&t<=57||t===45||t===46){e.push(String.fromCharCode(t))}else{break}}const i=parseFloat(e.join(""));if(isNaN(i)){throw new n.FormatError(`Invalid floating point number: ${i}`)}return i}}e.PostScriptLexer=l},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.LocalTilingPatternCache=e.LocalImageCache=e.LocalGStateCache=e.LocalFunctionCache=e.LocalColorSpaceCache=e.GlobalImageCache=void 0;var n=i(2);var s=i(134);class r{constructor(t){if(this.constructor===r){(0,n.unreachable)("Cannot initialize BaseLocalCache.")}this._onlyRefs=(t&&t.onlyRefs)===true;if(!this._onlyRefs){this._nameRefMap=new Map;this._imageMap=new Map}this._imageCache=new s.RefSetCache}getByName(t){if(this._onlyRefs){(0,n.unreachable)("Should not call `getByName` method.")}const e=this._nameRefMap.get(t);if(e){return this.getByRef(e)}return this._imageMap.get(t)||null}getByRef(t){return this._imageCache.get(t)||null}set(t,e,i){(0,n.unreachable)("Abstract method `set` called.")}}class a extends r{set(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;let i=arguments.length>2?arguments[2]:undefined;if(typeof t!=="string"){throw new Error('LocalImageCache.set - expected "name" argument.')}if(e){if(this._imageCache.has(e)){return}this._nameRefMap.set(t,e);this._imageCache.put(e,i);return}if(this._imageMap.has(t)){return}this._imageMap.set(t,i)}}e.LocalImageCache=a;class o extends r{set(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;let i=arguments.length>2?arguments[2]:undefined;if(typeof t!=="string"&&!e){throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.')}if(e){if(this._imageCache.has(e)){return}if(t!==null){this._nameRefMap.set(t,e)}this._imageCache.put(e,i);return}if(this._imageMap.has(t)){return}this._imageMap.set(t,i)}}e.LocalColorSpaceCache=o;class c extends r{constructor(t){super({onlyRefs:true})}set(){let t=arguments.length>1?arguments[1]:undefined;let e=arguments.length>2?arguments[2]:undefined;if(!t){throw new Error('LocalFunctionCache.set - expected "ref" argument.')}if(this._imageCache.has(t)){return}this._imageCache.put(t,e)}}e.LocalFunctionCache=c;class l extends r{set(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;let i=arguments.length>2?arguments[2]:undefined;if(typeof t!=="string"){throw new Error('LocalGStateCache.set - expected "name" argument.')}if(e){if(this._imageCache.has(e)){return}this._nameRefMap.set(t,e);this._imageCache.put(e,i);return}if(this._imageMap.has(t)){return}this._imageMap.set(t,i)}}e.LocalGStateCache=l;class h extends r{constructor(t){super({onlyRefs:true})}set(){let t=arguments.length>1?arguments[1]:undefined;let e=arguments.length>2?arguments[2]:undefined;if(!t){throw new Error('LocalTilingPatternCache.set - expected "ref" argument.')}if(this._imageCache.has(t)){return}this._imageCache.put(t,e)}}e.LocalTilingPatternCache=h;class u{static get NUM_PAGES_THRESHOLD(){return(0,n.shadow)(this,"NUM_PAGES_THRESHOLD",2)}static get MIN_IMAGES_TO_CACHE(){return(0,n.shadow)(this,"MIN_IMAGES_TO_CACHE",10)}static get MAX_BYTE_SIZE(){return(0,n.shadow)(this,"MAX_BYTE_SIZE",4e7)}constructor(){this._refCache=new s.RefSetCache;this._imageCache=new s.RefSetCache}get _byteSize(){let t=0;for(const e of this._imageCache){t+=e.byteSize}return t}get _cacheLimitReached(){if(this._imageCache.size<u.MIN_IMAGES_TO_CACHE){return false}if(this._byteSize<u.MAX_BYTE_SIZE){return false}return true}shouldCache(t,e){const i=this._refCache.get(t);const n=i?i.size+(i.has(e)?0:1):1;if(n<u.NUM_PAGES_THRESHOLD){return false}if(!this._imageCache.has(t)&&this._cacheLimitReached){return false}return true}addPageIndex(t,e){let i=this._refCache.get(t);if(!i){i=new Set;this._refCache.put(t,i)}i.add(e)}addByteSize(t,e){const i=this._imageCache.get(t);if(!i){return}if(i.byteSize){return}i.byteSize=e}getData(t,e){const i=this._refCache.get(t);if(!i){return null}if(i.size<u.NUM_PAGES_THRESHOLD){return null}const n=this._imageCache.get(t);if(!n){return null}i.add(e);return n}setData(t,e){if(!this._refCache.has(t)){throw new Error('GlobalImageCache.setData - expected "addPageIndex" to have been called.')}if(this._imageCache.has(t)){return}if(this._cacheLimitReached){(0,n.warn)("GlobalImageCache.setData - cache limit reached.");return}this._imageCache.put(t,e)}clear(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(!t){this._refCache.clear()}this._imageCache.clear()}}e.GlobalImageCache=u},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.bidi=p;var n=i(2);const s=["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"];const r=["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 a(t){return(t&1)!==0}function o(t){return(t&1)===0}function c(t,e,i){let n,s;for(n=e,s=t.length;n<s;++n){if(t[n]!==i){return n}}return n}function l(t,e,i,n){for(let s=e;s<i;++s){t[s]=n}}function h(t,e,i){for(let n=e,s=i-1;n<s;++n,--s){const e=t[n];t[n]=t[s];t[s]=e}}function u(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;let n="ltr";if(i){n="ttb"}else if(!e){n="rtl"}return{str:t,dir:n}}const f=[];const d=[];function p(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:-1;let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;let p=true;const m=t.length;if(m===0||i){return u(t,p,i)}f.length=m;d.length=m;let g=0;let b,v;for(b=0;b<m;++b){f[b]=t.charAt(b);const e=t.charCodeAt(b);let i="L";if(e<=255){i=s[e]}else if(1424<=e&&e<=1524){i="R"}else if(1536<=e&&e<=1791){i=r[e&255];if(!i){(0,n.warn)("Bidi: invalid Unicode character "+e.toString(16))}}else if(1792<=e&&e<=2220){i="AL"}if(i==="R"||i==="AL"||i==="AN"){g++}d[b]=i}if(g===0){p=true;return u(t,p)}if(e===-1){if(g/m<.3&&m>4){p=true;e=0}else{p=false;e=1}}const w=[];for(b=0;b<m;++b){w[b]=e}const y=a(e)?"R":"L";const A=y;const k=A;let x=A;for(b=0;b<m;++b){if(d[b]==="NSM"){d[b]=x}else{x=d[b]}}x=A;let S;for(b=0;b<m;++b){S=d[b];if(S==="EN"){d[b]=x==="AL"?"AN":"EN"}else if(S==="R"||S==="L"||S==="AL"){x=S}}for(b=0;b<m;++b){S=d[b];if(S==="AL"){d[b]="R"}}for(b=1;b<m-1;++b){if(d[b]==="ES"&&d[b-1]==="EN"&&d[b+1]==="EN"){d[b]="EN"}if(d[b]==="CS"&&(d[b-1]==="EN"||d[b-1]==="AN")&&d[b+1]===d[b-1]){d[b]=d[b-1]}}for(b=0;b<m;++b){if(d[b]==="EN"){for(let t=b-1;t>=0;--t){if(d[t]!=="ET"){break}d[t]="EN"}for(let t=b+1;t<m;++t){if(d[t]!=="ET"){break}d[t]="EN"}}}for(b=0;b<m;++b){S=d[b];if(S==="WS"||S==="ES"||S==="ET"||S==="CS"){d[b]="ON"}}x=A;for(b=0;b<m;++b){S=d[b];if(S==="EN"){d[b]=x==="L"?"L":"EN"}else if(S==="R"||S==="L"){x=S}}for(b=0;b<m;++b){if(d[b]==="ON"){const t=c(d,b+1,"ON");let e=A;if(b>0){e=d[b-1]}let i=k;if(t+1<m){i=d[t+1]}if(e!=="L"){e="R"}if(i!=="L"){i="R"}if(e===i){l(d,b,t,e)}b=t-1}}for(b=0;b<m;++b){if(d[b]==="ON"){d[b]=y}}for(b=0;b<m;++b){S=d[b];if(o(w[b])){if(S==="R"){w[b]+=1}else if(S==="AN"||S==="EN"){w[b]+=2}}else{if(S==="L"||S==="AN"||S==="EN"){w[b]+=1}}}let M=-1;let _=99;let E;for(b=0,v=w.length;b<v;++b){E=w[b];if(M<E){M=E}if(_>E&&a(E)){_=E}}for(E=M;E>=_;--E){let t=-1;for(b=0,v=w.length;b<v;++b){if(w[b]<E){if(t>=0){h(f,t,b);t=-1}}else if(t<0){t=b}}if(t>=0){h(f,t,w.length)}}for(b=0,v=f.length;b<v;++b){const t=f[b];if(t==="<"||t===">"){f[b]=""}}return u(f.join(""),p)}},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.MurmurHash3_64=void 0;var n=i(2);const s=3285377520;const r=4294901760;const a=65535;class o{constructor(t){this.h1=t?t&4294967295:s;this.h2=t?t&4294967295:s}update(t){let e,i;if(typeof t==="string"){e=new Uint8Array(t.length*2);i=0;for(let n=0,s=t.length;n<s;n++){const s=t.charCodeAt(n);if(s<=255){e[i++]=s}else{e[i++]=s>>>8;e[i++]=s&255}}}else if((0,n.isArrayBuffer)(t)){e=t.slice();i=e.byteLength}else{throw new Error("Wrong data format in MurmurHash3_64_update. "+"Input must be a string or array.")}const s=i>>2;const o=i-s*4;const c=new Uint32Array(e.buffer,0,s);let l=0,h=0;let u=this.h1,f=this.h2;const d=3432918353,p=461845907;const m=d&a,g=p&a;for(let t=0;t<s;t++){if(t&1){l=c[t];l=l*d&r|l*m&a;l=l<<15|l>>>17;l=l*p&r|l*g&a;u^=l;u=u<<13|u>>>19;u=u*5+3864292196}else{h=c[t];h=h*d&r|h*m&a;h=h<<15|h>>>17;h=h*p&r|h*g&a;f^=h;f=f<<13|f>>>19;f=f*5+3864292196}}l=0;switch(o){case 3:l^=e[s*4+2]<<16;case 2:l^=e[s*4+1]<<8;case 1:l^=e[s*4];l=l*d&r|l*m&a;l=l<<15|l>>>17;l=l*p&r|l*g&a;if(s&1){u^=l}else{f^=l}}this.h1=u;this.h2=f}hexdigest(){let t=this.h1,e=this.h2;t^=e>>>1;t=t*3981806797&r|t*36045&a;e=e*4283543511&r|((e<<16|t>>>16)*2950163797&r)>>>16;t^=e>>>1;t=t*444984403&r|t*60499&a;e=e*3301882366&r|((e<<16|t>>>16)*3120437893&r)>>>16;t^=e>>>1;const i=(t>>>0).toString(16),n=(e>>>0).toString(16);return i.padStart(8,"0")+n.padStart(8,"0")}}e.MurmurHash3_64=o},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.OperatorList=void 0;var n=i(2);function s(t,e,i,n,s){let r=t;for(let t=0,i=e.length-1;t<i;t++){const i=e[t];r=r[i]||(r[i]=[])}r[e.at(-1)]={checkFn:i,iterateFn:n,processFn:s}}const r=[];s(r,[n.OPS.save,n.OPS.transform,n.OPS.paintInlineImageXObject,n.OPS.restore],null,(function t(e,i){const s=e.fnArray;const r=e.iCurr-3;const a=(i-r)%4;switch(a){case 0:return s[i]===n.OPS.save;case 1:return s[i]===n.OPS.transform;case 2:return s[i]===n.OPS.paintInlineImageXObject;case 3:return s[i]===n.OPS.restore}throw new Error(`iterateInlineImageGroup - invalid pos: ${a}`)}),(function t(e,i){const s=10;const r=200;const a=1e3;const o=1;const c=e.fnArray,l=e.argsArray;const h=e.iCurr;const u=h-3;const f=h-2;const d=h-1;const p=Math.min(Math.floor((i-u)/4),r);if(p<s){return i-(i-u)%4}let m=0;const g=[];let b=0;let v=o,w=o;for(let t=0;t<p;t++){const e=l[f+(t<<2)];const i=l[d+(t<<2)][0];if(v+i.width>a){m=Math.max(m,v);w+=b+2*o;v=0;b=0}g.push({transform:e,x:v,y:w,w:i.width,h:i.height});v+=i.width+2*o;b=Math.max(b,i.height)}const y=Math.max(m,v)+o;const A=w+b+o;const k=new Uint8Array(y*A*4);const x=y<<2;for(let t=0;t<p;t++){const e=l[d+(t<<2)][0].data;const i=g[t].w<<2;let n=0;let s=g[t].x+g[t].y*y<<2;k.set(e.subarray(0,i),s-x);for(let r=0,a=g[t].h;r<a;r++){k.set(e.subarray(n,n+i),s);n+=i;s+=x}k.set(e.subarray(n-i,n),s);while(s>=0){e[s-4]=e[s];e[s-3]=e[s+1];e[s-2]=e[s+2];e[s-1]=e[s+3];e[s+i]=e[s+i-4];e[s+i+1]=e[s+i-3];e[s+i+2]=e[s+i-2];e[s+i+3]=e[s+i-1];s-=x}}c.splice(u,p*4,n.OPS.paintInlineImageXObjectGroup);l.splice(u,p*4,[{width:y,height:A,kind:n.ImageKind.RGBA_32BPP,data:k},g]);return u+1}));s(r,[n.OPS.save,n.OPS.transform,n.OPS.paintImageMaskXObject,n.OPS.restore],null,(function t(e,i){const s=e.fnArray;const r=e.iCurr-3;const a=(i-r)%4;switch(a){case 0:return s[i]===n.OPS.save;case 1:return s[i]===n.OPS.transform;case 2:return s[i]===n.OPS.paintImageMaskXObject;case 3:return s[i]===n.OPS.restore}throw new Error(`iterateImageMaskGroup - invalid pos: ${a}`)}),(function t(e,i){const s=10;const r=100;const a=1e3;const o=e.fnArray,c=e.argsArray;const l=e.iCurr;const h=l-3;const u=l-2;const f=l-1;let d=Math.floor((i-h)/4);if(d<s){return i-(i-h)%4}let p=false;let m,g;const b=c[f][0];const v=c[u][0],w=c[u][1],y=c[u][2],A=c[u][3];if(w===y){p=true;m=u+4;let t=f+4;for(let e=1;e<d;e++,m+=4,t+=4){g=c[m];if(c[t][0]!==b||g[0]!==v||g[1]!==w||g[2]!==y||g[3]!==A){if(e<s){p=false}else{d=e}break}}}if(p){d=Math.min(d,a);const t=new Float32Array(d*2);m=u;for(let e=0;e<d;e++,m+=4){g=c[m];t[e<<1]=g[4];t[(e<<1)+1]=g[5]}o.splice(h,d*4,n.OPS.paintImageMaskXObjectRepeat);c.splice(h,d*4,[b,v,w,y,A,t])}else{d=Math.min(d,r);const t=[];for(let e=0;e<d;e++){g=c[u+(e<<2)];const i=c[f+(e<<2)][0];t.push({data:i.data,width:i.width,height:i.height,interpolate:i.interpolate,count:i.count,transform:g})}o.splice(h,d*4,n.OPS.paintImageMaskXObjectGroup);c.splice(h,d*4,[t])}return h+1}));s(r,[n.OPS.save,n.OPS.transform,n.OPS.paintImageXObject,n.OPS.restore],(function(t){const e=t.argsArray;const i=t.iCurr-2;return e[i][1]===0&&e[i][2]===0}),(function t(e,i){const s=e.fnArray,r=e.argsArray;const a=e.iCurr-3;const o=(i-a)%4;switch(o){case 0:return s[i]===n.OPS.save;case 1:if(s[i]!==n.OPS.transform){return false}const t=e.iCurr-2;const a=r[t][0];const o=r[t][3];if(r[i][0]!==a||r[i][1]!==0||r[i][2]!==0||r[i][3]!==o){return false}return true;case 2:if(s[i]!==n.OPS.paintImageXObject){return false}const c=e.iCurr-1;const l=r[c][0];if(r[i][0]!==l){return false}return true;case 3:return s[i]===n.OPS.restore}throw new Error(`iterateImageGroup - invalid pos: ${o}`)}),(function(t,e){const i=3;const s=1e3;const r=t.fnArray,a=t.argsArray;const o=t.iCurr;const c=o-3;const l=o-2;const h=o-1;const u=a[h][0];const f=a[l][0];const d=a[l][3];const p=Math.min(Math.floor((e-c)/4),s);if(p<i){return e-(e-c)%4}const m=new Float32Array(p*2);let g=l;for(let t=0;t<p;t++,g+=4){const e=a[g];m[t<<1]=e[4];m[(t<<1)+1]=e[5]}const b=[u,f,d,m];r.splice(c,p*4,n.OPS.paintImageXObjectRepeat);a.splice(c,p*4,b);return c+1}));s(r,[n.OPS.beginText,n.OPS.setFont,n.OPS.setTextMatrix,n.OPS.showText,n.OPS.endText],null,(function t(e,i){const s=e.fnArray,r=e.argsArray;const a=e.iCurr-4;const o=(i-a)%5;switch(o){case 0:return s[i]===n.OPS.beginText;case 1:return s[i]===n.OPS.setFont;case 2:return s[i]===n.OPS.setTextMatrix;case 3:if(s[i]!==n.OPS.showText){return false}const t=e.iCurr-3;const a=r[t][0];const o=r[t][1];if(r[i][0]!==a||r[i][1]!==o){return false}return true;case 4:return s[i]===n.OPS.endText}throw new Error(`iterateShowTextGroup - invalid pos: ${o}`)}),(function(t,e){const i=3;const n=1e3;const s=t.fnArray,r=t.argsArray;const a=t.iCurr;const o=a-4;const c=a-3;const l=a-2;const h=a-1;const u=a;const f=r[c][0];const d=r[c][1];let p=Math.min(Math.floor((e-o)/5),n);if(p<i){return e-(e-o)%5}let m=o;if(o>=4&&s[o-4]===s[c]&&s[o-3]===s[l]&&s[o-2]===s[h]&&s[o-1]===s[u]&&r[o-4][0]===f&&r[o-4][1]===d){p++;m-=5}let g=m+4;for(let t=1;t<p;t++){s.splice(g,3);r.splice(g,3);g+=2}return g+1}));class a{constructor(t){this.queue=t}_optimize(){}push(t,e){this.queue.fnArray.push(t);this.queue.argsArray.push(e);this._optimize()}flush(){}reset(){}}class o extends a{constructor(t){super(t);this.state=null;this.context={iCurr:0,fnArray:t.fnArray,argsArray:t.argsArray};this.match=null;this.lastProcessed=0}_optimize(){const t=this.queue.fnArray;let e=this.lastProcessed,i=t.length;let n=this.state;let s=this.match;if(!n&&!s&&e+1===i&&!r[t[e]]){this.lastProcessed=i;return}const a=this.context;while(e<i){if(s){const r=(0,s.iterateFn)(a,e);if(r){e++;continue}e=(0,s.processFn)(a,e+1);i=t.length;s=null;n=null;if(e>=i){break}}n=(n||r)[t[e]];if(!n||Array.isArray(n)){e++;continue}a.iCurr=e;e++;if(n.checkFn&&!(0,n.checkFn)(a)){n=null;continue}s=n;n=null}this.state=n;this.match=s;this.lastProcessed=e}flush(){while(this.match){const t=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,t);this.match=null;this.state=null;this._optimize()}}reset(){this.state=null;this.match=null;this.lastProcessed=0}}class c{static get CHUNK_SIZE(){return(0,n.shadow)(this,"CHUNK_SIZE",1e3)}static get CHUNK_SIZE_ABOUT(){return(0,n.shadow)(this,"CHUNK_SIZE_ABOUT",this.CHUNK_SIZE-5)}constructor(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;let e=arguments.length>1?arguments[1]:undefined;this._streamSink=e;this.fnArray=[];this.argsArray=[];if(e&&!(t&n.RenderingIntentFlag.OPLIST)){this.optimizer=new o(this)}else{this.optimizer=new a(this)}this.dependencies=new Set;this._totalLength=0;this.weight=0;this._resolved=e?null:Promise.resolve()}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(t,e){this.optimizer.push(t,e);this.weight++;if(this._streamSink){if(this.weight>=c.CHUNK_SIZE){this.flush()}else if(this.weight>=c.CHUNK_SIZE_ABOUT&&(t===n.OPS.restore||t===n.OPS.endText)){this.flush()}}}addImageOps(t,e,i){if(i!==undefined){this.addOp(n.OPS.beginMarkedContentProps,["OC",i])}this.addOp(t,e);if(i!==undefined){this.addOp(n.OPS.endMarkedContent,[])}}addDependency(t){if(this.dependencies.has(t)){return}this.dependencies.add(t);this.addOp(n.OPS.dependency,[t])}addDependencies(t){for(const e of t){this.addDependency(e)}}addOpList(t){if(!(t instanceof c)){(0,n.warn)('addOpList - ignoring invalid "opList" parameter.');return}for(const e of t.dependencies){this.dependencies.add(e)}for(let e=0,i=t.length;e<i;e++){this.addOp(t.fnArray[e],t.argsArray[e])}}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){const t=[];const{fnArray:e,argsArray:i,length:s}=this;for(let r=0;r<s;r++){switch(e[r]){case n.OPS.paintInlineImageXObject:case n.OPS.paintInlineImageXObjectGroup:case n.OPS.paintImageMaskXObject:const e=i[r][0];if(!e.cached&&e.data&&e.data.buffer instanceof ArrayBuffer){t.push(e.data.buffer)}break}}return t}flush(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;this.optimizer.flush();const i=this.length;this._totalLength+=i;this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:t,separateAnnots:e,length:i},1,this._transfers);this.dependencies.clear();this.fnArray.length=0;this.argsArray.length=0;this.weight=0;this.optimizer.reset()}}e.OperatorList=c},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.PDFImage=void 0;var n=i(2);var s=i(193);var r=i(136);var a=i(143);var o=i(148);var c=i(156);var l=i(159);var h=i(134);function u(t,e,i,n){t=e+t*i;if(t<0){t=0}else if(t>n){t=n}return t}function f(t,e,i,n,s,r){const a=s*r;let o;if(e<=8){o=new Uint8Array(a)}else if(e<=16){o=new Uint16Array(a)}else{o=new Uint32Array(a)}const c=i/s;const l=n/r;let h,u,f,d=0,p;const m=new Uint16Array(s);const g=i;for(h=0;h<s;h++){m[h]=Math.floor(h*c)}for(h=0;h<r;h++){f=Math.floor(h*l)*g;for(u=0;u<s;u++){p=f+m[u];o[d++]=t[p]}}return o}class d{constructor(t){let{xref:e,res:i,image:s,isInline:o=false,smask:c=null,mask:u=null,isMask:f=false,pdfFunctionFactory:p,localColorSpaceCache:m}=t;this.image=s;const g=s.dict;const b=g.get("F","Filter");let v;if(b instanceof h.Name){v=b.name}else if(Array.isArray(b)){const t=e.fetchIfRef(b[0]);if(t instanceof h.Name){v=t.name}}switch(v){case"JPXDecode":const t=new l.JpxImage;t.parseImageProperties(s.stream);s.stream.reset();s.width=t.width;s.height=t.height;s.bitsPerComponent=t.bitsPerComponent;s.numComps=t.componentsCount;break;case"JBIG2Decode":s.bitsPerComponent=1;s.numComps=1;break}let w=g.get("W","Width");let y=g.get("H","Height");if(Number.isInteger(s.width)&&s.width>0&&Number.isInteger(s.height)&&s.height>0&&(s.width!==w||s.height!==y)){(0,n.warn)("PDFImage - using the Width/Height of the image data, "+"rather than the image dictionary.");w=s.width;y=s.height}if(w<1||y<1){throw new n.FormatError(`Invalid image width: ${w} or height: ${y}`)}this.width=w;this.height=y;this.interpolate=g.get("I","Interpolate");this.imageMask=g.get("IM","ImageMask")||false;this.matte=g.get("Matte")||false;let A=s.bitsPerComponent;if(!A){A=g.get("BPC","BitsPerComponent");if(!A){if(this.imageMask){A=1}else{throw new n.FormatError(`Bits per component missing in image: ${this.imageMask}`)}}}this.bpc=A;if(!this.imageMask){let t=g.getRaw("CS")||g.getRaw("ColorSpace");if(!t){(0,n.info)("JPX images (which do not require color spaces)");switch(s.numComps){case 1:t=h.Name.get("DeviceGray");break;case 3:t=h.Name.get("DeviceRGB");break;case 4:t=h.Name.get("DeviceCMYK");break;default:throw new Error(`JPX images with ${s.numComps} color components not supported.`)}}this.colorSpace=a.ColorSpace.parse({cs:t,xref:e,resources:o?i:null,pdfFunctionFactory:p,localColorSpaceCache:m});this.numComps=this.colorSpace.numComps}this.decode=g.getArray("D","Decode");this.needsDecode=false;if(this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,A)||f&&!a.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=true;const t=(1<<A)-1;this.decodeCoefficients=[];this.decodeAddends=[];const e=this.colorSpace&&this.colorSpace.name==="Indexed";for(let i=0,n=0;i<this.decode.length;i+=2,++n){const s=this.decode[i];const r=this.decode[i+1];this.decodeCoefficients[n]=e?(r-s)/t:r-s;this.decodeAddends[n]=e?s:t*s}}if(c){this.smask=new d({xref:e,res:i,image:c,isInline:o,pdfFunctionFactory:p,localColorSpaceCache:m})}else if(u){if(u instanceof r.BaseStream){const t=u.dict,s=t.get("IM","ImageMask");if(!s){(0,n.warn)("Ignoring /Mask in image without /ImageMask.")}else{this.mask=new d({xref:e,res:i,image:u,isInline:o,isMask:true,pdfFunctionFactory:p,localColorSpaceCache:m})}}else{this.mask=u}}}static async buildImage(t){let{xref:e,res:i,image:s,isInline:a=false,pdfFunctionFactory:o,localColorSpaceCache:c}=t;const l=s;let h=null;let u=null;const f=s.dict.get("SMask");const p=s.dict.get("Mask");if(f){if(f instanceof r.BaseStream){h=f}else{(0,n.warn)("Unsupported /SMask format.")}}else if(p){if(p instanceof r.BaseStream||Array.isArray(p)){u=p}else{(0,n.warn)("Unsupported /Mask format.")}}return new d({xref:e,res:i,image:l,isInline:a,smask:h,mask:u,pdfFunctionFactory:o,localColorSpaceCache:c})}static createRawMask(t){let{imgArray:e,width:i,height:n,imageIsFromDecodeStream:s,inverseDecode:r,interpolate:a}=t;const o=(i+7>>3)*n;const c=e.byteLength;const l=o===c;let h,u;if(s&&(!r||l)){h=e}else if(!r){h=new Uint8Array(e)}else{h=new Uint8Array(o);h.set(e);h.fill(255,c)}if(r){for(u=0;u<c;u++){h[u]^=255}}return{data:h,width:i,height:n,interpolate:a}}static createMask(t){let{imgArray:e,width:i,height:r,imageIsFromDecodeStream:a,inverseDecode:o,interpolate:c,isOffscreenCanvasSupported:l=true}=t;const h=i===1&&r===1&&o===(e.length===0||!!(e[0]&128));if(h){return{isSingleOpaquePixel:h}}if(l&&n.FeatureTest.isOffscreenCanvasSupported){const t=new OffscreenCanvas(i,r);const n=t.getContext("2d");const a=n.createImageData(i,r);(0,s.applyMaskImageData)({src:e,dest:a.data,width:i,height:r,inverseDecode:o});n.putImageData(a,0,0);const l=t.transferToImageBitmap();return{data:null,width:i,height:r,interpolate:c,bitmap:l}}return this.createRawMask({imgArray:e,width:i,height:r,inverseDecode:o,imageIsFromDecodeStream:a,interpolate:c})}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(t){const e=this.bpc;const i=this.numComps;const n=this.decodeAddends;const s=this.decodeCoefficients;const r=(1<<e)-1;let a,o;if(e===1){for(a=0,o=t.length;a<o;a++){t[a]=+!t[a]}return}let c=0;for(a=0,o=this.width*this.height;a<o;a++){for(let e=0;e<i;e++){t[c]=u(t[c],n[e],s[e],r);c++}}}getComponents(t){const e=this.bpc;if(e===8){return t}const i=this.width;const n=this.height;const s=this.numComps;const r=i*n*s;let a=0;let o;if(e<=8){o=new Uint8Array(r)}else if(e<=16){o=new Uint16Array(r)}else{o=new Uint32Array(r)}const c=i*s;const l=(1<<e)-1;let h=0,u,f;if(e===1){let e,i,s;for(let r=0;r<n;r++){i=h+(c&~7);s=h+c;while(h<i){f=t[a++];o[h]=f>>7&1;o[h+1]=f>>6&1;o[h+2]=f>>5&1;o[h+3]=f>>4&1;o[h+4]=f>>3&1;o[h+5]=f>>2&1;o[h+6]=f>>1&1;o[h+7]=f&1;h+=8}if(h<s){f=t[a++];e=128;while(h<s){o[h++]=+!!(f&e);e>>=1}}}}else{let i=0;f=0;for(h=0,u=r;h<u;++h){if(h%c===0){f=0;i=0}while(i<e){f=f<<8|t[a++];i+=8}const n=i-e;let s=f>>n;if(s<0){s=0}else if(s>l){s=l}o[h]=s;f&=(1<<n)-1;i=n}}return o}fillOpacity(t,e,i,s,r){const a=this.smask;const o=this.mask;let c,l,h,u,p,m;if(a){l=a.width;h=a.height;c=new Uint8ClampedArray(l*h);a.fillGrayBuffer(c);if(l!==e||h!==i){c=f(c,a.bpc,l,h,e,i)}}else if(o){if(o instanceof d){l=o.width;h=o.height;c=new Uint8ClampedArray(l*h);o.numComps=1;o.fillGrayBuffer(c);for(u=0,p=l*h;u<p;++u){c[u]=255-c[u]}if(l!==e||h!==i){c=f(c,o.bpc,l,h,e,i)}}else if(Array.isArray(o)){c=new Uint8ClampedArray(e*i);const t=this.numComps;for(u=0,p=e*i;u<p;++u){let e=0;const i=u*t;for(m=0;m<t;++m){const t=r[i+m];const n=m*2;if(t<o[n]||t>o[n+1]){e=255;break}}c[u]=e}}else{throw new n.FormatError("Unknown mask format.")}}if(c){for(u=0,m=3,p=e*s;u<p;++u,m+=4){t[m]=c[u]}}else{for(u=0,m=3,p=e*s;u<p;++u,m+=4){t[m]=255}}}undoPreblend(t,e,i){const n=this.smask&&this.smask.matte;if(!n){return}const s=this.colorSpace.getRgb(n,0);const r=s[0];const a=s[1];const o=s[2];const c=e*i*4;for(let e=0;e<c;e+=4){const i=t[e+3];if(i===0){t[e]=255;t[e+1]=255;t[e+2]=255;continue}const n=255/i;t[e]=(t[e]-r)*n+r;t[e+1]=(t[e+1]-a)*n+a;t[e+2]=(t[e+2]-o)*n+o}}createImageData(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;const e=this.drawWidth;const i=this.drawHeight;const s={width:e,height:i,interpolate:this.interpolate,kind:0,data:null};const r=this.numComps;const a=this.width;const o=this.height;const l=this.bpc;const h=a*r*l+7>>3;if(!t){let t;if(this.colorSpace.name==="DeviceGray"&&l===1){t=n.ImageKind.GRAYSCALE_1BPP}else if(this.colorSpace.name==="DeviceRGB"&&l===8&&!this.needsDecode){t=n.ImageKind.RGB_24BPP}if(t&&!this.smask&&!this.mask&&e===a&&i===o){s.kind=t;s.data=this.getImageBytes(o*h,{});if(this.needsDecode){(0,n.assert)(t===n.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");const e=s.data;for(let t=0,i=e.length;t<i;t++){e[t]^=255}}return s}if(this.image instanceof c.JpegStream&&!this.smask&&!this.mask){let t=o*h;switch(this.colorSpace.name){case"DeviceGray":t*=3;case"DeviceRGB":case"DeviceCMYK":s.kind=n.ImageKind.RGB_24BPP;s.data=this.getImageBytes(t,{drawWidth:e,drawHeight:i,forceRGB:true});return s}}}const u=this.getImageBytes(o*h,{internal:true});const f=0|u.length/h*i/o;const d=this.getComponents(u);let p,m;if(!t&&!this.smask&&!this.mask){s.kind=n.ImageKind.RGB_24BPP;s.data=new Uint8ClampedArray(e*i*3);p=0;m=false}else{s.kind=n.ImageKind.RGBA_32BPP;s.data=new Uint8ClampedArray(e*i*4);p=1;m=true;this.fillOpacity(s.data,e,i,f,d)}if(this.needsDecode){this.decodeBuffer(d)}this.colorSpace.fillRgb(s.data,a,o,e,i,f,l,d,p);if(m){this.undoPreblend(s.data,e,f)}return s}fillGrayBuffer(t){const e=this.numComps;if(e!==1){throw new n.FormatError(`Reading gray scale from a color image: ${e}`)}const i=this.width;const s=this.height;const r=this.bpc;const a=i*e*r+7>>3;const o=this.getImageBytes(s*a,{internal:true});const c=this.getComponents(o);let l,h;if(r===1){h=i*s;if(this.needsDecode){for(l=0;l<h;++l){t[l]=c[l]-1&255}}else{for(l=0;l<h;++l){t[l]=-c[l]&255}}return}if(this.needsDecode){this.decodeBuffer(c)}h=i*s;const u=255/((1<<r)-1);for(l=0;l<h;++l){t[l]=u*c[l]}}getImageBytes(t,e){let{drawWidth:i,drawHeight:s,forceRGB:r=false,internal:a=false}=e;this.image.reset();this.image.drawWidth=i||this.width;this.image.drawHeight=s||this.height;this.image.forceRGB=!!r;const c=this.image.getBytes(t);if(a||this.image instanceof o.DecodeStream){return c}(0,n.assert)(c instanceof Uint8Array,'PDFImage.getImageBytes: Unsupported "imageBytes" type.');return new Uint8Array(c)}}e.PDFImage=d},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.applyMaskImageData=s;var n=i(2);function s(t){let{src:e,srcPos:i=0,dest:s,destPos:r=0,width:a,height:o,inverseDecode:c=false}=t;const l=n.FeatureTest.isLittleEndian?4278190080:255;const[h,u]=!c?[l,0]:[0,l];const f=a>>3;const d=a&7;const p=e.length;s=new Uint32Array(s.buffer);for(let t=0;t<o;t++){for(const t=i+f;i<t;i++){const t=i<p?e[i]:255;s[r++]=t&128?u:h;s[r++]=t&64?u:h;s[r++]=t&32?u:h;s[r++]=t&16?u:h;s[r++]=t&8?u:h;s[r++]=t&4?u:h;s[r++]=t&2?u:h;s[r++]=t&1?u:h}if(d===0){continue}const t=i<p?e[i++]:255;for(let e=0;e<d;e++){s[r++]=t&1<<7-e?u:h}}return{srcPos:i,destPos:r}}},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.incrementalUpdate=w;e.writeDict=h;e.writeObject=l;var n=i(2);var s=i(134);var r=i(135);var a=i(195);var o=i(136);var c=i(196);function l(t,e,i,n){i.push(`${t.num} ${t.gen} obj\n`);if(e instanceof s.Dict){h(e,i,n)}else if(e instanceof o.BaseStream){u(e,i,n)}i.push("\nendobj\n")}function h(t,e,i){e.push("<<");for(const n of t.getKeys()){e.push(` /${(0,r.escapePDFName)(n)} `);d(t.getRaw(n),e,i)}e.push(">>")}function u(t,e,i){h(t.dict,e,i);e.push(" stream\n");let n=t.getString();if(i!==null){n=i.encryptString(n)}e.push(n,"\nendstream\n")}function f(t,e,i){e.push("[");let n=true;for(const s of t){if(!n){e.push(" ")}else{n=false}d(s,e,i)}e.push("]")}function d(t,e,i){if(t instanceof s.Name){e.push(`/${(0,r.escapePDFName)(t.name)}`)}else if(t instanceof s.Ref){e.push(`${t.num} ${t.gen} R`)}else if(Array.isArray(t)){f(t,e,i)}else if(typeof t==="string"){if(i!==null){t=i.encryptString(t)}e.push(`(${(0,n.escapeString)(t)})`)}else if(typeof t==="number"){e.push((0,r.numberToString)(t))}else if(typeof t==="boolean"){e.push(t.toString())}else if(t instanceof s.Dict){h(t,e,i)}else if(t instanceof o.BaseStream){u(t,e,i)}else if(t===null){e.push("null")}else{(0,n.warn)(`Unhandled value in writer: ${typeof t}, please file a bug.`)}}function p(t,e,i,n){for(let s=e+i-1;s>i-1;s--){n[s]=t&255;t>>=8}return i+e}function m(t,e,i){for(let n=0,s=t.length;n<s;n++){i[e+n]=t.charCodeAt(n)&255}}function g(t,e){const i=Math.floor(Date.now()/1e3);const s=e.filename||"";const r=[i.toString(),s,t.toString()];let a=r.reduce(((t,e)=>t+e.length),0);for(const t of Object.values(e.info)){r.push(t);a+=t.length}const o=new Uint8Array(a);let l=0;for(const t of r){m(t,l,o);l+=t.length}return(0,n.bytesToString)((0,c.calculateMD5)(o))}function b(t,e){const i=new a.SimpleXMLParser({hasAttributes:true}).parseFromString(t);for(const{xfa:t}of e){if(!t){continue}const{path:e,value:s}=t;if(!e){continue}const o=i.documentElement.searchNode((0,r.parseXFAPath)(e),0);if(o){if(Array.isArray(s)){o.childNodes=s.map((t=>new a.SimpleDOMNode("value",t)))}else{o.childNodes=[new a.SimpleDOMNode("#text",s)]}}else{(0,n.warn)(`Node not found for path: ${e}`)}}const s=[];i.documentElement.dump(s);return s.join("")}function v(t){let{xfaData:e,xfaDatasetsRef:i,hasXfaDatasetsEntry:s,acroFormRef:r,acroForm:a,newRefs:o,xref:c,xrefInfo:l}=t;if(c===null){return}if(!s){if(!r){(0,n.warn)("XFA - Cannot save it");return}const t=a.get("XFA");const e=t.slice();e.splice(2,0,"datasets");e.splice(3,0,i);a.set("XFA",e);const s=c.encrypt;let l=null;if(s){l=s.createCipherTransform(r.num,r.gen)}const u=[`${r.num} ${r.gen} obj\n`];h(a,u,l);u.push("\n");a.set("XFA",t);o.push({ref:r,data:u.join("")})}if(e===null){const t=c.fetchIfRef(i);e=b(t.getString(),o)}const u=c.encrypt;if(u){const t=u.createCipherTransform(i.num,i.gen);e=t.encryptString(e)}const f=`${i.num} ${i.gen} obj\n`+`<< /Type /EmbeddedFile /Length ${e.length}>>\nstream\n`+e+"\nendstream\nendobj\n";o.push({ref:i,data:f})}function w(t){let{originalData:e,xrefInfo:i,newRefs:n,xref:r=null,hasXfa:a=false,xfaDatasetsRef:o=null,hasXfaDatasetsEntry:c=false,acroFormRef:l=null,acroForm:u=null,xfaData:f=null}=t;if(a){v({xfaData:f,xfaDatasetsRef:o,hasXfaDatasetsEntry:c,acroFormRef:l,acroForm:u,newRefs:n,xref:r,xrefInfo:i})}const d=new s.Dict(null);const b=i.newRef;let w,y;const A=e.at(-1);if(A===10||A===13){w=[];y=e.length}else{w=["\n"];y=e.length+1}d.set("Size",b.num+1);d.set("Prev",i.startXRef);d.set("Type",s.Name.get("XRef"));if(i.rootRef!==null){d.set("Root",i.rootRef)}if(i.infoRef!==null){d.set("Info",i.infoRef)}if(i.encryptRef!==null){d.set("Encrypt",i.encryptRef)}n.push({ref:b,data:""});n=n.sort(((t,e)=>t.ref.num-e.ref.num));const k=[[0,1,65535]];const x=[0,1];let S=0;for(const{ref:t,data:e}of n){S=Math.max(S,y);k.push([1,y,Math.min(t.gen,65535)]);y+=e.length;x.push(t.num,1);w.push(e)}d.set("Index",x);if(Array.isArray(i.fileIds)&&i.fileIds.length>0){const t=g(y,i);d.set("ID",[i.fileIds[0],t])}const M=Math.ceil(Math.log2(S)/8);const _=[1,M,2];const E=_[0]+_[1]+_[2];const C=E*k.length;d.set("W",_);d.set("Length",C);w.push(`${b.num} ${b.gen} obj\n`);h(d,w,null);w.push(" stream\n");const O=w.reduce(((t,e)=>t+e.length),0);const T=`\nendstream\nendobj\nstartxref\n${y}\n%%EOF\n`;const I=new Uint8Array(e.length+O+C+T.length);I.set(e);let F=e.length;for(const t of w){m(t,F,I);F+=t.length}for(const[t,e,i]of k){F=p(t,_[0],F,I);F=p(e,_[1],F,I);F=p(i,_[2],F,I)}m(T,F,I);return I}},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.XMLParserErrorCode=e.XMLParserBase=e.SimpleXMLParser=e.SimpleDOMNode=void 0;var n=i(135);const s={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};e.XMLParserErrorCode=s;function r(t,e){const i=t[e];return i===" "||i==="\n"||i==="\r"||i==="\t"}function a(t){for(let e=0,i=t.length;e<i;e++){if(!r(t,e)){return false}}return true}class o{_resolveEntities(t){return t.replace(/&([^;]+);/g,((t,e)=>{if(e.substring(0,2)==="#x"){return String.fromCodePoint(parseInt(e.substring(2),16))}else if(e.substring(0,1)==="#"){return String.fromCodePoint(parseInt(e.substring(1),10))}switch(e){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return this.onResolveEntity(e)}))}_parseContent(t,e){const i=[];let n=e;function s(){while(n<t.length&&r(t,n)){++n}}while(n<t.length&&!r(t,n)&&t[n]!==">"&&t[n]!=="/"){++n}const a=t.substring(e,n);s();while(n<t.length&&t[n]!==">"&&t[n]!=="/"&&t[n]!=="?"){s();let e="",a="";while(n<t.length&&!r(t,n)&&t[n]!=="="){e+=t[n];++n}s();if(t[n]!=="="){return null}++n;s();const o=t[n];if(o!=='"'&&o!=="'"){return null}const c=t.indexOf(o,++n);if(c<0){return null}a=t.substring(n,c);i.push({name:e,value:this._resolveEntities(a)});n=c+1;s()}return{name:a,attributes:i,parsed:n-e}}_parseProcessingInstruction(t,e){let i=e;function n(){while(i<t.length&&r(t,i)){++i}}while(i<t.length&&!r(t,i)&&t[i]!==">"&&t[i]!=="?"&&t[i]!=="/"){++i}const s=t.substring(e,i);n();const a=i;while(i<t.length&&(t[i]!=="?"||t[i+1]!==">")){++i}const o=t.substring(a,i);return{name:s,value:o,parsed:i-e}}parseXml(t){let e=0;while(e<t.length){const i=t[e];let n=e;if(i==="<"){++n;const e=t[n];let i;switch(e){case"/":++n;i=t.indexOf(">",n);if(i<0){this.onError(s.UnterminatedElement);return}this.onEndElement(t.substring(n,i));n=i+1;break;case"?":++n;const e=this._parseProcessingInstruction(t,n);if(t.substring(n+e.parsed,n+e.parsed+2)!=="?>"){this.onError(s.UnterminatedXmlDeclaration);return}this.onPi(e.name,e.value);n+=e.parsed+2;break;case"!":if(t.substring(n+1,n+3)==="--"){i=t.indexOf("--\x3e",n+3);if(i<0){this.onError(s.UnterminatedComment);return}this.onComment(t.substring(n+3,i));n=i+3}else if(t.substring(n+1,n+8)==="[CDATA["){i=t.indexOf("]]>",n+8);if(i<0){this.onError(s.UnterminatedCdat);return}this.onCdata(t.substring(n+8,i));n=i+3}else if(t.substring(n+1,n+8)==="DOCTYPE"){const e=t.indexOf("[",n+8);let r=false;i=t.indexOf(">",n+8);if(i<0){this.onError(s.UnterminatedDoctypeDeclaration);return}if(e>0&&i>e){i=t.indexOf("]>",n+8);if(i<0){this.onError(s.UnterminatedDoctypeDeclaration);return}r=true}const a=t.substring(n+8,i+(r?1:0));this.onDoctype(a);n=i+(r?2:1)}else{this.onError(s.MalformedElement);return}break;default:const r=this._parseContent(t,n);if(r===null){this.onError(s.MalformedElement);return}let a=false;if(t.substring(n+r.parsed,n+r.parsed+2)==="/>"){a=true}else if(t.substring(n+r.parsed,n+r.parsed+1)!==">"){this.onError(s.UnterminatedElement);return}this.onBeginElement(r.name,r.attributes,a);n+=r.parsed+(a?2:1);break}}else{while(n<t.length&&t[n]!=="<"){n++}const i=t.substring(e,n);this.onText(this._resolveEntities(i))}e=n}}onResolveEntity(t){return`&${t};`}onPi(t,e){}onComment(t){}onCdata(t){}onDoctype(t){}onText(t){}onBeginElement(t,e,i){}onEndElement(t){}onError(t){}}e.XMLParserBase=o;class c{constructor(t,e){this.nodeName=t;this.nodeValue=e;Object.defineProperty(this,"parentNode",{value:null,writable:true})}get firstChild(){return this.childNodes&&this.childNodes[0]}get nextSibling(){const t=this.parentNode.childNodes;if(!t){return undefined}const e=t.indexOf(this);if(e===-1){return undefined}return t[e+1]}get textContent(){if(!this.childNodes){return this.nodeValue||""}return this.childNodes.map((function(t){return t.textContent})).join("")}get children(){return this.childNodes||[]}hasChildNodes(){return this.childNodes&&this.childNodes.length>0}searchNode(t,e){if(e>=t.length){return this}const i=t[e];const n=[];let s=this;while(true){if(i.name===s.nodeName){if(i.pos===0){const i=s.searchNode(t,e+1);if(i!==null){return i}}else if(n.length===0){return null}else{const[r]=n.pop();let a=0;for(const n of r.childNodes){if(i.name===n.nodeName){if(a===i.pos){return n.searchNode(t,e+1)}a++}}return s.searchNode(t,e+1)}}if(s.childNodes&&s.childNodes.length!==0){n.push([s,0]);s=s.childNodes[0]}else if(n.length===0){return null}else{while(n.length!==0){const[t,e]=n.pop();const i=e+1;if(i<t.childNodes.length){n.push([t,i]);s=t.childNodes[i];break}}if(n.length===0){return null}}}}dump(t){if(this.nodeName==="#text"){t.push((0,n.encodeToXmlString)(this.nodeValue));return}t.push(`<${this.nodeName}`);if(this.attributes){for(const e of this.attributes){t.push(` ${e.name}="${(0,n.encodeToXmlString)(e.value)}"`)}}if(this.hasChildNodes()){t.push(">");for(const e of this.childNodes){e.dump(t)}t.push(`</${this.nodeName}>`)}else if(this.nodeValue){t.push(`>${(0,n.encodeToXmlString)(this.nodeValue)}</${this.nodeName}>`)}else{t.push("/>")}}}e.SimpleDOMNode=c;class l extends o{constructor(t){let{hasAttributes:e=false,lowerCaseName:i=false}=t;super();this._currentFragment=null;this._stack=null;this._errorCode=s.NoError;this._hasAttributes=e;this._lowerCaseName=i}parseFromString(t){this._currentFragment=[];this._stack=[];this._errorCode=s.NoError;this.parseXml(t);if(this._errorCode!==s.NoError){return undefined}const[e]=this._currentFragment;if(!e){return undefined}return{documentElement:e}}onText(t){if(a(t)){return}const e=new c("#text",t);this._currentFragment.push(e)}onCdata(t){const e=new c("#text",t);this._currentFragment.push(e)}onBeginElement(t,e,i){if(this._lowerCaseName){t=t.toLowerCase()}const n=new c(t);n.childNodes=[];if(this._hasAttributes){n.attributes=e}this._currentFragment.push(n);if(i){return}this._stack.push(this._currentFragment);this._currentFragment=n.childNodes}onEndElement(t){this._currentFragment=this._stack.pop()||[];const e=this._currentFragment.at(-1);if(!e){return null}for(const t of e.childNodes){t.parentNode=e}return e}onError(t){this._errorCode=t}}e.SimpleXMLParser=l},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.calculateSHA256=e.calculateMD5=e.PDF20=e.PDF17=e.CipherTransformFactory=e.ARCFourCipher=e.AES256Cipher=e.AES128Cipher=void 0;e.calculateSHA384=u;e.calculateSHA512=void 0;var n=i(2);var s=i(134);var r=i(197);class a{constructor(t){this.a=0;this.b=0;const e=new Uint8Array(256);const i=t.length;for(let t=0;t<256;++t){e[t]=t}for(let n=0,s=0;n<256;++n){const r=e[n];s=s+r+t[n%i]&255;e[n]=e[s];e[s]=r}this.s=e}encryptBlock(t){let e=this.a,i=this.b;const n=this.s;const s=t.length;const r=new Uint8Array(s);for(let a=0;a<s;++a){e=e+1&255;const s=n[e];i=i+s&255;const o=n[i];n[e]=o;n[i]=s;r[a]=t[a]^n[s+o&255]}this.a=e;this.b=i;return r}decryptBlock(t){return this.encryptBlock(t)}encrypt(t){return this.encryptBlock(t)}}e.ARCFourCipher=a;const o=function t(){const e=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]);const i=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 n(t,n,s){let r=1732584193,a=-271733879,o=-1732584194,c=271733878;const l=s+72&~63;const h=new Uint8Array(l);let u,f;for(u=0;u<s;++u){h[u]=t[n++]}h[u++]=128;const d=l-8;while(u<d){h[u++]=0}h[u++]=s<<3&255;h[u++]=s>>5&255;h[u++]=s>>13&255;h[u++]=s>>21&255;h[u++]=s>>>29&255;h[u++]=0;h[u++]=0;h[u++]=0;const p=new Int32Array(16);for(u=0;u<l;){for(f=0;f<16;++f,u+=4){p[f]=h[u]|h[u+1]<<8|h[u+2]<<16|h[u+3]<<24}let t=r,n=a,s=o,l=c,d,m;for(f=0;f<64;++f){if(f<16){d=n&s|~n&l;m=f}else if(f<32){d=l&n|~l&s;m=5*f+1&15}else if(f<48){d=n^s^l;m=3*f+5&15}else{d=s^(n|~l);m=7*f&15}const r=l,a=t+d+i[f]+p[m]|0,o=e[f];l=s;s=n;n=n+(a<<o|a>>>32-o)|0;t=r}r=r+t|0;a=a+n|0;o=o+s|0;c=c+l|0}return new Uint8Array([r&255,r>>8&255,r>>16&255,r>>>24&255,a&255,a>>8&255,a>>16&255,a>>>24&255,o&255,o>>8&255,o>>16&255,o>>>24&255,c&255,c>>8&255,c>>16&255,c>>>24&255])}return n}();e.calculateMD5=o;class c{constructor(t,e){this.high=t|0;this.low=e|0}and(t){this.high&=t.high;this.low&=t.low}xor(t){this.high^=t.high;this.low^=t.low}or(t){this.high|=t.high;this.low|=t.low}shiftRight(t){if(t>=32){this.low=this.high>>>t-32|0;this.high=0}else{this.low=this.low>>>t|this.high<<32-t;this.high=this.high>>>t|0}}shiftLeft(t){if(t>=32){this.high=this.low<<t-32;this.low=0}else{this.high=this.high<<t|this.low>>>32-t;this.low<<=t}}rotateRight(t){let e,i;if(t&32){i=this.low;e=this.high}else{e=this.low;i=this.high}t&=31;this.low=e>>>t|i<<32-t;this.high=i>>>t|e<<32-t}not(){this.high=~this.high;this.low=~this.low}add(t){const e=(this.low>>>0)+(t.low>>>0);let i=(this.high>>>0)+(t.high>>>0);if(e>4294967295){i+=1}this.low=e|0;this.high=i|0}copyTo(t,e){t[e]=this.high>>>24&255;t[e+1]=this.high>>16&255;t[e+2]=this.high>>8&255;t[e+3]=this.high&255;t[e+4]=this.low>>>24&255;t[e+5]=this.low>>16&255;t[e+6]=this.low>>8&255;t[e+7]=this.low&255}assign(t){this.high=t.high;this.low=t.low}}const l=function t(){function e(t,e){return t>>>e|t<<32-e}function i(t,e,i){return t&e^~t&i}function n(t,e,i){return t&e^t&i^e&i}function s(t){return e(t,2)^e(t,13)^e(t,22)}function r(t){return e(t,6)^e(t,11)^e(t,25)}function a(t){return e(t,7)^e(t,18)^t>>>3}function o(t){return e(t,17)^e(t,19)^t>>>10}const c=[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(t,e,l){let h=1779033703,u=3144134277,f=1013904242,d=2773480762,p=1359893119,m=2600822924,g=528734635,b=1541459225;const v=Math.ceil((l+9)/64)*64;const w=new Uint8Array(v);let y,A;for(y=0;y<l;++y){w[y]=t[e++]}w[y++]=128;const k=v-8;while(y<k){w[y++]=0}w[y++]=0;w[y++]=0;w[y++]=0;w[y++]=l>>>29&255;w[y++]=l>>21&255;w[y++]=l>>13&255;w[y++]=l>>5&255;w[y++]=l<<3&255;const x=new Uint32Array(64);for(y=0;y<v;){for(A=0;A<16;++A){x[A]=w[y]<<24|w[y+1]<<16|w[y+2]<<8|w[y+3];y+=4}for(A=16;A<64;++A){x[A]=o(x[A-2])+x[A-7]+a(x[A-15])+x[A-16]|0}let t=h,e=u,l=f,v=d,k=p,S=m,M=g,_=b,E,C;for(A=0;A<64;++A){E=_+r(k)+i(k,S,M)+c[A]+x[A];C=s(t)+n(t,e,l);_=M;M=S;S=k;k=v+E|0;v=l;l=e;e=t;t=E+C|0}h=h+t|0;u=u+e|0;f=f+l|0;d=d+v|0;p=p+k|0;m=m+S|0;g=g+M|0;b=b+_|0}return new Uint8Array([h>>24&255,h>>16&255,h>>8&255,h&255,u>>24&255,u>>16&255,u>>8&255,u&255,f>>24&255,f>>16&255,f>>8&255,f&255,d>>24&255,d>>16&255,d>>8&255,d&255,p>>24&255,p>>16&255,p>>8&255,p&255,m>>24&255,m>>16&255,m>>8&255,m&255,g>>24&255,g>>16&255,g>>8&255,g&255,b>>24&255,b>>16&255,b>>8&255,b&255])}return l}();e.calculateSHA256=l;const h=function t(){function e(t,e,i,n,s){t.assign(e);t.and(i);s.assign(e);s.not();s.and(n);t.xor(s)}function i(t,e,i,n,s){t.assign(e);t.and(i);s.assign(e);s.and(n);t.xor(s);s.assign(i);s.and(n);t.xor(s)}function n(t,e,i){t.assign(e);t.rotateRight(28);i.assign(e);i.rotateRight(34);t.xor(i);i.assign(e);i.rotateRight(39);t.xor(i)}function s(t,e,i){t.assign(e);t.rotateRight(14);i.assign(e);i.rotateRight(18);t.xor(i);i.assign(e);i.rotateRight(41);t.xor(i)}function r(t,e,i){t.assign(e);t.rotateRight(1);i.assign(e);i.rotateRight(8);t.xor(i);i.assign(e);i.shiftRight(7);t.xor(i)}function a(t,e,i){t.assign(e);t.rotateRight(19);i.assign(e);i.rotateRight(61);t.xor(i);i.assign(e);i.shiftRight(6);t.xor(i)}const o=[new c(1116352408,3609767458),new c(1899447441,602891725),new c(3049323471,3964484399),new c(3921009573,2173295548),new c(961987163,4081628472),new c(1508970993,3053834265),new c(2453635748,2937671579),new c(2870763221,3664609560),new c(3624381080,2734883394),new c(310598401,1164996542),new c(607225278,1323610764),new c(1426881987,3590304994),new c(1925078388,4068182383),new c(2162078206,991336113),new c(2614888103,633803317),new c(3248222580,3479774868),new c(3835390401,2666613458),new c(4022224774,944711139),new c(264347078,2341262773),new c(604807628,2007800933),new c(770255983,1495990901),new c(1249150122,1856431235),new c(1555081692,3175218132),new c(1996064986,2198950837),new c(2554220882,3999719339),new c(2821834349,766784016),new c(2952996808,2566594879),new c(3210313671,3203337956),new c(3336571891,1034457026),new c(3584528711,2466948901),new c(113926993,3758326383),new c(338241895,168717936),new c(666307205,1188179964),new c(773529912,1546045734),new c(1294757372,1522805485),new c(1396182291,2643833823),new c(1695183700,2343527390),new c(1986661051,1014477480),new c(2177026350,1206759142),new c(2456956037,344077627),new c(2730485921,1290863460),new c(2820302411,3158454273),new c(3259730800,3505952657),new c(3345764771,106217008),new c(3516065817,3606008344),new c(3600352804,1432725776),new c(4094571909,1467031594),new c(275423344,851169720),new c(430227734,3100823752),new c(506948616,1363258195),new c(659060556,3750685593),new c(883997877,3785050280),new c(958139571,3318307427),new c(1322822218,3812723403),new c(1537002063,2003034995),new c(1747873779,3602036899),new c(1955562222,1575990012),new c(2024104815,1125592928),new c(2227730452,2716904306),new c(2361852424,442776044),new c(2428436474,593698344),new c(2756734187,3733110249),new c(3204031479,2999351573),new c(3329325298,3815920427),new c(3391569614,3928383900),new c(3515267271,566280711),new c(3940187606,3454069534),new c(4118630271,4000239992),new c(116418474,1914138554),new c(174292421,2731055270),new c(289380356,3203993006),new c(460393269,320620315),new c(685471733,587496836),new c(852142971,1086792851),new c(1017036298,365543100),new c(1126000580,2618297676),new c(1288033470,3409855158),new c(1501505948,4234509866),new c(1607167915,987167468),new c(1816402316,1246189591)];function l(t,l,h){let u=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;let f,d,p,m,g,b,v,w;if(!u){f=new c(1779033703,4089235720);d=new c(3144134277,2227873595);p=new c(1013904242,4271175723);m=new c(2773480762,1595750129);g=new c(1359893119,2917565137);b=new c(2600822924,725511199);v=new c(528734635,4215389547);w=new c(1541459225,327033209)}else{f=new c(3418070365,3238371032);d=new c(1654270250,914150663);p=new c(2438529370,812702999);m=new c(355462360,4144912697);g=new c(1731405415,4290775857);b=new c(2394180231,1750603025);v=new c(3675008525,1694076839);w=new c(1203062813,3204075428)}const y=Math.ceil((h+17)/128)*128;const A=new Uint8Array(y);let k,x;for(k=0;k<h;++k){A[k]=t[l++]}A[k++]=128;const S=y-16;while(k<S){A[k++]=0}A[k++]=0;A[k++]=0;A[k++]=0;A[k++]=0;A[k++]=0;A[k++]=0;A[k++]=0;A[k++]=0;A[k++]=0;A[k++]=0;A[k++]=0;A[k++]=h>>>29&255;A[k++]=h>>21&255;A[k++]=h>>13&255;A[k++]=h>>5&255;A[k++]=h<<3&255;const M=new Array(80);for(k=0;k<80;k++){M[k]=new c(0,0)}let _=new c(0,0),E=new c(0,0),C=new c(0,0);let O=new c(0,0),T=new c(0,0),I=new c(0,0);let F=new c(0,0),P=new c(0,0);const D=new c(0,0),R=new c(0,0);const N=new c(0,0),j=new c(0,0);let L;for(k=0;k<y;){for(x=0;x<16;++x){M[x].high=A[k]<<24|A[k+1]<<16|A[k+2]<<8|A[k+3];M[x].low=A[k+4]<<24|A[k+5]<<16|A[k+6]<<8|A[k+7];k+=8}for(x=16;x<80;++x){L=M[x];a(L,M[x-2],j);L.add(M[x-7]);r(N,M[x-15],j);L.add(N);L.add(M[x-16])}_.assign(f);E.assign(d);C.assign(p);O.assign(m);T.assign(g);I.assign(b);F.assign(v);P.assign(w);for(x=0;x<80;++x){D.assign(P);s(N,T,j);D.add(N);e(N,T,I,F,j);D.add(N);D.add(o[x]);D.add(M[x]);n(R,_,j);i(N,_,E,C,j);R.add(N);L=P;P=F;F=I;I=T;O.add(D);T=O;O=C;C=E;E=_;L.assign(D);L.add(R);_=L}f.add(_);d.add(E);p.add(C);m.add(O);g.add(T);b.add(I);v.add(F);w.add(P)}let U;if(!u){U=new Uint8Array(64);f.copyTo(U,0);d.copyTo(U,8);p.copyTo(U,16);m.copyTo(U,24);g.copyTo(U,32);b.copyTo(U,40);v.copyTo(U,48);w.copyTo(U,56)}else{U=new Uint8Array(48);f.copyTo(U,0);d.copyTo(U,8);p.copyTo(U,16);m.copyTo(U,24);g.copyTo(U,32);b.copyTo(U,40)}return U}return l}();e.calculateSHA512=h;function u(t,e,i){return h(t,e,i,true)}class f{decryptBlock(t){return t}encrypt(t){return t}}class d{constructor(){if(this.constructor===d){(0,n.unreachable)("Cannot initialize AESBaseCipher.")}this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]);this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]);this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]);this._mixCol=new Uint8Array(256);for(let t=0;t<256;t++){if(t<128){this._mixCol[t]=t<<1}else{this._mixCol[t]=t<<1^27}}this.buffer=new Uint8Array(16);this.bufferPosition=0}_expandKey(t){(0,n.unreachable)("Cannot call `_expandKey` on the base class")}_decrypt(t,e){let i,n,s;const r=new Uint8Array(16);r.set(t);for(let t=0,i=this._keySize;t<16;++t,++i){r[t]^=e[i]}for(let t=this._cyclesOfRepetition-1;t>=1;--t){i=r[13];r[13]=r[9];r[9]=r[5];r[5]=r[1];r[1]=i;i=r[14];n=r[10];r[14]=r[6];r[10]=r[2];r[6]=i;r[2]=n;i=r[15];n=r[11];s=r[7];r[15]=r[3];r[11]=i;r[7]=n;r[3]=s;for(let t=0;t<16;++t){r[t]=this._inv_s[r[t]]}for(let i=0,n=t*16;i<16;++i,++n){r[i]^=e[n]}for(let t=0;t<16;t+=4){const e=this._mix[r[t]];const n=this._mix[r[t+1]];const s=this._mix[r[t+2]];const a=this._mix[r[t+3]];i=e^n>>>8^n<<24^s>>>16^s<<16^a>>>24^a<<8;r[t]=i>>>24&255;r[t+1]=i>>16&255;r[t+2]=i>>8&255;r[t+3]=i&255}}i=r[13];r[13]=r[9];r[9]=r[5];r[5]=r[1];r[1]=i;i=r[14];n=r[10];r[14]=r[6];r[10]=r[2];r[6]=i;r[2]=n;i=r[15];n=r[11];s=r[7];r[15]=r[3];r[11]=i;r[7]=n;r[3]=s;for(let t=0;t<16;++t){r[t]=this._inv_s[r[t]];r[t]^=e[t]}return r}_encrypt(t,e){const i=this._s;let n,s,r;const a=new Uint8Array(16);a.set(t);for(let t=0;t<16;++t){a[t]^=e[t]}for(let t=1;t<this._cyclesOfRepetition;t++){for(let t=0;t<16;++t){a[t]=i[a[t]]}r=a[1];a[1]=a[5];a[5]=a[9];a[9]=a[13];a[13]=r;r=a[2];s=a[6];a[2]=a[10];a[6]=a[14];a[10]=r;a[14]=s;r=a[3];s=a[7];n=a[11];a[3]=a[15];a[7]=r;a[11]=s;a[15]=n;for(let t=0;t<16;t+=4){const e=a[t+0];const i=a[t+1];const s=a[t+2];const r=a[t+3];n=e^i^s^r;a[t+0]^=n^this._mixCol[e^i];a[t+1]^=n^this._mixCol[i^s];a[t+2]^=n^this._mixCol[s^r];a[t+3]^=n^this._mixCol[r^e]}for(let i=0,n=t*16;i<16;++i,++n){a[i]^=e[n]}}for(let t=0;t<16;++t){a[t]=i[a[t]]}r=a[1];a[1]=a[5];a[5]=a[9];a[9]=a[13];a[13]=r;r=a[2];s=a[6];a[2]=a[10];a[6]=a[14];a[10]=r;a[14]=s;r=a[3];s=a[7];n=a[11];a[3]=a[15];a[7]=r;a[11]=s;a[15]=n;for(let t=0,i=this._keySize;t<16;++t,++i){a[t]^=e[i]}return a}_decryptBlock2(t,e){const i=t.length;let n=this.buffer,s=this.bufferPosition;const r=[];let a=this.iv;for(let e=0;e<i;++e){n[s]=t[e];++s;if(s<16){continue}const i=this._decrypt(n,this._key);for(let t=0;t<16;++t){i[t]^=a[t]}a=n;r.push(i);n=new Uint8Array(16);s=0}this.buffer=n;this.bufferLength=s;this.iv=a;if(r.length===0){return new Uint8Array(0)}let o=16*r.length;if(e){const t=r.at(-1);let e=t[15];if(e<=16){for(let i=15,n=16-e;i>=n;--i){if(t[i]!==e){e=0;break}}o-=e;r[r.length-1]=t.subarray(0,16-e)}}const c=new Uint8Array(o);for(let t=0,e=0,i=r.length;t<i;++t,e+=16){c.set(r[t],e)}return c}decryptBlock(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;const n=t.length;const s=this.buffer;let r=this.bufferPosition;if(i){this.iv=i}else{for(let e=0;r<16&&e<n;++e,++r){s[r]=t[e]}if(r<16){this.bufferLength=r;return new Uint8Array(0)}this.iv=s;t=t.subarray(16)}this.buffer=new Uint8Array(16);this.bufferLength=0;this.decryptBlock=this._decryptBlock2;return this.decryptBlock(t,e)}encrypt(t,e){const i=t.length;let n=this.buffer,s=this.bufferPosition;const r=[];if(!e){e=new Uint8Array(16)}for(let a=0;a<i;++a){n[s]=t[a];++s;if(s<16){continue}for(let t=0;t<16;++t){n[t]^=e[t]}const i=this._encrypt(n,this._key);e=i;r.push(i);n=new Uint8Array(16);s=0}this.buffer=n;this.bufferLength=s;this.iv=e;if(r.length===0){return new Uint8Array(0)}const a=16*r.length;const o=new Uint8Array(a);for(let t=0,e=0,i=r.length;t<i;++t,e+=16){o.set(r[t],e)}return o}}class p extends d{constructor(t){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(t)}_expandKey(t){const e=176;const i=this._s;const n=this._rcon;const s=new Uint8Array(e);s.set(t);for(let t=16,r=1;t<e;++r){let e=s[t-3];let a=s[t-2];let o=s[t-1];let c=s[t-4];e=i[e];a=i[a];o=i[o];c=i[c];e^=n[r];for(let i=0;i<4;++i){s[t]=e^=s[t-16];t++;s[t]=a^=s[t-16];t++;s[t]=o^=s[t-16];t++;s[t]=c^=s[t-16];t++}}return s}}e.AES128Cipher=p;class m extends d{constructor(t){super();this._cyclesOfRepetition=14;this._keySize=224;this._key=this._expandKey(t)}_expandKey(t){const e=240;const i=this._s;const n=new Uint8Array(e);n.set(t);let s=1;let r,a,o,c;for(let t=32,l=1;t<e;++l){if(t%32===16){r=i[r];a=i[a];o=i[o];c=i[c]}else if(t%32===0){r=n[t-3];a=n[t-2];o=n[t-1];c=n[t-4];r=i[r];a=i[a];o=i[o];c=i[c];r^=s;if((s<<=1)>=256){s=(s^27)&255}}for(let e=0;e<4;++e){n[t]=r^=n[t-32];t++;n[t]=a^=n[t-32];t++;n[t]=o^=n[t-32];t++;n[t]=c^=n[t-32];t++}}return n}}e.AES256Cipher=m;class g{checkOwnerPassword(t,e,i,s){const r=new Uint8Array(t.length+56);r.set(t,0);r.set(e,t.length);r.set(i,t.length+e.length);const a=l(r,0,r.length);return(0,n.isArrayEqual)(a,s)}checkUserPassword(t,e,i){const s=new Uint8Array(t.length+8);s.set(t,0);s.set(e,t.length);const r=l(s,0,s.length);return(0,n.isArrayEqual)(r,i)}getOwnerKey(t,e,i,n){const s=new Uint8Array(t.length+56);s.set(t,0);s.set(e,t.length);s.set(i,t.length+e.length);const r=l(s,0,s.length);const a=new m(r);return a.decryptBlock(n,false,new Uint8Array(16))}getUserKey(t,e,i){const n=new Uint8Array(t.length+8);n.set(t,0);n.set(e,t.length);const s=l(n,0,n.length);const r=new m(s);return r.decryptBlock(i,false,new Uint8Array(16))}}e.PDF17=g;const b=function t(){function e(t,e,i){let n=l(e,0,e.length).subarray(0,32);let s=[0];let r=0;while(r<64||s.at(-1)>r-32){const e=t.length+n.length+i.length,a=new Uint8Array(e);let o=0;a.set(t,o);o+=t.length;a.set(n,o);o+=n.length;a.set(i,o);const c=new Uint8Array(e*64);for(let t=0,i=0;t<64;t++,i+=e){c.set(a,i)}const f=new p(n.subarray(0,16));s=f.encrypt(c,n.subarray(16,32));const d=s.slice(0,16).reduce(((t,e)=>t+e),0)%3;if(d===0){n=l(s,0,s.length)}else if(d===1){n=u(s,0,s.length)}else if(d===2){n=h(s,0,s.length)}r++}return n.subarray(0,32)}class i{hash(t,i,n){return e(t,i,n)}checkOwnerPassword(t,i,s,r){const a=new Uint8Array(t.length+56);a.set(t,0);a.set(i,t.length);a.set(s,t.length+i.length);const o=e(t,a,s);return(0,n.isArrayEqual)(o,r)}checkUserPassword(t,i,s){const r=new Uint8Array(t.length+8);r.set(t,0);r.set(i,t.length);const a=e(t,r,[]);return(0,n.isArrayEqual)(a,s)}getOwnerKey(t,i,n,s){const r=new Uint8Array(t.length+56);r.set(t,0);r.set(i,t.length);r.set(n,t.length+i.length);const a=e(t,r,n);const o=new m(a);return o.decryptBlock(s,false,new Uint8Array(16))}getUserKey(t,i,n){const s=new Uint8Array(t.length+8);s.set(t,0);s.set(i,t.length);const r=e(t,s,[]);const a=new m(r);return a.decryptBlock(n,false,new Uint8Array(16))}}return i}();e.PDF20=b;class v{constructor(t,e){this.StringCipherConstructor=t;this.StreamCipherConstructor=e}createStream(t,e){const i=new this.StreamCipherConstructor;return new r.DecryptStream(t,e,(function t(e,n){return i.decryptBlock(e,n)}))}decryptString(t){const e=new this.StringCipherConstructor;let i=(0,n.stringToBytes)(t);i=e.decryptBlock(i,true);return(0,n.bytesToString)(i)}encryptString(t){const e=new this.StringCipherConstructor;if(e instanceof d){const i=t.length;const s=16-i%16;t+=String.fromCharCode(s).repeat(s);const r=new Uint8Array(16);if(typeof crypto!=="undefined"){crypto.getRandomValues(r)}else{for(let t=0;t<16;t++){r[t]=Math.floor(256*Math.random())}}let a=(0,n.stringToBytes)(t);a=e.encrypt(a,r);const o=new Uint8Array(16+a.length);o.set(r);o.set(a,16);return(0,n.bytesToString)(o)}let i=(0,n.stringToBytes)(t);i=e.encrypt(i);return(0,n.bytesToString)(i)}}const w=function t(){const e=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 i(t,e,i,n,s,r,a,o,c,l,h,u){if(e){const t=Math.min(127,e.length);e=e.subarray(0,t)}else{e=[]}let f;if(t===6){f=new b}else{f=new g}if(f.checkUserPassword(e,o,a)){return f.getUserKey(e,c,h)}else if(e.length&&f.checkOwnerPassword(e,n,r,i)){return f.getOwnerKey(e,s,r,l)}return null}function r(t,i,n,s,r,c,l,h){const u=40+n.length+t.length;const f=new Uint8Array(u);let d=0,p,m;if(i){m=Math.min(32,i.length);for(;d<m;++d){f[d]=i[d]}}p=0;while(d<32){f[d++]=e[p++]}for(p=0,m=n.length;p<m;++p){f[d++]=n[p]}f[d++]=r&255;f[d++]=r>>8&255;f[d++]=r>>16&255;f[d++]=r>>>24&255;for(p=0,m=t.length;p<m;++p){f[d++]=t[p]}if(c>=4&&!h){f[d++]=255;f[d++]=255;f[d++]=255;f[d++]=255}let g=o(f,0,d);const b=l>>3;if(c>=3){for(p=0;p<50;++p){g=o(g,0,b)}}const v=g.subarray(0,b);let w,y;if(c>=3){for(d=0;d<32;++d){f[d]=e[d]}for(p=0,m=t.length;p<m;++p){f[d++]=t[p]}w=new a(v);y=w.encryptBlock(o(f,0,d));m=v.length;const i=new Uint8Array(m);for(p=1;p<=19;++p){for(let t=0;t<m;++t){i[t]=v[t]^p}w=new a(i);y=w.encryptBlock(y)}for(p=0,m=y.length;p<m;++p){if(s[p]!==y[p]){return null}}}else{w=new a(v);y=w.encryptBlock(e);for(p=0,m=y.length;p<m;++p){if(s[p]!==y[p]){return null}}}return v}function c(t,i,n,s){const r=new Uint8Array(32);let c=0;const l=Math.min(32,t.length);for(;c<l;++c){r[c]=t[c]}let h=0;while(c<32){r[c++]=e[h++]}let u=o(r,0,c);const f=s>>3;if(n>=3){for(h=0;h<50;++h){u=o(u,0,u.length)}}let d,p;if(n>=3){p=i;const t=new Uint8Array(f);for(h=19;h>=0;h--){for(let e=0;e<f;++e){t[e]=u[e]^h}d=new a(t);p=d.encryptBlock(p)}}else{d=new a(u.subarray(0,f));p=d.encryptBlock(i)}return p}const l=s.Name.get("Identity");function h(t,e,i){let n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;const s=new Uint8Array(i.length+9);const r=i.length;let a;for(a=0;a<r;++a){s[a]=i[a]}s[a++]=t&255;s[a++]=t>>8&255;s[a++]=t>>16&255;s[a++]=e&255;s[a++]=e>>8&255;if(n){s[a++]=115;s[a++]=65;s[a++]=108;s[a++]=84}const c=o(s,0,a);return c.subarray(0,Math.min(i.length+5,16))}function u(t,e,i,r,o){if(!(e instanceof s.Name)){throw new n.FormatError("Invalid crypt filter name.")}const c=t.get(e.name);let l;if(c!==null&&c!==undefined){l=c.get("CFM")}if(!l||l.name==="None"){return function t(){return new f}}if(l.name==="V2"){return function t(){return new a(h(i,r,o,false))}}if(l.name==="AESV2"){return function t(){return new p(h(i,r,o,true))}}if(l.name==="AESV3"){return function t(){return new m(o)}}throw new n.FormatError("Unknown crypto method")}class d{constructor(t,e,a){const o=t.get("Filter");if(!(0,s.isName)(o,"Standard")){throw new n.FormatError("unknown encryption method")}this.filterName=o.name;this.dict=t;const h=t.get("V");if(!Number.isInteger(h)||h!==1&&h!==2&&h!==4&&h!==5){throw new n.FormatError("unsupported encryption algorithm")}this.algorithm=h;let u=t.get("Length");if(!u){if(h<=3){u=40}else{const e=t.get("CF");const i=t.get("StmF");if(e instanceof s.Dict&&i instanceof s.Name){e.suppressEncryption=true;const t=e.get(i.name);u=t&&t.get("Length")||128;if(u<40){u<<=3}}}}if(!Number.isInteger(u)||u<40||u%8!==0){throw new n.FormatError("invalid key length")}const f=(0,n.stringToBytes)(t.get("O")).subarray(0,32);const d=(0,n.stringToBytes)(t.get("U")).subarray(0,32);const p=t.get("P");const m=t.get("R");const g=(h===4||h===5)&&t.get("EncryptMetadata")!==false;this.encryptMetadata=g;const b=(0,n.stringToBytes)(e);let v;if(a){if(m===6){try{a=(0,n.utf8StringToString)(a)}catch(t){(0,n.warn)("CipherTransformFactory: "+"Unable to convert UTF8 encoded password.")}}v=(0,n.stringToBytes)(a)}let w;if(h!==5){w=r(b,v,f,d,p,m,u,g)}else{const e=(0,n.stringToBytes)(t.get("O")).subarray(32,40);const s=(0,n.stringToBytes)(t.get("O")).subarray(40,48);const r=(0,n.stringToBytes)(t.get("U")).subarray(0,48);const a=(0,n.stringToBytes)(t.get("U")).subarray(32,40);const o=(0,n.stringToBytes)(t.get("U")).subarray(40,48);const c=(0,n.stringToBytes)(t.get("OE"));const l=(0,n.stringToBytes)(t.get("UE"));(0,n.stringToBytes)(t.get("Perms"));w=i(m,v,f,e,s,r,d,a,o,c,l)}if(!w&&!a){throw new n.PasswordException("No password given",n.PasswordResponses.NEED_PASSWORD)}else if(!w&&a){const t=c(v,f,m,u);w=r(b,t,f,d,p,m,u,g)}if(!w){throw new n.PasswordException("Incorrect Password",n.PasswordResponses.INCORRECT_PASSWORD)}this.encryptionKey=w;if(h>=4){const e=t.get("CF");if(e instanceof s.Dict){e.suppressEncryption=true}this.cf=e;this.stmf=t.get("StmF")||l;this.strf=t.get("StrF")||l;this.eff=t.get("EFF")||this.stmf}}createCipherTransform(t,e){if(this.algorithm===4||this.algorithm===5){return new v(u(this.cf,this.strf,t,e,this.encryptionKey),u(this.cf,this.stmf,t,e,this.encryptionKey))}const i=h(t,e,this.encryptionKey,false);const n=function t(){return new a(i)};return new v(n,n)}}return d}();e.CipherTransformFactory=w},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.DecryptStream=void 0;var n=i(148);const s=512;class r extends n.DecodeStream{constructor(t,e,i){super(e);this.str=t;this.dict=t.dict;this.decrypt=i;this.nextChunk=null;this.initialized=false}readBlock(){let t;if(this.initialized){t=this.nextChunk}else{t=this.str.getBytes(s);this.initialized=true}if(!t||t.length===0){this.eof=true;return}this.nextChunk=this.str.getBytes(s);const e=this.nextChunk&&this.nextChunk.length>0;const i=this.decrypt;t=i(t,!e);const n=this.bufferLength,r=n+t.length,a=this.ensureBuffer(r);a.set(t,n);this.bufferLength=r}}e.DecryptStream=r},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.Catalog=void 0;var n=i(135);var s=i(2);var r=i(134);var a=i(199);var o=i(136);var c=i(200);var l=i(143);var h=i(201);var u=i(188);var f=i(202);var d=i(203);function p(t){if(t instanceof r.Dict){t=t.get("D")}return Array.isArray(t)?t:null}class m{constructor(t,e){this.pdfManager=t;this.xref=e;this._catDict=e.getCatalogObj();if(!(this._catDict instanceof r.Dict)){throw new s.FormatError("Catalog object is not a dictionary.")}this._actualNumPages=null;this.fontCache=new r.RefSetCache;this.builtInCMapCache=new Map;this.standardFontDataCache=new Map;this.globalImageCache=new u.GlobalImageCache;this.pageKidsCountCache=new r.RefSetCache;this.pageIndexCache=new r.RefSetCache;this.nonBlendModesSet=new r.RefSet}get version(){const t=this._catDict.get("Version");if(t instanceof r.Name){if(n.PDF_VERSION_REGEXP.test(t.name)){return(0,s.shadow)(this,"version",t.name)}(0,s.warn)(`Invalid PDF catalog version: ${t.name}`)}return(0,s.shadow)(this,"version",null)}get lang(){const t=this._catDict.get("Lang");return(0,s.shadow)(this,"lang",typeof t==="string"?(0,s.stringToPDFString)(t):null)}get needsRendering(){const t=this._catDict.get("NeedsRendering");return(0,s.shadow)(this,"needsRendering",typeof t==="boolean"?t:false)}get collection(){let t=null;try{const e=this._catDict.get("Collection");if(e instanceof r.Dict&&e.size>0){t=e}}catch(t){if(t instanceof n.MissingDataException){throw t}(0,s.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,s.shadow)(this,"collection",t)}get acroForm(){let t=null;try{const e=this._catDict.get("AcroForm");if(e instanceof r.Dict&&e.size>0){t=e}}catch(t){if(t instanceof n.MissingDataException){throw t}(0,s.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,s.shadow)(this,"acroForm",t)}get acroFormRef(){const t=this._catDict.getRaw("AcroForm");return(0,s.shadow)(this,"acroFormRef",t instanceof r.Ref?t:null)}get metadata(){const t=this._catDict.getRaw("Metadata");if(!(t instanceof r.Ref)){return(0,s.shadow)(this,"metadata",null)}let e=null;try{const i=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata);const n=this.xref.fetch(t,i);if(n instanceof o.BaseStream&&n.dict instanceof r.Dict){const t=n.dict.get("Type");const i=n.dict.get("Subtype");if((0,r.isName)(t,"Metadata")&&(0,r.isName)(i,"XML")){const t=(0,s.stringToUTF8String)(n.getString());if(t){e=new f.MetadataParser(t).serializable}}}}catch(t){if(t instanceof n.MissingDataException){throw t}(0,s.info)(`Skipping invalid Metadata: "${t}".`)}return(0,s.shadow)(this,"metadata",e)}get markInfo(){let t=null;try{t=this._readMarkInfo()}catch(t){if(t instanceof n.MissingDataException){throw t}(0,s.warn)("Unable to read mark info.")}return(0,s.shadow)(this,"markInfo",t)}_readMarkInfo(){const t=this._catDict.get("MarkInfo");if(!(t instanceof r.Dict)){return null}const e={Marked:false,UserProperties:false,Suspects:false};for(const i in e){const n=t.get(i);if(typeof n==="boolean"){e[i]=n}}return e}get structTreeRoot(){let t=null;try{t=this._readStructTreeRoot()}catch(t){if(t instanceof n.MissingDataException){throw t}(0,s.warn)("Unable read to structTreeRoot info.")}return(0,s.shadow)(this,"structTreeRoot",t)}_readStructTreeRoot(){const t=this._catDict.get("StructTreeRoot");if(!(t instanceof r.Dict)){return null}const e=new d.StructTreeRoot(t);e.init();return e}get toplevelPagesDict(){const t=this._catDict.get("Pages");if(!(t instanceof r.Dict)){throw new s.FormatError("Invalid top-level pages dictionary.")}return(0,s.shadow)(this,"toplevelPagesDict",t)}get documentOutline(){let t=null;try{t=this._readDocumentOutline()}catch(t){if(t instanceof n.MissingDataException){throw t}(0,s.warn)("Unable to read document outline.")}return(0,s.shadow)(this,"documentOutline",t)}_readDocumentOutline(){let t=this._catDict.get("Outlines");if(!(t instanceof r.Dict)){return null}t=t.getRaw("First");if(!(t instanceof r.Ref)){return null}const e={items:[]};const i=[{obj:t,parent:e}];const n=new r.RefSet;n.put(t);const a=this.xref,o=new Uint8ClampedArray(3);while(i.length>0){const e=i.shift();const c=a.fetchIfRef(e.obj);if(c===null){continue}if(!c.has("Title")){throw new s.FormatError("Invalid outline item encountered.")}const h={url:null,dest:null,action:null};m.parseDestDictionary({destDict:c,resultObj:h,docBaseUrl:this.pdfManager.docBaseUrl,docAttachments:this.attachments});const u=c.get("Title");const f=c.get("F")||0;const d=c.getArray("C");const p=c.get("Count");let g=o;if(Array.isArray(d)&&d.length===3&&(d[0]!==0||d[1]!==0||d[2]!==0)){g=l.ColorSpace.singletons.rgb.getRgb(d,0)}const b={action:h.action,attachment:h.attachment,dest:h.dest,url:h.url,unsafeUrl:h.unsafeUrl,newWindow:h.newWindow,setOCGState:h.setOCGState,title:(0,s.stringToPDFString)(u),color:g,count:Number.isInteger(p)?p:undefined,bold:!!(f&2),italic:!!(f&1),items:[]};e.parent.items.push(b);t=c.getRaw("First");if(t instanceof r.Ref&&!n.has(t)){i.push({obj:t,parent:b});n.put(t)}t=c.getRaw("Next");if(t instanceof r.Ref&&!n.has(t)){i.push({obj:t,parent:e.parent});n.put(t)}}return e.items.length>0?e.items:null}get permissions(){let t=null;try{t=this._readPermissions()}catch(t){if(t instanceof n.MissingDataException){throw t}(0,s.warn)("Unable to read permissions.")}return(0,s.shadow)(this,"permissions",t)}_readPermissions(){const t=this.xref.trailer.get("Encrypt");if(!(t instanceof r.Dict)){return null}let e=t.get("P");if(typeof e!=="number"){return null}e+=2**32;const i=[];for(const t in s.PermissionFlag){const n=s.PermissionFlag[t];if(e&n){i.push(n)}}return i}get optionalContentConfig(){let t=null;try{const e=this._catDict.get("OCProperties");if(!e){return(0,s.shadow)(this,"optionalContentConfig",null)}const i=e.get("D");if(!i){return(0,s.shadow)(this,"optionalContentConfig",null)}const n=e.get("OCGs");if(!Array.isArray(n)){return(0,s.shadow)(this,"optionalContentConfig",null)}const a=[];const o=[];for(const t of n){if(!(t instanceof r.Ref)){continue}o.push(t);const e=this.xref.fetchIfRef(t);a.push({id:t.toString(),name:typeof e.get("Name")==="string"?(0,s.stringToPDFString)(e.get("Name")):null,intent:typeof e.get("Intent")==="string"?(0,s.stringToPDFString)(e.get("Intent")):null})}t=this._readOptionalContentConfig(i,o);t.groups=a}catch(t){if(t instanceof n.MissingDataException){throw t}(0,s.warn)(`Unable to read optional content config: ${t}`)}return(0,s.shadow)(this,"optionalContentConfig",t)}_readOptionalContentConfig(t,e){function i(t){const i=[];if(Array.isArray(t)){for(const n of t){if(!(n instanceof r.Ref)){continue}if(e.includes(n)){i.push(n.toString())}}}return i}function n(t){let i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;if(!Array.isArray(t)){return null}const n=[];for(const s of t){if(s instanceof r.Ref&&e.includes(s)){c.put(s);n.push(s.toString());continue}const t=a(s,i);if(t){n.push(t)}}if(i>0){return n}const s=[];for(const t of e){if(c.has(t)){continue}s.push(t.toString())}if(s.length){n.push({name:null,order:s})}return n}function a(t,e){if(++e>l){(0,s.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS.");return null}const i=o.fetchIfRef(t);if(!Array.isArray(i)){return null}const r=o.fetchIfRef(i[0]);if(typeof r!=="string"){return null}const a=n(i.slice(1),e);if(!a||!a.length){return null}return{name:(0,s.stringToPDFString)(r),order:a}}const o=this.xref,c=new r.RefSet,l=10;return{name:typeof t.get("Name")==="string"?(0,s.stringToPDFString)(t.get("Name")):null,creator:typeof t.get("Creator")==="string"?(0,s.stringToPDFString)(t.get("Creator")):null,baseState:t.get("BaseState")instanceof r.Name?t.get("BaseState").name:null,on:i(t.get("ON")),off:i(t.get("OFF")),order:n(t.get("Order")),groups:null}}setActualNumPages(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;this._actualNumPages=t}get hasActualNumPages(){return this._actualNumPages!==null}get _pagesCount(){const t=this.toplevelPagesDict.get("Count");if(!Number.isInteger(t)){throw new s.FormatError("Page count in top-level pages dictionary is not an integer.")}return(0,s.shadow)(this,"_pagesCount",t)}get numPages(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}get destinations(){const t=this._readDests(),e=Object.create(null);if(t instanceof a.NameTree){for(const[i,n]of t.getAll()){const t=p(n);if(t){e[(0,s.stringToPDFString)(i)]=t}}}else if(t instanceof r.Dict){t.forEach((function(t,i){const n=p(i);if(n){e[t]=n}}))}return(0,s.shadow)(this,"destinations",e)}getDestination(t){const e=this._readDests();if(e instanceof a.NameTree){const i=p(e.get(t));if(i){return i}const n=this.destinations[t];if(n){(0,s.warn)(`Found "${t}" at an incorrect position in the NameTree.`);return n}}else if(e instanceof r.Dict){const i=p(e.get(t));if(i){return i}}return null}_readDests(){const t=this._catDict.get("Names");if(t&&t.has("Dests")){return new a.NameTree(t.getRaw("Dests"),this.xref)}else if(this._catDict.has("Dests")){return this._catDict.get("Dests")}return undefined}get pageLabels(){let t=null;try{t=this._readPageLabels()}catch(t){if(t instanceof n.MissingDataException){throw t}(0,s.warn)("Unable to read page labels.")}return(0,s.shadow)(this,"pageLabels",t)}_readPageLabels(){const t=this._catDict.getRaw("PageLabels");if(!t){return null}const e=new Array(this.numPages);let i=null,o="";const c=new a.NumberTree(t,this.xref);const l=c.getAll();let h="",u=1;for(let t=0,a=this.numPages;t<a;t++){const a=l.get(t);if(a!==undefined){if(!(a instanceof r.Dict)){throw new s.FormatError("PageLabel is not a dictionary.")}if(a.has("Type")&&!(0,r.isName)(a.get("Type"),"PageLabel")){throw new s.FormatError("Invalid type in PageLabel dictionary.")}if(a.has("S")){const t=a.get("S");if(!(t instanceof r.Name)){throw new s.FormatError("Invalid style in PageLabel dictionary.")}i=t.name}else{i=null}if(a.has("P")){const t=a.get("P");if(typeof t!=="string"){throw new s.FormatError("Invalid prefix in PageLabel dictionary.")}o=(0,s.stringToPDFString)(t)}else{o=""}if(a.has("St")){const t=a.get("St");if(!(Number.isInteger(t)&&t>=1)){throw new s.FormatError("Invalid start in PageLabel dictionary.")}u=t}else{u=1}}switch(i){case"D":h=u;break;case"R":case"r":h=(0,n.toRomanNumerals)(u,i==="r");break;case"A":case"a":const t=26;const e=65,r=97;const a=i==="a"?r:e;const o=u-1;const c=String.fromCharCode(a+o%t);h=c.repeat(Math.floor(o/t)+1);break;default:if(i){throw new s.FormatError(`Invalid style "${i}" in PageLabel dictionary.`)}h=""}e[t]=o+h;u++}return e}get pageLayout(){const t=this._catDict.get("PageLayout");let e="";if(t instanceof r.Name){switch(t.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":e=t.name}}return(0,s.shadow)(this,"pageLayout",e)}get pageMode(){const t=this._catDict.get("PageMode");let e="UseNone";if(t instanceof r.Name){switch(t.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":e=t.name}}return(0,s.shadow)(this,"pageMode",e)}get viewerPreferences(){const t=this._catDict.get("ViewerPreferences");if(!(t instanceof r.Dict)){return(0,s.shadow)(this,"viewerPreferences",null)}let e=null;for(const i of t.getKeys()){const n=t.get(i);let a;switch(i){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":if(typeof n==="boolean"){a=n}break;case"NonFullScreenPageMode":if(n instanceof r.Name){switch(n.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":a=n.name;break;default:a="UseNone"}}break;case"Direction":if(n instanceof r.Name){switch(n.name){case"L2R":case"R2L":a=n.name;break;default:a="L2R"}}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(n instanceof r.Name){switch(n.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":a=n.name;break;default:a="CropBox"}}break;case"PrintScaling":if(n instanceof r.Name){switch(n.name){case"None":case"AppDefault":a=n.name;break;default:a="AppDefault"}}break;case"Duplex":if(n instanceof r.Name){switch(n.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":a=n.name;break;default:a="None"}}break;case"PrintPageRange":if(Array.isArray(n)&&n.length%2===0){const t=n.every(((t,e,i)=>Number.isInteger(t)&&t>0&&(e===0||t>=i[e-1])&&t<=this.numPages));if(t){a=n}}break;case"NumCopies":if(Number.isInteger(n)&&n>0){a=n}break;default:(0,s.warn)(`Ignoring non-standard key in ViewerPreferences: ${i}.`);continue}if(a===undefined){(0,s.warn)(`Bad value, for key "${i}", in ViewerPreferences: ${n}.`);continue}if(!e){e=Object.create(null)}e[i]=a}return(0,s.shadow)(this,"viewerPreferences",e)}get openAction(){const t=this._catDict.get("OpenAction");const e=Object.create(null);if(t instanceof r.Dict){const i=new r.Dict(this.xref);i.set("A",t);const n={url:null,dest:null,action:null};m.parseDestDictionary({destDict:i,resultObj:n});if(Array.isArray(n.dest)){e.dest=n.dest}else if(n.action){e.action=n.action}}else if(Array.isArray(t)){e.dest=t}return(0,s.shadow)(this,"openAction",(0,s.objectSize)(e)>0?e:null)}get attachments(){const t=this._catDict.get("Names");let e=null;if(t instanceof r.Dict&&t.has("EmbeddedFiles")){const i=new a.NameTree(t.getRaw("EmbeddedFiles"),this.xref);for(const[t,n]of i.getAll()){const i=new h.FileSpec(n,this.xref);if(!e){e=Object.create(null)}e[(0,s.stringToPDFString)(t)]=i.serializable}}return(0,s.shadow)(this,"attachments",e)}get xfaImages(){const t=this._catDict.get("Names");let e=null;if(t instanceof r.Dict&&t.has("XFAImages")){const i=new a.NameTree(t.getRaw("XFAImages"),this.xref);for(const[t,n]of i.getAll()){if(!e){e=new r.Dict(this.xref)}e.set((0,s.stringToPDFString)(t),n)}}return(0,s.shadow)(this,"xfaImages",e)}_collectJavaScript(){const t=this._catDict.get("Names");let e=null;function i(t,i){if(!(i instanceof r.Dict)){return}if(!(0,r.isName)(i.get("S"),"JavaScript")){return}let n=i.get("JS");if(n instanceof o.BaseStream){n=n.getString()}else if(typeof n!=="string"){return}if(e===null){e=new Map}n=(0,s.stringToPDFString)(n).replace(/\u0000/g,"");e.set(t,n)}if(t instanceof r.Dict&&t.has("JavaScript")){const e=new a.NameTree(t.getRaw("JavaScript"),this.xref);for(const[t,n]of e.getAll()){i((0,s.stringToPDFString)(t),n)}}const n=this._catDict.get("OpenAction");if(n){i("OpenAction",n)}return e}get javaScript(){const t=this._collectJavaScript();return(0,s.shadow)(this,"javaScript",t?[...t.values()]:null)}get jsActions(){const t=this._collectJavaScript();let e=(0,n.collectActions)(this.xref,this._catDict,s.DocumentActionEventType);if(t){if(!e){e=Object.create(null)}for(const[i,n]of t){if(i in e){e[i].push(n)}else{e[i]=[n]}}}return(0,s.shadow)(this,"jsActions",e)}async fontFallback(t,e){const i=await Promise.all(this.fontCache);for(const n of i){if(n.loadedName===t){n.fallback(e);return}}}async cleanup(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;(0,c.clearGlobalCaches)();this.globalImageCache.clear(t);this.pageKidsCountCache.clear();this.pageIndexCache.clear();this.nonBlendModesSet.clear();const e=await Promise.all(this.fontCache);for(const{dict:t}of e){delete t.cacheKey}this.fontCache.clear();this.builtInCMapCache.clear();this.standardFontDataCache.clear()}async getPageDict(t){const e=[this.toplevelPagesDict];const i=new r.RefSet;const n=this._catDict.getRaw("Pages");if(n instanceof r.Ref){i.put(n)}const a=this.xref,o=this.pageKidsCountCache,c=this.pageIndexCache;let l=0;while(e.length){const n=e.pop();if(n instanceof r.Ref){const h=o.get(n);if(h>=0&&l+h<=t){l+=h;continue}if(i.has(n)){throw new s.FormatError("Pages tree contains circular reference.")}i.put(n);const u=await a.fetchAsync(n);if(u instanceof r.Dict){let e=u.getRaw("Type");if(e instanceof r.Ref){e=await a.fetchAsync(e)}if((0,r.isName)(e,"Page")||!u.has("Kids")){if(!o.has(n)){o.put(n,1)}if(!c.has(n)){c.put(n,l)}if(l===t){return[u,n]}l++;continue}}e.push(u);continue}if(!(n instanceof r.Dict)){throw new s.FormatError("Page dictionary kid reference points to wrong type of object.")}const{objId:h}=n;let u=n.getRaw("Count");if(u instanceof r.Ref){u=await a.fetchAsync(u)}if(Number.isInteger(u)&&u>=0){if(h&&!o.has(h)){o.put(h,u)}if(l+u<=t){l+=u;continue}}let f=n.getRaw("Kids");if(f instanceof r.Ref){f=await a.fetchAsync(f)}if(!Array.isArray(f)){let e=n.getRaw("Type");if(e instanceof r.Ref){e=await a.fetchAsync(e)}if((0,r.isName)(e,"Page")||!n.has("Kids")){if(l===t){return[n,null]}l++;continue}throw new s.FormatError("Page dictionary kids object is not an array.")}for(let t=f.length-1;t>=0;t--){e.push(f[t])}}throw new Error(`Page index ${t} not found.`)}async getAllPageDicts(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;const e=[{currentNode:this.toplevelPagesDict,posInKids:0}];const i=new r.RefSet;const a=this._catDict.getRaw("Pages");if(a instanceof r.Ref){i.put(a)}const o=new Map,c=this.xref,l=this.pageIndexCache;let h=0;function u(t,e){if(e&&!l.has(e)){l.put(e,h)}o.set(h++,[t,e])}function f(e){if(e instanceof n.XRefEntryException&&!t){throw e}o.set(h++,[e,null])}while(e.length>0){const t=e.at(-1);const{currentNode:n,posInKids:a}=t;let o=n.getRaw("Kids");if(o instanceof r.Ref){try{o=await c.fetchAsync(o)}catch(t){f(t);break}}if(!Array.isArray(o)){f(new s.FormatError("Page dictionary kids object is not an array."));break}if(a>=o.length){e.pop();continue}const l=o[a];let h;if(l instanceof r.Ref){if(i.has(l)){f(new s.FormatError("Pages tree contains circular reference."));break}i.put(l);try{h=await c.fetchAsync(l)}catch(t){f(t);break}}else{h=l}if(!(h instanceof r.Dict)){f(new s.FormatError("Page dictionary kid reference points to wrong type of object."));break}let d=h.getRaw("Type");if(d instanceof r.Ref){try{d=await c.fetchAsync(d)}catch(t){f(t);break}}if((0,r.isName)(d,"Page")||!h.has("Kids")){u(h,l instanceof r.Ref?l:null)}else{e.push({currentNode:h,posInKids:0})}t.posInKids++}return o}getPageIndex(t){const e=this.pageIndexCache.get(t);if(e!==undefined){return Promise.resolve(e)}const i=this.xref;function n(e){let n=0,a;return i.fetchAsync(e).then((function(i){if((0,r.isRefsEqual)(e,t)&&!(0,r.isDict)(i,"Page")&&!(i instanceof r.Dict&&!i.has("Type")&&i.has("Contents"))){throw new s.FormatError("The reference does not point to a /Page dictionary.")}if(!i){return null}if(!(i instanceof r.Dict)){throw new s.FormatError("Node must be a dictionary.")}a=i.getRaw("Parent");return i.getAsync("Parent")})).then((function(t){if(!t){return null}if(!(t instanceof r.Dict)){throw new s.FormatError("Parent must be a dictionary.")}return t.getAsync("Kids")})).then((function(t){if(!t){return null}const o=[];let c=false;for(const a of t){if(!(a instanceof r.Ref)){throw new s.FormatError("Kid must be a reference.")}if((0,r.isRefsEqual)(a,e)){c=true;break}o.push(i.fetchAsync(a).then((function(t){if(!(t instanceof r.Dict)){throw new s.FormatError("Kid node must be a dictionary.")}if(t.has("Count")){n+=t.get("Count")}else{n++}})))}if(!c){throw new s.FormatError("Kid reference not found in parent's kids.")}return Promise.all(o).then((function(){return[n,a]}))}))}let a=0;const o=e=>n(e).then((e=>{if(!e){this.pageIndexCache.put(t,a);return a}const[i,n]=e;a+=i;return o(n)}));return o(t)}get baseUrl(){const t=this._catDict.get("URI");if(t instanceof r.Dict){const e=t.get("Base");if(typeof e==="string"){const t=(0,s.createValidAbsoluteUrl)(e,null,{tryConvertEncoding:true});if(t){return(0,s.shadow)(this,"baseUrl",t.href)}}}return(0,s.shadow)(this,"baseUrl",null)}static parseDestDictionary(t){const e=t.destDict;if(!(e instanceof r.Dict)){(0,s.warn)("parseDestDictionary: `destDict` must be a dictionary.");return}const i=t.resultObj;if(typeof i!=="object"){(0,s.warn)("parseDestDictionary: `resultObj` must be an object.");return}const a=t.docBaseUrl||null;const c=t.docAttachments||null;let l=e.get("A"),h,u;if(!(l instanceof r.Dict)){if(e.has("Dest")){l=e.get("Dest")}else{l=e.get("AA");if(l instanceof r.Dict){if(l.has("D")){l=l.get("D")}else if(l.has("U")){l=l.get("U")}}}}if(l instanceof r.Dict){const t=l.get("S");if(!(t instanceof r.Name)){(0,s.warn)("parseDestDictionary: Invalid type in Action dictionary.");return}const e=t.name;switch(e){case"ResetForm":const t=l.get("Flags");const a=((typeof t==="number"?t:0)&1)===0;const f=[];const d=[];for(const t of l.get("Fields")||[]){if(t instanceof r.Ref){d.push(t.toString())}else if(typeof t==="string"){f.push((0,s.stringToPDFString)(t))}}i.resetForm={fields:f,refs:d,include:a};break;case"URI":h=l.get("URI");if(h instanceof r.Name){h="/"+h.name}break;case"GoTo":u=l.get("D");break;case"Launch":case"GoToR":const p=l.get("F");if(p instanceof r.Dict){h=p.get("F")||null}else if(typeof p==="string"){h=p}let m=l.get("D");if(m){if(m instanceof r.Name){m=m.name}if(typeof h==="string"){const t=h.split("#")[0];if(typeof m==="string"){h=t+"#"+m}else if(Array.isArray(m)){h=t+"#"+JSON.stringify(m)}}}const g=l.get("NewWindow");if(typeof g==="boolean"){i.newWindow=g}break;case"GoToE":const b=l.get("T");let v;if(c&&b instanceof r.Dict){const t=b.get("R");const e=b.get("N");if((0,r.isName)(t,"C")&&typeof e==="string"){v=c[(0,s.stringToPDFString)(e)]}}if(v){i.attachment=v}else{(0,s.warn)(`parseDestDictionary - unimplemented "GoToE" action.`)}break;case"Named":const w=l.get("N");if(w instanceof r.Name){i.action=w.name}break;case"SetOCGState":const y=l.get("State");const A=l.get("PreserveRB");if(!Array.isArray(y)||y.length===0){break}const k=[];for(const t of y){if(t instanceof r.Name){switch(t.name){case"ON":case"OFF":case"Toggle":k.push(t.name);break}}else if(t instanceof r.Ref){k.push(t.toString())}}if(k.length!==y.length){break}i.setOCGState={state:k,preserveRB:typeof A==="boolean"?A:true};break;case"JavaScript":const x=l.get("JS");let S;if(x instanceof o.BaseStream){S=x.getString()}else if(typeof x==="string"){S=x}const M=S&&(0,n.recoverJsURL)((0,s.stringToPDFString)(S));if(M){h=M.url;i.newWindow=M.newWindow;break}default:if(e==="JavaScript"||e==="SubmitForm"){break}(0,s.warn)(`parseDestDictionary - unsupported action: "${e}".`);break}}else if(e.has("Dest")){u=e.get("Dest")}if(typeof h==="string"){const t=(0,s.createValidAbsoluteUrl)(h,a,{addDefaultProtocol:true,tryConvertEncoding:true});if(t){i.url=t.href}i.unsafeUrl=h}if(u){if(u instanceof r.Name){u=u.name}if(typeof u==="string"){i.dest=(0,s.stringToPDFString)(u)}else if(Array.isArray(u)){i.dest=u}}}}e.Catalog=m},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.NumberTree=e.NameTree=void 0;var n=i(134);var s=i(2);class r{constructor(t,e,i){if(this.constructor===r){(0,s.unreachable)("Cannot initialize NameOrNumberTree.")}this.root=t;this.xref=e;this._type=i}getAll(){const t=new Map;if(!this.root){return t}const e=this.xref;const i=new n.RefSet;i.put(this.root);const r=[this.root];while(r.length>0){const a=e.fetchIfRef(r.shift());if(!(a instanceof n.Dict)){continue}if(a.has("Kids")){const t=a.get("Kids");if(!Array.isArray(t)){continue}for(const e of t){if(i.has(e)){throw new s.FormatError(`Duplicate entry in "${this._type}" tree.`)}r.push(e);i.put(e)}continue}const o=a.get(this._type);if(!Array.isArray(o)){continue}for(let i=0,n=o.length;i<n;i+=2){t.set(e.fetchIfRef(o[i]),e.fetchIfRef(o[i+1]))}}return t}get(t){if(!this.root){return null}const e=this.xref;let i=e.fetchIfRef(this.root);let n=0;const r=10;while(i.has("Kids")){if(++n>r){(0,s.warn)(`Search depth limit reached for "${this._type}" tree.`);return null}const a=i.get("Kids");if(!Array.isArray(a)){return null}let o=0,c=a.length-1;while(o<=c){const n=o+c>>1;const s=e.fetchIfRef(a[n]);const r=s.get("Limits");if(t<e.fetchIfRef(r[0])){c=n-1}else if(t>e.fetchIfRef(r[1])){o=n+1}else{i=s;break}}if(o>c){return null}}const a=i.get(this._type);if(Array.isArray(a)){let i=0,n=a.length-2;while(i<=n){const s=i+n>>1,r=s+(s&1);const o=e.fetchIfRef(a[r]);if(t<o){n=r-2}else if(t>o){i=r+2}else{return e.fetchIfRef(a[r+1])}}}return null}}class a extends r{constructor(t,e){super(t,e,"Names")}}e.NameTree=a;class o extends r{constructor(t,e){super(t,e,"Nums")}}e.NumberTree=o},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.clearGlobalCaches=r;var n=i(134);var s=i(169);function r(){(0,n.clearPrimitiveCaches)();(0,s.clearUnicodeCaches)()}},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.FileSpec=void 0;var n=i(2);var s=i(136);var r=i(134);function a(t){if(t.has("UF")){return t.get("UF")}else if(t.has("F")){return t.get("F")}else if(t.has("Unix")){return t.get("Unix")}else if(t.has("Mac")){return t.get("Mac")}else if(t.has("DOS")){return t.get("DOS")}return null}class o{constructor(t,e){if(!(t instanceof r.Dict)){return}this.xref=e;this.root=t;if(t.has("FS")){this.fs=t.get("FS")}this.description=t.has("Desc")?(0,n.stringToPDFString)(t.get("Desc")):"";if(t.has("RF")){(0,n.warn)("Related file specifications are not supported")}this.contentAvailable=true;if(!t.has("EF")){this.contentAvailable=false;(0,n.warn)("Non-embedded file specifications are not supported")}}get filename(){if(!this._filename&&this.root){const t=a(this.root)||"unnamed";this._filename=(0,n.stringToPDFString)(t).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename}get content(){if(!this.contentAvailable){return null}if(!this.contentRef&&this.root){this.contentRef=a(this.root.get("EF"))}let t=null;if(this.contentRef){const e=this.xref.fetchIfRef(this.contentRef);if(e instanceof s.BaseStream){t=e.getBytes()}else{(0,n.warn)("Embedded file specification points to non-existing/invalid content")}}else{(0,n.warn)("Embedded file specification does not have a content")}return t}get serializable(){return{filename:this.filename,content:this.content}}}e.FileSpec=o},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.MetadataParser=void 0;var n=i(195);class s{constructor(t){t=this._repair(t);const e=new n.SimpleXMLParser({lowerCaseName:true});const i=e.parseFromString(t);this._metadataMap=new Map;this._data=t;if(i){this._parse(i)}}_repair(t){return t.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,(function(t,e){const i=e.replace(/\\([0-3])([0-7])([0-7])/g,(function(t,e,i,n){return String.fromCharCode(e*64+i*8+n*1)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(t,e){switch(e){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${e} isn't defined.`)}));const n=[];for(let t=0,e=i.length;t<e;t+=2){const e=i.charCodeAt(t)*256+i.charCodeAt(t+1);if(e>=32&&e<127&&e!==60&&e!==62&&e!==38){n.push(String.fromCharCode(e))}else{n.push("&#x"+(65536+e).toString(16).substring(1)+";")}}return">"+n.join("")}))}_getSequence(t){const e=t.nodeName;if(e!=="rdf:bag"&&e!=="rdf:seq"&&e!=="rdf:alt"){return null}return t.childNodes.filter((t=>t.nodeName==="rdf:li"))}_parseArray(t){if(!t.hasChildNodes()){return}const[e]=t.childNodes;const i=this._getSequence(e)||[];this._metadataMap.set(t.nodeName,i.map((t=>t.textContent.trim())))}_parse(t){let e=t.documentElement;if(e.nodeName!=="rdf:rdf"){e=e.firstChild;while(e&&e.nodeName!=="rdf:rdf"){e=e.nextSibling}}if(!e||e.nodeName!=="rdf:rdf"||!e.hasChildNodes()){return}for(const t of e.childNodes){if(t.nodeName!=="rdf:description"){continue}for(const e of t.childNodes){const t=e.nodeName;switch(t){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(e);continue}this._metadataMap.set(t,e.textContent.trim())}}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}}e.MetadataParser=s},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.StructTreeRoot=e.StructTreePage=void 0;var n=i(134);var s=i(2);var r=i(199);const a=40;const o={PAGE_CONTENT:"PAGE_CONTENT",STREAM_CONTENT:"STREAM_CONTENT",OBJECT:"OBJECT",ELEMENT:"ELEMENT"};class c{constructor(t){this.dict=t;this.roleMap=new Map}init(){this.readRoleMap()}readRoleMap(){const t=this.dict.get("RoleMap");if(!(t instanceof n.Dict)){return}t.forEach(((t,e)=>{if(!(e instanceof n.Name)){return}this.roleMap.set(t,e.name)}))}}e.StructTreeRoot=c;class l{constructor(t,e){this.tree=t;this.dict=e;this.kids=[];this.parseKids()}get role(){const t=this.dict.get("S");const e=t instanceof n.Name?t.name:"";const{root:i}=this.tree;if(i.roleMap.has(e)){return i.roleMap.get(e)}return e}parseKids(){let t=null;const e=this.dict.getRaw("Pg");if(e instanceof n.Ref){t=e.toString()}const i=this.dict.get("K");if(Array.isArray(i)){for(const e of i){const i=this.parseKid(t,e);if(i){this.kids.push(i)}}}else{const e=this.parseKid(t,i);if(e){this.kids.push(e)}}}parseKid(t,e){if(Number.isInteger(e)){if(this.tree.pageDict.objId!==t){return null}return new h({type:o.PAGE_CONTENT,mcid:e,pageObjId:t})}let i=null;if(e instanceof n.Ref){i=this.dict.xref.fetch(e)}else if(e instanceof n.Dict){i=e}if(!i){return null}const s=i.getRaw("Pg");if(s instanceof n.Ref){t=s.toString()}const r=i.get("Type")instanceof n.Name?i.get("Type").name:null;if(r==="MCR"){if(this.tree.pageDict.objId!==t){return null}return new h({type:o.STREAM_CONTENT,refObjId:i.getRaw("Stm")instanceof n.Ref?i.getRaw("Stm").toString():null,pageObjId:t,mcid:i.get("MCID")})}if(r==="OBJR"){if(this.tree.pageDict.objId!==t){return null}return new h({type:o.OBJECT,refObjId:i.getRaw("Obj")instanceof n.Ref?i.getRaw("Obj").toString():null,pageObjId:t})}return new h({type:o.ELEMENT,dict:i})}}class h{constructor(t){let{type:e,dict:i=null,mcid:n=null,pageObjId:s=null,refObjId:r=null}=t;this.type=e;this.dict=i;this.mcid=n;this.pageObjId=s;this.refObjId=r;this.parentNode=null}}class u{constructor(t,e){this.root=t;this.rootDict=t?t.dict:null;this.pageDict=e;this.nodes=[]}parse(){if(!this.root||!this.rootDict){return}const t=this.rootDict.get("ParentTree");if(!t){return}const e=this.pageDict.get("StructParents");if(!Number.isInteger(e)){return}const i=new r.NumberTree(t,this.rootDict.xref);const s=i.get(e);if(!Array.isArray(s)){return}const a=new Map;for(const t of s){if(t instanceof n.Ref){this.addNode(this.rootDict.xref.fetch(t),a)}}}addNode(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;if(i>a){(0,s.warn)("StructTree MAX_DEPTH reached.");return null}if(e.has(t)){return e.get(t)}const r=new l(this,t);e.set(t,r);const c=t.get("P");if(!c||(0,n.isName)(c.get("Type"),"StructTreeRoot")){if(!this.addTopLevelNode(t,r)){e.delete(t)}return r}const h=this.addNode(c,e,i+1);if(!h){return r}let u=false;for(const e of h.kids){if(e.type===o.ELEMENT&&e.dict===t){e.parentNode=r;u=true}}if(!u){e.delete(t)}return r}addTopLevelNode(t,e){const i=this.rootDict.get("K");if(!i){return false}if(i instanceof n.Dict){if(i.objId!==t.objId){return false}this.nodes[0]=e;return true}if(!Array.isArray(i)){return true}let s=false;for(let n=0;n<i.length;n++){const r=i[n];if(r&&r.toString()===t.objId){this.nodes[n]=e;s=true}}return s}get serializable(){function t(e,i){let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;if(n>a){(0,s.warn)("StructTree too deep to be fully serialized.");return}const r=Object.create(null);r.role=e.role;r.children=[];i.children.push(r);const c=e.dict.get("Alt");if(typeof c==="string"){r.alt=(0,s.stringToPDFString)(c)}const l=e.dict.get("Lang");if(typeof l==="string"){r.lang=(0,s.stringToPDFString)(l)}for(const i of e.kids){const e=i.type===o.ELEMENT?i.parentNode:null;if(e){t(e,r,n+1);continue}else if(i.type===o.PAGE_CONTENT||i.type===o.STREAM_CONTENT){r.children.push({type:"content",id:`page${i.pageObjId}_mcid${i.mcid}`})}else if(i.type===o.OBJECT){r.children.push({type:"object",id:i.refObjId})}}}const e=Object.create(null);e.children=[];e.role="Root";for(const i of this.nodes){if(!i){continue}t(i,e)}return e}}e.StructTreePage=u},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.ObjectLoader=void 0;var n=i(134);var s=i(136);var r=i(135);var a=i(2);function o(t){return t instanceof n.Ref||t instanceof n.Dict||t instanceof s.BaseStream||Array.isArray(t)}function c(t,e){if(t instanceof n.Dict){t=t.getRawValues()}else if(t instanceof s.BaseStream){t=t.dict.getRawValues()}else if(!Array.isArray(t)){return}for(const i of t){if(o(i)){e.push(i)}}}class l{constructor(t,e,i){this.dict=t;this.keys=e;this.xref=i;this.refSet=null}async load(){if(this.xref.stream.isDataLoaded){return undefined}const{keys:t,dict:e}=this;this.refSet=new n.RefSet;const i=[];for(const n of t){const t=e.getRaw(n);if(t!==undefined){i.push(t)}}return this._walk(i)}async _walk(t){const e=[];const i=[];while(t.length){let o=t.pop();if(o instanceof n.Ref){if(this.refSet.has(o)){continue}try{this.refSet.put(o);o=this.xref.fetch(o)}catch(t){if(!(t instanceof r.MissingDataException)){(0,a.warn)(`ObjectLoader._walk - requesting all data: "${t}".`);this.refSet=null;const{manager:e}=this.xref.stream;return e.requestAllChunks()}e.push(o);i.push({begin:t.begin,end:t.end})}}if(o instanceof s.BaseStream){const t=o.getBaseStreams();if(t){let n=false;for(const e of t){if(e.isDataLoaded){continue}n=true;i.push({begin:e.start,end:e.end})}if(n){e.push(o)}}}c(o,t)}if(i.length){await this.xref.stream.manager.requestRanges(i);for(const t of e){if(t instanceof n.Ref){this.refSet.remove(t)}}return this._walk(e)}this.refSet=null;return undefined}}e.ObjectLoader=l},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.XFAFactory=void 0;var n=i(206);var s=i(210);var r=i(216);var a=i(214);var o=i(207);var c=i(2);var l=i(217);var h=i(227);class u{constructor(t){try{this.root=(new l.XFAParser).parse(u._createDocument(t));const e=new s.Binder(this.root);this.form=e.bind();this.dataHandler=new r.DataHandler(this.root,e.getData());this.form[n.$globalData].template=this.form}catch(t){(0,c.warn)(`XFA - an error occurred during parsing and binding: ${t}`)}}isValid(){return this.root&&this.form}_createPagesHelper(){const t=this.form[n.$toPages]();return new Promise(((e,i)=>{const n=()=>{try{const i=t.next();if(i.done){e(i.value)}else{setTimeout(n,0)}}catch(t){i(t)}};setTimeout(n,0)}))}async _createPages(){try{this.pages=await this._createPagesHelper();this.dims=this.pages.children.map((t=>{const{width:e,height:i}=t.attributes.style;return[0,0,parseInt(e),parseInt(i)]}))}catch(t){(0,c.warn)(`XFA - an error occurred during layout: ${t}`)}}getBoundingBox(t){return this.dims[t]}async getNumPages(){if(!this.pages){await this._createPages()}return this.dims.length}setImages(t){this.form[n.$globalData].images=t}setFonts(t){this.form[n.$globalData].fontFinder=new a.FontFinder(t);const e=[];for(let t of this.form[n.$globalData].usedTypefaces){t=(0,o.stripQuotes)(t);const i=this.form[n.$globalData].fontFinder.find(t);if(!i){e.push(t)}}if(e.length>0){return e}return null}appendFonts(t,e){this.form[n.$globalData].fontFinder.add(t,e)}async getPages(){if(!this.pages){await this._createPages()}const t=this.pages;this.pages=null;return t}serializeData(t){return this.dataHandler.serialize(t)}static _createDocument(t){if(!t["/xdp:xdp"]){return t["xdp:xdp"]}return Object.values(t).join("")}static getRichTextAsHtml(t){if(!t||typeof t!=="string"){return null}try{let e=new l.XFAParser(h.XhtmlNamespace,true).parse(t);if(!["body","xhtml"].includes(e[n.$nodeName])){const t=h.XhtmlNamespace.body({});t[n.$appendChild](e);e=t}const i=e[n.$toHTML]();if(!i.success){return null}const{html:s}=i;const{attributes:r}=s;if(r){if(r.class){r.class=r.class.filter((t=>!t.startsWith("xfa")))}r.dir="auto"}return{html:s,str:e[n.$text]()}}catch(t){(0,c.warn)(`XFA - an error occurred during parsing of rich text: ${t}`)}return null}}e.XFAFactory=u},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.XmlObject=e.XFAObjectArray=e.XFAObject=e.XFAAttribute=e.StringObject=e.OptionObject=e.Option10=e.Option01=e.IntegerObject=e.ContentObject=e.$uid=e.$toStyle=e.$toString=e.$toPages=e.$toHTML=e.$text=e.$tabIndex=e.$setValue=e.$setSetAttributes=e.$setId=e.$searchNode=e.$root=e.$resolvePrototypes=e.$removeChild=e.$pushPara=e.$pushGlyphs=e.$popPara=e.$onText=e.$onChildCheck=e.$onChild=e.$nsAttributes=e.$nodeName=e.$namespaceId=e.$isUsable=e.$isTransparent=e.$isThereMoreWidth=e.$isSplittable=e.$isNsAgnostic=e.$isDescendent=e.$isDataValue=e.$isCDATAXml=e.$isBindable=e.$insertAt=e.$indexOf=e.$ids=e.$hasSettableValue=e.$globalData=e.$getTemplateRoot=e.$getSubformParent=e.$getRealChildrenByNameIt=e.$getParent=e.$getNextPage=e.$getExtra=e.$getDataValue=e.$getContainedChildren=e.$getChildrenByNameIt=e.$getChildrenByName=e.$getChildrenByClass=e.$getChildren=e.$getAvailableSpace=e.$getAttributes=e.$getAttributeIt=e.$flushHTML=e.$finalize=e.$extra=e.$dump=e.$data=e.$content=e.$consumed=e.$clone=e.$cleanup=e.$cleanPage=e.$clean=e.$childrenToHTML=e.$appendChild=e.$addHTML=e.$acceptWhitespace=void 0;var n=i(207);var s=i(2);var r=i(135);var a=i(208);var o=i(209);const c=Symbol();e.$acceptWhitespace=c;const l=Symbol();e.$addHTML=l;const h=Symbol();e.$appendChild=h;const u=Symbol();e.$childrenToHTML=u;const f=Symbol();e.$clean=f;const d=Symbol();e.$cleanPage=d;const p=Symbol();e.$cleanup=p;const m=Symbol();e.$clone=m;const g=Symbol();e.$consumed=g;const b=Symbol("content");e.$content=b;const v=Symbol("data");e.$data=v;const w=Symbol();e.$dump=w;const y=Symbol("extra");e.$extra=y;const A=Symbol();e.$finalize=A;const k=Symbol();e.$flushHTML=k;const x=Symbol();e.$getAttributeIt=x;const S=Symbol();e.$getAttributes=S;const M=Symbol();e.$getAvailableSpace=M;const _=Symbol();e.$getChildrenByClass=_;const E=Symbol();e.$getChildrenByName=E;const C=Symbol();e.$getChildrenByNameIt=C;const O=Symbol();e.$getDataValue=O;const T=Symbol();e.$getExtra=T;const I=Symbol();e.$getRealChildrenByNameIt=I;const F=Symbol();e.$getChildren=F;const P=Symbol();e.$getContainedChildren=P;const D=Symbol();e.$getNextPage=D;const R=Symbol();e.$getSubformParent=R;const N=Symbol();e.$getParent=N;const j=Symbol();e.$getTemplateRoot=j;const L=Symbol();e.$globalData=L;const U=Symbol();e.$hasSettableValue=U;const B=Symbol();e.$ids=B;const $=Symbol();e.$indexOf=$;const q=Symbol();e.$insertAt=q;const G=Symbol();e.$isCDATAXml=G;const W=Symbol();e.$isBindable=W;const H=Symbol();e.$isDataValue=H;const z=Symbol();e.$isDescendent=z;const V=Symbol();e.$isNsAgnostic=V;const X=Symbol();e.$isSplittable=X;const K=Symbol();e.$isThereMoreWidth=K;const Y=Symbol();e.$isTransparent=Y;const J=Symbol();e.$isUsable=J;const Q=Symbol();const Z=Symbol("namespaceId");e.$namespaceId=Z;const tt=Symbol("nodeName");e.$nodeName=tt;const et=Symbol();e.$nsAttributes=et;const it=Symbol();e.$onChild=it;const nt=Symbol();e.$onChildCheck=nt;const st=Symbol();e.$onText=st;const rt=Symbol();e.$pushGlyphs=rt;const at=Symbol();e.$popPara=at;const ot=Symbol();e.$pushPara=ot;const ct=Symbol();e.$removeChild=ct;const lt=Symbol("root");e.$root=lt;const ht=Symbol();e.$resolvePrototypes=ht;const ut=Symbol();e.$searchNode=ut;const ft=Symbol();e.$setId=ft;const dt=Symbol();e.$setSetAttributes=dt;const pt=Symbol();e.$setValue=pt;const mt=Symbol();e.$tabIndex=mt;const gt=Symbol();e.$text=gt;const bt=Symbol();e.$toPages=bt;const vt=Symbol();e.$toHTML=vt;const wt=Symbol();e.$toString=wt;const yt=Symbol();e.$toStyle=yt;const At=Symbol("uid");e.$uid=At;const kt=Symbol();const xt=Symbol();const St=Symbol();const Mt=Symbol("_children");const _t=Symbol();const Et=Symbol();const Ct=Symbol();const Ot=Symbol();const Tt=Symbol();const It=Symbol();const Ft=Symbol();const Pt=Symbol();const Dt=Symbol();const Rt=Symbol("parent");const Nt=Symbol();const jt=Symbol();const Lt=Symbol();let Ut=0;const Bt=a.NamespaceIds.datasets.id;class $t{constructor(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;this[Z]=t;this[tt]=e;this[Ft]=i;this[Rt]=null;this[Mt]=[];this[At]=`${e}${Ut++}`;this[L]=null}[it](t){if(!this[Ft]||!this[nt](t)){return false}const e=t[tt];const i=this[e];if(i instanceof qt){if(i.push(t)){this[h](t);return true}}else{if(i!==null){this[ct](i)}this[e]=t;this[h](t);return true}let n="";if(this.id){n=` (id: ${this.id})`}else if(this.name){n=` (name: ${this.name} ${this.h.value})`}(0,s.warn)(`XFA - node "${this[tt]}"${n} has already enough "${e}"!`);return false}[nt](t){return this.hasOwnProperty(t[tt])&&t[Z]===this[Z]}[V](){return false}[c](){return false}[G](){return false}[W](){return false}[at](){if(this.para){this[j]()[y].paraStack.pop()}}[ot](){this[j]()[y].paraStack.push(this.para)}[ft](t){if(this.id&&this[Z]===a.NamespaceIds.template.id){t.set(this.id,this)}}[j](){return this[L].template}[X](){return false}[K](){return false}[h](t){t[Rt]=this;this[Mt].push(t);if(!t[L]&&this[L]){t[L]=this[L]}}[ct](t){const e=this[Mt].indexOf(t);this[Mt].splice(e,1)}[U](){return this.hasOwnProperty("value")}[pt](t){}[st](t){}[A](){}[f](t){delete this[Ft];if(this[p]){t.clean(this[p]);delete this[p]}}[$](t){return this[Mt].indexOf(t)}[q](t,e){e[Rt]=this;this[Mt].splice(t,0,e);if(!e[L]&&this[L]){e[L]=this[L]}}[Y](){return!this.name}[Q](){return""}[gt](){if(this[Mt].length===0){return this[b]}return this[Mt].map((t=>t[gt]())).join("")}get[St](){const t=Object.getPrototypeOf(this);if(!t._attributes){const e=t._attributes=new Set;for(const t of Object.getOwnPropertyNames(this)){if(this[t]===null||this[t]instanceof $t||this[t]instanceof qt){break}e.add(t)}}return(0,s.shadow)(this,St,t._attributes)}[z](t){let e=this;while(e){if(e===t){return true}e=e[N]()}return false}[N](){return this[Rt]}[R](){return this[N]()}[F](){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;if(!t){return this[Mt]}return this[t]}[w](){const t=Object.create(null);if(this[b]){t.$content=this[b]}for(const e of Object.getOwnPropertyNames(this)){const i=this[e];if(i===null){continue}if(i instanceof $t){t[e]=i[w]()}else if(i instanceof qt){if(!i.isEmpty()){t[e]=i.dump()}}else{t[e]=i}}return t}[yt](){return null}[vt](){return n.HTMLResult.EMPTY}*[P](){for(const t of this[F]()){yield t}}*[Ot](t,e){for(const i of this[P]()){if(!t||e===t.has(i[tt])){const t=this[M]();const e=i[vt](t);if(!e.success){this[y].failingNode=i}yield e}}}[k](){return null}[l](t,e){this[y].children.push(t)}[M](){}[u](t){let{filter:e=null,include:i=true}=t;if(!this[y].generator){this[y].generator=this[Ot](e,i)}else{const t=this[M]();const e=this[y].failingNode[vt](t);if(!e.success){return e}if(e.html){this[l](e.html,e.bbox)}delete this[y].failingNode}while(true){const t=this[y].generator.next();if(t.done){break}const e=t.value;if(!e.success){return e}if(e.html){this[l](e.html,e.bbox)}}this[y].generator=null;return n.HTMLResult.EMPTY}[dt](t){this[jt]=new Set(Object.keys(t))}[It](t){const e=this[St];const i=this[jt];return[...t].filter((t=>e.has(t)&&!i.has(t)))}[ht](t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:new Set;for(const i of this[Mt]){i[Nt](t,e)}}[Nt](t,e){const i=this[Tt](t,e);if(i){this[kt](i,t,e)}else{this[ht](t,e)}}[Tt](t,e){const{use:i,usehref:n}=this;if(!i&&!n){return null}let r=null;let a=null;let c=null;let l=i;if(n){l=n;if(n.startsWith("#som(")&&n.endsWith(")")){a=n.slice("#som(".length,n.length-1)}else if(n.startsWith(".#som(")&&n.endsWith(")")){a=n.slice(".#som(".length,n.length-1)}else if(n.startsWith("#")){c=n.slice(1)}else if(n.startsWith(".#")){c=n.slice(2)}}else if(i.startsWith("#")){c=i.slice(1)}else{a=i}this.use=this.usehref="";if(c){r=t.get(c)}else{r=(0,o.searchNode)(t.get(lt),this,a,true,false);if(r){r=r[0]}}if(!r){(0,s.warn)(`XFA - Invalid prototype reference: ${l}.`);return null}if(r[tt]!==this[tt]){(0,s.warn)(`XFA - Incompatible prototype: ${r[tt]} !== ${this[tt]}.`);return null}if(e.has(r)){(0,s.warn)(`XFA - Cycle detected in prototypes use.`);return null}e.add(r);const h=r[Tt](t,e);if(h){r[kt](h,t,e)}r[ht](t,e);e.delete(r);return r}[kt](t,e,i){if(i.has(t)){(0,s.warn)(`XFA - Cycle detected in prototypes use.`);return}if(!this[b]&&t[b]){this[b]=t[b]}const n=new Set(i);n.add(t);for(const e of this[It](t[jt])){this[e]=t[e];if(this[jt]){this[jt].add(e)}}for(const n of Object.getOwnPropertyNames(this)){if(this[St].has(n)){continue}const s=this[n];const r=t[n];if(s instanceof qt){for(const t of s[Mt]){t[Nt](e,i)}for(let n=s[Mt].length,a=r[Mt].length;n<a;n++){const r=t[Mt][n][m]();if(s.push(r)){r[Rt]=this;this[Mt].push(r);r[Nt](e,i)}else{break}}continue}if(s!==null){s[ht](e,i);if(r){s[kt](r,e,i)}continue}if(r!==null){const t=r[m]();t[Rt]=this;this[n]=t;this[Mt].push(t);t[Nt](e,i)}}}static[_t](t){if(Array.isArray(t)){return t.map((t=>$t[_t](t)))}if(typeof t==="object"&&t!==null){return Object.assign({},t)}return t}[m](){const t=Object.create(Object.getPrototypeOf(this));for(const e of Object.getOwnPropertySymbols(this)){try{t[e]=this[e]}catch(i){(0,s.shadow)(t,e,this[e])}}t[At]=`${t[tt]}${Ut++}`;t[Mt]=[];for(const e of Object.getOwnPropertyNames(this)){if(this[St].has(e)){t[e]=$t[_t](this[e]);continue}const i=this[e];if(i instanceof qt){t[e]=new qt(i[Pt])}else{t[e]=null}}for(const e of this[Mt]){const i=e[tt];const n=e[m]();t[Mt].push(n);n[Rt]=t;if(t[i]===null){t[i]=n}else{t[i][Mt].push(n)}}return t}[F](){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;if(!t){return this[Mt]}return this[Mt].filter((e=>e[tt]===t))}[_](t){return this[t]}[E](t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;return Array.from(this[C](t,e,i))}*[C](t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;if(t==="parent"){yield this[Rt];return}for(const i of this[Mt]){if(i[tt]===t){yield i}if(i.name===t){yield i}if(e||i[Y]()){yield*i[C](t,e,false)}}if(i&&this[St].has(t)){yield new Gt(this,t,this[t])}}}e.XFAObject=$t;class qt{constructor(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Infinity;this[Pt]=t;this[Mt]=[]}push(t){const e=this[Mt].length;if(e<=this[Pt]){this[Mt].push(t);return true}(0,s.warn)(`XFA - node "${t[tt]}" accepts no more than ${this[Pt]} children`);return false}isEmpty(){return this[Mt].length===0}dump(){return this[Mt].length===1?this[Mt][0][w]():this[Mt].map((t=>t[w]()))}[m](){const t=new qt(this[Pt]);t[Mt]=this[Mt].map((t=>t[m]()));return t}get children(){return this[Mt]}clear(){this[Mt].length=0}}e.XFAObjectArray=qt;class Gt{constructor(t,e,i){this[Rt]=t;this[tt]=e;this[b]=i;this[g]=false;this[At]=`attribute${Ut++}`}[N](){return this[Rt]}[H](){return true}[O](){return this[b].trim()}[pt](t){t=t.value||"";this[b]=t.toString()}[gt](){return this[b]}[z](t){return this[Rt]===t||this[Rt][z](t)}}e.XFAAttribute=Gt;class Wt extends $t{constructor(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};super(t,e);this[b]="";this[Et]=null;if(e!=="#text"){const t=new Map;this[xt]=t;for(const[e,n]of Object.entries(i)){t.set(e,new Gt(this,e,n))}if(i.hasOwnProperty(et)){const t=i[et].xfa.dataNode;if(t!==undefined){if(t==="dataGroup"){this[Et]=false}else if(t==="dataValue"){this[Et]=true}}}}this[g]=false}[wt](t){const e=this[tt];if(e==="#text"){t.push((0,r.encodeToXmlString)(this[b]));return}const i=(0,s.utf8StringToString)(e);const n=this[Z]===Bt?"xfa:":"";t.push(`<${n}${i}`);for(const[e,i]of this[xt].entries()){const n=(0,s.utf8StringToString)(e);t.push(` ${n}="${(0,r.encodeToXmlString)(i[b])}"`)}if(this[Et]!==null){if(this[Et]){t.push(` xfa:dataNode="dataValue"`)}else{t.push(` xfa:dataNode="dataGroup"`)}}if(!this[b]&&this[Mt].length===0){t.push("/>");return}t.push(">");if(this[b]){if(typeof this[b]==="string"){t.push((0,r.encodeToXmlString)(this[b]))}else{this[b][wt](t)}}else{for(const e of this[Mt]){e[wt](t)}}t.push(`</${n}${i}>`)}[it](t){if(this[b]){const t=new Wt(this[Z],"#text");this[h](t);t[b]=this[b];this[b]=""}this[h](t);return true}[st](t){this[b]+=t}[A](){if(this[b]&&this[Mt].length>0){const t=new Wt(this[Z],"#text");this[h](t);t[b]=this[b];delete this[b]}}[vt](){if(this[tt]==="#text"){return n.HTMLResult.success({name:"#text",value:this[b]})}return n.HTMLResult.EMPTY}[F](){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;if(!t){return this[Mt]}return this[Mt].filter((e=>e[tt]===t))}[S](){return this[xt]}[_](t){const e=this[xt].get(t);if(e!==undefined){return e}return this[F](t)}*[C](t,e){const i=this[xt].get(t);if(i){yield i}for(const i of this[Mt]){if(i[tt]===t){yield i}if(e){yield*i[C](t,e)}}}*[x](t,e){const i=this[xt].get(t);if(i&&(!e||!i[g])){yield i}for(const i of this[Mt]){yield*i[x](t,e)}}*[I](t,e,i){for(const n of this[Mt]){if(n[tt]===t&&(!i||!n[g])){yield n}if(e){yield*n[I](t,e,i)}}}[H](){if(this[Et]===null){return this[Mt].length===0||this[Mt][0][Z]===a.NamespaceIds.xhtml.id}return this[Et]}[O](){if(this[Et]===null){if(this[Mt].length===0){return this[b].trim()}if(this[Mt][0][Z]===a.NamespaceIds.xhtml.id){return this[Mt][0][gt]().trim()}return null}return this[b].trim()}[pt](t){t=t.value||"";this[b]=t.toString()}[w](){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;const e=Object.create(null);if(t){e.$ns=this[Z]}if(this[b]){e.$content=this[b]}e.$name=this[tt];e.children=[];for(const i of this[Mt]){e.children.push(i[w](t))}e.attributes=Object.create(null);for(const[t,i]of this[xt]){e.attributes[t]=i[b]}return e}}e.XmlObject=Wt;class Ht extends $t{constructor(t,e){super(t,e);this[b]=""}[st](t){this[b]+=t}[A](){}}e.ContentObject=Ht;class zt extends Ht{constructor(t,e,i){super(t,e);this[Dt]=i}[A](){this[b]=(0,n.getKeyword)({data:this[b],defaultValue:this[Dt][0],validate:t=>this[Dt].includes(t)})}[f](t){super[f](t);delete this[Dt]}}e.OptionObject=zt;class Vt extends Ht{[A](){this[b]=this[b].trim()}}e.StringObject=Vt;class Xt extends Ht{constructor(t,e,i,n){super(t,e);this[Ct]=i;this[Lt]=n}[A](){this[b]=(0,n.getInteger)({data:this[b],defaultValue:this[Ct],validate:this[Lt]})}[f](t){super[f](t);delete this[Ct];delete this[Lt]}}e.IntegerObject=Xt;class Kt extends Xt{constructor(t,e){super(t,e,0,(t=>t===1))}}e.Option01=Kt;class Yt extends Xt{constructor(t,e){super(t,e,1,(t=>t===0))}}e.Option10=Yt},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.HTMLResult=void 0;e.getBBox=m;e.getColor=p;e.getFloat=c;e.getInteger=o;e.getKeyword=l;e.getMeasurement=u;e.getRatio=f;e.getRelevant=d;e.getStringOption=h;e.stripQuotes=a;var n=i(2);const s={pt:t=>t,cm:t=>t/2.54*72,mm:t=>t/(10*2.54)*72,in:t=>t*72,px:t=>t};const r=/([+-]?\d+\.?\d*)(.*)/;function a(t){if(t.startsWith("'")||t.startsWith('"')){return t.slice(1,t.length-1)}return t}function o(t){let{data:e,defaultValue:i,validate:n}=t;if(!e){return i}e=e.trim();const s=parseInt(e,10);if(!isNaN(s)&&n(s)){return s}return i}function c(t){let{data:e,defaultValue:i,validate:n}=t;if(!e){return i}e=e.trim();const s=parseFloat(e);if(!isNaN(s)&&n(s)){return s}return i}function l(t){let{data:e,defaultValue:i,validate:n}=t;if(!e){return i}e=e.trim();if(n(e)){return e}return i}function h(t,e){return l({data:t,defaultValue:e[0],validate:t=>e.includes(t)})}function u(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"0";e=e||"0";if(!t){return u(e)}const i=t.trim().match(r);if(!i){return u(e)}const[,n,a]=i;const o=parseFloat(n);if(isNaN(o)){return u(e)}if(o===0){return 0}const c=s[a];if(c){return c(o)}return o}function f(t){if(!t){return{num:1,den:1}}const e=t.trim().split(/\s*:\s*/).map((t=>parseFloat(t))).filter((t=>!isNaN(t)));if(e.length===1){e.push(1)}if(e.length===0){return{num:1,den:1}}const[i,n]=e;return{num:i,den:n}}function d(t){if(!t){return[]}return t.trim().split(/\s+/).map((t=>({excluded:t[0]==="-",viewname:t.substring(1)})))}function p(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[0,0,0];let[i,n,s]=e;if(!t){return{r:i,g:n,b:s}}const r=t.trim().split(/\s*,\s*/).map((t=>Math.min(Math.max(0,parseInt(t.trim(),10)),255))).map((t=>isNaN(t)?0:t));if(r.length<3){return{r:i,g:n,b:s}}[i,n,s]=r;return{r:i,g:n,b:s}}function m(t){const e=-1;if(!t){return{x:e,y:e,width:e,height:e}}const i=t.trim().split(/\s*,\s*/).map((t=>u(t,"-1")));if(i.length<4||i[2]<0||i[3]<0){return{x:e,y:e,width:e,height:e}}const[n,s,r,a]=i;return{x:n,y:s,width:r,height:a}}class g{static get FAILURE(){return(0,n.shadow)(this,"FAILURE",new g(false,null,null,null))}static get EMPTY(){return(0,n.shadow)(this,"EMPTY",new g(true,null,null,null))}constructor(t,e,i,n){this.success=t;this.html=e;this.bbox=i;this.breakNode=n}isBreak(){return!!this.breakNode}static breakNode(t){return new g(false,null,null,t)}static success(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;return new g(true,t,e,null)}}e.HTMLResult=g},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.NamespaceIds=e.$buildXFAObject=void 0;const i=Symbol();e.$buildXFAObject=i;const n={config:{id:0,check:t=>t.startsWith("http://www.xfa.org/schema/xci/")},connectionSet:{id:1,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-connection-set/")},datasets:{id:2,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-data/")},form:{id:3,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-form/")},localeSet:{id:4,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-locale-set/")},pdf:{id:5,check:t=>t==="http://ns.adobe.com/xdp/pdf/"},signature:{id:6,check:t=>t==="http://www.w3.org/2000/09/xmldsig#"},sourceSet:{id:7,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-source-set/")},stylesheet:{id:8,check:t=>t==="http://www.w3.org/1999/XSL/Transform"},template:{id:9,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-template/")},xdc:{id:10,check:t=>t.startsWith("http://www.xfa.org/schema/xdc/")},xdp:{id:11,check:t=>t==="http://ns.adobe.com/xdp/"},xfdf:{id:12,check:t=>t==="http://ns.adobe.com/xfdf/"},xhtml:{id:13,check:t=>t==="http://www.w3.org/1999/xhtml"},xmpmeta:{id:14,check:t=>t==="http://ns.adobe.com/xmpmeta/"}};e.NamespaceIds=n},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.createDataNode=g;e.searchNode=p;var n=i(206);var s=i(208);var r=i(2);const a=/^[^.[]+/;const o=/^[^\]]+/;const c={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4};const l=new Map([["$data",(t,e)=>t.datasets?t.datasets.data:t],["$record",(t,e)=>(t.datasets?t.datasets.data:t)[n.$getChildren]()[0]],["$template",(t,e)=>t.template],["$connectionSet",(t,e)=>t.connectionSet],["$form",(t,e)=>t.form],["$layout",(t,e)=>t.layout],["$host",(t,e)=>t.host],["$dataWindow",(t,e)=>t.dataWindow],["$event",(t,e)=>t.event],["!",(t,e)=>t.datasets],["$xfa",(t,e)=>t],["xfa",(t,e)=>t],["$",(t,e)=>e]]);const h=new WeakMap;const u=s.NamespaceIds.datasets.id;function f(t){t=t.trim();if(t==="*"){return Infinity}return parseInt(t,10)||0}function d(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;let n=t.match(a);if(!n){return null}let[s]=n;const l=[{name:s,cacheName:"."+s,index:0,js:null,formCalc:null,operator:c.dot}];let h=s.length;while(h<t.length){const u=h;const d=t.charAt(h++);if(d==="["){n=t.slice(h).match(o);if(!n){(0,r.warn)("XFA - Invalid index in SOM expression");return null}l.at(-1).index=f(n[0]);h+=n[0].length+1;continue}let p;switch(t.charAt(h)){case".":if(!e){return null}h++;p=c.dotDot;break;case"#":h++;p=c.dotHash;break;case"[":if(i){(0,r.warn)("XFA - SOM expression contains a FormCalc subexpression which is not supported for now.");return null}p=c.dotBracket;break;case"(":if(i){(0,r.warn)("XFA - SOM expression contains a JavaScript subexpression which is not supported for now.");return null}p=c.dotParen;break;default:p=c.dot;break}n=t.slice(h).match(a);if(!n){break}[s]=n;h+=s.length;l.push({name:s,cacheName:t.slice(u,h),operator:p,index:0,js:null,formCalc:null})}return l}function p(t,e,i){let s=arguments.length>3&&arguments[3]!==undefined?arguments[3]:true;let r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:true;const a=d(i,s);if(!a){return null}const o=l.get(a[0].name);let u=0;let f;if(o){f=true;t=[o(t,e)];u=1}else{f=e===null;t=[e||t]}for(let i=a.length;u<i;u++){const{name:i,cacheName:s,operator:o,index:l}=a[u];const d=[];for(const e of t){if(!(e instanceof n.XFAObject)){continue}let t,a;if(r){a=h.get(e);if(!a){a=new Map;h.set(e,a)}t=a.get(s)}if(!t){switch(o){case c.dot:t=e[n.$getChildrenByName](i,false);break;case c.dotDot:t=e[n.$getChildrenByName](i,true);break;case c.dotHash:t=e[n.$getChildrenByClass](i);if(t instanceof n.XFAObjectArray){t=t.children}else{t=[t]}break}if(r){a.set(s,t)}}if(t.length>0){d.push(t)}}if(d.length===0&&!f&&u===0){const i=e[n.$getParent]();e=i;if(!e){return null}u=-1;t=[e];continue}if(isFinite(l)){t=d.filter((t=>l<t.length)).map((t=>t[l]))}else{t=d.flat()}}if(t.length===0){return null}return t}function m(t,e){let i=null;for(const{name:s,index:r}of e){for(let e=0,a=!isFinite(r)?0:r;e<=a;e++){const e=t[n.$namespaceId]===u?-1:t[n.$namespaceId];i=new n.XmlObject(e,s);t[n.$appendChild](i)}t=i}return i}function g(t,e,i){const s=d(i);if(!s){return null}if(s.some((t=>t.operator===c.dotDot))){return null}const a=l.get(s[0].name);let o=0;if(a){t=a(t,e);o=1}else{t=e||t}for(let e=s.length;o<e;o++){const{name:e,operator:i,index:a}=s[o];if(!isFinite(a)){s[o].index=0;return m(t,s.slice(o))}let l;switch(i){case c.dot:l=t[n.$getChildrenByName](e,false);break;case c.dotDot:l=t[n.$getChildrenByName](e,true);break;case c.dotHash:l=t[n.$getChildrenByClass](e);if(l instanceof n.XFAObjectArray){l=l.children}else{l=[l]}break}if(l.length===0){return m(t,s.slice(o))}if(a<l.length){const e=l[a];if(!(e instanceof n.XFAObject)){(0,r.warn)(`XFA - Cannot create a node.`);return null}t=e}else{s[o].index=a-l.length;return m(t,s.slice(o))}}return null}},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.Binder=void 0;var n=i(206);var s=i(211);var r=i(209);var a=i(208);var o=i(2);const c=a.NamespaceIds.datasets.id;function l(t){const e=new s.Text({});e[n.$content]=t;return e}class h{constructor(t){this.root=t;this.datasets=t.datasets;if(t.datasets&&t.datasets.data){this.data=t.datasets.data}else{this.data=new n.XmlObject(a.NamespaceIds.datasets.id,"data")}this.emptyMerge=this.data[n.$getChildren]().length===0;this.root.form=this.form=t.template[n.$clone]()}_isConsumeData(){return!this.emptyMerge&&this._mergeMode}_isMatchTemplate(){return!this._isConsumeData()}bind(){this._bindElement(this.form,this.data);return this.form}getData(){return this.data}_bindValue(t,e,i){t[n.$data]=e;if(t[n.$hasSettableValue]()){if(e[n.$isDataValue]()){const i=e[n.$getDataValue]();t[n.$setValue](l(i))}else if(t instanceof s.Field&&t.ui&&t.ui.choiceList&&t.ui.choiceList.open==="multiSelect"){const i=e[n.$getChildren]().map((t=>t[n.$content].trim())).join("\n");t[n.$setValue](l(i))}else if(this._isConsumeData()){(0,o.warn)(`XFA - Nodes haven't the same type.`)}}else if(!e[n.$isDataValue]()||this._isMatchTemplate()){this._bindElement(t,e)}else{(0,o.warn)(`XFA - Nodes haven't the same type.`)}}_findDataByNameToConsume(t,e,i,s){if(!t){return null}let r,o;for(let s=0;s<3;s++){r=i[n.$getRealChildrenByNameIt](t,false,true);while(true){o=r.next().value;if(!o){break}if(e===o[n.$isDataValue]()){return o}}if(i[n.$namespaceId]===a.NamespaceIds.datasets.id&&i[n.$nodeName]==="data"){break}i=i[n.$getParent]()}if(!s){return null}r=this.data[n.$getRealChildrenByNameIt](t,true,false);o=r.next().value;if(o){return o}r=this.data[n.$getAttributeIt](t,true);o=r.next().value;if(o&&o[n.$isDataValue]()){return o}return null}_setProperties(t,e){if(!t.hasOwnProperty("setProperty")){return}for(const{ref:i,target:a,connection:c}of t.setProperty.children){if(c){continue}if(!i){continue}const l=(0,r.searchNode)(this.root,e,i,false,false);if(!l){(0,o.warn)(`XFA - Invalid reference: ${i}.`);continue}const[h]=l;if(!h[n.$isDescendent](this.data)){(0,o.warn)(`XFA - Invalid node: must be a data node.`);continue}const u=(0,r.searchNode)(this.root,t,a,false,false);if(!u){(0,o.warn)(`XFA - Invalid target: ${a}.`);continue}const[f]=u;if(!f[n.$isDescendent](t)){(0,o.warn)(`XFA - Invalid target: must be a property or subproperty.`);continue}const d=f[n.$getParent]();if(f instanceof s.SetProperty||d instanceof s.SetProperty){(0,o.warn)(`XFA - Invalid target: cannot be a setProperty or one of its properties.`);continue}if(f instanceof s.BindItems||d instanceof s.BindItems){(0,o.warn)(`XFA - Invalid target: cannot be a bindItems or one of its properties.`);continue}const p=h[n.$text]();const m=f[n.$nodeName];if(f instanceof n.XFAAttribute){const t=Object.create(null);t[m]=p;const e=Reflect.construct(Object.getPrototypeOf(d).constructor,[t]);d[m]=e[m];continue}if(!f.hasOwnProperty(n.$content)){(0,o.warn)(`XFA - Invalid node to use in setProperty`);continue}f[n.$data]=h;f[n.$content]=p;f[n.$finalize]()}}_bindItems(t,e){if(!t.hasOwnProperty("items")||!t.hasOwnProperty("bindItems")||t.bindItems.isEmpty()){return}for(const e of t.items.children){t[n.$removeChild](e)}t.items.clear();const i=new s.Items({});const a=new s.Items({});t[n.$appendChild](i);t.items.push(i);t[n.$appendChild](a);t.items.push(a);for(const{ref:s,labelRef:c,valueRef:h,connection:u}of t.bindItems.children){if(u){continue}if(!s){continue}const t=(0,r.searchNode)(this.root,e,s,false,false);if(!t){(0,o.warn)(`XFA - Invalid reference: ${s}.`);continue}for(const e of t){if(!e[n.$isDescendent](this.datasets)){(0,o.warn)(`XFA - Invalid ref (${s}): must be a datasets child.`);continue}const t=(0,r.searchNode)(this.root,e,c,true,false);if(!t){(0,o.warn)(`XFA - Invalid label: ${c}.`);continue}const[u]=t;if(!u[n.$isDescendent](this.datasets)){(0,o.warn)(`XFA - Invalid label: must be a datasets child.`);continue}const f=(0,r.searchNode)(this.root,e,h,true,false);if(!f){(0,o.warn)(`XFA - Invalid value: ${h}.`);continue}const[d]=f;if(!d[n.$isDescendent](this.datasets)){(0,o.warn)(`XFA - Invalid value: must be a datasets child.`);continue}const p=l(u[n.$text]());const m=l(d[n.$text]());i[n.$appendChild](p);i.text.push(p);a[n.$appendChild](m);a.text.push(m)}}}_bindOccurrences(t,e,i){let s;if(e.length>1){s=t[n.$clone]();s[n.$removeChild](s.occur);s.occur=null}this._bindValue(t,e[0],i);this._setProperties(t,e[0]);this._bindItems(t,e[0]);if(e.length===1){return}const r=t[n.$getParent]();const a=t[n.$nodeName];const o=r[n.$indexOf](t);for(let t=1,c=e.length;t<c;t++){const c=e[t];const l=s[n.$clone]();r[a].push(l);r[n.$insertAt](o+t,l);this._bindValue(l,c,i);this._setProperties(l,c);this._bindItems(l,c)}}_createOccurrences(t){if(!this.emptyMerge){return}const{occur:e}=t;if(!e||e.initial<=1){return}const i=t[n.$getParent]();const s=t[n.$nodeName];if(!(i[s]instanceof n.XFAObjectArray)){return}let r;if(t.name){r=i[s].children.filter((e=>e.name===t.name)).length}else{r=i[s].children.length}const a=i[n.$indexOf](t)+1;const o=e.initial-r;if(o){const e=t[n.$clone]();e[n.$removeChild](e.occur);e.occur=null;i[s].push(e);i[n.$insertAt](a,e);for(let t=1;t<o;t++){const r=e[n.$clone]();i[s].push(r);i[n.$insertAt](a+t,r)}}}_getOccurInfo(t){const{name:e,occur:i}=t;if(!i||!e){return[1,1]}const n=i.max===-1?Infinity:i.max;return[i.min,n]}_setAndBind(t,e){this._setProperties(t,e);this._bindItems(t,e);this._bindElement(t,e)}_bindElement(t,e){const i=[];this._createOccurrences(t);for(const s of t[n.$getChildren]()){if(s[n.$data]){continue}if(this._mergeMode===undefined&&s[n.$nodeName]==="subform"){this._mergeMode=s.mergeMode==="consumeData";const t=e[n.$getChildren]();if(t.length>0){this._bindOccurrences(s,[t[0]],null)}else if(this.emptyMerge){const t=e[n.$namespaceId]===c?-1:e[n.$namespaceId];const i=s[n.$data]=new n.XmlObject(t,s.name||"root");e[n.$appendChild](i);this._bindElement(s,i)}continue}if(!s[n.$isBindable]()){continue}let t=false;let a=null;let l=null;let h=null;if(s.bind){switch(s.bind.match){case"none":this._setAndBind(s,e);continue;case"global":t=true;break;case"dataRef":if(!s.bind.ref){(0,o.warn)(`XFA - ref is empty in node ${s[n.$nodeName]}.`);this._setAndBind(s,e);continue}l=s.bind.ref;break}if(s.bind.picture){a=s.bind.picture[n.$content]}}const[u,f]=this._getOccurInfo(s);if(l){h=(0,r.searchNode)(this.root,e,l,true,false);if(h===null){h=(0,r.createDataNode)(this.data,e,l);if(!h){continue}if(this._isConsumeData()){h[n.$consumed]=true}this._setAndBind(s,h);continue}else{if(this._isConsumeData()){h=h.filter((t=>!t[n.$consumed]))}if(h.length>f){h=h.slice(0,f)}else if(h.length===0){h=null}if(h&&this._isConsumeData()){h.forEach((t=>{t[n.$consumed]=true}))}}}else{if(!s.name){this._setAndBind(s,e);continue}if(this._isConsumeData()){const i=[];while(i.length<f){const r=this._findDataByNameToConsume(s.name,s[n.$hasSettableValue](),e,t);if(!r){break}r[n.$consumed]=true;i.push(r)}h=i.length>0?i:null}else{h=e[n.$getRealChildrenByNameIt](s.name,false,this.emptyMerge).next().value;if(!h){if(u===0){i.push(s);continue}const t=e[n.$namespaceId]===c?-1:e[n.$namespaceId];h=s[n.$data]=new n.XmlObject(t,s.name);if(this.emptyMerge){h[n.$consumed]=true}e[n.$appendChild](h);this._setAndBind(s,h);continue}if(this.emptyMerge){h[n.$consumed]=true}h=[h]}}if(h){this._bindOccurrences(s,h,a)}else if(u>0){this._setAndBind(s,e)}else{i.push(s)}}i.forEach((t=>t[n.$getParent]()[n.$removeChild](t)))}}e.Binder=h},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.Value=e.Text=e.TemplateNamespace=e.Template=e.SetProperty=e.Items=e.Field=e.BindItems=void 0;var n=i(206);var s=i(208);var r=i(212);var a=i(213);var o=i(207);var c=i(2);var l=i(214);var h=i(135);var u=i(209);const f=s.NamespaceIds.template.id;const d="http://www.w3.org/2000/svg";const p=2;const m=3;const g=5e3;const b=/^H(\d+)$/;const v=new Set(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/apng","image/x-png","image/bmp","image/x-ms-bmp","image/tiff","image/tif","application/octet-stream"]);const w=[[[66,77],"image/bmp"],[[255,216,255],"image/jpeg"],[[73,73,42,0],"image/tiff"],[[77,77,0,42],"image/tiff"],[[71,73,70,56,57,97],"image/gif"],[[137,80,78,71,13,10,26,10],"image/png"]];function y(t){if(!t||!t.border){return{w:0,h:0}}const e=t.border[n.$getExtra]();if(!e){return{w:0,h:0}}return{w:e.widths[0]+e.widths[2]+e.insets[0]+e.insets[2],h:e.widths[1]+e.widths[3]+e.insets[1]+e.insets[3]}}function A(t){return t.margin&&(t.margin.topInset||t.margin.rightInset||t.margin.bottomInset||t.margin.leftInset)}function k(t,e){if(!t.value){const e=new Ne({});t[n.$appendChild](e);t.value=e}t.value[n.$setValue](e)}function*x(t){for(const e of t[n.$getChildren]()){if(e instanceof ke){yield*e[n.$getContainedChildren]();continue}yield e}}function S(t){return t.validate&&t.validate.nullTest==="error"}function M(t){while(t){if(!t.traversal){t[n.$tabIndex]=t[n.$getParent]()[n.$tabIndex];return}if(t[n.$tabIndex]){return}let e=null;for(const i of t.traversal[n.$getChildren]()){if(i.operation==="next"){e=i;break}}if(!e||!e.ref){t[n.$tabIndex]=t[n.$getParent]()[n.$tabIndex];return}const i=t[n.$getTemplateRoot]();t[n.$tabIndex]=++i[n.$tabIndex];const s=i[n.$searchNode](e.ref,t);if(!s){return}t=s[0]}}function _(t,e){const i=t.assist;if(i){const t=i[n.$toHTML]();if(t){e.title=t}const s=i.role;const r=s.match(b);if(r){const t="heading";const i=r[1];e.role=t;e["aria-level"]=i}}if(t.layout==="table"){e.role="table"}else if(t.layout==="row"){e.role="row"}else{const i=t[n.$getParent]();if(i.layout==="row"){if(i.assist&&i.assist.role==="TH"){e.role="columnheader"}else{e.role="cell"}}}}function E(t){if(!t.assist){return null}const e=t.assist;if(e.speak&&e.speak[n.$content]!==""){return e.speak[n.$content]}if(e.toolTip){return e.toolTip[n.$content]}return null}function C(t){return o.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:t}]})}function O(t){const e=t[n.$getTemplateRoot]();if(e[n.$extra].firstUnsplittable===null){e[n.$extra].firstUnsplittable=t;e[n.$extra].noLayoutFailure=true}}function T(t){const e=t[n.$getTemplateRoot]();if(e[n.$extra].firstUnsplittable===t){e[n.$extra].noLayoutFailure=false}}function I(t){if(t[n.$extra]){return false}t[n.$extra]=Object.create(null);if(t.targetType==="auto"){return false}const e=t[n.$getTemplateRoot]();let i=null;if(t.target){i=e[n.$searchNode](t.target,t[n.$getParent]());if(!i){return false}i=i[0]}const{currentPageArea:s,currentContentArea:r}=e[n.$extra];if(t.targetType==="pageArea"){if(!(i instanceof ee)){i=null}if(t.startNew){t[n.$extra].target=i||s;return true}else if(i&&i!==s){t[n.$extra].target=i;return true}return false}if(!(i instanceof it)){i=null}const a=i&&i[n.$getParent]();let o;let c=a;if(t.startNew){if(i){const t=a.contentArea.children;const e=t.indexOf(r);const n=t.indexOf(i);if(e!==-1&&e<n){c=null}o=n-1}else{o=s.contentArea.children.indexOf(r)}}else if(i&&i!==r){const t=a.contentArea.children;o=t.indexOf(i)-1;c=a===s?null:a}else{return false}t[n.$extra].target=c;t[n.$extra].index=o;return true}function F(t,e,i){const s=t[n.$getTemplateRoot]();const r=s[n.$extra].noLayoutFailure;const a=e[n.$getSubformParent];e[n.$getSubformParent]=()=>t;s[n.$extra].noLayoutFailure=true;const o=e[n.$toHTML](i);t[n.$addHTML](o.html,o.bbox);s[n.$extra].noLayoutFailure=r;e[n.$getSubformParent]=a}class P extends n.StringObject{constructor(t){super(f,"appearanceFilter");this.id=t.id||"";this.type=(0,o.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||""}}class D extends n.XFAObject{constructor(t){super(f,"arc",true);this.circular=(0,o.getInteger)({data:t.circular,defaultValue:0,validate:t=>t===1});this.hand=(0,o.getStringOption)(t.hand,["even","left","right"]);this.id=t.id||"";this.startAngle=(0,o.getFloat)({data:t.startAngle,defaultValue:0,validate:t=>true});this.sweepAngle=(0,o.getFloat)({data:t.sweepAngle,defaultValue:360,validate:t=>true});this.use=t.use||"";this.usehref=t.usehref||"";this.edge=null;this.fill=null}[n.$toHTML](){const t=this.edge||new dt({});const e=t[n.$toStyle]();const i=Object.create(null);if(this.fill&&this.fill.presence==="visible"){Object.assign(i,this.fill[n.$toStyle]())}else{i.fill="transparent"}i.strokeWidth=(0,a.measureToString)(t.presence==="visible"?t.thickness:0);i.stroke=e.color;let s;const r={xmlns:d,style:{width:"100%",height:"100%",overflow:"visible"}};if(this.sweepAngle===360){s={name:"ellipse",attributes:{xmlns:d,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:i}}}else{const t=this.startAngle*Math.PI/180;const e=this.sweepAngle*Math.PI/180;const n=this.sweepAngle>180?1:0;const[a,o,c,l]=[50*(1+Math.cos(t)),50*(1-Math.sin(t)),50*(1+Math.cos(t+e)),50*(1-Math.sin(t+e))];s={name:"path",attributes:{xmlns:d,d:`M ${a} ${o} A 50 50 0 ${n} 0 ${c} ${l}`,vectorEffect:"non-scaling-stroke",style:i}};Object.assign(r,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}const c={name:"svg",children:[s],attributes:r};const l=this[n.$getParent]()[n.$getParent]();if(A(l)){return o.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[c]})}c.attributes.style.position="absolute";return o.HTMLResult.success(c)}}class R extends n.XFAObject{constructor(t){super(f,"area",true);this.colSpan=(0,o.getInteger)({data:t.colSpan,defaultValue:1,validate:t=>t>=1||t===-1});this.id=t.id||"";this.name=t.name||"";this.relevant=(0,o.getRelevant)(t.relevant);this.use=t.use||"";this.usehref=t.usehref||"";this.x=(0,o.getMeasurement)(t.x,"0pt");this.y=(0,o.getMeasurement)(t.y,"0pt");this.desc=null;this.extras=null;this.area=new n.XFAObjectArray;this.draw=new n.XFAObjectArray;this.exObject=new n.XFAObjectArray;this.exclGroup=new n.XFAObjectArray;this.field=new n.XFAObjectArray;this.subform=new n.XFAObjectArray;this.subformSet=new n.XFAObjectArray}*[n.$getContainedChildren](){yield*x(this)}[n.$isTransparent](){return true}[n.$isBindable](){return true}[n.$addHTML](t,e){const[i,s,r,a]=e;this[n.$extra].width=Math.max(this[n.$extra].width,i+r);this[n.$extra].height=Math.max(this[n.$extra].height,s+a);this[n.$extra].children.push(t)}[n.$getAvailableSpace](){return this[n.$extra].availableSpace}[n.$toHTML](t){const e=(0,a.toStyle)(this,"position");const i={style:e,id:this[n.$uid],class:["xfaArea"]};if((0,a.isPrintOnly)(this)){i.class.push("xfaPrintOnly")}if(this.name){i.xfaName=this.name}const s=[];this[n.$extra]={children:s,width:0,height:0,availableSpace:t};const r=this[n.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:true});if(!r.success){if(r.isBreak()){return r}delete this[n.$extra];return o.HTMLResult.FAILURE}e.width=(0,a.measureToString)(this[n.$extra].width);e.height=(0,a.measureToString)(this[n.$extra].height);const c={name:"div",attributes:i,children:s};const l=[this.x,this.y,this[n.$extra].width,this[n.$extra].height];delete this[n.$extra];return o.HTMLResult.success(c,l)}}class N extends n.XFAObject{constructor(t){super(f,"assist",true);this.id=t.id||"";this.role=t.role||"";this.use=t.use||"";this.usehref=t.usehref||"";this.speak=null;this.toolTip=null}[n.$toHTML](){return this.toolTip&&this.toolTip[n.$content]?this.toolTip[n.$content]:null}}class j extends n.XFAObject{constructor(t){super(f,"barcode",true);this.charEncoding=(0,o.getKeyword)({data:t.charEncoding?t.charEncoding.toLowerCase():"",defaultValue:"",validate:t=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(t)||t.match(/iso-8859-\d{2}/)});this.checksum=(0,o.getStringOption)(t.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]);this.dataColumnCount=(0,o.getInteger)({data:t.dataColumnCount,defaultValue:-1,validate:t=>t>=0});this.dataLength=(0,o.getInteger)({data:t.dataLength,defaultValue:-1,validate:t=>t>=0});this.dataPrep=(0,o.getStringOption)(t.dataPrep,["none","flateCompress"]);this.dataRowCount=(0,o.getInteger)({data:t.dataRowCount,defaultValue:-1,validate:t=>t>=0});this.endChar=t.endChar||"";this.errorCorrectionLevel=(0,o.getInteger)({data:t.errorCorrectionLevel,defaultValue:-1,validate:t=>t>=0&&t<=8});this.id=t.id||"";this.moduleHeight=(0,o.getMeasurement)(t.moduleHeight,"5mm");this.moduleWidth=(0,o.getMeasurement)(t.moduleWidth,"0.25mm");this.printCheckDigit=(0,o.getInteger)({data:t.printCheckDigit,defaultValue:0,validate:t=>t===1});this.rowColumnRatio=(0,o.getRatio)(t.rowColumnRatio);this.startChar=t.startChar||"";this.textLocation=(0,o.getStringOption)(t.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]);this.truncate=(0,o.getInteger)({data:t.truncate,defaultValue:0,validate:t=>t===1});this.type=(0,o.getStringOption)(t.type?t.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]);this.upsMode=(0,o.getStringOption)(t.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]);this.use=t.use||"";this.usehref=t.usehref||"";this.wideNarrowRatio=(0,o.getRatio)(t.wideNarrowRatio);this.encrypt=null;this.extras=null}}class L extends n.XFAObject{constructor(t){super(f,"bind",true);this.match=(0,o.getStringOption)(t.match,["once","dataRef","global","none"]);this.ref=t.ref||"";this.picture=null}}class U extends n.XFAObject{constructor(t){super(f,"bindItems");this.connection=t.connection||"";this.labelRef=t.labelRef||"";this.ref=t.ref||"";this.valueRef=t.valueRef||""}}e.BindItems=U;class B extends n.XFAObject{constructor(t){super(f,"bookend");this.id=t.id||"";this.leader=t.leader||"";this.trailer=t.trailer||"";this.use=t.use||"";this.usehref=t.usehref||""}}class $ extends n.Option01{constructor(t){super(f,"boolean");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}[n.$toHTML](t){return C(this[n.$content]===1?"1":"0")}}class q extends n.XFAObject{constructor(t){super(f,"border",true);this.break=(0,o.getStringOption)(t.break,["close","open"]);this.hand=(0,o.getStringOption)(t.hand,["even","left","right"]);this.id=t.id||"";this.presence=(0,o.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,o.getRelevant)(t.relevant);this.use=t.use||"";this.usehref=t.usehref||"";this.corner=new n.XFAObjectArray(4);this.edge=new n.XFAObjectArray(4);this.extras=null;this.fill=null;this.margin=null}[n.$getExtra](){if(!this[n.$extra]){const t=this.edge.children.slice();if(t.length<4){const e=t.at(-1)||new dt({});for(let i=t.length;i<4;i++){t.push(e)}}const e=t.map((t=>t.thickness));const i=[0,0,0,0];if(this.margin){i[0]=this.margin.topInset;i[1]=this.margin.rightInset;i[2]=this.margin.bottomInset;i[3]=this.margin.leftInset}this[n.$extra]={widths:e,insets:i,edges:t}}return this[n.$extra]}[n.$toStyle](){const{edges:t}=this[n.$getExtra]();const e=t.map((t=>{const e=t[n.$toStyle]();e.color=e.color||"#000000";return e}));const i=Object.create(null);if(this.margin){Object.assign(i,this.margin[n.$toStyle]())}if(this.fill&&this.fill.presence==="visible"){Object.assign(i,this.fill[n.$toStyle]())}if(this.corner.children.some((t=>t.radius!==0))){const t=this.corner.children.map((t=>t[n.$toStyle]()));if(t.length===2||t.length===3){const e=t.at(-1);for(let i=t.length;i<4;i++){t.push(e)}}i.borderRadius=t.map((t=>t.radius)).join(" ")}switch(this.presence){case"invisible":case"hidden":i.borderStyle="";break;case"inactive":i.borderStyle="none";break;default:i.borderStyle=e.map((t=>t.style)).join(" ");break}i.borderWidth=e.map((t=>t.width)).join(" ");i.borderColor=e.map((t=>t.color)).join(" ");return i}}class G extends n.XFAObject{constructor(t){super(f,"break",true);this.after=(0,o.getStringOption)(t.after,["auto","contentArea","pageArea","pageEven","pageOdd"]);this.afterTarget=t.afterTarget||"";this.before=(0,o.getStringOption)(t.before,["auto","contentArea","pageArea","pageEven","pageOdd"]);this.beforeTarget=t.beforeTarget||"";this.bookendLeader=t.bookendLeader||"";this.bookendTrailer=t.bookendTrailer||"";this.id=t.id||"";this.overflowLeader=t.overflowLeader||"";this.overflowTarget=t.overflowTarget||"";this.overflowTrailer=t.overflowTrailer||"";this.startNew=(0,o.getInteger)({data:t.startNew,defaultValue:0,validate:t=>t===1});this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null}}class W extends n.XFAObject{constructor(t){super(f,"breakAfter",true);this.id=t.id||"";this.leader=t.leader||"";this.startNew=(0,o.getInteger)({data:t.startNew,defaultValue:0,validate:t=>t===1});this.target=t.target||"";this.targetType=(0,o.getStringOption)(t.targetType,["auto","contentArea","pageArea"]);this.trailer=t.trailer||"";this.use=t.use||"";this.usehref=t.usehref||"";this.script=null}}class H extends n.XFAObject{constructor(t){super(f,"breakBefore",true);this.id=t.id||"";this.leader=t.leader||"";this.startNew=(0,o.getInteger)({data:t.startNew,defaultValue:0,validate:t=>t===1});this.target=t.target||"";this.targetType=(0,o.getStringOption)(t.targetType,["auto","contentArea","pageArea"]);this.trailer=t.trailer||"";this.use=t.use||"";this.usehref=t.usehref||"";this.script=null}[n.$toHTML](t){this[n.$extra]={};return o.HTMLResult.FAILURE}}class z extends n.XFAObject{constructor(t){super(f,"button",true);this.highlight=(0,o.getStringOption)(t.highlight,["inverted","none","outline","push"]);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null}[n.$toHTML](t){const e=this[n.$getParent]();const i=e[n.$getParent]();const s={name:"button",attributes:{id:this[n.$uid],class:["xfaButton"],style:{}},children:[]};for(const t of i.event.children){if(t.activity!=="click"||!t.script){continue}const e=(0,h.recoverJsURL)(t.script[n.$content]);if(!e){continue}const i=(0,a.fixURL)(e.url);if(!i){continue}s.children.push({name:"a",attributes:{id:"link"+this[n.$uid],href:i,newWindow:e.newWindow,class:["xfaLink"],style:{}},children:[]})}return o.HTMLResult.success(s)}}class V extends n.XFAObject{constructor(t){super(f,"calculate",true);this.id=t.id||"";this.override=(0,o.getStringOption)(t.override,["disabled","error","ignore","warning"]);this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.message=null;this.script=null}}class X extends n.XFAObject{constructor(t){super(f,"caption",true);this.id=t.id||"";this.placement=(0,o.getStringOption)(t.placement,["left","bottom","inline","right","top"]);this.presence=(0,o.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.reserve=Math.ceil((0,o.getMeasurement)(t.reserve));this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.font=null;this.margin=null;this.para=null;this.value=null}[n.$setValue](t){k(this,t)}[n.$getExtra](t){if(!this[n.$extra]){let{width:e,height:i}=t;switch(this.placement){case"left":case"right":case"inline":e=this.reserve<=0?e:this.reserve;break;case"top":case"bottom":i=this.reserve<=0?i:this.reserve;break}this[n.$extra]=(0,a.layoutNode)(this,{width:e,height:i})}return this[n.$extra]}[n.$toHTML](t){if(!this.value){return o.HTMLResult.EMPTY}this[n.$pushPara]();const e=this.value[n.$toHTML](t).html;if(!e){this[n.$popPara]();return o.HTMLResult.EMPTY}const i=this.reserve;if(this.reserve<=0){const{w:e,h:i}=this[n.$getExtra](t);switch(this.placement){case"left":case"right":case"inline":this.reserve=e;break;case"top":case"bottom":this.reserve=i;break}}const s=[];if(typeof e==="string"){s.push({name:"#text",value:e})}else{s.push(e)}const r=(0,a.toStyle)(this,"font","margin","visibility");switch(this.placement){case"left":case"right":if(this.reserve>0){r.width=(0,a.measureToString)(this.reserve)}break;case"top":case"bottom":if(this.reserve>0){r.height=(0,a.measureToString)(this.reserve)}break}(0,a.setPara)(this,null,e);this[n.$popPara]();this.reserve=i;return o.HTMLResult.success({name:"div",attributes:{style:r,class:["xfaCaption"]},children:s})}}class K extends n.StringObject{constructor(t){super(f,"certificate");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class Y extends n.XFAObject{constructor(t){super(f,"certificates",true);this.credentialServerPolicy=(0,o.getStringOption)(t.credentialServerPolicy,["optional","required"]);this.id=t.id||"";this.url=t.url||"";this.urlPolicy=t.urlPolicy||"";this.use=t.use||"";this.usehref=t.usehref||"";this.encryption=null;this.issuers=null;this.keyUsage=null;this.oids=null;this.signing=null;this.subjectDNs=null}}class J extends n.XFAObject{constructor(t){super(f,"checkButton",true);this.id=t.id||"";this.mark=(0,o.getStringOption)(t.mark,["default","check","circle","cross","diamond","square","star"]);this.shape=(0,o.getStringOption)(t.shape,["square","round"]);this.size=(0,o.getMeasurement)(t.size,"10pt");this.use=t.use||"";this.usehref=t.usehref||"";this.border=null;this.extras=null;this.margin=null}[n.$toHTML](t){const e=(0,a.toStyle)("margin");const i=(0,a.measureToString)(this.size);e.width=e.height=i;let s;let r;let c;const l=this[n.$getParent]()[n.$getParent]();const h=l.items.children.length&&l.items.children[0][n.$toHTML]().html||[];const u={on:(h[0]!==undefined?h[0]:"on").toString(),off:(h[1]!==undefined?h[1]:"off").toString()};const f=l.value&&l.value[n.$text]()||"off";const d=f===u.on||undefined;const p=l[n.$getSubformParent]();const m=l[n.$uid];let g;if(p instanceof St){c=p[n.$uid];s="radio";r="xfaRadio";g=p[n.$data]&&p[n.$data][n.$uid]||p[n.$uid]}else{s="checkbox";r="xfaCheckbox";g=l[n.$data]&&l[n.$data][n.$uid]||l[n.$uid]}const b={name:"input",attributes:{class:[r],style:e,fieldId:m,dataId:g,type:s,checked:d,xfaOn:u.on,xfaOff:u.off,"aria-label":E(l),"aria-required":false}};if(c){b.attributes.name=c}if(S(l)){b.attributes["aria-required"]=true;b.attributes.required=true}return o.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[b]})}}class Q extends n.XFAObject{constructor(t){super(f,"choiceList",true);this.commitOn=(0,o.getStringOption)(t.commitOn,["select","exit"]);this.id=t.id||"";this.open=(0,o.getStringOption)(t.open,["userControl","always","multiSelect","onEntry"]);this.textEntry=(0,o.getInteger)({data:t.textEntry,defaultValue:0,validate:t=>t===1});this.use=t.use||"";this.usehref=t.usehref||"";this.border=null;this.extras=null;this.margin=null}[n.$toHTML](t){const e=(0,a.toStyle)(this,"border","margin");const i=this[n.$getParent]();const s=i[n.$getParent]();const r=s.font&&s.font.size||10;const c={fontSize:`calc(${r}px * var(--scale-factor))`};const l=[];if(s.items.children.length>0){const t=s.items;let e=0;let i=0;if(t.children.length===2){e=t.children[0].save;i=1-e}const r=t.children[e][n.$toHTML]().html;const a=t.children[i][n.$toHTML]().html;let o=false;const h=s.value&&s.value[n.$text]()||"";for(let t=0,e=r.length;t<e;t++){const e={name:"option",attributes:{value:a[t]||r[t],style:c},value:r[t]};if(a[t]===h){e.attributes.selected=o=true}l.push(e)}if(!o){l.splice(0,0,{name:"option",attributes:{hidden:true,selected:true},value:" "})}}const h={class:["xfaSelect"],fieldId:s[n.$uid],dataId:s[n.$data]&&s[n.$data][n.$uid]||s[n.$uid],style:e,"aria-label":E(s),"aria-required":false};if(S(s)){h["aria-required"]=true;h.required=true}if(this.open==="multiSelect"){h.multiple=true}return o.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:l,attributes:h}]})}}class Z extends n.XFAObject{constructor(t){super(f,"color",true);this.cSpace=(0,o.getStringOption)(t.cSpace,["SRGB"]);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.value=t.value?(0,o.getColor)(t.value):"";this.extras=null}[n.$hasSettableValue](){return false}[n.$toStyle](){return this.value?c.Util.makeHexColor(this.value.r,this.value.g,this.value.b):null}}class tt extends n.XFAObject{constructor(t){super(f,"comb");this.id=t.id||"";this.numberOfCells=(0,o.getInteger)({data:t.numberOfCells,defaultValue:0,validate:t=>t>=0});this.use=t.use||"";this.usehref=t.usehref||""}}class et extends n.XFAObject{constructor(t){super(f,"connect",true);this.connection=t.connection||"";this.id=t.id||"";this.ref=t.ref||"";this.usage=(0,o.getStringOption)(t.usage,["exportAndImport","exportOnly","importOnly"]);this.use=t.use||"";this.usehref=t.usehref||"";this.picture=null}}class it extends n.XFAObject{constructor(t){super(f,"contentArea",true);this.h=(0,o.getMeasurement)(t.h);this.id=t.id||"";this.name=t.name||"";this.relevant=(0,o.getRelevant)(t.relevant);this.use=t.use||"";this.usehref=t.usehref||"";this.w=(0,o.getMeasurement)(t.w);this.x=(0,o.getMeasurement)(t.x,"0pt");this.y=(0,o.getMeasurement)(t.y,"0pt");this.desc=null;this.extras=null}[n.$toHTML](t){const e=(0,a.measureToString)(this.x);const i=(0,a.measureToString)(this.y);const s={left:e,top:i,width:(0,a.measureToString)(this.w),height:(0,a.measureToString)(this.h)};const r=["xfaContentarea"];if((0,a.isPrintOnly)(this)){r.push("xfaPrintOnly")}return o.HTMLResult.success({name:"div",children:[],attributes:{style:s,class:r,id:this[n.$uid]}})}}class nt extends n.XFAObject{constructor(t){super(f,"corner",true);this.id=t.id||"";this.inverted=(0,o.getInteger)({data:t.inverted,defaultValue:0,validate:t=>t===1});this.join=(0,o.getStringOption)(t.join,["square","round"]);this.presence=(0,o.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.radius=(0,o.getMeasurement)(t.radius);this.stroke=(0,o.getStringOption)(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);this.thickness=(0,o.getMeasurement)(t.thickness,"0.5pt");this.use=t.use||"";this.usehref=t.usehref||"";this.color=null;this.extras=null}[n.$toStyle](){const t=(0,a.toStyle)(this,"visibility");t.radius=(0,a.measureToString)(this.join==="square"?0:this.radius);return t}}class st extends n.ContentObject{constructor(t){super(f,"date");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}[n.$finalize](){const t=this[n.$content].trim();this[n.$content]=t?new Date(t):null}[n.$toHTML](t){return C(this[n.$content]?this[n.$content].toString():"")}}class rt extends n.ContentObject{constructor(t){super(f,"dateTime");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}[n.$finalize](){const t=this[n.$content].trim();this[n.$content]=t?new Date(t):null}[n.$toHTML](t){return C(this[n.$content]?this[n.$content].toString():"")}}class at extends n.XFAObject{constructor(t){super(f,"dateTimeEdit",true);this.hScrollPolicy=(0,o.getStringOption)(t.hScrollPolicy,["auto","off","on"]);this.id=t.id||"";this.picker=(0,o.getStringOption)(t.picker,["host","none"]);this.use=t.use||"";this.usehref=t.usehref||"";this.border=null;this.comb=null;this.extras=null;this.margin=null}[n.$toHTML](t){const e=(0,a.toStyle)(this,"border","font","margin");const i=this[n.$getParent]()[n.$getParent]();const s={name:"input",attributes:{type:"text",fieldId:i[n.$uid],dataId:i[n.$data]&&i[n.$data][n.$uid]||i[n.$uid],class:["xfaTextfield"],style:e,"aria-label":E(i),"aria-required":false}};if(S(i)){s.attributes["aria-required"]=true;s.attributes.required=true}return o.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[s]})}}class ot extends n.ContentObject{constructor(t){super(f,"decimal");this.fracDigits=(0,o.getInteger)({data:t.fracDigits,defaultValue:2,validate:t=>true});this.id=t.id||"";this.leadDigits=(0,o.getInteger)({data:t.leadDigits,defaultValue:-1,validate:t=>true});this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}[n.$finalize](){const t=parseFloat(this[n.$content].trim());this[n.$content]=isNaN(t)?null:t}[n.$toHTML](t){return C(this[n.$content]!==null?this[n.$content].toString():"")}}class ct extends n.XFAObject{constructor(t){super(f,"defaultUi",true);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null}}class lt extends n.XFAObject{constructor(t){super(f,"desc",true);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.boolean=new n.XFAObjectArray;this.date=new n.XFAObjectArray;this.dateTime=new n.XFAObjectArray;this.decimal=new n.XFAObjectArray;this.exData=new n.XFAObjectArray;this.float=new n.XFAObjectArray;this.image=new n.XFAObjectArray;this.integer=new n.XFAObjectArray;this.text=new n.XFAObjectArray;this.time=new n.XFAObjectArray}}class ht extends n.OptionObject{constructor(t){super(f,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||""}}class ut extends n.XFAObject{constructor(t){super(f,"digestMethods",true);this.id=t.id||"";this.type=(0,o.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||"";this.digestMethod=new n.XFAObjectArray}}class ft extends n.XFAObject{constructor(t){super(f,"draw",true);this.anchorType=(0,o.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);this.colSpan=(0,o.getInteger)({data:t.colSpan,defaultValue:1,validate:t=>t>=1||t===-1});this.h=t.h?(0,o.getMeasurement)(t.h):"";this.hAlign=(0,o.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=t.id||"";this.locale=t.locale||"";this.maxH=(0,o.getMeasurement)(t.maxH,"0pt");this.maxW=(0,o.getMeasurement)(t.maxW,"0pt");this.minH=(0,o.getMeasurement)(t.minH,"0pt");this.minW=(0,o.getMeasurement)(t.minW,"0pt");this.name=t.name||"";this.presence=(0,o.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,o.getRelevant)(t.relevant);this.rotate=(0,o.getInteger)({data:t.rotate,defaultValue:0,validate:t=>t%90===0});this.use=t.use||"";this.usehref=t.usehref||"";this.w=t.w?(0,o.getMeasurement)(t.w):"";this.x=(0,o.getMeasurement)(t.x,"0pt");this.y=(0,o.getMeasurement)(t.y,"0pt");this.assist=null;this.border=null;this.caption=null;this.desc=null;this.extras=null;this.font=null;this.keep=null;this.margin=null;this.para=null;this.traversal=null;this.ui=null;this.value=null;this.setProperty=new n.XFAObjectArray}[n.$setValue](t){k(this,t)}[n.$toHTML](t){M(this);if(this.presence==="hidden"||this.presence==="inactive"){return o.HTMLResult.EMPTY}(0,a.fixDimensions)(this);this[n.$pushPara]();const e=this.w;const i=this.h;const{w:s,h:c,isBroken:l}=(0,a.layoutNode)(this,t);if(s&&this.w===""){if(l&&this[n.$getSubformParent]()[n.$isThereMoreWidth]()){this[n.$popPara]();return o.HTMLResult.FAILURE}this.w=s}if(c&&this.h===""){this.h=c}O(this);if(!(0,r.checkDimensions)(this,t)){this.w=e;this.h=i;this[n.$popPara]();return o.HTMLResult.FAILURE}T(this);const h=(0,a.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,a.setMinMaxDimensions)(this,h);if(h.margin){h.padding=h.margin;delete h.margin}const u=["xfaDraw"];if(this.font){u.push("xfaFont")}if((0,a.isPrintOnly)(this)){u.push("xfaPrintOnly")}const f={style:h,id:this[n.$uid],class:u};if(this.name){f.xfaName=this.name}const d={name:"div",attributes:f,children:[]};_(this,f);const p=(0,a.computeBbox)(this,d,t);const m=this.value?this.value[n.$toHTML](t).html:null;if(m===null){this.w=e;this.h=i;this[n.$popPara]();return o.HTMLResult.success((0,a.createWrapper)(this,d),p)}d.children.push(m);(0,a.setPara)(this,h,m);this.w=e;this.h=i;this[n.$popPara]();return o.HTMLResult.success((0,a.createWrapper)(this,d),p)}}class dt extends n.XFAObject{constructor(t){super(f,"edge",true);this.cap=(0,o.getStringOption)(t.cap,["square","butt","round"]);this.id=t.id||"";this.presence=(0,o.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.stroke=(0,o.getStringOption)(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);this.thickness=(0,o.getMeasurement)(t.thickness,"0.5pt");this.use=t.use||"";this.usehref=t.usehref||"";this.color=null;this.extras=null}[n.$toStyle](){const t=(0,a.toStyle)(this,"visibility");Object.assign(t,{linecap:this.cap,width:(0,a.measureToString)(this.thickness),color:this.color?this.color[n.$toStyle]():"#000000",style:""});if(this.presence!=="visible"){t.style="none"}else{switch(this.stroke){case"solid":t.style="solid";break;case"dashDot":t.style="dashed";break;case"dashDotDot":t.style="dashed";break;case"dashed":t.style="dashed";break;case"dotted":t.style="dotted";break;case"embossed":t.style="ridge";break;case"etched":t.style="groove";break;case"lowered":t.style="inset";break;case"raised":t.style="outset";break}}return t}}class pt extends n.OptionObject{constructor(t){super(f,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||""}}class mt extends n.XFAObject{constructor(t){super(f,"encodings",true);this.id=t.id||"";this.type=(0,o.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||"";this.encoding=new n.XFAObjectArray}}class gt extends n.XFAObject{constructor(t){super(f,"encrypt",true);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.certificate=null}}class bt extends n.XFAObject{constructor(t){super(f,"encryptData",true);this.id=t.id||"";this.operation=(0,o.getStringOption)(t.operation,["encrypt","decrypt"]);this.target=t.target||"";this.use=t.use||"";this.usehref=t.usehref||"";this.filter=null;this.manifest=null}}class vt extends n.XFAObject{constructor(t){super(f,"encryption",true);this.id=t.id||"";this.type=(0,o.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||"";this.certificate=new n.XFAObjectArray}}class wt extends n.OptionObject{constructor(t){super(f,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||""}}class yt extends n.XFAObject{constructor(t){super(f,"encryptionMethods",true);this.id=t.id||"";this.type=(0,o.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||"";this.encryptionMethod=new n.XFAObjectArray}}class At extends n.XFAObject{constructor(t){super(f,"event",true);this.activity=(0,o.getStringOption)(t.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]);this.id=t.id||"";this.listen=(0,o.getStringOption)(t.listen,["refOnly","refAndDescendents"]);this.name=t.name||"";this.ref=t.ref||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.encryptData=null;this.execute=null;this.script=null;this.signData=null;this.submit=null}}class kt extends n.ContentObject{constructor(t){super(f,"exData");this.contentType=t.contentType||"";this.href=t.href||"";this.id=t.id||"";this.maxLength=(0,o.getInteger)({data:t.maxLength,defaultValue:-1,validate:t=>t>=-1});this.name=t.name||"";this.rid=t.rid||"";this.transferEncoding=(0,o.getStringOption)(t.transferEncoding,["none","base64","package"]);this.use=t.use||"";this.usehref=t.usehref||""}[n.$isCDATAXml](){return this.contentType==="text/html"}[n.$onChild](t){if(this.contentType==="text/html"&&t[n.$namespaceId]===s.NamespaceIds.xhtml.id){this[n.$content]=t;return true}if(this.contentType==="text/xml"){this[n.$content]=t;return true}return false}[n.$toHTML](t){if(this.contentType!=="text/html"||!this[n.$content]){return o.HTMLResult.EMPTY}return this[n.$content][n.$toHTML](t)}}class xt extends n.XFAObject{constructor(t){super(f,"exObject",true);this.archive=t.archive||"";this.classId=t.classId||"";this.codeBase=t.codeBase||"";this.codeType=t.codeType||"";this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.boolean=new n.XFAObjectArray;this.date=new n.XFAObjectArray;this.dateTime=new n.XFAObjectArray;this.decimal=new n.XFAObjectArray;this.exData=new n.XFAObjectArray;this.exObject=new n.XFAObjectArray;this.float=new n.XFAObjectArray;this.image=new n.XFAObjectArray;this.integer=new n.XFAObjectArray;this.text=new n.XFAObjectArray;this.time=new n.XFAObjectArray}}class St extends n.XFAObject{constructor(t){super(f,"exclGroup",true);this.access=(0,o.getStringOption)(t.access,["open","nonInteractive","protected","readOnly"]);this.accessKey=t.accessKey||"";this.anchorType=(0,o.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);this.colSpan=(0,o.getInteger)({data:t.colSpan,defaultValue:1,validate:t=>t>=1||t===-1});this.h=t.h?(0,o.getMeasurement)(t.h):"";this.hAlign=(0,o.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=t.id||"";this.layout=(0,o.getStringOption)(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);this.maxH=(0,o.getMeasurement)(t.maxH,"0pt");this.maxW=(0,o.getMeasurement)(t.maxW,"0pt");this.minH=(0,o.getMeasurement)(t.minH,"0pt");this.minW=(0,o.getMeasurement)(t.minW,"0pt");this.name=t.name||"";this.presence=(0,o.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,o.getRelevant)(t.relevant);this.use=t.use||"";this.usehref=t.usehref||"";this.w=t.w?(0,o.getMeasurement)(t.w):"";this.x=(0,o.getMeasurement)(t.x,"0pt");this.y=(0,o.getMeasurement)(t.y,"0pt");this.assist=null;this.bind=null;this.border=null;this.calculate=null;this.caption=null;this.desc=null;this.extras=null;this.margin=null;this.para=null;this.traversal=null;this.validate=null;this.connect=new n.XFAObjectArray;this.event=new n.XFAObjectArray;this.field=new n.XFAObjectArray;this.setProperty=new n.XFAObjectArray}[n.$isBindable](){return true}[n.$hasSettableValue](){return true}[n.$setValue](t){for(const e of this.field.children){if(!e.value){const t=new Ne({});e[n.$appendChild](t);e.value=t}e.value[n.$setValue](t)}}[n.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&this[n.$extra].attempt===0&&this[n.$extra].numberInLine>0||this[n.$getParent]()[n.$isThereMoreWidth]()}[n.$isSplittable](){const t=this[n.$getSubformParent]();if(!t[n.$isSplittable]()){return false}if(this[n.$extra]._isSplittable!==undefined){return this[n.$extra]._isSplittable}if(this.layout==="position"||this.layout.includes("row")){this[n.$extra]._isSplittable=false;return false}if(t.layout&&t.layout.endsWith("-tb")&&t[n.$extra].numberInLine!==0){return false}this[n.$extra]._isSplittable=true;return true}[n.$flushHTML](){return(0,r.flushHTML)(this)}[n.$addHTML](t,e){(0,r.addHTML)(this,t,e)}[n.$getAvailableSpace](){return(0,r.getAvailableSpace)(this)}[n.$toHTML](t){M(this);if(this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0){return o.HTMLResult.EMPTY}(0,a.fixDimensions)(this);const e=[];const i={id:this[n.$uid],class:[]};(0,a.setAccess)(this,i.class);if(!this[n.$extra]){this[n.$extra]=Object.create(null)}Object.assign(this[n.$extra],{children:e,attributes:i,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||Infinity,t.width),height:Math.min(this.h||Infinity,t.height)},width:0,height:0,prevHeight:0,currentWidth:0});const s=this[n.$isSplittable]();if(!s){O(this)}if(!(0,r.checkDimensions)(this,t)){return o.HTMLResult.FAILURE}const c=new Set(["field"]);if(this.layout.includes("row")){const t=this[n.$getSubformParent]().columnWidths;if(Array.isArray(t)&&t.length>0){this[n.$extra].columnWidths=t;this[n.$extra].currentColumn=0}}const l=(0,a.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign");const h=["xfaExclgroup"];const u=(0,a.layoutClass)(this);if(u){h.push(u)}if((0,a.isPrintOnly)(this)){h.push("xfaPrintOnly")}i.style=l;i.class=h;if(this.name){i.xfaName=this.name}this[n.$pushPara]();const f=this.layout==="lr-tb"||this.layout==="rl-tb";const d=f?p:1;for(;this[n.$extra].attempt<d;this[n.$extra].attempt++){if(f&&this[n.$extra].attempt===p-1){this[n.$extra].numberInLine=0}const t=this[n.$childrenToHTML]({filter:c,include:true});if(t.success){break}if(t.isBreak()){this[n.$popPara]();return t}if(f&&this[n.$extra].attempt===0&&this[n.$extra].numberInLine===0&&!this[n.$getTemplateRoot]()[n.$extra].noLayoutFailure){this[n.$extra].attempt=d;break}}this[n.$popPara]();if(!s){T(this)}if(this[n.$extra].attempt===d){if(!s){delete this[n.$extra]}return o.HTMLResult.FAILURE}let m=0;let g=0;if(this.margin){m=this.margin.leftInset+this.margin.rightInset;g=this.margin.topInset+this.margin.bottomInset}const b=Math.max(this[n.$extra].width+m,this.w||0);const v=Math.max(this[n.$extra].height+g,this.h||0);const w=[this.x,this.y,b,v];if(this.w===""){l.width=(0,a.measureToString)(b)}if(this.h===""){l.height=(0,a.measureToString)(v)}const y={name:"div",attributes:i,children:e};_(this,i);delete this[n.$extra];return o.HTMLResult.success((0,a.createWrapper)(this,y),w)}}class Mt extends n.XFAObject{constructor(t){super(f,"execute");this.connection=t.connection||"";this.executeType=(0,o.getStringOption)(t.executeType,["import","remerge"]);this.id=t.id||"";this.runAt=(0,o.getStringOption)(t.runAt,["client","both","server"]);this.use=t.use||"";this.usehref=t.usehref||""}}class _t extends n.XFAObject{constructor(t){super(f,"extras",true);this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||"";this.boolean=new n.XFAObjectArray;this.date=new n.XFAObjectArray;this.dateTime=new n.XFAObjectArray;this.decimal=new n.XFAObjectArray;this.exData=new n.XFAObjectArray;this.extras=new n.XFAObjectArray;this.float=new n.XFAObjectArray;this.image=new n.XFAObjectArray;this.integer=new n.XFAObjectArray;this.text=new n.XFAObjectArray;this.time=new n.XFAObjectArray}}class Et extends n.XFAObject{constructor(t){super(f,"field",true);this.access=(0,o.getStringOption)(t.access,["open","nonInteractive","protected","readOnly"]);this.accessKey=t.accessKey||"";this.anchorType=(0,o.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);this.colSpan=(0,o.getInteger)({data:t.colSpan,defaultValue:1,validate:t=>t>=1||t===-1});this.h=t.h?(0,o.getMeasurement)(t.h):"";this.hAlign=(0,o.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=t.id||"";this.locale=t.locale||"";this.maxH=(0,o.getMeasurement)(t.maxH,"0pt");this.maxW=(0,o.getMeasurement)(t.maxW,"0pt");this.minH=(0,o.getMeasurement)(t.minH,"0pt");this.minW=(0,o.getMeasurement)(t.minW,"0pt");this.name=t.name||"";this.presence=(0,o.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,o.getRelevant)(t.relevant);this.rotate=(0,o.getInteger)({data:t.rotate,defaultValue:0,validate:t=>t%90===0});this.use=t.use||"";this.usehref=t.usehref||"";this.w=t.w?(0,o.getMeasurement)(t.w):"";this.x=(0,o.getMeasurement)(t.x,"0pt");this.y=(0,o.getMeasurement)(t.y,"0pt");this.assist=null;this.bind=null;this.border=null;this.calculate=null;this.caption=null;this.desc=null;this.extras=null;this.font=null;this.format=null;this.items=new n.XFAObjectArray(2);this.keep=null;this.margin=null;this.para=null;this.traversal=null;this.ui=null;this.validate=null;this.value=null;this.bindItems=new n.XFAObjectArray;this.connect=new n.XFAObjectArray;this.event=new n.XFAObjectArray;this.setProperty=new n.XFAObjectArray}[n.$isBindable](){return true}[n.$setValue](t){k(this,t)}[n.$toHTML](t){M(this);if(!this.ui){this.ui=new De({});this.ui[n.$globalData]=this[n.$globalData];this[n.$appendChild](this.ui);let t;switch(this.items.children.length){case 0:t=new Ce({});this.ui.textEdit=t;break;case 1:t=new J({});this.ui.checkButton=t;break;case 2:t=new Q({});this.ui.choiceList=t;break}this.ui[n.$appendChild](t)}if(!this.ui||this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0){return o.HTMLResult.EMPTY}if(this.caption){delete this.caption[n.$extra]}this[n.$pushPara]();const e=this.caption?this.caption[n.$toHTML](t).html:null;const i=this.w;const s=this.h;let c=0;let h=0;if(this.margin){c=this.margin.leftInset+this.margin.rightInset;h=this.margin.topInset+this.margin.bottomInset}let u=null;if(this.w===""||this.h===""){let e=null;let i=null;let s=0;let r=0;if(this.ui.checkButton){s=r=this.ui.checkButton.size}else{const{w:e,h:i}=(0,a.layoutNode)(this,t);if(e!==null){s=e;r=i}else{r=(0,l.getMetrics)(this.font,true).lineNoGap}}u=y(this.ui[n.$getExtra]());s+=u.w;r+=u.h;if(this.caption){const{w:a,h:c,isBroken:l}=this.caption[n.$getExtra](t);if(l&&this[n.$getSubformParent]()[n.$isThereMoreWidth]()){this[n.$popPara]();return o.HTMLResult.FAILURE}e=a;i=c;switch(this.caption.placement){case"left":case"right":case"inline":e+=s;break;case"top":case"bottom":i+=r;break}}else{e=s;i=r}if(e&&this.w===""){e+=c;this.w=Math.min(this.maxW<=0?Infinity:this.maxW,this.minW+1<e?e:this.minW)}if(i&&this.h===""){i+=h;this.h=Math.min(this.maxH<=0?Infinity:this.maxH,this.minH+1<i?i:this.minH)}}this[n.$popPara]();(0,a.fixDimensions)(this);O(this);if(!(0,r.checkDimensions)(this,t)){this.w=i;this.h=s;this[n.$popPara]();return o.HTMLResult.FAILURE}T(this);const f=(0,a.toStyle)(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");(0,a.setMinMaxDimensions)(this,f);const d=["xfaField"];if(this.font){d.push("xfaFont")}if((0,a.isPrintOnly)(this)){d.push("xfaPrintOnly")}const p={style:f,id:this[n.$uid],class:d};if(f.margin){f.padding=f.margin;delete f.margin}(0,a.setAccess)(this,d);if(this.name){p.xfaName=this.name}const m=[];const g={name:"div",attributes:p,children:m};_(this,p);const b=this.border?this.border[n.$toStyle]():null;const v=(0,a.computeBbox)(this,g,t);const w=this.ui[n.$toHTML]().html;if(!w){Object.assign(f,b);return o.HTMLResult.success((0,a.createWrapper)(this,g),v)}if(this[n.$tabIndex]){if(w.children&&w.children[0]){w.children[0].attributes.tabindex=this[n.$tabIndex]}else{w.attributes.tabindex=this[n.$tabIndex]}}if(!w.attributes.style){w.attributes.style=Object.create(null)}let A=null;if(this.ui.button){if(w.children.length===1){[A]=w.children.splice(0,1)}Object.assign(w.attributes.style,b)}else{Object.assign(f,b)}m.push(w);if(this.value){if(this.ui.imageEdit){w.children.push(this.value[n.$toHTML]().html)}else if(!this.ui.button){let t="";if(this.value.exData){t=this.value.exData[n.$text]()}else if(this.value.text){t=this.value.text[n.$getExtra]()}else{const e=this.value[n.$toHTML]().html;if(e!==null){t=e.children[0].value}}if(this.ui.textEdit&&this.value.text&&this.value.text.maxChars){w.children[0].attributes.maxLength=this.value.text.maxChars}if(t){if(this.ui.numericEdit){t=parseFloat(t);t=isNaN(t)?"":t.toString()}if(w.children[0].name==="textarea"){w.children[0].attributes.textContent=t}else{w.children[0].attributes.value=t}}}}if(!this.ui.imageEdit&&w.children&&w.children[0]&&this.h){u=u||y(this.ui[n.$getExtra]());let e=0;if(this.caption&&["top","bottom"].includes(this.caption.placement)){e=this.caption.reserve;if(e<=0){e=this.caption[n.$getExtra](t).h}const i=this.h-e-h-u.h;w.children[0].attributes.style.height=(0,a.measureToString)(i)}else{w.children[0].attributes.style.height="100%"}}if(A){w.children.push(A)}if(!e){if(w.attributes.class){w.attributes.class.push("xfaLeft")}this.w=i;this.h=s;return o.HTMLResult.success((0,a.createWrapper)(this,g),v)}if(this.ui.button){if(f.padding){delete f.padding}if(e.name==="div"){e.name="span"}w.children.push(e);return o.HTMLResult.success(g,v)}else if(this.ui.checkButton){e.attributes.class[0]="xfaCaptionForCheckButton"}if(!w.attributes.class){w.attributes.class=[]}w.children.splice(0,0,e);switch(this.caption.placement){case"left":w.attributes.class.push("xfaLeft");break;case"right":w.attributes.class.push("xfaRight");break;case"top":w.attributes.class.push("xfaTop");break;case"bottom":w.attributes.class.push("xfaBottom");break;case"inline":w.attributes.class.push("xfaLeft");break}this.w=i;this.h=s;return o.HTMLResult.success((0,a.createWrapper)(this,g),v)}}e.Field=Et;class Ct extends n.XFAObject{constructor(t){super(f,"fill",true);this.id=t.id||"";this.presence=(0,o.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.use=t.use||"";this.usehref=t.usehref||"";this.color=null;this.extras=null;this.linear=null;this.pattern=null;this.radial=null;this.solid=null;this.stipple=null}[n.$toStyle](){const t=this[n.$getParent]();const e=t[n.$getParent]();const i=e[n.$getParent]();const s=Object.create(null);let r="color";let a=r;if(t instanceof q){r="background-color";a="background";if(i instanceof De){s.backgroundColor="white"}}if(t instanceof ue||t instanceof D){r=a="fill";s.fill="white"}for(const t of Object.getOwnPropertyNames(this)){if(t==="extras"||t==="color"){continue}const e=this[t];if(!(e instanceof n.XFAObject)){continue}const i=e[n.$toStyle](this.color);if(i){s[i.startsWith("#")?r:a]=i}return s}if(this.color&&this.color.value){const t=this.color[n.$toStyle]();s[t.startsWith("#")?r:a]=t}return s}}class Ot extends n.XFAObject{constructor(t){super(f,"filter",true);this.addRevocationInfo=(0,o.getStringOption)(t.addRevocationInfo,["","required","optional","none"]);this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||"";this.version=(0,o.getInteger)({data:this.version,defaultValue:5,validate:t=>t>=1&&t<=5});this.appearanceFilter=null;this.certificates=null;this.digestMethods=null;this.encodings=null;this.encryptionMethods=null;this.handler=null;this.lockDocument=null;this.mdp=null;this.reasons=null;this.timeStamp=null}}class Tt extends n.ContentObject{constructor(t){super(f,"float");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}[n.$finalize](){const t=parseFloat(this[n.$content].trim());this[n.$content]=isNaN(t)?null:t}[n.$toHTML](t){return C(this[n.$content]!==null?this[n.$content].toString():"")}}class It extends n.XFAObject{constructor(t){super(f,"font",true);this.baselineShift=(0,o.getMeasurement)(t.baselineShift);this.fontHorizontalScale=(0,o.getFloat)({data:t.fontHorizontalScale,defaultValue:100,validate:t=>t>=0});this.fontVerticalScale=(0,o.getFloat)({data:t.fontVerticalScale,defaultValue:100,validate:t=>t>=0});this.id=t.id||"";this.kerningMode=(0,o.getStringOption)(t.kerningMode,["none","pair"]);this.letterSpacing=(0,o.getMeasurement)(t.letterSpacing,"0");this.lineThrough=(0,o.getInteger)({data:t.lineThrough,defaultValue:0,validate:t=>t===1||t===2});this.lineThroughPeriod=(0,o.getStringOption)(t.lineThroughPeriod,["all","word"]);this.overline=(0,o.getInteger)({data:t.overline,defaultValue:0,validate:t=>t===1||t===2});this.overlinePeriod=(0,o.getStringOption)(t.overlinePeriod,["all","word"]);this.posture=(0,o.getStringOption)(t.posture,["normal","italic"]);this.size=(0,o.getMeasurement)(t.size,"10pt");this.typeface=t.typeface||"Courier";this.underline=(0,o.getInteger)({data:t.underline,defaultValue:0,validate:t=>t===1||t===2});this.underlinePeriod=(0,o.getStringOption)(t.underlinePeriod,["all","word"]);this.use=t.use||"";this.usehref=t.usehref||"";this.weight=(0,o.getStringOption)(t.weight,["normal","bold"]);this.extras=null;this.fill=null}[n.$clean](t){super[n.$clean](t);this[n.$globalData].usedTypefaces.add(this.typeface)}[n.$toStyle](){const t=(0,a.toStyle)(this,"fill");const e=t.color;if(e){if(e==="#000000"){delete t.color}else if(!e.startsWith("#")){t.background=e;t.backgroundClip="text";t.color="transparent"}}if(this.baselineShift){t.verticalAlign=(0,a.measureToString)(this.baselineShift)}t.fontKerning=this.kerningMode==="none"?"none":"normal";t.letterSpacing=(0,a.measureToString)(this.letterSpacing);if(this.lineThrough!==0){t.textDecoration="line-through";if(this.lineThrough===2){t.textDecorationStyle="double"}}if(this.overline!==0){t.textDecoration="overline";if(this.overline===2){t.textDecorationStyle="double"}}t.fontStyle=this.posture;t.fontSize=(0,a.measureToString)(.99*this.size);(0,a.setFontFamily)(this,this,this[n.$globalData].fontFinder,t);if(this.underline!==0){t.textDecoration="underline";if(this.underline===2){t.textDecorationStyle="double"}}t.fontWeight=this.weight;return t}}class Ft extends n.XFAObject{constructor(t){super(f,"format",true);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.picture=null}}class Pt extends n.StringObject{constructor(t){super(f,"handler");this.id=t.id||"";this.type=(0,o.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||""}}class Dt extends n.XFAObject{constructor(t){super(f,"hyphenation");this.excludeAllCaps=(0,o.getInteger)({data:t.excludeAllCaps,defaultValue:0,validate:t=>t===1});this.excludeInitialCap=(0,o.getInteger)({data:t.excludeInitialCap,defaultValue:0,validate:t=>t===1});this.hyphenate=(0,o.getInteger)({data:t.hyphenate,defaultValue:0,validate:t=>t===1});this.id=t.id||"";this.pushCharacterCount=(0,o.getInteger)({data:t.pushCharacterCount,defaultValue:3,validate:t=>t>=0});this.remainCharacterCount=(0,o.getInteger)({data:t.remainCharacterCount,defaultValue:3,validate:t=>t>=0});this.use=t.use||"";this.usehref=t.usehref||"";this.wordCharacterCount=(0,o.getInteger)({data:t.wordCharacterCount,defaultValue:7,validate:t=>t>=0})}}class Rt extends n.StringObject{constructor(t){super(f,"image");this.aspect=(0,o.getStringOption)(t.aspect,["fit","actual","height","none","width"]);this.contentType=t.contentType||"";this.href=t.href||"";this.id=t.id||"";this.name=t.name||"";this.transferEncoding=(0,o.getStringOption)(t.transferEncoding,["base64","none","package"]);this.use=t.use||"";this.usehref=t.usehref||""}[n.$toHTML](){if(this.contentType&&!v.has(this.contentType.toLowerCase())){return o.HTMLResult.EMPTY}let t=this[n.$globalData].images&&this[n.$globalData].images.get(this.href);if(!t&&(this.href||!this[n.$content])){return o.HTMLResult.EMPTY}if(!t&&this.transferEncoding==="base64"){t=(0,c.stringToBytes)(atob(this[n.$content]))}if(!t){return o.HTMLResult.EMPTY}if(!this.contentType){for(const[e,i]of w){if(t.length>e.length&&e.every(((e,i)=>e===t[i]))){this.contentType=i;break}}if(!this.contentType){return o.HTMLResult.EMPTY}}const e=new Blob([t],{type:this.contentType});let i;switch(this.aspect){case"fit":case"actual":break;case"height":i={height:"100%",objectFit:"fill"};break;case"none":i={width:"100%",height:"100%",objectFit:"fill"};break;case"width":i={width:"100%",objectFit:"fill"};break}const s=this[n.$getParent]();return o.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:i,src:URL.createObjectURL(e),alt:s?E(s[n.$getParent]()):null}})}}class Nt extends n.XFAObject{constructor(t){super(f,"imageEdit",true);this.data=(0,o.getStringOption)(t.data,["link","embed"]);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.border=null;this.extras=null;this.margin=null}[n.$toHTML](t){if(this.data==="embed"){return o.HTMLResult.success({name:"div",children:[],attributes:{}})}return o.HTMLResult.EMPTY}}class jt extends n.ContentObject{constructor(t){super(f,"integer");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}[n.$finalize](){const t=parseInt(this[n.$content].trim(),10);this[n.$content]=isNaN(t)?null:t}[n.$toHTML](t){return C(this[n.$content]!==null?this[n.$content].toString():"")}}class Lt extends n.XFAObject{constructor(t){super(f,"issuers",true);this.id=t.id||"";this.type=(0,o.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||"";this.certificate=new n.XFAObjectArray}}class Ut extends n.XFAObject{constructor(t){super(f,"items",true);this.id=t.id||"";this.name=t.name||"";this.presence=(0,o.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.ref=t.ref||"";this.save=(0,o.getInteger)({data:t.save,defaultValue:0,validate:t=>t===1});this.use=t.use||"";this.usehref=t.usehref||"";this.boolean=new n.XFAObjectArray;this.date=new n.XFAObjectArray;this.dateTime=new n.XFAObjectArray;this.decimal=new n.XFAObjectArray;this.exData=new n.XFAObjectArray;this.float=new n.XFAObjectArray;this.image=new n.XFAObjectArray;this.integer=new n.XFAObjectArray;this.text=new n.XFAObjectArray;this.time=new n.XFAObjectArray}[n.$toHTML](){const t=[];for(const e of this[n.$getChildren]()){t.push(e[n.$text]())}return o.HTMLResult.success(t)}}e.Items=Ut;class Bt extends n.XFAObject{constructor(t){super(f,"keep",true);this.id=t.id||"";const e=["none","contentArea","pageArea"];this.intact=(0,o.getStringOption)(t.intact,e);this.next=(0,o.getStringOption)(t.next,e);this.previous=(0,o.getStringOption)(t.previous,e);this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null}}class $t extends n.XFAObject{constructor(t){super(f,"keyUsage");const e=["","yes","no"];this.crlSign=(0,o.getStringOption)(t.crlSign,e);this.dataEncipherment=(0,o.getStringOption)(t.dataEncipherment,e);this.decipherOnly=(0,o.getStringOption)(t.decipherOnly,e);this.digitalSignature=(0,o.getStringOption)(t.digitalSignature,e);this.encipherOnly=(0,o.getStringOption)(t.encipherOnly,e);this.id=t.id||"";this.keyAgreement=(0,o.getStringOption)(t.keyAgreement,e);this.keyCertSign=(0,o.getStringOption)(t.keyCertSign,e);this.keyEncipherment=(0,o.getStringOption)(t.keyEncipherment,e);this.nonRepudiation=(0,o.getStringOption)(t.nonRepudiation,e);this.type=(0,o.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||""}}class qt extends n.XFAObject{constructor(t){super(f,"line",true);this.hand=(0,o.getStringOption)(t.hand,["even","left","right"]);this.id=t.id||"";this.slope=(0,o.getStringOption)(t.slope,["\\","/"]);this.use=t.use||"";this.usehref=t.usehref||"";this.edge=null}[n.$toHTML](){const t=this[n.$getParent]()[n.$getParent]();const e=this.edge||new dt({});const i=e[n.$toStyle]();const s=Object.create(null);const r=e.presence==="visible"?e.thickness:0;s.strokeWidth=(0,a.measureToString)(r);s.stroke=i.color;let c,l,h,u;let f="100%";let p="100%";if(t.w<=r){[c,l,h,u]=["50%",0,"50%","100%"];f=s.strokeWidth}else if(t.h<=r){[c,l,h,u]=[0,"50%","100%","50%"];p=s.strokeWidth}else{if(this.slope==="\\"){[c,l,h,u]=[0,0,"100%","100%"]}else{[c,l,h,u]=[0,"100%","100%",0]}}const m={name:"line",attributes:{xmlns:d,x1:c,y1:l,x2:h,y2:u,style:s}};const g={name:"svg",children:[m],attributes:{xmlns:d,width:f,height:p,style:{overflow:"visible"}}};if(A(t)){return o.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[g]})}g.attributes.style.position="absolute";return o.HTMLResult.success(g)}}class Gt extends n.XFAObject{constructor(t){super(f,"linear",true);this.id=t.id||"";this.type=(0,o.getStringOption)(t.type,["toRight","toBottom","toLeft","toTop"]);this.use=t.use||"";this.usehref=t.usehref||"";this.color=null;this.extras=null}[n.$toStyle](t){t=t?t[n.$toStyle]():"#FFFFFF";const e=this.type.replace(/([RBLT])/," $1").toLowerCase();const i=this.color?this.color[n.$toStyle]():"#000000";return`linear-gradient(${e}, ${t}, ${i})`}}class Wt extends n.ContentObject{constructor(t){super(f,"lockDocument");this.id=t.id||"";this.type=(0,o.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||""}[n.$finalize](){this[n.$content]=(0,o.getStringOption)(this[n.$content],["auto","0","1"])}}class Ht extends n.XFAObject{constructor(t){super(f,"manifest",true);this.action=(0,o.getStringOption)(t.action,["include","all","exclude"]);this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.ref=new n.XFAObjectArray}}class zt extends n.XFAObject{constructor(t){super(f,"margin",true);this.bottomInset=(0,o.getMeasurement)(t.bottomInset,"0");this.id=t.id||"";this.leftInset=(0,o.getMeasurement)(t.leftInset,"0");this.rightInset=(0,o.getMeasurement)(t.rightInset,"0");this.topInset=(0,o.getMeasurement)(t.topInset,"0");this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null}[n.$toStyle](){return{margin:(0,a.measureToString)(this.topInset)+" "+(0,a.measureToString)(this.rightInset)+" "+(0,a.measureToString)(this.bottomInset)+" "+(0,a.measureToString)(this.leftInset)}}}class Vt extends n.XFAObject{constructor(t){super(f,"mdp");this.id=t.id||"";this.permissions=(0,o.getInteger)({data:t.permissions,defaultValue:2,validate:t=>t===1||t===3});this.signatureType=(0,o.getStringOption)(t.signatureType,["filler","author"]);this.use=t.use||"";this.usehref=t.usehref||""}}class Xt extends n.XFAObject{constructor(t){super(f,"medium");this.id=t.id||"";this.imagingBBox=(0,o.getBBox)(t.imagingBBox);this.long=(0,o.getMeasurement)(t.long);this.orientation=(0,o.getStringOption)(t.orientation,["portrait","landscape"]);this.short=(0,o.getMeasurement)(t.short);this.stock=t.stock||"";this.trayIn=(0,o.getStringOption)(t.trayIn,["auto","delegate","pageFront"]);this.trayOut=(0,o.getStringOption)(t.trayOut,["auto","delegate"]);this.use=t.use||"";this.usehref=t.usehref||""}}class Kt extends n.XFAObject{constructor(t){super(f,"message",true);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.text=new n.XFAObjectArray}}class Yt extends n.XFAObject{constructor(t){super(f,"numericEdit",true);this.hScrollPolicy=(0,o.getStringOption)(t.hScrollPolicy,["auto","off","on"]);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.border=null;this.comb=null;this.extras=null;this.margin=null}[n.$toHTML](t){const e=(0,a.toStyle)(this,"border","font","margin");const i=this[n.$getParent]()[n.$getParent]();const s={name:"input",attributes:{type:"text",fieldId:i[n.$uid],dataId:i[n.$data]&&i[n.$data][n.$uid]||i[n.$uid],class:["xfaTextfield"],style:e,"aria-label":E(i),"aria-required":false}};if(S(i)){s.attributes["aria-required"]=true;s.attributes.required=true}return o.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[s]})}}class Jt extends n.XFAObject{constructor(t){super(f,"occur",true);this.id=t.id||"";this.initial=t.initial!==""?(0,o.getInteger)({data:t.initial,defaultValue:"",validate:t=>true}):"";this.max=t.max!==""?(0,o.getInteger)({data:t.max,defaultValue:1,validate:t=>true}):"";this.min=t.min!==""?(0,o.getInteger)({data:t.min,defaultValue:1,validate:t=>true}):"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null}[n.$clean](){const t=this[n.$getParent]();const e=this.min;if(this.min===""){this.min=t instanceof ee||t instanceof ie?0:1}if(this.max===""){if(e===""){this.max=t instanceof ee||t instanceof ie?-1:1}else{this.max=this.min}}if(this.max!==-1&&this.max<this.min){this.max=this.min}if(this.initial===""){this.initial=t instanceof _e?1:this.min}}}class Qt extends n.StringObject{constructor(t){super(f,"oid");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class Zt extends n.XFAObject{constructor(t){super(f,"oids",true);this.id=t.id||"";this.type=(0,o.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||"";this.oid=new n.XFAObjectArray}}class te extends n.XFAObject{constructor(t){super(f,"overflow");this.id=t.id||"";this.leader=t.leader||"";this.target=t.target||"";this.trailer=t.trailer||"";this.use=t.use||"";this.usehref=t.usehref||""}[n.$getExtra](){if(!this[n.$extra]){const t=this[n.$getParent]();const e=this[n.$getTemplateRoot]();const i=e[n.$searchNode](this.target,t);const s=e[n.$searchNode](this.leader,t);const r=e[n.$searchNode](this.trailer,t);this[n.$extra]={target:i&&i[0]||null,leader:s&&s[0]||null,trailer:r&&r[0]||null,addLeader:false,addTrailer:false}}return this[n.$extra]}}class ee extends n.XFAObject{constructor(t){super(f,"pageArea",true);this.blankOrNotBlank=(0,o.getStringOption)(t.blankOrNotBlank,["any","blank","notBlank"]);this.id=t.id||"";this.initialNumber=(0,o.getInteger)({data:t.initialNumber,defaultValue:1,validate:t=>true});this.name=t.name||"";this.numbered=(0,o.getInteger)({data:t.numbered,defaultValue:1,validate:t=>true});this.oddOrEven=(0,o.getStringOption)(t.oddOrEven,["any","even","odd"]);this.pagePosition=(0,o.getStringOption)(t.pagePosition,["any","first","last","only","rest"]);this.relevant=(0,o.getRelevant)(t.relevant);this.use=t.use||"";this.usehref=t.usehref||"";this.desc=null;this.extras=null;this.medium=null;this.occur=null;this.area=new n.XFAObjectArray;this.contentArea=new n.XFAObjectArray;this.draw=new n.XFAObjectArray;this.exclGroup=new n.XFAObjectArray;this.field=new n.XFAObjectArray;this.subform=new n.XFAObjectArray}[n.$isUsable](){if(!this[n.$extra]){this[n.$extra]={numberOfUse:0};return true}return!this.occur||this.occur.max===-1||this[n.$extra].numberOfUse<this.occur.max}[n.$cleanPage](){delete this[n.$extra]}[n.$getNextPage](){if(!this[n.$extra]){this[n.$extra]={numberOfUse:0}}const t=this[n.$getParent]();if(t.relation==="orderedOccurrence"){if(this[n.$isUsable]()){this[n.$extra].numberOfUse+=1;return this}}return t[n.$getNextPage]()}[n.$getAvailableSpace](){return this[n.$extra].space||{width:0,height:0}}[n.$toHTML](){if(!this[n.$extra]){this[n.$extra]={numberOfUse:1}}const t=[];this[n.$extra].children=t;const e=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){e.width=(0,a.measureToString)(this.medium.short);e.height=(0,a.measureToString)(this.medium.long);this[n.$extra].space={width:this.medium.short,height:this.medium.long};if(this.medium.orientation==="landscape"){const t=e.width;e.width=e.height;e.height=t;this[n.$extra].space={width:this.medium.long,height:this.medium.short}}}else{(0,c.warn)("XFA - No medium specified in pageArea: please file a bug.")}this[n.$childrenToHTML]({filter:new Set(["area","draw","field","subform"]),include:true});this[n.$childrenToHTML]({filter:new Set(["contentArea"]),include:true});return o.HTMLResult.success({name:"div",children:t,attributes:{class:["xfaPage"],id:this[n.$uid],style:e,xfaName:this.name}})}}class ie extends n.XFAObject{constructor(t){super(f,"pageSet",true);this.duplexImposition=(0,o.getStringOption)(t.duplexImposition,["longEdge","shortEdge"]);this.id=t.id||"";this.name=t.name||"";this.relation=(0,o.getStringOption)(t.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]);this.relevant=(0,o.getRelevant)(t.relevant);this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.occur=null;this.pageArea=new n.XFAObjectArray;this.pageSet=new n.XFAObjectArray}[n.$cleanPage](){for(const t of this.pageArea.children){t[n.$cleanPage]()}for(const t of this.pageSet.children){t[n.$cleanPage]()}}[n.$isUsable](){return!this.occur||this.occur.max===-1||this[n.$extra].numberOfUse<this.occur.max}[n.$getNextPage](){if(!this[n.$extra]){this[n.$extra]={numberOfUse:1,pageIndex:-1,pageSetIndex:-1}}if(this.relation==="orderedOccurrence"){if(this[n.$extra].pageIndex+1<this.pageArea.children.length){this[n.$extra].pageIndex+=1;const t=this.pageArea.children[this[n.$extra].pageIndex];return t[n.$getNextPage]()}if(this[n.$extra].pageSetIndex+1<this.pageSet.children.length){this[n.$extra].pageSetIndex+=1;return this.pageSet.children[this[n.$extra].pageSetIndex][n.$getNextPage]()}if(this[n.$isUsable]()){this[n.$extra].numberOfUse+=1;this[n.$extra].pageIndex=-1;this[n.$extra].pageSetIndex=-1;return this[n.$getNextPage]()}const t=this[n.$getParent]();if(t instanceof ie){return t[n.$getNextPage]()}this[n.$cleanPage]();return this[n.$getNextPage]()}const t=this[n.$getTemplateRoot]()[n.$extra].pageNumber;const e=t%2===0?"even":"odd";const i=t===0?"first":"rest";let s=this.pageArea.children.find((t=>t.oddOrEven===e&&t.pagePosition===i));if(s){return s}s=this.pageArea.children.find((t=>t.oddOrEven==="any"&&t.pagePosition===i));if(s){return s}s=this.pageArea.children.find((t=>t.oddOrEven==="any"&&t.pagePosition==="any"));if(s){return s}return this.pageArea.children[0]}}class ne extends n.XFAObject{constructor(t){super(f,"para",true);this.hAlign=(0,o.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=t.id||"";this.lineHeight=t.lineHeight?(0,o.getMeasurement)(t.lineHeight,"0pt"):"";this.marginLeft=t.marginLeft?(0,o.getMeasurement)(t.marginLeft,"0pt"):"";this.marginRight=t.marginRight?(0,o.getMeasurement)(t.marginRight,"0pt"):"";this.orphans=(0,o.getInteger)({data:t.orphans,defaultValue:0,validate:t=>t>=0});this.preserve=t.preserve||"";this.radixOffset=t.radixOffset?(0,o.getMeasurement)(t.radixOffset,"0pt"):"";this.spaceAbove=t.spaceAbove?(0,o.getMeasurement)(t.spaceAbove,"0pt"):"";this.spaceBelow=t.spaceBelow?(0,o.getMeasurement)(t.spaceBelow,"0pt"):"";this.tabDefault=t.tabDefault?(0,o.getMeasurement)(this.tabDefault):"";this.tabStops=(t.tabStops||"").trim().split(/\s+/).map(((t,e)=>e%2===1?(0,o.getMeasurement)(t):t));this.textIndent=t.textIndent?(0,o.getMeasurement)(t.textIndent,"0pt"):"";this.use=t.use||"";this.usehref=t.usehref||"";this.vAlign=(0,o.getStringOption)(t.vAlign,["top","bottom","middle"]);this.widows=(0,o.getInteger)({data:t.widows,defaultValue:0,validate:t=>t>=0});this.hyphenation=null}[n.$toStyle](){const t=(0,a.toStyle)(this,"hAlign");if(this.marginLeft!==""){t.paddingLeft=(0,a.measureToString)(this.marginLeft)}if(this.marginRight!==""){t.paddingight=(0,a.measureToString)(this.marginRight)}if(this.spaceAbove!==""){t.paddingTop=(0,a.measureToString)(this.spaceAbove)}if(this.spaceBelow!==""){t.paddingBottom=(0,a.measureToString)(this.spaceBelow)}if(this.textIndent!==""){t.textIndent=(0,a.measureToString)(this.textIndent);(0,a.fixTextIndent)(t)}if(this.lineHeight>0){t.lineHeight=(0,a.measureToString)(this.lineHeight)}if(this.tabDefault!==""){t.tabSize=(0,a.measureToString)(this.tabDefault)}if(this.hyphenatation){Object.assign(t,this.hyphenatation[n.$toStyle]())}return t}}class se extends n.XFAObject{constructor(t){super(f,"passwordEdit",true);this.hScrollPolicy=(0,o.getStringOption)(t.hScrollPolicy,["auto","off","on"]);this.id=t.id||"";this.passwordChar=t.passwordChar||"*";this.use=t.use||"";this.usehref=t.usehref||"";this.border=null;this.extras=null;this.margin=null}}class re extends n.XFAObject{constructor(t){super(f,"pattern",true);this.id=t.id||"";this.type=(0,o.getStringOption)(t.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]);this.use=t.use||"";this.usehref=t.usehref||"";this.color=null;this.extras=null}[n.$toStyle](t){t=t?t[n.$toStyle]():"#FFFFFF";const e=this.color?this.color[n.$toStyle]():"#000000";const i=5;const s="repeating-linear-gradient";const r=`${t},${t} ${i}px,${e} ${i}px,${e} ${2*i}px`;switch(this.type){case"crossHatch":return`${s}(to top,${r}) ${s}(to right,${r})`;case"crossDiagonal":return`${s}(45deg,${r}) ${s}(-45deg,${r})`;case"diagonalLeft":return`${s}(45deg,${r})`;case"diagonalRight":return`${s}(-45deg,${r})`;case"horizontal":return`${s}(to top,${r})`;case"vertical":return`${s}(to right,${r})`}return""}}class ae extends n.StringObject{constructor(t){super(f,"picture");this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||""}}class oe extends n.XFAObject{constructor(t){super(f,"proto",true);this.appearanceFilter=new n.XFAObjectArray;this.arc=new n.XFAObjectArray;this.area=new n.XFAObjectArray;this.assist=new n.XFAObjectArray;this.barcode=new n.XFAObjectArray;this.bindItems=new n.XFAObjectArray;this.bookend=new n.XFAObjectArray;this.boolean=new n.XFAObjectArray;this.border=new n.XFAObjectArray;this.break=new n.XFAObjectArray;this.breakAfter=new n.XFAObjectArray;this.breakBefore=new n.XFAObjectArray;this.button=new n.XFAObjectArray;this.calculate=new n.XFAObjectArray;this.caption=new n.XFAObjectArray;this.certificate=new n.XFAObjectArray;this.certificates=new n.XFAObjectArray;this.checkButton=new n.XFAObjectArray;this.choiceList=new n.XFAObjectArray;this.color=new n.XFAObjectArray;this.comb=new n.XFAObjectArray;this.connect=new n.XFAObjectArray;this.contentArea=new n.XFAObjectArray;this.corner=new n.XFAObjectArray;this.date=new n.XFAObjectArray;this.dateTime=new n.XFAObjectArray;this.dateTimeEdit=new n.XFAObjectArray;this.decimal=new n.XFAObjectArray;this.defaultUi=new n.XFAObjectArray;this.desc=new n.XFAObjectArray;this.digestMethod=new n.XFAObjectArray;this.digestMethods=new n.XFAObjectArray;this.draw=new n.XFAObjectArray;this.edge=new n.XFAObjectArray;this.encoding=new n.XFAObjectArray;this.encodings=new n.XFAObjectArray;this.encrypt=new n.XFAObjectArray;this.encryptData=new n.XFAObjectArray;this.encryption=new n.XFAObjectArray;this.encryptionMethod=new n.XFAObjectArray;this.encryptionMethods=new n.XFAObjectArray;this.event=new n.XFAObjectArray;this.exData=new n.XFAObjectArray;this.exObject=new n.XFAObjectArray;this.exclGroup=new n.XFAObjectArray;this.execute=new n.XFAObjectArray;this.extras=new n.XFAObjectArray;this.field=new n.XFAObjectArray;this.fill=new n.XFAObjectArray;this.filter=new n.XFAObjectArray;this.float=new n.XFAObjectArray;this.font=new n.XFAObjectArray;this.format=new n.XFAObjectArray;this.handler=new n.XFAObjectArray;this.hyphenation=new n.XFAObjectArray;this.image=new n.XFAObjectArray;this.imageEdit=new n.XFAObjectArray;this.integer=new n.XFAObjectArray;this.issuers=new n.XFAObjectArray;this.items=new n.XFAObjectArray;this.keep=new n.XFAObjectArray;this.keyUsage=new n.XFAObjectArray;this.line=new n.XFAObjectArray;this.linear=new n.XFAObjectArray;this.lockDocument=new n.XFAObjectArray;this.manifest=new n.XFAObjectArray;this.margin=new n.XFAObjectArray;this.mdp=new n.XFAObjectArray;this.medium=new n.XFAObjectArray;this.message=new n.XFAObjectArray;this.numericEdit=new n.XFAObjectArray;this.occur=new n.XFAObjectArray;this.oid=new n.XFAObjectArray;this.oids=new n.XFAObjectArray;this.overflow=new n.XFAObjectArray;this.pageArea=new n.XFAObjectArray;this.pageSet=new n.XFAObjectArray;this.para=new n.XFAObjectArray;this.passwordEdit=new n.XFAObjectArray;this.pattern=new n.XFAObjectArray;this.picture=new n.XFAObjectArray;this.radial=new n.XFAObjectArray;this.reason=new n.XFAObjectArray;this.reasons=new n.XFAObjectArray;this.rectangle=new n.XFAObjectArray;this.ref=new n.XFAObjectArray;this.script=new n.XFAObjectArray;this.setProperty=new n.XFAObjectArray;this.signData=new n.XFAObjectArray;this.signature=new n.XFAObjectArray;this.signing=new n.XFAObjectArray;this.solid=new n.XFAObjectArray;this.speak=new n.XFAObjectArray;this.stipple=new n.XFAObjectArray;this.subform=new n.XFAObjectArray;this.subformSet=new n.XFAObjectArray;this.subjectDN=new n.XFAObjectArray;this.subjectDNs=new n.XFAObjectArray;this.submit=new n.XFAObjectArray;this.text=new n.XFAObjectArray;this.textEdit=new n.XFAObjectArray;this.time=new n.XFAObjectArray;this.timeStamp=new n.XFAObjectArray;this.toolTip=new n.XFAObjectArray;this.traversal=new n.XFAObjectArray;this.traverse=new n.XFAObjectArray;this.ui=new n.XFAObjectArray;this.validate=new n.XFAObjectArray;this.value=new n.XFAObjectArray;this.variables=new n.XFAObjectArray}}class ce extends n.XFAObject{constructor(t){super(f,"radial",true);this.id=t.id||"";this.type=(0,o.getStringOption)(t.type,["toEdge","toCenter"]);this.use=t.use||"";this.usehref=t.usehref||"";this.color=null;this.extras=null}[n.$toStyle](t){t=t?t[n.$toStyle]():"#FFFFFF";const e=this.color?this.color[n.$toStyle]():"#000000";const i=this.type==="toEdge"?`${t},${e}`:`${e},${t}`;return`radial-gradient(circle at center, ${i})`}}class le extends n.StringObject{constructor(t){super(f,"reason");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class he extends n.XFAObject{constructor(t){super(f,"reasons",true);this.id=t.id||"";this.type=(0,o.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||"";this.reason=new n.XFAObjectArray}}class ue extends n.XFAObject{constructor(t){super(f,"rectangle",true);this.hand=(0,o.getStringOption)(t.hand,["even","left","right"]);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.corner=new n.XFAObjectArray(4);this.edge=new n.XFAObjectArray(4);this.fill=null}[n.$toHTML](){const t=this.edge.children.length?this.edge.children[0]:new dt({});const e=t[n.$toStyle]();const i=Object.create(null);if(this.fill&&this.fill.presence==="visible"){Object.assign(i,this.fill[n.$toStyle]())}else{i.fill="transparent"}i.strokeWidth=(0,a.measureToString)(t.presence==="visible"?t.thickness:0);i.stroke=e.color;const s=this.corner.children.length?this.corner.children[0]:new nt({});const r=s[n.$toStyle]();const c={name:"rect",attributes:{xmlns:d,width:"100%",height:"100%",x:0,y:0,rx:r.radius,ry:r.radius,style:i}};const l={name:"svg",children:[c],attributes:{xmlns:d,style:{overflow:"visible"},width:"100%",height:"100%"}};const h=this[n.$getParent]()[n.$getParent]();if(A(h)){return o.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[l]})}l.attributes.style.position="absolute";return o.HTMLResult.success(l)}}class fe extends n.StringObject{constructor(t){super(f,"ref");this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||""}}class de extends n.StringObject{constructor(t){super(f,"script");this.binding=t.binding||"";this.contentType=t.contentType||"";this.id=t.id||"";this.name=t.name||"";this.runAt=(0,o.getStringOption)(t.runAt,["client","both","server"]);this.use=t.use||"";this.usehref=t.usehref||""}}class pe extends n.XFAObject{constructor(t){super(f,"setProperty");this.connection=t.connection||"";this.ref=t.ref||"";this.target=t.target||""}}e.SetProperty=pe;class me extends n.XFAObject{constructor(t){super(f,"signData",true);this.id=t.id||"";this.operation=(0,o.getStringOption)(t.operation,["sign","clear","verify"]);this.ref=t.ref||"";this.target=t.target||"";this.use=t.use||"";this.usehref=t.usehref||"";this.filter=null;this.manifest=null}}class ge extends n.XFAObject{constructor(t){super(f,"signature",true);this.id=t.id||"";this.type=(0,o.getStringOption)(t.type,["PDF1.3","PDF1.6"]);this.use=t.use||"";this.usehref=t.usehref||"";this.border=null;this.extras=null;this.filter=null;this.manifest=null;this.margin=null}}class be extends n.XFAObject{constructor(t){super(f,"signing",true);this.id=t.id||"";this.type=(0,o.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||"";this.certificate=new n.XFAObjectArray}}class ve extends n.XFAObject{constructor(t){super(f,"solid",true);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null}[n.$toStyle](t){return t?t[n.$toStyle]():"#FFFFFF"}}class we extends n.StringObject{constructor(t){super(f,"speak");this.disable=(0,o.getInteger)({data:t.disable,defaultValue:0,validate:t=>t===1});this.id=t.id||"";this.priority=(0,o.getStringOption)(t.priority,["custom","caption","name","toolTip"]);this.rid=t.rid||"";this.use=t.use||"";this.usehref=t.usehref||""}}class ye extends n.XFAObject{constructor(t){super(f,"stipple",true);this.id=t.id||"";this.rate=(0,o.getInteger)({data:t.rate,defaultValue:50,validate:t=>t>=0&&t<=100});this.use=t.use||"";this.usehref=t.usehref||"";this.color=null;this.extras=null}[n.$toStyle](t){const e=this.rate/100;return c.Util.makeHexColor(Math.round(t.value.r*(1-e)+this.value.r*e),Math.round(t.value.g*(1-e)+this.value.g*e),Math.round(t.value.b*(1-e)+this.value.b*e))}}class Ae extends n.XFAObject{constructor(t){super(f,"subform",true);this.access=(0,o.getStringOption)(t.access,["open","nonInteractive","protected","readOnly"]);this.allowMacro=(0,o.getInteger)({data:t.allowMacro,defaultValue:0,validate:t=>t===1});this.anchorType=(0,o.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);this.colSpan=(0,o.getInteger)({data:t.colSpan,defaultValue:1,validate:t=>t>=1||t===-1});this.columnWidths=(t.columnWidths||"").trim().split(/\s+/).map((t=>t==="-1"?-1:(0,o.getMeasurement)(t)));this.h=t.h?(0,o.getMeasurement)(t.h):"";this.hAlign=(0,o.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=t.id||"";this.layout=(0,o.getStringOption)(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);this.locale=t.locale||"";this.maxH=(0,o.getMeasurement)(t.maxH,"0pt");this.maxW=(0,o.getMeasurement)(t.maxW,"0pt");this.mergeMode=(0,o.getStringOption)(t.mergeMode,["consumeData","matchTemplate"]);this.minH=(0,o.getMeasurement)(t.minH,"0pt");this.minW=(0,o.getMeasurement)(t.minW,"0pt");this.name=t.name||"";this.presence=(0,o.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,o.getRelevant)(t.relevant);this.restoreState=(0,o.getStringOption)(t.restoreState,["manual","auto"]);this.scope=(0,o.getStringOption)(t.scope,["name","none"]);this.use=t.use||"";this.usehref=t.usehref||"";this.w=t.w?(0,o.getMeasurement)(t.w):"";this.x=(0,o.getMeasurement)(t.x,"0pt");this.y=(0,o.getMeasurement)(t.y,"0pt");this.assist=null;this.bind=null;this.bookend=null;this.border=null;this.break=null;this.calculate=null;this.desc=null;this.extras=null;this.keep=null;this.margin=null;this.occur=null;this.overflow=null;this.pageSet=null;this.para=null;this.traversal=null;this.validate=null;this.variables=null;this.area=new n.XFAObjectArray;this.breakAfter=new n.XFAObjectArray;this.breakBefore=new n.XFAObjectArray;this.connect=new n.XFAObjectArray;this.draw=new n.XFAObjectArray;this.event=new n.XFAObjectArray;this.exObject=new n.XFAObjectArray;this.exclGroup=new n.XFAObjectArray;this.field=new n.XFAObjectArray;this.proto=new n.XFAObjectArray;this.setProperty=new n.XFAObjectArray;this.subform=new n.XFAObjectArray;this.subformSet=new n.XFAObjectArray}[n.$getSubformParent](){const t=this[n.$getParent]();if(t instanceof ke){return t[n.$getSubformParent]()}return t}[n.$isBindable](){return true}[n.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&this[n.$extra].attempt===0&&this[n.$extra].numberInLine>0||this[n.$getParent]()[n.$isThereMoreWidth]()}*[n.$getContainedChildren](){yield*x(this)}[n.$flushHTML](){return(0,r.flushHTML)(this)}[n.$addHTML](t,e){(0,r.addHTML)(this,t,e)}[n.$getAvailableSpace](){return(0,r.getAvailableSpace)(this)}[n.$isSplittable](){const t=this[n.$getSubformParent]();if(!t[n.$isSplittable]()){return false}if(this[n.$extra]._isSplittable!==undefined){return this[n.$extra]._isSplittable}if(this.layout==="position"||this.layout.includes("row")){this[n.$extra]._isSplittable=false;return false}if(this.keep&&this.keep.intact!=="none"){this[n.$extra]._isSplittable=false;return false}if(t.layout&&t.layout.endsWith("-tb")&&t[n.$extra].numberInLine!==0){return false}this[n.$extra]._isSplittable=true;return true}[n.$toHTML](t){M(this);if(this.break){if(this.break.after!=="auto"||this.break.afterTarget!==""){const t=new W({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});t[n.$globalData]=this[n.$globalData];this[n.$appendChild](t);this.breakAfter.push(t)}if(this.break.before!=="auto"||this.break.beforeTarget!==""){const t=new H({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});t[n.$globalData]=this[n.$globalData];this[n.$appendChild](t);this.breakBefore.push(t)}if(this.break.overflowTarget!==""){const t=new te({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});t[n.$globalData]=this[n.$globalData];this[n.$appendChild](t);this.overflow.push(t)}this[n.$removeChild](this.break);this.break=null}if(this.presence==="hidden"||this.presence==="inactive"){return o.HTMLResult.EMPTY}if(this.breakBefore.children.length>1||this.breakAfter.children.length>1){(0,c.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug.")}if(this.breakBefore.children.length>=1){const t=this.breakBefore.children[0];if(I(t)){return o.HTMLResult.breakNode(t)}}if(this[n.$extra]&&this[n.$extra].afterBreakAfter){return o.HTMLResult.EMPTY}(0,a.fixDimensions)(this);const e=[];const i={id:this[n.$uid],class:[]};(0,a.setAccess)(this,i.class);if(!this[n.$extra]){this[n.$extra]=Object.create(null)}Object.assign(this[n.$extra],{children:e,line:null,attributes:i,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||Infinity,t.width),height:Math.min(this.h||Infinity,t.height)},width:0,height:0,prevHeight:0,currentWidth:0});const s=this[n.$getTemplateRoot]();const l=s[n.$extra].noLayoutFailure;const h=this[n.$isSplittable]();if(!h){O(this)}if(!(0,r.checkDimensions)(this,t)){return o.HTMLResult.FAILURE}const u=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){const t=this[n.$getSubformParent]().columnWidths;if(Array.isArray(t)&&t.length>0){this[n.$extra].columnWidths=t;this[n.$extra].currentColumn=0}}const f=(0,a.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign");const d=["xfaSubform"];const m=(0,a.layoutClass)(this);if(m){d.push(m)}i.style=f;i.class=d;if(this.name){i.xfaName=this.name}if(this.overflow){const e=this.overflow[n.$getExtra]();if(e.addLeader){e.addLeader=false;F(this,e.leader,t)}}this[n.$pushPara]();const g=this.layout==="lr-tb"||this.layout==="rl-tb";const b=g?p:1;for(;this[n.$extra].attempt<b;this[n.$extra].attempt++){if(g&&this[n.$extra].attempt===p-1){this[n.$extra].numberInLine=0}const t=this[n.$childrenToHTML]({filter:u,include:true});if(t.success){break}if(t.isBreak()){this[n.$popPara]();return t}if(g&&this[n.$extra].attempt===0&&this[n.$extra].numberInLine===0&&!s[n.$extra].noLayoutFailure){this[n.$extra].attempt=b;break}}this[n.$popPara]();if(!h){T(this)}s[n.$extra].noLayoutFailure=l;if(this[n.$extra].attempt===b){if(this.overflow){this[n.$getTemplateRoot]()[n.$extra].overflowNode=this.overflow}if(!h){delete this[n.$extra]}return o.HTMLResult.FAILURE}if(this.overflow){const e=this.overflow[n.$getExtra]();if(e.addTrailer){e.addTrailer=false;F(this,e.trailer,t)}}let v=0;let w=0;if(this.margin){v=this.margin.leftInset+this.margin.rightInset;w=this.margin.topInset+this.margin.bottomInset}const y=Math.max(this[n.$extra].width+v,this.w||0);const A=Math.max(this[n.$extra].height+w,this.h||0);const k=[this.x,this.y,y,A];if(this.w===""){f.width=(0,a.measureToString)(y)}if(this.h===""){f.height=(0,a.measureToString)(A)}if((f.width==="0px"||f.height==="0px")&&e.length===0){return o.HTMLResult.EMPTY}const x={name:"div",attributes:i,children:e};_(this,i);const S=o.HTMLResult.success((0,a.createWrapper)(this,x),k);if(this.breakAfter.children.length>=1){const t=this.breakAfter.children[0];if(I(t)){this[n.$extra].afterBreakAfter=S;return o.HTMLResult.breakNode(t)}}delete this[n.$extra];return S}}class ke extends n.XFAObject{constructor(t){super(f,"subformSet",true);this.id=t.id||"";this.name=t.name||"";this.relation=(0,o.getStringOption)(t.relation,["ordered","choice","unordered"]);this.relevant=(0,o.getRelevant)(t.relevant);this.use=t.use||"";this.usehref=t.usehref||"";this.bookend=null;this.break=null;this.desc=null;this.extras=null;this.occur=null;this.overflow=null;this.breakAfter=new n.XFAObjectArray;this.breakBefore=new n.XFAObjectArray;this.subform=new n.XFAObjectArray;this.subformSet=new n.XFAObjectArray}*[n.$getContainedChildren](){yield*x(this)}[n.$getSubformParent](){let t=this[n.$getParent]();while(!(t instanceof Ae)){t=t[n.$getParent]()}return t}[n.$isBindable](){return true}}class xe extends n.ContentObject{constructor(t){super(f,"subjectDN");this.delimiter=t.delimiter||",";this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}[n.$finalize](){this[n.$content]=new Map(this[n.$content].split(this.delimiter).map((t=>{t=t.split("=",2);t[0]=t[0].trim();return t})))}}class Se extends n.XFAObject{constructor(t){super(f,"subjectDNs",true);this.id=t.id||"";this.type=(0,o.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||"";this.subjectDN=new n.XFAObjectArray}}class Me extends n.XFAObject{constructor(t){super(f,"submit",true);this.embedPDF=(0,o.getInteger)({data:t.embedPDF,defaultValue:0,validate:t=>t===1});this.format=(0,o.getStringOption)(t.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]);this.id=t.id||"";this.target=t.target||"";this.textEncoding=(0,o.getKeyword)({data:t.textEncoding?t.textEncoding.toLowerCase():"",defaultValue:"",validate:t=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(t)||t.match(/iso-8859-\d{2}/)});this.use=t.use||"";this.usehref=t.usehref||"";this.xdpContent=t.xdpContent||"";this.encrypt=null;this.encryptData=new n.XFAObjectArray;this.signData=new n.XFAObjectArray}}class _e extends n.XFAObject{constructor(t){super(f,"template",true);this.baseProfile=(0,o.getStringOption)(t.baseProfile,["full","interactiveForms"]);this.extras=null;this.subform=new n.XFAObjectArray}[n.$finalize](){if(this.subform.children.length===0){(0,c.warn)("XFA - No subforms in template node.")}if(this.subform.children.length>=2){(0,c.warn)("XFA - Several subforms in template node: please file a bug.")}this[n.$tabIndex]=g}[n.$isSplittable](){return true}[n.$searchNode](t,e){if(t.startsWith("#")){return[this[n.$ids].get(t.slice(1))]}return(0,u.searchNode)(this,e,t,true,true)}*[n.$toPages](){if(!this.subform.children.length){return o.HTMLResult.success({name:"div",children:[]})}this[n.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:false,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};const t=this.subform.children[0];t.pageSet[n.$cleanPage]();const e=t.pageSet.pageArea.children;const i={name:"div",children:[]};let s=null;let r=null;let a=null;if(t.breakBefore.children.length>=1){r=t.breakBefore.children[0];a=r.target}else if(t.subform.children.length>=1&&t.subform.children[0].breakBefore.children.length>=1){r=t.subform.children[0].breakBefore.children[0];a=r.target}else if(t.break&&t.break.beforeTarget){r=t.break;a=r.beforeTarget}else if(t.subform.children.length>=1&&t.subform.children[0].break&&t.subform.children[0].break.beforeTarget){r=t.subform.children[0].break;a=r.beforeTarget}if(r){const t=this[n.$searchNode](a,r[n.$getParent]());if(t instanceof ee){s=t;r[n.$extra]={}}}if(!s){s=e[0]}s[n.$extra]={numberOfUse:1};const l=s[n.$getParent]();l[n.$extra]={numberOfUse:1,pageIndex:l.pageArea.children.indexOf(s),pageSetIndex:0};let h;let u=null;let f=null;let d=true;let p=0;let g=0;while(true){if(!d){i.children.pop();if(++p===m){(0,c.warn)("XFA - Something goes wrong: please file a bug.");return i}}else{p=0}h=null;this[n.$extra].currentPageArea=s;const e=s[n.$toHTML]().html;i.children.push(e);if(u){this[n.$extra].noLayoutFailure=true;e.children.push(u[n.$toHTML](s[n.$extra].space).html);u=null}if(f){this[n.$extra].noLayoutFailure=true;e.children.push(f[n.$toHTML](s[n.$extra].space).html);f=null}const r=s.contentArea.children;const a=e.children.filter((t=>t.attributes.class.includes("xfaContentarea")));d=false;this[n.$extra].firstUnsplittable=null;this[n.$extra].noLayoutFailure=false;const o=e=>{const i=t[n.$flushHTML]();if(i){d=d||i.children&&i.children.length!==0;a[e].children.push(i)}};for(let e=g,s=r.length;e<s;e++){const s=this[n.$extra].currentContentArea=r[e];const c={width:s.w,height:s.h};g=0;if(u){a[e].children.push(u[n.$toHTML](c).html);u=null}if(f){a[e].children.push(f[n.$toHTML](c).html);f=null}const l=t[n.$toHTML](c);if(l.success){if(l.html){d=d||l.html.children&&l.html.children.length!==0;a[e].children.push(l.html)}else if(!d&&i.children.length>1){i.children.pop()}return i}if(l.isBreak()){const t=l.breakNode;o(e);if(t.targetType==="auto"){continue}if(t.leader){u=this[n.$searchNode](t.leader,t[n.$getParent]());u=u?u[0]:null}if(t.trailer){f=this[n.$searchNode](t.trailer,t[n.$getParent]());f=f?f[0]:null}if(t.targetType==="pageArea"){h=t[n.$extra].target;e=Infinity}else if(!t[n.$extra].target){e=t[n.$extra].index}else{h=t[n.$extra].target;g=t[n.$extra].index+1;e=Infinity}continue}if(this[n.$extra].overflowNode){const t=this[n.$extra].overflowNode;this[n.$extra].overflowNode=null;const i=t[n.$getExtra]();const s=i.target;i.addLeader=i.leader!==null;i.addTrailer=i.trailer!==null;o(e);const a=e;e=Infinity;if(s instanceof ee){h=s}else if(s instanceof it){const t=r.indexOf(s);if(t!==-1){if(t>a){e=t-1}else{g=t}}else{h=s[n.$getParent]();g=h.contentArea.children.indexOf(s)}}continue}o(e)}this[n.$extra].pageNumber+=1;if(h){if(h[n.$isUsable]()){h[n.$extra].numberOfUse+=1}else{h=null}}s=h||s[n.$getNextPage]();yield null}}}e.Template=_e;class Ee extends n.ContentObject{constructor(t){super(f,"text");this.id=t.id||"";this.maxChars=(0,o.getInteger)({data:t.maxChars,defaultValue:0,validate:t=>t>=0});this.name=t.name||"";this.rid=t.rid||"";this.use=t.use||"";this.usehref=t.usehref||""}[n.$acceptWhitespace](){return true}[n.$onChild](t){if(t[n.$namespaceId]===s.NamespaceIds.xhtml.id){this[n.$content]=t;return true}(0,c.warn)(`XFA - Invalid content in Text: ${t[n.$nodeName]}.`);return false}[n.$onText](t){if(this[n.$content]instanceof n.XFAObject){return}super[n.$onText](t)}[n.$finalize](){if(typeof this[n.$content]==="string"){this[n.$content]=this[n.$content].replace(/\r\n/g,"\n")}}[n.$getExtra](){if(typeof this[n.$content]==="string"){return this[n.$content].split(/[\u2029\u2028\n]/).reduce(((t,e)=>{if(e){t.push(e)}return t}),[]).join("\n")}return this[n.$content][n.$text]()}[n.$toHTML](t){if(typeof this[n.$content]==="string"){const t=C(this[n.$content]).html;if(this[n.$content].includes("\u2029")){t.name="div";t.children=[];this[n.$content].split("\u2029").map((t=>t.split(/[\u2028\n]/).reduce(((t,e)=>{t.push({name:"span",value:e},{name:"br"});return t}),[]))).forEach((e=>{t.children.push({name:"p",children:e})}))}else if(/[\u2028\n]/.test(this[n.$content])){t.name="div";t.children=[];this[n.$content].split(/[\u2028\n]/).forEach((e=>{t.children.push({name:"span",value:e},{name:"br"})}))}return o.HTMLResult.success(t)}return this[n.$content][n.$toHTML](t)}}e.Text=Ee;class Ce extends n.XFAObject{constructor(t){super(f,"textEdit",true);this.allowRichText=(0,o.getInteger)({data:t.allowRichText,defaultValue:0,validate:t=>t===1});this.hScrollPolicy=(0,o.getStringOption)(t.hScrollPolicy,["auto","off","on"]);this.id=t.id||"";this.multiLine=(0,o.getInteger)({data:t.multiLine,defaultValue:"",validate:t=>t===0||t===1});this.use=t.use||"";this.usehref=t.usehref||"";this.vScrollPolicy=(0,o.getStringOption)(t.vScrollPolicy,["auto","off","on"]);this.border=null;this.comb=null;this.extras=null;this.margin=null}[n.$toHTML](t){const e=(0,a.toStyle)(this,"border","font","margin");let i;const s=this[n.$getParent]()[n.$getParent]();if(this.multiLine===""){this.multiLine=s instanceof ft?1:0}if(this.multiLine===1){i={name:"textarea",attributes:{dataId:s[n.$data]&&s[n.$data][n.$uid]||s[n.$uid],fieldId:s[n.$uid],class:["xfaTextfield"],style:e,"aria-label":E(s),"aria-required":false}}}else{i={name:"input",attributes:{type:"text",dataId:s[n.$data]&&s[n.$data][n.$uid]||s[n.$uid],fieldId:s[n.$uid],class:["xfaTextfield"],style:e,"aria-label":E(s),"aria-required":false}}}if(S(s)){i.attributes["aria-required"]=true;i.attributes.required=true}return o.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[i]})}}class Oe extends n.StringObject{constructor(t){super(f,"time");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}[n.$finalize](){const t=this[n.$content].trim();this[n.$content]=t?new Date(t):null}[n.$toHTML](t){return C(this[n.$content]?this[n.$content].toString():"")}}class Te extends n.XFAObject{constructor(t){super(f,"timeStamp");this.id=t.id||"";this.server=t.server||"";this.type=(0,o.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||""}}class Ie extends n.StringObject{constructor(t){super(f,"toolTip");this.id=t.id||"";this.rid=t.rid||"";this.use=t.use||"";this.usehref=t.usehref||""}}class Fe extends n.XFAObject{constructor(t){super(f,"traversal",true);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.traverse=new n.XFAObjectArray}}class Pe extends n.XFAObject{constructor(t){super(f,"traverse",true);this.id=t.id||"";this.operation=(0,o.getStringOption)(t.operation,["next","back","down","first","left","right","up"]);this.ref=t.ref||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.script=null}get name(){return this.operation}[n.$isTransparent](){return false}}class De extends n.XFAObject{constructor(t){super(f,"ui",true);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.picture=null;this.barcode=null;this.button=null;this.checkButton=null;this.choiceList=null;this.dateTimeEdit=null;this.defaultUi=null;this.imageEdit=null;this.numericEdit=null;this.passwordEdit=null;this.signature=null;this.textEdit=null}[n.$getExtra](){if(this[n.$extra]===undefined){for(const t of Object.getOwnPropertyNames(this)){if(t==="extras"||t==="picture"){continue}const e=this[t];if(!(e instanceof n.XFAObject)){continue}this[n.$extra]=e;return e}this[n.$extra]=null}return this[n.$extra]}[n.$toHTML](t){const e=this[n.$getExtra]();if(e){return e[n.$toHTML](t)}return o.HTMLResult.EMPTY}}class Re extends n.XFAObject{constructor(t){super(f,"validate",true);this.formatTest=(0,o.getStringOption)(t.formatTest,["warning","disabled","error"]);this.id=t.id||"";this.nullTest=(0,o.getStringOption)(t.nullTest,["disabled","error","warning"]);this.scriptTest=(0,o.getStringOption)(t.scriptTest,["error","disabled","warning"]);this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.message=null;this.picture=null;this.script=null}}class Ne extends n.XFAObject{constructor(t){super(f,"value",true);this.id=t.id||"";this.override=(0,o.getInteger)({data:t.override,defaultValue:0,validate:t=>t===1});this.relevant=(0,o.getRelevant)(t.relevant);this.use=t.use||"";this.usehref=t.usehref||"";this.arc=null;this.boolean=null;this.date=null;this.dateTime=null;this.decimal=null;this.exData=null;this.float=null;this.image=null;this.integer=null;this.line=null;this.rectangle=null;this.text=null;this.time=null}[n.$setValue](t){const e=this[n.$getParent]();if(e instanceof Et){if(e.ui&&e.ui.imageEdit){if(!this.image){this.image=new Rt({});this[n.$appendChild](this.image)}this.image[n.$content]=t[n.$content];return}}const i=t[n.$nodeName];if(this[i]!==null){this[i][n.$content]=t[n.$content];return}for(const t of Object.getOwnPropertyNames(this)){const e=this[t];if(e instanceof n.XFAObject){this[t]=null;this[n.$removeChild](e)}}this[t[n.$nodeName]]=t;this[n.$appendChild](t)}[n.$text](){if(this.exData){if(typeof this.exData[n.$content]==="string"){return this.exData[n.$content].trim()}return this.exData[n.$content][n.$text]().trim()}for(const t of Object.getOwnPropertyNames(this)){if(t==="image"){continue}const e=this[t];if(e instanceof n.XFAObject){return(e[n.$content]||"").toString().trim()}}return null}[n.$toHTML](t){for(const e of Object.getOwnPropertyNames(this)){const i=this[e];if(!(i instanceof n.XFAObject)){continue}return i[n.$toHTML](t)}return o.HTMLResult.EMPTY}}e.Value=Ne;class je extends n.XFAObject{constructor(t){super(f,"variables",true);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.boolean=new n.XFAObjectArray;this.date=new n.XFAObjectArray;this.dateTime=new n.XFAObjectArray;this.decimal=new n.XFAObjectArray;this.exData=new n.XFAObjectArray;this.float=new n.XFAObjectArray;this.image=new n.XFAObjectArray;this.integer=new n.XFAObjectArray;this.manifest=new n.XFAObjectArray;this.script=new n.XFAObjectArray;this.text=new n.XFAObjectArray;this.time=new n.XFAObjectArray}[n.$isTransparent](){return true}}class Le{static[s.$buildXFAObject](t,e){if(Le.hasOwnProperty(t)){const i=Le[t](e);i[n.$setSetAttributes](e);return i}return undefined}static appearanceFilter(t){return new P(t)}static arc(t){return new D(t)}static area(t){return new R(t)}static assist(t){return new N(t)}static barcode(t){return new j(t)}static bind(t){return new L(t)}static bindItems(t){return new U(t)}static bookend(t){return new B(t)}static boolean(t){return new $(t)}static border(t){return new q(t)}static break(t){return new G(t)}static breakAfter(t){return new W(t)}static breakBefore(t){return new H(t)}static button(t){return new z(t)}static calculate(t){return new V(t)}static caption(t){return new X(t)}static certificate(t){return new K(t)}static certificates(t){return new Y(t)}static checkButton(t){return new J(t)}static choiceList(t){return new Q(t)}static color(t){return new Z(t)}static comb(t){return new tt(t)}static connect(t){return new et(t)}static contentArea(t){return new it(t)}static corner(t){return new nt(t)}static date(t){return new st(t)}static dateTime(t){return new rt(t)}static dateTimeEdit(t){return new at(t)}static decimal(t){return new ot(t)}static defaultUi(t){return new ct(t)}static desc(t){return new lt(t)}static digestMethod(t){return new ht(t)}static digestMethods(t){return new ut(t)}static draw(t){return new ft(t)}static edge(t){return new dt(t)}static encoding(t){return new pt(t)}static encodings(t){return new mt(t)}static encrypt(t){return new gt(t)}static encryptData(t){return new bt(t)}static encryption(t){return new vt(t)}static encryptionMethod(t){return new wt(t)}static encryptionMethods(t){return new yt(t)}static event(t){return new At(t)}static exData(t){return new kt(t)}static exObject(t){return new xt(t)}static exclGroup(t){return new St(t)}static execute(t){return new Mt(t)}static extras(t){return new _t(t)}static field(t){return new Et(t)}static fill(t){return new Ct(t)}static filter(t){return new Ot(t)}static float(t){return new Tt(t)}static font(t){return new It(t)}static format(t){return new Ft(t)}static handler(t){return new Pt(t)}static hyphenation(t){return new Dt(t)}static image(t){return new Rt(t)}static imageEdit(t){return new Nt(t)}static integer(t){return new jt(t)}static issuers(t){return new Lt(t)}static items(t){return new Ut(t)}static keep(t){return new Bt(t)}static keyUsage(t){return new $t(t)}static line(t){return new qt(t)}static linear(t){return new Gt(t)}static lockDocument(t){return new Wt(t)}static manifest(t){return new Ht(t)}static margin(t){return new zt(t)}static mdp(t){return new Vt(t)}static medium(t){return new Xt(t)}static message(t){return new Kt(t)}static numericEdit(t){return new Yt(t)}static occur(t){return new Jt(t)}static oid(t){return new Qt(t)}static oids(t){return new Zt(t)}static overflow(t){return new te(t)}static pageArea(t){return new ee(t)}static pageSet(t){return new ie(t)}static para(t){return new ne(t)}static passwordEdit(t){return new se(t)}static pattern(t){return new re(t)}static picture(t){return new ae(t)}static proto(t){return new oe(t)}static radial(t){return new ce(t)}static reason(t){return new le(t)}static reasons(t){return new he(t)}static rectangle(t){return new ue(t)}static ref(t){return new fe(t)}static script(t){return new de(t)}static setProperty(t){return new pe(t)}static signData(t){return new me(t)}static signature(t){return new ge(t)}static signing(t){return new be(t)}static solid(t){return new ve(t)}static speak(t){return new we(t)}static stipple(t){return new ye(t)}static subform(t){return new Ae(t)}static subformSet(t){return new ke(t)}static subjectDN(t){return new xe(t)}static subjectDNs(t){return new Se(t)}static submit(t){return new Me(t)}static template(t){return new _e(t)}static text(t){return new Ee(t)}static textEdit(t){return new Ce(t)}static time(t){return new Oe(t)}static timeStamp(t){return new Te(t)}static toolTip(t){return new Ie(t)}static traversal(t){return new Fe(t)}static traverse(t){return new Pe(t)}static ui(t){return new De(t)}static validate(t){return new Re(t)}static value(t){return new Ne(t)}static variables(t){return new je(t)}}e.TemplateNamespace=Le},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.addHTML=o;e.checkDimensions=h;e.flushHTML=a;e.getAvailableSpace=c;var n=i(206);var s=i(213);function r(t,e){return{name:"div",attributes:{class:[t.layout==="lr-tb"?"xfaLr":"xfaRl"]},children:e}}function a(t){if(!t[n.$extra]){return null}const e=t[n.$extra].attributes;const i={name:"div",attributes:e,children:t[n.$extra].children};if(t[n.$extra].failingNode){const e=t[n.$extra].failingNode[n.$flushHTML]();if(e){if(t.layout.endsWith("-tb")){i.children.push(r(t,[e]))}else{i.children.push(e)}}}if(i.children.length===0){return null}return i}function o(t,e,i){const a=t[n.$extra];const o=a.availableSpace;const[c,l,h,u]=i;switch(t.layout){case"position":{a.width=Math.max(a.width,c+h);a.height=Math.max(a.height,l+u);a.children.push(e);break}case"lr-tb":case"rl-tb":if(!a.line||a.attempt===1){a.line=r(t,[]);a.children.push(a.line);a.numberInLine=0}a.numberInLine+=1;a.line.children.push(e);if(a.attempt===0){a.currentWidth+=h;a.height=Math.max(a.height,a.prevHeight+u)}else{a.currentWidth=h;a.prevHeight=a.height;a.height+=u;a.attempt=0}a.width=Math.max(a.width,a.currentWidth);break;case"rl-row":case"row":{a.children.push(e);a.width+=h;a.height=Math.max(a.height,u);const t=(0,s.measureToString)(a.height);for(const e of a.children){e.attributes.style.height=t}break}case"table":{a.width=Math.min(o.width,Math.max(a.width,h));a.height+=u;a.children.push(e);break}case"tb":{a.width=Math.min(o.width,Math.max(a.width,h));a.height+=u;a.children.push(e);break}}}function c(t){const e=t[n.$extra].availableSpace;const i=t.margin?t.margin.topInset+t.margin.bottomInset:0;const s=t.margin?t.margin.leftInset+t.margin.rightInset:0;switch(t.layout){case"lr-tb":case"rl-tb":if(t[n.$extra].attempt===0){return{width:e.width-s-t[n.$extra].currentWidth,height:e.height-i-t[n.$extra].prevHeight}}return{width:e.width-s,height:e.height-i-t[n.$extra].height};case"rl-row":case"row":const r=t[n.$extra].columnWidths.slice(t[n.$extra].currentColumn).reduce(((t,e)=>t+e));return{width:r,height:e.height-s};case"table":case"tb":return{width:e.width-s,height:e.height-i-t[n.$extra].height};case"position":default:return e}}function l(t){let e=t.w===""?NaN:t.w;let i=t.h===""?NaN:t.h;let[n,s]=[0,0];switch(t.anchorType||""){case"bottomCenter":[n,s]=[e/2,i];break;case"bottomLeft":[n,s]=[0,i];break;case"bottomRight":[n,s]=[e,i];break;case"middleCenter":[n,s]=[e/2,i/2];break;case"middleLeft":[n,s]=[0,i/2];break;case"middleRight":[n,s]=[e,i/2];break;case"topCenter":[n,s]=[e/2,0];break;case"topRight":[n,s]=[e,0];break}let r,a;switch(t.rotate||0){case 0:[r,a]=[-n,-s];break;case 90:[r,a]=[-s,n];[e,i]=[i,-e];break;case 180:[r,a]=[n,s];[e,i]=[-e,-i];break;case 270:[r,a]=[s,-n];[e,i]=[-i,e];break}return[t.x+r+Math.min(0,e),t.y+a+Math.min(0,i),Math.abs(e),Math.abs(i)]}function h(t,e){if(t[n.$getTemplateRoot]()[n.$extra].firstUnsplittable===null){return true}if(t.w===0||t.h===0){return true}const i=2;const s=t[n.$getSubformParent]();const r=s[n.$extra]&&s[n.$extra].attempt||0;const[,a,o,c]=l(t);switch(s.layout){case"lr-tb":case"rl-tb":if(r===0){if(!t[n.$getTemplateRoot]()[n.$extra].noLayoutFailure){if(t.h!==""&&Math.round(c-e.height)>i){return false}if(t.w!==""){if(Math.round(o-e.width)<=i){return true}if(s[n.$extra].numberInLine===0){return e.height>i}return false}return e.width>i}if(t.w!==""){return Math.round(o-e.width)<=i}return e.width>i}if(t[n.$getTemplateRoot]()[n.$extra].noLayoutFailure){return true}if(t.h!==""&&Math.round(c-e.height)>i){return false}if(t.w===""||Math.round(o-e.width)<=i){return e.height>i}if(s[n.$isThereMoreWidth]()){return false}return e.height>i;case"table":case"tb":if(t[n.$getTemplateRoot]()[n.$extra].noLayoutFailure){return true}if(t.h!==""&&!t[n.$isSplittable]()){return Math.round(c-e.height)<=i}if(t.w===""||Math.round(o-e.width)<=i){return e.height>i}if(s[n.$isThereMoreWidth]()){return false}return e.height>i;case"position":if(t[n.$getTemplateRoot]()[n.$extra].noLayoutFailure){return true}if(t.h===""||Math.round(c+a-e.height)<=i){return true}const l=t[n.$getTemplateRoot]()[n.$extra].currentContentArea;return c+a>l.h;case"rl-row":case"row":if(t[n.$getTemplateRoot]()[n.$extra].noLayoutFailure){return true}if(t.h!==""){return Math.round(c-e.height)<=i}return true;default:return true}}},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.computeBbox=d;e.createWrapper=b;e.fixDimensions=p;e.fixTextIndent=v;e.fixURL=S;e.isPrintOnly=y;e.layoutClass=m;e.layoutNode=f;e.measureToString=c;e.setAccess=w;e.setFontFamily=x;e.setMinMaxDimensions=h;e.setPara=k;e.toStyle=g;var n=i(206);var s=i(2);var r=i(207);var a=i(214);var o=i(215);function c(t){if(typeof t==="string"){return"0px"}return Number.isInteger(t)?`${t}px`:`${t.toFixed(2)}px`}const l={anchorType(t,e){const i=t[n.$getSubformParent]();if(!i||i.layout&&i.layout!=="position"){return}if(!("transform"in e)){e.transform=""}switch(t.anchorType){case"bottomCenter":e.transform+="translate(-50%, -100%)";break;case"bottomLeft":e.transform+="translate(0,-100%)";break;case"bottomRight":e.transform+="translate(-100%,-100%)";break;case"middleCenter":e.transform+="translate(-50%,-50%)";break;case"middleLeft":e.transform+="translate(0,-50%)";break;case"middleRight":e.transform+="translate(-100%,-50%)";break;case"topCenter":e.transform+="translate(-50%,0)";break;case"topRight":e.transform+="translate(-100%,0)";break}},dimensions(t,e){const i=t[n.$getSubformParent]();let s=t.w;const r=t.h;if(i.layout&&i.layout.includes("row")){const e=i[n.$extra];const r=t.colSpan;let a;if(r===-1){a=e.columnWidths.slice(e.currentColumn).reduce(((t,e)=>t+e),0);e.currentColumn=0}else{a=e.columnWidths.slice(e.currentColumn,e.currentColumn+r).reduce(((t,e)=>t+e),0);e.currentColumn=(e.currentColumn+t.colSpan)%e.columnWidths.length}if(!isNaN(a)){s=t.w=a}}if(s!==""){e.width=c(s)}else{e.width="auto"}if(r!==""){e.height=c(r)}else{e.height="auto"}},position(t,e){const i=t[n.$getSubformParent]();if(i&&i.layout&&i.layout!=="position"){return}e.position="absolute";e.left=c(t.x);e.top=c(t.y)},rotate(t,e){if(t.rotate){if(!("transform"in e)){e.transform=""}e.transform+=`rotate(-${t.rotate}deg)`;e.transformOrigin="top left"}},presence(t,e){switch(t.presence){case"invisible":e.visibility="hidden";break;case"hidden":case"inactive":e.display="none";break}},hAlign(t,e){if(t[n.$nodeName]==="para"){switch(t.hAlign){case"justifyAll":e.textAlign="justify-all";break;case"radix":e.textAlign="left";break;default:e.textAlign=t.hAlign}}else{switch(t.hAlign){case"left":e.alignSelf="start";break;case"center":e.alignSelf="center";break;case"right":e.alignSelf="end";break}}},margin(t,e){if(t.margin){e.margin=t.margin[n.$toStyle]().margin}}};function h(t,e){const i=t[n.$getSubformParent]();if(i.layout==="position"){if(t.minW>0){e.minWidth=c(t.minW)}if(t.maxW>0){e.maxWidth=c(t.maxW)}if(t.minH>0){e.minHeight=c(t.minH)}if(t.maxH>0){e.maxHeight=c(t.maxH)}}}function u(t,e,i,s,r,a){const c=new o.TextMeasure(e,i,s,r);if(typeof t==="string"){c.addString(t)}else{t[n.$pushGlyphs](c)}return c.compute(a)}function f(t,e){let i=null;let s=null;let r=false;if((!t.w||!t.h)&&t.value){let a=0;let o=0;if(t.margin){a=t.margin.leftInset+t.margin.rightInset;o=t.margin.topInset+t.margin.bottomInset}let c=null;let l=null;if(t.para){l=Object.create(null);c=t.para.lineHeight===""?null:t.para.lineHeight;l.top=t.para.spaceAbove===""?0:t.para.spaceAbove;l.bottom=t.para.spaceBelow===""?0:t.para.spaceBelow;l.left=t.para.marginLeft===""?0:t.para.marginLeft;l.right=t.para.marginRight===""?0:t.para.marginRight}let h=t.font;if(!h){const e=t[n.$getTemplateRoot]();let i=t[n.$getParent]();while(i&&i!==e){if(i.font){h=i.font;break}i=i[n.$getParent]()}}const f=(t.w||e.width)-a;const d=t[n.$globalData].fontFinder;if(t.value.exData&&t.value.exData[n.$content]&&t.value.exData.contentType==="text/html"){const e=u(t.value.exData[n.$content],h,l,c,d,f);s=e.width;i=e.height;r=e.isBroken}else{const e=t.value[n.$text]();if(e){const t=u(e,h,l,c,d,f);s=t.width;i=t.height;r=t.isBroken}}if(s!==null&&!t.w){s+=a}if(i!==null&&!t.h){i+=o}}return{w:s,h:i,isBroken:r}}function d(t,e,i){let s;if(t.w!==""&&t.h!==""){s=[t.x,t.y,t.w,t.h]}else{if(!i){return null}let r=t.w;if(r===""){if(t.maxW===0){const e=t[n.$getSubformParent]();if(e.layout==="position"&&e.w!==""){r=0}else{r=t.minW}}else{r=Math.min(t.maxW,i.width)}e.attributes.style.width=c(r)}let a=t.h;if(a===""){if(t.maxH===0){const e=t[n.$getSubformParent]();if(e.layout==="position"&&e.h!==""){a=0}else{a=t.minH}}else{a=Math.min(t.maxH,i.height)}e.attributes.style.height=c(a)}s=[t.x,t.y,r,a]}return s}function p(t){const e=t[n.$getSubformParent]();if(e.layout&&e.layout.includes("row")){const i=e[n.$extra];const s=t.colSpan;let r;if(s===-1){r=i.columnWidths.slice(i.currentColumn).reduce(((t,e)=>t+e),0)}else{r=i.columnWidths.slice(i.currentColumn,i.currentColumn+s).reduce(((t,e)=>t+e),0)}if(!isNaN(r)){t.w=r}}if(e.layout&&e.layout!=="position"){t.x=t.y=0}if(t.layout==="table"){if(t.w===""&&Array.isArray(t.columnWidths)){t.w=t.columnWidths.reduce(((t,e)=>t+e),0)}}}function m(t){switch(t.layout){case"position":return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb";default:return"xfaPosition"}}function g(t){const e=Object.create(null);for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a<i;a++){r[a-1]=arguments[a]}for(const i of r){const r=t[i];if(r===null){continue}if(l.hasOwnProperty(i)){l[i](t,e);continue}if(r instanceof n.XFAObject){const t=r[n.$toStyle]();if(t){Object.assign(e,t)}else{(0,s.warn)(`(DEBUG) - XFA - style for ${i} not implemented yet`)}}}return e}function b(t,e){const{attributes:i}=e;const{style:s}=i;const r={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};i.class.push("xfaWrapped");if(t.border){const{widths:i,insets:a}=t.border[n.$extra];let o,c;let l=a[0];let h=a[3];const u=a[0]+a[2];const f=a[1]+a[3];switch(t.border.hand){case"even":l-=i[0]/2;h-=i[3]/2;o=`calc(100% + ${(i[1]+i[3])/2-f}px)`;c=`calc(100% + ${(i[0]+i[2])/2-u}px)`;break;case"left":l-=i[0];h-=i[3];o=`calc(100% + ${i[1]+i[3]-f}px)`;c=`calc(100% + ${i[0]+i[2]-u}px)`;break;case"right":o=f?`calc(100% - ${f}px)`:"100%";c=u?`calc(100% - ${u}px)`:"100%";break}const d=["xfaBorder"];if(y(t.border)){d.push("xfaPrintOnly")}const p={name:"div",attributes:{class:d,style:{top:`${l}px`,left:`${h}px`,width:o,height:c}},children:[]};for(const t of["border","borderWidth","borderColor","borderRadius","borderStyle"]){if(s[t]!==undefined){p.attributes.style[t]=s[t];delete s[t]}}r.children.push(p,e)}else{r.children.push(e)}for(const t of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"]){if(s[t]!==undefined){r.attributes.style[t]=s[t];delete s[t]}}if(s.position==="absolute"){r.attributes.style.position="absolute"}else{r.attributes.style.position="relative"}delete s.position;if(s.alignSelf){r.attributes.style.alignSelf=s.alignSelf;delete s.alignSelf}return r}function v(t){const e=(0,r.getMeasurement)(t.textIndent,"0px");if(e>=0){return}const i=t.textAlign==="right"?"right":"left";const n="padding"+(i==="left"?"Left":"Right");const s=(0,r.getMeasurement)(t[n],"0px");t[n]=`${s-e}px`}function w(t,e){switch(t.access){case"nonInteractive":e.push("xfaNonInteractive");break;case"readOnly":e.push("xfaReadOnly");break;case"protected":e.push("xfaDisabled");break}}function y(t){return t.relevant.length>0&&!t.relevant[0].excluded&&t.relevant[0].viewname==="print"}function A(t){const e=t[n.$getTemplateRoot]()[n.$extra].paraStack;return e.length?e.at(-1):null}function k(t,e,i){if(i.attributes.class&&i.attributes.class.includes("xfaRich")){if(e){if(t.h===""){e.height="auto"}if(t.w===""){e.width="auto"}}const s=A(t);if(s){const t=i.attributes.style;t.display="flex";t.flexDirection="column";switch(s.vAlign){case"top":t.justifyContent="start";break;case"bottom":t.justifyContent="end";break;case"middle":t.justifyContent="center";break}const e=s[n.$toStyle]();for(const[i,n]of Object.entries(e)){if(!(i in t)){t[i]=n}}}}}function x(t,e,i,n){if(!i){delete n.fontFamily;return}const s=(0,r.stripQuotes)(t.typeface);n.fontFamily=`"${s}"`;const o=i.find(s);if(o){const{fontFamily:i}=o.regular.cssFontInfo;if(i!==s){n.fontFamily=`"${i}"`}const r=A(e);if(r&&r.lineHeight!==""){return}if(n.lineHeight){return}const c=(0,a.selectFont)(t,o);if(c){n.lineHeight=Math.max(1.2,c.lineHeight)}}}function S(t){const e=(0,s.createValidAbsoluteUrl)(t,null,{addDefaultProtocol:true,tryConvertEncoding:true});return e?e.href:null}},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.FontFinder=void 0;e.getMetrics=c;e.selectFont=o;var n=i(206);var s=i(207);var r=i(2);class a{constructor(t){this.fonts=new Map;this.cache=new Map;this.warned=new Set;this.defaultFont=null;this.add(t)}add(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;for(const e of t){this.addPdfFont(e)}for(const t of this.fonts.values()){if(!t.regular){t.regular=t.italic||t.bold||t.bolditalic}}if(!e||e.size===0){return}const i=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(const t of e){this.fonts.set(t,i)}}addPdfFont(t){const e=t.cssFontInfo;const i=e.fontFamily;let n=this.fonts.get(i);if(!n){n=Object.create(null);this.fonts.set(i,n);if(!this.defaultFont){this.defaultFont=n}}let s="";const r=parseFloat(e.fontWeight);if(parseFloat(e.italicAngle)!==0){s=r>=700?"bolditalic":"italic"}else if(r>=700){s="bold"}if(!s){if(t.name.includes("Bold")||t.psName&&t.psName.includes("Bold")){s="bold"}if(t.name.includes("Italic")||t.name.endsWith("It")||t.psName&&(t.psName.includes("Italic")||t.psName.endsWith("It"))){s+="italic"}}if(!s){s="regular"}n[s]=t}getDefault(){return this.defaultFont}find(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;let i=this.fonts.get(t)||this.cache.get(t);if(i){return i}const n=/,|-|_| |bolditalic|bold|italic|regular|it/gi;let s=t.replace(n,"");i=this.fonts.get(s);if(i){this.cache.set(t,i);return i}s=s.toLowerCase();const a=[];for(const[t,e]of this.fonts.entries()){if(t.replace(n,"").toLowerCase().startsWith(s)){a.push(e)}}if(a.length===0){for(const[,t]of this.fonts.entries()){if(t.regular.name&&t.regular.name.replace(n,"").toLowerCase().startsWith(s)){a.push(t)}}}if(a.length===0){s=s.replace(/psmt|mt/gi,"");for(const[t,e]of this.fonts.entries()){if(t.replace(n,"").toLowerCase().startsWith(s)){a.push(e)}}}if(a.length===0){for(const t of this.fonts.values()){if(t.regular.name&&t.regular.name.replace(n,"").toLowerCase().startsWith(s)){a.push(t)}}}if(a.length>=1){if(a.length!==1&&e){(0,r.warn)(`XFA - Too many choices to guess the correct font: ${t}`)}this.cache.set(t,a[0]);return a[0]}if(e&&!this.warned.has(t)){this.warned.add(t);(0,r.warn)(`XFA - Cannot find the font: ${t}`)}return null}}e.FontFinder=a;function o(t,e){if(t.posture==="italic"){if(t.weight==="bold"){return e.bolditalic}return e.italic}else if(t.weight==="bold"){return e.bold}return e.regular}function c(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;let i=null;if(t){const e=(0,s.stripQuotes)(t.typeface);const r=t[n.$globalData].fontFinder.find(e);i=o(t,r)}if(!i){return{lineHeight:12,lineGap:2,lineNoGap:10}}const r=t.size||10;const a=i.lineHeight?Math.max(e?0:1.2,i.lineHeight):1.2;const c=i.lineGap===undefined?.2:i.lineGap;return{lineHeight:a*r,lineGap:c*r,lineNoGap:Math.max(1,a-c)*r}}},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.TextMeasure=void 0;var n=i(214);const s=1.02;class r{constructor(t,e,i,s){this.lineHeight=i;this.paraMargin=e||{top:0,bottom:0,left:0,right:0};if(!t){[this.pdfFont,this.xfaFont]=this.defaultFont(s);return}this.xfaFont={typeface:t.typeface,posture:t.posture,weight:t.weight,size:t.size,letterSpacing:t.letterSpacing};const r=s.find(t.typeface);if(!r){[this.pdfFont,this.xfaFont]=this.defaultFont(s);return}this.pdfFont=(0,n.selectFont)(t,r);if(!this.pdfFont){[this.pdfFont,this.xfaFont]=this.defaultFont(s)}}defaultFont(t){const e=t.find("Helvetica",false)||t.find("Myriad Pro",false)||t.find("Arial",false)||t.getDefault();if(e&&e.regular){const t=e.regular;const i=t.cssFontInfo;const n={typeface:i.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0};return[t,n]}const i={typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0};return[null,i]}}class a{constructor(t,e,i,n){this.fontFinder=n;this.stack=[new r(t,e,i,n)]}pushData(t,e,i){const n=this.stack.at(-1);for(const e of["typeface","posture","weight","size","letterSpacing"]){if(!t[e]){t[e]=n.xfaFont[e]}}for(const t of["top","bottom","left","right"]){if(isNaN(e[t])){e[t]=n.paraMargin[t]}}const s=new r(t,e,i||n.lineHeight,this.fontFinder);if(!s.pdfFont){s.pdfFont=n.pdfFont}this.stack.push(s)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}}class o{constructor(t,e,i,n){this.glyphs=[];this.fontSelector=new a(t,e,i,n);this.extraHeight=0}pushData(t,e,i){this.fontSelector.pushData(t,e,i)}popFont(t){return this.fontSelector.popFont()}addPara(){const t=this.fontSelector.topFont();this.extraHeight+=t.paraMargin.top+t.paraMargin.bottom}addString(t){if(!t){return}const e=this.fontSelector.topFont();const i=e.xfaFont.size;if(e.pdfFont){const n=e.xfaFont.letterSpacing;const s=e.pdfFont;const r=s.lineHeight||1.2;const a=e.lineHeight||Math.max(1.2,r)*i;const o=s.lineGap===undefined?.2:s.lineGap;const c=r-o;const l=Math.max(1,c)*i;const h=i/1e3;const u=s.defaultWidth||s.charsToGlyphs(" ")[0].width;for(const e of t.split(/[\u2029\n]/)){const t=s.encodeString(e).join("");const i=s.charsToGlyphs(t);for(const t of i){const e=t.width||u;this.glyphs.push([e*h+n,a,l,t.unicode,false])}this.glyphs.push([0,0,0,"\n",true])}this.glyphs.pop();return}for(const e of t.split(/[\u2029\n]/)){for(const t of e.split("")){this.glyphs.push([i,1.2*i,i,t,false])}this.glyphs.push([0,0,0,"\n",true])}this.glyphs.pop()}compute(t){let e=-1,i=0,n=0,r=0,a=0,o=0;let c=false;let l=true;for(let s=0,h=this.glyphs.length;s<h;s++){const[h,u,f,d,p]=this.glyphs[s];const m=d===" ";const g=l?f:u;if(p){n=Math.max(n,a);a=0;r+=o;o=g;e=-1;i=0;l=false;continue}if(m){if(a+h>t){n=Math.max(n,a);a=0;r+=o;o=g;e=-1;i=0;c=true;l=false}else{o=Math.max(g,o);i=a;a+=h;e=s}continue}if(a+h>t){r+=o;o=g;if(e!==-1){s=e;n=Math.max(n,i);a=0;e=-1;i=0}else{n=Math.max(n,a);a=h}c=true;l=false;continue}a+=h;o=Math.max(g,o)}n=Math.max(n,a);r+=o+this.extraHeight;return{width:s*n,height:r,isBroken:c}}}e.TextMeasure=o},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.DataHandler=void 0;var n=i(206);class s{constructor(t,e){this.data=e;this.dataset=t.datasets||null}serialize(t){const e=[[-1,this.data[n.$getChildren]()]];while(e.length>0){const i=e.at(-1);const[s,r]=i;if(s+1===r.length){e.pop();continue}const a=r[++i[0]];const o=t.get(a[n.$uid]);if(o){a[n.$setValue](o)}else{const e=a[n.$getAttributes]();for(const i of e.values()){const e=t.get(i[n.$uid]);if(e){i[n.$setValue](e);break}}}const c=a[n.$getChildren]();if(c.length>0){e.push([-1,c])}}const i=[`<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">`];if(this.dataset){for(const t of this.dataset[n.$getChildren]()){if(t[n.$nodeName]!=="data"){t[n.$toString](i)}}}this.data[n.$toString](i);i.push("</xfa:datasets>");return i.join("")}}e.DataHandler=s},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.XFAParser=void 0;var n=i(206);var s=i(195);var r=i(218);var a=i(2);class o extends s.XMLParserBase{constructor(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;super();this._builder=new r.Builder(t);this._stack=[];this._globalData={usedTypefaces:new Set};this._ids=new Map;this._current=this._builder.buildRoot(this._ids);this._errorCode=s.XMLParserErrorCode.NoError;this._whiteRegex=/^\s+$/;this._nbsps=/\xa0+/g;this._richText=e}parse(t){this.parseXml(t);if(this._errorCode!==s.XMLParserErrorCode.NoError){return undefined}this._current[n.$finalize]();return this._current.element}onText(t){t=t.replace(this._nbsps,(t=>t.slice(1)+" "));if(this._richText||this._current[n.$acceptWhitespace]()){this._current[n.$onText](t,this._richText);return}if(this._whiteRegex.test(t)){return}this._current[n.$onText](t.trim())}onCdata(t){this._current[n.$onText](t)}_mkAttributes(t,e){let i=null;let s=null;const r=Object.create({});for(const{name:o,value:c}of t){if(o==="xmlns"){if(!i){i=c}else{(0,a.warn)(`XFA - multiple namespace definition in <${e}>`)}}else if(o.startsWith("xmlns:")){const t=o.substring("xmlns:".length);if(!s){s=[]}s.push({prefix:t,value:c})}else{const t=o.indexOf(":");if(t===-1){r[o]=c}else{let e=r[n.$nsAttributes];if(!e){e=r[n.$nsAttributes]=Object.create(null)}const[i,s]=[o.slice(0,t),o.slice(t+1)];let a=e[i];if(!a){a=e[i]=Object.create(null)}a[s]=c}}}return[i,s,r]}_getNameAndPrefix(t,e){const i=t.indexOf(":");if(i===-1){return[t,null]}return[t.substring(i+1),e?"":t.substring(0,i)]}onBeginElement(t,e,i){const[s,r,a]=this._mkAttributes(e,t);const[o,c]=this._getNameAndPrefix(t,this._builder.isNsAgnostic());const l=this._builder.build({nsPrefix:c,name:o,attributes:a,namespace:s,prefixes:r});l[n.$globalData]=this._globalData;if(i){l[n.$finalize]();if(this._current[n.$onChild](l)){l[n.$setId](this._ids)}l[n.$clean](this._builder);return}this._stack.push(this._current);this._current=l}onEndElement(t){const e=this._current;if(e[n.$isCDATAXml]()&&typeof e[n.$content]==="string"){const t=new o;t._globalData=this._globalData;const i=t.parse(e[n.$content]);e[n.$content]=null;e[n.$onChild](i)}e[n.$finalize]();this._current=this._stack.pop();if(this._current[n.$onChild](e)){e[n.$setId](this._ids)}e[n.$clean](this._builder)}onError(t){this._errorCode=t}}e.XFAParser=o},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.Builder=void 0;var n=i(208);var s=i(206);var r=i(219);var a=i(211);var o=i(228);var c=i(2);class l extends s.XFAObject{constructor(t){super(-1,"root",Object.create(null));this.element=null;this[s.$ids]=t}[s.$onChild](t){this.element=t;return true}[s.$finalize](){super[s.$finalize]();if(this.element.template instanceof a.Template){this[s.$ids].set(s.$root,this.element);this.element.template[s.$resolvePrototypes](this[s.$ids]);this.element.template[s.$ids]=this[s.$ids]}}}class h extends s.XFAObject{constructor(){super(-1,"",Object.create(null))}[s.$onChild](t){return false}}class u{constructor(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;this._namespaceStack=[];this._nsAgnosticLevel=0;this._namespacePrefixes=new Map;this._namespaces=new Map;this._nextNsId=Math.max(...Object.values(n.NamespaceIds).map((t=>{let{id:e}=t;return e})));this._currentNamespace=t||new o.UnknownNamespace(++this._nextNsId)}buildRoot(t){return new l(t)}build(t){let{nsPrefix:e,name:i,attributes:a,namespace:o,prefixes:c}=t;const l=o!==null;if(l){this._namespaceStack.push(this._currentNamespace);this._currentNamespace=this._searchNamespace(o)}if(c){this._addNamespacePrefix(c)}if(a.hasOwnProperty(s.$nsAttributes)){const t=r.NamespaceSetUp.datasets;const e=a[s.$nsAttributes];let i=null;for(const[n,s]of Object.entries(e)){const e=this._getNamespaceToUse(n);if(e===t){i={xfa:s};break}}if(i){a[s.$nsAttributes]=i}else{delete a[s.$nsAttributes]}}const u=this._getNamespaceToUse(e);const f=u&&u[n.$buildXFAObject](i,a)||new h;if(f[s.$isNsAgnostic]()){this._nsAgnosticLevel++}if(l||c||f[s.$isNsAgnostic]()){f[s.$cleanup]={hasNamespace:l,prefixes:c,nsAgnostic:f[s.$isNsAgnostic]()}}return f}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(t){let e=this._namespaces.get(t);if(e){return e}for(const[i,{check:s}]of Object.entries(n.NamespaceIds)){if(s(t)){e=r.NamespaceSetUp[i];if(e){this._namespaces.set(t,e);return e}break}}e=new o.UnknownNamespace(++this._nextNsId);this._namespaces.set(t,e);return e}_addNamespacePrefix(t){for(const{prefix:e,value:i}of t){const t=this._searchNamespace(i);let n=this._namespacePrefixes.get(e);if(!n){n=[];this._namespacePrefixes.set(e,n)}n.push(t)}}_getNamespaceToUse(t){if(!t){return this._currentNamespace}const e=this._namespacePrefixes.get(t);if(e&&e.length>0){return e.at(-1)}(0,c.warn)(`Unknown namespace prefix: ${t}.`);return null}clean(t){const{hasNamespace:e,prefixes:i,nsAgnostic:n}=t;if(e){this._currentNamespace=this._namespaceStack.pop()}if(i){i.forEach((t=>{let{prefix:e}=t;this._namespacePrefixes.get(e).pop()}))}if(n){this._nsAgnosticLevel--}}}e.Builder=u},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.NamespaceSetUp=void 0;var n=i(220);var s=i(221);var r=i(222);var a=i(223);var o=i(224);var c=i(225);var l=i(211);var h=i(226);var u=i(227);const f={config:n.ConfigNamespace,connection:s.ConnectionSetNamespace,datasets:r.DatasetsNamespace,localeSet:a.LocaleSetNamespace,signature:o.SignatureNamespace,stylesheet:c.StylesheetNamespace,template:l.TemplateNamespace,xdp:h.XdpNamespace,xhtml:u.XhtmlNamespace};e.NamespaceSetUp=f},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.ConfigNamespace=void 0;var n=i(208);var s=i(206);var r=i(207);var a=i(2);const o=n.NamespaceIds.config.id;class c extends s.XFAObject{constructor(t){super(o,"acrobat",true);this.acrobat7=null;this.autoSave=null;this.common=null;this.validate=null;this.validateApprovalSignatures=null;this.submitUrl=new s.XFAObjectArray}}class l extends s.XFAObject{constructor(t){super(o,"acrobat7",true);this.dynamicRender=null}}class h extends s.OptionObject{constructor(t){super(o,"ADBE_JSConsole",["delegate","Enable","Disable"])}}class u extends s.OptionObject{constructor(t){super(o,"ADBE_JSDebugger",["delegate","Enable","Disable"])}}class f extends s.Option01{constructor(t){super(o,"addSilentPrint")}}class d extends s.Option01{constructor(t){super(o,"addViewerPreferences")}}class p extends s.Option10{constructor(t){super(o,"adjustData")}}class m extends s.IntegerObject{constructor(t){super(o,"adobeExtensionLevel",0,(t=>t>=1&&t<=8))}}class g extends s.XFAObject{constructor(t){super(o,"agent",true);this.name=t.name?t.name.trim():"";this.common=new s.XFAObjectArray}}class b extends s.ContentObject{constructor(t){super(o,"alwaysEmbed")}}class v extends s.StringObject{constructor(t){super(o,"amd")}}class w extends s.XFAObject{constructor(t){super(o,"area");this.level=(0,r.getInteger)({data:t.level,defaultValue:0,validate:t=>t>=1&&t<=3});this.name=(0,r.getStringOption)(t.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}}class y extends s.OptionObject{constructor(t){super(o,"attributes",["preserve","delegate","ignore"])}}class A extends s.OptionObject{constructor(t){super(o,"autoSave",["disabled","enabled"])}}class k extends s.StringObject{constructor(t){super(o,"base")}}class x extends s.XFAObject{constructor(t){super(o,"batchOutput");this.format=(0,r.getStringOption)(t.format,["none","concat","zip","zipCompress"])}}class S extends s.ContentObject{constructor(t){super(o,"behaviorOverride")}[s.$finalize](){this[s.$content]=new Map(this[s.$content].trim().split(/\s+/).filter((t=>t.includes(":"))).map((t=>t.split(":",2))))}}class M extends s.XFAObject{constructor(t){super(o,"cache",true);this.templateCache=null}}class _ extends s.Option01{constructor(t){super(o,"change")}}class E extends s.XFAObject{constructor(t){super(o,"common",true);this.data=null;this.locale=null;this.localeSet=null;this.messaging=null;this.suppressBanner=null;this.template=null;this.validationMessaging=null;this.versionControl=null;this.log=new s.XFAObjectArray}}class C extends s.XFAObject{constructor(t){super(o,"compress");this.scope=(0,r.getStringOption)(t.scope,["imageOnly","document"])}}class O extends s.Option01{constructor(t){super(o,"compressLogicalStructure")}}class T extends s.Option10{constructor(t){super(o,"compressObjectStream")}}class I extends s.XFAObject{constructor(t){super(o,"compression",true);this.compressLogicalStructure=null;this.compressObjectStream=null;this.level=null;this.type=null}}class F extends s.XFAObject{constructor(t){super(o,"config",true);this.acrobat=null;this.present=null;this.trace=null;this.agent=new s.XFAObjectArray}}class P extends s.OptionObject{constructor(t){super(o,"conformance",["A","B"])}}class D extends s.Option01{constructor(t){super(o,"contentCopy")}}class R extends s.IntegerObject{constructor(t){super(o,"copies",1,(t=>t>=1))}}class N extends s.StringObject{constructor(t){super(o,"creator")}}class j extends s.IntegerObject{constructor(t){super(o,"currentPage",0,(t=>t>=0))}}class L extends s.XFAObject{constructor(t){super(o,"data",true);this.adjustData=null;this.attributes=null;this.incrementalLoad=null;this.outputXSL=null;this.range=null;this.record=null;this.startNode=null;this.uri=null;this.window=null;this.xsl=null;this.excludeNS=new s.XFAObjectArray;this.transform=new s.XFAObjectArray}}class U extends s.XFAObject{constructor(t){super(o,"debug",true);this.uri=null}}class B extends s.ContentObject{constructor(t){super(o,"defaultTypeface");this.writingScript=(0,r.getStringOption)(t.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}}class $ extends s.OptionObject{constructor(t){super(o,"destination",["pdf","pcl","ps","webClient","zpl"])}}class q extends s.Option01{constructor(t){super(o,"documentAssembly")}}class G extends s.XFAObject{constructor(t){super(o,"driver",true);this.name=t.name?t.name.trim():"";this.fontInfo=null;this.xdc=null}}class W extends s.OptionObject{constructor(t){super(o,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}}class H extends s.OptionObject{constructor(t){super(o,"dynamicRender",["forbidden","required"])}}class z extends s.Option01{constructor(t){super(o,"embed")}}class V extends s.Option01{constructor(t){super(o,"encrypt")}}class X extends s.XFAObject{constructor(t){super(o,"encryption",true);this.encrypt=null;this.encryptionLevel=null;this.permissions=null}}class K extends s.OptionObject{constructor(t){super(o,"encryptionLevel",["40bit","128bit"])}}class Y extends s.StringObject{constructor(t){super(o,"enforce")}}class J extends s.XFAObject{constructor(t){super(o,"equate");this.force=(0,r.getInteger)({data:t.force,defaultValue:1,validate:t=>t===0});this.from=t.from||"";this.to=t.to||""}}class Q extends s.XFAObject{constructor(t){super(o,"equateRange");this.from=t.from||"";this.to=t.to||"";this._unicodeRange=t.unicodeRange||""}get unicodeRange(){const t=[];const e=/U\+([0-9a-fA-F]+)/;const i=this._unicodeRange;for(let n of i.split(",").map((t=>t.trim())).filter((t=>!!t))){n=n.split("-",2).map((t=>{const i=t.match(e);if(!i){return 0}return parseInt(i[1],16)}));if(n.length===1){n.push(n[0])}t.push(n)}return(0,a.shadow)(this,"unicodeRange",t)}}class Z extends s.ContentObject{constructor(t){super(o,"exclude")}[s.$finalize](){this[s.$content]=this[s.$content].trim().split(/\s+/).filter((t=>t&&["calculate","close","enter","exit","initialize","ready","validate"].includes(t)))}}class tt extends s.StringObject{constructor(t){super(o,"excludeNS")}}class et extends s.OptionObject{constructor(t){super(o,"flipLabel",["usePrinterSetting","on","off"])}}class it extends s.XFAObject{constructor(t){super(o,"fontInfo",true);this.embed=null;this.map=null;this.subsetBelow=null;this.alwaysEmbed=new s.XFAObjectArray;this.defaultTypeface=new s.XFAObjectArray;this.neverEmbed=new s.XFAObjectArray}}class nt extends s.Option01{constructor(t){super(o,"formFieldFilling")}}class st extends s.StringObject{constructor(t){super(o,"groupParent")}}class rt extends s.OptionObject{constructor(t){super(o,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}}class at extends s.StringObject{constructor(t){super(o,"includeXDPContent")}}class ot extends s.OptionObject{constructor(t){super(o,"incrementalLoad",["none","forwardOnly"])}}class ct extends s.Option01{constructor(t){super(o,"incrementalMerge")}}class lt extends s.Option01{constructor(t){super(o,"interactive")}}class ht extends s.OptionObject{constructor(t){super(o,"jog",["usePrinterSetting","none","pageSet"])}}class ut extends s.XFAObject{constructor(t){super(o,"labelPrinter",true);this.name=(0,r.getStringOption)(t.name,["zpl","dpl","ipl","tcpl"]);this.batchOutput=null;this.flipLabel=null;this.fontInfo=null;this.xdc=null}}class ft extends s.OptionObject{constructor(t){super(o,"layout",["paginate","panel"])}}class dt extends s.IntegerObject{constructor(t){super(o,"level",0,(t=>t>0))}}class pt extends s.Option01{constructor(t){super(o,"linearized")}}class mt extends s.StringObject{constructor(t){super(o,"locale")}}class gt extends s.StringObject{constructor(t){super(o,"localeSet")}}class bt extends s.XFAObject{constructor(t){super(o,"log",true);this.mode=null;this.threshold=null;this.to=null;this.uri=null}}class vt extends s.XFAObject{constructor(t){super(o,"map",true);this.equate=new s.XFAObjectArray;this.equateRange=new s.XFAObjectArray}}class wt extends s.XFAObject{constructor(t){super(o,"mediumInfo",true);this.map=null}}class yt extends s.XFAObject{constructor(t){super(o,"message",true);this.msgId=null;this.severity=null}}class At extends s.XFAObject{constructor(t){super(o,"messaging",true);this.message=new s.XFAObjectArray}}class kt extends s.OptionObject{constructor(t){super(o,"mode",["append","overwrite"])}}class xt extends s.Option01{constructor(t){super(o,"modifyAnnots")}}class St extends s.IntegerObject{constructor(t){super(o,"msgId",1,(t=>t>=1))}}class Mt extends s.StringObject{constructor(t){super(o,"nameAttr")}}class _t extends s.ContentObject{constructor(t){super(o,"neverEmbed")}}class Et extends s.IntegerObject{constructor(t){super(o,"numberOfCopies",null,(t=>t>=2&&t<=5))}}class Ct extends s.XFAObject{constructor(t){super(o,"openAction",true);this.destination=null}}class Ot extends s.XFAObject{constructor(t){super(o,"output",true);this.to=null;this.type=null;this.uri=null}}class Tt extends s.StringObject{constructor(t){super(o,"outputBin")}}class It extends s.XFAObject{constructor(t){super(o,"outputXSL",true);this.uri=null}}class Ft extends s.OptionObject{constructor(t){super(o,"overprint",["none","both","draw","field"])}}class Pt extends s.StringObject{constructor(t){super(o,"packets")}[s.$finalize](){if(this[s.$content]==="*"){return}this[s.$content]=this[s.$content].trim().split(/\s+/).filter((t=>["config","datasets","template","xfdf","xslt"].includes(t)))}}class Dt extends s.XFAObject{constructor(t){super(o,"pageOffset");this.x=(0,r.getInteger)({data:t.x,defaultValue:"useXDCSetting",validate:t=>true});this.y=(0,r.getInteger)({data:t.y,defaultValue:"useXDCSetting",validate:t=>true})}}class Rt extends s.StringObject{constructor(t){super(o,"pageRange")}[s.$finalize](){const t=this[s.$content].trim().split(/\s+/).map((t=>parseInt(t,10)));const e=[];for(let i=0,n=t.length;i<n;i+=2){e.push(t.slice(i,i+2))}this[s.$content]=e}}class Nt extends s.OptionObject{constructor(t){super(o,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}}class jt extends s.OptionObject{constructor(t){super(o,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}}class Lt extends s.IntegerObject{constructor(t){super(o,"part",1,(t=>false))}}class Ut extends s.XFAObject{constructor(t){super(o,"pcl",true);this.name=t.name||"";this.batchOutput=null;this.fontInfo=null;this.jog=null;this.mediumInfo=null;this.outputBin=null;this.pageOffset=null;this.staple=null;this.xdc=null}}class Bt extends s.XFAObject{constructor(t){super(o,"pdf",true);this.name=t.name||"";this.adobeExtensionLevel=null;this.batchOutput=null;this.compression=null;this.creator=null;this.encryption=null;this.fontInfo=null;this.interactive=null;this.linearized=null;this.openAction=null;this.pdfa=null;this.producer=null;this.renderPolicy=null;this.scriptModel=null;this.silentPrint=null;this.submitFormat=null;this.tagged=null;this.version=null;this.viewerPreferences=null;this.xdc=null}}class $t extends s.XFAObject{constructor(t){super(o,"pdfa",true);this.amd=null;this.conformance=null;this.includeXDPContent=null;this.part=null}}class qt extends s.XFAObject{constructor(t){super(o,"permissions",true);this.accessibleContent=null;this.change=null;this.contentCopy=null;this.documentAssembly=null;this.formFieldFilling=null;this.modifyAnnots=null;this.plaintextMetadata=null;this.print=null;this.printHighQuality=null}}class Gt extends s.Option01{constructor(t){super(o,"pickTrayByPDFSize")}}class Wt extends s.StringObject{constructor(t){super(o,"picture")}}class Ht extends s.Option01{constructor(t){super(o,"plaintextMetadata")}}class zt extends s.OptionObject{constructor(t){super(o,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}}class Vt extends s.XFAObject{constructor(t){super(o,"present",true);this.behaviorOverride=null;this.cache=null;this.common=null;this.copies=null;this.destination=null;this.incrementalMerge=null;this.layout=null;this.output=null;this.overprint=null;this.pagination=null;this.paginationOverride=null;this.script=null;this.validate=null;this.xdp=null;this.driver=new s.XFAObjectArray;this.labelPrinter=new s.XFAObjectArray;this.pcl=new s.XFAObjectArray;this.pdf=new s.XFAObjectArray;this.ps=new s.XFAObjectArray;this.submitUrl=new s.XFAObjectArray;this.webClient=new s.XFAObjectArray;this.zpl=new s.XFAObjectArray}}class Xt extends s.Option01{constructor(t){super(o,"print")}}class Kt extends s.Option01{constructor(t){super(o,"printHighQuality")}}class Yt extends s.OptionObject{constructor(t){super(o,"printScaling",["appdefault","noScaling"])}}class Jt extends s.StringObject{constructor(t){super(o,"printerName")}}class Qt extends s.StringObject{constructor(t){super(o,"producer")}}class Zt extends s.XFAObject{constructor(t){super(o,"ps",true);this.name=t.name||"";this.batchOutput=null;this.fontInfo=null;this.jog=null;this.mediumInfo=null;this.outputBin=null;this.staple=null;this.xdc=null}}class te extends s.ContentObject{constructor(t){super(o,"range")}[s.$finalize](){this[s.$content]=this[s.$content].trim().split(/\s*,\s*/,2).map((t=>t.split("-").map((t=>parseInt(t.trim(),10))))).filter((t=>t.every((t=>!isNaN(t))))).map((t=>{if(t.length===1){t.push(t[0])}return t}))}}class ee extends s.ContentObject{constructor(t){super(o,"record")}[s.$finalize](){this[s.$content]=this[s.$content].trim();const t=parseInt(this[s.$content],10);if(!isNaN(t)&&t>=0){this[s.$content]=t}}}class ie extends s.ContentObject{constructor(t){super(o,"relevant")}[s.$finalize](){this[s.$content]=this[s.$content].trim().split(/\s+/)}}class ne extends s.ContentObject{constructor(t){super(o,"rename")}[s.$finalize](){this[s.$content]=this[s.$content].trim();if(this[s.$content].toLowerCase().startsWith("xml")||new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u").test(this[s.$content])){(0,a.warn)("XFA - Rename: invalid XFA name")}}}class se extends s.OptionObject{constructor(t){super(o,"renderPolicy",["server","client"])}}class re extends s.OptionObject{constructor(t){super(o,"runScripts",["both","client","none","server"])}}class ae extends s.XFAObject{constructor(t){super(o,"script",true);this.currentPage=null;this.exclude=null;this.runScripts=null}}class oe extends s.OptionObject{constructor(t){super(o,"scriptModel",["XFA","none"])}}class ce extends s.OptionObject{constructor(t){super(o,"severity",["ignore","error","information","trace","warning"])}}class le extends s.XFAObject{constructor(t){super(o,"silentPrint",true);this.addSilentPrint=null;this.printerName=null}}class he extends s.XFAObject{constructor(t){super(o,"staple");this.mode=(0,r.getStringOption)(t.mode,["usePrinterSetting","on","off"])}}class ue extends s.StringObject{constructor(t){super(o,"startNode")}}class fe extends s.IntegerObject{constructor(t){super(o,"startPage",0,(t=>true))}}class de extends s.OptionObject{constructor(t){super(o,"submitFormat",["html","delegate","fdf","xml","pdf"])}}class pe extends s.StringObject{constructor(t){super(o,"submitUrl")}}class me extends s.IntegerObject{constructor(t){super(o,"subsetBelow",100,(t=>t>=0&&t<=100))}}class ge extends s.Option01{constructor(t){super(o,"suppressBanner")}}class be extends s.Option01{constructor(t){super(o,"tagged")}}class ve extends s.XFAObject{constructor(t){super(o,"template",true);this.base=null;this.relevant=null;this.startPage=null;this.uri=null;this.xsl=null}}class we extends s.OptionObject{constructor(t){super(o,"threshold",["trace","error","information","warning"])}}class ye extends s.OptionObject{constructor(t){super(o,"to",["null","memory","stderr","stdout","system","uri"])}}class Ae extends s.XFAObject{constructor(t){super(o,"templateCache");this.maxEntries=(0,r.getInteger)({data:t.maxEntries,defaultValue:5,validate:t=>t>=0})}}class ke extends s.XFAObject{constructor(t){super(o,"trace",true);this.area=new s.XFAObjectArray}}class xe extends s.XFAObject{constructor(t){super(o,"transform",true);this.groupParent=null;this.ifEmpty=null;this.nameAttr=null;this.picture=null;this.presence=null;this.rename=null;this.whitespace=null}}class Se extends s.OptionObject{constructor(t){super(o,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}}class Me extends s.StringObject{constructor(t){super(o,"uri")}}class _e extends s.OptionObject{constructor(t){super(o,"validate",["preSubmit","prePrint","preExecute","preSave"])}}class Ee extends s.ContentObject{constructor(t){super(o,"validateApprovalSignatures")}[s.$finalize](){this[s.$content]=this[s.$content].trim().split(/\s+/).filter((t=>["docReady","postSign"].includes(t)))}}class Ce extends s.OptionObject{constructor(t){super(o,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}}class Oe extends s.OptionObject{constructor(t){super(o,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}}class Te extends s.XFAObject{constructor(t){super(o,"VersionControl");this.outputBelow=(0,r.getStringOption)(t.outputBelow,["warn","error","update"]);this.sourceAbove=(0,r.getStringOption)(t.sourceAbove,["warn","error"]);this.sourceBelow=(0,r.getStringOption)(t.sourceBelow,["update","maintain"])}}class Ie extends s.XFAObject{constructor(t){super(o,"viewerPreferences",true);this.ADBE_JSConsole=null;this.ADBE_JSDebugger=null;this.addViewerPreferences=null;this.duplexOption=null;this.enforce=null;this.numberOfCopies=null;this.pageRange=null;this.pickTrayByPDFSize=null;this.printScaling=null}}class Fe extends s.XFAObject{constructor(t){super(o,"webClient",true);this.name=t.name?t.name.trim():"";this.fontInfo=null;this.xdc=null}}class Pe extends s.OptionObject{constructor(t){super(o,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}}class De extends s.ContentObject{constructor(t){super(o,"window")}[s.$finalize](){const t=this[s.$content].trim().split(/\s*,\s*/,2).map((t=>parseInt(t,10)));if(t.some((t=>isNaN(t)))){this[s.$content]=[0,0];return}if(t.length===1){t.push(t[0])}this[s.$content]=t}}class Re extends s.XFAObject{constructor(t){super(o,"xdc",true);this.uri=new s.XFAObjectArray;this.xsl=new s.XFAObjectArray}}class Ne extends s.XFAObject{constructor(t){super(o,"xdp",true);this.packets=null}}class je extends s.XFAObject{constructor(t){super(o,"xsl",true);this.debug=null;this.uri=null}}class Le extends s.XFAObject{constructor(t){super(o,"zpl",true);this.name=t.name?t.name.trim():"";this.batchOutput=null;this.flipLabel=null;this.fontInfo=null;this.xdc=null}}class Ue{static[n.$buildXFAObject](t,e){if(Ue.hasOwnProperty(t)){return Ue[t](e)}return undefined}static acrobat(t){return new c(t)}static acrobat7(t){return new l(t)}static ADBE_JSConsole(t){return new h(t)}static ADBE_JSDebugger(t){return new u(t)}static addSilentPrint(t){return new f(t)}static addViewerPreferences(t){return new d(t)}static adjustData(t){return new p(t)}static adobeExtensionLevel(t){return new m(t)}static agent(t){return new g(t)}static alwaysEmbed(t){return new b(t)}static amd(t){return new v(t)}static area(t){return new w(t)}static attributes(t){return new y(t)}static autoSave(t){return new A(t)}static base(t){return new k(t)}static batchOutput(t){return new x(t)}static behaviorOverride(t){return new S(t)}static cache(t){return new M(t)}static change(t){return new _(t)}static common(t){return new E(t)}static compress(t){return new C(t)}static compressLogicalStructure(t){return new O(t)}static compressObjectStream(t){return new T(t)}static compression(t){return new I(t)}static config(t){return new F(t)}static conformance(t){return new P(t)}static contentCopy(t){return new D(t)}static copies(t){return new R(t)}static creator(t){return new N(t)}static currentPage(t){return new j(t)}static data(t){return new L(t)}static debug(t){return new U(t)}static defaultTypeface(t){return new B(t)}static destination(t){return new $(t)}static documentAssembly(t){return new q(t)}static driver(t){return new G(t)}static duplexOption(t){return new W(t)}static dynamicRender(t){return new H(t)}static embed(t){return new z(t)}static encrypt(t){return new V(t)}static encryption(t){return new X(t)}static encryptionLevel(t){return new K(t)}static enforce(t){return new Y(t)}static equate(t){return new J(t)}static equateRange(t){return new Q(t)}static exclude(t){return new Z(t)}static excludeNS(t){return new tt(t)}static flipLabel(t){return new et(t)}static fontInfo(t){return new it(t)}static formFieldFilling(t){return new nt(t)}static groupParent(t){return new st(t)}static ifEmpty(t){return new rt(t)}static includeXDPContent(t){return new at(t)}static incrementalLoad(t){return new ot(t)}static incrementalMerge(t){return new ct(t)}static interactive(t){return new lt(t)}static jog(t){return new ht(t)}static labelPrinter(t){return new ut(t)}static layout(t){return new ft(t)}static level(t){return new dt(t)}static linearized(t){return new pt(t)}static locale(t){return new mt(t)}static localeSet(t){return new gt(t)}static log(t){return new bt(t)}static map(t){return new vt(t)}static mediumInfo(t){return new wt(t)}static message(t){return new yt(t)}static messaging(t){return new At(t)}static mode(t){return new kt(t)}static modifyAnnots(t){return new xt(t)}static msgId(t){return new St(t)}static nameAttr(t){return new Mt(t)}static neverEmbed(t){return new _t(t)}static numberOfCopies(t){return new Et(t)}static openAction(t){return new Ct(t)}static output(t){return new Ot(t)}static outputBin(t){return new Tt(t)}static outputXSL(t){return new It(t)}static overprint(t){return new Ft(t)}static packets(t){return new Pt(t)}static pageOffset(t){return new Dt(t)}static pageRange(t){return new Rt(t)}static pagination(t){return new Nt(t)}static paginationOverride(t){return new jt(t)}static part(t){return new Lt(t)}static pcl(t){return new Ut(t)}static pdf(t){return new Bt(t)}static pdfa(t){return new $t(t)}static permissions(t){return new qt(t)}static pickTrayByPDFSize(t){return new Gt(t)}static picture(t){return new Wt(t)}static plaintextMetadata(t){return new Ht(t)}static presence(t){return new zt(t)}static present(t){return new Vt(t)}static print(t){return new Xt(t)}static printHighQuality(t){return new Kt(t)}static printScaling(t){return new Yt(t)}static printerName(t){return new Jt(t)}static producer(t){return new Qt(t)}static ps(t){return new Zt(t)}static range(t){return new te(t)}static record(t){return new ee(t)}static relevant(t){return new ie(t)}static rename(t){return new ne(t)}static renderPolicy(t){return new se(t)}static runScripts(t){return new re(t)}static script(t){return new ae(t)}static scriptModel(t){return new oe(t)}static severity(t){return new ce(t)}static silentPrint(t){return new le(t)}static staple(t){return new he(t)}static startNode(t){return new ue(t)}static startPage(t){return new fe(t)}static submitFormat(t){return new de(t)}static submitUrl(t){return new pe(t)}static subsetBelow(t){return new me(t)}static suppressBanner(t){return new ge(t)}static tagged(t){return new be(t)}static template(t){return new ve(t)}static templateCache(t){return new Ae(t)}static threshold(t){return new we(t)}static to(t){return new ye(t)}static trace(t){return new ke(t)}static transform(t){return new xe(t)}static type(t){return new Se(t)}static uri(t){return new Me(t)}static validate(t){return new _e(t)}static validateApprovalSignatures(t){return new Ee(t)}static validationMessaging(t){return new Ce(t)}static version(t){return new Oe(t)}static versionControl(t){return new Te(t)}static viewerPreferences(t){return new Ie(t)}static webClient(t){return new Fe(t)}static whitespace(t){return new Pe(t)}static window(t){return new De(t)}static xdc(t){return new Re(t)}static xdp(t){return new Ne(t)}static xsl(t){return new je(t)}static zpl(t){return new Le(t)}}e.ConfigNamespace=Ue},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.ConnectionSetNamespace=void 0;var n=i(208);var s=i(206);const r=n.NamespaceIds.connectionSet.id;class a extends s.XFAObject{constructor(t){super(r,"connectionSet",true);this.wsdlConnection=new s.XFAObjectArray;this.xmlConnection=new s.XFAObjectArray;this.xsdConnection=new s.XFAObjectArray}}class o extends s.XFAObject{constructor(t){super(r,"effectiveInputPolicy");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class c extends s.XFAObject{constructor(t){super(r,"effectiveOutputPolicy");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class l extends s.StringObject{constructor(t){super(r,"operation");this.id=t.id||"";this.input=t.input||"";this.name=t.name||"";this.output=t.output||"";this.use=t.use||"";this.usehref=t.usehref||""}}class h extends s.StringObject{constructor(t){super(r,"rootElement");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class u extends s.StringObject{constructor(t){super(r,"soapAction");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class f extends s.StringObject{constructor(t){super(r,"soapAddress");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class d extends s.StringObject{constructor(t){super(r,"uri");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class p extends s.StringObject{constructor(t){super(r,"wsdlAddress");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class m extends s.XFAObject{constructor(t){super(r,"wsdlConnection",true);this.dataDescription=t.dataDescription||"";this.name=t.name||"";this.effectiveInputPolicy=null;this.effectiveOutputPolicy=null;this.operation=null;this.soapAction=null;this.soapAddress=null;this.wsdlAddress=null}}class g extends s.XFAObject{constructor(t){super(r,"xmlConnection",true);this.dataDescription=t.dataDescription||"";this.name=t.name||"";this.uri=null}}class b extends s.XFAObject{constructor(t){super(r,"xsdConnection",true);this.dataDescription=t.dataDescription||"";this.name=t.name||"";this.rootElement=null;this.uri=null}}class v{static[n.$buildXFAObject](t,e){if(v.hasOwnProperty(t)){return v[t](e)}return undefined}static connectionSet(t){return new a(t)}static effectiveInputPolicy(t){return new o(t)}static effectiveOutputPolicy(t){return new c(t)}static operation(t){return new l(t)}static rootElement(t){return new h(t)}static soapAction(t){return new u(t)}static soapAddress(t){return new f(t)}static uri(t){return new d(t)}static wsdlAddress(t){return new p(t)}static wsdlConnection(t){return new m(t)}static xmlConnection(t){return new g(t)}static xsdConnection(t){return new b(t)}}e.ConnectionSetNamespace=v},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.DatasetsNamespace=void 0;var n=i(206);var s=i(208);const r=s.NamespaceIds.datasets.id;class a extends n.XmlObject{constructor(t){super(r,"data",t)}[n.$isNsAgnostic](){return true}}class o extends n.XFAObject{constructor(t){super(r,"datasets",true);this.data=null;this.Signature=null}[n.$onChild](t){const e=t[n.$nodeName];if(e==="data"&&t[n.$namespaceId]===r||e==="Signature"&&t[n.$namespaceId]===s.NamespaceIds.signature.id){this[e]=t}this[n.$appendChild](t)}}class c{static[s.$buildXFAObject](t,e){if(c.hasOwnProperty(t)){return c[t](e)}return undefined}static datasets(t){return new o(t)}static data(t){return new a(t)}}e.DatasetsNamespace=c},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.LocaleSetNamespace=void 0;var n=i(208);var s=i(206);var r=i(207);const a=n.NamespaceIds.localeSet.id;class o extends s.XFAObject{constructor(t){super(a,"calendarSymbols",true);this.name="gregorian";this.dayNames=new s.XFAObjectArray(2);this.eraNames=null;this.meridiemNames=null;this.monthNames=new s.XFAObjectArray(2)}}class c extends s.StringObject{constructor(t){super(a,"currencySymbol");this.name=(0,r.getStringOption)(t.name,["symbol","isoname","decimal"])}}class l extends s.XFAObject{constructor(t){super(a,"currencySymbols",true);this.currencySymbol=new s.XFAObjectArray(3)}}class h extends s.StringObject{constructor(t){super(a,"datePattern");this.name=(0,r.getStringOption)(t.name,["full","long","med","short"])}}class u extends s.XFAObject{constructor(t){super(a,"datePatterns",true);this.datePattern=new s.XFAObjectArray(4)}}class f extends s.ContentObject{constructor(t){super(a,"dateTimeSymbols")}}class d extends s.StringObject{constructor(t){super(a,"day")}}class p extends s.XFAObject{constructor(t){super(a,"dayNames",true);this.abbr=(0,r.getInteger)({data:t.abbr,defaultValue:0,validate:t=>t===1});this.day=new s.XFAObjectArray(7)}}class m extends s.StringObject{constructor(t){super(a,"era")}}class g extends s.XFAObject{constructor(t){super(a,"eraNames",true);this.era=new s.XFAObjectArray(2)}}class b extends s.XFAObject{constructor(t){super(a,"locale",true);this.desc=t.desc||"";this.name="isoname";this.calendarSymbols=null;this.currencySymbols=null;this.datePatterns=null;this.dateTimeSymbols=null;this.numberPatterns=null;this.numberSymbols=null;this.timePatterns=null;this.typeFaces=null}}class v extends s.XFAObject{constructor(t){super(a,"localeSet",true);this.locale=new s.XFAObjectArray}}class w extends s.StringObject{constructor(t){super(a,"meridiem")}}class y extends s.XFAObject{constructor(t){super(a,"meridiemNames",true);this.meridiem=new s.XFAObjectArray(2)}}class A extends s.StringObject{constructor(t){super(a,"month")}}class k extends s.XFAObject{constructor(t){super(a,"monthNames",true);this.abbr=(0,r.getInteger)({data:t.abbr,defaultValue:0,validate:t=>t===1});this.month=new s.XFAObjectArray(12)}}class x extends s.StringObject{constructor(t){super(a,"numberPattern");this.name=(0,r.getStringOption)(t.name,["full","long","med","short"])}}class S extends s.XFAObject{constructor(t){super(a,"numberPatterns",true);this.numberPattern=new s.XFAObjectArray(4)}}class M extends s.StringObject{constructor(t){super(a,"numberSymbol");this.name=(0,r.getStringOption)(t.name,["decimal","grouping","percent","minus","zero"])}}class _ extends s.XFAObject{constructor(t){super(a,"numberSymbols",true);this.numberSymbol=new s.XFAObjectArray(5)}}class E extends s.StringObject{constructor(t){super(a,"timePattern");this.name=(0,r.getStringOption)(t.name,["full","long","med","short"])}}class C extends s.XFAObject{constructor(t){super(a,"timePatterns",true);this.timePattern=new s.XFAObjectArray(4)}}class O extends s.XFAObject{constructor(t){super(a,"typeFace",true);this.name=t.name|""}}class T extends s.XFAObject{constructor(t){super(a,"typeFaces",true);this.typeFace=new s.XFAObjectArray}}class I{static[n.$buildXFAObject](t,e){if(I.hasOwnProperty(t)){return I[t](e)}return undefined}static calendarSymbols(t){return new o(t)}static currencySymbol(t){return new c(t)}static currencySymbols(t){return new l(t)}static datePattern(t){return new h(t)}static datePatterns(t){return new u(t)}static dateTimeSymbols(t){return new f(t)}static day(t){return new d(t)}static dayNames(t){return new p(t)}static era(t){return new m(t)}static eraNames(t){return new g(t)}static locale(t){return new b(t)}static localeSet(t){return new v(t)}static meridiem(t){return new w(t)}static meridiemNames(t){return new y(t)}static month(t){return new A(t)}static monthNames(t){return new k(t)}static numberPattern(t){return new x(t)}static numberPatterns(t){return new S(t)}static numberSymbol(t){return new M(t)}static numberSymbols(t){return new _(t)}static timePattern(t){return new E(t)}static timePatterns(t){return new C(t)}static typeFace(t){return new O(t)}static typeFaces(t){return new T(t)}}e.LocaleSetNamespace=I},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.SignatureNamespace=void 0;var n=i(208);var s=i(206);const r=n.NamespaceIds.signature.id;class a extends s.XFAObject{constructor(t){super(r,"signature",true)}}class o{static[n.$buildXFAObject](t,e){if(o.hasOwnProperty(t)){return o[t](e)}return undefined}static signature(t){return new a(t)}}e.SignatureNamespace=o},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.StylesheetNamespace=void 0;var n=i(208);var s=i(206);const r=n.NamespaceIds.stylesheet.id;class a extends s.XFAObject{constructor(t){super(r,"stylesheet",true)}}class o{static[n.$buildXFAObject](t,e){if(o.hasOwnProperty(t)){return o[t](e)}return undefined}static stylesheet(t){return new a(t)}}e.StylesheetNamespace=o},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.XdpNamespace=void 0;var n=i(208);var s=i(206);const r=n.NamespaceIds.xdp.id;class a extends s.XFAObject{constructor(t){super(r,"xdp",true);this.uuid=t.uuid||"";this.timeStamp=t.timeStamp||"";this.config=null;this.connectionSet=null;this.datasets=null;this.localeSet=null;this.stylesheet=new s.XFAObjectArray;this.template=null}[s.$onChildCheck](t){const e=n.NamespaceIds[t[s.$nodeName]];return e&&t[s.$namespaceId]===e.id}}class o{static[n.$buildXFAObject](t,e){if(o.hasOwnProperty(t)){return o[t](e)}return undefined}static xdp(t){return new a(t)}}e.XdpNamespace=o},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.XhtmlNamespace=void 0;var n=i(206);var s=i(208);var r=i(213);var a=i(207);const o=s.NamespaceIds.xhtml.id;const c=Symbol();const l=new Set(["color","font","font-family","font-size","font-stretch","font-style","font-weight","margin","margin-bottom","margin-left","margin-right","margin-top","letter-spacing","line-height","orphans","page-break-after","page-break-before","page-break-inside","tab-interval","tab-stop","text-align","text-decoration","text-indent","vertical-align","widows","kerning-mode","xfa-font-horizontal-scale","xfa-font-vertical-scale","xfa-spacerun","xfa-tab-stops"]);const h=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",t=>t==="none"?"none":"normal"],["xfa-font-horizontal-scale",t=>`scaleX(${Math.max(0,Math.min(parseInt(t)/100)).toFixed(2)})`],["xfa-font-vertical-scale",t=>`scaleY(${Math.max(0,Math.min(parseInt(t)/100)).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(t,e)=>{t=e.fontSize=(0,a.getMeasurement)(t);return(0,r.measureToString)(.99*t)}],["letter-spacing",t=>(0,r.measureToString)((0,a.getMeasurement)(t))],["line-height",t=>(0,r.measureToString)((0,a.getMeasurement)(t))],["margin",t=>(0,r.measureToString)((0,a.getMeasurement)(t))],["margin-bottom",t=>(0,r.measureToString)((0,a.getMeasurement)(t))],["margin-left",t=>(0,r.measureToString)((0,a.getMeasurement)(t))],["margin-right",t=>(0,r.measureToString)((0,a.getMeasurement)(t))],["margin-top",t=>(0,r.measureToString)((0,a.getMeasurement)(t))],["text-indent",t=>(0,r.measureToString)((0,a.getMeasurement)(t))],["font-family",t=>t],["vertical-align",t=>(0,r.measureToString)((0,a.getMeasurement)(t))]]);const u=/\s+/g;const f=/[\r\n]+/g;const d=/\r\n?/g;function p(t,e,i){const s=Object.create(null);if(!t){return s}const o=Object.create(null);for(const[e,i]of t.split(";").map((t=>t.split(":",2)))){const t=h.get(e);if(t===""){continue}let n=i;if(t){if(typeof t==="string"){n=t}else{n=t(i,o)}}if(e.endsWith("scale")){if(s.transform){s.transform=`${s[e]} ${n}`}else{s.transform=n}}else{s[e.replaceAll(/-([a-zA-Z])/g,((t,e)=>e.toUpperCase()))]=n}}if(s.fontFamily){(0,r.setFontFamily)({typeface:s.fontFamily,weight:s.fontWeight||"normal",posture:s.fontStyle||"normal",size:o.fontSize||0},e,e[n.$globalData].fontFinder,s)}if(i&&s.verticalAlign&&s.verticalAlign!=="0px"&&s.fontSize){const t=.583;const e=.333;const i=(0,a.getMeasurement)(s.fontSize);s.fontSize=(0,r.measureToString)(i*t);s.verticalAlign=(0,r.measureToString)(Math.sign((0,a.getMeasurement)(s.verticalAlign))*i*e)}if(i&&s.fontSize){s.fontSize=`calc(${s.fontSize} * var(--scale-factor))`}(0,r.fixTextIndent)(s);return s}function m(t){if(!t.style){return""}return t.style.trim().split(/\s*;\s*/).filter((t=>!!t)).map((t=>t.split(/\s*:\s*/,2))).filter((e=>{let[i,s]=e;if(i==="font-family"){t[n.$globalData].usedTypefaces.add(s)}return l.has(i)})).map((t=>t.join(":"))).join(";")}const g=new Set(["body","html"]);class b extends n.XmlObject{constructor(t,e){super(o,e);this[c]=false;this.style=t.style||""}[n.$clean](t){super[n.$clean](t);this.style=m(this)}[n.$acceptWhitespace](){return!g.has(this[n.$nodeName])}[n.$onText](t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(!e){t=t.replace(f,"");if(!this.style.includes("xfa-spacerun:yes")){t=t.replace(u," ")}}else{this[c]=true}if(t){this[n.$content]+=t}}[n.$pushGlyphs](t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;const i=Object.create(null);const s={top:NaN,bottom:NaN,left:NaN,right:NaN};let r=null;for(const[t,e]of this.style.split(";").map((t=>t.split(":",2)))){switch(t){case"font-family":i.typeface=(0,a.stripQuotes)(e);break;case"font-size":i.size=(0,a.getMeasurement)(e);break;case"font-weight":i.weight=e;break;case"font-style":i.posture=e;break;case"letter-spacing":i.letterSpacing=(0,a.getMeasurement)(e);break;case"margin":const t=e.split(/ \t/).map((t=>(0,a.getMeasurement)(t)));switch(t.length){case 1:s.top=s.bottom=s.left=s.right=t[0];break;case 2:s.top=s.bottom=t[0];s.left=s.right=t[1];break;case 3:s.top=t[0];s.bottom=t[2];s.left=s.right=t[1];break;case 4:s.top=t[0];s.left=t[1];s.bottom=t[2];s.right=t[3];break}break;case"margin-top":s.top=(0,a.getMeasurement)(e);break;case"margin-bottom":s.bottom=(0,a.getMeasurement)(e);break;case"margin-left":s.left=(0,a.getMeasurement)(e);break;case"margin-right":s.right=(0,a.getMeasurement)(e);break;case"line-height":r=(0,a.getMeasurement)(e);break}}t.pushData(i,s,r);if(this[n.$content]){t.addString(this[n.$content])}else{for(const e of this[n.$getChildren]()){if(e[n.$nodeName]==="#text"){t.addString(e[n.$content]);continue}e[n.$pushGlyphs](t)}}if(e){t.popFont()}}[n.$toHTML](t){const e=[];this[n.$extra]={children:e};this[n.$childrenToHTML]({});if(e.length===0&&!this[n.$content]){return a.HTMLResult.EMPTY}let i;if(this[c]){i=this[n.$content]?this[n.$content].replace(d,"\n"):undefined}else{i=this[n.$content]||undefined}return a.HTMLResult.success({name:this[n.$nodeName],attributes:{href:this.href,style:p(this.style,this,this[c])},children:e,value:i})}}class v extends b{constructor(t){super(t,"a");this.href=(0,r.fixURL)(t.href)||""}}class w extends b{constructor(t){super(t,"b")}[n.$pushGlyphs](t){t.pushFont({weight:"bold"});super[n.$pushGlyphs](t);t.popFont()}}class y extends b{constructor(t){super(t,"body")}[n.$toHTML](t){const e=super[n.$toHTML](t);const{html:i}=e;if(!i){return a.HTMLResult.EMPTY}i.name="div";i.attributes.class=["xfaRich"];return e}}class A extends b{constructor(t){super(t,"br")}[n.$text](){return"\n"}[n.$pushGlyphs](t){t.addString("\n")}[n.$toHTML](t){return a.HTMLResult.success({name:"br"})}}class k extends b{constructor(t){super(t,"html")}[n.$toHTML](t){const e=[];this[n.$extra]={children:e};this[n.$childrenToHTML]({});if(e.length===0){return a.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[n.$content]||""})}if(e.length===1){const t=e[0];if(t.attributes&&t.attributes.class.includes("xfaRich")){return a.HTMLResult.success(t)}}return a.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:e})}}class x extends b{constructor(t){super(t,"i")}[n.$pushGlyphs](t){t.pushFont({posture:"italic"});super[n.$pushGlyphs](t);t.popFont()}}class S extends b{constructor(t){super(t,"li")}}class M extends b{constructor(t){super(t,"ol")}}class _ extends b{constructor(t){super(t,"p")}[n.$pushGlyphs](t){super[n.$pushGlyphs](t,false);t.addString("\n");t.addPara();t.popFont()}[n.$text](){const t=this[n.$getParent]()[n.$getChildren]();if(t.at(-1)===this){return super[n.$text]()}return super[n.$text]()+"\n"}}class E extends b{constructor(t){super(t,"span")}}class C extends b{constructor(t){super(t,"sub")}}class O extends b{constructor(t){super(t,"sup")}}class T extends b{constructor(t){super(t,"ul")}}class I{static[s.$buildXFAObject](t,e){if(I.hasOwnProperty(t)){return I[t](e)}return undefined}static a(t){return new v(t)}static b(t){return new w(t)}static body(t){return new y(t)}static br(t){return new A(t)}static html(t){return new k(t)}static i(t){return new x(t)}static li(t){return new S(t)}static ol(t){return new M(t)}static p(t){return new _(t)}static span(t){return new E(t)}static sub(t){return new C(t)}static sup(t){return new O(t)}static ul(t){return new T(t)}}e.XhtmlNamespace=I},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.UnknownNamespace=void 0;var n=i(208);var s=i(206);class r{constructor(t){this.namespaceId=t}[n.$buildXFAObject](t,e){return new s.XmlObject(this.namespaceId,t,e)}}e.UnknownNamespace=r},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.DatasetReader=void 0;var n=i(2);var s=i(135);var r=i(195);function a(t){try{return(0,n.stringToUTF8String)(t)}catch(e){(0,n.warn)(`UTF-8 decoding failed: "${e}".`);return t}}class o extends r.SimpleXMLParser{constructor(t){super(t);this.node=null}onEndElement(t){const e=super.onEndElement(t);if(e&&t==="xfa:datasets"){this.node=e;throw new Error("Aborting DatasetXMLParser.")}}}class c{constructor(t){if(t.datasets){this.node=new r.SimpleXMLParser({hasAttributes:true}).parseFromString(t.datasets).documentElement}else{const e=new o({hasAttributes:true});try{e.parseFromString(t["xdp:xdp"])}catch(t){}this.node=e.node}}getValue(t){if(!this.node||!t){return""}const e=this.node.searchNode((0,s.parseXFAPath)(t),0);if(!e){return""}const i=e.firstChild;if(i&&i.nodeName==="value"){return e.children.map((t=>a(t.textContent)))}return a(e.textContent)}}e.DatasetReader=c},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.XRef=void 0;var n=i(2);var s=i(134);var r=i(135);var a=i(146);var o=i(136);var c=i(196);class l{constructor(t,e){this.stream=t;this.pdfManager=e;this.entries=[];this.xrefstms=Object.create(null);this._cacheMap=new Map;this._pendingRefs=new s.RefSet;this.stats=new r.DocStats(e.msgHandler);this._newRefNum=null}getNewRef(){if(this._newRefNum===null){this._newRefNum=this.entries.length||1}return s.Ref.get(this._newRefNum++,0)}resetNewRef(){this._newRefNum=null}setStartXRef(t){this.startXRefQueue=[t]}parse(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;let e;if(!t){e=this.readXRef()}else{(0,n.warn)("Indexing all PDF objects");e=this.indexObjects()}e.assignXref(this);this.trailer=e;let i;try{i=e.get("Encrypt")}catch(t){if(t instanceof r.MissingDataException){throw t}(0,n.warn)(`XRef.parse - Invalid "Encrypt" reference: "${t}".`)}if(i instanceof s.Dict){const t=e.get("ID");const n=t&&t.length?t[0]:"";i.suppressEncryption=true;this.encrypt=new c.CipherTransformFactory(i,n,this.pdfManager.password)}let a;try{a=e.get("Root")}catch(t){if(t instanceof r.MissingDataException){throw t}(0,n.warn)(`XRef.parse - Invalid "Root" reference: "${t}".`)}if(a instanceof s.Dict){try{const t=a.get("Pages");if(t instanceof s.Dict){this.root=a;return}}catch(t){if(t instanceof r.MissingDataException){throw t}(0,n.warn)(`XRef.parse - Invalid "Pages" reference: "${t}".`)}}if(!t){throw new r.XRefParseException}throw new n.InvalidPDFException("Invalid Root reference.")}processXRefTable(t){if(!("tableState"in this)){this.tableState={entryNum:0,streamPos:t.lexer.stream.pos,parserBuf1:t.buf1,parserBuf2:t.buf2}}const e=this.readXRefTable(t);if(!(0,s.isCmd)(e,"trailer")){throw new n.FormatError("Invalid XRef table: could not find trailer dictionary")}let i=t.getObj();if(!(i instanceof s.Dict)&&i.dict){i=i.dict}if(!(i instanceof s.Dict)){throw new n.FormatError("Invalid XRef table: could not parse trailer dictionary")}delete this.tableState;return i}readXRefTable(t){const e=t.lexer.stream;const i=this.tableState;e.pos=i.streamPos;t.buf1=i.parserBuf1;t.buf2=i.parserBuf2;let r;while(true){if(!("firstEntryNum"in i)||!("entryCount"in i)){if((0,s.isCmd)(r=t.getObj(),"trailer")){break}i.firstEntryNum=r;i.entryCount=t.getObj()}let a=i.firstEntryNum;const o=i.entryCount;if(!Number.isInteger(a)||!Number.isInteger(o)){throw new n.FormatError("Invalid XRef table: wrong types in subsection header")}for(let r=i.entryNum;r<o;r++){i.streamPos=e.pos;i.entryNum=r;i.parserBuf1=t.buf1;i.parserBuf2=t.buf2;const c={};c.offset=t.getObj();c.gen=t.getObj();const l=t.getObj();if(l instanceof s.Cmd){switch(l.cmd){case"f":c.free=true;break;case"n":c.uncompressed=true;break}}if(!Number.isInteger(c.offset)||!Number.isInteger(c.gen)||!(c.free||c.uncompressed)){throw new n.FormatError(`Invalid entry in XRef subsection: ${a}, ${o}`)}if(r===0&&c.free&&a===1){a=0}if(!this.entries[r+a]){this.entries[r+a]=c}}i.entryNum=0;i.streamPos=e.pos;i.parserBuf1=t.buf1;i.parserBuf2=t.buf2;delete i.firstEntryNum;delete i.entryCount}if(this.entries[0]&&!this.entries[0].free){throw new n.FormatError("Invalid XRef table: unexpected first object")}return r}processXRefStream(t){if(!("streamState"in this)){const e=t.dict;const i=e.get("W");let n=e.get("Index");if(!n){n=[0,e.get("Size")]}this.streamState={entryRanges:n,byteWidths:i,entryNum:0,streamPos:t.pos}}this.readXRefStream(t);delete this.streamState;return t.dict}readXRefStream(t){const e=this.streamState;t.pos=e.streamPos;const[i,s,r]=e.byteWidths;const a=e.entryRanges;while(a.length>0){const[o,c]=a;if(!Number.isInteger(o)||!Number.isInteger(c)){throw new n.FormatError(`Invalid XRef range fields: ${o}, ${c}`)}if(!Number.isInteger(i)||!Number.isInteger(s)||!Number.isInteger(r)){throw new n.FormatError(`Invalid XRef entry fields length: ${o}, ${c}`)}for(let a=e.entryNum;a<c;++a){e.entryNum=a;e.streamPos=t.pos;let c=0,l=0,h=0;for(let e=0;e<i;++e){const e=t.getByte();if(e===-1){throw new n.FormatError("Invalid XRef byteWidths 'type'.")}c=c<<8|e}if(i===0){c=1}for(let e=0;e<s;++e){const e=t.getByte();if(e===-1){throw new n.FormatError("Invalid XRef byteWidths 'offset'.")}l=l<<8|e}for(let e=0;e<r;++e){const e=t.getByte();if(e===-1){throw new n.FormatError("Invalid XRef byteWidths 'generation'.")}h=h<<8|e}const u={};u.offset=l;u.gen=h;switch(c){case 0:u.free=true;break;case 1:u.uncompressed=true;break;case 2:break;default:throw new n.FormatError(`Invalid XRef entry type: ${c}`)}if(!this.entries[o+a]){this.entries[o+a]=u}}e.entryNum=0;e.streamPos=t.pos;a.splice(0,2)}}indexObjects(){const t=9,e=10,i=13,o=32;const c=37,l=60;function h(t,n){let s="",r=t[n];while(r!==e&&r!==i&&r!==l){if(++n>=t.length){break}s+=String.fromCharCode(r);r=t[n]}return s}function u(t,e,i){const n=i.length,s=t.length;let r=0;while(e<s){let s=0;while(s<n&&t[e+s]===i[s]){++s}if(s>=n){break}e++;r++}return r}const f=/^(\d+)\s+(\d+)\s+obj\b/;const d=/\bendobj[\b\s]$/;const p=/\s+(\d+\s+\d+\s+obj[\b\s<])$/;const m=25;const g=new Uint8Array([116,114,97,105,108,101,114]);const b=new Uint8Array([115,116,97,114,116,120,114,101,102]);const v=new Uint8Array([111,98,106]);const w=new Uint8Array([47,88,82,101,102]);this.entries.length=0;this._cacheMap.clear();const y=this.stream;y.pos=0;const A=y.getBytes(),k=A.length;let x=y.start;const S=[],M=[];while(x<k){let s=A[x];if(s===t||s===e||s===i||s===o){++x;continue}if(s===c){do{++x;if(x>=k){break}s=A[x]}while(s!==e&&s!==i);continue}const l=h(A,x);let _;if(l.startsWith("xref")&&(l.length===4||/\s/.test(l[4]))){x+=u(A,x,g);S.push(x);x+=u(A,x,b)}else if(_=f.exec(l)){const t=_[1]|0,e=_[2]|0;let i,s=x+l.length,o=false;if(!this.entries[t]){o=true}else if(this.entries[t].gen===e){try{const t=new a.Parser({lexer:new a.Lexer(y.makeSubStream(s))});t.getObj();o=true}catch(t){if(t instanceof r.ParserEOFException){(0,n.warn)(`indexObjects -- checking object (${l}): "${t}".`)}else{o=true}}}if(o){this.entries[t]={offset:x-y.start,gen:e,uncompressed:true}}while(s<A.length){const t=s+u(A,s,v)+4;i=t-x;const e=Math.max(t-m,s);const r=(0,n.bytesToString)(A.subarray(e,t));if(d.test(r)){break}else{const t=p.exec(r);if(t&&t[1]){(0,n.warn)('indexObjects: Found new "obj" inside of another "obj", '+'caused by missing "endobj" -- trying to recover.');i-=t[1].length;break}}s=t}const c=A.subarray(x,x+i);const h=u(c,0,w);if(h<i&&c[h+5]<64){M.push(x-y.start);this.xrefstms[x-y.start]=1}x+=i}else if(l.startsWith("trailer")&&(l.length===7||/\s/.test(l[7]))){S.push(x);x+=u(A,x,b)}else{x+=l.length+1}}for(const t of M){this.startXRefQueue.push(t);this.readXRef(true)}let _,E;for(const t of[...S,"generationFallback",...S]){if(t==="generationFallback"){if(!E){break}this._generationFallback=true;continue}y.pos=t;const e=new a.Parser({lexer:new a.Lexer(y),xref:this,allowStreams:true,recoveryMode:true});const i=e.getObj();if(!(0,s.isCmd)(i,"trailer")){continue}const n=e.getObj();if(!(n instanceof s.Dict)){continue}let r=false;try{const t=n.get("Root");if(!(t instanceof s.Dict)){continue}const e=t.get("Pages");if(!(e instanceof s.Dict)){continue}const i=e.get("Count");if(Number.isInteger(i)){r=true}}catch(t){E=t;continue}if(r&&n.has("ID")){return n}_=n}if(_){return _}if(this.topDict){return this.topDict}throw new n.InvalidPDFException("Invalid PDF structure.")}readXRef(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;const e=this.stream;const i=new Set;try{while(this.startXRefQueue.length){const t=this.startXRefQueue[0];if(i.has(t)){(0,n.warn)("readXRef - skipping XRef table since it was already parsed.");this.startXRefQueue.shift();continue}i.add(t);e.pos=t+e.start;const r=new a.Parser({lexer:new a.Lexer(e),xref:this,allowStreams:true});let c=r.getObj();let l;if((0,s.isCmd)(c,"xref")){l=this.processXRefTable(r);if(!this.topDict){this.topDict=l}c=l.get("XRefStm");if(Number.isInteger(c)){const t=c;if(!(t in this.xrefstms)){this.xrefstms[t]=1;this.startXRefQueue.push(t)}}}else if(Number.isInteger(c)){if(!Number.isInteger(r.getObj())||!(0,s.isCmd)(r.getObj(),"obj")||!((c=r.getObj())instanceof o.BaseStream)){throw new n.FormatError("Invalid XRef stream")}l=this.processXRefStream(c);if(!this.topDict){this.topDict=l}if(!l){throw new n.FormatError("Failed to read XRef stream")}}else{throw new n.FormatError("Invalid XRef stream header")}c=l.get("Prev");if(Number.isInteger(c)){this.startXRefQueue.push(c)}else if(c instanceof s.Ref){this.startXRefQueue.push(c.num)}this.startXRefQueue.shift()}return this.topDict}catch(t){if(t instanceof r.MissingDataException){throw t}(0,n.info)("(while reading XRef): "+t);this.startXRefQueue.shift()}if(t){return undefined}throw new r.XRefParseException}getEntry(t){const e=this.entries[t];if(e&&!e.free&&e.offset){return e}return null}fetchIfRef(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(t instanceof s.Ref){return this.fetch(t,e)}return t}fetch(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(!(t instanceof s.Ref)){throw new Error("ref object is not a reference")}const i=t.num;const r=this._cacheMap.get(i);if(r!==undefined){if(r instanceof s.Dict&&!r.objId){r.objId=t.toString()}return r}let a=this.getEntry(i);if(a===null){this._cacheMap.set(i,a);return a}if(this._pendingRefs.has(t)){this._pendingRefs.remove(t);(0,n.warn)(`Ignoring circular reference: ${t}.`);return s.CIRCULAR_REF}this._pendingRefs.put(t);try{if(a.uncompressed){a=this.fetchUncompressed(t,a,e)}else{a=this.fetchCompressed(t,a,e)}this._pendingRefs.remove(t)}catch(e){this._pendingRefs.remove(t);throw e}if(a instanceof s.Dict){a.objId=t.toString()}else if(a instanceof o.BaseStream){a.dict.objId=t.toString()}return a}fetchUncompressed(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;const c=t.gen;let l=t.num;if(e.gen!==c){const a=`Inconsistent generation in XRef: ${t}`;if(this._generationFallback&&e.gen<c){(0,n.warn)(a);return this.fetchUncompressed(s.Ref.get(l,e.gen),e,i)}throw new r.XRefEntryException(a)}const h=this.stream.makeSubStream(e.offset+this.stream.start);const u=new a.Parser({lexer:new a.Lexer(h),xref:this,allowStreams:true});const f=u.getObj();const d=u.getObj();const p=u.getObj();if(f!==l||d!==c||!(p instanceof s.Cmd)){throw new r.XRefEntryException(`Bad (uncompressed) XRef entry: ${t}`)}if(p.cmd!=="obj"){if(p.cmd.startsWith("obj")){l=parseInt(p.cmd.substring(3),10);if(!Number.isNaN(l)){return l}}throw new r.XRefEntryException(`Bad (uncompressed) XRef entry: ${t}`)}if(this.encrypt&&!i){e=u.getObj(this.encrypt.createCipherTransform(l,c))}else{e=u.getObj()}if(!(e instanceof o.BaseStream)){this._cacheMap.set(l,e)}return e}fetchCompressed(t,e){const i=e.offset;const c=this.fetch(s.Ref.get(i,0));if(!(c instanceof o.BaseStream)){throw new n.FormatError("bad ObjStm stream")}const l=c.dict.get("First");const h=c.dict.get("N");if(!Number.isInteger(l)||!Number.isInteger(h)){throw new n.FormatError("invalid first and n parameters for ObjStm stream")}let u=new a.Parser({lexer:new a.Lexer(c),xref:this,allowStreams:true});const f=new Array(h);const d=new Array(h);for(let t=0;t<h;++t){const e=u.getObj();if(!Number.isInteger(e)){throw new n.FormatError(`invalid object number in the ObjStm stream: ${e}`)}const i=u.getObj();if(!Number.isInteger(i)){throw new n.FormatError(`invalid object offset in the ObjStm stream: ${i}`)}f[t]=e;d[t]=i}const p=(c.start||0)+l;const m=new Array(h);for(let t=0;t<h;++t){const e=t<h-1?d[t+1]-d[t]:undefined;if(e<0){throw new n.FormatError("Invalid offset in the ObjStm stream.")}u=new a.Parser({lexer:new a.Lexer(c.makeSubStream(p+d[t],e,c.dict)),xref:this,allowStreams:true});const s=u.getObj();m[t]=s;if(s instanceof o.BaseStream){continue}const r=f[t],l=this.entries[r];if(l&&l.offset===i&&l.gen===t){this._cacheMap.set(r,s)}}e=m[e.gen];if(e===undefined){throw new r.XRefEntryException(`Bad (compressed) XRef entry: ${t}`)}return e}async fetchIfRefAsync(t,e){if(t instanceof s.Ref){return this.fetchAsync(t,e)}return t}async fetchAsync(t,e){try{return this.fetch(t,e)}catch(i){if(!(i instanceof r.MissingDataException)){throw i}await this.pdfManager.requestRange(i.begin,i.end);return this.fetchAsync(t,e)}}getCatalogObj(){return this.root}}e.XRef=l},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.MessageHandler=void 0;var n=i(2);const s={UNKNOWN:0,DATA:1,ERROR:2};const r={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function a(t){if(!(t instanceof Error||typeof t==="object"&&t!==null)){(0,n.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.')}switch(t.name){case"AbortException":return new n.AbortException(t.message);case"MissingPDFException":return new n.MissingPDFException(t.message);case"PasswordException":return new n.PasswordException(t.message,t.code);case"UnexpectedResponseException":return new n.UnexpectedResponseException(t.message,t.status);case"UnknownErrorException":return new n.UnknownErrorException(t.message,t.details);default:return new n.UnknownErrorException(t.message,t.toString())}}class o{constructor(t,e,i){this.sourceName=t;this.targetName=e;this.comObj=i;this.callbackId=1;this.streamId=1;this.streamSinks=Object.create(null);this.streamControllers=Object.create(null);this.callbackCapabilities=Object.create(null);this.actionHandler=Object.create(null);this._onComObjOnMessage=t=>{const e=t.data;if(e.targetName!==this.sourceName){return}if(e.stream){this._processStreamMessage(e);return}if(e.callback){const t=e.callbackId;const i=this.callbackCapabilities[t];if(!i){throw new Error(`Cannot resolve callback ${t}`)}delete this.callbackCapabilities[t];if(e.callback===s.DATA){i.resolve(e.data)}else if(e.callback===s.ERROR){i.reject(a(e.reason))}else{throw new Error("Unexpected callback case")}return}const n=this.actionHandler[e.action];if(!n){throw new Error(`Unknown action from worker: ${e.action}`)}if(e.callbackId){const t=this.sourceName;const r=e.sourceName;new Promise((function(t){t(n(e.data))})).then((function(n){i.postMessage({sourceName:t,targetName:r,callback:s.DATA,callbackId:e.callbackId,data:n})}),(function(n){i.postMessage({sourceName:t,targetName:r,callback:s.ERROR,callbackId:e.callbackId,reason:a(n)})}));return}if(e.streamId){this._createStreamSink(e);return}n(e.data)};i.addEventListener("message",this._onComObjOnMessage)}on(t,e){const i=this.actionHandler;if(i[t]){throw new Error(`There is already an actionName called "${t}"`)}i[t]=e}send(t,e,i){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:e},i)}sendWithPromise(t,e,i){const s=this.callbackId++;const r=(0,n.createPromiseCapability)();this.callbackCapabilities[s]=r;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:s,data:e},i)}catch(t){r.reject(t)}return r.promise}sendWithStream(t,e,i,s){const o=this.streamId++,c=this.sourceName,l=this.targetName,h=this.comObj;return new ReadableStream({start:i=>{const r=(0,n.createPromiseCapability)();this.streamControllers[o]={controller:i,startCall:r,pullCall:null,cancelCall:null,isClosed:false};h.postMessage({sourceName:c,targetName:l,action:t,streamId:o,data:e,desiredSize:i.desiredSize},s);return r.promise},pull:t=>{const e=(0,n.createPromiseCapability)();this.streamControllers[o].pullCall=e;h.postMessage({sourceName:c,targetName:l,stream:r.PULL,streamId:o,desiredSize:t.desiredSize});return e.promise},cancel:t=>{(0,n.assert)(t instanceof Error,"cancel must have a valid reason");const e=(0,n.createPromiseCapability)();this.streamControllers[o].cancelCall=e;this.streamControllers[o].isClosed=true;h.postMessage({sourceName:c,targetName:l,stream:r.CANCEL,streamId:o,reason:a(t)});return e.promise}},i)}_createStreamSink(t){const e=t.streamId,i=this.sourceName,s=t.sourceName,o=this.comObj;const c=this,l=this.actionHandler[t.action];const h={enqueue(t){let a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;let c=arguments.length>2?arguments[2]:undefined;if(this.isCancelled){return}const l=this.desiredSize;this.desiredSize-=a;if(l>0&&this.desiredSize<=0){this.sinkCapability=(0,n.createPromiseCapability)();this.ready=this.sinkCapability.promise}o.postMessage({sourceName:i,targetName:s,stream:r.ENQUEUE,streamId:e,chunk:t},c)},close(){if(this.isCancelled){return}this.isCancelled=true;o.postMessage({sourceName:i,targetName:s,stream:r.CLOSE,streamId:e});delete c.streamSinks[e]},error(t){(0,n.assert)(t instanceof Error,"error must have a valid reason");if(this.isCancelled){return}this.isCancelled=true;o.postMessage({sourceName:i,targetName:s,stream:r.ERROR,streamId:e,reason:a(t)})},sinkCapability:(0,n.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:false,desiredSize:t.desiredSize,ready:null};h.sinkCapability.resolve();h.ready=h.sinkCapability.promise;this.streamSinks[e]=h;new Promise((function(e){e(l(t.data,h))})).then((function(){o.postMessage({sourceName:i,targetName:s,stream:r.START_COMPLETE,streamId:e,success:true})}),(function(t){o.postMessage({sourceName:i,targetName:s,stream:r.START_COMPLETE,streamId:e,reason:a(t)})}))}_processStreamMessage(t){const e=t.streamId,i=this.sourceName,s=t.sourceName,o=this.comObj;const c=this.streamControllers[e],l=this.streamSinks[e];switch(t.stream){case r.START_COMPLETE:if(t.success){c.startCall.resolve()}else{c.startCall.reject(a(t.reason))}break;case r.PULL_COMPLETE:if(t.success){c.pullCall.resolve()}else{c.pullCall.reject(a(t.reason))}break;case r.PULL:if(!l){o.postMessage({sourceName:i,targetName:s,stream:r.PULL_COMPLETE,streamId:e,success:true});break}if(l.desiredSize<=0&&t.desiredSize>0){l.sinkCapability.resolve()}l.desiredSize=t.desiredSize;new Promise((function(t){t(l.onPull&&l.onPull())})).then((function(){o.postMessage({sourceName:i,targetName:s,stream:r.PULL_COMPLETE,streamId:e,success:true})}),(function(t){o.postMessage({sourceName:i,targetName:s,stream:r.PULL_COMPLETE,streamId:e,reason:a(t)})}));break;case r.ENQUEUE:(0,n.assert)(c,"enqueue should have stream controller");if(c.isClosed){break}c.controller.enqueue(t.chunk);break;case r.CLOSE:(0,n.assert)(c,"close should have stream controller");if(c.isClosed){break}c.isClosed=true;c.controller.close();this._deleteStreamController(c,e);break;case r.ERROR:(0,n.assert)(c,"error should have stream controller");c.controller.error(a(t.reason));this._deleteStreamController(c,e);break;case r.CANCEL_COMPLETE:if(t.success){c.cancelCall.resolve()}else{c.cancelCall.reject(a(t.reason))}this._deleteStreamController(c,e);break;case r.CANCEL:if(!l){break}new Promise((function(e){e(l.onCancel&&l.onCancel(a(t.reason)))})).then((function(){o.postMessage({sourceName:i,targetName:s,stream:r.CANCEL_COMPLETE,streamId:e,success:true})}),(function(t){o.postMessage({sourceName:i,targetName:s,stream:r.CANCEL_COMPLETE,streamId:e,reason:a(t)})}));l.sinkCapability.reject(a(t.reason));l.isCancelled=true;delete this.streamSinks[e];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(t,e){await Promise.allSettled([t.startCall&&t.startCall.promise,t.pullCall&&t.pullCall.promise,t.cancelCall&&t.cancelCall.promise]);delete this.streamControllers[e]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}e.MessageHandler=o},(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:true});e.PDFWorkerStream=void 0;var n=i(2);class s{constructor(t){this._msgHandler=t;this._contentLength=null;this._fullRequestReader=null;this._rangeRequestReaders=[]}getFullReader(){(0,n.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once.");this._fullRequestReader=new r(this._msgHandler);return this._fullRequestReader}getRangeReader(t,e){const i=new a(t,e,this._msgHandler);this._rangeRequestReaders.push(i);return i}cancelAllRequests(t){if(this._fullRequestReader){this._fullRequestReader.cancel(t)}for(const e of this._rangeRequestReaders.slice(0)){e.cancel(t)}}}e.PDFWorkerStream=s;class r{constructor(t){this._msgHandler=t;this.onProgress=null;this._contentLength=null;this._isRangeSupported=false;this._isStreamingSupported=false;const e=this._msgHandler.sendWithStream("GetReader");this._reader=e.getReader();this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((t=>{this._isStreamingSupported=t.isStreamingSupported;this._isRangeSupported=t.isRangeSupported;this._contentLength=t.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:t,done:e}=await this._reader.read();if(e){return{value:undefined,done:true}}return{value:t.buffer,done:false}}cancel(t){this._reader.cancel(t)}}class a{constructor(t,e,i){this._msgHandler=i;this.onProgress=null;const n=this._msgHandler.sendWithStream("GetRangeReader",{begin:t,end:e});this._reader=n.getReader()}get isStreamingSupported(){return false}async read(){const{value:t,done:e}=await this._reader.read();if(e){return{value:undefined,done:true}}return{value:t.buffer,done:false}}cancel(t){this._reader.cancel(t)}}}];var e={};function i(n){var s=e[n];if(s!==undefined){return s.exports}var r=e[n]={exports:{}};t[n](r,r.exports,i);return r.exports}(()=>{i.d=(t,e)=>{for(var n in e){if(i.o(e,n)&&!i.o(t,n)){Object.defineProperty(t,n,{enumerable:true,get:e[n]})}}}})();(()=>{i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e)})();(()=>{i.r=t=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(t,"__esModule",{value:true})}})();var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"WorkerMessageHandler",{enumerable:true,get:function(){return e.WorkerMessageHandler}});var e=i(1)})();return n})()))}));(typeof window!=="undefined"?window:{}).pdfjsWorker=pdf_worker;var pdf_worker_entry={};const verdocsViewCss='verdocs-view{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-view div,verdocs-view canvas{-webkit-box-sizing:border-box;box-sizing:border-box}';const CMAPS_URL=`https://unpkg.com/pdfjs-dist@${pdf.version}/cmaps/`;pdf.GlobalWorkerOptions.workerSrc=pdf_worker_entry;const VerdocsView=class{constructor(t){registerInstance(this,t);this.pageRendered=createEvent(this,"pageRendered",7);this.pageLoaded=createEvent(this,"pageLoaded",7);this.pageChange=createEvent(this,"pageChange",7);this.pageInit=createEvent(this,"pageInit",7);this.scaleChange=createEvent(this,"scaleChange",7);this.sdkError=createEvent(this,"sdkError",7);this.fingerprints=[];this.endpoint=VerdocsEndpoint.getDefault();this.rotation=0;this.pageLayers=[{name:"page",type:"canvas"},{name:"controls",type:"div"}];this.loadProgress=0;this.numPages=0;this.domPages={};this.sourcePageMetrics={}}doSrc(t,e){if(t===e){return}this.loadAndRender(t)}componentWillLoad(){this.endpoint.loadSession()}componentDidLoad(){if(this.source){this.loadAndRender(this.source)}}async renderPage(t){var e,i,n;const s=this.domPages[t];if(!s){console.log("[VIEW] Skipping rendering page not yet in DOM",{pageNumber:t});return}const r=this.sourcePageMetrics[t];console.log("[VIEW] Rendering page",{pageNumber:t,pageMetrics:r,domPage:s});try{const e=await this.pdfDocument.getPage(t);const i=e.getViewport({scale:s.xScale});const n=document.getElementById(`${s.containerId}-page`);if(!n){console.log("[VIEW] Unable to find canvas element");return}n.width=s.renderedWidth;n.height=s.renderedHeight;const a=n.getContext("2d");a.clearRect(0,0,s.renderedWidth,s.renderedHeight);await e.render({canvasContext:a,viewport:i});this.pageRendered.emit({renderedPage:s,sourcePageMetrics:r,pages:this.domPages})}catch(t){(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError(t.message,(i=t.response)===null||i===void 0?void 0:i.status,(n=t.response)===null||n===void 0?void 0:n.data));console.warn("[VIEW] Error rendering page",t)}}onProgress(t){console.log(`[VIEW] Progress ${Math.floor(t.loaded/t.total*100)} (${t.loaded} / ${t.total})`);this.loadProgress=Math.floor(100*t.loaded/t.total)}async parsePageMetrics(t){const e=integerSequence(1,t.numPages);for await(let i of e){const e=await t.getPage(1);const[n,s,r,a]=e.view;this.sourcePageMetrics[i]={width:r-n,height:a-s}}console.log("[VIEW] Parsed page metrics",this.sourcePageMetrics)}loadAndRender(t){console.log("[VIEW] Loading",t);const e=this.endpoint.getToken();const i=e?{Authorization:`Bearer ${e}`}:{};const n={url:t,cMapUrl:CMAPS_URL,cMapPacked:true,httpHeaders:i,withCredentials:true,stopAtErrors:true,verbosity:pdf.VerbosityLevel.WARNINGS};const s=pdf$2.getDocument(n,null,null,this.onProgress);s.onProgress=this.onProgress;s.promise.then((async t=>{await this.parsePageMetrics(t);this.pdfDocument=t;this.numPages=t.numPages;this.fingerprints=t.fingerprints;console.log(`[VIEW] Got PDF document fingerprints "${this.fingerprints.join(", ")}", ${this.numPages} page(s)`);this.loadProgress=100})).catch((t=>{var e,i,n;(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError(t.message,(i=t.response)===null||i===void 0?void 0:i.status,(n=t.response)===null||n===void 0?void 0:n.data));console.log("[VIEW] Loading error",t)}))}async handlePageRendered(t){t.stopPropagation();const e=t.detail;this.domPages[e.pageNumber]=e;await this.renderPage(e.pageNumber)}render(){if(this.loadProgress<100){return h(Host,null,h("verdocs-loader",null))}return h(Host,null,Array.apply(null,Array(this.numPages)).map(((t,e)=>{var i,n;return h("verdocs-document-page",{virtualWidth:((i=this.sourcePageMetrics[e+1])===null||i===void 0?void 0:i.width)||612,virtualHeight:((n=this.sourcePageMetrics[e+1])===null||n===void 0?void 0:n.height)||792,pageNumber:e+1,layers:this.pageLayers,onPageRendered:t=>this.handlePageRendered(t)})})))}get component(){return getElement(this)}static get watchers(){return{source:["doSrc"]}}};VerdocsView.style=verdocsViewCss;export{VerdocsDocumentPage as verdocs_document_page,VerdocsLoader as verdocs_loader,VerdocsView as verdocs_view};
|
|
68
|
-
//# sourceMappingURL=p-
|
|
68
|
+
//# sourceMappingURL=p-df84c85a.entry.js.map
|