@toolspack/ttd-pdfjs 0.0.0
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/.eslintignore +6 -0
- package/.eslintrc.js +52 -0
- package/README.md +20 -0
- package/lib/demo.html +8 -0
- package/lib/ttd-pdfjs.common.js +12281 -0
- package/lib/ttd-pdfjs.umd.js +12291 -0
- package/lib/ttd-pdfjs.umd.min.js +63 -0
- package/package.json +37 -0
- package/postcss.config.js +1 -0
- package/src/App.vue +56 -0
- package/src/main.js +8 -0
- package/src/packages/index.js +5 -0
- package/src/packages/pdfjs/PdfView216.vue +331 -0
- package/src/packages/utils/index.js +16 -0
- package/src/styles/base.scss +3 -0
- package/src/styles/common.less +729 -0
- package/src/styles/common.scss +22 -0
- package/src/styles/components/atomic.less +430 -0
- package/src/styles/components/button.scss +62 -0
- package/src/styles/components/el-pagination.scss +21 -0
- package/src/styles/components/file-group.scss +4 -0
- package/src/styles/components/input.scss +19 -0
- package/src/styles/components/message.scss +54 -0
- package/src/styles/components/reset.scss +8 -0
- package/src/styles/components/table.scss +35 -0
- package/src/styles/element-variables.scss +220 -0
- package/src/styles/input.less +59 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["ttd-pdfjs"]=t():e["ttd-pdfjs"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function r(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(a,n,function(t){return e[t]}.bind(null,n));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="fb15")}({0:function(e,t){},"00ee":function(e,t,r){var a=r("b622"),n=a("toStringTag"),i={};i[n]="z",e.exports="[object z]"===String(i)},"0676":function(e,t){function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"06cf":function(e,t,r){var a=r("83ab"),n=r("d1e7"),i=r("5c6c"),o=r("fc6a"),s=r("c04e"),l=r("5135"),c=r("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=a?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(r){}if(l(e,t))return i(!n.f.call(e,t),e[t])}},"0cb2":function(e,t,r){var a=r("7b0b"),n=Math.floor,i="".replace,o=/\$([$&'`]|\d\d?|<[^>]*>)/g,s=/\$([$&'`]|\d\d?)/g;e.exports=function(e,t,r,l,c,u){var h=r+e.length,d=l.length,f=s;return void 0!==c&&(c=a(c),f=o),i.call(u,f,(function(a,i){var o;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(h);case"<":o=c[i.slice(1,-1)];break;default:var s=+i;if(0===s)return a;if(s>d){var u=n(s/10);return 0===u?a:u<=d?void 0===l[u-1]?i.charAt(1):l[u-1]+i.charAt(1):a}o=l[s-1]}return void 0===o?"":o}))}},"0cfb":function(e,t,r){var a=r("83ab"),n=r("d039"),i=r("cc12");e.exports=!a&&!n((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1:function(e,t){},"11b0":function(e,t){function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"13d5":function(e,t,r){"use strict";var a=r("23e7"),n=r("d58f").left,i=r("a640"),o=r("ae40"),s=r("2d00"),l=r("605d"),c=i("reduce"),u=o("reduce",{1:0}),h=!l&&s>79&&s<83;a({target:"Array",proto:!0,forced:!c||!u||h},{reduce:function(e){return n(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"171b":function(e,t){function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"182d":function(e,t,r){var a=r("f8cd");e.exports=function(e,t){var r=a(e);if(r%t)throw RangeError("Wrong offset");return r}},"1be4":function(e,t,r){var a=r("d066");e.exports=a("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1dfe":function(e,t){function r(e,t){return t.get?t.get.call(e):t.value}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"1fb5":function(e,t,r){"use strict";t.byteLength=u,t.toByteArray=d,t.fromByteArray=v;for(var a=[],n=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)a[s]=o[s],n[o.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var a=r===t?0:4-r%4;return[r,a]}function u(e){var t=c(e),r=t[0],a=t[1];return 3*(r+a)/4-a}function h(e,t,r){return 3*(t+r)/4-r}function d(e){var t,r,a=c(e),o=a[0],s=a[1],l=new i(h(e,o,s)),u=0,d=s>0?o-4:o;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[u++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function f(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}function p(e,t,r){for(var a,n=[],i=t;i<r;i+=3)a=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),n.push(f(a));return n.join("")}function v(e){for(var t,r=e.length,n=r%3,i=[],o=16383,s=0,l=r-n;s<l;s+=o)i.push(p(e,s,s+o>l?l:s+o));return 1===n?(t=e[r-1],i.push(a[t>>2]+a[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],i.push(a[t>>10]+a[t>>4&63]+a[t<<2&63]+"=")),i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},2:function(e,t){},2236:function(e,t,r){var a=r("5a43");function n(e){if(Array.isArray(e))return a(e)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"23cb":function(e,t,r){var a=r("a691"),n=Math.max,i=Math.min;e.exports=function(e,t){var r=a(e);return r<0?n(r+t,0):i(r,t)}},"23e7":function(e,t,r){var a=r("da84"),n=r("06cf").f,i=r("9112"),o=r("6eeb"),s=r("ce4e"),l=r("e893"),c=r("94ca");e.exports=function(e,t){var r,u,h,d,f,p,v=e.target,g=e.global,m=e.stat;if(u=g?a:m?a[v]||s(v,{}):(a[v]||{}).prototype,u)for(h in t){if(f=t[h],e.noTargetGet?(p=n(u,h),d=p&&p.value):d=u[h],r=c(g?h:v+(m?".":"#")+h,e.forced),!r&&void 0!==d){if(typeof f===typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),o(u,h,f,e)}}},"241c":function(e,t,r){var a=r("ca84"),n=r("7839"),i=n.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return a(e,i)}},"24fb":function(e,t,r){"use strict";function a(e,t){var r=e[1]||"",a=e[3];if(!a)return r;if(t&&"function"===typeof btoa){var i=n(a),o=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[r].concat(o).concat([i]).join("\n")}return[r].join("\n")}function n(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(r," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=a(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,a){"string"===typeof e&&(e=[[null,e,""]]);var n={};if(a)for(var i=0;i<this.length;i++){var o=this[i][0];null!=o&&(n[o]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);a&&n[l[0]]||(r&&(l[2]?l[2]="".concat(r," and ").concat(l[2]):l[2]=r),t.push(l))}},t}},"278c":function(e,t,r){var a=r("c135"),n=r("9b42"),i=r("6613"),o=r("c240");function s(e,t){return a(e)||n(e,t)||i(e,t)||o()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},"28b9":function(e,t,r){var a=r("171b");function n(e,t){a(e,t),t.add(e)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"2d00":function(e,t,r){var a,n,i=r("da84"),o=r("342f"),s=i.process,l=s&&s.versions,c=l&&l.v8;c?(a=c.split("."),n=a[0]+a[1]):o&&(a=o.match(/Edge\/(\d+)/),(!a||a[1]>=74)&&(a=o.match(/Chrome\/(\d+)/),a&&(n=a[1]))),e.exports=n&&+n},"2d0d":function(e,t,r){r("f8c9");var a=r("36c6"),n=r("6f8f"),i=r("6b58");function o(e){var t=n();return function(){var r,n=a(e);if(t){var o=a(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return i(this,r)}}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},3:function(e,t){},"31b3":function(e,t){function r(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"342f":function(e,t,r){var a=r("d066");e.exports=a("navigator","userAgent")||""},"36c6":function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"37e8":function(e,t,r){var a=r("83ab"),n=r("9bf2"),i=r("825a"),o=r("df75");e.exports=a?Object.defineProperties:function(e,t){i(e);var r,a=o(t),s=a.length,l=0;while(s>l)n.f(e,r=a[l++],t[r]);return e}},"39d2":function(e,t,r){var a=r("923c");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=r("499e").default;n("4daf31d8",a,!0,{sourceMap:!1,shadowMode:!1})},"3bbe":function(e,t,r){var a=r("861d");e.exports=function(e){if(!a(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3c5d":function(e,t,r){"use strict";var a=r("ebb5"),n=r("50c4"),i=r("182d"),o=r("7b0b"),s=r("d039"),l=a.aTypedArray,c=a.exportTypedArrayMethod,u=s((function(){new Int8Array(1).set({})}));c("set",(function(e){l(this);var t=i(arguments.length>1?arguments[1]:void 0,1),r=this.length,a=o(e),s=n(a.length),c=0;if(s+t>r)throw RangeError("Wrong length");while(c<s)this[t+c]=a[c++]}),u)},"3c96":function(e,t){function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},4:function(e,t){},"428f":function(e,t,r){var a=r("da84");e.exports=a},4362:function(e,t,r){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,a="/";t.cwd=function(){return a},t.chdir=function(t){e||(e=r("df7c")),a=e.resolve(t,a)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"448a":function(e,t,r){var a=r("2236"),n=r("11b0"),i=r("6613"),o=r("0676");function s(e){return a(e)||n(e)||i(e)||o()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},"44ad":function(e,t,r){var a=r("d039"),n=r("c6b6"),i="".split;e.exports=a((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==n(e)?i.call(e,""):Object(e)}:Object},"44d2":function(e,t,r){var a=r("b622"),n=r("7c73"),i=r("9bf2"),o=a("unscopables"),s=Array.prototype;void 0==s[o]&&i.f(s,o,{configurable:!0,value:n(null)}),e.exports=function(e){s[o][e]=!0}},"44e7":function(e,t,r){var a=r("861d"),n=r("c6b6"),i=r("b622"),o=i("match");e.exports=function(e){var t;return a(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==n(e))}},"480f":function(e,t,r){var a=r("c135"),n=r("11b0"),i=r("6613"),o=r("c240");function s(e){return a(e)||n(e)||i(e)||o()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},4930:function(e,t,r){var a=r("d039");e.exports=!!Object.getOwnPropertySymbols&&!a((function(){return!String(Symbol())}))},"499e":function(e,t,r){"use strict";function a(e,t){for(var r=[],a={},n=0;n<t.length;n++){var i=t[n],o=i[0],s=i[1],l=i[2],c=i[3],u={id:e+":"+n,css:s,media:l,sourceMap:c};a[o]?a[o].parts.push(u):r.push(a[o]={id:o,parts:[u]})}return r}r.r(t),r.d(t,"default",(function(){return p}));var n="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},o=n&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},h=null,d="data-vue-ssr-id",f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(e,t,r,n){c=r,h=n||{};var o=a(e,t);return v(o),function(t){for(var r=[],n=0;n<o.length;n++){var s=o[n],l=i[s.id];l.refs--,r.push(l)}t?(o=a(e,t),v(o)):o=[];for(n=0;n<r.length;n++){l=r[n];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete i[l.id]}}}}function v(e){for(var t=0;t<e.length;t++){var r=e[t],a=i[r.id];if(a){a.refs++;for(var n=0;n<a.parts.length;n++)a.parts[n](r.parts[n]);for(;n<r.parts.length;n++)a.parts.push(m(r.parts[n]));a.parts.length>r.parts.length&&(a.parts.length=r.parts.length)}else{var o=[];for(n=0;n<r.parts.length;n++)o.push(m(r.parts[n]));i[r.id]={id:r.id,refs:1,parts:o}}}}function g(){var e=document.createElement("style");return e.type="text/css",o.appendChild(e),e}function m(e){var t,r,a=document.querySelector("style["+d+'~="'+e.id+'"]');if(a){if(c)return u;a.parentNode.removeChild(a)}if(f){var n=l++;a=s||(s=g()),t=b.bind(null,a,n,!1),r=b.bind(null,a,n,!0)}else a=g(),t=k.bind(null,a),r=function(){a.parentNode.removeChild(a)};return t(e),function(a){if(a){if(a.css===e.css&&a.media===e.media&&a.sourceMap===e.sourceMap)return;t(e=a)}else r()}}var y=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}();function b(e,t,r,a){var n=r?"":a.css;if(e.styleSheet)e.styleSheet.cssText=y(t,n);else{var i=document.createTextNode(n),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}function k(e,t){var r=t.css,a=t.media,n=t.sourceMap;if(a&&e.setAttribute("media",a),h.ssrId&&e.setAttribute(d,t.id),n&&(r+="\n/*# sourceURL="+n.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),e.styleSheet)e.styleSheet.cssText=r;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}},"4a4b":function(e,t){function r(t,a){return e.exports=r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports["default"]=e.exports,r(t,a)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"4d64":function(e,t,r){var a=r("fc6a"),n=r("50c4"),i=r("23cb"),o=function(e){return function(t,r,o){var s,l=a(t),c=n(l.length),u=i(o,c);if(e&&r!=r){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},5:function(e,t){},5019:function(e,t){function r(e,t,r){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return r}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"50c4":function(e,t,r){var a=r("a691"),n=Math.min;e.exports=function(e){return e>0?n(a(e),9007199254740991):0}},5135:function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},5377:function(e,t,r){var a=r("83ab"),n=r("9bf2"),i=r("ad6d"),o=r("9f7f").UNSUPPORTED_Y;a&&("g"!=/./g.flags||o)&&n.f(RegExp.prototype,"flags",{configurable:!0,get:i})},5692:function(e,t,r){var a=r("c430"),n=r("c6cd");(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.8.3",mode:a?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,r){var a=r("d066"),n=r("241c"),i=r("7418"),o=r("825a");e.exports=a("Reflect","ownKeys")||function(e){var t=n.f(o(e)),r=i.f;return r?t.concat(r(e)):t}},"5a43":function(e,t){function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"5b81":function(e,t,r){"use strict";var a=r("23e7"),n=r("1d80"),i=r("44e7"),o=r("ad6d"),s=r("0cb2"),l=r("b622"),c=r("c430"),u=l("replace"),h=RegExp.prototype,d=Math.max,f=function(e,t,r){return r>e.length?-1:""===t?r:e.indexOf(t,r)};a({target:"String",proto:!0},{replaceAll:function(e,t){var r,a,l,p,v,g,m,y,b,k=n(this),w=0,_=0,S="";if(null!=e){if(r=i(e),r&&(a=String(n("flags"in h?e.flags:o.call(e))),!~a.indexOf("g")))throw TypeError("`.replaceAll` does not allow non-global regexes");if(l=e[u],void 0!==l)return l.call(e,k,t);if(c&&r)return String(k).replace(e,t)}p=String(k),v=String(e),g="function"===typeof t,g||(t=String(t)),m=v.length,y=d(1,m),w=f(p,v,0);while(-1!==w)b=g?String(t(v,w,p)):s(v,p,w,[],void 0,t),S+=p.slice(_,w)+b,_=w+m,w=f(p,v,w+y);return _<p.length&&(S+=p.slice(_)),S}})},"5bc3":function(e,t,r){var a=r("a395");function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"605d":function(e,t,r){var a=r("c6b6"),n=r("da84");e.exports="process"==a(n.process)},"61bd":function(e,t,r){var a=r("171b");function n(e,t,r){a(e,t),t.set(e,r)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},6374:function(e,t,r){var a=r("6613");function n(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=a(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==r["return"]||r["return"]()}finally{if(l)throw o}}}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},6613:function(e,t,r){var a=r("5a43");function n(e,t){if(e){if("string"===typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"69f3":function(e,t,r){var a,n,i,o=r("7f9a"),s=r("da84"),l=r("861d"),c=r("9112"),u=r("5135"),h=r("c6cd"),d=r("f772"),f=r("d012"),p=s.WeakMap,v=function(e){return i(e)?n(e):a(e,{})},g=function(e){return function(t){var r;if(!l(t)||(r=n(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}};if(o){var m=h.state||(h.state=new p),y=m.get,b=m.has,k=m.set;a=function(e,t){return t.facade=e,k.call(m,e,t),t},n=function(e){return y.call(m,e)||{}},i=function(e){return b.call(m,e)}}else{var w=d("state");f[w]=!0,a=function(e,t){return t.facade=e,c(e,w,t),t},n=function(e){return u(e,w)?e[w]:{}},i=function(e){return u(e,w)}}e.exports={set:a,get:n,has:i,enforce:v,getterFor:g}},"6b58":function(e,t,r){var a=r("7037")["default"],n=r("3c96");function i(e,t){if(t&&("object"===a(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return n(e)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},"6eeb":function(e,t,r){var a=r("da84"),n=r("9112"),i=r("5135"),o=r("ce4e"),s=r("8925"),l=r("69f3"),c=l.get,u=l.enforce,h=String(String).split("String");(e.exports=function(e,t,r,s){var l,c=!!s&&!!s.unsafe,d=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof t||i(r,"name")||n(r,"name",t),l=u(r),l.source||(l.source=h.join("string"==typeof t?t:""))),e!==a?(c?!f&&e[t]&&(d=!0):delete e[t],d?e[t]=r:n(e,t,r)):d?e[t]=r:o(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},"6f8f":function(e,t,r){function a(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}r("f8c9"),e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},7037:function(e,t){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},7418:function(e,t){t.f=Object.getOwnPropertySymbols},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,r){var a=r("1d80");e.exports=function(e){return Object(a(e))}},"7c73":function(e,t,r){var a,n=r("825a"),i=r("37e8"),o=r("7839"),s=r("d012"),l=r("1be4"),c=r("cc12"),u=r("f772"),h=">",d="<",f="prototype",p="script",v=u("IE_PROTO"),g=function(){},m=function(e){return d+p+h+e+d+"/"+p+h},y=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=c("iframe"),r="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(r),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},k=function(){try{a=document.domain&&new ActiveXObject("htmlfile")}catch(t){}k=a?y(a):b();var e=o.length;while(e--)delete k[f][o[e]];return k()};s[v]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(g[f]=n(e),r=new g,g[f]=null,r[v]=e):r=k(),void 0===t?r:i(r,t)}},"7ec2":function(e,t,r){var a=r("7037")["default"];function n(){"use strict";
|
|
2
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=n=function(){return t},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function h(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(I){h=function(e,t,r){return e[t]=r}}function d(e,t,r,a){var n=t&&t.prototype instanceof v?t:v,i=Object.create(n.prototype),s=new P(a||[]);return o(i,"_invoke",{value:x(e,r,s)}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(I){return{type:"throw",arg:I}}}t.wrap=d;var p={};function v(){}function g(){}function m(){}var y={};h(y,l,(function(){return this}));var b=Object.getPrototypeOf,k=b&&b(b(T([])));k&&k!==r&&i.call(k,l)&&(y=k);var w=m.prototype=v.prototype=Object.create(y);function _(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(n,o,s,l){var c=f(e[n],e,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==a(h)&&i.call(h,"__await")?t.resolve(h.__await).then((function(e){r("next",e,s,l)}),(function(e){r("throw",e,s,l)})):t.resolve(h).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,l)}))}l(c.arg)}var n;o(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,n){r(e,a,t,n)}))}return n=n?n.then(i,i):i()}})}function x(e,t,r){var a="suspendedStart";return function(n,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===n)throw i;return O()}for(r.method=n,r.arg=i;;){var o=r.delegate;if(o){var s=A(o,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var l=f(e,t,r);if("normal"===l.type){if(a=r.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a="completed",r.method="throw",r.arg=l.arg)}}}function A(e,t){var r=t.method,a=e.iterator[r];if(void 0===a)return t.delegate=null,"throw"===r&&e.iterator["return"]&&(t.method="return",t.arg=void 0,A(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var n=f(a,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function F(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function T(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:O}}function O(){return{value:void 0,done:!0}}return g.prototype=m,o(w,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:g,configurable:!0}),g.displayName=h(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,h(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},_(S.prototype),h(S.prototype,c,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,a,n,i){void 0===i&&(i=Promise);var o=new S(d(e,r,a,n),i);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},_(w),h(w,u,"Generator"),h(w,l,(function(){return this})),h(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var a in t)r.push(a);return r.reverse(),function e(){for(;r.length;){var a=r.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=T,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(F),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,a){return o.type="throw",o.arg=e,t.next=r,a&&(t.method="next",t.arg=void 0),!!a}for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev<n.catchLoc)return r(n.catchLoc,!0);if(this.prev<n.finallyLoc)return r(n.finallyLoc)}else if(s){if(this.prev<n.catchLoc)return r(n.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return r(n.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var n=a;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=e,o.arg=t,n?(this.method="next",this.next=n.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),F(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;F(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"7f9a":function(e,t,r){var a=r("da84"),n=r("8925"),i=a.WeakMap;e.exports="function"===typeof i&&/native code/.test(n(i))},"825a":function(e,t,r){var a=r("861d");e.exports=function(e){if(!a(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,r){var a=r("d039");e.exports=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8658:function(e,t,r){("undefined"!==typeof window?window:{}).pdfjsWorker=r("d62b")},"866f":function(e,t){function r(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"87c2":function(e,t,r){(function(e){(function(e,r){r(t)})(0,(function(t){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol:function(e){return"Symbol("+e+")"};function a(){}function n(){return"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:void 0}var i=n();function o(e){return"object"===typeof e&&null!==e||"function"===typeof e}var s=a,l=Promise,c=Promise.prototype.then,u=Promise.resolve.bind(l),h=Promise.reject.bind(l);function d(e){return new l(e)}function f(e){return u(e)}function p(e){return h(e)}function v(e,t,r){return c.call(e,t,r)}function g(e,t,r){v(v(e,t,r),void 0,s)}function m(e,t){g(e,t)}function y(e,t){g(e,void 0,t)}function b(e,t,r){return v(e,t,r)}function k(e){v(e,void 0,s)}var w=function(){var e=i&&i.queueMicrotask;if("function"===typeof e)return e;var t=f(void 0);return function(e){return v(t,e)}}();function _(e,t,r){if("function"!==typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function S(e,t,r){try{return f(_(e,t,r))}catch(a){return p(a)}}var x=16384,A=function(){function e(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(e.prototype,"length",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.push=function(e){var t=this._back,r=t;t._elements.length===x-1&&(r={_elements:[],_next:void 0}),t._elements.push(e),r!==t&&(this._back=r,t._next=r),++this._size},e.prototype.shift=function(){var e=this._front,t=e,r=this._cursor,a=r+1,n=e._elements,i=n[r];return a===x&&(t=e._next,a=0),--this._size,this._cursor=a,e!==t&&(this._front=t),n[r]=void 0,i},e.prototype.forEach=function(e){var t=this._cursor,r=this._front,a=r._elements;while(t!==a.length||void 0!==r._next){if(t===a.length&&(r=r._next,a=r._elements,t=0,0===a.length))break;e(a[t]),++t}},e.prototype.peek=function(){var e=this._front,t=this._cursor;return e._elements[t]},e}();function C(e,t){e._ownerReadableStream=t,t._reader=e,"readable"===t._state?O(e):"closed"===t._state?E(e):I(e,t._storedError)}function F(e,t){var r=e._ownerReadableStream;return Aa(r,t)}function P(e){"readable"===e._ownerReadableStream._state?M(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):R(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function T(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function O(e){e._closedPromise=d((function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r}))}function I(e,t){O(e),M(e,t)}function E(e){O(e),D(e)}function M(e,t){void 0!==e._closedPromise_reject&&(k(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function R(e,t){I(e,t)}function D(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}var N=r("[[AbortSteps]]"),L=r("[[ErrorSteps]]"),B=r("[[CancelSteps]]"),j=r("[[PullSteps]]"),U=Number.isFinite||function(e){return"number"===typeof e&&isFinite(e)},q=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function G(e){return"object"===typeof e||"function"===typeof e}function H(e,t){if(void 0!==e&&!G(e))throw new TypeError(t+" is not an object.")}function X(e,t){if("function"!==typeof e)throw new TypeError(t+" is not a function.")}function $(e){return"object"===typeof e&&null!==e||"function"===typeof e}function z(e,t){if(!$(e))throw new TypeError(t+" is not an object.")}function W(e,t,r){if(void 0===e)throw new TypeError("Parameter "+t+" is required in '"+r+"'.")}function V(e,t,r){if(void 0===e)throw new TypeError(t+" is required in '"+r+"'.")}function Y(e){return Number(e)}function K(e){return 0===e?0:e}function J(e){return K(q(e))}function Z(e,t){var r=0,a=Number.MAX_SAFE_INTEGER,n=Number(e);if(n=K(n),!U(n))throw new TypeError(t+" is not a finite number");if(n=J(n),n<r||n>a)throw new TypeError(t+" is outside the accepted range of "+r+" to "+a+", inclusive");return U(n)&&0!==n?n:0}function Q(e,t){if(!Sa(e))throw new TypeError(t+" is not a ReadableStream.")}function ee(e){return new se(e)}function te(e,t){e._reader._readRequests.push(t)}function re(e,t,r){var a=e._reader,n=a._readRequests.shift();r?n._closeSteps():n._chunkSteps(t)}function ae(e){return e._reader._readRequests.length}function ne(e){var t=e._reader;return void 0!==t&&!!le(t)}var ie,oe,se=function(){function e(e){if(W(e,1,"ReadableStreamDefaultReader"),Q(e,"First parameter"),xa(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");C(this,e),this._readRequests=new A}return Object.defineProperty(e.prototype,"closed",{get:function(){return le(this)?this._closedPromise:p(ue("closed"))},enumerable:!1,configurable:!0}),e.prototype.cancel=function(e){return void 0===e&&(e=void 0),le(this)?void 0===this._ownerReadableStream?p(T("cancel")):F(this,e):p(ue("cancel"))},e.prototype.read=function(){if(!le(this))return p(ue("read"));if(void 0===this._ownerReadableStream)return p(T("read from"));var e,t,r=d((function(r,a){e=r,t=a})),a={_chunkSteps:function(t){return e({value:t,done:!1})},_closeSteps:function(){return e({value:void 0,done:!0})},_errorSteps:function(e){return t(e)}};return ce(this,a),r},e.prototype.releaseLock=function(){if(!le(this))throw ue("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");P(this)}},e}();function le(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"_readRequests")&&e instanceof se)}function ce(e,t){var r=e._ownerReadableStream;r._disturbed=!0,"closed"===r._state?t._closeSteps():"errored"===r._state?t._errorSteps(r._storedError):r._readableStreamController[j](t)}function ue(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}Object.defineProperties(se.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"===typeof r.toStringTag&&Object.defineProperty(se.prototype,r.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0}),"symbol"===typeof r.asyncIterator&&(ie={},ie[r.asyncIterator]=function(){return this},oe=ie,Object.defineProperty(oe,r.asyncIterator,{enumerable:!1}));var he=function(){function e(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}return e.prototype.next=function(){var e=this,t=function(){return e._nextSteps()};return this._ongoingPromise=this._ongoingPromise?b(this._ongoingPromise,t,t):t(),this._ongoingPromise},e.prototype.return=function(e){var t=this,r=function(){return t._returnSteps(e)};return this._ongoingPromise?b(this._ongoingPromise,r,r):r()},e.prototype._nextSteps=function(){var e=this;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});var t,r,a=this._reader;if(void 0===a._ownerReadableStream)return p(T("iterate"));var n=d((function(e,a){t=e,r=a})),i={_chunkSteps:function(r){e._ongoingPromise=void 0,w((function(){return t({value:r,done:!1})}))},_closeSteps:function(){e._ongoingPromise=void 0,e._isFinished=!0,P(a),t({value:void 0,done:!0})},_errorSteps:function(t){e._ongoingPromise=void 0,e._isFinished=!0,P(a),r(t)}};return ce(a,i),n},e.prototype._returnSteps=function(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;var t=this._reader;if(void 0===t._ownerReadableStream)return p(T("finish iterating"));if(!this._preventCancel){var r=F(t,e);return P(t),b(r,(function(){return{value:e,done:!0}}))}return P(t),f({value:e,done:!0})},e}(),de={next:function(){return pe(this)?this._asyncIteratorImpl.next():p(ve("next"))},return:function(e){return pe(this)?this._asyncIteratorImpl.return(e):p(ve("return"))}};function fe(e,t){var r=ee(e),a=new he(r,t),n=Object.create(de);return n._asyncIteratorImpl=a,n}function pe(e){if(!o(e))return!1;if(!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl"))return!1;try{return e._asyncIteratorImpl instanceof he}catch(ie){return!1}}function ve(e){return new TypeError("ReadableStreamAsyncIterator."+e+" can only be used on a ReadableSteamAsyncIterator")}void 0!==oe&&Object.setPrototypeOf(de,oe);var ge=Number.isNaN||function(e){return e!==e};function me(e){return e.slice()}function ye(e,t,r,a,n){new Uint8Array(e).set(new Uint8Array(r,a,n),t)}function be(e){return e}function ke(e){return!1}function we(e,t,r){if(e.slice)return e.slice(t,r);var a=r-t,n=new ArrayBuffer(a);return ye(n,0,e,t,a),n}function _e(e){return"number"===typeof e&&(!ge(e)&&!(e<0))}function Se(e){var t=we(e.buffer,e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}function xe(e){var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function Ae(e,t,r){if(!_e(r)||r===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function Ce(e){var t=e._queue.peek();return t.value}function Fe(e){e._queue=new A,e._queueTotalSize=0}var Pe=function(){function e(){throw new TypeError("Illegal constructor")}return Object.defineProperty(e.prototype,"view",{get:function(){if(!Ie(this))throw it("view");return this._view},enumerable:!1,configurable:!0}),e.prototype.respond=function(e){if(!Ie(this))throw it("respond");if(W(e,1,"respond"),e=Z(e,"First parameter"),void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");ke(this._view.buffer),et(this._associatedReadableByteStreamController,e)},e.prototype.respondWithNewView=function(e){if(!Ie(this))throw it("respondWithNewView");if(W(e,1,"respondWithNewView"),!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");ke(e.buffer),tt(this._associatedReadableByteStreamController,e)},e}();Object.defineProperties(Pe.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),"symbol"===typeof r.toStringTag&&Object.defineProperty(Pe.prototype,r.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});var Te=function(){function e(){throw new TypeError("Illegal constructor")}return Object.defineProperty(e.prototype,"byobRequest",{get:function(){if(!Oe(this))throw ot("byobRequest");return Ze(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!Oe(this))throw ot("desiredSize");return Qe(this)},enumerable:!1,configurable:!0}),e.prototype.close=function(){if(!Oe(this))throw ot("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be closed");Ye(this)},e.prototype.enqueue=function(e){if(!Oe(this))throw ot("enqueue");if(W(e,1,"enqueue"),!ArrayBuffer.isView(e))throw new TypeError("chunk must be an array buffer view");if(0===e.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");var t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be enqueued to");Ke(this,e)},e.prototype.error=function(e){if(void 0===e&&(e=void 0),!Oe(this))throw ot("error");Je(this,e)},e.prototype[B]=function(e){Me(this),Fe(this);var t=this._cancelAlgorithm(e);return Ve(this),t},e.prototype[j]=function(e){var t=this._controlledReadableByteStream;if(this._queueTotalSize>0){var r=this._queue.shift();this._queueTotalSize-=r.byteLength,je(this);var a=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);e._chunkSteps(a)}else{var n=this._autoAllocateChunkSize;if(void 0!==n){var i=void 0;try{i=new ArrayBuffer(n)}catch(s){return void e._errorSteps(s)}var o={buffer:i,bufferByteLength:n,byteOffset:0,byteLength:n,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(o)}te(t,e),Ee(this)}},e}();function Oe(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")&&e instanceof Te)}function Ie(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")&&e instanceof Pe)}function Ee(e){var t=We(e);if(t)if(e._pulling)e._pullAgain=!0;else{e._pulling=!0;var r=e._pullAlgorithm();g(r,(function(){e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,Ee(e))}),(function(t){Je(e,t)}))}}function Me(e){Ue(e),e._pendingPullIntos=new A}function Re(e,t){var r=!1;"closed"===e._state&&(r=!0);var a=De(t);"default"===t.readerType?re(e,a,r):ct(e,a,r)}function De(e){var t=e.bytesFilled,r=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/r)}function Ne(e,t,r,a){e._queue.push({buffer:t,byteOffset:r,byteLength:a}),e._queueTotalSize+=a}function Le(e,t){var r=t.elementSize,a=t.bytesFilled-t.bytesFilled%r,n=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),i=t.bytesFilled+n,o=i-i%r,s=n,l=!1;o>a&&(s=o-t.bytesFilled,l=!0);var c=e._queue;while(s>0){var u=c.peek(),h=Math.min(s,u.byteLength),d=t.byteOffset+t.bytesFilled;ye(t.buffer,d,u.buffer,u.byteOffset,h),u.byteLength===h?c.shift():(u.byteOffset+=h,u.byteLength-=h),e._queueTotalSize-=h,Be(e,h,t),s-=h}return l}function Be(e,t,r){r.bytesFilled+=t}function je(e){0===e._queueTotalSize&&e._closeRequested?(Ve(e),Ca(e._controlledReadableByteStream)):Ee(e)}function Ue(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function qe(e){while(e._pendingPullIntos.length>0){if(0===e._queueTotalSize)return;var t=e._pendingPullIntos.peek();Le(e,t)&&(ze(e),Re(e._controlledReadableByteStream,t))}}function Ge(e,t,r){var a=e._controlledReadableByteStream,n=1;t.constructor!==DataView&&(n=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,o=be(t.buffer),s={buffer:o,bufferByteLength:o.byteLength,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:n,viewConstructor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(s),void lt(a,r);if("closed"!==a._state){if(e._queueTotalSize>0){if(Le(e,s)){var l=De(s);return je(e),void r._chunkSteps(l)}if(e._closeRequested){var c=new TypeError("Insufficient bytes to fill elements in the given buffer");return Je(e,c),void r._errorSteps(c)}}e._pendingPullIntos.push(s),lt(a,r),Ee(e)}else{var u=new i(s.buffer,s.byteOffset,0);r._closeSteps(u)}}function He(e,t){var r=e._controlledReadableByteStream;if(ht(r))while(ut(r)>0){var a=ze(e);Re(r,a)}}function Xe(e,t,r){if(Be(e,t,r),!(r.bytesFilled<r.elementSize)){ze(e);var a=r.bytesFilled%r.elementSize;if(a>0){var n=r.byteOffset+r.bytesFilled,i=we(r.buffer,n-a,n);Ne(e,i,0,i.byteLength)}r.bytesFilled-=a,Re(e._controlledReadableByteStream,r),qe(e)}}function $e(e,t){var r=e._pendingPullIntos.peek();Ue(e);var a=e._controlledReadableByteStream._state;"closed"===a?He(e):Xe(e,t,r),Ee(e)}function ze(e){var t=e._pendingPullIntos.shift();return t}function We(e){var t=e._controlledReadableByteStream;if("readable"!==t._state)return!1;if(e._closeRequested)return!1;if(!e._started)return!1;if(ne(t)&&ae(t)>0)return!0;if(ht(t)&&ut(t)>0)return!0;var r=Qe(e);return r>0}function Ve(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function Ye(e){var t=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===t._state)if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){var r=e._pendingPullIntos.peek();if(r.bytesFilled>0){var a=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Je(e,a),a}}Ve(e),Ca(t)}}function Ke(e,t){var r=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===r._state){var a=t.buffer,n=t.byteOffset,i=t.byteLength,o=be(a);if(e._pendingPullIntos.length>0){var s=e._pendingPullIntos.peek();ke(s.buffer),s.buffer=be(s.buffer)}if(Ue(e),ne(r))if(0===ae(r))Ne(e,o,n,i);else{e._pendingPullIntos.length>0&&ze(e);var l=new Uint8Array(o,n,i);re(r,l,!1)}else ht(r)?(Ne(e,o,n,i),qe(e)):Ne(e,o,n,i);Ee(e)}}function Je(e,t){var r=e._controlledReadableByteStream;"readable"===r._state&&(Me(e),Fe(e),Ve(e),Fa(r,t))}function Ze(e){if(null===e._byobRequest&&e._pendingPullIntos.length>0){var t=e._pendingPullIntos.peek(),r=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),a=Object.create(Pe.prototype);nt(a,e,r),e._byobRequest=a}return e._byobRequest}function Qe(e){var t=e._controlledReadableByteStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function et(e,t){var r=e._pendingPullIntos.peek(),a=e._controlledReadableByteStream._state;if("closed"===a){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(0===t)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range")}r.buffer=be(r.buffer),$e(e,t)}function tt(e,t){var r=e._pendingPullIntos.peek(),a=e._controlledReadableByteStream._state;if("closed"===a){if(0!==t.byteLength)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(0===t.byteLength)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.bufferByteLength!==t.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(r.bytesFilled+t.byteLength>r.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");var n=t.byteLength;r.buffer=be(t.buffer),$e(e,n)}function rt(e,t,r,a,n,i,o){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,Fe(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=i,t._pullAlgorithm=a,t._cancelAlgorithm=n,t._autoAllocateChunkSize=o,t._pendingPullIntos=new A,e._readableStreamController=t;var s=r();g(f(s),(function(){t._started=!0,Ee(t)}),(function(e){Je(t,e)}))}function at(e,t,r){var a=Object.create(Te.prototype),n=function(){},i=function(){return f(void 0)},o=function(){return f(void 0)};void 0!==t.start&&(n=function(){return t.start(a)}),void 0!==t.pull&&(i=function(){return t.pull(a)}),void 0!==t.cancel&&(o=function(e){return t.cancel(e)});var s=t.autoAllocateChunkSize;if(0===s)throw new TypeError("autoAllocateChunkSize must be greater than 0");rt(e,a,n,i,o,r,s)}function nt(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function it(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function ot(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function st(e){return new dt(e)}function lt(e,t){e._reader._readIntoRequests.push(t)}function ct(e,t,r){var a=e._reader,n=a._readIntoRequests.shift();r?n._closeSteps(t):n._chunkSteps(t)}function ut(e){return e._reader._readIntoRequests.length}function ht(e){var t=e._reader;return void 0!==t&&!!ft(t)}Object.defineProperties(Te.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"===typeof r.toStringTag&&Object.defineProperty(Te.prototype,r.toStringTag,{value:"ReadableByteStreamController",configurable:!0});var dt=function(){function e(e){if(W(e,1,"ReadableStreamBYOBReader"),Q(e,"First parameter"),xa(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!Oe(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");C(this,e),this._readIntoRequests=new A}return Object.defineProperty(e.prototype,"closed",{get:function(){return ft(this)?this._closedPromise:p(vt("closed"))},enumerable:!1,configurable:!0}),e.prototype.cancel=function(e){return void 0===e&&(e=void 0),ft(this)?void 0===this._ownerReadableStream?p(T("cancel")):F(this,e):p(vt("cancel"))},e.prototype.read=function(e){if(!ft(this))return p(vt("read"));if(!ArrayBuffer.isView(e))return p(new TypeError("view must be an array buffer view"));if(0===e.byteLength)return p(new TypeError("view must have non-zero byteLength"));if(0===e.buffer.byteLength)return p(new TypeError("view's buffer must have non-zero byteLength"));if(ke(e.buffer),void 0===this._ownerReadableStream)return p(T("read from"));var t,r,a=d((function(e,a){t=e,r=a})),n={_chunkSteps:function(e){return t({value:e,done:!1})},_closeSteps:function(e){return t({value:e,done:!0})},_errorSteps:function(e){return r(e)}};return pt(this,e,n),a},e.prototype.releaseLock=function(){if(!ft(this))throw vt("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");P(this)}},e}();function ft(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")&&e instanceof dt)}function pt(e,t,r){var a=e._ownerReadableStream;a._disturbed=!0,"errored"===a._state?r._errorSteps(a._storedError):Ge(a._readableStreamController,t,r)}function vt(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}function gt(e,t){var r=e.highWaterMark;if(void 0===r)return t;if(ge(r)||r<0)throw new RangeError("Invalid highWaterMark");return r}function mt(e){var t=e.size;return t||function(){return 1}}function yt(e,t){H(e,t);var r=null===e||void 0===e?void 0:e.highWaterMark,a=null===e||void 0===e?void 0:e.size;return{highWaterMark:void 0===r?void 0:Y(r),size:void 0===a?void 0:bt(a,t+" has member 'size' that")}}function bt(e,t){return X(e,t),function(t){return Y(e(t))}}function kt(e,t){H(e,t);var r=null===e||void 0===e?void 0:e.abort,a=null===e||void 0===e?void 0:e.close,n=null===e||void 0===e?void 0:e.start,i=null===e||void 0===e?void 0:e.type,o=null===e||void 0===e?void 0:e.write;return{abort:void 0===r?void 0:wt(r,e,t+" has member 'abort' that"),close:void 0===a?void 0:_t(a,e,t+" has member 'close' that"),start:void 0===n?void 0:St(n,e,t+" has member 'start' that"),write:void 0===o?void 0:xt(o,e,t+" has member 'write' that"),type:i}}function wt(e,t,r){return X(e,r),function(r){return S(e,t,[r])}}function _t(e,t,r){return X(e,r),function(){return S(e,t,[])}}function St(e,t,r){return X(e,r),function(r){return _(e,t,[r])}}function xt(e,t,r){return X(e,r),function(r,a){return S(e,t,[r,a])}}function At(e,t){if(!Mt(e))throw new TypeError(t+" is not a WritableStream.")}function Ct(e){if("object"!==typeof e||null===e)return!1;try{return"boolean"===typeof e.aborted}catch(ie){return!1}}Object.defineProperties(dt.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"===typeof r.toStringTag&&Object.defineProperty(dt.prototype,r.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});var Ft="function"===typeof AbortController;function Pt(){if(Ft)return new AbortController}var Tt=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),void 0===e?e=null:z(e,"First parameter");var r=yt(t,"Second parameter"),a=kt(e,"First parameter");Et(this);var n=a.type;if(void 0!==n)throw new RangeError("Invalid type is specified");var i=mt(r),o=gt(r,1);hr(this,a,o,i)}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!Mt(this))throw Sr("locked");return Rt(this)},enumerable:!1,configurable:!0}),e.prototype.abort=function(e){return void 0===e&&(e=void 0),Mt(this)?Rt(this)?p(new TypeError("Cannot abort a stream that already has a writer")):Dt(this,e):p(Sr("abort"))},e.prototype.close=function(){return Mt(this)?Rt(this)?p(new TypeError("Cannot close a stream that already has a writer")):$t(this)?p(new TypeError("Cannot close an already-closing stream")):Nt(this):p(Sr("close"))},e.prototype.getWriter=function(){if(!Mt(this))throw Sr("getWriter");return Ot(this)},e}();function Ot(e){return new Jt(e)}function It(e,t,r,a,n,i){void 0===n&&(n=1),void 0===i&&(i=function(){return 1});var o=Object.create(Tt.prototype);Et(o);var s=Object.create(lr.prototype);return ur(o,s,e,t,r,a,n,i),o}function Et(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new A,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function Mt(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")&&e instanceof Tt)}function Rt(e){return void 0!==e._writer}function Dt(e,t){var r;if("closed"===e._state||"errored"===e._state)return f(void 0);e._writableStreamController._abortReason=t,null===(r=e._writableStreamController._abortController)||void 0===r||r.abort();var a=e._state;if("closed"===a||"errored"===a)return f(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;var n=!1;"erroring"===a&&(n=!0,t=void 0);var i=d((function(r,a){e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:a,_reason:t,_wasAlreadyErroring:n}}));return e._pendingAbortRequest._promise=i,n||jt(e,t),i}function Nt(e){var t=e._state;if("closed"===t||"errored"===t)return p(new TypeError("The stream (in "+t+" state) is not in the writable state and cannot be closed"));var r=d((function(t,r){var a={_resolve:t,_reject:r};e._closeRequest=a})),a=e._writer;return void 0!==a&&e._backpressure&&"writable"===t&&jr(a),fr(e._writableStreamController),r}function Lt(e){var t=d((function(t,r){var a={_resolve:t,_reject:r};e._writeRequests.push(a)}));return t}function Bt(e,t){var r=e._state;"writable"!==r?Ut(e):jt(e,t)}function jt(e,t){var r=e._writableStreamController;e._state="erroring",e._storedError=t;var a=e._writer;void 0!==a&&ar(a,t),!zt(e)&&r._started&&Ut(e)}function Ut(e){e._state="errored",e._writableStreamController[L]();var t=e._storedError;if(e._writeRequests.forEach((function(e){e._reject(t)})),e._writeRequests=new A,void 0!==e._pendingAbortRequest){var r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring)return r._reject(t),void Yt(e);var a=e._writableStreamController[N](r._reason);g(a,(function(){r._resolve(),Yt(e)}),(function(t){r._reject(t),Yt(e)}))}else Yt(e)}function qt(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}function Gt(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,Bt(e,t)}function Ht(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0;var t=e._state;"erroring"===t&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";var r=e._writer;void 0!==r&&Er(r)}function Xt(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),Bt(e,t)}function $t(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function zt(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}function Wt(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0}function Vt(e){e._inFlightWriteRequest=e._writeRequests.shift()}function Yt(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);var t=e._writer;void 0!==t&&Or(t,e._storedError)}function Kt(e,t){var r=e._writer;void 0!==r&&t!==e._backpressure&&(t?Lr(r):jr(r)),e._backpressure=t}Object.defineProperties(Tt.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),"symbol"===typeof r.toStringTag&&Object.defineProperty(Tt.prototype,r.toStringTag,{value:"WritableStream",configurable:!0});var Jt=function(){function e(e){if(W(e,1,"WritableStreamDefaultWriter"),At(e,"First parameter"),Rt(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;var t=e._state;if("writable"===t)!$t(e)&&e._backpressure?Mr(this):Dr(this),Fr(this);else if("erroring"===t)Rr(this,e._storedError),Fr(this);else if("closed"===t)Dr(this),Tr(this);else{var r=e._storedError;Rr(this,r),Pr(this,r)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return Zt(this)?this._closedPromise:p(Ar("closed"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!Zt(this))throw Ar("desiredSize");if(void 0===this._ownerWritableStream)throw Cr("desiredSize");return nr(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return Zt(this)?this._readyPromise:p(Ar("ready"))},enumerable:!1,configurable:!0}),e.prototype.abort=function(e){return void 0===e&&(e=void 0),Zt(this)?void 0===this._ownerWritableStream?p(Cr("abort")):Qt(this,e):p(Ar("abort"))},e.prototype.close=function(){if(!Zt(this))return p(Ar("close"));var e=this._ownerWritableStream;return void 0===e?p(Cr("close")):$t(e)?p(new TypeError("Cannot close an already-closing stream")):er(this)},e.prototype.releaseLock=function(){if(!Zt(this))throw Ar("releaseLock");var e=this._ownerWritableStream;void 0!==e&&ir(this)},e.prototype.write=function(e){return void 0===e&&(e=void 0),Zt(this)?void 0===this._ownerWritableStream?p(Cr("write to")):or(this,e):p(Ar("write"))},e}();function Zt(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")&&e instanceof Jt)}function Qt(e,t){var r=e._ownerWritableStream;return Dt(r,t)}function er(e){var t=e._ownerWritableStream;return Nt(t)}function tr(e){var t=e._ownerWritableStream,r=t._state;return $t(t)||"closed"===r?f(void 0):"errored"===r?p(t._storedError):er(e)}function rr(e,t){"pending"===e._closedPromiseState?Or(e,t):Ir(e,t)}function ar(e,t){"pending"===e._readyPromiseState?Nr(e,t):Br(e,t)}function nr(e){var t=e._ownerWritableStream,r=t._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:vr(t._writableStreamController)}function ir(e){var t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");ar(e,r),rr(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function or(e,t){var r=e._ownerWritableStream,a=r._writableStreamController,n=pr(a,t);if(r!==e._ownerWritableStream)return p(Cr("write to"));var i=r._state;if("errored"===i)return p(r._storedError);if($t(r)||"closed"===i)return p(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===i)return p(r._storedError);var o=Lt(r);return gr(a,t,n),o}Object.defineProperties(Jt.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),"symbol"===typeof r.toStringTag&&Object.defineProperty(Jt.prototype,r.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});var sr={},lr=function(){function e(){throw new TypeError("Illegal constructor")}return Object.defineProperty(e.prototype,"abortReason",{get:function(){if(!cr(this))throw xr("abortReason");return this._abortReason},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"signal",{get:function(){if(!cr(this))throw xr("signal");if(void 0===this._abortController)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal},enumerable:!1,configurable:!0}),e.prototype.error=function(e){if(void 0===e&&(e=void 0),!cr(this))throw xr("error");var t=this._controlledWritableStream._state;"writable"===t&&_r(this,e)},e.prototype[N]=function(e){var t=this._abortAlgorithm(e);return dr(this),t},e.prototype[L]=function(){Fe(this)},e}();function cr(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")&&e instanceof lr)}function ur(e,t,r,a,n,i,o,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,Fe(t),t._abortReason=void 0,t._abortController=Pt(),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=o,t._writeAlgorithm=a,t._closeAlgorithm=n,t._abortAlgorithm=i;var l=wr(t);Kt(e,l);var c=r(),u=f(c);g(u,(function(){t._started=!0,mr(t)}),(function(r){t._started=!0,Bt(e,r)}))}function hr(e,t,r,a){var n=Object.create(lr.prototype),i=function(){},o=function(){return f(void 0)},s=function(){return f(void 0)},l=function(){return f(void 0)};void 0!==t.start&&(i=function(){return t.start(n)}),void 0!==t.write&&(o=function(e){return t.write(e,n)}),void 0!==t.close&&(s=function(){return t.close()}),void 0!==t.abort&&(l=function(e){return t.abort(e)}),ur(e,n,i,o,s,l,r,a)}function dr(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function fr(e){Ae(e,sr,0),mr(e)}function pr(e,t){try{return e._strategySizeAlgorithm(t)}catch(r){return yr(e,r),1}}function vr(e){return e._strategyHWM-e._queueTotalSize}function gr(e,t,r){try{Ae(e,t,r)}catch(i){return void yr(e,i)}var a=e._controlledWritableStream;if(!$t(a)&&"writable"===a._state){var n=wr(e);Kt(a,n)}mr(e)}function mr(e){var t=e._controlledWritableStream;if(e._started&&void 0===t._inFlightWriteRequest){var r=t._state;if("erroring"!==r){if(0!==e._queue.length){var a=Ce(e);a===sr?br(e):kr(e,a)}}else Ut(t)}}function yr(e,t){"writable"===e._controlledWritableStream._state&&_r(e,t)}function br(e){var t=e._controlledWritableStream;Wt(t),xe(e);var r=e._closeAlgorithm();dr(e),g(r,(function(){Ht(t)}),(function(e){Xt(t,e)}))}function kr(e,t){var r=e._controlledWritableStream;Vt(r);var a=e._writeAlgorithm(t);g(a,(function(){qt(r);var t=r._state;if(xe(e),!$t(r)&&"writable"===t){var a=wr(e);Kt(r,a)}mr(e)}),(function(t){"writable"===r._state&&dr(e),Gt(r,t)}))}function wr(e){var t=vr(e);return t<=0}function _r(e,t){var r=e._controlledWritableStream;dr(e),jt(r,t)}function Sr(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function xr(e){return new TypeError("WritableStreamDefaultController.prototype."+e+" can only be used on a WritableStreamDefaultController")}function Ar(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function Cr(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function Fr(e){e._closedPromise=d((function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"}))}function Pr(e,t){Fr(e),Or(e,t)}function Tr(e){Fr(e),Er(e)}function Or(e,t){void 0!==e._closedPromise_reject&&(k(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected")}function Ir(e,t){Pr(e,t)}function Er(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function Mr(e){e._readyPromise=d((function(t,r){e._readyPromise_resolve=t,e._readyPromise_reject=r})),e._readyPromiseState="pending"}function Rr(e,t){Mr(e),Nr(e,t)}function Dr(e){Mr(e),jr(e)}function Nr(e,t){void 0!==e._readyPromise_reject&&(k(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected")}function Lr(e){Mr(e)}function Br(e,t){Rr(e,t)}function jr(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}Object.defineProperties(lr.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),"symbol"===typeof r.toStringTag&&Object.defineProperty(lr.prototype,r.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});var Ur="undefined"!==typeof DOMException?DOMException:void 0;function qr(e){if("function"!==typeof e&&"object"!==typeof e)return!1;try{return new e,!0}catch(ie){return!1}}function Gr(){var e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}var Hr=qr(Ur)?Ur:Gr();function Xr(e,t,r,n,i,o){var s=ee(e),l=Ot(t);e._disturbed=!0;var c=!1,u=f(void 0);return d((function(h,p){var b;if(void 0!==o){if(b=function(){var r=new Hr("Aborted","AbortError"),a=[];n||a.push((function(){return"writable"===t._state?Dt(t,r):f(void 0)})),i||a.push((function(){return"readable"===e._state?Aa(e,r):f(void 0)})),F((function(){return Promise.all(a.map((function(e){return e()})))}),!0,r)},o.aborted)return void b();o.addEventListener("abort",b)}function w(){return d((function(e,t){function r(a){a?e():v(_(),r,t)}r(!1)}))}function _(){return c?f(!0):v(l._readyPromise,(function(){return d((function(e,t){ce(s,{_chunkSteps:function(t){u=v(or(l,t),void 0,a),e(!1)},_closeSteps:function(){return e(!0)},_errorSteps:t})}))}))}if(A(e,s._closedPromise,(function(e){n?T(!0,e):F((function(){return Dt(t,e)}),!0,e)})),A(t,l._closedPromise,(function(t){i?T(!0,t):F((function(){return Aa(e,t)}),!0,t)})),C(e,s._closedPromise,(function(){r?T():F((function(){return tr(l)}))})),$t(t)||"closed"===t._state){var S=new TypeError("the destination writable stream closed before all data could be piped to it");i?T(!0,S):F((function(){return Aa(e,S)}),!0,S)}function x(){var e=u;return v(u,(function(){return e!==u?x():void 0}))}function A(e,t,r){"errored"===e._state?r(e._storedError):y(t,r)}function C(e,t,r){"closed"===e._state?r():m(t,r)}function F(e,r,a){function n(){g(e(),(function(){return O(r,a)}),(function(e){return O(!0,e)}))}c||(c=!0,"writable"!==t._state||$t(t)?n():m(x(),n))}function T(e,r){c||(c=!0,"writable"!==t._state||$t(t)?O(e,r):m(x(),(function(){return O(e,r)})))}function O(e,t){ir(l),P(s),void 0!==o&&o.removeEventListener("abort",b),e?p(t):h(void 0)}k(w())}))}var $r=function(){function e(){throw new TypeError("Illegal constructor")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!zr(this))throw na("desiredSize");return Qr(this)},enumerable:!1,configurable:!0}),e.prototype.close=function(){if(!zr(this))throw na("close");if(!ta(this))throw new TypeError("The stream is not in a state that permits close");Kr(this)},e.prototype.enqueue=function(e){if(void 0===e&&(e=void 0),!zr(this))throw na("enqueue");if(!ta(this))throw new TypeError("The stream is not in a state that permits enqueue");return Jr(this,e)},e.prototype.error=function(e){if(void 0===e&&(e=void 0),!zr(this))throw na("error");Zr(this,e)},e.prototype[B]=function(e){Fe(this);var t=this._cancelAlgorithm(e);return Yr(this),t},e.prototype[j]=function(e){var t=this._controlledReadableStream;if(this._queue.length>0){var r=xe(this);this._closeRequested&&0===this._queue.length?(Yr(this),Ca(t)):Wr(this),e._chunkSteps(r)}else te(t,e),Wr(this)},e}();function zr(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")&&e instanceof $r)}function Wr(e){var t=Vr(e);if(t)if(e._pulling)e._pullAgain=!0;else{e._pulling=!0;var r=e._pullAlgorithm();g(r,(function(){e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,Wr(e))}),(function(t){Zr(e,t)}))}}function Vr(e){var t=e._controlledReadableStream;if(!ta(e))return!1;if(!e._started)return!1;if(xa(t)&&ae(t)>0)return!0;var r=Qr(e);return r>0}function Yr(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Kr(e){if(ta(e)){var t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(Yr(e),Ca(t))}}function Jr(e,t){if(ta(e)){var r=e._controlledReadableStream;if(xa(r)&&ae(r)>0)re(r,t,!1);else{var a=void 0;try{a=e._strategySizeAlgorithm(t)}catch(n){throw Zr(e,n),n}try{Ae(e,t,a)}catch(i){throw Zr(e,i),i}}Wr(e)}}function Zr(e,t){var r=e._controlledReadableStream;"readable"===r._state&&(Fe(e),Yr(e),Fa(r,t))}function Qr(e){var t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function ea(e){return!Vr(e)}function ta(e){var t=e._controlledReadableStream._state;return!e._closeRequested&&"readable"===t}function ra(e,t,r,a,n,i,o){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,Fe(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=o,t._strategyHWM=i,t._pullAlgorithm=a,t._cancelAlgorithm=n,e._readableStreamController=t;var s=r();g(f(s),(function(){t._started=!0,Wr(t)}),(function(e){Zr(t,e)}))}function aa(e,t,r,a){var n=Object.create($r.prototype),i=function(){},o=function(){return f(void 0)},s=function(){return f(void 0)};void 0!==t.start&&(i=function(){return t.start(n)}),void 0!==t.pull&&(o=function(){return t.pull(n)}),void 0!==t.cancel&&(s=function(e){return t.cancel(e)}),ra(e,n,i,o,s,r,a)}function na(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function ia(e,t){return Oe(e._readableStreamController)?sa(e):oa(e)}function oa(e,t){var r,a,n,i,o,s=ee(e),l=!1,c=!1,u=!1,h=!1,p=d((function(e){o=e}));function v(){if(l)return c=!0,f(void 0);l=!0;var e={_chunkSteps:function(e){w((function(){c=!1;var t=e,r=e;u||Jr(n._readableStreamController,t),h||Jr(i._readableStreamController,r),l=!1,c&&v()}))},_closeSteps:function(){l=!1,u||Kr(n._readableStreamController),h||Kr(i._readableStreamController),u&&h||o(void 0)},_errorSteps:function(){l=!1}};return ce(s,e),f(void 0)}function g(t){if(u=!0,r=t,h){var n=me([r,a]),i=Aa(e,n);o(i)}return p}function m(t){if(h=!0,a=t,u){var n=me([r,a]),i=Aa(e,n);o(i)}return p}function b(){}return n=ka(b,v,g),i=ka(b,v,m),y(s._closedPromise,(function(e){Zr(n._readableStreamController,e),Zr(i._readableStreamController,e),u&&h||o(void 0)})),[n,i]}function sa(e){var t,r,a,n,i,o=ee(e),s=!1,l=!1,c=!1,u=!1,h=!1,p=d((function(e){i=e}));function v(e){y(e._closedPromise,(function(t){e===o&&(Je(a._readableStreamController,t),Je(n._readableStreamController,t),u&&h||i(void 0))}))}function g(){ft(o)&&(P(o),o=ee(e),v(o));var t={_chunkSteps:function(t){w((function(){l=!1,c=!1;var r=t,o=t;if(!u&&!h)try{o=Se(t)}catch(d){return Je(a._readableStreamController,d),Je(n._readableStreamController,d),void i(Aa(e,d))}u||Ke(a._readableStreamController,r),h||Ke(n._readableStreamController,o),s=!1,l?b():c&&k()}))},_closeSteps:function(){s=!1,u||Ye(a._readableStreamController),h||Ye(n._readableStreamController),a._readableStreamController._pendingPullIntos.length>0&&et(a._readableStreamController,0),n._readableStreamController._pendingPullIntos.length>0&&et(n._readableStreamController,0),u&&h||i(void 0)},_errorSteps:function(){s=!1}};ce(o,t)}function m(t,r){le(o)&&(P(o),o=st(e),v(o));var d=r?n:a,f=r?a:n,p={_chunkSteps:function(t){w((function(){l=!1,c=!1;var a=r?h:u,n=r?u:h;if(n)a||tt(d._readableStreamController,t);else{var o=void 0;try{o=Se(t)}catch(p){return Je(d._readableStreamController,p),Je(f._readableStreamController,p),void i(Aa(e,p))}a||tt(d._readableStreamController,t),Ke(f._readableStreamController,o)}s=!1,l?b():c&&k()}))},_closeSteps:function(e){s=!1;var t=r?h:u,a=r?u:h;t||Ye(d._readableStreamController),a||Ye(f._readableStreamController),void 0!==e&&(t||tt(d._readableStreamController,e),!a&&f._readableStreamController._pendingPullIntos.length>0&&et(f._readableStreamController,0)),t&&a||i(void 0)},_errorSteps:function(){s=!1}};pt(o,t,p)}function b(){if(s)return l=!0,f(void 0);s=!0;var e=Ze(a._readableStreamController);return null===e?g():m(e._view,!1),f(void 0)}function k(){if(s)return c=!0,f(void 0);s=!0;var e=Ze(n._readableStreamController);return null===e?g():m(e._view,!0),f(void 0)}function _(a){if(u=!0,t=a,h){var n=me([t,r]),o=Aa(e,n);i(o)}return p}function S(a){if(h=!0,r=a,u){var n=me([t,r]),o=Aa(e,n);i(o)}return p}function x(){}return a=wa(x,b,_),n=wa(x,k,S),v(o),[a,n]}function la(e,t){H(e,t);var r=e,a=null===r||void 0===r?void 0:r.autoAllocateChunkSize,n=null===r||void 0===r?void 0:r.cancel,i=null===r||void 0===r?void 0:r.pull,o=null===r||void 0===r?void 0:r.start,s=null===r||void 0===r?void 0:r.type;return{autoAllocateChunkSize:void 0===a?void 0:Z(a,t+" has member 'autoAllocateChunkSize' that"),cancel:void 0===n?void 0:ca(n,r,t+" has member 'cancel' that"),pull:void 0===i?void 0:ua(i,r,t+" has member 'pull' that"),start:void 0===o?void 0:ha(o,r,t+" has member 'start' that"),type:void 0===s?void 0:da(s,t+" has member 'type' that")}}function ca(e,t,r){return X(e,r),function(r){return S(e,t,[r])}}function ua(e,t,r){return X(e,r),function(r){return S(e,t,[r])}}function ha(e,t,r){return X(e,r),function(r){return _(e,t,[r])}}function da(e,t){if(e=""+e,"bytes"!==e)throw new TypeError(t+" '"+e+"' is not a valid enumeration value for ReadableStreamType");return e}function fa(e,t){H(e,t);var r=null===e||void 0===e?void 0:e.mode;return{mode:void 0===r?void 0:pa(r,t+" has member 'mode' that")}}function pa(e,t){if(e=""+e,"byob"!==e)throw new TypeError(t+" '"+e+"' is not a valid enumeration value for ReadableStreamReaderMode");return e}function va(e,t){H(e,t);var r=null===e||void 0===e?void 0:e.preventCancel;return{preventCancel:Boolean(r)}}function ga(e,t){H(e,t);var r=null===e||void 0===e?void 0:e.preventAbort,a=null===e||void 0===e?void 0:e.preventCancel,n=null===e||void 0===e?void 0:e.preventClose,i=null===e||void 0===e?void 0:e.signal;return void 0!==i&&ma(i,t+" has member 'signal' that"),{preventAbort:Boolean(r),preventCancel:Boolean(a),preventClose:Boolean(n),signal:i}}function ma(e,t){if(!Ct(e))throw new TypeError(t+" is not an AbortSignal.")}function ya(e,t){H(e,t);var r=null===e||void 0===e?void 0:e.readable;V(r,"readable","ReadableWritablePair"),Q(r,t+" has member 'readable' that");var a=null===e||void 0===e?void 0:e.writable;return V(a,"writable","ReadableWritablePair"),At(a,t+" has member 'writable' that"),{readable:r,writable:a}}Object.defineProperties($r.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"===typeof r.toStringTag&&Object.defineProperty($r.prototype,r.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});var ba=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),void 0===e?e=null:z(e,"First parameter");var r=yt(t,"Second parameter"),a=la(e,"First parameter");if(_a(this),"bytes"===a.type){if(void 0!==r.size)throw new RangeError("The strategy for a byte stream cannot have a size function");var n=gt(r,0);at(this,a,n)}else{var i=mt(r);n=gt(r,1);aa(this,a,n,i)}}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!Sa(this))throw Pa("locked");return xa(this)},enumerable:!1,configurable:!0}),e.prototype.cancel=function(e){return void 0===e&&(e=void 0),Sa(this)?xa(this)?p(new TypeError("Cannot cancel a stream that already has a reader")):Aa(this,e):p(Pa("cancel"))},e.prototype.getReader=function(e){if(void 0===e&&(e=void 0),!Sa(this))throw Pa("getReader");var t=fa(e,"First parameter");return void 0===t.mode?ee(this):st(this)},e.prototype.pipeThrough=function(e,t){if(void 0===t&&(t={}),!Sa(this))throw Pa("pipeThrough");W(e,1,"pipeThrough");var r=ya(e,"First parameter"),a=ga(t,"Second parameter");if(xa(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(Rt(r.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var n=Xr(this,r.writable,a.preventClose,a.preventAbort,a.preventCancel,a.signal);return k(n),r.readable},e.prototype.pipeTo=function(e,t){if(void 0===t&&(t={}),!Sa(this))return p(Pa("pipeTo"));if(void 0===e)return p("Parameter 1 is required in 'pipeTo'.");if(!Mt(e))return p(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));var r;try{r=ga(t,"Second parameter")}catch(a){return p(a)}return xa(this)?p(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):Rt(e)?p(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Xr(this,e,r.preventClose,r.preventAbort,r.preventCancel,r.signal)},e.prototype.tee=function(){if(!Sa(this))throw Pa("tee");var e=ia(this);return me(e)},e.prototype.values=function(e){if(void 0===e&&(e=void 0),!Sa(this))throw Pa("values");var t=va(e,"First parameter");return fe(this,t.preventCancel)},e}();function ka(e,t,r,a,n){void 0===a&&(a=1),void 0===n&&(n=function(){return 1});var i=Object.create(ba.prototype);_a(i);var o=Object.create($r.prototype);return ra(i,o,e,t,r,a,n),i}function wa(e,t,r){var a=Object.create(ba.prototype);_a(a);var n=Object.create(Te.prototype);return rt(a,n,e,t,r,0,void 0),a}function _a(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function Sa(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")&&e instanceof ba)}function xa(e){return void 0!==e._reader}function Aa(e,t){if(e._disturbed=!0,"closed"===e._state)return f(void 0);if("errored"===e._state)return p(e._storedError);Ca(e);var r=e._reader;void 0!==r&&ft(r)&&(r._readIntoRequests.forEach((function(e){e._closeSteps(void 0)})),r._readIntoRequests=new A);var n=e._readableStreamController[B](t);return b(n,a)}function Ca(e){e._state="closed";var t=e._reader;void 0!==t&&(D(t),le(t)&&(t._readRequests.forEach((function(e){e._closeSteps()})),t._readRequests=new A))}function Fa(e,t){e._state="errored",e._storedError=t;var r=e._reader;void 0!==r&&(M(r,t),le(r)?(r._readRequests.forEach((function(e){e._errorSteps(t)})),r._readRequests=new A):(r._readIntoRequests.forEach((function(e){e._errorSteps(t)})),r._readIntoRequests=new A))}function Pa(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function Ta(e,t){H(e,t);var r=null===e||void 0===e?void 0:e.highWaterMark;return V(r,"highWaterMark","QueuingStrategyInit"),{highWaterMark:Y(r)}}Object.defineProperties(ba.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),"symbol"===typeof r.toStringTag&&Object.defineProperty(ba.prototype,r.toStringTag,{value:"ReadableStream",configurable:!0}),"symbol"===typeof r.asyncIterator&&Object.defineProperty(ba.prototype,r.asyncIterator,{value:ba.prototype.values,writable:!0,configurable:!0});var Oa=function(e){return e.byteLength};try{Object.defineProperty(Oa,"name",{value:"size",configurable:!0})}catch(ie){}var Ia=function(){function e(e){W(e,1,"ByteLengthQueuingStrategy"),e=Ta(e,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=e.highWaterMark}return Object.defineProperty(e.prototype,"highWaterMark",{get:function(){if(!Ma(this))throw Ea("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){if(!Ma(this))throw Ea("size");return Oa},enumerable:!1,configurable:!0}),e}();function Ea(e){return new TypeError("ByteLengthQueuingStrategy.prototype."+e+" can only be used on a ByteLengthQueuingStrategy")}function Ma(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"_byteLengthQueuingStrategyHighWaterMark")&&e instanceof Ia)}Object.defineProperties(Ia.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"===typeof r.toStringTag&&Object.defineProperty(Ia.prototype,r.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});var Ra=function(){return 1};try{Object.defineProperty(Ra,"name",{value:"size",configurable:!0})}catch(ie){}var Da=function(){function e(e){W(e,1,"CountQueuingStrategy"),e=Ta(e,"First parameter"),this._countQueuingStrategyHighWaterMark=e.highWaterMark}return Object.defineProperty(e.prototype,"highWaterMark",{get:function(){if(!La(this))throw Na("highWaterMark");return this._countQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){if(!La(this))throw Na("size");return Ra},enumerable:!1,configurable:!0}),e}();function Na(e){return new TypeError("CountQueuingStrategy.prototype."+e+" can only be used on a CountQueuingStrategy")}function La(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"_countQueuingStrategyHighWaterMark")&&e instanceof Da)}function Ba(e,t){H(e,t);var r=null===e||void 0===e?void 0:e.flush,a=null===e||void 0===e?void 0:e.readableType,n=null===e||void 0===e?void 0:e.start,i=null===e||void 0===e?void 0:e.transform,o=null===e||void 0===e?void 0:e.writableType;return{flush:void 0===r?void 0:ja(r,e,t+" has member 'flush' that"),readableType:a,start:void 0===n?void 0:Ua(n,e,t+" has member 'start' that"),transform:void 0===i?void 0:qa(i,e,t+" has member 'transform' that"),writableType:o}}function ja(e,t,r){return X(e,r),function(r){return S(e,t,[r])}}function Ua(e,t,r){return X(e,r),function(r){return _(e,t,[r])}}function qa(e,t,r){return X(e,r),function(r,a){return S(e,t,[r,a])}}Object.defineProperties(Da.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"===typeof r.toStringTag&&Object.defineProperty(Da.prototype,r.toStringTag,{value:"CountQueuingStrategy",configurable:!0});var Ga=function(){function e(e,t,r){void 0===e&&(e={}),void 0===t&&(t={}),void 0===r&&(r={}),void 0===e&&(e=null);var a=yt(t,"Second parameter"),n=yt(r,"Third parameter"),i=Ba(e,"First parameter");if(void 0!==i.readableType)throw new RangeError("Invalid readableType specified");if(void 0!==i.writableType)throw new RangeError("Invalid writableType specified");var o,s=gt(n,0),l=mt(n),c=gt(a,1),u=mt(a),h=d((function(e){o=e}));Ha(this,h,c,u,s,l),Ja(this,i),void 0!==i.start?o(i.start(this._transformStreamController)):o(void 0)}return Object.defineProperty(e.prototype,"readable",{get:function(){if(!Xa(this))throw cn("readable");return this._readable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"writable",{get:function(){if(!Xa(this))throw cn("writable");return this._writable},enumerable:!1,configurable:!0}),e}();function Ha(e,t,r,a,n,i){function o(){return t}function s(t){return an(e,t)}function l(t){return nn(e,t)}function c(){return on(e)}function u(){return sn(e)}function h(t){return za(e,t),f(void 0)}e._writable=It(o,s,c,l,r,a),e._readable=ka(o,u,h,n,i),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,Wa(e,!0),e._transformStreamController=void 0}function Xa(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")&&e instanceof Ga)}function $a(e,t){Zr(e._readable._readableStreamController,t),za(e,t)}function za(e,t){Za(e._transformStreamController),yr(e._writable._writableStreamController,t),e._backpressure&&Wa(e,!1)}function Wa(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=d((function(t){e._backpressureChangePromise_resolve=t})),e._backpressure=t}Object.defineProperties(Ga.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),"symbol"===typeof r.toStringTag&&Object.defineProperty(Ga.prototype,r.toStringTag,{value:"TransformStream",configurable:!0});var Va=function(){function e(){throw new TypeError("Illegal constructor")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!Ya(this))throw ln("desiredSize");var e=this._controlledTransformStream._readable._readableStreamController;return Qr(e)},enumerable:!1,configurable:!0}),e.prototype.enqueue=function(e){if(void 0===e&&(e=void 0),!Ya(this))throw ln("enqueue");Qa(this,e)},e.prototype.error=function(e){if(void 0===e&&(e=void 0),!Ya(this))throw ln("error");en(this,e)},e.prototype.terminate=function(){if(!Ya(this))throw ln("terminate");rn(this)},e}();function Ya(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")&&e instanceof Va)}function Ka(e,t,r,a){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=a}function Ja(e,t){var r=Object.create(Va.prototype),a=function(e){try{return Qa(r,e),f(void 0)}catch(t){return p(t)}},n=function(){return f(void 0)};void 0!==t.transform&&(a=function(e){return t.transform(e,r)}),void 0!==t.flush&&(n=function(){return t.flush(r)}),Ka(e,r,a,n)}function Za(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function Qa(e,t){var r=e._controlledTransformStream,a=r._readable._readableStreamController;if(!ta(a))throw new TypeError("Readable side is not in a state that permits enqueue");try{Jr(a,t)}catch(i){throw za(r,i),r._readable._storedError}var n=ea(a);n!==r._backpressure&&Wa(r,!0)}function en(e,t){$a(e._controlledTransformStream,t)}function tn(e,t){var r=e._transformAlgorithm(t);return b(r,void 0,(function(t){throw $a(e._controlledTransformStream,t),t}))}function rn(e){var t=e._controlledTransformStream,r=t._readable._readableStreamController;Kr(r);var a=new TypeError("TransformStream terminated");za(t,a)}function an(e,t){var r=e._transformStreamController;if(e._backpressure){var a=e._backpressureChangePromise;return b(a,(function(){var a=e._writable,n=a._state;if("erroring"===n)throw a._storedError;return tn(r,t)}))}return tn(r,t)}function nn(e,t){return $a(e,t),f(void 0)}function on(e){var t=e._readable,r=e._transformStreamController,a=r._flushAlgorithm();return Za(r),b(a,(function(){if("errored"===t._state)throw t._storedError;Kr(t._readableStreamController)}),(function(r){throw $a(e,r),t._storedError}))}function sn(e){return Wa(e,!1),e._backpressureChangePromise}function ln(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function cn(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}Object.defineProperties(Va.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"===typeof r.toStringTag&&Object.defineProperty(Va.prototype,r.toStringTag,{value:"TransformStreamDefaultController",configurable:!0}),t.ByteLengthQueuingStrategy=Ia,t.CountQueuingStrategy=Da,t.ReadableByteStreamController=Te,t.ReadableStream=ba,t.ReadableStreamBYOBReader=dt,t.ReadableStreamBYOBRequest=Pe,t.ReadableStreamDefaultController=$r,t.ReadableStreamDefaultReader=se,t.TransformStream=Ga,t.TransformStreamDefaultController=Va,t.WritableStream=Tt,t.WritableStreamDefaultController=lr,t.WritableStreamDefaultWriter=Jt,Object.defineProperty(t,"__esModule",{value:!0})}))}).call(this,r("c8ba"))},8875:function(e,t,r){var a,n,i;(function(r,o){n=[],a=o,i="function"===typeof a?a.apply(t,n):a,void 0===i||(e.exports=i)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var r,a,n,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,o=/@([^@]*):(\d+):(\d+)\s*$/gi,s=i.exec(f.stack)||o.exec(f.stack),l=s&&s[1]||!1,c=s&&s[2]||!1,u=document.location.href.replace(document.location.hash,""),h=document.getElementsByTagName("script");l===u&&(r=document.documentElement.outerHTML,a=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=r.replace(a,"$1").trim());for(var d=0;d<h.length;d++){if("interactive"===h[d].readyState)return h[d];if(h[d].src===l)return h[d];if(l===u&&h[d].innerHTML&&h[d].innerHTML.trim()===n)return h[d]}return null}}return e}))},8925:function(e,t,r){var a=r("c6cd"),n=Function.toString;"function"!=typeof a.inspectSource&&(a.inspectSource=function(e){return n.call(e)}),e.exports=a.inspectSource},8962:function(e,t,r){r("f8c9");var a=r("9f70");function n(){return"undefined"!==typeof Reflect&&Reflect.get?(e.exports=n=Reflect.get.bind(),e.exports.__esModule=!0,e.exports["default"]=e.exports):(e.exports=n=function(e,t,r){var n=a(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},e.exports.__esModule=!0,e.exports["default"]=e.exports),n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"8f40":function(e,t,r){"use strict";var a=r("23e7"),n=r("7b0b"),i=r("50c4"),o=r("a691"),s=r("44d2");a({target:"Array",proto:!0},{at:function(e){var t=n(this),r=i(t.length),a=o(e),s=a>=0?a:r+a;return s<0||s>=r?void 0:t[s]}}),s("at")},"90e3":function(e,t){var r=0,a=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+a).toString(36)}},9112:function(e,t,r){var a=r("83ab"),n=r("9bf2"),i=r("5c6c");e.exports=a?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},9152:function(e,t){
|
|
3
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4
|
+
t.read=function(e,t,r,a,n){var i,o,s=8*n-a-1,l=(1<<s)-1,c=l>>1,u=-7,h=r?n-1:0,d=r?-1:1,f=e[t+h];for(h+=d,i=f&(1<<-u)-1,f>>=-u,u+=s;u>0;i=256*i+e[t+h],h+=d,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=a;u>0;o=256*o+e[t+h],h+=d,u-=8);if(0===i)i=1-c;else{if(i===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,a),i-=c}return(f?-1:1)*o*Math.pow(2,i-a)},t.write=function(e,t,r,a,n,i){var o,s,l,c=8*i-n-1,u=(1<<c)-1,h=u>>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,f=a?0:i-1,p=a?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),t+=o+h>=1?d/l:d*Math.pow(2,1-h),t*l>=2&&(o++,l/=2),o+h>=u?(s=0,o=u):o+h>=1?(s=(t*l-1)*Math.pow(2,n),o+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,n),o=0));n>=8;e[r+f]=255&s,f+=p,s/=256,n-=8);for(o=o<<n|s,c+=n;c>0;e[r+f]=255&o,f+=p,o/=256,c-=8);e[r+f-p]|=128*v}},"923c":function(e,t,r){var a=r("24fb");t=a(!1),t.push([e.i,".pdf-view[data-v-f234d864]{height:100%;width:100%;display:flex;flex-direction:column}.pdf-view-control[data-v-f234d864]{text-align:center;margin:10px 0}.pdf-view-area-wapper[data-v-f234d864]{flex:1 1 0%;overflow:auto;width:100%;flex-shrink:0%}.pdf-view-area[data-v-f234d864]{position:relative;min-height:700px}.pdf-view-area .canvasstyle[data-v-f234d864]{display:block;margin:0 auto}.pdf-view-area .label-area[data-v-f234d864]{position:absolute;right:0;bottom:0;top:0;left:0}.pdf-view-empty[data-v-f234d864]{text-align:center;line-height:150px;font-size:14px;color:#999}.pdf-view-loading[data-v-f234d864],.pdf-view-rendering[data-v-f234d864]{margin-top:40px;text-align:center;font-size:14px;color:#999}",""]),e.exports=t},"94ca":function(e,t,r){var a=r("d039"),n=/#|\.prototype\./,i=function(e,t){var r=s[o(e)];return r==c||r!=l&&("function"==typeof t?a(t):!!t)},o=i.normalize=function(e){return String(e).replace(n,".").toLowerCase()},s=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},9511:function(module,exports,__webpack_require__){(function(process,Buffer,module){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_classStaticPrivateMethodGet=__webpack_require__("d721")["default"],_objectSpread=__webpack_require__("ded3")["default"],_get=__webpack_require__("8962")["default"],_getPrototypeOf=__webpack_require__("36c6")["default"],_defineProperty=__webpack_require__("9523")["default"],_assertThisInitialized=__webpack_require__("3c96")["default"],_classPrivateMethodInitSpec=__webpack_require__("28b9")["default"],_classPrivateMethodGet=__webpack_require__("5019")["default"],_classPrivateFieldInitSpec=__webpack_require__("61bd")["default"],_classPrivateFieldSet=__webpack_require__("f763")["default"],_classPrivateFieldGet=__webpack_require__("b669")["default"],_regeneratorRuntime=__webpack_require__("7ec2")["default"],_classStaticPrivateFieldSpecSet=__webpack_require__("de5e")["default"],_classStaticPrivateFieldSpecGet=__webpack_require__("95ee")["default"],_asyncToGenerator=__webpack_require__("c973")["default"],_toConsumableArray=__webpack_require__("448a")["default"],_slicedToArray=__webpack_require__("278c")["default"],_createForOfIteratorHelper=__webpack_require__("6374")["default"],_createClass=__webpack_require__("5bc3")["default"],_classCallCheck=__webpack_require__("970b")["default"],_inherits=__webpack_require__("ed6d")["default"],_createSuper=__webpack_require__("2d0d")["default"],_typeof=__webpack_require__("7037")["default"];__webpack_require__("acef"),__webpack_require__("3c5d"),__webpack_require__("8f40"),__webpack_require__("13d5"),
|
|
5
|
+
/**
|
|
6
|
+
* @licstart The following is the entire license notice for the
|
|
7
|
+
* JavaScript code in this page
|
|
8
|
+
*
|
|
9
|
+
* Copyright 2022 Mozilla Foundation
|
|
10
|
+
*
|
|
11
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
12
|
+
* you may not use this file except in compliance with the License.
|
|
13
|
+
* You may obtain a copy of the License at
|
|
14
|
+
*
|
|
15
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
+
*
|
|
17
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
+
* See the License for the specific language governing permissions and
|
|
21
|
+
* limitations under the License.
|
|
22
|
+
*
|
|
23
|
+
* @licend The above is the entire license notice for the
|
|
24
|
+
* JavaScript code in this page
|
|
25
|
+
*/
|
|
26
|
+
function(e,t){"object"===_typeof(exports)&&"object"===_typeof(module)?module.exports=t():(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_FACTORY__=t,__WEBPACK_AMD_DEFINE_RESULT__="function"===typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(globalThis,(function(){return function(){"use strict";var __webpack_modules__=[,function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.UNSUPPORTED_FEATURES=t.TextRenderingMode=t.StreamType=t.RenderingIntentFlag=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FontType=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.arrayByteLength=Q,t.arraysToBytes=ee,t.assert=j,t.bytesToString=J,t.createPromiseCapability=be,t.createValidAbsoluteUrl=q,t.escapeString=he,t.getModificationDate=ye,t.getVerbosityLevel=D,t.info=N,t.isArrayBuffer=ge,t.isArrayEqual=me,t.isAscii=de,t.objectFromMap=ae,t.objectSize=re,t.setVerbosityLevel=R,t.shadow=G,t.string32=te,t.stringToBytes=Z,t.stringToPDFString=ue,t.stringToUTF16BEString=fe,t.stringToUTF8String=pe,t.unreachable=B,t.utf8StringToString=ve,t.warn=L,r(2);var a=[1,0,0,1,0,0];t.IDENTITY_MATRIX=a;var n=[.001,0,0,.001,0,0];t.FONT_IDENTITY_MATRIX=n;var i=1.35;t.LINE_FACTOR=i;var o=.35;t.LINE_DESCENT_FACTOR=o;var s={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};t.RenderingIntentFlag=s;var l={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};t.AnnotationMode=l;var c="pdfjs_internal_editor_";t.AnnotationEditorPrefix=c;var u={DISABLE:-1,NONE:0,FREETEXT:3,INK:15};t.AnnotationEditorType=u;var h={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13};t.AnnotationEditorParamsType=h;var d={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.PermissionFlag=d;var f={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};t.TextRenderingMode=f;var p={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.ImageKind=p;var v={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};t.AnnotationType=v;var g={MARKED:"Marked",REVIEW:"Review"};t.AnnotationStateModelType=g;var m={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationMarkedState=m;var y={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReviewState=y;var b={GROUP:"Group",REPLY:"R"};t.AnnotationReplyType=b;var k={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFlag=k;var w={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};t.AnnotationFieldFlag=w;var _={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.AnnotationBorderStyleType=_;var S={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"};t.AnnotationActionEventType=S;var x={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};t.DocumentActionEventType=x;var A={O:"PageOpen",C:"PageClose"};t.PageActionEventType=A;var C={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.StreamType=C;var F={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};t.FontType=F;var P={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=P;var T={NONE:0,BINARY:1,STREAM:2};t.CMapCompressionType=T;var O={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};t.OPS=O;var I={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",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"};t.UNSUPPORTED_FEATURES=I;var E={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};t.PasswordResponses=E;var M=P.WARNINGS;function R(e){Number.isInteger(e)&&(M=e)}function D(){return M}function N(e){M>=P.INFOS&&console.log("Info: ".concat(e))}function L(e){M>=P.WARNINGS&&console.log("Warning: ".concat(e))}function B(e){throw new Error(e)}function j(e,t){e||B(t)}function U(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(r&&"string"===typeof e){if(r.addDefaultProtocol&&e.startsWith("www.")){var a=e.match(/\./g);a&&a.length>=2&&(e="http://".concat(e))}if(r.tryConvertEncoding)try{e=pe(e)}catch(i){}}var n=t?new URL(e,t):new URL(e);if(U(n))return n}catch(i){}return null}function G(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}var H=function(){function e(t,r){this.constructor===e&&B("Cannot initialize BaseException."),this.message=t,this.name=r}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=H;var X=function(e){_inherits(r,e);var t=_createSuper(r);function r(e,a){var n;return _classCallCheck(this,r),n=t.call(this,e,"PasswordException"),n.code=a,n}return _createClass(r)}(H);t.PasswordException=X;var $=function(e){_inherits(r,e);var t=_createSuper(r);function r(e,a){var n;return _classCallCheck(this,r),n=t.call(this,e,"UnknownErrorException"),n.details=a,n}return _createClass(r)}(H);t.UnknownErrorException=$;var z=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){return _classCallCheck(this,r),t.call(this,e,"InvalidPDFException")}return _createClass(r)}(H);t.InvalidPDFException=z;var W=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){return _classCallCheck(this,r),t.call(this,e,"MissingPDFException")}return _createClass(r)}(H);t.MissingPDFException=W;var V=function(e){_inherits(r,e);var t=_createSuper(r);function r(e,a){var n;return _classCallCheck(this,r),n=t.call(this,e,"UnexpectedResponseException"),n.status=a,n}return _createClass(r)}(H);t.UnexpectedResponseException=V;var Y=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){return _classCallCheck(this,r),t.call(this,e,"FormatError")}return _createClass(r)}(H);t.FormatError=Y;var K=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){return _classCallCheck(this,r),t.call(this,e,"AbortException")}return _createClass(r)}(H);function J(e){"object"===_typeof(e)&&null!==e&&void 0!==e.length||B("Invalid argument for bytesToString");var t=e.length,r=8192;if(t<r)return String.fromCharCode.apply(null,e);for(var a=[],n=0;n<t;n+=r){var i=Math.min(n+r,t),o=e.subarray(n,i);a.push(String.fromCharCode.apply(null,o))}return a.join("")}function Z(e){"string"!==typeof e&&B("Invalid argument for stringToBytes");for(var t=e.length,r=new Uint8Array(t),a=0;a<t;++a)r[a]=255&e.charCodeAt(a);return r}function Q(e){return void 0!==e.length?e.length:void 0!==e.byteLength?e.byteLength:void B("Invalid argument for arrayByteLength")}function ee(e){var t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];for(var r=0,a=0;a<t;a++)r+=Q(e[a]);for(var n=0,i=new Uint8Array(r),o=0;o<t;o++){var s=e[o];s instanceof Uint8Array||(s="string"===typeof s?Z(s):new Uint8Array(s));var l=s.byteLength;i.set(s,n),n+=l}return i}function te(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function re(e){return Object.keys(e).length}function ae(e){var t,r=Object.create(null),a=_createForOfIteratorHelper(e);try{for(a.s();!(t=a.n()).done;){var n=_slicedToArray(t.value,2),i=n[0],o=n[1];r[i]=o}}catch(s){a.e(s)}finally{a.f()}return r}function ne(){var e=new Uint8Array(4);e[0]=1;var t=new Uint32Array(e.buffer,0,1);return 1===t[0]}function ie(){try{return new Function(""),!0}catch(e){return!1}}t.AbortException=K;var oe=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"isLittleEndian",get:function(){return G(this,"isLittleEndian",ne())}},{key:"isEvalSupported",get:function(){return G(this,"isEvalSupported",ie())}},{key:"isOffscreenCanvasSupported",get:function(){return G(this,"isOffscreenCanvasSupported","undefined"!==typeof OffscreenCanvas)}}]),e}();t.FeatureTest=oe;var se=_toConsumableArray(Array(256).keys()).map((function(e){return e.toString(16).padStart(2,"0")})),le=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"makeHexColor",value:function(e,t,r){return"#".concat(se[e]).concat(se[t]).concat(se[r])}},{key:"scaleMinMax",value:function(e,t){var r;e[0]?(e[0]<0&&(r=t[0],t[0]=t[1],t[1]=r),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(r=t[2],t[2]=t[3],t[3]=r),t[2]*=e[3],t[3]*=e[3]):(r=t[0],t[0]=t[2],t[2]=r,r=t[1],t[1]=t[3],t[3]=r,e[1]<0&&(r=t[2],t[2]=t[3],t[3]=r),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(r=t[0],t[0]=t[1],t[1]=r),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}},{key:"transform",value:function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}},{key:"applyTransform",value:function(e,t){var r=e[0]*t[0]+e[1]*t[2]+t[4],a=e[0]*t[1]+e[1]*t[3]+t[5];return[r,a]}},{key:"applyInverseTransform",value:function(e,t){var r=t[0]*t[3]-t[1]*t[2],a=(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,n=(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r;return[a,n]}},{key:"getAxialAlignedBoundingBox",value:function(t,r){var a=e.applyTransform(t,r),n=e.applyTransform(t.slice(2,4),r),i=e.applyTransform([t[0],t[3]],r),o=e.applyTransform([t[2],t[1]],r);return[Math.min(a[0],n[0],i[0],o[0]),Math.min(a[1],n[1],i[1],o[1]),Math.max(a[0],n[0],i[0],o[0]),Math.max(a[1],n[1],i[1],o[1])]}},{key:"inverseTransform",value:function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}},{key:"apply3dTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}},{key:"singularValueDecompose2dScale",value:function(e){var t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],a=e[0]*t[1]+e[1]*t[3],n=e[2]*t[0]+e[3]*t[2],i=e[2]*t[1]+e[3]*t[3],o=(r+i)/2,s=Math.sqrt(Math.pow(r+i,2)-4*(r*i-n*a))/2,l=o+s||1,c=o-s||1;return[Math.sqrt(l),Math.sqrt(c)]}},{key:"normalizeRect",value:function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(e,t){var r=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),a=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(r>a)return null;var n=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),i=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return n>i?null:[r,n,a,i]}},{key:"bezierBoundingBox",value:function(e,t,r,a,n,i,o,s){for(var l,c,u,h,d,f,p,v,g=[],m=[[],[]],y=0;y<2;++y)if(0===y?(c=6*e-12*r+6*n,l=-3*e+9*r-9*n+3*o,u=3*r-3*e):(c=6*t-12*a+6*i,l=-3*t+9*a-9*i+3*s,u=3*a-3*t),Math.abs(l)<1e-12){if(Math.abs(c)<1e-12)continue;h=-u/c,0<h&&h<1&&g.push(h)}else p=c*c-4*u*l,v=Math.sqrt(p),p<0||(d=(-c+v)/(2*l),0<d&&d<1&&g.push(d),f=(-c-v)/(2*l),0<f&&f<1&&g.push(f));var b,k=g.length,w=k;while(k--)h=g[k],b=1-h,m[0][k]=b*b*b*e+3*b*b*h*r+3*b*h*h*n+h*h*h*o,m[1][k]=b*b*b*t+3*b*b*h*a+3*b*h*h*i+h*h*h*s;return m[0][w]=e,m[1][w]=t,m[0][w+1]=o,m[1][w+1]=s,m[0].length=m[1].length=w+2,[Math.min.apply(Math,_toConsumableArray(m[0])),Math.min.apply(Math,_toConsumableArray(m[1])),Math.max.apply(Math,_toConsumableArray(m[0])),Math.max.apply(Math,_toConsumableArray(m[1]))]}}]),e}();t.Util=le;var ce=[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 ue(e){var t;if(e[0]>="ï"&&("þ"===e[0]&&"ÿ"===e[1]?t="utf-16be":"ÿ"===e[0]&&"þ"===e[1]?t="utf-16le":"ï"===e[0]&&"»"===e[1]&&"¿"===e[2]&&(t="utf-8"),t))try{var r=new TextDecoder(t,{fatal:!0}),a=Z(e);return r.decode(a)}catch(l){L('stringToPDFString: "'.concat(l,'".'))}for(var n=[],i=0,o=e.length;i<o;i++){var s=ce[e.charCodeAt(i)];n.push(s?String.fromCharCode(s):e.charAt(i))}return n.join("")}function he(e){return e.replace(/([()\\\n\r])/g,(function(e){return"\n"===e?"\\n":"\r"===e?"\\r":"\\".concat(e)}))}function de(e){return/^[\x00-\x7F]*$/.test(e)}function fe(e){for(var t=["þÿ"],r=0,a=e.length;r<a;r++){var n=e.charCodeAt(r);t.push(String.fromCharCode(n>>8&255),String.fromCharCode(255&n))}return t.join("")}function pe(e){return decodeURIComponent(escape(e))}function ve(e){return unescape(encodeURIComponent(e))}function ge(e){return"object"===_typeof(e)&&null!==e&&void 0!==e.byteLength}function me(e,t){if(e.length!==t.length)return!1;for(var r=0,a=e.length;r<a;r++)if(e[r]!==t[r])return!1;return!0}function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")];return t.join("")}function be(){var e=Object.create(null),t=!1;return Object.defineProperty(e,"settled",{get:function(){return t}}),e.promise=new Promise((function(r,a){e.resolve=function(e){t=!0,r(e)},e.reject=function(e){t=!0,a(e)}})),e}},function(e,t,r){r(3)},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;var r="object"===("undefined"===typeof process?"undefined":_typeof(process))&&process+""==="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=r},function(__unused_webpack_module,exports,__w_pdfjs_require__){Object.defineProperty(exports,"__esModule",{value:!0}),exports.build=exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(5),_display_utils=__w_pdfjs_require__(8),_font_loader=__w_pdfjs_require__(11),_canvas=__w_pdfjs_require__(12),_worker_options=__w_pdfjs_require__(15),_is_node=__w_pdfjs_require__(3),_message_handler=__w_pdfjs_require__(16),_metadata=__w_pdfjs_require__(17),_optional_content_config=__w_pdfjs_require__(18),_transport_stream=__w_pdfjs_require__(19),_xfa_text=__w_pdfjs_require__(20),DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DefaultCanvasFactory=_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;var DefaultCMapReaderFactory=_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;var DefaultStandardFontDataFactory=_display_utils.DOMStandardFontDataFactory,createPDFNetworkStream;if(exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory,_is_node.isNodeJS){var _w_pdfjs_require__=__w_pdfjs_require__(21),NodeCanvasFactory=_w_pdfjs_require__.NodeCanvasFactory,NodeCMapReaderFactory=_w_pdfjs_require__.NodeCMapReaderFactory,NodeStandardFontDataFactory=_w_pdfjs_require__.NodeStandardFontDataFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory=NodeCanvasFactory,exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory=NodeCMapReaderFactory,exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory=NodeStandardFontDataFactory}function setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){var t,r=new PDFDocumentLoadingTask;if("string"===typeof e||e instanceof URL)t={url:e};else if((0,_util.isArrayBuffer)(e))t={data:e};else if(e instanceof PDFDataRangeTransport)t={range:e};else{if("object"!==_typeof(e))throw new Error("Invalid parameter in getDocument, need either string, URL, TypedArray, or parameter object.");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");t=e}var a=Object.create(null),n=null,i=null;for(var o in t){var s=t[o];switch(o){case"url":if("undefined"!==typeof window)try{a[o]=new URL(s,window.location).href;continue}catch(u){(0,_util.warn)('Cannot create valid URL: "'.concat(u,'".'))}else if("string"===typeof s||s instanceof URL){a[o]=s.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":n=s;continue;case"worker":i=s;continue;case"data":if(_is_node.isNodeJS&&"undefined"!==typeof Buffer&&s instanceof Buffer)a[o]=new Uint8Array(s);else{if(s instanceof Uint8Array)break;if("string"===typeof s)a[o]=(0,_util.stringToBytes)(s);else if("object"!==_typeof(s)||null===s||isNaN(s.length)){if(!(0,_util.isArrayBuffer)(s))throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.");a[o]=new Uint8Array(s)}else a[o]=new Uint8Array(s)}continue}a[o]=s}if(a.CMapReaderFactory=a.CMapReaderFactory||DefaultCMapReaderFactory,a.StandardFontDataFactory=a.StandardFontDataFactory||DefaultStandardFontDataFactory,a.ignoreErrors=!0!==a.stopAtErrors,a.fontExtraProperties=!0===a.fontExtraProperties,a.pdfBug=!0===a.pdfBug,a.enableXfa=!0===a.enableXfa,(!Number.isInteger(a.rangeChunkSize)||a.rangeChunkSize<1)&&(a.rangeChunkSize=DEFAULT_RANGE_CHUNK_SIZE),("string"!==typeof a.docBaseUrl||(0,_display_utils.isDataScheme)(a.docBaseUrl))&&(a.docBaseUrl=null),(!Number.isInteger(a.maxImageSize)||a.maxImageSize<-1)&&(a.maxImageSize=-1),"string"!==typeof a.cMapUrl&&(a.cMapUrl=null),"string"!==typeof a.standardFontDataUrl&&(a.standardFontDataUrl=null),"boolean"!==typeof a.useWorkerFetch&&(a.useWorkerFetch=a.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&a.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),"boolean"!==typeof a.isEvalSupported&&(a.isEvalSupported=!0),"boolean"!==typeof a.disableFontFace&&(a.disableFontFace=_is_node.isNodeJS),"boolean"!==typeof a.useSystemFonts&&(a.useSystemFonts=!_is_node.isNodeJS&&!a.disableFontFace),"object"===_typeof(a.ownerDocument)&&null!==a.ownerDocument||(a.ownerDocument=globalThis.document),"boolean"!==typeof a.disableRange&&(a.disableRange=!1),"boolean"!==typeof a.disableStream&&(a.disableStream=!1),"boolean"!==typeof a.disableAutoFetch&&(a.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(a.verbosity),!i){var l={verbosity:a.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};i=l.port?PDFWorker.fromPort(l):new PDFWorker(l),r._worker=i}var c=r.docId;return i.promise.then((function(){if(r.destroyed)throw new Error("Loading aborted");var e=_fetchDocument(i,a,n,c),t=new Promise((function(e){var t;n?t=new _transport_stream.PDFDataTransportStream({length:a.length,initialData:a.initialData,progressiveDone:a.progressiveDone,contentDispositionFilename:a.contentDispositionFilename,disableRange:a.disableRange,disableStream:a.disableStream},n):a.data||(t=createPDFNetworkStream({url:a.url,length:a.length,httpHeaders:a.httpHeaders,withCredentials:a.withCredentials,rangeChunkSize:a.rangeChunkSize,disableRange:a.disableRange,disableStream:a.disableStream})),e(t)}));return Promise.all([e,t]).then((function(e){var t=_slicedToArray(e,2),n=t[0],o=t[1];if(r.destroyed)throw new Error("Loading aborted");var s=new _message_handler.MessageHandler(c,n,i.port),l=new WorkerTransport(s,r,o,a);r._transport=l,s.send("Ready",null)}))}))["catch"](r._capability.reject),r}function _fetchDocument(e,t,r,a){return _fetchDocument2.apply(this,arguments)}function _fetchDocument2(){return _fetchDocument2=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,r,a,n){var i;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.destroyed){e.next=2;break}throw new Error("Worker was destroyed");case 2:return a&&(r.length=a.length,r.initialData=a.initialData,r.progressiveDone=a.progressiveDone,r.contentDispositionFilename=a.contentDispositionFilename),e.next=5,t.messageHandler.sendWithPromise("GetDocRequest",{docId:n,apiVersion:"2.16.105",source:{data:r.data,url:r.url,password:r.password,disableAutoFetch:r.disableAutoFetch,rangeChunkSize:r.rangeChunkSize,length:r.length},maxImageSize:r.maxImageSize,disableFontFace:r.disableFontFace,docBaseUrl:r.docBaseUrl,ignoreErrors:r.ignoreErrors,isEvalSupported:r.isEvalSupported,fontExtraProperties:r.fontExtraProperties,enableXfa:r.enableXfa,useSystemFonts:r.useSystemFonts,cMapUrl:r.useWorkerFetch?r.cMapUrl:null,standardFontDataUrl:r.useWorkerFetch?r.standardFontDataUrl:null});case 5:if(i=e.sent,r.data&&(r.data=null),!t.destroyed){e.next=9;break}throw new Error("Worker was destroyed");case 9:return e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)}))),_fetchDocument2.apply(this,arguments)}var PDFDocumentLoadingTask=function(){function e(){var t,r;_classCallCheck(this,e),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d".concat((_classStaticPrivateFieldSpecSet(e,e,_docId,(t=_classStaticPrivateFieldSpecGet(e,e,_docId),r=t++,t)),r)),this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(e,[{key:"promise",get:function(){return this._capability.promise}},{key:"destroy",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.destroyed=!0,e.next=3,null===(t=this._transport)||void 0===t?void 0:t.destroy();case 3:this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),e}(),_docId={writable:!0,value:0};exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;var PDFDataRangeTransport=function(){function e(t,r){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.length=t,this.initialData=r,this.progressiveDone=a,this.contentDispositionFilename=n,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(e,[{key:"addRangeListener",value:function(e){this._rangeListeners.push(e)}},{key:"addProgressListener",value:function(e){this._progressListeners.push(e)}},{key:"addProgressiveReadListener",value:function(e){this._progressiveReadListeners.push(e)}},{key:"addProgressiveDoneListener",value:function(e){this._progressiveDoneListeners.push(e)}},{key:"onDataRange",value:function(e,t){var r,a=_createForOfIteratorHelper(this._rangeListeners);try{for(a.s();!(r=a.n()).done;){var n=r.value;n(e,t)}}catch(i){a.e(i)}finally{a.f()}}},{key:"onDataProgress",value:function(e,t){var r=this;this._readyCapability.promise.then((function(){var a,n=_createForOfIteratorHelper(r._progressListeners);try{for(n.s();!(a=n.n()).done;){var i=a.value;i(e,t)}}catch(o){n.e(o)}finally{n.f()}}))}},{key:"onDataProgressiveRead",value:function(e){var t=this;this._readyCapability.promise.then((function(){var r,a=_createForOfIteratorHelper(t._progressiveReadListeners);try{for(a.s();!(r=a.n()).done;){var n=r.value;n(e)}}catch(i){a.e(i)}finally{a.f()}}))}},{key:"onDataProgressiveDone",value:function(){var e=this;this._readyCapability.promise.then((function(){var t,r=_createForOfIteratorHelper(e._progressiveDoneListeners);try{for(r.s();!(t=r.n()).done;){var a=t.value;a()}}catch(n){r.e(n)}finally{r.f()}}))}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),e}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function e(t,r){var a=this;_classCallCheck(this,e),this._pdfInfo=t,this._transport=r,Object.defineProperty(this,"fingerprint",{get:function(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."),this.fingerprints[0]}}),Object.defineProperty(this,"getStats",{value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return(0,_display_utils.deprecated)("`PDFDocumentProxy.getStats`, please use the `PDFDocumentProxy.stats`-getter instead."),e.abrupt("return",a.stats||{streamTypes:{},fontTypes:{}});case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()})}return _createClass(e,[{key:"annotationStorage",get:function(){return this._transport.annotationStorage}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprints",get:function(){return this._pdfInfo.fingerprints}},{key:"stats",get:function(){return this._transport.stats}},{key:"isPureXfa",get:function(){return!!this._transport._htmlForXfa}},{key:"allXfaHtml",get:function(){return this._transport._htmlForXfa}},{key:"getPage",value:function(e){return this._transport.getPage(e)}},{key:"getPageIndex",value:function(e){return this._transport.getPageIndex(e)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(e){return this._transport.getDestination(e)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getJSActions",value:function(){return this._transport.getDocJSActions()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getOptionalContentConfig",value:function(){return this._transport.getOptionalContentConfig()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getMarkInfo",value:function(){return this._transport.getMarkInfo()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._transport.startCleanup(e||this.isPureXfa)}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}},{key:"saveDocument",value:function(){return this._transport.annotationStorage.size<=0&&(0,_display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this._transport.saveDocument()}},{key:"getFieldObjects",value:function(){return this._transport.getFieldObjects()}},{key:"hasJSActions",value:function(){return this._transport.hasJSActions()}},{key:"getCalculationOrderIds",value:function(){return this._transport.getCalculationOrderIds()}}]),e}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function e(t,r,a,n){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._pageIndex=t,this._pageInfo=r,this._ownerDocument=n,this._transport=a,this._stats=i?new _display_utils.StatTimer:null,this._pdfBug=i,this.commonObjs=a.commonObjs,this.objs=new PDFObjects,this._bitmaps=new Set,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this._annotationPromises=new Map,this.destroyed=!1}return _createClass(e,[{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"getViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scale,r=e.rotation,a=void 0===r?this.rotate:r,n=e.offsetX,i=void 0===n?0:n,o=e.offsetY,s=void 0===o?0:o,l=e.dontFlip,c=void 0!==l&&l;return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:a,offsetX:i,offsetY:s,dontFlip:c})}},{key:"getAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intent,r=void 0===t?"display":t,a=this._transport.getRenderingIntent(r),n=this._annotationPromises.get(a.cacheKey);return n||(n=this._transport.getAnnotations(this._pageIndex,a.renderingIntent),this._annotationPromises.set(a.cacheKey,n),n=n.then((function(e){var t,r=_createForOfIteratorHelper(e);try{var a=function(){var e=t.value;void 0!==e.titleObj&&Object.defineProperty(e,"title",{get:function(){return(0,_display_utils.deprecated)("`title`-property on annotation, please use `titleObj` instead."),e.titleObj.str}}),void 0!==e.contentsObj&&Object.defineProperty(e,"contents",{get:function(){return(0,_display_utils.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."),e.contentsObj.str}})};for(r.s();!(t=r.n()).done;)a()}catch(n){r.e(n)}finally{r.f()}return e}))),n}},{key:"getJSActions",value:function(){return this._jsActionsPromise||(this._jsActionsPromise=this._transport.getPageJSActions(this._pageIndex))}},{key:"getXfa",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",(null===(t=this._transport._htmlForXfa)||void 0===t?void 0:t.children[this._pageIndex])||null);case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"render",value:function(e){var t,r,a,n=this,i=e.canvasContext,o=e.viewport,s=e.intent,l=void 0===s?"display":s,c=e.annotationMode,u=void 0===c?_util.AnnotationMode.ENABLE:c,h=e.transform,d=void 0===h?null:h,f=e.imageLayer,p=void 0===f?null:f,v=e.canvasFactory,g=void 0===v?null:v,m=e.background,y=void 0===m?null:m,b=e.optionalContentConfigPromise,k=void 0===b?null:b,w=e.annotationCanvasMap,_=void 0===w?null:w,S=e.pageColors,x=void 0===S?null:S,A=e.printAnnotationStorage,C=void 0===A?null:A;void 0!==(null===(t=arguments[0])||void 0===t?void 0:t.renderInteractiveForms)&&((0,_display_utils.deprecated)("render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead."),!0===arguments[0].renderInteractiveForms&&u===_util.AnnotationMode.ENABLE&&(u=_util.AnnotationMode.ENABLE_FORMS)),void 0!==(null===(r=arguments[0])||void 0===r?void 0:r.includeAnnotationStorage)&&((0,_display_utils.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, please use the `annotationMode`-option instead."),!0===arguments[0].includeAnnotationStorage&&u===_util.AnnotationMode.ENABLE&&(u=_util.AnnotationMode.ENABLE_STORAGE)),this._stats&&this._stats.time("Overall");var F=this._transport.getRenderingIntent(l,u,C);this.pendingCleanup=!1,k||(k=this._transport.getOptionalContentConfig());var P=this._intentStates.get(F.cacheKey);P||(P=Object.create(null),this._intentStates.set(F.cacheKey,P)),P.streamReaderCancelTimeout&&(clearTimeout(P.streamReaderCancelTimeout),P.streamReaderCancelTimeout=null);var T=g||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),O=!!(F.renderingIntent&_util.RenderingIntentFlag.PRINT);P.displayReadyCapability||(P.displayReadyCapability=(0,_util.createPromiseCapability)(),P.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(F));var I=function(e){P.renderTasks["delete"](E),(n.cleanupAfterRender||O)&&(n.pendingCleanup=!0),n._tryCleanup(),e?(E.capability.reject(e),n._abortOperatorList({intentState:P,reason:e instanceof Error?e:new Error(e)})):E.capability.resolve(),n._stats&&(n._stats.timeEnd("Rendering"),n._stats.timeEnd("Overall"))},E=new InternalRenderTask({callback:I,params:{canvasContext:i,viewport:o,transform:d,imageLayer:p,background:y},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:_,operatorList:P.operatorList,pageIndex:this._pageIndex,canvasFactory:T,useRequestAnimationFrame:!O,pdfBug:this._pdfBug,pageColors:x});((a=P).renderTasks||(a.renderTasks=new Set)).add(E);var M=E.task;return Promise.all([P.displayReadyCapability.promise,k]).then((function(e){var t=_slicedToArray(e,2),r=t[0],a=t[1];n.pendingCleanup?I():(n._stats&&n._stats.time("Rendering"),E.initializeGraphics({transparency:r,optionalContentConfig:a}),E.operatorListChanged())}))["catch"](I),M}},{key:"getOperatorList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intent,r=void 0===t?"display":t,a=e.annotationMode,n=void 0===a?_util.AnnotationMode.ENABLE:a,i=e.printAnnotationStorage,o=void 0===i?null:i;function s(){h.operatorList.lastChunk&&(h.opListReadCapability.resolve(h.operatorList),h.renderTasks["delete"](l))}var l,c,u=this._transport.getRenderingIntent(r,n,o,!0),h=this._intentStates.get(u.cacheKey);(h||(h=Object.create(null),this._intentStates.set(u.cacheKey,h)),h.opListReadCapability)||(l=Object.create(null),l.operatorListChanged=s,h.opListReadCapability=(0,_util.createPromiseCapability)(),((c=h).renderTasks||(c.renderTasks=new Set)).add(l),h.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(u));return h.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableCombineTextItems,r=void 0!==t&&t,a=e.includeMarkedContent,n=void 0!==a&&a,i=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,combineTextItems:!0!==r,includeMarkedContent:!0===n},{highWaterMark:i,size:function(e){return e.items.length}})}},{key:"getTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then((function(e){return _xfa_text.XfaText.textContent(e)}));var t=this.streamTextContent(e);return new Promise((function(e,r){function a(){n.read().then((function(t){var r,n=t.value,o=t.done;o?e(i):(Object.assign(i.styles,n.styles),(r=i.items).push.apply(r,_toConsumableArray(n.items)),a())}),r)}var n=t.getReader(),i={items:[],styles:Object.create(null)};a()}))}},{key:"getStructTree",value:function(){return this._structTreePromise||(this._structTreePromise=this._transport.getStructTree(this._pageIndex))}},{key:"_destroy",value:function(){this.destroyed=!0;var e,t=[],r=_createForOfIteratorHelper(this._intentStates.values());try{for(r.s();!(e=r.n()).done;){var a=e.value;if(this._abortOperatorList({intentState:a,reason:new Error("Page was destroyed."),force:!0}),!a.opListReadCapability){var n,i=_createForOfIteratorHelper(a.renderTasks);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.push(o.completed),o.cancel()}}catch(u){i.e(u)}finally{i.f()}}}}catch(u){r.e(u)}finally{r.f()}this.objs.clear();var s,l=_createForOfIteratorHelper(this._bitmaps);try{for(l.s();!(s=l.n()).done;){var c=s.value;c.close()}}catch(u){l.e(u)}finally{l.f()}return this._bitmaps.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(t)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(e)}},{key:"_tryCleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.pendingCleanup)return!1;var t,r=_createForOfIteratorHelper(this._intentStates.values());try{for(r.s();!(t=r.n()).done;){var a=t.value,n=a.renderTasks,i=a.operatorList;if(n.size>0||!i.lastChunk)return!1}}catch(c){r.e(c)}finally{r.f()}this._intentStates.clear(),this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer);var o,s=_createForOfIteratorHelper(this._bitmaps);try{for(s.s();!(o=s.n()).done;){var l=o.value;l.close()}}catch(c){s.e(c)}finally{s.f()}return this._bitmaps.clear(),this.pendingCleanup=!1,!0}},{key:"_startRenderPage",value:function(e,t){var r=this._intentStates.get(t);r&&(this._stats&&this._stats.timeEnd("Page Request"),r.displayReadyCapability&&r.displayReadyCapability.resolve(e))}},{key:"_renderPageChunk",value:function(e,t){for(var r=0,a=e.length;r<a;r++)t.operatorList.fnArray.push(e.fnArray[r]),t.operatorList.argsArray.push(e.argsArray[r]);t.operatorList.lastChunk=e.lastChunk,t.operatorList.separateAnnots=e.separateAnnots;var n,i=_createForOfIteratorHelper(t.renderTasks);try{for(i.s();!(n=i.n()).done;){var o=n.value;o.operatorListChanged()}}catch(s){i.e(s)}finally{i.f()}e.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(e){var t=this,r=e.renderingIntent,a=e.cacheKey,n=e.annotationStorageMap,i=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:r,cacheKey:a,annotationStorage:n}),o=i.getReader(),s=this._intentStates.get(a);s.streamReader=o;var l=function e(){o.read().then((function(r){var a=r.value,n=r.done;n?s.streamReader=null:t._transport.destroyed||(t._renderPageChunk(a,s),e())}),(function(e){if(s.streamReader=null,!t._transport.destroyed){if(s.operatorList){s.operatorList.lastChunk=!0;var r,a=_createForOfIteratorHelper(s.renderTasks);try{for(a.s();!(r=a.n()).done;){var n=r.value;n.operatorListChanged()}}catch(i){a.e(i)}finally{a.f()}t._tryCleanup()}if(s.displayReadyCapability)s.displayReadyCapability.reject(e);else{if(!s.opListReadCapability)throw e;s.opListReadCapability.reject(e)}}}))};l()}},{key:"_abortOperatorList",value:function(e){var t=this,r=e.intentState,a=e.reason,n=e.force,i=void 0!==n&&n;if(r.streamReader){if(!i){if(r.renderTasks.size>0)return;if(a instanceof _display_utils.RenderingCancelledException)return void(r.streamReaderCancelTimeout=setTimeout((function(){t._abortOperatorList({intentState:r,reason:a,force:!0}),r.streamReaderCancelTimeout=null}),RENDERING_CANCELLED_TIMEOUT))}if(r.streamReader.cancel(new _util.AbortException(a.message))["catch"]((function(){})),r.streamReader=null,!this._transport.destroyed){var o,s=_createForOfIteratorHelper(this._intentStates);try{for(s.s();!(o=s.n()).done;){var l=_slicedToArray(o.value,2),c=l[0],u=l[1];if(u===r){this._intentStates["delete"](c);break}}}catch(h){s.e(h)}finally{s.f()}this.cleanup()}}}},{key:"stats",get:function(){return this._stats}}]),e}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function e(){_classCallCheck(this,e),this._listeners=[],this._deferred=Promise.resolve()}return _createClass(e,[{key:"postMessage",value:function(e,t){var r=this,a={data:structuredClone(e,t)};this._deferred.then((function(){var e,t=_createForOfIteratorHelper(r._listeners);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.call(r,a)}}catch(i){t.e(i)}finally{t.f()}}))}},{key:"addEventListener",value:function(e,t){this._listeners.push(t)}},{key:"removeEventListener",value:function(e,t){var r=this._listeners.indexOf(t);this._listeners.splice(r,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),e}();exports.LoopbackPort=LoopbackPort;var PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_is_node.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"===("undefined"===typeof document?"undefined":_typeof(document))){var _document,pdfjsFilePath=null===(_document=document)||void 0===_document||null===(_document=_document.currentScript)||void 0===_document?void 0:_document.src;pdfjsFilePath&&(PDFWorkerUtil.fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){var r;try{if(r=new URL(e),!r.origin||"null"===r.origin)return!1}catch(n){return!1}var a=new URL(t,r);return r.origin===a.origin},PDFWorkerUtil.createCDNWrapper=function(e){var t='importScripts("'.concat(e,'");');return URL.createObjectURL(new Blob([t]))};var PDFWorker=function(){function PDFWorker(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,r=void 0===t?null:t,a=e.port,n=void 0===a?null:a,i=e.verbosity,o=void 0===i?(0,_util.getVerbosityLevel)():i;if(_classCallCheck(this,PDFWorker),n&&_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts).has(n))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=r,this.destroyed=!1,this.verbosity=o,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,n)return _classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts).set(n,this),void this._initializeFromPort(n);this._initialize()}return _createClass(PDFWorker,[{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}},{key:"_initializeFromPort",value:function(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var e=this;if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){var t=PDFWorker.workerSrc;try{PDFWorkerUtil.isSameOrigin(window.location.href,t)||(t=PDFWorkerUtil.createCDNWrapper(new URL(t,window.location).href));var r=new Worker(t),a=new _message_handler.MessageHandler("main","worker",r),n=function(){r.removeEventListener("error",i),a.destroy(),r.terminate(),e.destroyed?e._readyCapability.reject(new Error("Worker was destroyed")):e._setupFakeWorker()},i=function(){e._webWorker||n()};r.addEventListener("error",i),a.on("test",(function(t){r.removeEventListener("error",i),e.destroyed?n():t?(e._messageHandler=a,e._port=r,e._webWorker=r,e._readyCapability.resolve(),a.send("configure",{verbosity:e.verbosity})):(e._setupFakeWorker(),a.destroy(),r.terminate())})),a.on("ready",(function(t){if(r.removeEventListener("error",i),e.destroyed)n();else try{o()}catch(a){e._setupFakeWorker()}}));var o=function(){var e=new Uint8Array;a.send("test",e,[e.buffer])};return void o()}catch(s){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var e=this;PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then((function(t){if(e.destroyed)e._readyCapability.reject(new Error("Worker was destroyed"));else{var r=new LoopbackPort;e._port=r;var a="fake".concat(PDFWorkerUtil.fakeWorkerId++),n=new _message_handler.MessageHandler(a+"_worker",a,r);t.setup(n,r);var i=new _message_handler.MessageHandler(a,a+"_worker",r);e._messageHandler=i,e._readyCapability.resolve(),i.send("configure",{verbosity:e.verbosity})}}))["catch"]((function(t){e._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(t.message,'".')))}))}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts)["delete"](this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}}],[{key:"fromPort",value:function(e){if(null===e||void 0===e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return _classStaticPrivateFieldSpecGet(this,PDFWorker,_workerPorts).has(e.port)?_classStaticPrivateFieldSpecGet(this,PDFWorker,_workerPorts).get(e.port):new PDFWorker(e)}},{key:"workerSrc",get:function(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}},{key:"_mainThreadWorkerMessageHandler",get:function(){try{var e;return(null===(e=globalThis.pdfjsWorker)||void 0===e?void 0:e.WorkerMessageHandler)||null}catch(t){return null}}},{key:"_setupFakeWorkerGlobal",get:function get(){var _this14=this,loader=function(){var _ref15=_asyncToGenerator(_regeneratorRuntime().mark((function _callee4(){var mainWorkerMessageHandler,worker;return _regeneratorRuntime().wrap((function _callee4$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:if(mainWorkerMessageHandler=_this14._mainThreadWorkerMessageHandler,!mainWorkerMessageHandler){_context4.next=3;break}return _context4.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context4.next=6;break}return worker=eval("require")(_this14.workerSrc),_context4.abrupt("return",worker.WorkerMessageHandler);case 6:return _context4.next=8,(0,_display_utils.loadScript)(_this14.workerSrc);case 8:return _context4.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context4.stop()}}),_callee4)})));return function(){return _ref15.apply(this,arguments)}}();return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}]),PDFWorker}(),_workerPorts={writable:!0,value:new WeakMap};exports.PDFWorker=PDFWorker,PDFWorker.getWorkerSrc=function(){return(0,_display_utils.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."),this.workerSrc};var _docStats=new WeakMap,_pageCache=new WeakMap,_pagePromises=new WeakMap,_metadataPromise=new WeakMap,WorkerTransport=function(){function e(t,r,a,n){_classCallCheck(this,e),_classPrivateFieldInitSpec(this,_docStats,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,_pageCache,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_pagePromises,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_metadataPromise,{writable:!0,value:null}),this.messageHandler=t,this.loadingTask=r,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:r.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:n.ownerDocument,styleElement:n.styleElement}),this._params=n,n.useWorkerFetch||(this.CMapReaderFactory=new n.CMapReaderFactory({baseUrl:n.cMapUrl,isCompressed:n.cMapPacked}),this.StandardFontDataFactory=new n.StandardFontDataFactory({baseUrl:n.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=a,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(e,[{key:"annotationStorage",get:function(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}},{key:"stats",get:function(){return _classPrivateFieldGet(this,_docStats)}},{key:"getRenderingIntent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_util.AnnotationMode.ENABLE,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=_util.RenderingIntentFlag.DISPLAY,i=null;switch(e){case"any":n=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":n=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)("getRenderingIntent - invalid intent: ".concat(e))}switch(t){case _util.AnnotationMode.DISABLE:n+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:n+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:n+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE;var o=n&_util.RenderingIntentFlag.PRINT&&r instanceof _annotation_storage.PrintAnnotationStorage?r:this.annotationStorage;i=o.serializable;break;default:(0,_util.warn)("getRenderingIntent - invalid annotationMode: ".concat(t))}return a&&(n+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:n,cacheKey:"".concat(n,"_").concat(_annotation_storage.AnnotationStorage.getHash(i)),annotationStorageMap:i}}},{key:"destroy",value:function(){var e=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var t,r=[],a=_createForOfIteratorHelper(_classPrivateFieldGet(this,_pageCache).values());try{for(a.s();!(t=a.n()).done;){var n=t.value;r.push(n._destroy())}}catch(o){a.e(o)}finally{a.f()}_classPrivateFieldGet(this,_pageCache).clear(),_classPrivateFieldGet(this,_pagePromises).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();var i=this.messageHandler.sendWithPromise("Terminate",null);return r.push(i),Promise.all(r).then((function(){e.commonObjs.clear(),e.fontLoader.clear(),_classPrivateFieldSet(e,_metadataPromise,null),e._getFieldObjectsPromise=null,e._hasJSActionsPromise=null,e._networkStream&&e._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),e.messageHandler&&(e.messageHandler.destroy(),e.messageHandler=null),e.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var e=this,t=this.messageHandler,r=this.loadingTask;t.on("GetReader",(function(t,r){(0,_util.assert)(e._networkStream,"GetReader - no `IPDFStream` instance available."),e._fullReader=e._networkStream.getFullReader(),e._fullReader.onProgress=function(t){e._lastProgress={loaded:t.loaded,total:t.total}},r.onPull=function(){e._fullReader.read().then((function(e){var t=e.value,a=e.done;a?r.close():((0,_util.assert)((0,_util.isArrayBuffer)(t),"GetReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(t),1,[t]))}))["catch"]((function(e){r.error(e)}))},r.onCancel=function(t){e._fullReader.cancel(t),r.ready["catch"]((function(t){if(!e.destroyed)throw t}))}})),t.on("ReaderHeadersReady",(function(t){var a=(0,_util.createPromiseCapability)(),n=e._fullReader;return n.headersReady.then((function(){if(!n.isStreamingSupported||!n.isRangeSupported){var t;if(e._lastProgress)null===(t=r.onProgress)||void 0===t||t.call(r,e._lastProgress);n.onProgress=function(e){var t;null===(t=r.onProgress)||void 0===t||t.call(r,{loaded:e.loaded,total:e.total})}}a.resolve({isStreamingSupported:n.isStreamingSupported,isRangeSupported:n.isRangeSupported,contentLength:n.contentLength})}),a.reject),a.promise})),t.on("GetRangeReader",(function(t,r){(0,_util.assert)(e._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var a=e._networkStream.getRangeReader(t.begin,t.end);a?(r.onPull=function(){a.read().then((function(e){var t=e.value,a=e.done;a?r.close():((0,_util.assert)((0,_util.isArrayBuffer)(t),"GetRangeReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(t),1,[t]))}))["catch"]((function(e){r.error(e)}))},r.onCancel=function(t){a.cancel(t),r.ready["catch"]((function(t){if(!e.destroyed)throw t}))}):r.close()})),t.on("GetDoc",(function(t){var a=t.pdfInfo;e._numPages=a.numPages,e._htmlForXfa=a.htmlForXfa,delete a.htmlForXfa,r._capability.resolve(new PDFDocumentProxy(a,e))})),t.on("DocException",(function(e){var t;switch(e.name){case"PasswordException":t=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":t=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":t=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":t=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":t=new _util.UnknownErrorException(e.message,e.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}r._capability.reject(t)})),t.on("PasswordRequest",(function(t){if(e._passwordCapability=(0,_util.createPromiseCapability)(),r.onPassword){var a=function(t){t instanceof Error?e._passwordCapability.reject(t):e._passwordCapability.resolve({password:t})};try{r.onPassword(a,t.code)}catch(n){e._passwordCapability.reject(n)}}else e._passwordCapability.reject(new _util.PasswordException(t.message,t.code));return e._passwordCapability.promise})),t.on("DataLoaded",(function(t){var a;null===(a=r.onProgress)||void 0===a||a.call(r,{loaded:t.length,total:t.length}),e.downloadInfoCapability.resolve(t)})),t.on("StartRenderPage",(function(t){if(!e.destroyed){var r=_classPrivateFieldGet(e,_pageCache).get(t.pageIndex);r._startRenderPage(t.transparency,t.cacheKey)}})),t.on("commonobj",(function(r){var a,n=_slicedToArray(r,3),i=n[0],o=n[1],s=n[2];if(!e.destroyed&&!e.commonObjs.has(i))switch(o){case"Font":var l=e._params;if("error"in s){var c=s.error;(0,_util.warn)("Error during font loading: ".concat(c)),e.commonObjs.resolve(i,c);break}var u=null;l.pdfBug&&null!==(a=globalThis.FontInspector)&&void 0!==a&&a.enabled&&(u={registerFont:function(e,t){globalThis.FontInspector.fontAdded(e,t)}});var h=new _font_loader.FontFaceObject(s,{isEvalSupported:l.isEvalSupported,disableFontFace:l.disableFontFace,ignoreErrors:l.ignoreErrors,onUnsupportedFeature:e._onUnsupportedFeature.bind(e),fontRegistry:u});e.fontLoader.bind(h)["catch"]((function(e){return t.sendWithPromise("FontFallback",{id:i})}))["finally"]((function(){!l.fontExtraProperties&&h.data&&(h.data=null),e.commonObjs.resolve(i,h)}));break;case"FontPath":case"Image":e.commonObjs.resolve(i,s);break;default:throw new Error("Got unknown common object type ".concat(o))}})),t.on("obj",(function(t){var r=_slicedToArray(t,4),a=r[0],n=r[1],i=r[2],o=r[3];if(!e.destroyed){var s=_classPrivateFieldGet(e,_pageCache).get(n);if(!s.objs.has(a))switch(i){case"Image":s.objs.resolve(a,o);var l=8e6;if(o){var c;if(o.bitmap){var u=o.bitmap,h=o.width,d=o.height;c=h*d*4,s._bitmaps.add(u)}else{var f;c=(null===(f=o.data)||void 0===f?void 0:f.length)||0}c>l&&(s.cleanupAfterRender=!0)}break;case"Pattern":s.objs.resolve(a,o);break;default:throw new Error("Got unknown object type ".concat(i))}}})),t.on("DocProgress",(function(t){var a;e.destroyed||null===(a=r.onProgress)||void 0===a||a.call(r,{loaded:t.loaded,total:t.total})})),t.on("DocStats",(function(t){e.destroyed||_classPrivateFieldSet(e,_docStats,Object.freeze({streamTypes:Object.freeze(t.streamTypes),fontTypes:Object.freeze(t.fontTypes)}))})),t.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),t.on("FetchBuiltInCMap",(function(t){return e.destroyed?Promise.reject(new Error("Worker was destroyed.")):e.CMapReaderFactory?e.CMapReaderFactory.fetch(t):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))})),t.on("FetchStandardFontData",(function(t){return e.destroyed?Promise.reject(new Error("Worker was destroyed.")):e.StandardFontDataFactory?e.StandardFontDataFactory.fetch(t):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))}))}},{key:"_onUnsupportedFeature",value:function(e){var t,r,a=e.featureId;this.destroyed||null===(t=(r=this.loadingTask).onUnsupportedFeature)||void 0===t||t.call(r,a)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(e){var t=this;if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));var r=e-1,a=_classPrivateFieldGet(this,_pagePromises).get(r);if(a)return a;var n=this.messageHandler.sendWithPromise("GetPage",{pageIndex:r}).then((function(e){if(t.destroyed)throw new Error("Transport destroyed");var a=new PDFPageProxy(r,e,t,t._params.ownerDocument,t._params.pdfBug);return _classPrivateFieldGet(t,_pageCache).set(r,a),a}));return _classPrivateFieldGet(this,_pagePromises).set(r,n),n}},{key:"getPageIndex",value:function(e){return"object"!==_typeof(e)||null===e||!Number.isInteger(e.num)||e.num<0||!Number.isInteger(e.gen)||e.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen})}},{key:"getAnnotations",value:function(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}},{key:"saveDocument",value:function(){var e,t,r=this;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:null!==(e=null===(t=this._fullReader)||void 0===t?void 0:t.filename)&&void 0!==e?e:null})["finally"]((function(){r.annotationStorage.resetModified()}))}},{key:"getFieldObjects",value:function(){return this._getFieldObjectsPromise||(this._getFieldObjectsPromise=this.messageHandler.sendWithPromise("GetFieldObjects",null))}},{key:"hasJSActions",value:function(){return this._hasJSActionsPromise||(this._hasJSActionsPromise=this.messageHandler.sendWithPromise("HasJSActions",null))}},{key:"getCalculationOrderIds",value:function(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(e){return"string"!==typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getDocJSActions",value:function(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}},{key:"getPageJSActions",value:function(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}},{key:"getStructTree",value:function(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getOptionalContentConfig",value:function(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((function(e){return new _optional_content_config.OptionalContentConfig(e)}))}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var e=this;return _classPrivateFieldGet(this,_metadataPromise)||_classPrivateFieldSet(this,_metadataPromise,this.messageHandler.sendWithPromise("GetMetadata",null).then((function(t){var r,a,n,i;return{info:t[0],metadata:t[1]?new _metadata.Metadata(t[1]):null,contentDispositionFilename:null!==(r=null===(a=e._fullReader)||void 0===a?void 0:a.filename)&&void 0!==r?r:null,contentLength:null!==(n=null===(i=e._fullReader)||void 0===i?void 0:i.contentLength)&&void 0!==n?n:null}})))}},{key:"getMarkInfo",value:function(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}},{key:"startCleanup",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,a,n,i,o=arguments;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]&&o[0],e.next=3,this.messageHandler.sendWithPromise("Cleanup",null);case 3:if(!this.destroyed){e.next=5;break}return e.abrupt("return");case 5:r=_createForOfIteratorHelper(_classPrivateFieldGet(this,_pageCache).values()),e.prev=6,r.s();case 8:if((a=r.n()).done){e.next=15;break}if(n=a.value,i=n.cleanup(),i){e.next=13;break}throw new Error("startCleanup: Page ".concat(n.pageNumber," is currently rendering."));case 13:e.next=8;break;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e["catch"](6),r.e(e.t0);case 20:return e.prev=20,r.f(),e.finish(20);case 23:this.commonObjs.clear(),t||this.fontLoader.clear(),_classPrivateFieldSet(this,_metadataPromise,null),this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null;case 28:case"end":return e.stop()}}),e,this,[[6,17,20,23]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"loadingParams",get:function(){var e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,enableXfa:e.enableXfa})}}]),e}(),_objs=new WeakMap,_ensureObj=new WeakSet,PDFObjects=function(){function e(){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,_ensureObj),_classPrivateFieldInitSpec(this,_objs,{writable:!0,value:Object.create(null)})}return _createClass(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t){var r=_classPrivateMethodGet(this,_ensureObj,_ensureObj2).call(this,e);return r.capability.promise.then((function(){return t(r.data)})),null}var a=_classPrivateFieldGet(this,_objs)[e];if(null===a||void 0===a||!a.capability.settled)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return a.data}},{key:"has",value:function(e){var t=_classPrivateFieldGet(this,_objs)[e];return(null===t||void 0===t?void 0:t.capability.settled)||!1}},{key:"resolve",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=_classPrivateMethodGet(this,_ensureObj,_ensureObj2).call(this,e);r.data=t,r.capability.resolve()}},{key:"clear",value:function(){_classPrivateFieldSet(this,_objs,Object.create(null))}}]),e}();function _ensureObj2(e){var t=_classPrivateFieldGet(this,_objs)[e];return t||(_classPrivateFieldGet(this,_objs)[e]={capability:(0,_util.createPromiseCapability)(),data:null})}var _internalRenderTask=new WeakMap,RenderTask=function(){function e(t){_classCallCheck(this,e),_classPrivateFieldInitSpec(this,_internalRenderTask,{writable:!0,value:null}),_classPrivateFieldSet(this,_internalRenderTask,t),this.onContinue=null}return _createClass(e,[{key:"promise",get:function(){return _classPrivateFieldGet(this,_internalRenderTask).capability.promise}},{key:"cancel",value:function(){_classPrivateFieldGet(this,_internalRenderTask).cancel()}},{key:"separateAnnots",get:function(){var e=_classPrivateFieldGet(this,_internalRenderTask).operatorList.separateAnnots;if(!e)return!1;var t=_classPrivateFieldGet(this,_internalRenderTask),r=t.annotationCanvasMap;return e.form||e.canvas&&(null===r||void 0===r?void 0:r.size)>0}}]),e}();exports.RenderTask=RenderTask;var InternalRenderTask=function(){function e(t){var r=t.callback,a=t.params,n=t.objs,i=t.commonObjs,o=t.annotationCanvasMap,s=t.operatorList,l=t.pageIndex,c=t.canvasFactory,u=t.useRequestAnimationFrame,h=void 0!==u&&u,d=t.pdfBug,f=void 0!==d&&d,p=t.pageColors,v=void 0===p?null:p;_classCallCheck(this,e),this.callback=r,this.params=a,this.objs=n,this.commonObjs=i,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=s,this._pageIndex=l,this.canvasFactory=c,this._pdfBug=f,this.pageColors=v,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===h&&"undefined"!==typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=a.canvasContext.canvas}return _createClass(e,[{key:"completed",get:function(){return this.capability.promise["catch"]((function(){}))}},{key:"initializeGraphics",value:function(t){var r,a=t.transparency,n=void 0!==a&&a,i=t.optionalContentConfig;if(!this.cancelled){if(this._canvas){if(_classStaticPrivateFieldSpecGet(e,e,_canvasInUse).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");_classStaticPrivateFieldSpecGet(e,e,_canvasInUse).add(this._canvas)}this._pdfBug&&null!==(r=globalThis.StepperManager)&&void 0!==r&&r.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var o=this.params,s=o.canvasContext,l=o.viewport,c=o.transform,u=o.imageLayer,h=o.background;this.gfx=new _canvas.CanvasGraphics(s,this.commonObjs,this.objs,this.canvasFactory,u,i,this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:c,viewport:l,transparency:n,background:h}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&_classStaticPrivateFieldSpecGet(e,e,_canvasInUse)["delete"](this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var e=this;this._useRequestAnimationFrame?window.requestAnimationFrame((function(){e._nextBound()["catch"](e._cancelBound)})):Promise.resolve().then(this._nextBound)["catch"](this._cancelBound)}},{key:"_next",value:function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.cancelled){t.next=2;break}return t.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&_classStaticPrivateFieldSpecGet(e,e,_canvasInUse)["delete"](this._canvas),this.callback()));case 4:case"end":return t.stop()}}),t,this)})));function r(){return t.apply(this,arguments)}return r}()}]),e}(),_canvasInUse={writable:!0,value:new WeakSet},version="2.16.105";exports.version=version;var build="172ccdbe5";exports.build=build},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.PrintAnnotationStorage=t.AnnotationStorage=void 0;var a=r(1),n=r(6),i=r(10),o=new WeakSet,s=function(){function e(){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,o),this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}return _createClass(e,[{key:"getValue",value:function(e,t){var r=this._storage.get(e);return void 0===r?t:Object.assign(t,r)}},{key:"getRawValue",value:function(e){return this._storage.get(e)}},{key:"remove",value:function(e){if(this._storage["delete"](e),0===this._storage.size&&this.resetModified(),"function"===typeof this.onAnnotationEditor){var t,r=_createForOfIteratorHelper(this._storage.values());try{for(r.s();!(t=r.n()).done;){var a=t.value;if(a instanceof n.AnnotationEditor)return}}catch(i){r.e(i)}finally{r.f()}this.onAnnotationEditor(null)}}},{key:"setValue",value:function(e,t){var r=this._storage.get(e),a=!1;if(void 0!==r)for(var i=0,s=Object.entries(t);i<s.length;i++){var c=_slicedToArray(s[i],2),u=c[0],h=c[1];r[u]!==h&&(a=!0,r[u]=h)}else a=!0,this._storage.set(e,t);a&&_classPrivateMethodGet(this,o,l).call(this),t instanceof n.AnnotationEditor&&"function"===typeof this.onAnnotationEditor&&this.onAnnotationEditor(t.constructor._type)}},{key:"has",value:function(e){return this._storage.has(e)}},{key:"getAll",value:function(){return this._storage.size>0?(0,a.objectFromMap)(this._storage):null}},{key:"size",get:function(){return this._storage.size}},{key:"resetModified",value:function(){this._modified&&(this._modified=!1,"function"===typeof this.onResetModified&&this.onResetModified())}},{key:"print",get:function(){return new u(this)}},{key:"serializable",get:function(){if(0===this._storage.size)return null;var e,t=new Map,r=_createForOfIteratorHelper(this._storage);try{for(r.s();!(e=r.n()).done;){var a=_slicedToArray(e.value,2),i=a[0],o=a[1],s=o instanceof n.AnnotationEditor?o.serialize():o;s&&t.set(i,s)}}catch(l){r.e(l)}finally{r.f()}return t}}],[{key:"getHash",value:function(e){if(!e)return"";var t,r=new i.MurmurHash3_64,a=_createForOfIteratorHelper(e);try{for(a.s();!(t=a.n()).done;){var n=_slicedToArray(t.value,2),o=n[0],s=n[1];r.update("".concat(o,":").concat(JSON.stringify(s)))}}catch(l){a.e(l)}finally{a.f()}return r.hexdigest()}}]),e}();function l(){this._modified||(this._modified=!0,"function"===typeof this.onSetModified&&this.onSetModified())}t.AnnotationStorage=s;var c=new WeakMap,u=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a;return _classCallCheck(this,r),a=t.call(this),_classPrivateFieldInitSpec(_assertThisInitialized(a),c,{writable:!0,value:null}),_classPrivateFieldSet(_assertThisInitialized(a),c,structuredClone(e.serializable)),a}return _createClass(r,[{key:"print",get:function(){(0,a.unreachable)("Should not call PrintAnnotationStorage.print")}},{key:"serializable",get:function(){return _classPrivateFieldGet(this,c)}}]),r}(s);t.PrintAnnotationStorage=u},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditor=void 0;var a=r(7),n=r(1),i=new WeakMap,o=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,h=function(){function e(t){_classCallCheck(this,e),_classPrivateFieldInitSpec(this,i,{writable:!0,value:this.focusin.bind(this)}),_classPrivateFieldInitSpec(this,o,{writable:!0,value:this.focusout.bind(this)}),_classPrivateFieldInitSpec(this,s,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,l,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:e._zIndex++}),this.constructor===e&&(0,n.unreachable)("Cannot initialize AnnotationEditor."),this.parent=t.parent,this.id=t.id,this.width=this.height=null,this.pageIndex=t.parent.pageIndex,this.name=t.name,this.div=null;var r=_slicedToArray(this.parent.viewportBaseDimensions,2),a=r[0],h=r[1];this.x=t.x/a,this.y=t.y/h,this.rotation=this.parent.viewport.rotation,this.isAttachedToDOM=!1}return _createClass(e,[{key:"setInBackground",value:function(){this.div.style.zIndex=0}},{key:"setInForeground",value:function(){this.div.style.zIndex=_classPrivateFieldGet(this,u)}},{key:"focusin",value:function(e){_classPrivateFieldGet(this,s)?_classPrivateFieldSet(this,s,!1):this.parent.setSelected(this)}},{key:"focusout",value:function(e){if(this.isAttachedToDOM){var t=e.relatedTarget;null!==t&&void 0!==t&&t.closest("#".concat(this.id))||(e.preventDefault(),this.parent.isMultipleSelection||this.commitOrRemove())}}},{key:"commitOrRemove",value:function(){this.isEmpty()?this.remove():this.commit()}},{key:"commit",value:function(){this.parent.addToAnnotationStorage(this)}},{key:"dragstart",value:function(e){var t=this.parent.div.getBoundingClientRect();this.startX=e.clientX-t.x,this.startY=e.clientY-t.y,e.dataTransfer.setData("text/plain",this.id),e.dataTransfer.effectAllowed="move"}},{key:"setAt",value:function(e,t,r,a){var n=_slicedToArray(this.parent.viewportBaseDimensions,2),i=n[0],o=n[1],s=this.screenToPageTranslation(r,a),l=_slicedToArray(s,2);r=l[0],a=l[1],this.x=(e+r)/i,this.y=(t+a)/o,this.div.style.left="".concat(100*this.x,"%"),this.div.style.top="".concat(100*this.y,"%")}},{key:"translate",value:function(e,t){var r=_slicedToArray(this.parent.viewportBaseDimensions,2),a=r[0],n=r[1],i=this.screenToPageTranslation(e,t),o=_slicedToArray(i,2);e=o[0],t=o[1],this.x+=e/a,this.y+=t/n,this.div.style.left="".concat(100*this.x,"%"),this.div.style.top="".concat(100*this.y,"%")}},{key:"screenToPageTranslation",value:function(e,t){var r=this.parent.viewport.rotation;switch(r){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}},{key:"setDims",value:function(e,t){var r=_slicedToArray(this.parent.viewportBaseDimensions,2),a=r[0],n=r[1];this.div.style.width="".concat(100*e/a,"%"),this.div.style.height="".concat(100*t/n,"%")}},{key:"getInitialTranslation",value:function(){return[0,0]}},{key:"render",value:function(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",_classPrivateFieldGet(this,i)),this.div.addEventListener("focusout",_classPrivateFieldGet(this,o));var e=this.getInitialTranslation(),t=_slicedToArray(e,2),r=t[0],n=t[1];return this.translate(r,n),(0,a.bindEvents)(this,this.div,["dragstart","pointerdown"]),this.div}},{key:"pointerdown",value:function(e){var t=a.KeyboardManager.platform.isMac;0!==e.button||e.ctrlKey&&t?e.preventDefault():(e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this),_classPrivateFieldSet(this,s,!0))}},{key:"getRect",value:function(e,t){var r=_slicedToArray(this.parent.viewportBaseDimensions,2),a=r[0],n=r[1],i=_slicedToArray(this.parent.pageDimensions,2),o=i[0],s=i[1],l=o*e/a,c=s*t/n,u=this.x*o,h=this.y*s,d=this.width*o,f=this.height*s;switch(this.rotation){case 0:return[u+l,s-h-c-f,u+l+d,s-h-c];case 90:return[u+c,s-h+l,u+c+f,s-h+l+d];case 180:return[u-l-d,s-h+c,u-l,s-h+c+f];case 270:return[u-c-f,s-h-l-d,u-c,s-h-l];default:throw new Error("Invalid rotation")}}},{key:"getRectInCurrentCoords",value:function(e,t){var r=_slicedToArray(e,4),a=r[0],n=r[1],i=r[2],o=r[3],s=i-a,l=o-n;switch(this.rotation){case 0:return[a,t-o,s,l];case 90:return[a,t-n,l,s];case 180:return[i,t-n,s,l];case 270:return[i,t-o,l,s];default:throw new Error("Invalid rotation")}}},{key:"onceAdded",value:function(){}},{key:"isEmpty",value:function(){return!1}},{key:"enableEditMode",value:function(){_classPrivateFieldSet(this,c,!0)}},{key:"disableEditMode",value:function(){_classPrivateFieldSet(this,c,!1)}},{key:"isInEditMode",value:function(){return _classPrivateFieldGet(this,c)}},{key:"shouldGetKeyboardEvents",value:function(){return!1}},{key:"needsToBeRebuilt",value:function(){return this.div&&!this.isAttachedToDOM}},{key:"rebuild",value:function(){var e;null===(e=this.div)||void 0===e||e.addEventListener("focusin",_classPrivateFieldGet(this,i))}},{key:"serialize",value:function(){(0,n.unreachable)("An editor must be serializable")}},{key:"remove",value:function(){this.div.removeEventListener("focusin",_classPrivateFieldGet(this,i)),this.div.removeEventListener("focusout",_classPrivateFieldGet(this,o)),this.isEmpty()||this.commit(),this.parent.remove(this)}},{key:"select",value:function(){var e;null===(e=this.div)||void 0===e||e.classList.add("selectedEditor")}},{key:"unselect",value:function(){var e;null===(e=this.div)||void 0===e||e.classList.remove("selectedEditor")}},{key:"updateParams",value:function(e,t){}},{key:"disableEditing",value:function(){}},{key:"enableEditing",value:function(){}},{key:"propertiesToUpdate",get:function(){return{}}},{key:"contentDiv",get:function(){return this.div}},{key:"isEditing",get:function(){return _classPrivateFieldGet(this,l)},set:function(e){_classPrivateFieldSet(this,l,e),e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null)}}],[{key:"_defaultLineColor",get:function(){return(0,n.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}},{key:"deserialize",value:function(e,t){var r=new this.prototype.constructor({parent:t,id:t.getNextId()});r.rotation=e.rotation;var a=_slicedToArray(t.pageDimensions,2),n=a[0],i=a[1],o=r.getRectInCurrentCoords(e.rect,i),s=_slicedToArray(o,4),l=s[0],c=s[1],u=s[2],h=s[3];return r.x=l/n,r.y=c/i,r.width=u/n,r.height=h/i,r}}]),e}();_defineProperty(h,"_colorManager",new a.ColorManager),_defineProperty(h,"_zIndex",1),t.AnnotationEditor=h},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardManager=t.CommandManager=t.ColorManager=t.AnnotationEditorUIManager=void 0,t.bindEvents=i,t.opacityToHex=o;var a=r(1),n=r(8);function i(e,t,r){var a,n=_createForOfIteratorHelper(r);try{for(n.s();!(a=n.n()).done;){var i=a.value;t.addEventListener(i,e[i].bind(e))}}catch(o){n.e(o)}finally{n.f()}}function o(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")}var s=new WeakMap,l=function(){function e(){_classCallCheck(this,e),_classPrivateFieldInitSpec(this,s,{writable:!0,value:0})}return _createClass(e,[{key:"getId",value:function(){var e,t;return"".concat(a.AnnotationEditorPrefix).concat((_classPrivateFieldSet(this,s,(e=_classPrivateFieldGet(this,s),t=e++,e)),t))}}]),e}(),c=new WeakMap,u=new WeakMap,h=new WeakMap,d=new WeakMap,f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:128;_classCallCheck(this,e),_classPrivateFieldInitSpec(this,c,{writable:!0,value:[]}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:-1}),_classPrivateFieldSet(this,h,t)}return _createClass(e,[{key:"add",value:function(e){var t=e.cmd,r=e.undo,a=e.mustExec,n=e.type,i=void 0===n?NaN:n,o=e.overwriteIfSameType,s=void 0!==o&&o,l=e.keepUndo,f=void 0!==l&&l;if(a&&t(),!_classPrivateFieldGet(this,u)){var p={cmd:t,undo:r,type:i};if(-1===_classPrivateFieldGet(this,d))return _classPrivateFieldGet(this,c).length>0&&(_classPrivateFieldGet(this,c).length=0),_classPrivateFieldSet(this,d,0),void _classPrivateFieldGet(this,c).push(p);if(s&&_classPrivateFieldGet(this,c)[_classPrivateFieldGet(this,d)].type===i)return f&&(p.undo=_classPrivateFieldGet(this,c)[_classPrivateFieldGet(this,d)].undo),void(_classPrivateFieldGet(this,c)[_classPrivateFieldGet(this,d)]=p);var v=_classPrivateFieldGet(this,d)+1;v===_classPrivateFieldGet(this,h)?_classPrivateFieldGet(this,c).splice(0,1):(_classPrivateFieldSet(this,d,v),v<_classPrivateFieldGet(this,c).length&&_classPrivateFieldGet(this,c).splice(v)),_classPrivateFieldGet(this,c).push(p)}}},{key:"undo",value:function(){-1!==_classPrivateFieldGet(this,d)&&(_classPrivateFieldSet(this,u,!0),_classPrivateFieldGet(this,c)[_classPrivateFieldGet(this,d)].undo(),_classPrivateFieldSet(this,u,!1),_classPrivateFieldSet(this,d,_classPrivateFieldGet(this,d)-1))}},{key:"redo",value:function(){_classPrivateFieldGet(this,d)<_classPrivateFieldGet(this,c).length-1&&(_classPrivateFieldSet(this,d,_classPrivateFieldGet(this,d)+1),_classPrivateFieldSet(this,u,!0),_classPrivateFieldGet(this,c)[_classPrivateFieldGet(this,d)].cmd(),_classPrivateFieldSet(this,u,!1))}},{key:"hasSomethingToUndo",value:function(){return-1!==_classPrivateFieldGet(this,d)}},{key:"hasSomethingToRedo",value:function(){return _classPrivateFieldGet(this,d)<_classPrivateFieldGet(this,c).length-1}},{key:"destroy",value:function(){_classPrivateFieldSet(this,c,null)}}]),e}();t.CommandManager=f;var p=new WeakSet,v=function(){function e(t){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,p),this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;var r,a=e.platform.isMac,n=_createForOfIteratorHelper(t);try{for(n.s();!(r=n.n()).done;){var i,o=_slicedToArray(r.value,2),s=o[0],l=o[1],c=_createForOfIteratorHelper(s);try{for(c.s();!(i=c.n()).done;){var u=i.value,h=u.startsWith("mac+");a&&h?(this.callbacks.set(u.slice(4),l),this.allKeys.add(u.split("+").at(-1))):a||h||(this.callbacks.set(u,l),this.allKeys.add(u.split("+").at(-1)))}}catch(d){c.e(d)}finally{c.f()}}}catch(d){n.e(d)}finally{n.f()}}return _createClass(e,[{key:"exec",value:function(e,t){if(this.allKeys.has(t.key)){var r=this.callbacks.get(_classPrivateMethodGet(this,p,g).call(this,t));r&&(r.bind(e)(),t.stopPropagation(),t.preventDefault())}}}],[{key:"platform",get:function(){var e="undefined"!==typeof navigator?navigator.platform:"";return(0,a.shadow)(this,"platform",{isWin:e.includes("Win"),isMac:e.includes("Mac")})}}]),e}();function g(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);var t=this.buffer.join("+");return this.buffer.length=0,t}t.KeyboardManager=v;var m=new WeakMap,y=function(){function e(){_classCallCheck(this,e),_classPrivateFieldInitSpec(this,m,{writable:!0,value:null})}return _createClass(e,[{key:"copy",value:function(e){e&&(Array.isArray(e)?_classPrivateFieldSet(this,m,e.map((function(e){return e.serialize()}))):_classPrivateFieldSet(this,m,[e.serialize()]),_classPrivateFieldSet(this,m,_classPrivateFieldGet(this,m).filter((function(e){return!!e}))),0===_classPrivateFieldGet(this,m).length&&_classPrivateFieldSet(this,m,null))}},{key:"paste",value:function(){return _classPrivateFieldGet(this,m)}},{key:"isEmpty",value:function(){return null===_classPrivateFieldGet(this,m)}},{key:"destroy",value:function(){_classPrivateFieldSet(this,m,null)}}]),e}(),b=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"_colors",get:function(){var e=new Map([["CanvasText",null],["Canvas",null]]);return(0,n.getColorValues)(e),(0,a.shadow)(this,"_colors",e)}},{key:"convert",value:function(t){var r=(0,n.getRGB)(t);if(!window.matchMedia("(forced-colors: active)").matches)return r;var a,i=_createForOfIteratorHelper(this._colors);try{for(i.s();!(a=i.n()).done;){var o=_slicedToArray(a.value,2),s=o[0],l=o[1];if(l.every((function(e,t){return e===r[t]})))return e._colorsMapping.get(s)}}catch(c){i.e(c)}finally{i.f()}return r}},{key:"getHexCode",value:function(e){var t,r=this._colors.get(e);return r?(t=a.Util).makeHexColor.apply(t,_toConsumableArray(r)):e}}]),e}();_defineProperty(b,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]])),t.ColorManager=b;var k=new WeakMap,w=new WeakMap,_=new WeakMap,S=new WeakMap,x=new WeakMap,A=new WeakMap,C=new WeakMap,F=new WeakMap,P=new WeakMap,T=new WeakMap,O=new WeakMap,I=new WeakMap,E=new WeakMap,M=new WeakMap,R=new WeakMap,D=new WeakMap,N=new WeakMap,L=new WeakSet,B=new WeakSet,j=new WeakSet,U=new WeakSet,q=new WeakSet,G=new WeakSet,H=new WeakSet,X=new WeakSet,$=new WeakSet,z=function(){function e(t,r){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,$),_classPrivateMethodInitSpec(this,X),_classPrivateMethodInitSpec(this,H),_classPrivateMethodInitSpec(this,G),_classPrivateMethodInitSpec(this,q),_classPrivateMethodInitSpec(this,U),_classPrivateMethodInitSpec(this,j),_classPrivateMethodInitSpec(this,B),_classPrivateMethodInitSpec(this,L),_classPrivateFieldInitSpec(this,k,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,w,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,S,{writable:!0,value:new y}),_classPrivateFieldInitSpec(this,x,{writable:!0,value:new f}),_classPrivateFieldInitSpec(this,A,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,C,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,F,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,P,{writable:!0,value:new l}),_classPrivateFieldInitSpec(this,T,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,O,{writable:!0,value:a.AnnotationEditorType.NONE}),_classPrivateFieldInitSpec(this,I,{writable:!0,value:new Set}),_classPrivateFieldInitSpec(this,E,{writable:!0,value:this.keydown.bind(this)}),_classPrivateFieldInitSpec(this,M,{writable:!0,value:this.onEditingAction.bind(this)}),_classPrivateFieldInitSpec(this,R,{writable:!0,value:this.onPageChanging.bind(this)}),_classPrivateFieldInitSpec(this,D,{writable:!0,value:{isEditing:!1,isEmpty:!0,hasEmptyClipboard:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1}}),_classPrivateFieldInitSpec(this,N,{writable:!0,value:null}),_classPrivateFieldSet(this,N,t),_classPrivateFieldSet(this,F,r),_classPrivateFieldGet(this,F)._on("editingaction",_classPrivateFieldGet(this,M)),_classPrivateFieldGet(this,F)._on("pagechanging",_classPrivateFieldGet(this,R))}return _createClass(e,[{key:"destroy",value:function(){_classPrivateMethodGet(this,B,V).call(this),_classPrivateFieldGet(this,F)._off("editingaction",_classPrivateFieldGet(this,M)),_classPrivateFieldGet(this,F)._off("pagechanging",_classPrivateFieldGet(this,R));var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(this,_).values());try{for(t.s();!(e=t.n()).done;){var r=e.value;r.destroy()}}catch(a){t.e(a)}finally{t.f()}_classPrivateFieldGet(this,_).clear(),_classPrivateFieldGet(this,w).clear(),_classPrivateFieldSet(this,k,null),_classPrivateFieldGet(this,I).clear(),_classPrivateFieldGet(this,S).destroy(),_classPrivateFieldGet(this,x).destroy()}},{key:"onPageChanging",value:function(e){var t=e.pageNumber;_classPrivateFieldSet(this,A,t-1)}},{key:"focusMainContainer",value:function(){_classPrivateFieldGet(this,N).focus()}},{key:"keydown",value:function(t){var r;null!==(r=this.getActive())&&void 0!==r&&r.shouldGetKeyboardEvents()||e._keyboardManager.exec(this,t)}},{key:"onEditingAction",value:function(e){["undo","redo","cut","copy","paste","delete","selectAll"].includes(e.name)&&this[e.name]()}},{key:"setEditingState",value:function(e){e?(_classPrivateMethodGet(this,L,W).call(this),_classPrivateMethodGet(this,j,Y).call(this,{isEditing:_classPrivateFieldGet(this,O)!==a.AnnotationEditorType.NONE,isEmpty:_classPrivateMethodGet(this,X,ee).call(this),hasSomethingToUndo:_classPrivateFieldGet(this,x).hasSomethingToUndo(),hasSomethingToRedo:_classPrivateFieldGet(this,x).hasSomethingToRedo(),hasSelectedEditor:!1,hasEmptyClipboard:_classPrivateFieldGet(this,S).isEmpty()})):(_classPrivateMethodGet(this,B,V).call(this),_classPrivateMethodGet(this,j,Y).call(this,{isEditing:!1}))}},{key:"registerEditorTypes",value:function(e){_classPrivateFieldSet(this,C,e);var t,r=_createForOfIteratorHelper(_classPrivateFieldGet(this,C));try{for(r.s();!(t=r.n()).done;){var a=t.value;_classPrivateMethodGet(this,U,K).call(this,a.defaultPropertiesToUpdate)}}catch(n){r.e(n)}finally{r.f()}}},{key:"getId",value:function(){return _classPrivateFieldGet(this,P).getId()}},{key:"addLayer",value:function(e){_classPrivateFieldGet(this,_).set(e.pageIndex,e),_classPrivateFieldGet(this,T)?e.enable():e.disable()}},{key:"removeLayer",value:function(e){_classPrivateFieldGet(this,_)["delete"](e.pageIndex)}},{key:"updateMode",value:function(e){if(_classPrivateFieldSet(this,O,e),e===a.AnnotationEditorType.NONE)this.setEditingState(!1),_classPrivateMethodGet(this,G,Z).call(this);else{this.setEditingState(!0),_classPrivateMethodGet(this,q,J).call(this);var t,r=_createForOfIteratorHelper(_classPrivateFieldGet(this,_).values());try{for(r.s();!(t=r.n()).done;){var n=t.value;n.updateMode(e)}}catch(i){r.e(i)}finally{r.f()}}}},{key:"updateToolbar",value:function(e){e!==_classPrivateFieldGet(this,O)&&_classPrivateFieldGet(this,F).dispatch("switchannotationeditormode",{source:this,mode:e})}},{key:"updateParams",value:function(e,t){var r,a=_createForOfIteratorHelper(_classPrivateFieldGet(this,I));try{for(a.s();!(r=a.n()).done;){var n=r.value;n.updateParams(e,t)}}catch(l){a.e(l)}finally{a.f()}var i,o=_createForOfIteratorHelper(_classPrivateFieldGet(this,C));try{for(o.s();!(i=o.n()).done;){var s=i.value;s.updateDefaultParams(e,t)}}catch(l){o.e(l)}finally{o.f()}}},{key:"getEditors",value:function(e){var t,r=[],a=_createForOfIteratorHelper(_classPrivateFieldGet(this,w).values());try{for(a.s();!(t=a.n()).done;){var n=t.value;n.pageIndex===e&&r.push(n)}}catch(i){a.e(i)}finally{a.f()}return r}},{key:"getEditor",value:function(e){return _classPrivateFieldGet(this,w).get(e)}},{key:"addEditor",value:function(e){_classPrivateFieldGet(this,w).set(e.id,e)}},{key:"removeEditor",value:function(e){_classPrivateFieldGet(this,w)["delete"](e.id),this.unselect(e)}},{key:"setActiveEditor",value:function(e){_classPrivateFieldGet(this,k)!==e&&(_classPrivateFieldSet(this,k,e),e&&_classPrivateMethodGet(this,U,K).call(this,e.propertiesToUpdate))}},{key:"toggleSelected",value:function(e){if(_classPrivateFieldGet(this,I).has(e))return _classPrivateFieldGet(this,I)["delete"](e),e.unselect(),void _classPrivateMethodGet(this,j,Y).call(this,{hasSelectedEditor:this.hasSelection});_classPrivateFieldGet(this,I).add(e),e.select(),_classPrivateMethodGet(this,U,K).call(this,e.propertiesToUpdate),_classPrivateMethodGet(this,j,Y).call(this,{hasSelectedEditor:!0})}},{key:"setSelected",value:function(e){var t,r=_createForOfIteratorHelper(_classPrivateFieldGet(this,I));try{for(r.s();!(t=r.n()).done;){var a=t.value;a!==e&&a.unselect()}}catch(n){r.e(n)}finally{r.f()}_classPrivateFieldGet(this,I).clear(),_classPrivateFieldGet(this,I).add(e),e.select(),_classPrivateMethodGet(this,U,K).call(this,e.propertiesToUpdate),_classPrivateMethodGet(this,j,Y).call(this,{hasSelectedEditor:!0})}},{key:"isSelected",value:function(e){return _classPrivateFieldGet(this,I).has(e)}},{key:"unselect",value:function(e){e.unselect(),_classPrivateFieldGet(this,I)["delete"](e),_classPrivateMethodGet(this,j,Y).call(this,{hasSelectedEditor:this.hasSelection})}},{key:"hasSelection",get:function(){return 0!==_classPrivateFieldGet(this,I).size}},{key:"undo",value:function(){_classPrivateFieldGet(this,x).undo(),_classPrivateMethodGet(this,j,Y).call(this,{hasSomethingToUndo:_classPrivateFieldGet(this,x).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:_classPrivateMethodGet(this,X,ee).call(this)})}},{key:"redo",value:function(){_classPrivateFieldGet(this,x).redo(),_classPrivateMethodGet(this,j,Y).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:_classPrivateFieldGet(this,x).hasSomethingToRedo(),isEmpty:_classPrivateMethodGet(this,X,ee).call(this)})}},{key:"addCommands",value:function(e){_classPrivateFieldGet(this,x).add(e),_classPrivateMethodGet(this,j,Y).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:_classPrivateMethodGet(this,X,ee).call(this)})}},{key:"delete",value:function(){var e=this;if(_classPrivateFieldGet(this,k)&&_classPrivateFieldGet(this,k).commitOrRemove(),this.hasSelection){var t=_toConsumableArray(_classPrivateFieldGet(this,I)),r=function(){var e,r=_createForOfIteratorHelper(t);try{for(r.s();!(e=r.n()).done;){var a=e.value;a.remove()}}catch(n){r.e(n)}finally{r.f()}},a=function(){var r,a=_createForOfIteratorHelper(t);try{for(a.s();!(r=a.n()).done;){var n=r.value;_classPrivateMethodGet(e,H,Q).call(e,n)}}catch(i){a.e(i)}finally{a.f()}};this.addCommands({cmd:r,undo:a,mustExec:!0})}}},{key:"copy",value:function(){if(_classPrivateFieldGet(this,k)&&_classPrivateFieldGet(this,k).commitOrRemove(),this.hasSelection){var e,t=[],r=_createForOfIteratorHelper(_classPrivateFieldGet(this,I));try{for(r.s();!(e=r.n()).done;){var a=e.value;a.isEmpty()||t.push(a)}}catch(n){r.e(n)}finally{r.f()}if(0===t.length)return;_classPrivateFieldGet(this,S).copy(t),_classPrivateMethodGet(this,j,Y).call(this,{hasEmptyClipboard:!1})}}},{key:"cut",value:function(){this.copy(),this["delete"]()}},{key:"paste",value:function(){var e=this;if(!_classPrivateFieldGet(this,S).isEmpty()){this.unselectAll();var t=_classPrivateFieldGet(this,_).get(_classPrivateFieldGet(this,A)),r=_classPrivateFieldGet(this,S).paste().map((function(e){return t.deserialize(e)})),a=function(){var t,a=_createForOfIteratorHelper(r);try{for(a.s();!(t=a.n()).done;){var n=t.value;_classPrivateMethodGet(e,H,Q).call(e,n)}}catch(i){a.e(i)}finally{a.f()}_classPrivateMethodGet(e,$,te).call(e,r)},n=function(){var e,t=_createForOfIteratorHelper(r);try{for(t.s();!(e=t.n()).done;){var a=e.value;a.remove()}}catch(n){t.e(n)}finally{t.f()}};this.addCommands({cmd:a,undo:n,mustExec:!0})}}},{key:"selectAll",value:function(){var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(this,I));try{for(t.s();!(e=t.n()).done;){var r=e.value;r.commit()}}catch(a){t.e(a)}finally{t.f()}_classPrivateMethodGet(this,$,te).call(this,_classPrivateFieldGet(this,w).values())}},{key:"unselectAll",value:function(){if(_classPrivateFieldGet(this,k))_classPrivateFieldGet(this,k).commitOrRemove();else if(0!==_classPrivateMethodGet(this,$,te).size){var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(this,I));try{for(t.s();!(e=t.n()).done;){var r=e.value;r.unselect()}}catch(a){t.e(a)}finally{t.f()}_classPrivateFieldGet(this,I).clear(),_classPrivateMethodGet(this,j,Y).call(this,{hasSelectedEditor:!1})}}},{key:"isActive",value:function(e){return _classPrivateFieldGet(this,k)===e}},{key:"getActive",value:function(){return _classPrivateFieldGet(this,k)}},{key:"getMode",value:function(){return _classPrivateFieldGet(this,O)}}]),e}();function W(){_classPrivateFieldGet(this,N).addEventListener("keydown",_classPrivateFieldGet(this,E))}function V(){_classPrivateFieldGet(this,N).removeEventListener("keydown",_classPrivateFieldGet(this,E))}function Y(e){var t=this,r=Object.entries(e).some((function(e){var r=_slicedToArray(e,2),a=r[0],n=r[1];return _classPrivateFieldGet(t,D)[a]!==n}));r&&_classPrivateFieldGet(this,F).dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(_classPrivateFieldGet(this,D),e)})}function K(e){_classPrivateFieldGet(this,F).dispatch("annotationeditorparamschanged",{source:this,details:e})}function J(){if(!_classPrivateFieldGet(this,T)){_classPrivateFieldSet(this,T,!0);var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(this,_).values());try{for(t.s();!(e=t.n()).done;){var r=e.value;r.enable()}}catch(a){t.e(a)}finally{t.f()}}}function Z(){if(this.unselectAll(),_classPrivateFieldGet(this,T)){_classPrivateFieldSet(this,T,!1);var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(this,_).values());try{for(t.s();!(e=t.n()).done;){var r=e.value;r.disable()}}catch(a){t.e(a)}finally{t.f()}}}function Q(e){var t=_classPrivateFieldGet(this,_).get(e.pageIndex);t?t.addOrRebuild(e):this.addEditor(e)}function ee(){if(0===_classPrivateFieldGet(this,w).size)return!0;if(1===_classPrivateFieldGet(this,w).size){var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(this,w).values());try{for(t.s();!(e=t.n()).done;){var r=e.value;return r.isEmpty()}}catch(a){t.e(a)}finally{t.f()}}return!1}function te(e){_classPrivateFieldGet(this,I).clear();var t,r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;a.isEmpty()||(_classPrivateFieldGet(this,I).add(a),a.select())}}catch(n){r.e(n)}finally{r.f()}_classPrivateMethodGet(this,j,Y).call(this,{hasSelectedEditor:!0})}_defineProperty(z,"_keyboardManager",new v([[["ctrl+a","mac+meta+a"],z.prototype.selectAll],[["ctrl+c","mac+meta+c"],z.prototype.copy],[["ctrl+v","mac+meta+v"],z.prototype.paste],[["ctrl+x","mac+meta+x"],z.prototype.cut],[["ctrl+z","mac+meta+z"],z.prototype.undo],[["ctrl+y","ctrl+shift+Z","mac+meta+shift+Z"],z.prototype.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete"],z.prototype["delete"]],[["Escape","mac+Escape"],z.prototype.unselectAll]])),t.AnnotationEditorUIManager=z},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=t.AnnotationPrefix=void 0,t.deprecated=x,t.getColorValues=P,t.getCurrentTransform=T,t.getCurrentTransformInverse=O,t.getFilenameFromUrl=y,t.getPdfFilenameFromUrl=b,t.getRGB=F,t.getXfaPageViewport=C,t.isDataScheme=g,t.isPdfFile=m,t.isValidFetchUrl=_,t.loadScript=S;var a=r(9),n=r(1),i="http://www.w3.org/2000/svg",o="pdfjs_internal_id_";t.AnnotationPrefix=o;var s=_createClass((function e(){_classCallCheck(this,e)}));_defineProperty(s,"CSS",96),_defineProperty(s,"PDF",72),_defineProperty(s,"PDF_TO_CSS_UNITS",s.CSS/s.PDF),t.PixelsPerInch=s;var l=function(e){_inherits(r,e);var t=_createSuper(r);function r(){var e,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=a.ownerDocument,i=void 0===n?globalThis.document:n;return _classCallCheck(this,r),e=t.call(this),e._document=i,e}return _createClass(r,[{key:"_createCanvas",value:function(e,t){var r=this._document.createElement("canvas");return r.width=e,r.height=t,r}}]),r}(a.BaseCanvasFactory);function c(e){return u.apply(this,arguments)}function u(){return u=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,a,i=arguments;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=i.length>1&&void 0!==i[1]&&i[1],!_(t,document.baseURI)){e.next=21;break}return e.next=4,fetch(t);case 4:if(a=e.sent,a.ok){e.next=7;break}throw new Error(a.statusText);case 7:if(!r){e.next=15;break}return e.t1=Uint8Array,e.next=11,a.arrayBuffer();case 11:e.t2=e.sent,e.t0=new e.t1(e.t2),e.next=20;break;case 15:return e.t3=n.stringToBytes,e.next=18,a.text();case 18:e.t4=e.sent,e.t0=(0,e.t3)(e.t4);case 20:return e.abrupt("return",e.t0);case 21:return e.abrupt("return",new Promise((function(e,a){var i=new XMLHttpRequest;i.open("GET",t,!0),r&&(i.responseType="arraybuffer"),i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.DONE){var t;if(200===i.status||0===i.status)if(r&&i.response?t=new Uint8Array(i.response):!r&&i.responseText&&(t=(0,n.stringToBytes)(i.responseText)),t)return void e(t);a(new Error(i.statusText))}},i.send(null)})));case 22:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}t.DOMCanvasFactory=l;var h=function(e){_inherits(r,e);var t=_createSuper(r);function r(){return _classCallCheck(this,r),t.apply(this,arguments)}return _createClass(r,[{key:"_fetchData",value:function(e,t){return c(e,this.isCompressed).then((function(e){return{cMapData:e,compressionType:t}}))}}]),r}(a.BaseCMapReaderFactory);t.DOMCMapReaderFactory=h;var d=function(e){_inherits(r,e);var t=_createSuper(r);function r(){return _classCallCheck(this,r),t.apply(this,arguments)}return _createClass(r,[{key:"_fetchData",value:function(e){return c(e,!0)}}]),r}(a.BaseStandardFontDataFactory);t.DOMStandardFontDataFactory=d;var f=function(e){_inherits(r,e);var t=_createSuper(r);function r(){return _classCallCheck(this,r),t.apply(this,arguments)}return _createClass(r,[{key:"_createSVG",value:function(e){return document.createElementNS(i,e)}}]),r}(a.BaseSVGFactory);t.DOMSVGFactory=f;var p=function(){function e(t){var r=t.viewBox,a=t.scale,n=t.rotation,i=t.offsetX,o=void 0===i?0:i,s=t.offsetY,l=void 0===s?0:s,c=t.dontFlip,u=void 0!==c&&c;_classCallCheck(this,e),this.viewBox=r,this.scale=a,this.rotation=n,this.offsetX=o,this.offsetY=l;var h,d,f,p,v,g,m,y,b=(r[2]+r[0])/2,k=(r[3]+r[1])/2;switch(n%=360,n<0&&(n+=360),n){case 180:h=-1,d=0,f=0,p=1;break;case 90:h=0,d=1,f=1,p=0;break;case 270:h=0,d=-1,f=-1,p=0;break;case 0:h=1,d=0,f=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}u&&(f=-f,p=-p),0===h?(v=Math.abs(k-r[1])*a+o,g=Math.abs(b-r[0])*a+l,m=Math.abs(r[3]-r[1])*a,y=Math.abs(r[2]-r[0])*a):(v=Math.abs(b-r[0])*a+o,g=Math.abs(k-r[1])*a+l,m=Math.abs(r[2]-r[0])*a,y=Math.abs(r[3]-r[1])*a),this.transform=[h*a,d*a,f*a,p*a,v-h*a*b-f*a*k,g-d*a*b-p*a*k],this.width=m,this.height=y}return _createClass(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.scale,a=void 0===r?this.scale:r,n=t.rotation,i=void 0===n?this.rotation:n,o=t.offsetX,s=void 0===o?this.offsetX:o,l=t.offsetY,c=void 0===l?this.offsetY:l,u=t.dontFlip,h=void 0!==u&&u;return new e({viewBox:this.viewBox.slice(),scale:a,rotation:i,offsetX:s,offsetY:c,dontFlip:h})}},{key:"convertToViewportPoint",value:function(e,t){return n.Util.applyTransform([e,t],this.transform)}},{key:"convertToViewportRectangle",value:function(e){var t=n.Util.applyTransform([e[0],e[1]],this.transform),r=n.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]}},{key:"convertToPdfPoint",value:function(e,t){return n.Util.applyInverseTransform([e,t],this.transform)}}]),e}();t.PageViewport=p;var v=function(e){_inherits(r,e);var t=_createSuper(r);function r(e,a){var n;return _classCallCheck(this,r),n=t.call(this,e,"RenderingCancelledException"),n.type=a,n}return _createClass(r)}(n.BaseException);function g(e){var t=e.length,r=0;while(r<t&&""===e[r].trim())r++;return"data:"===e.substring(r,r+5).toLowerCase()}function m(e){return"string"===typeof e&&/\.pdf$/i.test(e)}function y(e){var t=e.indexOf("#"),r=e.indexOf("?"),a=Math.min(t>0?t:e.length,r>0?r:e.length);return e.substring(e.lastIndexOf("/",a)+1,a)}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!==typeof e)return t;if(g(e))return(0,n.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;var r=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,a=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,i=r.exec(e),o=a.exec(i[1])||a.exec(i[2])||a.exec(i[3]);if(o&&(o=o[0],o.includes("%")))try{o=a.exec(decodeURIComponent(o))[0]}catch(s){}return o||t}t.RenderingCancelledException=v;var k,w=function(){function e(){_classCallCheck(this,e),this.started=Object.create(null),this.times=[]}return _createClass(e,[{key:"time",value:function(e){e in this.started&&(0,n.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}},{key:"timeEnd",value:function(e){e in this.started||(0,n.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}},{key:"toString",value:function(){var e,t=[],r=0,a=_createForOfIteratorHelper(this.times);try{for(a.s();!(e=a.n()).done;){var n=e.value,i=n.name;i.length>r&&(r=i.length)}}catch(u){a.e(u)}finally{a.f()}var o,s=_createForOfIteratorHelper(this.times);try{for(s.s();!(o=s.n()).done;){var l=o.value,c=l.end-l.start;t.push("".concat(l.name.padEnd(r)," ").concat(c,"ms\n"))}}catch(u){s.e(u)}finally{s.f()}return t.join("")}}]),e}();function _(e,t){try{var r=t?new URL(e,t):new URL(e),a=r.protocol;return"http:"===a||"https:"===a}catch(n){return!1}}function S(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(r,a){var n=document.createElement("script");n.src=e,n.onload=function(e){t&&n.remove(),r(e)},n.onerror=function(){a(new Error("Cannot load script at: ".concat(n.src)))},(document.head||document.documentElement).append(n)}))}function x(e){console.log("Deprecated API usage: "+e)}t.StatTimer=w;var A=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"toDateObject",value:function(e){if(!e||"string"!==typeof e)return null;k||(k=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var t=k.exec(e);if(!t)return null;var r=parseInt(t[1],10),a=parseInt(t[2],10);a=a>=1&&a<=12?a-1:0;var n=parseInt(t[3],10);n=n>=1&&n<=31?n:1;var i=parseInt(t[4],10);i=i>=0&&i<=23?i:0;var o=parseInt(t[5],10);o=o>=0&&o<=59?o:0;var s=parseInt(t[6],10);s=s>=0&&s<=59?s:0;var l=t[7]||"Z",c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;var u=parseInt(t[9],10)||0;return u=u>=0&&u<=59?u:0,"-"===l?(i+=c,o+=u):"+"===l&&(i-=c,o-=u),new Date(Date.UTC(r,a,n,i,o,s))}}]),e}();function C(e,t){var r=t.scale,a=void 0===r?1:r,n=t.rotation,i=void 0===n?0:n,o=e.attributes.style,s=o.width,l=o.height,c=[0,0,parseInt(s),parseInt(l)];return new p({viewBox:c,scale:a,rotation:i})}function F(e){if(e.startsWith("#")){var t=parseInt(e.slice(1),16);return[(16711680&t)>>16,(65280&t)>>8,255&t]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map((function(e){return parseInt(e)})):e.startsWith("rgba(")?e.slice(5,-1).split(",").map((function(e){return parseInt(e)})).slice(0,3):((0,n.warn)('Not a valid color format: "'.concat(e,'"')),[0,0,0])}function P(e){var t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);var r,a=_createForOfIteratorHelper(e.keys());try{for(a.s();!(r=a.n()).done;){var n=r.value;t.style.color=n;var i=window.getComputedStyle(t).color;e.set(n,F(i))}}catch(o){a.e(o)}finally{a.f()}t.remove()}function T(e){var t=e.getTransform(),r=t.a,a=t.b,n=t.c,i=t.d,o=t.e,s=t.f;return[r,a,n,i,o,s]}function O(e){var t=e.getTransform().invertSelf(),r=t.a,a=t.b,n=t.c,i=t.d,o=t.e,s=t.f;return[r,a,n,i,o,s]}t.PDFDateString=A},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0;var a=r(1),n=function(){function e(){_classCallCheck(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize BaseCanvasFactory.")}return _createClass(e,[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var r=this._createCanvas(e,t);return{canvas:r,context:r.getContext("2d")}}},{key:"reset",value:function(e,t,r){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||r<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=r}},{key:"destroy",value:function(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}},{key:"_createCanvas",value:function(e,t){(0,a.unreachable)("Abstract method `_createCanvas` called.")}}]),e}();t.BaseCanvasFactory=n;var i=function(){function e(t){var r=t.baseUrl,n=void 0===r?null:r,i=t.isCompressed,o=void 0!==i&&i;_classCallCheck(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=n,this.isCompressed=o}return _createClass(e,[{key:"fetch",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,n,i,o=this;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.name,this.baseUrl){e.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(r){e.next=5;break}throw new Error("CMap name must be specified.");case 5:return n=this.baseUrl+r+(this.isCompressed?".bcmap":""),i=this.isCompressed?a.CMapCompressionType.BINARY:a.CMapCompressionType.NONE,e.abrupt("return",this._fetchData(n,i)["catch"]((function(e){throw new Error("Unable to load ".concat(o.isCompressed?"binary ":"","CMap at: ").concat(n))})));case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_fetchData",value:function(e,t){(0,a.unreachable)("Abstract method `_fetchData` called.")}}]),e}();t.BaseCMapReaderFactory=i;var o=function(){function e(t){var r=t.baseUrl,n=void 0===r?null:r;_classCallCheck(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=n}return _createClass(e,[{key:"fetch",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,a;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.filename,this.baseUrl){e.next=3;break}throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');case 3:if(r){e.next=5;break}throw new Error("Font filename must be specified.");case 5:return a="".concat(this.baseUrl).concat(r),e.abrupt("return",this._fetchData(a)["catch"]((function(e){throw new Error("Unable to load font data at: ".concat(a))})));case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_fetchData",value:function(e){(0,a.unreachable)("Abstract method `_fetchData` called.")}}]),e}();t.BaseStandardFontDataFactory=o;var s=function(){function e(){_classCallCheck(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize BaseSVGFactory.")}return _createClass(e,[{key:"create",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");var a=this._createSVG("svg:svg");return a.setAttribute("version","1.1"),r||(a.setAttribute("width","".concat(e,"px")),a.setAttribute("height","".concat(t,"px"))),a.setAttribute("preserveAspectRatio","none"),a.setAttribute("viewBox","0 0 ".concat(e," ").concat(t)),a}},{key:"createElement",value:function(e){if("string"!==typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}},{key:"_createSVG",value:function(e){(0,a.unreachable)("Abstract method `_createSVG` called.")}}]),e}();t.BaseSVGFactory=s},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var a=r(1),n=3285377520,i=4294901760,o=65535,s=function(){function e(t){_classCallCheck(this,e),this.h1=t?4294967295&t:n,this.h2=t?4294967295&t:n}return _createClass(e,[{key:"update",value:function(e){var t,r;if("string"===typeof e){t=new Uint8Array(2*e.length),r=0;for(var n=0,s=e.length;n<s;n++){var l=e.charCodeAt(n);l<=255?t[r++]=l:(t[r++]=l>>>8,t[r++]=255&l)}}else{if(!(0,a.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e.slice(),r=t.byteLength}for(var c=r>>2,u=r-4*c,h=new Uint32Array(t.buffer,0,c),d=0,f=0,p=this.h1,v=this.h2,g=3432918353,m=461845907,y=g&o,b=m&o,k=0;k<c;k++)1&k?(d=h[k],d=d*g&i|d*y&o,d=d<<15|d>>>17,d=d*m&i|d*b&o,p^=d,p=p<<13|p>>>19,p=5*p+3864292196):(f=h[k],f=f*g&i|f*y&o,f=f<<15|f>>>17,f=f*m&i|f*b&o,v^=f,v=v<<13|v>>>19,v=5*v+3864292196);switch(d=0,u){case 3:d^=t[4*c+2]<<16;case 2:d^=t[4*c+1]<<8;case 1:d^=t[4*c],d=d*g&i|d*y&o,d=d<<15|d>>>17,d=d*m&i|d*b&o,1&c?p^=d:v^=d}this.h1=p,this.h2=v}},{key:"hexdigest",value:function(){var e=this.h1,t=this.h2;e^=t>>>1,e=3981806797*e&i|36045*e&o,t=4283543511*t&i|(2950163797*(t<<16|e>>>16)&i)>>>16,e^=t>>>1,e=444984403*e&i|60499*e&o,t=3301882366*t&i|(3120437893*(t<<16|e>>>16)&i)>>>16,e^=t>>>1;var r=(e>>>0).toString(16),a=(t>>>0).toString(16);return r.padStart(8,"0")+a.padStart(8,"0")}}]),e}();t.MurmurHash3_64=s},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var a,n=r(1),i=function(){function e(t){var r=t.docId,a=t.onUnsupportedFeature,i=t.ownerDocument,o=void 0===i?globalThis.document:i;t.styleElement;_classCallCheck(this,e),this.constructor===e&&(0,n.unreachable)("Cannot initialize BaseFontLoader."),this.docId=r,this._onUnsupportedFeature=a,this._document=o,this.nativeFontFaces=[],this.styleElement=null}return _createClass(e,[{key:"addNativeFontFace",value:function(e){this.nativeFontFaces.push(e),this._document.fonts.add(e)}},{key:"insertRule",value:function(e){var t=this.styleElement;t||(t=this.styleElement=this._document.createElement("style"),t.id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),this._document.documentElement.getElementsByTagName("head")[0].append(t));var r=t.sheet;r.insertRule(e,r.cssRules.length)}},{key:"clear",value:function(){var e,t=_createForOfIteratorHelper(this.nativeFontFaces);try{for(t.s();!(e=t.n()).done;){var r=e.value;this._document.fonts["delete"](r)}}catch(a){t.e(a)}finally{t.f()}this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,a,i=this;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.attached&&!t.missingFile){e.next=2;break}return e.abrupt("return");case 2:if(t.attached=!0,!this.isFontLoadingAPISupported){e.next=19;break}if(r=t.createNativeFontFace(),!r){e.next=18;break}return this.addNativeFontFace(r),e.prev=7,e.next=10,r.loaded;case 10:e.next=18;break;case 12:throw e.prev=12,e.t0=e["catch"](7),this._onUnsupportedFeature({featureId:n.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,n.warn)("Failed to load font '".concat(r.family,"': '").concat(e.t0,"'.")),t.disableFontFace=!0,e.t0;case 18:return e.abrupt("return");case 19:if(a=t.createFontFaceRule(),!a){e.next=26;break}if(this.insertRule(a),!this.isSyncFontLoadingSupported){e.next=24;break}return e.abrupt("return");case 24:return e.next=26,new Promise((function(e){var r=i._queueLoadingCallback(e);i._prepareFontLoadEvent([a],[t],r)}));case 26:case"end":return e.stop()}}),e,this,[[7,12]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_queueLoadingCallback",value:function(e){(0,n.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"isFontLoadingAPISupported",get:function(){var e,t=!(null===(e=this._document)||void 0===e||!e.fonts);return(0,n.shadow)(this,"isFontLoadingAPISupported",t)}},{key:"isSyncFontLoadingSupported",get:function(){(0,n.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,n.unreachable)("Abstract method `_loadTestFont`.")}},{key:"_prepareFontLoadEvent",value:function(e,t,r){(0,n.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}]),e}();t.FontLoader=a,t.FontLoader=a=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a;return _classCallCheck(this,r),a=t.call(this,e),a.loadingContext={requests:[],nextRequestId:0},a.loadTestFontId=0,a}return _createClass(r,[{key:"isSyncFontLoadingSupported",get:function(){var e=!1;if("undefined"===typeof navigator)e=!0;else{var t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);(null===t||void 0===t?void 0:t[1])>=14&&(e=!0)}return(0,n.shadow)(this,"isSyncFontLoadingSupported",e)}},{key:"_queueLoadingCallback",value:function(e){function t(){(0,n.assert)(!a.done,"completeRequest() cannot be called twice."),a.done=!0;while(r.requests.length>0&&r.requests[0].done){var e=r.requests.shift();setTimeout(e.callback,0)}}var r=this.loadingContext,a={id:"pdfjs-font-loading-".concat(r.nextRequestId++),done:!1,complete:t,callback:e};return r.requests.push(a),a}},{key:"_loadTestFont",get:function(){var e=function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};return(0,n.shadow)(this,"_loadTestFont",e())}},{key:"_prepareFontLoadEvent",value:function(e,t,r){function a(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function i(e,t,r,a){var n=e.substring(0,t),i=e.substring(t+r);return n+a+i}var o,s,l=this._document.createElement("canvas");l.width=1,l.height=1;var c=l.getContext("2d"),u=0;function h(e,t){if(u++,u>30)return(0,n.warn)("Load test font never loaded."),void t();c.font="30px "+e,c.fillText(".",0,20);var r=c.getImageData(0,0,1,1);r.data[3]>0?t():setTimeout(h.bind(null,e,t))}var d="lt".concat(Date.now()).concat(this.loadTestFontId++),f=this._loadTestFont,p=976;f=i(f,p,d.length,d);var v=16,g=1482184792,m=a(f,v);for(o=0,s=d.length-3;o<s;o+=4)m=m-g+a(d,o)|0;o<d.length&&(m=m-g+a(d+"XXX",o)|0),f=i(f,v,4,(0,n.string32)(m));var y="url(data:font/opentype;base64,".concat(btoa(f),");"),b='@font-face {font-family:"'.concat(d,'";src:').concat(y,"}");this.insertRule(b);var k,w=[],_=_createForOfIteratorHelper(t);try{for(_.s();!(k=_.n()).done;){var S=k.value;w.push(S.loadedName)}}catch(T){_.e(T)}finally{_.f()}w.push(d);var x=this._document.createElement("div");x.style.visibility="hidden",x.style.width=x.style.height="10px",x.style.position="absolute",x.style.top=x.style.left="0px";for(var A=0,C=w;A<C.length;A++){var F=C[A],P=this._document.createElement("span");P.textContent="Hi",P.style.fontFamily=F,x.append(P)}this._document.body.append(x),h(d,(function(){x.remove(),r.complete()}))}}]),r}(i);var o=function(){function e(t,r){var a=r.isEvalSupported,n=void 0===a||a,i=r.disableFontFace,o=void 0!==i&&i,s=r.ignoreErrors,l=void 0!==s&&s,c=r.onUnsupportedFeature,u=r.fontRegistry,h=void 0===u?null:u;for(var d in _classCallCheck(this,e),this.compiledGlyphs=Object.create(null),t)this[d]=t[d];this.isEvalSupported=!1!==n,this.disableFontFace=!0===o,this.ignoreErrors=!0===l,this._onUnsupportedFeature=c,this.fontRegistry=h}return _createClass(e,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var e;if(this.cssFontInfo){var t={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(t.style="oblique ".concat(this.cssFontInfo.italicAngle,"deg")),e=new FontFace(this.cssFontInfo.fontFamily,this.data,t)}else e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var e,t=(0,n.bytesToString)(this.data),r="url(data:".concat(this.mimetype,";base64,").concat(btoa(t),");");if(this.cssFontInfo){var a="font-weight: ".concat(this.cssFontInfo.fontWeight,";");this.cssFontInfo.italicAngle&&(a+="font-style: oblique ".concat(this.cssFontInfo.italicAngle,"deg;")),e='@font-face {font-family:"'.concat(this.cssFontInfo.fontFamily,'";').concat(a,"src:").concat(r,"}")}else e='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(r,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,r),e}},{key:"getPathGenerator",value:function(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var r;try{r=e.get(this.loadedName+"_path_"+t)}catch(c){if(!this.ignoreErrors)throw c;return this._onUnsupportedFeature({featureId:n.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,n.warn)('getPathGenerator - ignoring character: "'.concat(c,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&n.FeatureTest.isEvalSupported){var a,i=[],o=_createForOfIteratorHelper(r);try{for(o.s();!(a=o.n()).done;){var s=a.value,l=void 0!==s.args?s.args.join(","):"";i.push("c.",s.cmd,"(",l,");\n")}}catch(u){o.e(u)}finally{o.f()}return this.compiledGlyphs[t]=new Function("c","size",i.join(""))}return this.compiledGlyphs[t]=function(e,t){var a,n=_createForOfIteratorHelper(r);try{for(n.s();!(a=n.n()).done;){var i=a.value;"scale"===i.cmd&&(i.args=[t,-t]),e[i.cmd].apply(e,i.args)}}catch(u){n.e(u)}finally{n.f()}}}}]),e}();t.FontFaceObject=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var a=r(8),n=r(1),i=r(13),o=r(14),s=r(3),l=16,c=100,u=4096,h=15,d=10,f=s.isNodeJS&&"undefined"===typeof Path2D?-1:1e3,p=16;function v(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=function(){e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(e,r){t.translate(e,r),this.__originalTranslate(e,r)},e.scale=function(e,r){t.scale(e,r),this.__originalScale(e,r)},e.transform=function(e,r,a,n,i,o){t.transform(e,r,a,n,i,o),this.__originalTransform(e,r,a,n,i,o)},e.setTransform=function(e,r,a,n,i,o){t.setTransform(e,r,a,n,i,o),this.__originalSetTransform(e,r,a,n,i,o)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(e){t.rotate(e),this.__originalRotate(e)},e.clip=function(e){t.clip(e),this.__originalClip(e)},e.moveTo=function(e,r){t.moveTo(e,r),this.__originalMoveTo(e,r)},e.lineTo=function(e,r){t.lineTo(e,r),this.__originalLineTo(e,r)},e.bezierCurveTo=function(e,r,a,n,i,o){t.bezierCurveTo(e,r,a,n,i,o),this.__originalBezierCurveTo(e,r,a,n,i,o)},e.rect=function(e,r,a,n){t.rect(e,r,a,n),this.__originalRect(e,r,a,n)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}var g=function(){function e(t){_classCallCheck(this,e),this.canvasFactory=t,this.cache=Object.create(null)}return _createClass(e,[{key:"getCanvas",value:function(e,t,r){var a;return void 0!==this.cache[e]?(a=this.cache[e],this.canvasFactory.reset(a,t,r)):(a=this.canvasFactory.create(t,r),this.cache[e]=a),a}},{key:"delete",value:function(e){delete this.cache[e]}},{key:"clear",value:function(){for(var e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}]),e}();function m(e,t,r,n,i,o,s,l,c,u){var h=(0,a.getCurrentTransform)(e),d=_slicedToArray(h,6),f=d[0],p=d[1],v=d[2],g=d[3],m=d[4],y=d[5];if(0===p&&0===v){var b=s*f+m,k=Math.round(b),w=l*g+y,_=Math.round(w),S=(s+c)*f+m,x=Math.abs(Math.round(S)-k)||1,A=(l+u)*g+y,C=Math.abs(Math.round(A)-_)||1;return e.setTransform(Math.sign(f),0,0,Math.sign(g),k,_),e.drawImage(t,r,n,i,o,0,0,x,C),e.setTransform(f,p,v,g,m,y),[x,C]}if(0===f&&0===g){var F=l*v+m,P=Math.round(F),T=s*p+y,O=Math.round(T),I=(l+u)*v+m,E=Math.abs(Math.round(I)-P)||1,M=(s+c)*p+y,R=Math.abs(Math.round(M)-O)||1;return e.setTransform(0,Math.sign(p),Math.sign(v),0,P,O),e.drawImage(t,r,n,i,o,0,0,R,E),e.setTransform(f,p,v,g,m,y),[R,E]}e.drawImage(t,r,n,i,o,s,l,c,u);var D=Math.hypot(f,p),N=Math.hypot(v,g);return[D*c,N*u]}function y(e){var t=e.width,r=e.height;if(t>f||r>f)return null;var a,n,i,o,s=1e3,l=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),c=t+1,u=new Uint8Array(c*(r+1)),h=t+7&-8,d=new Uint8Array(h*r),p=0,v=_createForOfIteratorHelper(e.data);try{for(v.s();!(o=v.n()).done;){var g=o.value,m=128;while(m>0)d[p++]=g&m?0:255,m>>=1}}catch(T){v.e(T)}finally{v.f()}var y=0;for(p=0,0!==d[p]&&(u[0]=1,++y),n=1;n<t;n++)d[p]!==d[p+1]&&(u[n]=d[p]?2:1,++y),p++;for(0!==d[p]&&(u[n]=2,++y),a=1;a<r;a++){p=a*h,i=a*c,d[p-h]!==d[p]&&(u[i]=d[p]?1:8,++y);var b=(d[p]?4:0)+(d[p-h]?8:0);for(n=1;n<t;n++)b=(b>>2)+(d[p+1]?4:0)+(d[p-h+1]?8:0),l[b]&&(u[i+n]=l[b],++y),p++;if(d[p-h]!==d[p]&&(u[i+n]=d[p]?2:4,++y),y>s)return null}for(p=h*(r-1),i=a*c,0!==d[p]&&(u[i]=8,++y),n=1;n<t;n++)d[p]!==d[p+1]&&(u[i+n]=d[p]?4:8,++y),p++;if(0!==d[p]&&(u[i+n]=4,++y),y>s)return null;var k=new Int32Array([0,c,-1,0,-c,0,0,0,1]),w=new Path2D;for(a=0;y&&a<=r;a++){var _=a*c,S=_+t;while(_<S&&!u[_])_++;if(_!==S){w.moveTo(_%c,a);var x=_,A=u[_];do{var C=k[A];do{_+=C}while(!u[_]);var F=u[_];5!==F&&10!==F?(A=F,u[_]=0):(A=F&51*A>>4,u[_]&=A>>2|A<<2),w.lineTo(_%c,_/c|0),u[_]||--y}while(x!==_);--a}}d=null,u=null;var P=function(e){e.save(),e.scale(1/t,-1/r),e.translate(0,-r),e.fill(w),e.beginPath(),e.restore()};return P}var b=function(){function e(t,r){_classCallCheck(this,e),this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=n.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=n.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=null,this.startNewPathAndClipBox([0,0,t,r])}return _createClass(e,[{key:"clone",value:function(){var e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}},{key:"setCurrentPoint",value:function(e,t){this.x=e,this.y=t}},{key:"updatePathMinMax",value:function(e,t,r){var a=n.Util.applyTransform([t,r],e),i=_slicedToArray(a,2);t=i[0],r=i[1],this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,r),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,r)}},{key:"updateRectMinMax",value:function(e,t){var r=n.Util.applyTransform(t,e),a=n.Util.applyTransform(t.slice(2),e);this.minX=Math.min(this.minX,r[0],a[0]),this.minY=Math.min(this.minY,r[1],a[1]),this.maxX=Math.max(this.maxX,r[0],a[0]),this.maxY=Math.max(this.maxY,r[1],a[1])}},{key:"updateScalingPathMinMax",value:function(e,t){n.Util.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.maxX=Math.max(this.maxX,t[1]),this.minY=Math.min(this.minY,t[2]),this.maxY=Math.max(this.maxY,t[3])}},{key:"updateCurvePathMinMax",value:function(e,t,r,a,i,o,s,l,c,u){var h=n.Util.bezierBoundingBox(t,r,a,i,o,s,l,c);if(u)return u[0]=Math.min(u[0],h[0],h[2]),u[1]=Math.max(u[1],h[0],h[2]),u[2]=Math.min(u[2],h[1],h[3]),void(u[3]=Math.max(u[3],h[1],h[3]));this.updateRectMinMax(e,h)}},{key:"getPathBoundingBox",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=[this.minX,this.minY,this.maxX,this.maxY];if(e===i.PathType.STROKE){t||(0,n.unreachable)("Stroke bounding box must include transform.");var a=n.Util.singularValueDecompose2dScale(t),o=a[0]*this.lineWidth/2,s=a[1]*this.lineWidth/2;r[0]-=o,r[1]-=s,r[2]+=o,r[3]+=s}return r}},{key:"updateClipFromPath",value:function(){var e=n.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}},{key:"isEmptyClip",value:function(){return this.minX===1/0}},{key:"startNewPathAndClipBox",value:function(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}},{key:"getClippedPathBoundingBox",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.Util.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}]),e}();function k(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("undefined"!==typeof ImageData&&t instanceof ImageData)e.putImageData(t,0,0);else{var a,i,o,s,l,c,u,h,d,f=t.height,v=t.width,g=f%p,m=(f-g)/p,y=0===g?m:m+1,b=e.createImageData(v,p),k=0,w=t.data,_=b.data;if(r)switch(r.length){case 1:c=r[0],u=r[0],h=r[0],d=r[0];break;case 4:c=r[0],u=r[1],h=r[2],d=r[3];break}if(t.kind===n.ImageKind.GRAYSCALE_1BPP){var S=w.byteLength,x=new Uint32Array(_.buffer,0,_.byteLength>>2),A=x.length,C=v+7>>3,F=4294967295,P=n.FeatureTest.isLittleEndian?4278190080:255;if(d&&255===d[0]&&0===d[255]){var T=[P,F];F=T[0],P=T[1]}for(i=0;i<y;i++){for(s=i<m?p:g,a=0,o=0;o<s;o++){for(var O=S-k,I=0,E=O>C?v:8*O-7,M=-8&E,R=0,D=0;I<M;I+=8)D=w[k++],x[a++]=128&D?F:P,x[a++]=64&D?F:P,x[a++]=32&D?F:P,x[a++]=16&D?F:P,x[a++]=8&D?F:P,x[a++]=4&D?F:P,x[a++]=2&D?F:P,x[a++]=1&D?F:P;for(;I<E;I++)0===R&&(D=w[k++],R=128),x[a++]=D&R?F:P,R>>=1}while(a<A)x[a++]=0;e.putImageData(b,0,i*p)}}else if(t.kind===n.ImageKind.RGBA_32BPP){var N=!!(c||u||h);for(o=0,l=v*p*4,i=0;i<m;i++){if(_.set(w.subarray(k,k+l)),k+=l,N)for(var L=0;L<l;L+=4)c&&(_[L+0]=c[_[L+0]]),u&&(_[L+1]=u[_[L+1]]),h&&(_[L+2]=h[_[L+2]]);e.putImageData(b,0,o),o+=p}if(i<y){if(l=v*g*4,_.set(w.subarray(k,k+l)),N)for(var B=0;B<l;B+=4)c&&(_[B+0]=c[_[B+0]]),u&&(_[B+1]=u[_[B+1]]),h&&(_[B+2]=h[_[B+2]]);e.putImageData(b,0,o)}}else{if(t.kind!==n.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(t.kind));var j=!!(c||u||h);for(s=p,l=v*s,i=0;i<y;i++){for(i>=m&&(s=g,l=v*s),a=0,o=l;o--;)_[a++]=w[k++],_[a++]=w[k++],_[a++]=w[k++],_[a++]=255;if(j)for(var U=0;U<a;U+=4)c&&(_[U+0]=c[_[U+0]]),u&&(_[U+1]=u[_[U+1]]),h&&(_[U+2]=h[_[U+2]]);e.putImageData(b,0,i*p)}}}}function w(e,t){if(t.bitmap)e.drawImage(t.bitmap,0,0);else for(var r=t.height,a=t.width,n=r%p,i=(r-n)/p,s=0===n?i:i+1,l=e.createImageData(a,p),c=0,u=t.data,h=l.data,d=0;d<s;d++){var f=d<i?p:n,v=(0,o.applyMaskImageData)({src:u,srcPos:c,dest:h,width:a,height:f});c=v.srcPos,e.putImageData(l,0,d*p)}}function _(e,t){for(var r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],a=0,n=r.length;a<n;a++){var i=r[a];void 0!==e[i]&&(t[i]=e[i])}void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function S(e,t){e.strokeStyle=e.fillStyle=t||"#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0)}function x(e,t,r,a){for(var n=e.length,i=3;i<n;i+=4){var o=e[i];if(0===o)e[i-3]=t,e[i-2]=r,e[i-1]=a;else if(o<255){var s=255-o;e[i-3]=e[i-3]*o+t*s>>8,e[i-2]=e[i-2]*o+r*s>>8,e[i-1]=e[i-1]*o+a*s>>8}}}function A(e,t,r){for(var a=e.length,n=1/255,i=3;i<a;i+=4){var o=r?r[e[i]]:e[i];t[i]=t[i]*o*n|0}}function C(e,t,r){for(var a=e.length,n=3;n<a;n+=4){var i=77*e[n-3]+152*e[n-2]+28*e[n-1];t[n]=r?t[n]*r[i>>8]>>8:t[n]*i>>16}}function F(e,t,r,a,n,i,o,s,l,c,u){var h,d=!!i,f=d?i[0]:0,p=d?i[1]:0,v=d?i[2]:0;h="Luminosity"===n?C:A;for(var g=1048576,m=Math.min(a,Math.ceil(g/r)),y=0;y<a;y+=m){var b=Math.min(m,a-y),k=e.getImageData(s-c,y+(l-u),r,b),w=t.getImageData(s,y+l,r,b);d&&x(k.data,f,p,v),h(k.data,w.data,o),t.putImageData(w,s,y+l)}}function P(e,t,r,a){var n=a[0],i=a[1],o=a[2]-n,s=a[3]-i;0!==o&&0!==s&&(F(t.context,r,o,s,t.subtype,t.backdrop,t.transferMap,n,i,t.offsetX,t.offsetY),e.save(),e.globalAlpha=1,e.globalCompositeOperation="source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(r.canvas,0,0),e.restore())}function T(e,t){var r=n.Util.singularValueDecompose2dScale(e);r[0]=Math.fround(r[0]),r[1]=Math.fround(r[1]);var i=Math.fround((globalThis.devicePixelRatio||1)*a.PixelsPerInch.PDF_TO_CSS_UNITS);return void 0!==t?t:r[0]<=i||r[1]<=i}var O=["butt","round","square"],I=["miter","round","bevel"],E={},M={},R=new WeakSet,D=function(){function e(t,r,a,n,i,o,s,l){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,R),this.ctx=t,this.current=new b(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=r,this.objs=a,this.canvasFactory=n,this.imageLayer=i,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=o,this.cachedCanvases=new g(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=s,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.backgroundColor=(null===l||void 0===l?void 0:l.background)||null,this.foregroundColor=(null===l||void 0===l?void 0:l.foreground)||null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}return _createClass(e,[{key:"getObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"===typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}},{key:"beginDrawing",value:function(e){var t,r,n=e.transform,i=e.viewport,o=e.transparency,s=void 0!==o&&o,l=e.background,c=void 0===l?null:l,u=this.ctx.canvas.width,h=this.ctx.canvas.height,d=c||"#ffffff";if(this.ctx.save(),this.foregroundColor&&this.backgroundColor){this.ctx.fillStyle=this.foregroundColor;var f=this.foregroundColor=this.ctx.fillStyle;this.ctx.fillStyle=this.backgroundColor;var p=this.backgroundColor=this.ctx.fillStyle,v=!0,g=d;if(this.ctx.fillStyle=d,g=this.ctx.fillStyle,v="string"===typeof g&&/^#[0-9A-Fa-f]{6}$/.test(g),"#000000"===f&&"#ffffff"===p||f===p||!v)this.foregroundColor=this.backgroundColor=null;else{var m=(0,a.getRGB)(g),y=_slicedToArray(m,3),b=y[0],k=y[1],w=y[2],_=function(e){return e/=255,e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)},x=Math.round(.2126*_(b)+.7152*_(k)+.0722*_(w));this.selectColor=function(e,t,r){var a=.2126*_(e)+.7152*_(t)+.0722*_(r);return Math.round(a)===x?p:f}}}if(this.ctx.fillStyle=this.backgroundColor||d,this.ctx.fillRect(0,0,u,h),this.ctx.restore(),s){var A,C=this.cachedCanvases.getCanvas("transparent",u,h);this.compositeCtx=this.ctx,this.transparentCanvas=C.canvas,this.ctx=C.context,this.ctx.save(),(A=this.ctx).transform.apply(A,_toConsumableArray((0,a.getCurrentTransform)(this.compositeCtx)))}(this.ctx.save(),S(this.ctx,this.foregroundColor),n)&&((r=this.ctx).transform.apply(r,_toConsumableArray(n)),this.outputScaleX=n[0],this.outputScaleY=n[0]);(t=this.ctx).transform.apply(t,_toConsumableArray(i.transform)),this.viewportScale=i.scale,this.baseTransform=(0,a.getCurrentTransform)(this.ctx),this.imageLayer&&((0,a.deprecated)("The `imageLayer` functionality will be removed in the future."),this.imageLayer.beginLayout())}},{key:"executeOperatorList",value:function(e,t,r,a){var i=e.argsArray,o=e.fnArray,s=t||0,l=i.length;if(l===s)return s;var c,u=l-s>d&&"function"===typeof r,f=u?Date.now()+h:0,p=0,v=this.commonObjs,g=this.objs;while(1){if(void 0!==a&&s===a.nextBreakPoint)return a.breakIt(s,r),s;if(c=o[s],c!==n.OPS.dependency)this[c].apply(this,i[s]);else{var m,y=_createForOfIteratorHelper(i[s]);try{for(y.s();!(m=y.n()).done;){var b=m.value,k=b.startsWith("g_")?v:g;if(!k.has(b))return k.get(b,r),s}}catch(w){y.e(w)}finally{y.f()}}if(s++,s===l)return s;if(u&&++p>d){if(Date.now()>f)return r(),s;p=0}}}},{key:"endDrawing",value:function(){_classPrivateMethodGet(this,R,N).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();var e,t=_createForOfIteratorHelper(this._cachedBitmapsMap.values());try{for(t.s();!(e=t.n()).done;){var r,a=e.value,n=_createForOfIteratorHelper(a.values());try{for(n.s();!(r=n.n()).done;){var i=r.value;"undefined"!==typeof HTMLCanvasElement&&i instanceof HTMLCanvasElement&&(i.width=i.height=0)}}catch(o){n.e(o)}finally{n.f()}a.clear()}}catch(o){t.e(o)}finally{t.f()}this._cachedBitmapsMap.clear(),this.imageLayer&&this.imageLayer.endLayout()}},{key:"_scaleImage",value:function(e,t){var r,a,n=e.width,i=e.height,o=Math.max(Math.hypot(t[0],t[1]),1),s=Math.max(Math.hypot(t[2],t[3]),1),l=n,c=i,u="prescale1";while(o>2&&l>1||s>2&&c>1){var h=l,d=c;o>2&&l>1&&(h=Math.ceil(l/2),o/=l/h),s>2&&c>1&&(d=Math.ceil(c/2),s/=c/d),r=this.cachedCanvases.getCanvas(u,h,d),a=r.context,a.clearRect(0,0,h,d),a.drawImage(e,0,0,l,c,0,0,h,d),e=r.canvas,l=h,c=d,u="prescale1"===u?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:c}}},{key:"_createMaskCanvas",value:function(e){var t,r,o,s,l=this.ctx,c=e.width,u=e.height,h=this.current.fillColor,d=this.current.patternFill,f=(0,a.getCurrentTransform)(l);if((e.bitmap||e.data)&&e.count>1){var p=e.bitmap||e.data.buffer,v=f.slice(0,4);r=JSON.stringify(d?v:[v,h]),t=this._cachedBitmapsMap.get(p),t||(t=new Map,this._cachedBitmapsMap.set(p,t));var g=t.get(r);if(g&&!d){var y=Math.round(Math.min(f[0],f[2])+f[4]),b=Math.round(Math.min(f[1],f[3])+f[5]);return{canvas:g,offsetX:y,offsetY:b}}o=g}o||(s=this.cachedCanvases.getCanvas("maskCanvas",c,u),w(s.context,e));var k=n.Util.transform(f,[1/c,0,0,-1/u,0,0]);k=n.Util.transform(k,[1,0,0,1,0,-u]);var _=n.Util.applyTransform([0,0],k),S=n.Util.applyTransform([c,u],k),x=n.Util.normalizeRect([_[0],_[1],S[0],S[1]]),A=Math.round(x[2]-x[0])||1,C=Math.round(x[3]-x[1])||1,F=this.cachedCanvases.getCanvas("fillCanvas",A,C),P=F.context,O=Math.min(_[0],S[0]),I=Math.min(_[1],S[1]);P.translate(-O,-I),P.transform.apply(P,_toConsumableArray(k)),o||(o=this._scaleImage(s.canvas,(0,a.getCurrentTransformInverse)(P)),o=o.img,t&&d&&t.set(r,o)),P.imageSmoothingEnabled=T((0,a.getCurrentTransform)(P),e.interpolate),m(P,o,0,0,o.width,o.height,0,0,c,u),P.globalCompositeOperation="source-in";var E=n.Util.transform((0,a.getCurrentTransformInverse)(P),[1,0,0,1,-O,-I]);return P.fillStyle=d?h.getPattern(l,this,E,i.PathType.FILL):h,P.fillRect(0,0,c,u),t&&!d&&(this.cachedCanvases["delete"]("fillCanvas"),t.set(r,F.canvas)),{canvas:F.canvas,offsetX:Math.round(O),offsetY:Math.round(I)}}},{key:"setLineWidth",value:function(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking=null),this.current.lineWidth=e,this.ctx.lineWidth=e}},{key:"setLineCap",value:function(e){this.ctx.lineCap=O[e]}},{key:"setLineJoin",value:function(e){this.ctx.lineJoin=I[e]}},{key:"setMiterLimit",value:function(e){this.ctx.miterLimit=e}},{key:"setDash",value:function(e,t){var r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(e),r.lineDashOffset=t)}},{key:"setRenderingIntent",value:function(e){}},{key:"setFlatness",value:function(e){}},{key:"setGState",value:function(e){for(var t=0,r=e.length;t<r;t++){var a=e[t],n=a[0],i=a[1];switch(n){case"LW":this.setLineWidth(i);break;case"LC":this.setLineCap(i);break;case"LJ":this.setLineJoin(i);break;case"ML":this.setMiterLimit(i);break;case"D":this.setDash(i[0],i[1]);break;case"RI":this.setRenderingIntent(i);break;case"FL":this.setFlatness(i);break;case"Font":this.setFont(i[0],i[1]);break;case"CA":this.current.strokeAlpha=a[1];break;case"ca":this.current.fillAlpha=a[1],this.ctx.globalAlpha=a[1];break;case"BM":this.ctx.globalCompositeOperation=i;break;case"SMask":this.current.activeSMask=i?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.current.transferMaps=i}}}},{key:"inSMaskMode",get:function(){return!!this.suspendedCtx}},{key:"checkSMaskState",value:function(){var e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}},{key:"beginSMaskMode",value:function(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");var e=this.ctx.canvas.width,t=this.ctx.canvas.height,r="smaskGroupAt"+this.groupLevel,n=this.cachedCanvases.getCanvas(r,e,t);this.suspendedCtx=this.ctx,this.ctx=n.context;var i=this.ctx;i.setTransform.apply(i,_toConsumableArray((0,a.getCurrentTransform)(this.suspendedCtx))),_(this.suspendedCtx,i),v(i,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}},{key:"endSMaskMode",value:function(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),_(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}},{key:"compose",value:function(e){if(this.current.activeSMask){e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];var t=this.current.activeSMask,r=this.suspendedCtx;P(r,t,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}}},{key:"save",value:function(){this.inSMaskMode?(_(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone()}},{key:"restore",value:function(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),_(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null)}},{key:"transform",value:function(e,t,r,a,n,i){this.ctx.transform(e,t,r,a,n,i),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null}},{key:"constructPath",value:function(e,t,r){for(var i,o,s=this.ctx,l=this.current,c=l.x,u=l.y,h=(0,a.getCurrentTransform)(s),d=0===h[0]&&0===h[3]||0===h[1]&&0===h[2],f=d?r.slice(0):null,p=0,v=0,g=e.length;p<g;p++)switch(0|e[p]){case n.OPS.rectangle:c=t[v++],u=t[v++];var m=t[v++],y=t[v++],b=c+m,k=u+y;s.moveTo(c,u),0===m||0===y?s.lineTo(b,k):(s.lineTo(b,u),s.lineTo(b,k),s.lineTo(c,k)),d||l.updateRectMinMax(h,[c,u,b,k]),s.closePath();break;case n.OPS.moveTo:c=t[v++],u=t[v++],s.moveTo(c,u),d||l.updatePathMinMax(h,c,u);break;case n.OPS.lineTo:c=t[v++],u=t[v++],s.lineTo(c,u),d||l.updatePathMinMax(h,c,u);break;case n.OPS.curveTo:i=c,o=u,c=t[v+4],u=t[v+5],s.bezierCurveTo(t[v],t[v+1],t[v+2],t[v+3],c,u),l.updateCurvePathMinMax(h,i,o,t[v],t[v+1],t[v+2],t[v+3],c,u,f),v+=6;break;case n.OPS.curveTo2:i=c,o=u,s.bezierCurveTo(c,u,t[v],t[v+1],t[v+2],t[v+3]),l.updateCurvePathMinMax(h,i,o,c,u,t[v],t[v+1],t[v+2],t[v+3],f),c=t[v+2],u=t[v+3],v+=4;break;case n.OPS.curveTo3:i=c,o=u,c=t[v+2],u=t[v+3],s.bezierCurveTo(t[v],t[v+1],c,u,c,u),l.updateCurvePathMinMax(h,i,o,t[v],t[v+1],c,u,c,u,f),v+=4;break;case n.OPS.closePath:s.closePath();break}d&&l.updateScalingPathMinMax(h,f),l.setCurrentPoint(c,u)}},{key:"closePath",value:function(){this.ctx.closePath()}},{key:"stroke",value:function(e){e="undefined"===typeof e||e;var t=this.ctx,r=this.current.strokeColor;t.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"===_typeof(r)&&null!==r&&void 0!==r&&r.getPattern?(t.save(),t.strokeStyle=r.getPattern(t,this,(0,a.getCurrentTransformInverse)(t),i.PathType.STROKE),this.rescaleAndStroke(!1),t.restore()):this.rescaleAndStroke(!0)),e&&this.consumePath(this.current.getClippedPathBoundingBox()),t.globalAlpha=this.current.fillAlpha}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"fill",value:function(e){e="undefined"===typeof e||e;var t=this.ctx,r=this.current.fillColor,n=this.current.patternFill,o=!1;n&&(t.save(),t.fillStyle=r.getPattern(t,this,(0,a.getCurrentTransformInverse)(t),i.PathType.FILL),o=!0);var s=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==s&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),o&&t.restore(),e&&this.consumePath(s)}},{key:"eoFill",value:function(){this.pendingEOFill=!0,this.fill()}},{key:"fillStroke",value:function(){this.fill(!1),this.stroke(!1),this.consumePath()}},{key:"eoFillStroke",value:function(){this.pendingEOFill=!0,this.fillStroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}},{key:"endPath",value:function(){this.consumePath()}},{key:"clip",value:function(){this.pendingClip=E}},{key:"eoClip",value:function(){this.pendingClip=M}},{key:"beginText",value:function(){this.current.textMatrix=n.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}},{key:"endText",value:function(){var e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();var r,a=_createForOfIteratorHelper(e);try{for(a.s();!(r=a.n()).done;){var n=r.value;t.setTransform.apply(t,_toConsumableArray(n.transform)),t.translate(n.x,n.y),n.addToPath(t,n.fontSize)}}catch(i){a.e(i)}finally{a.f()}t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()}},{key:"setCharSpacing",value:function(e){this.current.charSpacing=e}},{key:"setWordSpacing",value:function(e){this.current.wordSpacing=e}},{key:"setHScale",value:function(e){this.current.textHScale=e/100}},{key:"setLeading",value:function(e){this.current.leading=-e}},{key:"setFont",value:function(e,t){var r=this.commonObjs.get(e),a=this.current;if(!r)throw new Error("Can't find font for ".concat(e));if(a.fontMatrix=r.fontMatrix||n.FONT_IDENTITY_MATRIX,0!==a.fontMatrix[0]&&0!==a.fontMatrix[3]||(0,n.warn)("Invalid font matrix for font "+e),t<0?(t=-t,a.fontDirection=-1):a.fontDirection=1,this.current.font=r,this.current.fontSize=t,!r.isType3Font){var i=r.loadedName||"sans-serif",o="normal";r.black?o="900":r.bold&&(o="bold");var s=r.italic?"italic":"normal",u='"'.concat(i,'", ').concat(r.fallbackName),h=t;t<l?h=l:t>c&&(h=c),this.current.fontSizeScale=t/h,this.ctx.font="".concat(s," ").concat(o," ").concat(h,"px ").concat(u)}}},{key:"setTextRenderingMode",value:function(e){this.current.textRenderingMode=e}},{key:"setTextRise",value:function(e){this.current.textRise=e}},{key:"moveText",value:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}},{key:"setLeadingMoveText",value:function(e,t){this.setLeading(-t),this.moveText(e,t)}},{key:"setTextMatrix",value:function(e,t,r,a,n,i){this.current.textMatrix=[e,t,r,a,n,i],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"paintChar",value:function(e,t,r,i){var o,s=this.ctx,l=this.current,c=l.font,u=l.textRenderingMode,h=l.fontSize/l.fontSizeScale,d=u&n.TextRenderingMode.FILL_STROKE_MASK,f=!!(u&n.TextRenderingMode.ADD_TO_PATH_FLAG),p=l.patternFill&&!c.missingFile;if((c.disableFontFace||f||p)&&(o=c.getPathGenerator(this.commonObjs,e)),c.disableFontFace||p?(s.save(),s.translate(t,r),s.beginPath(),o(s,h),i&&s.setTransform.apply(s,_toConsumableArray(i)),d!==n.TextRenderingMode.FILL&&d!==n.TextRenderingMode.FILL_STROKE||s.fill(),d!==n.TextRenderingMode.STROKE&&d!==n.TextRenderingMode.FILL_STROKE||s.stroke(),s.restore()):(d!==n.TextRenderingMode.FILL&&d!==n.TextRenderingMode.FILL_STROKE||s.fillText(e,t,r),d!==n.TextRenderingMode.STROKE&&d!==n.TextRenderingMode.FILL_STROKE||s.strokeText(e,t,r)),f){var v=this.pendingTextPaths||(this.pendingTextPaths=[]);v.push({transform:(0,a.getCurrentTransform)(s),x:t,y:r,fontSize:h,addToPath:o})}}},{key:"isFontSubpixelAAEnabled",get:function(){var e=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10),t=e.context;t.scale(1.5,1),t.fillText("I",0,10);for(var r=t.getImageData(0,0,10,10).data,a=!1,i=3;i<r.length;i+=4)if(r[i]>0&&r[i]<255){a=!0;break}return(0,n.shadow)(this,"isFontSubpixelAAEnabled",a)}},{key:"showText",value:function(e){var t=this.current,r=t.font;if(r.isType3Font)return this.showType3Text(e);var o=t.fontSize;if(0!==o){var s,l=this.ctx,c=t.fontSizeScale,u=t.charSpacing,h=t.wordSpacing,d=t.fontDirection,f=t.textHScale*d,p=e.length,v=r.vertical,g=v?1:-1,m=r.defaultVMetrics,y=o*t.fontMatrix[0],b=t.textRenderingMode===n.TextRenderingMode.FILL&&!r.disableFontFace&&!t.patternFill;if(l.save(),l.transform.apply(l,_toConsumableArray(t.textMatrix)),l.translate(t.x,t.y+t.textRise),d>0?l.scale(f,-1):l.scale(f,1),t.patternFill){l.save();var k=t.fillColor.getPattern(l,this,(0,a.getCurrentTransformInverse)(l),i.PathType.FILL);s=(0,a.getCurrentTransform)(l),l.restore(),l.fillStyle=k}var w=t.lineWidth,_=t.textMatrixScale;if(0===_||0===w){var S=t.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;S!==n.TextRenderingMode.STROKE&&S!==n.TextRenderingMode.FILL_STROKE||(w=this.getSinglePixelWidth())}else w/=_;1!==c&&(l.scale(c,c),w/=c),l.lineWidth=w;var x,A=0;for(x=0;x<p;++x){var C=e[x];if("number"!==typeof C){var F=!1,P=(C.isSpace?h:0)+u,T=C.fontChar,O=C.accent,I=void 0,E=void 0,M=C.width;if(v){var R=C.vmetric||m,D=-(C.vmetric?R[1]:.5*M)*y,N=R[2]*y;M=R?-R[0]:M,I=D/c,E=(A+N)/c}else I=A/c,E=0;if(r.remeasure&&M>0){var L=1e3*l.measureText(T).width/o*c;if(M<L&&this.isFontSubpixelAAEnabled){var B=M/L;F=!0,l.save(),l.scale(B,1),I/=B}else M!==L&&(I+=(M-L)/2e3*o/c)}if(this.contentVisible&&(C.isInFont||r.missingFile))if(b&&!O)l.fillText(T,I,E);else if(this.paintChar(T,I,E,s),O){var j=I+o*O.offset.x/c,U=E-o*O.offset.y/c;this.paintChar(O.fontChar,j,U,s)}var q=void 0;q=v?M*y-P*d:M*y+P*d,A+=q,F&&l.restore()}else A+=g*C*o/1e3}v?t.y-=A:t.x+=A*f,l.restore(),this.compose()}}},{key:"showType3Text",value:function(e){var t,r,a,i,o=this.ctx,s=this.current,l=s.font,c=s.fontSize,u=s.fontDirection,h=l.vertical?1:-1,d=s.charSpacing,f=s.wordSpacing,p=s.textHScale*u,v=s.fontMatrix||n.FONT_IDENTITY_MATRIX,g=e.length,m=s.textRenderingMode===n.TextRenderingMode.INVISIBLE;if(!m&&0!==c){for(this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,o.save(),o.transform.apply(o,_toConsumableArray(s.textMatrix)),o.translate(s.x,s.y),o.scale(p,u),t=0;t<g;++t)if(r=e[t],"number"!==typeof r){var y=(r.isSpace?f:0)+d,b=l.charProcOperatorList[r.operatorListId];if(b){this.contentVisible&&(this.processingType3=r,this.save(),o.scale(c,c),o.transform.apply(o,_toConsumableArray(v)),this.executeOperatorList(b),this.restore());var k=n.Util.applyTransform([r.width,0],v);a=k[0]*c+y,o.translate(a,0),s.x+=a*p}else(0,n.warn)('Type3 character "'.concat(r.operatorListId,'" is not available.'))}else i=h*r*c/1e3,this.ctx.translate(i,0),s.x+=i*p;o.restore(),this.processingType3=null}}},{key:"setCharWidth",value:function(e,t){}},{key:"setCharWidthAndBounds",value:function(e,t,r,a,n,i){this.ctx.rect(r,a,n-r,i-a),this.ctx.clip(),this.endPath()}},{key:"getColorN_Pattern",value:function(t){var r,n=this;if("TilingPattern"===t[0]){var o=t[1],s=this.baseTransform||(0,a.getCurrentTransform)(this.ctx),l={createCanvasGraphics:function(t){return new e(t,n.commonObjs,n.objs,n.canvasFactory)}};r=new i.TilingPattern(t,o,this.ctx,l,s)}else r=this._getPattern(t[1],t[2]);return r}},{key:"setStrokeColorN",value:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)}},{key:"setFillColorN",value:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}},{key:"setStrokeRGBColor",value:function(e,t,r){var a,i=(null===(a=this.selectColor)||void 0===a?void 0:a.call(this,e,t,r))||n.Util.makeHexColor(e,t,r);this.ctx.strokeStyle=i,this.current.strokeColor=i}},{key:"setFillRGBColor",value:function(e,t,r){var a,i=(null===(a=this.selectColor)||void 0===a?void 0:a.call(this,e,t,r))||n.Util.makeHexColor(e,t,r);this.ctx.fillStyle=i,this.current.fillColor=i,this.current.patternFill=!1}},{key:"_getPattern",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.cachedPatterns.has(e)?t=this.cachedPatterns.get(e):(t=(0,i.getShadingPattern)(this.objs.get(e)),this.cachedPatterns.set(e,t)),r&&(t.matrix=r),t}},{key:"shadingFill",value:function(e){if(this.contentVisible){var t=this.ctx;this.save();var r=this._getPattern(e);t.fillStyle=r.getPattern(t,this,(0,a.getCurrentTransformInverse)(t),i.PathType.SHADING);var o=(0,a.getCurrentTransformInverse)(t);if(o){var s=t.canvas,l=s.width,c=s.height,u=n.Util.applyTransform([0,0],o),h=n.Util.applyTransform([0,c],o),d=n.Util.applyTransform([l,0],o),f=n.Util.applyTransform([l,c],o),p=Math.min(u[0],h[0],d[0],f[0]),v=Math.min(u[1],h[1],d[1],f[1]),g=Math.max(u[0],h[0],d[0],f[0]),m=Math.max(u[1],h[1],d[1],f[1]);this.ctx.fillRect(p,v,g-p,m-v)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}}},{key:"beginInlineImage",value:function(){(0,n.unreachable)("Should not call beginInlineImage")}},{key:"beginImageData",value:function(){(0,n.unreachable)("Should not call beginImageData")}},{key:"paintFormXObjectBegin",value:function(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,_toConsumableArray(e)),this.baseTransform=(0,a.getCurrentTransform)(this.ctx),t)){var r=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],r,n),this.current.updateRectMinMax((0,a.getCurrentTransform)(this.ctx),t),this.clip(),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}},{key:"beginGroup",value:function(e){if(this.contentVisible){this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);var t=this.ctx;e.isolated||(0,n.info)("TODO: Support non-isolated groups."),e.knockout&&(0,n.warn)("Knockout groups not supported.");var r=(0,a.getCurrentTransform)(t);if(e.matrix&&t.transform.apply(t,_toConsumableArray(e.matrix)),!e.bbox)throw new Error("Bounding box is required.");var i=n.Util.getAxialAlignedBoundingBox(e.bbox,(0,a.getCurrentTransform)(t)),o=[0,0,t.canvas.width,t.canvas.height];i=n.Util.intersect(i,o)||[0,0,0,0];var s=Math.floor(i[0]),l=Math.floor(i[1]),c=Math.max(Math.ceil(i[2])-s,1),h=Math.max(Math.ceil(i[3])-l,1),d=1,f=1;c>u&&(d=c/u,c=u),h>u&&(f=h/u,h=u),this.current.startNewPathAndClipBox([0,0,c,h]);var p="groupAt"+this.groupLevel;e.smask&&(p+="_smask_"+this.smaskCounter++%2);var v=this.cachedCanvases.getCanvas(p,c,h),g=v.context;g.scale(1/d,1/f),g.translate(-s,-l),g.transform.apply(g,_toConsumableArray(r)),e.smask?this.smaskStack.push({canvas:v.canvas,context:g,offsetX:s,offsetY:l,scaleX:d,scaleY:f,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(s,l),t.scale(d,f),t.save()),_(t,g),this.ctx=g,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}}},{key:"endGroup",value:function(e){if(this.contentVisible){this.groupLevel--;var t=this.ctx,r=this.groupStack.pop();if(this.ctx=r,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{var i;this.ctx.restore();var o=(0,a.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),(i=this.ctx).setTransform.apply(i,_toConsumableArray(o));var s=n.Util.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],o);this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(s)}}}},{key:"beginAnnotation",value:function(e,t,r,i,o){var s;(_classPrivateMethodGet(this,R,N).call(this),S(this.ctx,this.foregroundColor),this.ctx.save(),this.save(),this.baseTransform)&&(s=this.ctx).setTransform.apply(s,_toConsumableArray(this.baseTransform));if(Array.isArray(t)&&4===t.length){var l=t[2]-t[0],c=t[3]-t[1];if(o&&this.annotationCanvasMap){r=r.slice(),r[4]-=t[0],r[5]-=t[1],t=t.slice(),t[0]=t[1]=0,t[2]=l,t[3]=c;var u=n.Util.singularValueDecompose2dScale((0,a.getCurrentTransform)(this.ctx)),h=_slicedToArray(u,2),d=h[0],f=h[1],p=this.viewportScale,v=Math.ceil(l*this.outputScaleX*p),g=Math.ceil(c*this.outputScaleY*p);this.annotationCanvas=this.canvasFactory.create(v,g);var m=this.annotationCanvas,y=m.canvas,k=m.context;this.annotationCanvasMap.set(e,y),this.annotationCanvas.savedCtx=this.ctx,this.ctx=k,this.ctx.setTransform(d,0,0,-f,0,c*f),S(this.ctx,this.foregroundColor)}else S(this.ctx,this.foregroundColor),this.ctx.rect(t[0],t[1],l,c),this.ctx.clip(),this.endPath()}this.current=new b(this.ctx.canvas.width,this.ctx.canvas.height),this.transform.apply(this,_toConsumableArray(r)),this.transform.apply(this,_toConsumableArray(i))}},{key:"endAnnotation",value:function(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}},{key:"paintImageMaskXObject",value:function(e){if(this.contentVisible){var t=e.count;e=this.getObject(e.data,e),e.count=t;var r=this.ctx,a=this.processingType3;if(a&&(void 0===a.compiled&&(a.compiled=y(e)),a.compiled))a.compiled(r);else{var n=this._createMaskCanvas(e),i=n.canvas;r.save(),r.setTransform(1,0,0,1,0,0),r.drawImage(i,n.offsetX,n.offsetY),r.restore(),this.compose()}}}},{key:"paintImageMaskXObjectRepeat",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;if(this.contentVisible){e=this.getObject(e.data,e);var l=this.ctx;l.save();var c=(0,a.getCurrentTransform)(l);l.transform(t,r,i,o,0,0);var u=this._createMaskCanvas(e);l.setTransform(1,0,0,1,0,0);for(var h=0,d=s.length;h<d;h+=2){var f=n.Util.transform(c,[t,r,i,o,s[h],s[h+1]]),p=n.Util.applyTransform([0,0],f),v=_slicedToArray(p,2),g=v[0],m=v[1];l.drawImage(u.canvas,g,m)}l.restore(),this.compose()}}},{key:"paintImageMaskXObjectGroup",value:function(e){if(this.contentVisible){var t,r=this.ctx,n=this.current.fillColor,o=this.current.patternFill,s=_createForOfIteratorHelper(e);try{for(s.s();!(t=s.n()).done;){var l=t.value,c=l.data,u=l.width,h=l.height,d=l.transform,f=this.cachedCanvases.getCanvas("maskCanvas",u,h),p=f.context;p.save();var v=this.getObject(c,l);w(p,v),p.globalCompositeOperation="source-in",p.fillStyle=o?n.getPattern(p,this,(0,a.getCurrentTransformInverse)(r),i.PathType.FILL):n,p.fillRect(0,0,u,h),p.restore(),r.save(),r.transform.apply(r,_toConsumableArray(d)),r.scale(1,-1),m(r,f.canvas,0,0,u,h,0,-1,1,1),r.restore()}}catch(g){s.e(g)}finally{s.f()}this.compose()}}},{key:"paintImageXObject",value:function(e){if(this.contentVisible){var t=this.getObject(e);t?this.paintInlineImageXObject(t):(0,n.warn)("Dependent image isn't ready yet")}}},{key:"paintImageXObjectRepeat",value:function(e,t,r,a){if(this.contentVisible){var i=this.getObject(e);if(i){for(var o=i.width,s=i.height,l=[],c=0,u=a.length;c<u;c+=2)l.push({transform:[t,0,0,r,a[c],a[c+1]],x:0,y:0,w:o,h:s});this.paintInlineImageXObjectGroup(i,l)}else(0,n.warn)("Dependent image isn't ready yet")}}},{key:"paintInlineImageXObject",value:function(e){if(this.contentVisible){var t,r=e.width,i=e.height,o=this.ctx;if(this.save(),o.scale(1/r,-1/i),"function"===typeof HTMLElement&&e instanceof HTMLElement||!e.data)t=e;else{var s=this.cachedCanvases.getCanvas("inlineImage",r,i),l=s.context;k(l,e,this.current.transferMaps),t=s.canvas}var c=this._scaleImage(t,(0,a.getCurrentTransformInverse)(o));o.imageSmoothingEnabled=T((0,a.getCurrentTransform)(o),e.interpolate);var u=m(o,c.img,0,0,c.paintWidth,c.paintHeight,0,-i,r,i),h=_slicedToArray(u,2),d=h[0],f=h[1];if(this.imageLayer){var p=n.Util.applyTransform([0,-i],(0,a.getCurrentTransform)(this.ctx)),v=_slicedToArray(p,2),g=v[0],y=v[1];this.imageLayer.appendImage({imgData:e,left:g,top:y,width:d,height:f})}this.compose(),this.restore()}}},{key:"paintInlineImageXObjectGroup",value:function(e,t){if(this.contentVisible){var r=this.ctx,i=e.width,o=e.height,s=this.cachedCanvases.getCanvas("inlineImage",i,o),l=s.context;k(l,e,this.current.transferMaps);var c,u=_createForOfIteratorHelper(t);try{for(u.s();!(c=u.n()).done;){var h=c.value;if(r.save(),r.transform.apply(r,_toConsumableArray(h.transform)),r.scale(1,-1),m(r,s.canvas,h.x,h.y,h.w,h.h,0,-1,1,1),this.imageLayer){var d=n.Util.applyTransform([h.x,h.y],(0,a.getCurrentTransform)(this.ctx)),f=_slicedToArray(d,2),p=f[0],v=f[1];this.imageLayer.appendImage({imgData:e,left:p,top:v,width:i,height:o})}r.restore()}}catch(g){u.e(g)}finally{u.f()}this.compose()}}},{key:"paintSolidColorImageMask",value:function(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}},{key:"markPoint",value:function(e){}},{key:"markPointProps",value:function(e,t){}},{key:"beginMarkedContent",value:function(e){this.markedContentStack.push({visible:!0})}},{key:"beginMarkedContentProps",value:function(e,t){"OC"===e?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(t)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}},{key:"endMarkedContent",value:function(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}},{key:"beginCompat",value:function(){}},{key:"endCompat",value:function(){}},{key:"consumePath",value:function(e){var t=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(e);var r=this.ctx;this.pendingClip&&(t||(this.pendingClip===M?r.clip("evenodd"):r.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),r.beginPath()}},{key:"getSinglePixelWidth",value:function(){if(!this._cachedGetSinglePixelWidth){var e=(0,a.getCurrentTransform)(this.ctx);if(0===e[1]&&0===e[2])this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(e[0]),Math.abs(e[3]));else{var t=Math.abs(e[0]*e[3]-e[2]*e[1]),r=Math.hypot(e[0],e[2]),n=Math.hypot(e[1],e[3]);this._cachedGetSinglePixelWidth=Math.max(r,n)/t}}return this._cachedGetSinglePixelWidth}},{key:"getScaleForStroking",value:function(){if(!this._cachedScaleForStroking){var e,t,r=this.current.lineWidth,n=(0,a.getCurrentTransform)(this.ctx);if(0===n[1]&&0===n[2]){var i=Math.abs(n[0]),o=Math.abs(n[3]);if(0===r)e=1/i,t=1/o;else{var s=i*r,l=o*r;e=s<1?1/s:1,t=l<1?1/l:1}}else{var c=Math.abs(n[0]*n[3]-n[2]*n[1]),u=Math.hypot(n[0],n[1]),h=Math.hypot(n[2],n[3]);if(0===r)e=h/c,t=u/c;else{var d=r*c;e=h>d?h/d:1,t=u>d?u/d:1}}this._cachedScaleForStroking=[e,t]}return this._cachedScaleForStroking}},{key:"rescaleAndStroke",value:function(e){var t=this.ctx,r=this.current.lineWidth,n=this.getScaleForStroking(),i=_slicedToArray(n,2),o=i[0],s=i[1];if(t.lineWidth=r||1,1!==o||1!==s){var l,c,u;e&&(l=(0,a.getCurrentTransform)(t),c=t.getLineDash().slice(),u=t.lineDashOffset),t.scale(o,s);var h=Math.max(o,s);t.setLineDash(t.getLineDash().map((function(e){return e/h}))),t.lineDashOffset/=h,t.stroke(),e&&(t.setTransform.apply(t,_toConsumableArray(l)),t.setLineDash(c),t.lineDashOffset=u)}else t.stroke()}},{key:"isContentVisible",value:function(){for(var e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}]),e}();function N(){while(this.stateStack.length||this.inSMaskMode)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}for(var L in t.CanvasGraphics=D,n.OPS)void 0!==D.prototype[L]&&(D.prototype[n.OPS[L]]=D.prototype[L])},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=p;var a=r(1),n=r(8),i=r(3),o={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function s(e,t){if(t&&!i.isNodeJS){var r=t[2]-t[0],a=t[3]-t[1],n=new Path2D;n.rect(t[0],t[1],r,a),e.clip(n)}}t.PathType=o;var l=function(){function e(){_classCallCheck(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize BaseShadingPattern.")}return _createClass(e,[{key:"getPattern",value:function(){(0,a.unreachable)("Abstract method `getPattern` called.")}}]),e}(),c=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a;return _classCallCheck(this,r),a=t.call(this),a._type=e[1],a._bbox=e[2],a._colorStops=e[3],a._p0=e[4],a._p1=e[5],a._r0=e[6],a._r1=e[7],a.matrix=null,a}return _createClass(r,[{key:"_createGradient",value:function(e){var t;"axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));var r,a=_createForOfIteratorHelper(this._colorStops);try{for(a.s();!(r=a.n()).done;){var n=r.value;t.addColorStop(n[0],n[1])}}catch(i){a.e(i)}finally{a.f()}return t}},{key:"getPattern",value:function(e,t,r,i){var l;if(i===o.STROKE||i===o.FILL){var c=t.current.getClippedPathBoundingBox(i,(0,n.getCurrentTransform)(e))||[0,0,0,0],u=Math.ceil(c[2]-c[0])||1,h=Math.ceil(c[3]-c[1])||1,d=t.cachedCanvases.getCanvas("pattern",u,h,!0),f=d.context;f.clearRect(0,0,f.canvas.width,f.canvas.height),f.beginPath(),f.rect(0,0,f.canvas.width,f.canvas.height),f.translate(-c[0],-c[1]),r=a.Util.transform(r,[1,0,0,1,c[0],c[1]]),f.transform.apply(f,_toConsumableArray(t.baseTransform)),this.matrix&&f.transform.apply(f,_toConsumableArray(this.matrix)),s(f,this._bbox),f.fillStyle=this._createGradient(f),f.fill(),l=e.createPattern(d.canvas,"no-repeat");var p=new DOMMatrix(r);try{l.setTransform(p)}catch(v){(0,a.warn)('RadialAxialShadingPattern.getPattern: "'.concat(null===v||void 0===v?void 0:v.message,'".'))}}else s(e,this._bbox),l=this._createGradient(e);return l}}]),r}(l);function u(e,t,r,a,n,i,o,s){var l,c=t.coords,u=t.colors,h=e.data,d=4*e.width;c[r+1]>c[a+1]&&(l=r,r=a,a=l,l=i,i=o,o=l),c[a+1]>c[n+1]&&(l=a,a=n,n=l,l=o,o=s,s=l),c[r+1]>c[a+1]&&(l=r,r=a,a=l,l=i,i=o,o=l);var f=(c[r]+t.offsetX)*t.scaleX,p=(c[r+1]+t.offsetY)*t.scaleY,v=(c[a]+t.offsetX)*t.scaleX,g=(c[a+1]+t.offsetY)*t.scaleY,m=(c[n]+t.offsetX)*t.scaleX,y=(c[n+1]+t.offsetY)*t.scaleY;if(!(p>=y))for(var b,k,w,_,S,x,A,C,F=u[i],P=u[i+1],T=u[i+2],O=u[o],I=u[o+1],E=u[o+2],M=u[s],R=u[s+1],D=u[s+2],N=Math.round(p),L=Math.round(y),B=N;B<=L;B++){if(B<g){var j=void 0;j=B<p?0:(p-B)/(p-g),b=f-(f-v)*j,k=F-(F-O)*j,w=P-(P-I)*j,_=T-(T-E)*j}else{var U=void 0;U=B>y?1:g===y?0:(g-B)/(g-y),b=v-(v-m)*U,k=O-(O-M)*U,w=I-(I-R)*U,_=E-(E-D)*U}var q=void 0;q=B<p?0:B>y?1:(p-B)/(p-y),S=f-(f-m)*q,x=F-(F-M)*q,A=P-(P-R)*q,C=T-(T-D)*q;for(var G=Math.round(Math.min(b,S)),H=Math.round(Math.max(b,S)),X=d*B+4*G,$=G;$<=H;$++)q=(b-$)/(b-S),q<0?q=0:q>1&&(q=1),h[X++]=k-(k-x)*q|0,h[X++]=w-(w-A)*q|0,h[X++]=_-(_-C)*q|0,h[X++]=255}}function h(e,t,r){var a,n,i=t.coords,o=t.colors;switch(t.type){case"lattice":var s=t.verticesPerRow,l=Math.floor(i.length/s)-1,c=s-1;for(a=0;a<l;a++)for(var h=a*s,d=0;d<c;d++,h++)u(e,r,i[h],i[h+1],i[h+s],o[h],o[h+1],o[h+s]),u(e,r,i[h+s+1],i[h+1],i[h+s],o[h+s+1],o[h+1],o[h+s]);break;case"triangles":for(a=0,n=i.length;a<n;a+=3)u(e,r,i[a],i[a+1],i[a+2],o[a],o[a+1],o[a+2]);break;default:throw new Error("illegal figure")}}var d=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a;return _classCallCheck(this,r),a=t.call(this),a._coords=e[2],a._colors=e[3],a._figures=e[4],a._bounds=e[5],a._bbox=e[7],a._background=e[8],a.matrix=null,a}return _createClass(r,[{key:"_createMeshCanvas",value:function(e,t,r){var a=1.1,n=3e3,i=2,o=Math.floor(this._bounds[0]),s=Math.floor(this._bounds[1]),l=Math.ceil(this._bounds[2])-o,c=Math.ceil(this._bounds[3])-s,u=Math.min(Math.ceil(Math.abs(l*e[0]*a)),n),d=Math.min(Math.ceil(Math.abs(c*e[1]*a)),n),f=l/u,p=c/d,v={coords:this._coords,colors:this._colors,offsetX:-o,offsetY:-s,scaleX:1/f,scaleY:1/p},g=u+2*i,m=d+2*i,y=r.getCanvas("mesh",g,m,!1),b=y.context,k=b.createImageData(u,d);if(t)for(var w=k.data,_=0,S=w.length;_<S;_+=4)w[_]=t[0],w[_+1]=t[1],w[_+2]=t[2],w[_+3]=255;var x,A=_createForOfIteratorHelper(this._figures);try{for(A.s();!(x=A.n()).done;){var C=x.value;h(k,C,v)}}catch(P){A.e(P)}finally{A.f()}b.putImageData(k,i,i);var F=y.canvas;return{canvas:F,offsetX:o-i*f,offsetY:s-i*p,scaleX:f,scaleY:p}}},{key:"getPattern",value:function(e,t,r,i){var l;if(s(e,this._bbox),i===o.SHADING)l=a.Util.singularValueDecompose2dScale((0,n.getCurrentTransform)(e));else if(l=a.Util.singularValueDecompose2dScale(t.baseTransform),this.matrix){var c=a.Util.singularValueDecompose2dScale(this.matrix);l=[l[0]*c[0],l[1]*c[1]]}var u=this._createMeshCanvas(l,i===o.SHADING?null:this._background,t.cachedCanvases);return i!==o.SHADING&&(e.setTransform.apply(e,_toConsumableArray(t.baseTransform)),this.matrix&&e.transform.apply(e,_toConsumableArray(this.matrix))),e.translate(u.offsetX,u.offsetY),e.scale(u.scaleX,u.scaleY),e.createPattern(u.canvas,"no-repeat")}}]),r}(l),f=function(e){_inherits(r,e);var t=_createSuper(r);function r(){return _classCallCheck(this,r),t.apply(this,arguments)}return _createClass(r,[{key:"getPattern",value:function(){return"hotpink"}}]),r}(l);function p(e){switch(e[0]){case"RadialAxial":return new c(e);case"Mesh":return new d(e);case"Dummy":return new f}throw new Error("Unknown IR type: ".concat(e[0]))}var v={COLORED:1,UNCOLORED:2},g=function(){function e(t,r,a,n,i){_classCallCheck(this,e),this.operatorList=t[2],this.matrix=t[3]||[1,0,0,1,0,0],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=r,this.ctx=a,this.canvasGraphicsFactory=n,this.baseTransform=i}return _createClass(e,[{key:"createPatternCanvas",value:function(e){var t=this.operatorList,r=this.bbox,i=this.xstep,o=this.ystep,s=this.paintType,l=this.tilingType,c=this.color,u=this.canvasGraphicsFactory;(0,a.info)("TilingType: "+l);var h=r[0],d=r[1],f=r[2],p=r[3],v=a.Util.singularValueDecompose2dScale(this.matrix),g=a.Util.singularValueDecompose2dScale(this.baseTransform),m=[v[0]*g[0],v[1]*g[1]],y=this.getSizeAndScale(i,this.ctx.canvas.width,m[0]),b=this.getSizeAndScale(o,this.ctx.canvas.height,m[1]),k=e.cachedCanvases.getCanvas("pattern",y.size,b.size,!0),w=k.context,_=u.createCanvasGraphics(w);_.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(_,s,c);var S=h,x=d,A=f,C=p;return h<0&&(S=0,A+=Math.abs(h)),d<0&&(x=0,C+=Math.abs(d)),w.translate(-y.scale*S,-b.scale*x),_.transform(y.scale,0,0,b.scale,0,0),w.save(),this.clipBbox(_,S,x,A,C),_.baseTransform=(0,n.getCurrentTransform)(_.ctx),_.executeOperatorList(t),_.endDrawing(),{canvas:k.canvas,scaleX:y.scale,scaleY:b.scale,offsetX:S,offsetY:x}}},{key:"getSizeAndScale",value:function(t,r,a){t=Math.abs(t);var n=Math.max(e.MAX_PATTERN_SIZE,r),i=Math.ceil(t*a);return i>=n?i=n:a=i/t,{scale:a,size:i}}},{key:"clipBbox",value:function(e,t,r,a,i){var o=a-t,s=i-r;e.ctx.rect(t,r,o,s),e.current.updateRectMinMax((0,n.getCurrentTransform)(e.ctx),[t,r,a,i]),e.clip(),e.endPath()}},{key:"setFillAndStrokeStyleToContext",value:function(e,t,r){var n=e.ctx,i=e.current;switch(t){case v.COLORED:var o=this.ctx;n.fillStyle=o.fillStyle,n.strokeStyle=o.strokeStyle,i.fillColor=o.fillStyle,i.strokeColor=o.strokeStyle;break;case v.UNCOLORED:var s=a.Util.makeHexColor(r[0],r[1],r[2]);n.fillStyle=s,n.strokeStyle=s,i.fillColor=s,i.strokeColor=s;break;default:throw new a.FormatError("Unsupported paint type: ".concat(t))}}},{key:"getPattern",value:function(e,t,r,n){var i=r;n!==o.SHADING&&(i=a.Util.transform(i,t.baseTransform),this.matrix&&(i=a.Util.transform(i,this.matrix)));var s=this.createPatternCanvas(t),l=new DOMMatrix(i);l=l.translate(s.offsetX,s.offsetY),l=l.scale(1/s.scaleX,1/s.scaleY);var c=e.createPattern(s.canvas,"repeat");try{c.setTransform(l)}catch(u){(0,a.warn)('TilingPattern.getPattern: "'.concat(null===u||void 0===u?void 0:u.message,'".'))}return c}}],[{key:"MAX_PATTERN_SIZE",get:function(){return(0,a.shadow)(this,"MAX_PATTERN_SIZE",3e3)}}]),e}();t.TilingPattern=g},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.applyMaskImageData=n;var a=r(1);function n(e){var t=e.src,r=e.srcPos,n=void 0===r?0:r,i=e.dest,o=e.destPos,s=void 0===o?0:o,l=e.width,c=e.height,u=e.inverseDecode,h=void 0!==u&&u,d=a.FeatureTest.isLittleEndian?4278190080:255,f=h?[0,d]:[d,0],p=_slicedToArray(f,2),v=p[0],g=p[1],m=l>>3,y=7&l,b=t.length;i=new Uint32Array(i.buffer);for(var k=0;k<c;k++){for(var w=n+m;n<w;n++){var _=n<b?t[n]:255;i[s++]=128&_?g:v,i[s++]=64&_?g:v,i[s++]=32&_?g:v,i[s++]=16&_?g:v,i[s++]=8&_?g:v,i[s++]=4&_?g:v,i[s++]=2&_?g:v,i[s++]=1&_?g:v}if(0!==y)for(var S=n<b?t[n++]:255,x=0;x<y;x++)i[s++]=S&1<<7-x?g:v}return{srcPos:n,destPos:s}}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;var r=Object.create(null);t.GlobalWorkerOptions=r,r.workerPort=void 0===r.workerPort?null:r.workerPort,r.workerSrc=void 0===r.workerSrc?"":r.workerSrc},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var a=r(1),n={UNKNOWN:0,DATA:1,ERROR:2},i={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function o(e){switch(e instanceof Error||"object"===_typeof(e)&&null!==e||(0,a.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new a.AbortException(e.message);case"MissingPDFException":return new a.MissingPDFException(e.message);case"PasswordException":return new a.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new a.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new a.UnknownErrorException(e.message,e.details);default:return new a.UnknownErrorException(e.message,e.toString())}}var s=function(){function e(t,r,a){var i=this;_classCallCheck(this,e),this.sourceName=t,this.targetName=r,this.comObj=a,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=function(e){var t=e.data;if(t.targetName===i.sourceName)if(t.stream)i._processStreamMessage(t);else if(t.callback){var r=t.callbackId,s=i.callbackCapabilities[r];if(!s)throw new Error("Cannot resolve callback ".concat(r));if(delete i.callbackCapabilities[r],t.callback===n.DATA)s.resolve(t.data);else{if(t.callback!==n.ERROR)throw new Error("Unexpected callback case");s.reject(o(t.reason))}}else{var l=i.actionHandler[t.action];if(!l)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var c=i.sourceName,u=t.sourceName;new Promise((function(e){e(l(t.data))})).then((function(e){a.postMessage({sourceName:c,targetName:u,callback:n.DATA,callbackId:t.callbackId,data:e})}),(function(e){a.postMessage({sourceName:c,targetName:u,callback:n.ERROR,callbackId:t.callbackId,reason:o(e)})}))}else t.streamId?i._createStreamSink(t):l(t.data)}},a.addEventListener("message",this._onComObjOnMessage)}return _createClass(e,[{key:"on",value:function(e,t){var r=this.actionHandler;if(r[e])throw new Error('There is already an actionName called "'.concat(e,'"'));r[e]=t}},{key:"send",value:function(e,t,r){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}},{key:"sendWithPromise",value:function(e,t,r){var n=this.callbackId++,i=(0,a.createPromiseCapability)();this.callbackCapabilities[n]=i;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:n,data:t},r)}catch(o){i.reject(o)}return i.promise}},{key:"sendWithStream",value:function(e,t,r,n){var s=this,l=this.streamId++,c=this.sourceName,u=this.targetName,h=this.comObj;return new ReadableStream({start:function(r){var i=(0,a.createPromiseCapability)();return s.streamControllers[l]={controller:r,startCall:i,pullCall:null,cancelCall:null,isClosed:!1},h.postMessage({sourceName:c,targetName:u,action:e,streamId:l,data:t,desiredSize:r.desiredSize},n),i.promise},pull:function(e){var t=(0,a.createPromiseCapability)();return s.streamControllers[l].pullCall=t,h.postMessage({sourceName:c,targetName:u,stream:i.PULL,streamId:l,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,a.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,a.createPromiseCapability)();return s.streamControllers[l].cancelCall=t,s.streamControllers[l].isClosed=!0,h.postMessage({sourceName:c,targetName:u,stream:i.CANCEL,streamId:l,reason:o(e)}),t.promise}},r)}},{key:"_createStreamSink",value:function(e){var t=e.streamId,r=this.sourceName,n=e.sourceName,s=this.comObj,l=this,c=this.actionHandler[e.action],u={enqueue:function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,l=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var c=this.desiredSize;this.desiredSize-=o,c>0&&this.desiredSize<=0&&(this.sinkCapability=(0,a.createPromiseCapability)(),this.ready=this.sinkCapability.promise),s.postMessage({sourceName:r,targetName:n,stream:i.ENQUEUE,streamId:t,chunk:e},l)}},close:function(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:r,targetName:n,stream:i.CLOSE,streamId:t}),delete l.streamSinks[t])},error:function(e){(0,a.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:r,targetName:n,stream:i.ERROR,streamId:t,reason:o(e)}))},sinkCapability:(0,a.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};u.sinkCapability.resolve(),u.ready=u.sinkCapability.promise,this.streamSinks[t]=u,new Promise((function(t){t(c(e.data,u))})).then((function(){s.postMessage({sourceName:r,targetName:n,stream:i.START_COMPLETE,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:r,targetName:n,stream:i.START_COMPLETE,streamId:t,reason:o(e)})}))}},{key:"_processStreamMessage",value:function(e){var t=e.streamId,r=this.sourceName,n=e.sourceName,s=this.comObj,l=this.streamControllers[t],c=this.streamSinks[t];switch(e.stream){case i.START_COMPLETE:e.success?l.startCall.resolve():l.startCall.reject(o(e.reason));break;case i.PULL_COMPLETE:e.success?l.pullCall.resolve():l.pullCall.reject(o(e.reason));break;case i.PULL:if(!c){s.postMessage({sourceName:r,targetName:n,stream:i.PULL_COMPLETE,streamId:t,success:!0});break}c.desiredSize<=0&&e.desiredSize>0&&c.sinkCapability.resolve(),c.desiredSize=e.desiredSize,new Promise((function(e){e(c.onPull&&c.onPull())})).then((function(){s.postMessage({sourceName:r,targetName:n,stream:i.PULL_COMPLETE,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:r,targetName:n,stream:i.PULL_COMPLETE,streamId:t,reason:o(e)})}));break;case i.ENQUEUE:if((0,a.assert)(l,"enqueue should have stream controller"),l.isClosed)break;l.controller.enqueue(e.chunk);break;case i.CLOSE:if((0,a.assert)(l,"close should have stream controller"),l.isClosed)break;l.isClosed=!0,l.controller.close(),this._deleteStreamController(l,t);break;case i.ERROR:(0,a.assert)(l,"error should have stream controller"),l.controller.error(o(e.reason)),this._deleteStreamController(l,t);break;case i.CANCEL_COMPLETE:e.success?l.cancelCall.resolve():l.cancelCall.reject(o(e.reason)),this._deleteStreamController(l,t);break;case i.CANCEL:if(!c)break;new Promise((function(t){t(c.onCancel&&c.onCancel(o(e.reason)))})).then((function(){s.postMessage({sourceName:r,targetName:n,stream:i.CANCEL_COMPLETE,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:r,targetName:n,stream:i.CANCEL_COMPLETE,streamId:t,reason:o(e)})})),c.sinkCapability.reject(o(e.reason)),c.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,r){return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([t.startCall&&t.startCall.promise,t.pullCall&&t.pullCall.promise,t.cancelCall&&t.cancelCall.promise]);case 2:delete this.streamControllers[r];case 3:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),e}();t.MessageHandler=s},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var a=r(1),n=new WeakMap,i=new WeakMap,o=function(){function e(t){var r=t.parsedData,a=t.rawData;_classCallCheck(this,e),_classPrivateFieldInitSpec(this,n,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,i,{writable:!0,value:void 0}),_classPrivateFieldSet(this,n,r),_classPrivateFieldSet(this,i,a)}return _createClass(e,[{key:"getRaw",value:function(){return _classPrivateFieldGet(this,i)}},{key:"get",value:function(e){var t;return null!==(t=_classPrivateFieldGet(this,n).get(e))&&void 0!==t?t:null}},{key:"getAll",value:function(){return(0,a.objectFromMap)(_classPrivateFieldGet(this,n))}},{key:"has",value:function(e){return _classPrivateFieldGet(this,n).has(e)}}]),e}();t.Metadata=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var a=r(1),n=Symbol("INTERNAL"),i=new WeakMap,o=function(){function e(t,r){_classCallCheck(this,e),_classPrivateFieldInitSpec(this,i,{writable:!0,value:!0}),this.name=t,this.intent=r}return _createClass(e,[{key:"visible",get:function(){return _classPrivateFieldGet(this,i)}},{key:"_setVisible",value:function(e,t){e!==n&&(0,a.unreachable)("Internal method `_setVisible` called."),_classPrivateFieldSet(this,i,t)}}]),e}(),s=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,h=new WeakSet,d=function(){function e(t){if(_classCallCheck(this,e),_classPrivateMethodInitSpec(this,h),_classPrivateFieldInitSpec(this,s,{writable:!0,value:!0}),_classPrivateFieldInitSpec(this,l,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:null}),this.name=null,this.creator=null,null!==t){this.name=t.name,this.creator=t.creator,_classPrivateFieldSet(this,u,t.order);var r,a=_createForOfIteratorHelper(t.groups);try{for(a.s();!(r=a.n()).done;){var i=r.value;_classPrivateFieldGet(this,l).set(i.id,new o(i.name,i.intent))}}catch(C){a.e(C)}finally{a.f()}if("OFF"===t.baseState){var d,f=_createForOfIteratorHelper(_classPrivateFieldGet(this,l).values());try{for(f.s();!(d=f.n()).done;){var p=d.value;p._setVisible(n,!1)}}catch(C){f.e(C)}finally{f.f()}}var v,g=_createForOfIteratorHelper(t.on);try{for(g.s();!(v=g.n()).done;){var m=v.value;_classPrivateFieldGet(this,l).get(m)._setVisible(n,!0)}}catch(C){g.e(C)}finally{g.f()}var y,b=_createForOfIteratorHelper(t.off);try{for(b.s();!(y=b.n()).done;){var k=y.value;_classPrivateFieldGet(this,l).get(k)._setVisible(n,!1)}}catch(C){b.e(C)}finally{b.f()}_classPrivateFieldSet(this,c,new Map);var w,_=_createForOfIteratorHelper(_classPrivateFieldGet(this,l));try{for(_.s();!(w=_.n()).done;){var S=_slicedToArray(w.value,2),x=S[0],A=S[1];_classPrivateFieldGet(this,c).set(x,A.visible)}}catch(C){_.e(C)}finally{_.f()}}}return _createClass(e,[{key:"isVisible",value:function(e){if(0===_classPrivateFieldGet(this,l).size)return!0;if(!e)return(0,a.warn)("Optional content group not defined."),!0;if("OCG"===e.type)return _classPrivateFieldGet(this,l).has(e.id)?_classPrivateFieldGet(this,l).get(e.id).visible:((0,a.warn)("Optional content group not found: ".concat(e.id)),!0);if("OCMD"===e.type){if(e.expression)return _classPrivateMethodGet(this,h,f).call(this,e.expression);if(!e.policy||"AnyOn"===e.policy){var t,r=_createForOfIteratorHelper(e.ids);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(!_classPrivateFieldGet(this,l).has(n))return(0,a.warn)("Optional content group not found: ".concat(n)),!0;if(_classPrivateFieldGet(this,l).get(n).visible)return!0}}catch(m){r.e(m)}finally{r.f()}return!1}if("AllOn"===e.policy){var i,o=_createForOfIteratorHelper(e.ids);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(!_classPrivateFieldGet(this,l).has(s))return(0,a.warn)("Optional content group not found: ".concat(s)),!0;if(!_classPrivateFieldGet(this,l).get(s).visible)return!1}}catch(m){o.e(m)}finally{o.f()}return!0}if("AnyOff"===e.policy){var c,u=_createForOfIteratorHelper(e.ids);try{for(u.s();!(c=u.n()).done;){var d=c.value;if(!_classPrivateFieldGet(this,l).has(d))return(0,a.warn)("Optional content group not found: ".concat(d)),!0;if(!_classPrivateFieldGet(this,l).get(d).visible)return!0}}catch(m){u.e(m)}finally{u.f()}return!1}if("AllOff"===e.policy){var p,v=_createForOfIteratorHelper(e.ids);try{for(v.s();!(p=v.n()).done;){var g=p.value;if(!_classPrivateFieldGet(this,l).has(g))return(0,a.warn)("Optional content group not found: ".concat(g)),!0;if(_classPrivateFieldGet(this,l).get(g).visible)return!1}}catch(m){v.e(m)}finally{v.f()}return!0}return(0,a.warn)("Unknown optional content policy ".concat(e.policy,".")),!0}return(0,a.warn)("Unknown group type ".concat(e.type,".")),!0}},{key:"setVisibility",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];_classPrivateFieldGet(this,l).has(e)?(_classPrivateFieldGet(this,l).get(e)._setVisible(n,!!t),_classPrivateFieldSet(this,s,null)):(0,a.warn)("Optional content group not found: ".concat(e))}},{key:"hasInitialVisibility",get:function(){if(null!==_classPrivateFieldGet(this,s))return _classPrivateFieldGet(this,s);var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(this,l));try{for(t.s();!(e=t.n()).done;){var r=_slicedToArray(e.value,2),a=r[0],n=r[1],i=_classPrivateFieldGet(this,c).get(a);if(n.visible!==i)return _classPrivateFieldSet(this,s,!1)}}catch(o){t.e(o)}finally{t.f()}return _classPrivateFieldSet(this,s,!0)}},{key:"getOrder",value:function(){return _classPrivateFieldGet(this,l).size?_classPrivateFieldGet(this,u)?_classPrivateFieldGet(this,u).slice():_toConsumableArray(_classPrivateFieldGet(this,l).keys()):null}},{key:"getGroups",value:function(){return _classPrivateFieldGet(this,l).size>0?(0,a.objectFromMap)(_classPrivateFieldGet(this,l)):null}},{key:"getGroup",value:function(e){return _classPrivateFieldGet(this,l).get(e)||null}}]),e}();function f(e){var t=e.length;if(t<2)return!0;for(var r=e[0],n=1;n<t;n++){var i=e[n],o=void 0;if(Array.isArray(i))o=_classPrivateMethodGet(this,h,f).call(this,i);else{if(!_classPrivateFieldGet(this,l).has(i))return(0,a.warn)("Optional content group not found: ".concat(i)),!0;o=_classPrivateFieldGet(this,l).get(i).visible}switch(r){case"And":if(!o)return!1;break;case"Or":if(o)return!0;break;case"Not":return!o;default:return!0}}return"And"===r}t.OptionalContentConfig=d},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var a=r(1),n=r(8),i=function(){function e(t,r){var n=this;_classCallCheck(this,e),(0,a.assert)(r,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=t.progressiveDone||!1,this._contentDispositionFilename=t.contentDispositionFilename||null;var i=t.initialData;if((null===i||void 0===i?void 0:i.length)>0){var o=new Uint8Array(i).buffer;this._queuedChunks.push(o)}this._pdfDataRangeTransport=r,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._contentLength=t.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((function(e,t){n._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener((function(e,t){n._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((function(e){n._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((function(){n._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}return _createClass(e,[{key:"_onReceiveData",value:function(e){var t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{var r=this._rangeReaders.some((function(r){return r._begin===e.begin&&(r._enqueue(t),!0)}));(0,a.assert)(r,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_progressiveDataLength",get:function(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}},{key:"_onProgress",value:function(e){if(void 0===e.total){var t=this._rangeReaders[0];null!==t&&void 0!==t&&t.onProgress&&t.onProgress({loaded:e.loaded})}else{var r=this._fullRequestReader;null!==r&&void 0!==r&&r.onProgress&&r.onProgress({loaded:e.loaded,total:e.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}},{key:"getFullReader",value:function(){(0,a.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var e=this._queuedChunks;return this._queuedChunks=null,new o(this,e,this._progressiveDone,this._contentDispositionFilename)}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=new s(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t,r=_createForOfIteratorHelper(this._rangeReaders.slice(0));try{for(r.s();!(t=r.n()).done;){var a=t.value;a.cancel(e)}}catch(n){r.e(n)}finally{r.f()}this._pdfDataRangeTransport.abort()}}]),e}();t.PDFDataTransportStream=i;var o=function(){function e(t,r){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this._stream=t,this._done=a||!1,this._filename=(0,n.isPdfFile)(i)?i:null,this._queuedChunks=r||[],this._loaded=0;var o,s=_createForOfIteratorHelper(this._queuedChunks);try{for(s.s();!(o=s.n()).done;){var l=o.value;this._loaded+=l.byteLength}}catch(c){s.e(c)}finally{s.f()}this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}return _createClass(e,[{key:"_enqueue",value:function(e){if(!this._done){if(this._requests.length>0){var t=this._requests.shift();t.resolve({value:e,done:!1})}else this._queuedChunks.push(e);this._loaded+=e.byteLength}}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(this._queuedChunks.length>0)){e.next=3;break}return t=this._queuedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 3:if(!this._done){e.next=5;break}return e.abrupt("return",{value:void 0,done:!0});case 5:return r=(0,a.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0;var t,r=_createForOfIteratorHelper(this._requests);try{for(r.s();!(t=r.n()).done;){var a=t.value;a.resolve({value:void 0,done:!0})}}catch(n){r.e(n)}finally{r.f()}this._requests.length=0}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}}]),e}(),s=function(){function e(t,r,a){_classCallCheck(this,e),this._stream=t,this._begin=r,this._end=a,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return _createClass(e,[{key:"_enqueue",value:function(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{var t=this._requests.shift();t.resolve({value:e,done:!1});var r,a=_createForOfIteratorHelper(this._requests);try{for(a.s();!(r=a.n()).done;){var n=r.value;n.resolve({value:void 0,done:!0})}}catch(i){a.e(i)}finally{a.f()}this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return r=(0,a.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0;var t,r=_createForOfIteratorHelper(this._requests);try{for(r.s();!(t=r.n()).done;){var a=t.value;a.resolve({value:void 0,done:!0})}}catch(n){r.e(n)}finally{r.f()}this._requests.length=0,this._stream._removeRangeReader(this)}}]),e}()},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0;var r=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"textContent",value:function(t){var r=[],a={items:r,styles:Object.create(null)};function n(t){var a;if(t){var i=null,o=t.name;if("#text"===o)i=t.value;else{if(!e.shouldBuildText(o))return;null!==t&&void 0!==t&&null!==(a=t.attributes)&&void 0!==a&&a.textContent?i=t.attributes.textContent:t.value&&(i=t.value)}if(null!==i&&r.push({str:i}),t.children){var s,l=_createForOfIteratorHelper(t.children);try{for(l.s();!(s=l.n()).done;){var c=s.value;n(c)}}catch(u){l.e(u)}finally{l.f()}}}}return n(t),a}},{key:"shouldBuildText",value:function(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}]),e}();t.XfaText=r},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0;var a=r(9),n=function(e){return new Promise((function(t,r){var a=__webpack_require__(0);a.readFile(e,(function(e,a){!e&&a?t(new Uint8Array(a)):r(new Error(e))}))}))},i=function(e){_inherits(r,e);var t=_createSuper(r);function r(){return _classCallCheck(this,r),t.apply(this,arguments)}return _createClass(r,[{key:"_createCanvas",value:function(e,t){var r=__webpack_require__(1);return r.createCanvas(e,t)}}]),r}(a.BaseCanvasFactory);t.NodeCanvasFactory=i;var o=function(e){_inherits(r,e);var t=_createSuper(r);function r(){return _classCallCheck(this,r),t.apply(this,arguments)}return _createClass(r,[{key:"_fetchData",value:function(e,t){return n(e).then((function(e){return{cMapData:e,compressionType:t}}))}}]),r}(a.BaseCMapReaderFactory);t.NodeCMapReaderFactory=o;var s=function(e){_inherits(r,e);var t=_createSuper(r);function r(){return _classCallCheck(this,r),t.apply(this,arguments)}return _createClass(r,[{key:"_fetchData",value:function(e){return n(e)}}]),r}(a.BaseStandardFontDataFactory);t.NodeStandardFontDataFactory=s},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayer=void 0;var a=r(7),n=r(1),i=r(23),o=r(24),s=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,h=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,v=new WeakSet,g=new WeakSet,m=new WeakSet,y=new WeakSet,b=function(){function e(t){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,y),_classPrivateMethodInitSpec(this,m),_classPrivateMethodInitSpec(this,g),_classPrivateMethodInitSpec(this,v),_classPrivateFieldInitSpec(this,s,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,l,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:this.pointerup.bind(this)}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:this.pointerdown.bind(this)}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:void 0}),e._initialized||(e._initialized=!0,i.FreeTextEditor.initialize(t.l10n),o.InkEditor.initialize(t.l10n),t.uiManager.registerEditorTypes([i.FreeTextEditor,o.InkEditor])),_classPrivateFieldSet(this,p,t.uiManager),this.annotationStorage=t.annotationStorage,this.pageIndex=t.pageIndex,this.div=t.div,_classPrivateFieldSet(this,s,t.accessibilityManager),_classPrivateFieldGet(this,p).addLayer(this)}return _createClass(e,[{key:"updateToolbar",value:function(e){_classPrivateFieldGet(this,p).updateToolbar(e)}},{key:"updateMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_classPrivateFieldGet(this,p).getMode();_classPrivateMethodGet(this,y,S).call(this),e===n.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),_classPrivateFieldGet(this,p).unselectAll()}},{key:"addInkEditorIfNeeded",value:function(e){if(e||_classPrivateFieldGet(this,p).getMode()===n.AnnotationEditorType.INK){if(!e){var t,r=_createForOfIteratorHelper(_classPrivateFieldGet(this,h).values());try{for(r.s();!(t=r.n()).done;){var a=t.value;if(a.isEmpty())return void a.setInBackground()}}catch(o){r.e(o)}finally{r.f()}}var i=_classPrivateMethodGet(this,m,_).call(this,{offsetX:0,offsetY:0});i.setInBackground()}}},{key:"setEditingState",value:function(e){_classPrivateFieldGet(this,p).setEditingState(e)}},{key:"addCommands",value:function(e){_classPrivateFieldGet(this,p).addCommands(e)}},{key:"enable",value:function(){this.div.style.pointerEvents="auto";var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(this,h).values());try{for(t.s();!(e=t.n()).done;){var r=e.value;r.enableEditing()}}catch(a){t.e(a)}finally{t.f()}}},{key:"disable",value:function(){this.div.style.pointerEvents="none";var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(this,h).values());try{for(t.s();!(e=t.n()).done;){var r=e.value;r.disableEditing()}}catch(a){t.e(a)}finally{t.f()}}},{key:"setActiveEditor",value:function(e){var t=_classPrivateFieldGet(this,p).getActive();t!==e&&_classPrivateFieldGet(this,p).setActiveEditor(e)}},{key:"enableClick",value:function(){this.div.addEventListener("pointerdown",_classPrivateFieldGet(this,u)),this.div.addEventListener("pointerup",_classPrivateFieldGet(this,c))}},{key:"disableClick",value:function(){this.div.removeEventListener("pointerdown",_classPrivateFieldGet(this,u)),this.div.removeEventListener("pointerup",_classPrivateFieldGet(this,c))}},{key:"attach",value:function(e){_classPrivateFieldGet(this,h).set(e.id,e)}},{key:"detach",value:function(e){var t;_classPrivateFieldGet(this,h)["delete"](e.id),null===(t=_classPrivateFieldGet(this,s))||void 0===t||t.removePointerInTextLayer(e.contentDiv)}},{key:"remove",value:function(e){var t=this;_classPrivateFieldGet(this,p).removeEditor(e),this.detach(e),this.annotationStorage.remove(e.id),e.div.style.display="none",setTimeout((function(){e.div.style.display="",e.div.remove(),e.isAttachedToDOM=!1,document.activeElement===document.body&&_classPrivateFieldGet(t,p).focusMainContainer()}),0),_classPrivateFieldGet(this,f)||this.addInkEditorIfNeeded(!1)}},{key:"add",value:function(e){if(_classPrivateMethodGet(this,v,k).call(this,e),_classPrivateFieldGet(this,p).addEditor(e),this.attach(e),!e.isAttachedToDOM){var t=e.render();this.div.append(t),e.isAttachedToDOM=!0}this.moveEditorInDOM(e),e.onceAdded(),this.addToAnnotationStorage(e)}},{key:"moveEditorInDOM",value:function(e){var t;null===(t=_classPrivateFieldGet(this,s))||void 0===t||t.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}},{key:"addToAnnotationStorage",value:function(e){e.isEmpty()||this.annotationStorage.has(e.id)||this.annotationStorage.setValue(e.id,e)}},{key:"addOrRebuild",value:function(e){e.needsToBeRebuilt()?e.rebuild():this.add(e)}},{key:"addANewEditor",value:function(e){var t=this,r=function(){t.addOrRebuild(e)},a=function(){e.remove()};this.addCommands({cmd:r,undo:a,mustExec:!0})}},{key:"addUndoableEditor",value:function(e){var t=this,r=function(){t.addOrRebuild(e)},a=function(){e.remove()};this.addCommands({cmd:r,undo:a,mustExec:!1})}},{key:"getNextId",value:function(){return _classPrivateFieldGet(this,p).getId()}},{key:"deserialize",value:function(e){switch(e.annotationType){case n.AnnotationEditorType.FREETEXT:return i.FreeTextEditor.deserialize(e,this);case n.AnnotationEditorType.INK:return o.InkEditor.deserialize(e,this)}return null}},{key:"setSelected",value:function(e){_classPrivateFieldGet(this,p).setSelected(e)}},{key:"toggleSelected",value:function(e){_classPrivateFieldGet(this,p).toggleSelected(e)}},{key:"isSelected",value:function(e){return _classPrivateFieldGet(this,p).isSelected(e)}},{key:"unselect",value:function(e){_classPrivateFieldGet(this,p).unselect(e)}},{key:"pointerup",value:function(e){var t=a.KeyboardManager.platform.isMac;0!==e.button||e.ctrlKey&&t||e.target===this.div&&_classPrivateFieldGet(this,d)&&(_classPrivateFieldSet(this,d,!1),_classPrivateFieldGet(this,l)?_classPrivateMethodGet(this,m,_).call(this,e):_classPrivateFieldSet(this,l,!0))}},{key:"pointerdown",value:function(e){var t=a.KeyboardManager.platform.isMac;if(!(0!==e.button||e.ctrlKey&&t)&&e.target===this.div){_classPrivateFieldSet(this,d,!0);var r=_classPrivateFieldGet(this,p).getActive();_classPrivateFieldSet(this,l,!r||r.isEmpty())}}},{key:"drop",value:function(e){var t=e.dataTransfer.getData("text/plain"),r=_classPrivateFieldGet(this,p).getEditor(t);if(r){e.preventDefault(),e.dataTransfer.dropEffect="move",_classPrivateMethodGet(this,v,k).call(this,r);var a=this.div.getBoundingClientRect(),n=e.clientX-a.x,i=e.clientY-a.y;r.translate(n-r.startX,i-r.startY),this.moveEditorInDOM(r),r.div.focus()}}},{key:"dragover",value:function(e){e.preventDefault()}},{key:"destroy",value:function(){var e;(null===(e=_classPrivateFieldGet(this,p).getActive())||void 0===e?void 0:e.parent)===this&&_classPrivateFieldGet(this,p).setActiveEditor(null);var t,r=_createForOfIteratorHelper(_classPrivateFieldGet(this,h).values());try{for(r.s();!(t=r.n()).done;){var a,n=t.value;null===(a=_classPrivateFieldGet(this,s))||void 0===a||a.removePointerInTextLayer(n.contentDiv),n.isAttachedToDOM=!1,n.div.remove(),n.parent=null}}catch(i){r.e(i)}finally{r.f()}this.div=null,_classPrivateFieldGet(this,h).clear(),_classPrivateFieldGet(this,p).removeLayer(this)}},{key:"render",value:function(e){this.viewport=e.viewport,(0,a.bindEvents)(this,this.div,["dragover","drop"]),this.setDimensions();var t,r=_createForOfIteratorHelper(_classPrivateFieldGet(this,p).getEditors(this.pageIndex));try{for(r.s();!(t=r.n()).done;){var n=t.value;this.add(n)}}catch(i){r.e(i)}finally{r.f()}this.updateMode()}},{key:"update",value:function(e){this.viewport=e.viewport,this.setDimensions(),this.updateMode()}},{key:"scaleFactor",get:function(){return this.viewport.scale}},{key:"pageDimensions",get:function(){var e=_slicedToArray(this.viewport.viewBox,4),t=e[0],r=e[1],a=e[2],n=e[3],i=a-t,o=n-r;return[i,o]}},{key:"viewportBaseDimensions",get:function(){var e=this.viewport,t=e.width,r=e.height,a=e.rotation;return a%180===0?[t,r]:[r,t]}},{key:"setDimensions",value:function(){var e=this.viewport,t=e.width,r=e.height,a=e.rotation,n=a%180!==0,i=Math.floor(t)+"px",o=Math.floor(r)+"px";this.div.style.width=n?o:i,this.div.style.height=n?i:o,this.div.setAttribute("data-main-rotation",a)}}]),e}();function k(e){var t;e.parent!==this&&(this.attach(e),e.pageIndex=this.pageIndex,null===(t=e.parent)||void 0===t||t.detach(e),e.parent=this,e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}function w(e){switch(_classPrivateFieldGet(this,p).getMode()){case n.AnnotationEditorType.FREETEXT:return new i.FreeTextEditor(e);case n.AnnotationEditorType.INK:return new o.InkEditor(e)}return null}function _(e){var t=this.getNextId(),r=_classPrivateMethodGet(this,g,w).call(this,{parent:this,id:t,x:e.offsetX,y:e.offsetY});return r&&this.add(r),r}function S(){_classPrivateFieldSet(this,f,!0);var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(this,h).values());try{for(t.s();!(e=t.n()).done;){var r=e.value;r.isEmpty()&&r.remove()}}catch(a){t.e(a)}finally{t.f()}_classPrivateFieldSet(this,f,!1)}_defineProperty(b,"_initialized",!1),t.AnnotationEditorLayer=b},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.FreeTextEditor=void 0;var a=r(1),n=r(7),i=r(6),o=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,h=new WeakMap,d=new WeakMap,f=new WeakSet,p=new WeakSet,v=new WeakSet,g=new WeakSet,m=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a;return _classCallCheck(this,r),a=t.call(this,_objectSpread(_objectSpread({},e),{},{name:"freeTextEditor"})),_classPrivateMethodInitSpec(_assertThisInitialized(a),g),_classPrivateMethodInitSpec(_assertThisInitialized(a),v),_classPrivateMethodInitSpec(_assertThisInitialized(a),p),_classPrivateMethodInitSpec(_assertThisInitialized(a),f),_classPrivateFieldInitSpec(_assertThisInitialized(a),o,{writable:!0,value:a.editorDivBlur.bind(_assertThisInitialized(a))}),_classPrivateFieldInitSpec(_assertThisInitialized(a),s,{writable:!0,value:a.editorDivFocus.bind(_assertThisInitialized(a))}),_classPrivateFieldInitSpec(_assertThisInitialized(a),l,{writable:!0,value:a.editorDivKeydown.bind(_assertThisInitialized(a))}),_classPrivateFieldInitSpec(_assertThisInitialized(a),c,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(_assertThisInitialized(a),u,{writable:!0,value:""}),_classPrivateFieldInitSpec(_assertThisInitialized(a),h,{writable:!0,value:!1}),_classPrivateFieldInitSpec(_assertThisInitialized(a),d,{writable:!0,value:void 0}),_classPrivateFieldSet(_assertThisInitialized(a),c,e.color||r._defaultColor||i.AnnotationEditor._defaultLineColor),_classPrivateFieldSet(_assertThisInitialized(a),d,e.fontSize||r._defaultFontSize),a}return _createClass(r,[{key:"updateParams",value:function(e,t){switch(e){case a.AnnotationEditorParamsType.FREETEXT_SIZE:_classPrivateMethodGet(this,f,y).call(this,t);break;case a.AnnotationEditorParamsType.FREETEXT_COLOR:_classPrivateMethodGet(this,p,b).call(this,t);break}}},{key:"propertiesToUpdate",get:function(){return[[a.AnnotationEditorParamsType.FREETEXT_SIZE,_classPrivateFieldGet(this,d)],[a.AnnotationEditorParamsType.FREETEXT_COLOR,_classPrivateFieldGet(this,c)]]}},{key:"getInitialTranslation",value:function(){return[-r._internalPadding*this.parent.scaleFactor,-(r._internalPadding+_classPrivateFieldGet(this,d))*this.parent.scaleFactor]}},{key:"rebuild",value:function(){_get(_getPrototypeOf(r.prototype),"rebuild",this).call(this),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this))}},{key:"enableEditMode",value:function(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(a.AnnotationEditorType.FREETEXT),_get(_getPrototypeOf(r.prototype),"enableEditMode",this).call(this),this.enableEditing(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this.div.draggable=!1,this.editorDiv.addEventListener("keydown",_classPrivateFieldGet(this,l)),this.editorDiv.addEventListener("focus",_classPrivateFieldGet(this,s)),this.editorDiv.addEventListener("blur",_classPrivateFieldGet(this,o)))}},{key:"disableEditMode",value:function(){this.isInEditMode()&&(this.parent.setEditingState(!0),_get(_getPrototypeOf(r.prototype),"disableEditMode",this).call(this),this.disableEditing(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.draggable=!0,this.editorDiv.removeEventListener("keydown",_classPrivateFieldGet(this,l)),this.editorDiv.removeEventListener("focus",_classPrivateFieldGet(this,s)),this.editorDiv.removeEventListener("blur",_classPrivateFieldGet(this,o)),this.div.focus(),this.isEditing=!1)}},{key:"focusin",value:function(e){_get(_getPrototypeOf(r.prototype),"focusin",this).call(this,e),e.target!==this.editorDiv&&this.editorDiv.focus()}},{key:"onceAdded",value:function(){this.width||(this.enableEditMode(),this.editorDiv.focus())}},{key:"isEmpty",value:function(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}},{key:"remove",value:function(){this.isEditing=!1,this.parent.setEditingState(!0),_get(_getPrototypeOf(r.prototype),"remove",this).call(this)}},{key:"commit",value:function(){_get(_getPrototypeOf(r.prototype),"commit",this).call(this),_classPrivateFieldGet(this,h)||(_classPrivateFieldSet(this,h,!0),this.parent.addUndoableEditor(this)),this.disableEditMode(),_classPrivateFieldSet(this,u,_classPrivateMethodGet(this,v,k).call(this).trimEnd()),_classPrivateMethodGet(this,g,w).call(this)}},{key:"shouldGetKeyboardEvents",value:function(){return this.isInEditMode()}},{key:"dblclick",value:function(e){this.enableEditMode(),this.editorDiv.focus()}},{key:"keydown",value:function(e){e.target===this.div&&"Enter"===e.key&&(this.enableEditMode(),this.editorDiv.focus())}},{key:"editorDivKeydown",value:function(e){r._keyboardManager.exec(this,e)}},{key:"editorDivFocus",value:function(e){this.isEditing=!0}},{key:"editorDivBlur",value:function(e){this.isEditing=!1}},{key:"disableEditing",value:function(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}},{key:"enableEditing",value:function(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}},{key:"render",value:function(){var e,t,a=this;if(this.div)return this.div;this.width&&(e=this.x,t=this.y),_get(_getPrototypeOf(r.prototype),"render",this).call(this),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id","".concat(this.id,"-editor")),this.enableEditing(),r._l10nPromise.get("editor_free_text_aria_label").then((function(e){var t;return null===(t=a.editorDiv)||void 0===t?void 0:t.setAttribute("aria-label",e)})),r._l10nPromise.get("free_text_default_content").then((function(e){var t;return null===(t=a.editorDiv)||void 0===t?void 0:t.setAttribute("default-content",e)})),this.editorDiv.contentEditable=!0;var i=this.editorDiv.style;if(i.fontSize="calc(".concat(_classPrivateFieldGet(this,d),"px * var(--scale-factor))"),i.color=_classPrivateFieldGet(this,c),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,n.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){var o=_slicedToArray(this.parent.viewportBaseDimensions,2),s=o[0],l=o[1];this.setAt(e*s,t*l,this.width*s,this.height*l);var h,f=_createForOfIteratorHelper(_classPrivateFieldGet(this,u).split("\n"));try{for(f.s();!(h=f.n()).done;){var p=h.value,v=document.createElement("div");v.append(p?document.createTextNode(p):document.createElement("br")),this.editorDiv.append(v)}}catch(g){f.e(g)}finally{f.f()}this.div.draggable=!0,this.editorDiv.contentEditable=!1}else this.div.draggable=!1,this.editorDiv.contentEditable=!0;return this.div}},{key:"contentDiv",get:function(){return this.editorDiv}},{key:"serialize",value:function(){if(this.isEmpty())return null;var e=r._internalPadding*this.parent.scaleFactor,t=this.getRect(e,e),n=i.AnnotationEditor._colorManager.convert(getComputedStyle(this.editorDiv).color);return{annotationType:a.AnnotationEditorType.FREETEXT,color:n,fontSize:_classPrivateFieldGet(this,d),value:_classPrivateFieldGet(this,u),pageIndex:this.parent.pageIndex,rect:t,rotation:this.rotation}}}],[{key:"initialize",value:function(e){this._l10nPromise=new Map(["free_text_default_content","editor_free_text_aria_label"].map((function(t){return[t,e.get(t)]})));var t=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(t.getPropertyValue("--freetext-padding"))}},{key:"updateDefaultParams",value:function(e,t){switch(e){case a.AnnotationEditorParamsType.FREETEXT_SIZE:r._defaultFontSize=t;break;case a.AnnotationEditorParamsType.FREETEXT_COLOR:r._defaultColor=t;break}}},{key:"defaultPropertiesToUpdate",get:function(){return[[a.AnnotationEditorParamsType.FREETEXT_SIZE,r._defaultFontSize],[a.AnnotationEditorParamsType.FREETEXT_COLOR,r._defaultColor||i.AnnotationEditor._defaultLineColor]]}},{key:"deserialize",value:function(e,t){var n,i=_get(_getPrototypeOf(r),"deserialize",this).call(this,e,t);return _classPrivateFieldSet(i,d,e.fontSize),_classPrivateFieldSet(i,c,(n=a.Util).makeHexColor.apply(n,_toConsumableArray(e.color))),_classPrivateFieldSet(i,u,e.value),i}}]),r}(i.AnnotationEditor);function y(e){var t=this,r=function(e){t.editorDiv.style.fontSize="calc(".concat(e,"px * var(--scale-factor))"),t.translate(0,-(e-_classPrivateFieldGet(t,d))*t.parent.scaleFactor),_classPrivateFieldSet(t,d,e),_classPrivateMethodGet(t,g,w).call(t)},n=_classPrivateFieldGet(this,d);this.parent.addCommands({cmd:function(){r(e)},undo:function(){r(n)},mustExec:!0,type:a.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}function b(e){var t=this,r=_classPrivateFieldGet(this,c);this.parent.addCommands({cmd:function(){_classPrivateFieldSet(t,c,e),t.editorDiv.style.color=e},undo:function(){_classPrivateFieldSet(t,c,r),t.editorDiv.style.color=r},mustExec:!0,type:a.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function k(){var e=this.editorDiv.getElementsByTagName("div");if(0===e.length)return this.editorDiv.innerText;for(var t=[],r=0,a=e.length;r<a;r++){var n=e[r],i=n.firstChild;"#text"===(null===i||void 0===i?void 0:i.nodeName)?t.push(i.data):t.push("")}return t.join("\n")}function w(){var e=_slicedToArray(this.parent.viewportBaseDimensions,2),t=e[0],r=e[1],a=this.div.getBoundingClientRect();this.width=a.width/t,this.height=a.height/r}_defineProperty(m,"_freeTextDefaultContent",""),_defineProperty(m,"_l10nPromise",void 0),_defineProperty(m,"_internalPadding",0),_defineProperty(m,"_defaultColor",null),_defineProperty(m,"_defaultFontSize",10),_defineProperty(m,"_keyboardManager",new n.KeyboardManager([[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],m.prototype.commitOrRemove]])),_defineProperty(m,"_type","freetext"),t.FreeTextEditor=m},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.InkEditor=void 0,Object.defineProperty(t,"fitCurve",{enumerable:!0,get:function(){return i.fitCurve}});var a=r(1),n=r(6),i=r(25),o=r(7),s=16,l=new WeakMap,c=new WeakMap,u=new WeakMap,h=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,v=new WeakMap,g=new WeakMap,m=new WeakMap,y=new WeakMap,b=new WeakMap,k=new WeakMap,w=new WeakMap,_=new WeakSet,S=new WeakSet,x=new WeakSet,A=new WeakSet,C=new WeakSet,F=new WeakSet,P=new WeakSet,T=new WeakSet,O=new WeakSet,I=new WeakSet,E=new WeakSet,M=new WeakSet,R=new WeakSet,D=new WeakSet,N=new WeakSet,L=new WeakSet,B=new WeakSet,j=new WeakSet,U=new WeakSet,q=new WeakSet,G=new WeakSet,H=new WeakSet,X=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a;return _classCallCheck(this,r),a=t.call(this,_objectSpread(_objectSpread({},e),{},{name:"inkEditor"})),_classPrivateMethodInitSpec(_assertThisInitialized(a),H),_classPrivateMethodInitSpec(_assertThisInitialized(a),G),_classPrivateMethodInitSpec(_assertThisInitialized(a),q),_classPrivateMethodInitSpec(_assertThisInitialized(a),U),_classPrivateMethodInitSpec(_assertThisInitialized(a),j),_classPrivateMethodInitSpec(_assertThisInitialized(a),B),_classPrivateMethodInitSpec(_assertThisInitialized(a),L),_classPrivateMethodInitSpec(_assertThisInitialized(a),N),_classPrivateMethodInitSpec(_assertThisInitialized(a),D),_classPrivateMethodInitSpec(_assertThisInitialized(a),R),_classPrivateMethodInitSpec(_assertThisInitialized(a),M),_classPrivateMethodInitSpec(_assertThisInitialized(a),E),_classPrivateMethodInitSpec(_assertThisInitialized(a),I),_classPrivateMethodInitSpec(_assertThisInitialized(a),O),_classPrivateMethodInitSpec(_assertThisInitialized(a),T),_classPrivateMethodInitSpec(_assertThisInitialized(a),P),_classPrivateMethodInitSpec(_assertThisInitialized(a),F),_classPrivateMethodInitSpec(_assertThisInitialized(a),C),_classPrivateMethodInitSpec(_assertThisInitialized(a),A),_classPrivateMethodInitSpec(_assertThisInitialized(a),x),_classPrivateMethodInitSpec(_assertThisInitialized(a),S),_classPrivateMethodInitSpec(_assertThisInitialized(a),_),_classPrivateFieldInitSpec(_assertThisInitialized(a),l,{writable:!0,value:0}),_classPrivateFieldInitSpec(_assertThisInitialized(a),c,{writable:!0,value:0}),_classPrivateFieldInitSpec(_assertThisInitialized(a),u,{writable:!0,value:0}),_classPrivateFieldInitSpec(_assertThisInitialized(a),h,{writable:!0,value:a.canvasPointermove.bind(_assertThisInitialized(a))}),_classPrivateFieldInitSpec(_assertThisInitialized(a),d,{writable:!0,value:a.canvasPointerleave.bind(_assertThisInitialized(a))}),_classPrivateFieldInitSpec(_assertThisInitialized(a),f,{writable:!0,value:a.canvasPointerup.bind(_assertThisInitialized(a))}),_classPrivateFieldInitSpec(_assertThisInitialized(a),p,{writable:!0,value:a.canvasPointerdown.bind(_assertThisInitialized(a))}),_classPrivateFieldInitSpec(_assertThisInitialized(a),v,{writable:!0,value:!1}),_classPrivateFieldInitSpec(_assertThisInitialized(a),g,{writable:!0,value:!1}),_classPrivateFieldInitSpec(_assertThisInitialized(a),m,{writable:!0,value:null}),_classPrivateFieldInitSpec(_assertThisInitialized(a),y,{writable:!0,value:null}),_classPrivateFieldInitSpec(_assertThisInitialized(a),b,{writable:!0,value:0}),_classPrivateFieldInitSpec(_assertThisInitialized(a),k,{writable:!0,value:0}),_classPrivateFieldInitSpec(_assertThisInitialized(a),w,{writable:!0,value:null}),a.color=e.color||null,a.thickness=e.thickness||null,a.opacity=e.opacity||null,a.paths=[],a.bezierPath2D=[],a.currentPath=[],a.scaleFactor=1,a.translationX=a.translationY=0,a.x=0,a.y=0,a}return _createClass(r,[{key:"updateParams",value:function(e,t){switch(e){case a.AnnotationEditorParamsType.INK_THICKNESS:_classPrivateMethodGet(this,_,$).call(this,t);break;case a.AnnotationEditorParamsType.INK_COLOR:_classPrivateMethodGet(this,S,z).call(this,t);break;case a.AnnotationEditorParamsType.INK_OPACITY:_classPrivateMethodGet(this,x,W).call(this,t);break}}},{key:"propertiesToUpdate",get:function(){var e;return[[a.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||r._defaultThickness],[a.AnnotationEditorParamsType.INK_COLOR,this.color||r._defaultColor||n.AnnotationEditor._defaultLineColor],[a.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(null!==(e=this.opacity)&&void 0!==e?e:r._defaultOpacity))]]}},{key:"rebuild",value:function(){_get(_getPrototypeOf(r.prototype),"rebuild",this).call(this),null!==this.div&&(this.canvas||(_classPrivateMethodGet(this,E,te).call(this),_classPrivateMethodGet(this,M,re).call(this)),this.isAttachedToDOM||(this.parent.add(this),_classPrivateMethodGet(this,R,ae).call(this)),_classPrivateMethodGet(this,G,de).call(this))}},{key:"remove",value:function(){null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,_classPrivateFieldGet(this,y).disconnect(),_classPrivateFieldSet(this,y,null),_get(_getPrototypeOf(r.prototype),"remove",this).call(this))}},{key:"enableEditMode",value:function(){_classPrivateFieldGet(this,v)||null===this.canvas||(_get(_getPrototypeOf(r.prototype),"enableEditMode",this).call(this),this.div.draggable=!1,this.canvas.addEventListener("pointerdown",_classPrivateFieldGet(this,p)),this.canvas.addEventListener("pointerup",_classPrivateFieldGet(this,f)))}},{key:"disableEditMode",value:function(){this.isInEditMode()&&null!==this.canvas&&(_get(_getPrototypeOf(r.prototype),"disableEditMode",this).call(this),this.div.draggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",_classPrivateFieldGet(this,p)),this.canvas.removeEventListener("pointerup",_classPrivateFieldGet(this,f)))}},{key:"onceAdded",value:function(){this.div.draggable=!this.isEmpty()}},{key:"isEmpty",value:function(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}},{key:"commit",value:function(){_classPrivateFieldGet(this,v)||(_get(_getPrototypeOf(r.prototype),"commit",this).call(this),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),_classPrivateFieldSet(this,v,!0),this.div.classList.add("disabled"),_classPrivateMethodGet(this,G,de).call(this,!0),this.parent.addInkEditorIfNeeded(!0),this.parent.moveEditorInDOM(this),this.div.focus())}},{key:"focusin",value:function(e){_get(_getPrototypeOf(r.prototype),"focusin",this).call(this,e),this.enableEditMode()}},{key:"canvasPointerdown",value:function(e){0===e.button&&this.isInEditMode()&&!_classPrivateFieldGet(this,v)&&(this.setInForeground(),"mouse"!==e.type&&this.div.focus(),e.stopPropagation(),this.canvas.addEventListener("pointerleave",_classPrivateFieldGet(this,d)),this.canvas.addEventListener("pointermove",_classPrivateFieldGet(this,h)),_classPrivateMethodGet(this,F,K).call(this,e.offsetX,e.offsetY))}},{key:"canvasPointermove",value:function(e){e.stopPropagation(),_classPrivateMethodGet(this,P,J).call(this,e.offsetX,e.offsetY)}},{key:"canvasPointerup",value:function(e){0===e.button&&this.isInEditMode()&&0!==this.currentPath.length&&(e.stopPropagation(),_classPrivateMethodGet(this,I,ee).call(this,e),this.setInBackground())}},{key:"canvasPointerleave",value:function(e){_classPrivateMethodGet(this,I,ee).call(this,e),this.setInBackground()}},{key:"render",value:function(){var e,t,a=this;if(this.div)return this.div;this.width&&(e=this.x,t=this.y),_get(_getPrototypeOf(r.prototype),"render",this).call(this),r._l10nPromise.get("editor_ink_aria_label").then((function(e){var t;return null===(t=a.div)||void 0===t?void 0:t.setAttribute("aria-label",e)}));var n=_classPrivateMethodGet(this,A,V).call(this),i=_slicedToArray(n,4),o=i[0],s=i[1],l=i[2],c=i[3];if(this.setAt(o,s,0,0),this.setDims(l,c),_classPrivateMethodGet(this,E,te).call(this),this.width){var u=_slicedToArray(this.parent.viewportBaseDimensions,2),h=u[0],d=u[1];this.setAt(e*h,t*d,this.width*h,this.height*d),_classPrivateFieldSet(this,g,!0),_classPrivateMethodGet(this,R,ae).call(this),this.setDims(this.width*h,this.height*d),_classPrivateMethodGet(this,O,Q).call(this),_classPrivateMethodGet(this,H,fe).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return _classPrivateMethodGet(this,M,re).call(this),this.div}},{key:"setDimensions",value:function(e,t){var r=Math.round(e),a=Math.round(t);if(_classPrivateFieldGet(this,b)!==r||_classPrivateFieldGet(this,k)!==a){_classPrivateFieldSet(this,b,r),_classPrivateFieldSet(this,k,a),this.canvas.style.visibility="hidden",_classPrivateFieldGet(this,l)&&Math.abs(_classPrivateFieldGet(this,l)-e/t)>.01&&(t=Math.ceil(e/_classPrivateFieldGet(this,l)),this.setDims(e,t));var n=_slicedToArray(this.parent.viewportBaseDimensions,2),i=n[0],o=n[1];this.width=e/i,this.height=t/o,_classPrivateFieldGet(this,v)&&_classPrivateMethodGet(this,D,ne).call(this,e,t),_classPrivateMethodGet(this,R,ae).call(this),_classPrivateMethodGet(this,O,Q).call(this),this.canvas.style.visibility="visible"}}},{key:"serialize",value:function(){if(this.isEmpty())return null;var e=this.getRect(0,0),t=this.rotation%180===0?e[3]-e[1]:e[2]-e[0],r=n.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle);return{annotationType:a.AnnotationEditorType.INK,color:r,thickness:this.thickness,opacity:this.opacity,paths:_classPrivateMethodGet(this,L,se).call(this,this.scaleFactor/this.parent.scaleFactor,this.translationX,this.translationY,t),pageIndex:this.parent.pageIndex,rect:e,rotation:this.rotation}}}],[{key:"initialize",value:function(e){this._l10nPromise=new Map(["editor_ink_canvas_aria_label","editor_ink_aria_label"].map((function(t){return[t,e.get(t)]})))}},{key:"updateDefaultParams",value:function(e,t){switch(e){case a.AnnotationEditorParamsType.INK_THICKNESS:r._defaultThickness=t;break;case a.AnnotationEditorParamsType.INK_COLOR:r._defaultColor=t;break;case a.AnnotationEditorParamsType.INK_OPACITY:r._defaultOpacity=t/100;break}}},{key:"defaultPropertiesToUpdate",get:function(){return[[a.AnnotationEditorParamsType.INK_THICKNESS,r._defaultThickness],[a.AnnotationEditorParamsType.INK_COLOR,r._defaultColor||n.AnnotationEditor._defaultLineColor],[a.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*r._defaultOpacity)]]}},{key:"deserialize",value:function(e,t){var n,i=_get(_getPrototypeOf(r),"deserialize",this).call(this,e,t);i.thickness=e.thickness,i.color=(n=a.Util).makeHexColor.apply(n,_toConsumableArray(e.color)),i.opacity=e.opacity;var o=_slicedToArray(t.pageDimensions,2),h=o[0],d=o[1],f=i.width*h,p=i.height*d,g=t.scaleFactor,m=e.thickness/2;_classPrivateFieldSet(i,l,f/p),_classPrivateFieldSet(i,v,!0),_classPrivateFieldSet(i,b,Math.round(f)),_classPrivateFieldSet(i,k,Math.round(p));var y,w=_createForOfIteratorHelper(e.paths);try{for(w.s();!(y=w.n()).done;){var _=y.value.bezier,S=[];i.paths.push(S);for(var x=g*(_[0]-m),A=g*(p-_[1]-m),C=2,F=_.length;C<F;C+=6){var P=g*(_[C]-m),T=g*(p-_[C+1]-m),O=g*(_[C+2]-m),I=g*(p-_[C+3]-m),E=g*(_[C+4]-m),M=g*(p-_[C+5]-m);S.push([[x,A],[P,T],[O,I],[E,M]]),x=E,A=M}var R=_classStaticPrivateMethodGet(this,r,oe).call(this,S);i.bezierPath2D.push(R)}}catch(L){w.e(L)}finally{w.f()}var N=_classPrivateMethodGet(i,U,ue).call(i);return _classPrivateFieldSet(i,u,Math.max(s,N[2]-N[0])),_classPrivateFieldSet(i,c,Math.max(s,N[3]-N[1])),_classPrivateMethodGet(i,D,ne).call(i,f,p),i}}]),r}(n.AnnotationEditor);function $(e){var t=this,r=this.thickness;this.parent.addCommands({cmd:function(){t.thickness=e,_classPrivateMethodGet(t,G,de).call(t)},undo:function(){t.thickness=r,_classPrivateMethodGet(t,G,de).call(t)},mustExec:!0,type:a.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}function z(e){var t=this,r=this.color;this.parent.addCommands({cmd:function(){t.color=e,_classPrivateMethodGet(t,O,Q).call(t)},undo:function(){t.color=r,_classPrivateMethodGet(t,O,Q).call(t)},mustExec:!0,type:a.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function W(e){var t=this;e/=100;var r=this.opacity;this.parent.addCommands({cmd:function(){t.opacity=e,_classPrivateMethodGet(t,O,Q).call(t)},undo:function(){t.opacity=r,_classPrivateMethodGet(t,O,Q).call(t)},mustExec:!0,type:a.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}function V(){var e=this.parent.viewport,t=e.width,r=e.height,a=e.rotation;switch(a){case 90:return[0,t,t,r];case 180:return[t,r,t,r];case 270:return[r,0,t,r];default:return[0,0,t,r]}}function Y(){this.ctx.lineWidth=this.thickness*this.parent.scaleFactor/this.scaleFactor,this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.miterLimit=10,this.ctx.strokeStyle="".concat(this.color).concat((0,o.opacityToHex)(this.opacity))}function K(e,t){var r,a=this;(this.isEditing=!0,_classPrivateFieldGet(this,g))||(_classPrivateFieldSet(this,g,!0),_classPrivateMethodGet(this,R,ae).call(this),this.thickness||(this.thickness=X._defaultThickness),this.color||(this.color=X._defaultColor||n.AnnotationEditor._defaultLineColor),null!==(r=this.opacity)&&void 0!==r||(this.opacity=X._defaultOpacity));this.currentPath.push([e,t]),_classPrivateFieldSet(this,m,null),_classPrivateMethodGet(this,C,Y).call(this),this.ctx.beginPath(),this.ctx.moveTo(e,t),_classPrivateFieldSet(this,w,(function(){if(_classPrivateFieldGet(a,w)){var e;if(_classPrivateFieldGet(a,m))a.isEmpty()?(a.ctx.setTransform(1,0,0,1,0,0),a.ctx.clearRect(0,0,a.canvas.width,a.canvas.height)):_classPrivateMethodGet(a,O,Q).call(a),(e=a.ctx).lineTo.apply(e,_toConsumableArray(_classPrivateFieldGet(a,m))),_classPrivateFieldSet(a,m,null),a.ctx.stroke();window.requestAnimationFrame(_classPrivateFieldGet(a,w))}})),window.requestAnimationFrame(_classPrivateFieldGet(this,w))}function J(e,t){var r=this.currentPath.at(-1),a=_slicedToArray(r,2),n=a[0],i=a[1];e===n&&t===i||(this.currentPath.push([e,t]),_classPrivateFieldSet(this,m,[e,t]))}function Z(e,t){var r=this;this.ctx.closePath(),_classPrivateFieldSet(this,w,null),e=Math.min(Math.max(e,0),this.canvas.width),t=Math.min(Math.max(t,0),this.canvas.height);var a,n=this.currentPath.at(-1),o=_slicedToArray(n,2),s=o[0],l=o[1];if(e===s&&t===l||this.currentPath.push([e,t]),1!==this.currentPath.length)a=(0,i.fitCurve)(this.currentPath,30,null);else{var c=[e,t];a=[[c,c.slice(),c.slice(),c]]}var u=_classStaticPrivateMethodGet(X,X,oe).call(X,a);this.currentPath.length=0;var h=function(){r.paths.push(a),r.bezierPath2D.push(u),r.rebuild()},d=function(){r.paths.pop(),r.bezierPath2D.pop(),0===r.paths.length?r.remove():(r.canvas||(_classPrivateMethodGet(r,E,te).call(r),_classPrivateMethodGet(r,M,re).call(r)),_classPrivateMethodGet(r,G,de).call(r))};this.parent.addCommands({cmd:h,undo:d,mustExec:!0})}function Q(){if(this.isEmpty())_classPrivateMethodGet(this,N,ie).call(this);else{_classPrivateMethodGet(this,C,Y).call(this);var e=this.canvas,t=this.ctx;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.width,e.height),_classPrivateMethodGet(this,N,ie).call(this);var r,a=_createForOfIteratorHelper(this.bezierPath2D);try{for(a.s();!(r=a.n()).done;){var n=r.value;t.stroke(n)}}catch(i){a.e(i)}finally{a.f()}}}function ee(e){_classPrivateMethodGet(this,T,Z).call(this,e.offsetX,e.offsetY),this.canvas.removeEventListener("pointerleave",_classPrivateFieldGet(this,d)),this.canvas.removeEventListener("pointermove",_classPrivateFieldGet(this,h)),this.parent.addToAnnotationStorage(this)}function te(){var e=this;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",X._l10nPromise.get("editor_ink_canvas_aria_label").then((function(t){var r;return null===(r=e.canvas)||void 0===r?void 0:r.setAttribute("aria-label",t)})),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}function re(){var e=this;_classPrivateFieldSet(this,y,new ResizeObserver((function(t){var r=t[0].contentRect;r.width&&r.height&&e.setDimensions(r.width,r.height)}))),_classPrivateFieldGet(this,y).observe(this.div)}function ae(){if(_classPrivateFieldGet(this,g)){var e=_slicedToArray(this.parent.viewportBaseDimensions,2),t=e[0],r=e[1];this.canvas.width=Math.ceil(this.width*t),this.canvas.height=Math.ceil(this.height*r),_classPrivateMethodGet(this,N,ie).call(this)}}function ne(e,t){var r=_classPrivateMethodGet(this,q,he).call(this),a=(e-r)/_classPrivateFieldGet(this,u),n=(t-r)/_classPrivateFieldGet(this,c);this.scaleFactor=Math.min(a,n)}function ie(){var e=_classPrivateMethodGet(this,q,he).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+e,this.translationY*this.scaleFactor+e)}function oe(e){for(var t=new Path2D,r=0,a=e.length;r<a;r++){var n=_slicedToArray(e[r],4),i=n[0],o=n[1],s=n[2],l=n[3];0===r&&t.moveTo.apply(t,_toConsumableArray(i)),t.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}return t}function se(e,t,r,a){var n,i,o,s=4,l=[],c=this.thickness/2,u=_createForOfIteratorHelper(this.paths);try{for(u.s();!(o=u.n()).done;){var h=o.value;n=[],i=[];for(var d=0,f=h.length;d<f;d++){var p=_slicedToArray(h[d],4),v=p[0],g=p[1],m=p[2],y=p[3],b=e*(v[0]+t)+c,k=a-e*(v[1]+r)-c,w=e*(g[0]+t)+c,_=a-e*(g[1]+r)-c,S=e*(m[0]+t)+c,x=a-e*(m[1]+r)-c,A=e*(y[0]+t)+c,C=a-e*(y[1]+r)-c;0===d&&(n.push(b,k),i.push(b,k)),n.push(w,_,S,x,A,C),_classPrivateMethodGet(this,B,le).call(this,b,k,w,_,S,x,A,C,s,i)}l.push({bezier:n,points:i})}}catch(F){u.e(F)}finally{u.f()}return l}function le(e,t,r,a,n,i,o,s,l,c){if(_classPrivateMethodGet(this,j,ce).call(this,e,t,r,a,n,i,o,s))c.push(o,s);else{for(var u=1;u<l-1;u++){var h=u/l,d=1-h,f=h*e+d*r,p=h*t+d*a,v=h*r+d*n,g=h*a+d*i,m=h*n+d*o,y=h*i+d*s;f=h*f+d*v,p=h*p+d*g,v=h*v+d*m,g=h*g+d*y,f=h*f+d*v,p=h*p+d*g,c.push(f,p)}c.push(o,s)}}function ce(e,t,r,a,n,i,o,s){var l=10,c=Math.pow(3*r-2*e-o,2),u=Math.pow(3*a-2*t-s,2),h=Math.pow(3*n-e-2*o,2),d=Math.pow(3*i-t-2*s,2);return Math.max(c,h)+Math.max(u,d)<=l}function ue(){var e,t=1/0,r=-1/0,n=1/0,i=-1/0,o=_createForOfIteratorHelper(this.paths);try{for(o.s();!(e=o.n()).done;){var s,l=e.value,c=_createForOfIteratorHelper(l);try{for(c.s();!(s=c.n()).done;){var u,h=_slicedToArray(s.value,4),d=h[0],f=h[1],p=h[2],v=h[3],g=(u=a.Util).bezierBoundingBox.apply(u,_toConsumableArray(d).concat(_toConsumableArray(f),_toConsumableArray(p),_toConsumableArray(v)));t=Math.min(t,g[0]),n=Math.min(n,g[1]),r=Math.max(r,g[2]),i=Math.max(i,g[3])}}catch(m){c.e(m)}finally{c.f()}}}catch(m){o.e(m)}finally{o.f()}return[t,n,r,i]}function he(){return _classPrivateFieldGet(this,v)?Math.ceil(this.thickness*this.parent.scaleFactor):0}function de(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isEmpty())if(_classPrivateFieldGet(this,v)){var t=_classPrivateMethodGet(this,U,ue).call(this),r=_classPrivateMethodGet(this,q,he).call(this);_classPrivateFieldSet(this,u,Math.max(s,t[2]-t[0])),_classPrivateFieldSet(this,c,Math.max(s,t[3]-t[1]));var a=Math.ceil(r+_classPrivateFieldGet(this,u)*this.scaleFactor),n=Math.ceil(r+_classPrivateFieldGet(this,c)*this.scaleFactor),i=_slicedToArray(this.parent.viewportBaseDimensions,2),o=i[0],h=i[1];this.width=a/o,this.height=n/h,_classPrivateFieldSet(this,l,a/n),_classPrivateMethodGet(this,H,fe).call(this);var d=this.translationX,f=this.translationY;this.translationX=-t[0],this.translationY=-t[1],_classPrivateMethodGet(this,R,ae).call(this),_classPrivateMethodGet(this,O,Q).call(this),_classPrivateFieldSet(this,b,a),_classPrivateFieldSet(this,k,n),this.setDims(a,n);var p=e?r/this.scaleFactor/2:0;this.translate(d-this.translationX-p,f-this.translationY-p)}else _classPrivateMethodGet(this,O,Q).call(this)}function fe(){var e=this.div.style;_classPrivateFieldGet(this,l)>=1?(e.minHeight="".concat(s,"px"),e.minWidth="".concat(Math.round(_classPrivateFieldGet(this,l)*s),"px")):(e.minWidth="".concat(s,"px"),e.minHeight="".concat(Math.round(s/_classPrivateFieldGet(this,l)),"px"))}_defineProperty(X,"_defaultColor",null),_defineProperty(X,"_defaultOpacity",1),_defineProperty(X,"_defaultThickness",1),_defineProperty(X,"_l10nPromise",void 0),_defineProperty(X,"_type","ink"),t.InkEditor=X},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.fitCurve=void 0;var a=r(26);t.fitCurve=a},function(e){function t(e,t,a){if(!Array.isArray(e))throw new TypeError("First argument should be an array");if(e.forEach((function(t){if(!Array.isArray(t)||t.some((function(e){return"number"!==typeof e}))||t.length!==e[0].length)throw Error("Each point should be an array of numbers. Each point should have the same amount of numbers.")})),e=e.filter((function(t,r){return 0===r||!t.every((function(t,a){return t===e[r-1][a]}))})),e.length<2)return[];var n=e.length,i=h(e[1],e[0]),o=h(e[n-2],e[n-1]);return r(e,i,o,t,a)}function r(e,t,n,o,l){var c,u,h,f,p,v,g,m,y,b,k,w,_,S=20;if(2===e.length)return w=d.vectorLen(d.subtract(e[0],e[1]))/3,c=[e[0],d.addArrays(e[0],d.mulItems(t,w)),d.addArrays(e[1],d.mulItems(n,w)),e[1]],[c];u=s(e);var x=a(e,u,u,t,n,l),A=_slicedToArray(x,3);if(c=A[0],f=A[1],v=A[2],0===f||f<o)return[c];if(f<o*o)for(h=u,p=f,g=v,_=0;_<S;_++){h=i(c,e,h);var C=a(e,u,h,t,n,l),F=_slicedToArray(C,3);if(c=F[0],f=F[1],v=F[2],f<o)return[c];if(v===g){var P=f/p;if(P>.9999&&P<1.0001)break}p=f,g=v}if(k=[],m=d.subtract(e[v-1],e[v+1]),m.every((function(e){return 0===e}))){m=d.subtract(e[v-1],e[v]);var T=[-m[1],m[0]];m[0]=T[0],m[1]=T[1]}return y=d.normalize(m),b=d.mulItems(y,-1),k=k.concat(r(e.slice(0,v+1),t,y,o,l)),k=k.concat(r(e.slice(v),b,n,o,l)),k}function a(e,t,r,a,i,o){var s,c,u;s=n(e,r,a,i,o);var h=l(e,s,t),d=_slicedToArray(h,2);return c=d[0],u=d[1],o&&o({bez:s,points:e,params:t,maxErr:c,maxPoint:u}),[s,c,u]}function n(e,t,r,a){var n,i,o,s,l,c,u,h,p,v,g,m,y,b,k,w,_,S=e[0],x=e[e.length-1];for(n=[S,null,null,x],i=d.zeros_Xx2x2(t.length),y=0,b=t.length;y<b;y++)w=t[y],_=1-w,o=i[y],o[0]=d.mulItems(r,3*w*(_*_)),o[1]=d.mulItems(a,3*_*(w*w));for(s=[[0,0],[0,0]],l=[0,0],y=0,b=e.length;y<b;y++)w=t[y],o=i[y],s[0][0]+=d.dot(o[0],o[0]),s[0][1]+=d.dot(o[0],o[1]),s[1][0]+=d.dot(o[0],o[1]),s[1][1]+=d.dot(o[1],o[1]),k=d.subtract(e[y],f.q([S,S,x,x],w)),l[0]+=d.dot(o[0],k),l[1]+=d.dot(o[1],k);return c=s[0][0]*s[1][1]-s[1][0]*s[0][1],u=s[0][0]*l[1]-s[1][0]*l[0],h=l[0]*s[1][1]-l[1]*s[0][1],p=0===c?0:h/c,v=0===c?0:u/c,m=d.vectorLen(d.subtract(S,x)),g=1e-6*m,p<g||v<g?(n[1]=d.addArrays(S,d.mulItems(r,m/3)),n[2]=d.addArrays(x,d.mulItems(a,m/3))):(n[1]=d.addArrays(S,d.mulItems(r,p)),n[2]=d.addArrays(x,d.mulItems(a,v))),n}function i(e,t,r){return r.map((function(r,a){return o(e,t[a],r)}))}function o(e,t,r){var a=d.subtract(f.q(e,r),t),n=f.qprime(e,r),i=d.mulMatrix(a,n),o=d.sum(d.squareItems(n))+2*d.mulMatrix(a,f.qprimeprime(e,r));return 0===o?r:r-i/o}function s(e){var t,r,a,n=[];return e.forEach((function(e,i){t=i?r+d.vectorLen(d.subtract(e,a)):0,n.push(t),r=t,a=e})),n=n.map((function(e){return e/r})),n}function l(e,t,r){var a,n,i,o,s,l,h,p;n=0,i=Math.floor(e.length/2);var v=c(t,10);for(s=0,l=e.length;s<l;s++)h=e[s],p=u(t,r[s],v,10),o=d.subtract(f.q(t,p),h),a=o[0]*o[0]+o[1]*o[1],a>n&&(n=a,i=s);return[n,i]}var c=function(e,t){for(var r,a=[0],n=e[0],i=0,o=1;o<=t;o++)r=f.q(e,o/t),i+=d.vectorLen(d.subtract(r,n)),a.push(i),n=r;return a=a.map((function(e){return e/i})),a};function u(e,t,r,a){if(t<0)return 0;if(t>1)return 1;for(var n,i,o,s,l,c=1;c<=a;c++)if(t<=r[c]){s=(c-1)/a,o=c/a,i=r[c-1],n=r[c],l=(t-i)/(n-i)*(o-s)+s;break}return l}function h(e,t){return d.normalize(d.subtract(e,t))}var d=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"zeros_Xx2x2",value:function(e){var t=[];while(e--)t.push([0,0]);return t}},{key:"mulItems",value:function(e,t){return e.map((function(e){return e*t}))}},{key:"mulMatrix",value:function(e,t){return e.reduce((function(e,r,a){return e+r*t[a]}),0)}},{key:"subtract",value:function(e,t){return e.map((function(e,r){return e-t[r]}))}},{key:"addArrays",value:function(e,t){return e.map((function(e,r){return e+t[r]}))}},{key:"addItems",value:function(e,t){return e.map((function(e){return e+t}))}},{key:"sum",value:function(e){return e.reduce((function(e,t){return e+t}))}},{key:"dot",value:function(t,r){return e.mulMatrix(t,r)}},{key:"vectorLen",value:function(e){return Math.hypot.apply(Math,_toConsumableArray(e))}},{key:"divItems",value:function(e,t){return e.map((function(e){return e/t}))}},{key:"squareItems",value:function(e){return e.map((function(e){return e*e}))}},{key:"normalize",value:function(e){return this.divItems(e,this.vectorLen(e))}}]),e}(),f=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"q",value:function(e,t){var r=1-t,a=d.mulItems(e[0],r*r*r),n=d.mulItems(e[1],3*r*r*t),i=d.mulItems(e[2],3*r*t*t),o=d.mulItems(e[3],t*t*t);return d.addArrays(d.addArrays(a,n),d.addArrays(i,o))}},{key:"qprime",value:function(e,t){var r=1-t,a=d.mulItems(d.subtract(e[1],e[0]),3*r*r),n=d.mulItems(d.subtract(e[2],e[1]),6*r*t),i=d.mulItems(d.subtract(e[3],e[2]),3*t*t);return d.addArrays(d.addArrays(a,n),i)}},{key:"qprimeprime",value:function(e,t){return d.addArrays(d.mulItems(d.addArrays(d.subtract(e[2],d.mulItems(e[1],2)),e[0]),6*(1-t)),d.mulItems(d.addArrays(d.subtract(e[3],d.mulItems(e[2],2)),e[1]),6*t))}}]),e}();e.exports=t,e.exports.fitCubic=r,e.exports.createTangent=h},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var a=r(1),n=r(8),i=r(5),o=r(28),s=r(29),l=1e3,c=9,u=new WeakSet;function h(e){return{width:e[2]-e[0],height:e[3]-e[1]}}var d=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e){var t=e.data.annotationType;switch(t){case a.AnnotationType.LINK:return new p(e);case a.AnnotationType.TEXT:return new v(e);case a.AnnotationType.WIDGET:var r=e.data.fieldType;switch(r){case"Tx":return new m(e);case"Btn":return e.data.radioButton?new b(e):e.data.checkBox?new y(e):new k(e);case"Ch":return new w(e)}return new g(e);case a.AnnotationType.POPUP:return new _(e);case a.AnnotationType.FREETEXT:return new x(e);case a.AnnotationType.LINE:return new A(e);case a.AnnotationType.SQUARE:return new C(e);case a.AnnotationType.CIRCLE:return new F(e);case a.AnnotationType.POLYLINE:return new P(e);case a.AnnotationType.CARET:return new O(e);case a.AnnotationType.INK:return new I(e);case a.AnnotationType.POLYGON:return new T(e);case a.AnnotationType.HIGHLIGHT:return new E(e);case a.AnnotationType.UNDERLINE:return new M(e);case a.AnnotationType.SQUIGGLY:return new R(e);case a.AnnotationType.STRIKEOUT:return new D(e);case a.AnnotationType.STAMP:return new N(e);case a.AnnotationType.FILEATTACHMENT:return new L(e);default:return new f(e)}}}]),e}(),f=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.isRenderable,n=void 0!==a&&a,i=r.ignoreBorder,o=void 0!==i&&i,s=r.createQuadrilaterals,l=void 0!==s&&s;_classCallCheck(this,e),this.isRenderable=n,this.data=t.data,this.layer=t.layer,this.page=t.page,this.viewport=t.viewport,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderForms=t.renderForms,this.svgFactory=t.svgFactory,this.annotationStorage=t.annotationStorage,this.enableScripting=t.enableScripting,this.hasJSActions=t.hasJSActions,this._fieldObjects=t.fieldObjects,this._mouseState=t.mouseState,n&&(this.container=this._createContainer(o)),l&&(this.quadrilaterals=this._createQuadrilaterals(o))}return _createClass(e,[{key:"_createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data,r=this.page,n=this.viewport,i=document.createElement("section"),o=h(t.rect),s=o.width,l=o.height,c=_slicedToArray(n.viewBox,4),u=c[0],d=c[1],f=c[2],p=c[3],v=f-u,g=p-d;i.setAttribute("data-annotation-id",t.id);var m=a.Util.normalizeRect([t.rect[0],r.view[3]-t.rect[1]+r.view[1],t.rect[2],r.view[3]-t.rect[3]+r.view[1]]);if(!e&&t.borderStyle.width>0){i.style.borderWidth="".concat(t.borderStyle.width,"px");var y=t.borderStyle.horizontalCornerRadius,k=t.borderStyle.verticalCornerRadius;if(y>0||k>0){var w="calc(".concat(y,"px * var(--scale-factor)) / calc(").concat(k,"px * var(--scale-factor))");i.style.borderRadius=w}else if(this instanceof b){var _="calc(".concat(s,"px * var(--scale-factor)) / calc(").concat(l,"px * var(--scale-factor))");i.style.borderRadius=_}switch(t.borderStyle.style){case a.AnnotationBorderStyleType.SOLID:i.style.borderStyle="solid";break;case a.AnnotationBorderStyleType.DASHED:i.style.borderStyle="dashed";break;case a.AnnotationBorderStyleType.BEVELED:(0,a.warn)("Unimplemented border style: beveled");break;case a.AnnotationBorderStyleType.INSET:(0,a.warn)("Unimplemented border style: inset");break;case a.AnnotationBorderStyleType.UNDERLINE:i.style.borderBottomStyle="solid";break;default:break}var S=t.borderColor||null;S?i.style.borderColor=a.Util.makeHexColor(0|S[0],0|S[1],0|S[2]):i.style.borderWidth=0}i.style.left="".concat(100*(m[0]-u)/v,"%"),i.style.top="".concat(100*(m[1]-d)/g,"%");var x=t.rotation;return t.hasOwnCanvas||0===x?(i.style.width="".concat(100*s/v,"%"),i.style.height="".concat(100*l/g,"%")):this.setRotation(x,i),i}},{key:"setRotation",value:function(e){var t,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container,n=_slicedToArray(this.viewport.viewBox,4),i=n[0],o=n[1],s=n[2],l=n[3],c=s-i,u=l-o,d=h(this.data.rect),f=d.width,p=d.height;e%180===0?(t=100*f/c,r=100*p/u):(t=100*p/c,r=100*f/u),a.style.width="".concat(t,"%"),a.style.height="".concat(r,"%"),a.setAttribute("data-main-rotation",(360-e)%360)}},{key:"_commonActions",get:function(){var e=this,t=function(e,t,r){var a=r.detail[e];r.target.style[t]=o.ColorConverters["".concat(a[0],"_HTML")](a.slice(1))};return(0,a.shadow)(this,"_commonActions",{display:function(t){var r=t.detail.display%2===1;e.container.style.visibility=r?"hidden":"visible",e.annotationStorage.setValue(e.data.id,{hidden:r,print:0===t.detail.display||3===t.detail.display})},print:function(t){e.annotationStorage.setValue(e.data.id,{print:t.detail.print})},hidden:function(t){e.container.style.visibility=t.detail.hidden?"hidden":"visible",e.annotationStorage.setValue(e.data.id,{hidden:t.detail.hidden})},focus:function(e){setTimeout((function(){return e.target.focus({preventScroll:!1})}),0)},userName:function(e){e.target.title=e.detail.userName},readonly:function(e){e.detail.readonly?e.target.setAttribute("readonly",""):e.target.removeAttribute("readonly")},required:function(t){e._setRequired(t.target,t.detail.required)},bgColor:function(e){t("bgColor","backgroundColor",e)},fillColor:function(e){t("fillColor","backgroundColor",e)},fgColor:function(e){t("fgColor","color",e)},textColor:function(e){t("textColor","color",e)},borderColor:function(e){t("borderColor","borderColor",e)},strokeColor:function(e){t("strokeColor","borderColor",e)},rotation:function(t){var r=t.detail.rotation;e.setRotation(r),e.annotationStorage.setValue(e.data.id,{rotation:r})}})}},{key:"_dispatchEventFromSandbox",value:function(e,t){for(var r=this._commonActions,a=0,n=Object.keys(t.detail);a<n.length;a++){var i=n[a],o=e[i]||r[i];o&&o(t)}}},{key:"_setDefaultPropertiesFromJS",value:function(e){if(this.enableScripting){var t=this.annotationStorage.getRawValue(this.data.id);if(t)for(var r=this._commonActions,a=0,n=Object.entries(t);a<n.length;a++){var i=_slicedToArray(n[a],2),o=i[0],s=i[1],l=r[o];if(l){var c={detail:_defineProperty({},o,s),target:e};l(c),delete t[o]}}}}},{key:"_createQuadrilaterals",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.data.quadPoints)return null;var t,r=[],a=this.data.rect,n=_createForOfIteratorHelper(this.data.quadPoints);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.data.rect=[i[2].x,i[2].y,i[1].x,i[1].y],r.push(this._createContainer(e))}}catch(o){n.e(o)}finally{n.f()}return this.data.rect=a,r}},{key:"_createPopup",value:function(e,t){var r=this.container;this.quadrilaterals&&(e=e||this.quadrilaterals,r=this.quadrilaterals[0]),e||(e=document.createElement("div"),e.className="popupTriggerArea",r.append(e));var a=new S({container:r,trigger:e,color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,hideWrapper:!0}),n=a.render();n.style.left="100%",r.append(n)}},{key:"_renderQuadrilaterals",value:function(e){var t,r=_createForOfIteratorHelper(this.quadrilaterals);try{for(r.s();!(t=r.n()).done;){var a=t.value;a.className=e}}catch(n){r.e(n)}finally{r.f()}return this.quadrilaterals}},{key:"render",value:function(){(0,a.unreachable)("Abstract method `AnnotationElement.render` called")}},{key:"_getElementsByName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=[];if(this._fieldObjects){var n=this._fieldObjects[e];if(n){var i,o=_createForOfIteratorHelper(n);try{for(o.s();!(i=o.n()).done;){var s=i.value,l=s.page,c=s.id,h=s.exportValues;if(-1!==l&&c!==t){var d="string"===typeof h?h:null,f=document.querySelector('[data-element-id="'.concat(c,'"]'));!f||u.has(f)?r.push({id:c,exportValue:d,domElement:f}):(0,a.warn)("_getElementsByName - element not allowed: ".concat(c))}}}catch(b){o.e(b)}finally{o.f()}}return r}var p,v=_createForOfIteratorHelper(document.getElementsByName(e));try{for(v.s();!(p=v.n()).done;){var g=p.value,m=g.id,y=g.exportValue;m!==t&&(u.has(g)&&r.push({id:m,exportValue:y,domElement:g}))}}catch(b){v.e(b)}finally{v.f()}return r}}],[{key:"platform",get:function(){var e="undefined"!==typeof navigator?navigator.platform:"";return(0,a.shadow)(this,"platform",{isWin:e.includes("Win"),isMac:e.includes("Mac")})}}]),e}(),p=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return _classCallCheck(this,r),a=t.call(this,e,{isRenderable:!0,ignoreBorder:!(null===n||void 0===n||!n.ignoreBorder),createQuadrilaterals:!0}),a.isTooltipOnly=e.data.isTooltipOnly,a}return _createClass(r,[{key:"render",value:function(){var e=this.data,t=this.linkService,r=document.createElement("a");r.setAttribute("data-element-id",e.id);var a=!1;return e.url?(t.addLinkAttributes(r,e.url,e.newWindow),a=!0):e.action?(this._bindNamedAction(r,e.action),a=!0):e.dest?(this._bindLink(r,e.dest),a=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(r,e),a=!0),e.resetForm?(this._bindResetFormAction(r,e.resetForm),a=!0):this.isTooltipOnly&&!a&&(this._bindLink(r,""),a=!0)),this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map((function(e,t){var a=0===t?r:r.cloneNode();return e.append(a),e})):(this.container.className="linkAnnotation",a&&this.container.append(r),this.container)}},{key:"_bindLink",value:function(e,t){var r=this;e.href=this.linkService.getDestinationHash(t),e.onclick=function(){return t&&r.linkService.goToDestination(t),!1},(t||""===t)&&(e.className="internalLink")}},{key:"_bindNamedAction",value:function(e,t){var r=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){return r.linkService.executeNamedAction(t),!1},e.className="internalLink"}},{key:"_bindJSAction",value:function(e,t){var r=this;e.href=this.linkService.getAnchorUrl("");for(var a=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]),n=function(){var n=o[i],s=a.get(n);if(!s)return"continue";e[s]=function(){var e;return null===(e=r.linkService.eventBus)||void 0===e||e.dispatch("dispatcheventinsandbox",{source:r,detail:{id:t.id,name:n}}),!1}},i=0,o=Object.keys(t.actions);i<o.length;i++)n();e.onclick||(e.onclick=function(){return!1}),e.className="internalLink"}},{key:"_bindResetFormAction",value:function(e,t){var r=this,n=e.onclick;if(n||(e.href=this.linkService.getAnchorUrl("")),e.className="internalLink",!this._fieldObjects)return(0,a.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(n||(e.onclick=function(){return!1}));e.onclick=function(){n&&n();var e=t.fields,i=t.refs,o=t.include,s=[];if(0!==e.length||0!==i.length){var l,c=new Set(i),h=_createForOfIteratorHelper(e);try{for(h.s();!(l=h.n()).done;){var d,f=l.value,p=r._fieldObjects[f]||[],v=_createForOfIteratorHelper(p);try{for(v.s();!(d=v.n()).done;){var g=d.value.id;c.add(g)}}catch(L){v.e(L)}finally{v.f()}}}catch(L){h.e(L)}finally{h.f()}for(var m=0,y=Object.values(r._fieldObjects);m<y.length;m++){var b,k=y[m],w=_createForOfIteratorHelper(k);try{for(w.s();!(b=w.n()).done;){var _=b.value;c.has(_.id)===o&&s.push(_)}}catch(L){w.e(L)}finally{w.f()}}}else for(var S=0,x=Object.values(r._fieldObjects);S<x.length;S++){var A=x[S];s.push.apply(s,_toConsumableArray(A))}for(var C,F=r.annotationStorage,P=[],T=0,O=s;T<O.length;T++){var I=O[T],E=I.id;switch(P.push(E),I.type){case"text":var M=I.defaultValue||"";F.setValue(E,{value:M});break;case"checkbox":case"radiobutton":var R=I.defaultValue===I.exportValues;F.setValue(E,{value:R});break;case"combobox":case"listbox":var D=I.defaultValue||"";F.setValue(E,{value:D});break;default:continue}var N=document.querySelector('[data-element-id="'.concat(E,'"]'));N&&(u.has(N)?N.dispatchEvent(new Event("resetform")):(0,a.warn)("_bindResetFormAction - element not allowed: ".concat(E)))}r.enableScripting&&(null===(C=r.linkService.eventBus)||void 0===C||C.dispatch("dispatcheventinsandbox",{source:r,detail:{id:"app",ids:P,name:"ResetForm"}}));return!1}}}]),r}(f),v=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a,n,i;_classCallCheck(this,r);var o=!!(e.data.hasPopup||null!==(a=e.data.titleObj)&&void 0!==a&&a.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(i=e.data.richText)&&void 0!==i&&i.str);return t.call(this,e,{isRenderable:o})}return _createClass(r,[{key:"render",value:function(){this.container.className="textAnnotation";var e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(e,this.data),this.container.append(e),this.container}}]),r}(f),g=function(e){_inherits(r,e);var t=_createSuper(r);function r(){return _classCallCheck(this,r),t.apply(this,arguments)}return _createClass(r,[{key:"render",value:function(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}},{key:"_getKeyModifier",value:function(e){var t=f.platform,r=t.isWin,a=t.isMac;return r&&e.ctrlKey||a&&e.metaKey}},{key:"_setEventListener",value:function(e,t,r,a){var n=this;t.includes("mouse")?e.addEventListener(t,(function(e){var t;null===(t=n.linkService.eventBus)||void 0===t||t.dispatch("dispatcheventinsandbox",{source:n,detail:{id:n.data.id,name:r,value:a(e),shift:e.shiftKey,modifier:n._getKeyModifier(e)}})})):e.addEventListener(t,(function(e){var t;null===(t=n.linkService.eventBus)||void 0===t||t.dispatch("dispatcheventinsandbox",{source:n,detail:{id:n.data.id,name:r,value:a(e)}})}))}},{key:"_setEventListeners",value:function(e,t,r){var a,n=_createForOfIteratorHelper(t);try{for(n.s();!(a=n.n()).done;){var i,o=_slicedToArray(a.value,2),s=o[0],l=o[1];("Action"===l||null!==(i=this.data.actions)&&void 0!==i&&i[l])&&this._setEventListener(e,s,l,r)}}catch(c){n.e(c)}finally{n.f()}}},{key:"_setBackgroundColor",value:function(e){var t=this.data.backgroundColor||null;e.style.backgroundColor=null===t?"transparent":a.Util.makeHexColor(t[0],t[1],t[2])}},{key:"_setTextStyle",value:function(e){var t,r=["left","center","right"],n=this.data.defaultAppearanceData.fontColor,i=this.data.defaultAppearanceData.fontSize||c,o=e.style;if(this.data.multiLine){var s=Math.abs(this.data.rect[3]-this.data.rect[1]),l=Math.round(s/(a.LINE_FACTOR*i))||1,u=s/l;t=Math.min(i,Math.round(u/a.LINE_FACTOR))}else{var h=Math.abs(this.data.rect[3]-this.data.rect[1]);t=Math.min(i,Math.round(h/a.LINE_FACTOR))}o.fontSize="calc(".concat(t,"px * var(--scale-factor))"),o.color=a.Util.makeHexColor(n[0],n[1],n[2]),null!==this.data.textAlignment&&(o.textAlign=r[this.data.textAlignment])}},{key:"_setRequired",value:function(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}]),r}(f),m=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){_classCallCheck(this,r);var a=e.renderForms||!e.data.hasAppearance&&!!e.data.fieldValue;return t.call(this,e,{isRenderable:a})}return _createClass(r,[{key:"setPropertyOnSiblings",value:function(e,t,r,a){var n,i=this.annotationStorage,o=_createForOfIteratorHelper(this._getElementsByName(e.name,e.id));try{for(o.s();!(n=o.n()).done;){var s=n.value;s.domElement&&(s.domElement[t]=r),i.setValue(s.id,_defineProperty({},a,r))}}catch(l){o.e(l)}finally{o.f()}}},{key:"render",value:function(){var e=this,t=this.annotationStorage,r=this.data.id;this.container.className="textWidgetAnnotation";var a=null;if(this.renderForms){var n=t.getValue(r,{value:this.data.fieldValue}),i=n.formattedValue||n.value||"",o=t.getValue(r,{charLimit:this.data.maxLen}).charLimit;o&&i.length>o&&(i=i.slice(0,o));var s={userValue:i,formattedValue:null,valueOnFocus:""};this.data.multiLine?(a=document.createElement("textarea"),a.textContent=i,this.data.doNotScroll&&(a.style.overflowY="hidden")):(a=document.createElement("input"),a.type="text",a.setAttribute("value",i),this.data.doNotScroll&&(a.style.overflowX="hidden")),u.add(a),a.setAttribute("data-element-id",r),a.disabled=this.data.readOnly,a.name=this.data.fieldName,a.tabIndex=l,this._setRequired(a,this.data.required),o&&(a.maxLength=o),a.addEventListener("input",(function(n){t.setValue(r,{value:n.target.value}),e.setPropertyOnSiblings(a,"value",n.target.value,"value")})),a.addEventListener("resetform",(function(t){var r,n=null!==(r=e.data.defaultFieldValue)&&void 0!==r?r:"";a.value=s.userValue=n,s.formattedValue=null}));var c=function(e){var t=s.formattedValue;null!==t&&void 0!==t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){var h;a.addEventListener("focus",(function(e){s.userValue&&(e.target.value=s.userValue),s.valueOnFocus=e.target.value})),a.addEventListener("updatefromsandbox",(function(a){var n={value:function(e){var a;s.userValue=null!==(a=e.detail.value)&&void 0!==a?a:"",t.setValue(r,{value:s.userValue.toString()}),e.target.value=s.userValue},formattedValue:function(e){var a=e.detail.formattedValue;s.formattedValue=a,null!==a&&void 0!==a&&e.target!==document.activeElement&&(e.target.value=a),t.setValue(r,{formattedValue:a})},selRange:function(e){var t;(t=e.target).setSelectionRange.apply(t,_toConsumableArray(e.detail.selRange))},charLimit:function(a){var n,i=a.detail.charLimit,o=a.target;if(0!==i){o.setAttribute("maxLength",i);var l=s.userValue;!l||l.length<=i||(l=l.slice(0,i),o.value=s.userValue=l,t.setValue(r,{value:l}),null===(n=e.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:e,detail:{id:r,name:"Keystroke",value:l,willCommit:!0,commitKey:1,selStart:o.selectionStart,selEnd:o.selectionEnd}}))}else o.removeAttribute("maxLength")}};e._dispatchEventFromSandbox(n,a)})),a.addEventListener("keydown",(function(t){var a,n=-1;if("Escape"===t.key?n=0:"Enter"===t.key?n=2:"Tab"===t.key&&(n=3),-1!==n){var i=t.target.value;s.valueOnFocus!==i&&(s.userValue=i,null===(a=e.linkService.eventBus)||void 0===a||a.dispatch("dispatcheventinsandbox",{source:e,detail:{id:r,name:"Keystroke",value:i,willCommit:!0,commitKey:n,selStart:t.target.selectionStart,selEnd:t.target.selectionEnd}}))}}));var d=c;c=null,a.addEventListener("blur",(function(t){var a,n=t.target.value;(s.userValue=n,e._mouseState.isDown&&s.valueOnFocus!==n)&&(null===(a=e.linkService.eventBus)||void 0===a||a.dispatch("dispatcheventinsandbox",{source:e,detail:{id:r,name:"Keystroke",value:n,willCommit:!0,commitKey:1,selStart:t.target.selectionStart,selEnd:t.target.selectionEnd}}));d(t)})),null!==(h=this.data.actions)&&void 0!==h&&h.Keystroke&&a.addEventListener("beforeinput",(function(t){var a,n=t.data,i=t.target,o=i.value,s=i.selectionStart,l=i.selectionEnd,c=s,u=l;switch(t.inputType){case"deleteWordBackward":var h=o.substring(0,s).match(/\w*[^\w]*$/);h&&(c-=h[0].length);break;case"deleteWordForward":var d=o.substring(s).match(/^[^\w]*\w*/);d&&(u+=d[0].length);break;case"deleteContentBackward":s===l&&(c-=1);break;case"deleteContentForward":s===l&&(u+=1);break}t.preventDefault(),null===(a=e.linkService.eventBus)||void 0===a||a.dispatch("dispatcheventinsandbox",{source:e,detail:{id:r,name:"Keystroke",value:o,change:n||"",willCommit:!1,selStart:c,selEnd:u}})})),this._setEventListeners(a,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(function(e){return e.target.value}))}if(c&&a.addEventListener("blur",c),this.data.comb){var f=this.data.rect[2]-this.data.rect[0],p=f/o;a.classList.add("comb"),a.style.letterSpacing="calc(".concat(p,"px * var(--scale-factor) - 1ch)")}}else a=document.createElement("div"),a.textContent=this.data.fieldValue,a.style.verticalAlign="middle",a.style.display="table-cell";return this._setTextStyle(a),this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}}]),r}(g),y=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){return _classCallCheck(this,r),t.call(this,e,{isRenderable:e.renderForms})}return _createClass(r,[{key:"render",value:function(){var e=this,t=this.annotationStorage,r=this.data,a=r.id,n=t.getValue(a,{value:r.exportValue===r.fieldValue}).value;"string"===typeof n&&(n="Off"!==n,t.setValue(a,{value:n})),this.container.className="buttonWidgetAnnotation checkBox";var i=document.createElement("input");return u.add(i),i.setAttribute("data-element-id",a),i.disabled=r.readOnly,this._setRequired(i,this.data.required),i.type="checkbox",i.name=r.fieldName,n&&i.setAttribute("checked",!0),i.setAttribute("exportValue",r.exportValue),i.tabIndex=l,i.addEventListener("change",(function(n){var i,o=n.target,s=o.name,l=o.checked,c=_createForOfIteratorHelper(e._getElementsByName(s,a));try{for(c.s();!(i=c.n()).done;){var u=i.value,h=l&&u.exportValue===r.exportValue;u.domElement&&(u.domElement.checked=h),t.setValue(u.id,{value:h})}}catch(d){c.e(d)}finally{c.f()}t.setValue(a,{value:l})})),i.addEventListener("resetform",(function(e){var t=r.defaultFieldValue||"Off";e.target.checked=t===r.exportValue})),this.enableScripting&&this.hasJSActions&&(i.addEventListener("updatefromsandbox",(function(r){var n={value:function(e){e.target.checked="Off"!==e.detail.value,t.setValue(a,{value:e.target.checked})}};e._dispatchEventFromSandbox(n,r)})),this._setEventListeners(i,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(function(e){return e.target.checked}))),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}]),r}(g),b=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){return _classCallCheck(this,r),t.call(this,e,{isRenderable:e.renderForms})}return _createClass(r,[{key:"render",value:function(){var e=this;this.container.className="buttonWidgetAnnotation radioButton";var t=this.annotationStorage,r=this.data,a=r.id,n=t.getValue(a,{value:r.fieldValue===r.buttonValue}).value;"string"===typeof n&&(n=n!==r.buttonValue,t.setValue(a,{value:n}));var i=document.createElement("input");if(u.add(i),i.setAttribute("data-element-id",a),i.disabled=r.readOnly,this._setRequired(i,this.data.required),i.type="radio",i.name=r.fieldName,n&&i.setAttribute("checked",!0),i.tabIndex=l,i.addEventListener("change",(function(r){var n,i=r.target,o=i.name,s=i.checked,l=_createForOfIteratorHelper(e._getElementsByName(o,a));try{for(l.s();!(n=l.n()).done;){var c=n.value;t.setValue(c.id,{value:!1})}}catch(u){l.e(u)}finally{l.f()}t.setValue(a,{value:s})})),i.addEventListener("resetform",(function(e){var t=r.defaultFieldValue;e.target.checked=null!==t&&void 0!==t&&t===r.buttonValue})),this.enableScripting&&this.hasJSActions){var o=r.buttonValue;i.addEventListener("updatefromsandbox",(function(r){var n={value:function(r){var n,i=o===r.detail.value,s=_createForOfIteratorHelper(e._getElementsByName(r.target.name));try{for(s.s();!(n=s.n()).done;){var l=n.value,c=i&&l.id===a;l.domElement&&(l.domElement.checked=c),t.setValue(l.id,{value:c})}}catch(u){s.e(u)}finally{s.f()}}};e._dispatchEventFromSandbox(n,r)})),this._setEventListeners(i,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(function(e){return e.target.checked}))}return this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}]),r}(g),k=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){return _classCallCheck(this,r),t.call(this,e,{ignoreBorder:e.data.hasAppearance})}return _createClass(r,[{key:"render",value:function(){var e=this,t=_get(_getPrototypeOf(r.prototype),"render",this).call(this);t.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(t.title=this.data.alternativeText);var a=t.lastChild;return this.enableScripting&&this.hasJSActions&&a&&(this._setDefaultPropertiesFromJS(a),a.addEventListener("updatefromsandbox",(function(t){e._dispatchEventFromSandbox({},t)}))),t}}]),r}(p),w=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){return _classCallCheck(this,r),t.call(this,e,{isRenderable:e.renderForms})}return _createClass(r,[{key:"render",value:function(){var e=this;this.container.className="choiceWidgetAnnotation";var t=this.annotationStorage,r=this.data.id,a=t.getValue(r,{value:this.data.fieldValue}),n=document.createElement("select");u.add(n),n.setAttribute("data-element-id",r),n.disabled=this.data.readOnly,this._setRequired(n,this.data.required),n.name=this.data.fieldName,n.tabIndex=l;var i=this.data.combo&&this.data.options.length>0;this.data.combo||(n.size=this.data.options.length,this.data.multiSelect&&(n.multiple=!0)),n.addEventListener("resetform",(function(t){var r,a=e.data.defaultFieldValue,i=_createForOfIteratorHelper(n.options);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.selected=o.value===a}}catch(s){i.e(s)}finally{i.f()}}));var o,s=_createForOfIteratorHelper(this.data.options);try{for(s.s();!(o=s.n()).done;){var c=o.value,h=document.createElement("option");h.textContent=c.displayValue,h.value=c.exportValue,a.value.includes(c.exportValue)&&(h.setAttribute("selected",!0),i=!1),n.append(h)}}catch(g){s.e(g)}finally{s.f()}var d=null;if(i){var f=document.createElement("option");f.value=" ",f.setAttribute("hidden",!0),f.setAttribute("selected",!0),n.prepend(f),d=function(){f.remove(),n.removeEventListener("input",d),d=null},n.addEventListener("input",d)}var p=function(e,t){var r=t?"value":"textContent",a=e.target.options;return e.target.multiple?Array.prototype.filter.call(a,(function(e){return e.selected})).map((function(e){return e[r]})):-1===a.selectedIndex?null:a[a.selectedIndex][r]},v=function(e){var t=e.target.options;return Array.prototype.map.call(t,(function(e){return{displayValue:e.textContent,exportValue:e.value}}))};return this.enableScripting&&this.hasJSActions?(n.addEventListener("updatefromsandbox",(function(a){var i={value:function(e){var a;null===(a=d)||void 0===a||a();var i,o=e.detail.value,s=new Set(Array.isArray(o)?o:[o]),l=_createForOfIteratorHelper(n.options);try{for(l.s();!(i=l.n()).done;){var c=i.value;c.selected=s.has(c.value)}}catch(g){l.e(g)}finally{l.f()}t.setValue(r,{value:p(e,!0)})},multipleSelection:function(e){n.multiple=!0},remove:function(e){var a=n.options,i=e.detail.remove;if(a[i].selected=!1,n.remove(i),a.length>0){var o=Array.prototype.findIndex.call(a,(function(e){return e.selected}));-1===o&&(a[0].selected=!0)}t.setValue(r,{value:p(e,!0),items:v(e)})},clear:function(e){while(0!==n.length)n.remove(0);t.setValue(r,{value:null,items:[]})},insert:function(e){var a=e.detail.insert,i=a.index,o=a.displayValue,s=a.exportValue,l=n.children[i],c=document.createElement("option");c.textContent=o,c.value=s,l?l.before(c):n.append(c),t.setValue(r,{value:p(e,!0),items:v(e)})},items:function(e){var a=e.detail.items;while(0!==n.length)n.remove(0);var i,o=_createForOfIteratorHelper(a);try{for(o.s();!(i=o.n()).done;){var s=i.value,l=s.displayValue,c=s.exportValue,u=document.createElement("option");u.textContent=l,u.value=c,n.append(u)}}catch(g){o.e(g)}finally{o.f()}n.options.length>0&&(n.options[0].selected=!0),t.setValue(r,{value:p(e,!0),items:v(e)})},indices:function(e){var a,n=new Set(e.detail.indices),i=_createForOfIteratorHelper(e.target.options);try{for(i.s();!(a=i.n()).done;){var o=a.value;o.selected=n.has(o.index)}}catch(g){i.e(g)}finally{i.f()}t.setValue(r,{value:p(e,!0)})},editable:function(e){e.target.disabled=!e.detail.editable}};e._dispatchEventFromSandbox(i,a)})),n.addEventListener("input",(function(a){var n,i=p(a,!0),o=p(a,!1);t.setValue(r,{value:i}),null===(n=e.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:e,detail:{id:r,name:"Keystroke",value:o,changeEx:i,willCommit:!0,commitKey:1,keyDown:!1}})})),this._setEventListeners(n,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],(function(e){return e.target.checked}))):n.addEventListener("input",(function(e){t.setValue(r,{value:p(e,!0)})})),this.data.combo&&this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}]),r}(g),_=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a,n,i;_classCallCheck(this,r);var o=!!(null!==(a=e.data.titleObj)&&void 0!==a&&a.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(i=e.data.richText)&&void 0!==i&&i.str);return t.call(this,e,{isRenderable:o})}return _createClass(r,[{key:"render",value:function(){var e=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",e.includes(this.data.parentType))return this.container;var t='[data-annotation-id="'.concat(this.data.parentId,'"]'),r=this.layer.querySelectorAll(t);if(0===r.length)return this.container;var n=new S({container:this.container,trigger:Array.from(r),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),i=this.page,o=a.Util.normalizeRect([this.data.parentRect[0],i.view[3]-this.data.parentRect[1]+i.view[1],this.data.parentRect[2],i.view[3]-this.data.parentRect[3]+i.view[1]]),s=o[0]+this.data.parentRect[2]-this.data.parentRect[0],l=o[1],c=_slicedToArray(this.viewport.viewBox,4),u=c[0],h=c[1],d=c[2],f=c[3],p=d-u,v=f-h;return this.container.style.left="".concat(100*(s-u)/p,"%"),this.container.style.top="".concat(100*(l-h)/v,"%"),this.container.append(n.render()),this.container}}]),r}(f),S=function(){function e(t){_classCallCheck(this,e),this.container=t.container,this.trigger=t.trigger,this.color=t.color,this.titleObj=t.titleObj,this.modificationDate=t.modificationDate,this.contentsObj=t.contentsObj,this.richText=t.richText,this.hideWrapper=t.hideWrapper||!1,this.pinned=!1}return _createClass(e,[{key:"render",value:function(){var e,t,r=.7,i=document.createElement("div");i.className="popupWrapper",this.hideElement=this.hideWrapper?i:this.container,this.hideElement.hidden=!0;var o=document.createElement("div");o.className="popup";var l=this.color;if(l){var c=r*(255-l[0])+l[0],u=r*(255-l[1])+l[1],h=r*(255-l[2])+l[2];o.style.backgroundColor=a.Util.makeHexColor(0|c,0|u,0|h)}var d=document.createElement("h1");d.dir=this.titleObj.dir,d.textContent=this.titleObj.str,o.append(d);var f=n.PDFDateString.toDateObject(this.modificationDate);if(f){var p=document.createElement("span");p.className="popupDate",p.textContent="{{date}}, {{time}}",p.dataset.l10nId="annotation_date_string",p.dataset.l10nArgs=JSON.stringify({date:f.toLocaleDateString(),time:f.toLocaleTimeString()}),o.append(p)}if(null===(e=this.richText)||void 0===e||!e.str||null!==(t=this.contentsObj)&&void 0!==t&&t.str&&this.contentsObj.str!==this.richText.str){var v=this._formatContents(this.contentsObj);o.append(v)}else s.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:o}),o.lastChild.className="richText popupContent";Array.isArray(this.trigger)||(this.trigger=[this.trigger]);var g,m=_createForOfIteratorHelper(this.trigger);try{for(m.s();!(g=m.n()).done;){var y=g.value;y.addEventListener("click",this._toggle.bind(this)),y.addEventListener("mouseover",this._show.bind(this,!1)),y.addEventListener("mouseout",this._hide.bind(this,!1))}}catch(b){m.e(b)}finally{m.f()}return o.addEventListener("click",this._hide.bind(this,!0)),i.append(o),i}},{key:"_formatContents",value:function(e){var t=e.str,r=e.dir,a=document.createElement("p");a.className="popupContent",a.dir=r;for(var n=t.split(/(?:\r\n?|\n)/),i=0,o=n.length;i<o;++i){var s=n[i];a.append(document.createTextNode(s)),i<o-1&&a.append(document.createElement("br"))}return a}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex=parseInt(this.container.style.zIndex)+1e3)}},{key:"_hide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e&&(this.pinned=!1),this.hideElement.hidden||this.pinned||(this.hideElement.hidden=!0,this.container.style.zIndex=parseInt(this.container.style.zIndex)-1e3)}}]),e}(),x=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a,n,i,o;_classCallCheck(this,r);var s=!!(e.data.hasPopup||null!==(a=e.data.titleObj)&&void 0!==a&&a.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(i=e.data.richText)&&void 0!==i&&i.str);return o=t.call(this,e,{isRenderable:s,ignoreBorder:!0}),o.textContent=e.data.textContent,o}return _createClass(r,[{key:"render",value:function(){if(this.container.className="freeTextAnnotation",this.textContent){var e=document.createElement("div");e.className="annotationTextContent",e.setAttribute("role","comment");var t,r=_createForOfIteratorHelper(this.textContent);try{for(r.s();!(t=r.n()).done;){var a=t.value,n=document.createElement("span");n.textContent=a,e.append(n)}}catch(i){r.e(i)}finally{r.f()}this.container.append(e)}return this.data.hasPopup||this._createPopup(null,this.data),this.container}}]),r}(f),A=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a,n,i;_classCallCheck(this,r);var o=!!(e.data.hasPopup||null!==(a=e.data.titleObj)&&void 0!==a&&a.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(i=e.data.richText)&&void 0!==i&&i.str);return t.call(this,e,{isRenderable:o,ignoreBorder:!0})}return _createClass(r,[{key:"render",value:function(){this.container.className="lineAnnotation";var e=this.data,t=h(e.rect),r=t.width,a=t.height,n=this.svgFactory.create(r,a,!0),i=this.svgFactory.createElement("svg:line");return i.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),i.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),i.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),i.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),i.setAttribute("stroke-width",e.borderStyle.width||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","transparent"),n.append(i),this.container.append(n),this._createPopup(i,e),this.container}}]),r}(f),C=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a,n,i;_classCallCheck(this,r);var o=!!(e.data.hasPopup||null!==(a=e.data.titleObj)&&void 0!==a&&a.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(i=e.data.richText)&&void 0!==i&&i.str);return t.call(this,e,{isRenderable:o,ignoreBorder:!0})}return _createClass(r,[{key:"render",value:function(){this.container.className="squareAnnotation";var e=this.data,t=h(e.rect),r=t.width,a=t.height,n=this.svgFactory.create(r,a,!0),i=e.borderStyle.width,o=this.svgFactory.createElement("svg:rect");return o.setAttribute("x",i/2),o.setAttribute("y",i/2),o.setAttribute("width",r-i),o.setAttribute("height",a-i),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),n.append(o),this.container.append(n),this._createPopup(o,e),this.container}}]),r}(f),F=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a,n,i;_classCallCheck(this,r);var o=!!(e.data.hasPopup||null!==(a=e.data.titleObj)&&void 0!==a&&a.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(i=e.data.richText)&&void 0!==i&&i.str);return t.call(this,e,{isRenderable:o,ignoreBorder:!0})}return _createClass(r,[{key:"render",value:function(){this.container.className="circleAnnotation";var e=this.data,t=h(e.rect),r=t.width,a=t.height,n=this.svgFactory.create(r,a,!0),i=e.borderStyle.width,o=this.svgFactory.createElement("svg:ellipse");return o.setAttribute("cx",r/2),o.setAttribute("cy",a/2),o.setAttribute("rx",r/2-i/2),o.setAttribute("ry",a/2-i/2),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),n.append(o),this.container.append(n),this._createPopup(o,e),this.container}}]),r}(f),P=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a,n,i,o;_classCallCheck(this,r);var s=!!(e.data.hasPopup||null!==(a=e.data.titleObj)&&void 0!==a&&a.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(i=e.data.richText)&&void 0!==i&&i.str);return o=t.call(this,e,{isRenderable:s,ignoreBorder:!0}),o.containerClassName="polylineAnnotation",o.svgElementName="svg:polyline",o}return _createClass(r,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,r=h(t.rect),a=r.width,n=r.height,i=this.svgFactory.create(a,n,!0),o=[],s=_createForOfIteratorHelper(t.vertices);try{for(s.s();!(e=s.n()).done;){var l=e.value,c=l.x-t.rect[0],u=t.rect[3]-l.y;o.push(c+","+u)}}catch(f){s.e(f)}finally{s.f()}o=o.join(" ");var d=this.svgFactory.createElement(this.svgElementName);return d.setAttribute("points",o),d.setAttribute("stroke-width",t.borderStyle.width||1),d.setAttribute("stroke","transparent"),d.setAttribute("fill","transparent"),i.append(d),this.container.append(i),this._createPopup(d,t),this.container}}]),r}(f),T=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a;return _classCallCheck(this,r),a=t.call(this,e),a.containerClassName="polygonAnnotation",a.svgElementName="svg:polygon",a}return _createClass(r)}(P),O=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a,n,i;_classCallCheck(this,r);var o=!!(e.data.hasPopup||null!==(a=e.data.titleObj)&&void 0!==a&&a.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(i=e.data.richText)&&void 0!==i&&i.str);return t.call(this,e,{isRenderable:o,ignoreBorder:!0})}return _createClass(r,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}]),r}(f),I=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a,n,i,o;_classCallCheck(this,r);var s=!!(e.data.hasPopup||null!==(a=e.data.titleObj)&&void 0!==a&&a.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(i=e.data.richText)&&void 0!==i&&i.str);return o=t.call(this,e,{isRenderable:s,ignoreBorder:!0}),o.containerClassName="inkAnnotation",o.svgElementName="svg:polyline",o}return _createClass(r,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,r=h(t.rect),a=r.width,n=r.height,i=this.svgFactory.create(a,n,!0),o=_createForOfIteratorHelper(t.inkLists);try{for(o.s();!(e=o.n()).done;){var s,l=e.value,c=[],u=_createForOfIteratorHelper(l);try{for(u.s();!(s=u.n()).done;){var d=s.value,f=d.x-t.rect[0],p=t.rect[3]-d.y;c.push("".concat(f,",").concat(p))}}catch(g){u.e(g)}finally{u.f()}c=c.join(" ");var v=this.svgFactory.createElement(this.svgElementName);v.setAttribute("points",c),v.setAttribute("stroke-width",t.borderStyle.width||1),v.setAttribute("stroke","transparent"),v.setAttribute("fill","transparent"),this._createPopup(v,t),i.append(v)}}catch(g){o.e(g)}finally{o.f()}return this.container.append(i),this.container}}]),r}(f),E=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a,n,i;_classCallCheck(this,r);var o=!!(e.data.hasPopup||null!==(a=e.data.titleObj)&&void 0!==a&&a.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(i=e.data.richText)&&void 0!==i&&i.str);return t.call(this,e,{isRenderable:o,ignoreBorder:!0,createQuadrilaterals:!0})}return _createClass(r,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}]),r}(f),M=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a,n,i;_classCallCheck(this,r);var o=!!(e.data.hasPopup||null!==(a=e.data.titleObj)&&void 0!==a&&a.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(i=e.data.richText)&&void 0!==i&&i.str);return t.call(this,e,{isRenderable:o,ignoreBorder:!0,createQuadrilaterals:!0})}return _createClass(r,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}]),r}(f),R=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a,n,i;_classCallCheck(this,r);var o=!!(e.data.hasPopup||null!==(a=e.data.titleObj)&&void 0!==a&&a.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(i=e.data.richText)&&void 0!==i&&i.str);return t.call(this,e,{isRenderable:o,ignoreBorder:!0,createQuadrilaterals:!0})}return _createClass(r,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}]),r}(f),D=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a,n,i;_classCallCheck(this,r);var o=!!(e.data.hasPopup||null!==(a=e.data.titleObj)&&void 0!==a&&a.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(i=e.data.richText)&&void 0!==i&&i.str);return t.call(this,e,{isRenderable:o,ignoreBorder:!0,createQuadrilaterals:!0})}return _createClass(r,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}]),r}(f),N=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a,n,i;_classCallCheck(this,r);var o=!!(e.data.hasPopup||null!==(a=e.data.titleObj)&&void 0!==a&&a.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(i=e.data.richText)&&void 0!==i&&i.str);return t.call(this,e,{isRenderable:o,ignoreBorder:!0})}return _createClass(r,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}]),r}(f),L=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var a,i;_classCallCheck(this,r),i=t.call(this,e,{isRenderable:!0});var o=i.data.file,s=o.filename,l=o.content;return i.filename=(0,n.getFilenameFromUrl)(s),i.content=l,null===(a=i.linkService.eventBus)||void 0===a||a.dispatch("fileattachmentannotation",{source:_assertThisInitialized(i),filename:s,content:l}),i}return _createClass(r,[{key:"render",value:function(){var e,t;this.container.className="fileAttachmentAnnotation";var r=document.createElement("div");return r.className="popupTriggerArea",r.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&(null!==(e=this.data.titleObj)&&void 0!==e&&e.str||null!==(t=this.data.contentsObj)&&void 0!==t&&t.str||this.data.richText)&&this._createPopup(r,this.data),this.container.append(r),this.container}},{key:"_download",value:function(){var e;null===(e=this.downloadManager)||void 0===e||e.openOrDownloadData(this.container,this.content,this.filename)}}]),r}(f),B=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"render",value:function(t){var r=t.annotations,o=t.div,s=t.viewport,l=t.accessibilityManager;_classStaticPrivateMethodGet(this,e,U).call(this,o,s);var c,u=0,f=_createForOfIteratorHelper(r);try{for(f.s();!(c=f.n()).done;){var p=c.value;if(p.annotationType!==a.AnnotationType.POPUP){var v=h(p.rect),g=v.width,m=v.height;if(g<=0||m<=0)continue}var y=d.create({data:p,layer:o,page:t.page,viewport:s,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderForms:!1!==t.renderForms,svgFactory:new n.DOMSVGFactory,annotationStorage:t.annotationStorage||new i.AnnotationStorage,enableScripting:t.enableScripting,hasJSActions:t.hasJSActions,fieldObjects:t.fieldObjects,mouseState:t.mouseState||{isDown:!1}});if(y.isRenderable){var b=y.render();if(p.hidden&&(b.style.visibility="hidden"),Array.isArray(b)){var k,w=_createForOfIteratorHelper(b);try{for(w.s();!(k=w.n()).done;){var S=k.value;S.style.zIndex=u++,_classStaticPrivateMethodGet(e,e,j).call(e,S,p.id,o,l)}}catch(x){w.e(x)}finally{w.f()}}else b.style.zIndex=u++,y instanceof _?o.prepend(b):_classStaticPrivateMethodGet(e,e,j).call(e,b,p.id,o,l)}}}catch(x){f.e(x)}finally{f.f()}_classStaticPrivateMethodGet(this,e,q).call(this,o,t.annotationCanvasMap)}},{key:"update",value:function(t){var r=t.annotationCanvasMap,a=t.div,n=t.viewport;_classStaticPrivateMethodGet(this,e,U).call(this,a,n),_classStaticPrivateMethodGet(this,e,q).call(this,a,r),a.hidden=!1}}]),e}();function j(e,t,r,a){var i=e.firstChild||e;i.id="".concat(n.AnnotationPrefix).concat(t),r.append(e),null===a||void 0===a||a.moveElementInDOM(r,e,i,!1)}function U(e,t){var r=t.width,a=t.height,n=t.rotation,i=e.style,o=n%180!==0,s=Math.floor(r)+"px",l=Math.floor(a)+"px";i.width=o?l:s,i.height=o?s:l,e.setAttribute("data-main-rotation",n)}function q(e,t){if(t){var r,a=_createForOfIteratorHelper(t);try{for(a.s();!(r=a.n()).done;){var n=_slicedToArray(r.value,2),i=n[0],o=n[1],s=e.querySelector('[data-annotation-id="'.concat(i,'"]'));if(s){var l=s.firstChild;l?"CANVAS"===l.nodeName?l.replaceWith(o):l.before(o):s.append(o)}}}catch(c){a.e(c)}finally{a.f()}t.clear()}}t.AnnotationLayer=B},function(e,t){function r(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0;var a=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"CMYK_G",value:function(e){var t=_slicedToArray(e,4),r=t[0],a=t[1],n=t[2],i=t[3];return["G",1-Math.min(1,.3*r+.59*n+.11*a+i)]}},{key:"G_CMYK",value:function(e){var t=_slicedToArray(e,1),r=t[0];return["CMYK",0,0,0,1-r]}},{key:"G_RGB",value:function(e){var t=_slicedToArray(e,1),r=t[0];return["RGB",r,r,r]}},{key:"G_HTML",value:function(e){var t=_slicedToArray(e,1),a=t[0],n=r(a);return"#".concat(n).concat(n).concat(n)}},{key:"RGB_G",value:function(e){var t=_slicedToArray(e,3),r=t[0],a=t[1],n=t[2];return["G",.3*r+.59*a+.11*n]}},{key:"RGB_HTML",value:function(e){var t=_slicedToArray(e,3),a=t[0],n=t[1],i=t[2],o=r(a),s=r(n),l=r(i);return"#".concat(o).concat(s).concat(l)}},{key:"T_HTML",value:function(){return"#00000000"}},{key:"CMYK_RGB",value:function(e){var t=_slicedToArray(e,4),r=t[0],a=t[1],n=t[2],i=t[3];return["RGB",1-Math.min(1,r+i),1-Math.min(1,n+i),1-Math.min(1,a+i)]}},{key:"CMYK_HTML",value:function(e){var t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}},{key:"RGB_CMYK",value:function(e){var t=_slicedToArray(e,3),r=t[0],a=t[1],n=t[2],i=1-r,o=1-a,s=1-n,l=Math.min(i,o,s);return["CMYK",i,o,s,l]}}]),e}();t.ColorConverters=a},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var a=r(20),n=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"setupStorage",value:function(e,t,r,a,n){var i=a.getValue(t,{value:null});switch(r.name){case"textarea":if(null!==i.value&&(e.textContent=i.value),"print"===n)break;e.addEventListener("input",(function(e){a.setValue(t,{value:e.target.value})}));break;case"input":if("radio"===r.attributes.type||"checkbox"===r.attributes.type){if(i.value===r.attributes.xfaOn?e.setAttribute("checked",!0):i.value===r.attributes.xfaOff&&e.removeAttribute("checked"),"print"===n)break;e.addEventListener("change",(function(e){a.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})}))}else{if(null!==i.value&&e.setAttribute("value",i.value),"print"===n)break;e.addEventListener("input",(function(e){a.setValue(t,{value:e.target.value})}))}break;case"select":if(null!==i.value){var o,s=_createForOfIteratorHelper(r.children);try{for(s.s();!(o=s.n()).done;){var l=o.value;l.attributes.value===i.value&&(l.attributes.selected=!0)}}catch(c){s.e(c)}finally{s.f()}}e.addEventListener("input",(function(e){var r=e.target.options,n=-1===r.selectedIndex?"":r[r.selectedIndex].value;a.setValue(t,{value:n})}));break}}},{key:"setAttributes",value:function(e){var t=e.html,r=e.element,a=e.storage,n=void 0===a?null:a,i=e.intent,o=e.linkService,s=r.attributes,l=t instanceof HTMLAnchorElement;"radio"===s.type&&(s.name="".concat(s.name,"-").concat(i));for(var c=0,u=Object.entries(s);c<u.length;c++){var h=_slicedToArray(u[c],2),d=h[0],f=h[1];if(null!==f&&void 0!==f)switch(d){case"class":f.length&&t.setAttribute(d,f.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",f);break;case"style":Object.assign(t.style,f);break;case"textContent":t.textContent=f;break;default:(!l||"href"!==d&&"newWindow"!==d)&&t.setAttribute(d,f)}}l&&o.addLinkAttributes(t,s.href,s.newWindow),n&&s.dataId&&this.setupStorage(t,s.dataId,r,n)}},{key:"render",value:function(e){var t=e.annotationStorage,r=e.linkService,n=e.xfaHtml,i=e.intent||"display",o=document.createElement(n.name);n.attributes&&this.setAttributes({html:o,element:n,intent:i,linkService:r});var s=[[n,-1,o]],l=e.div;if(l.append(o),e.viewport){var c="matrix(".concat(e.viewport.transform.join(","),")");l.style.transform=c}"richText"!==i&&l.setAttribute("class","xfaLayer xfaFont");var u=[];while(s.length>0){var h,d=s.at(-1),f=_slicedToArray(d,3),p=f[0],v=f[1],g=f[2];if(v+1!==p.children.length){var m=p.children[++s.at(-1)[1]];if(null!==m){var y=m.name;if("#text"!==y){var b=void 0;if(b=null!==m&&void 0!==m&&null!==(h=m.attributes)&&void 0!==h&&h.xmlns?document.createElementNS(m.attributes.xmlns,y):document.createElement(y),g.append(b),m.attributes&&this.setAttributes({html:b,element:m,storage:t,intent:i,linkService:r}),m.children&&m.children.length>0)s.push([m,-1,b]);else if(m.value){var k=document.createTextNode(m.value);a.XfaText.shouldBuildText(y)&&u.push(k),b.append(k)}}else{var w=document.createTextNode(m.value);u.push(w),g.append(w)}}}else s.pop()}var _,S=_createForOfIteratorHelper(l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"));try{for(S.s();!(_=S.n()).done;){var x=_.value;x.setAttribute("readOnly",!0)}}catch(A){S.e(A)}finally{S.f()}return{textDivs:u}}},{key:"update",value:function(e){var t="matrix(".concat(e.viewport.transform.join(","),")");e.div.style.transform=t,e.div.hidden=!1}}]),e}();t.XfaLayer=n},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerRenderTask=void 0,t.renderTextLayer=y;var a=r(1),n=r(8),i=1e5,o=30,s=.8,l=new Map,c=/^\s+$/g;function u(e,t){var r=l.get(e);if(r)return r;t.save(),t.font="".concat(o,"px ").concat(e);var a=t.measureText(""),n=a.fontBoundingBoxAscent,i=Math.abs(a.fontBoundingBoxDescent);if(n){t.restore();var c=n/(n+i);return l.set(e,c),c}t.strokeStyle="red",t.clearRect(0,0,o,o),t.strokeText("g",0,0);var u=t.getImageData(0,0,o,o).data;i=0;for(var h=u.length-1-3;h>=0;h-=4)if(u[h]>0){i=Math.ceil(h/4/o);break}t.clearRect(0,0,o,o),t.strokeText("A",0,o),u=t.getImageData(0,0,o,o).data,n=0;for(var d=0,f=u.length;d<f;d+=4)if(u[d]>0){n=o-Math.floor(d/4/o);break}if(t.restore(),n){var p=n/(n+i);return l.set(e,p),p}return l.set(e,s),s}function h(e,t,r,n){var i=document.createElement("span"),o=e._enhanceTextSelection?{angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1,fontSize:0}:{angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,fontSize:0};e._textDivs.push(i);var s=a.Util.transform(e._viewport.transform,t.transform),l=Math.atan2(s[1],s[0]),h=r[t.fontName];h.vertical&&(l+=Math.PI/2);var d,f,p=Math.hypot(s[2],s[3]),v=p*u(h.fontFamily,n);0===l?(d=s[4],f=s[5]-v):(d=s[4]+v*Math.sin(l),f=s[5]-v*Math.cos(l)),i.style.left="".concat(d,"px"),i.style.top="".concat(f,"px"),i.style.fontSize="".concat(p,"px"),i.style.fontFamily=h.fontFamily,o.fontSize=p,i.setAttribute("role","presentation"),i.textContent=t.str,i.dir=t.dir,e._fontInspectorEnabled&&(i.dataset.fontName=t.fontName),0!==l&&(o.angle=l*(180/Math.PI));var g=!1;if(t.str.length>1||e._enhanceTextSelection&&c.test(t.str))g=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){var m=Math.abs(t.transform[0]),y=Math.abs(t.transform[3]);m!==y&&Math.max(m,y)/Math.min(m,y)>1.5&&(g=!0)}if(g&&(h.vertical?o.canvasWidth=t.height*e._viewport.scale:o.canvasWidth=t.width*e._viewport.scale),e._textDivProperties.set(i,o),e._textContentStream&&e._layoutText(i),e._enhanceTextSelection&&o.hasText){var b=1,k=0;0!==l&&(b=Math.cos(l),k=Math.sin(l));var w,_,S=(h.vertical?t.height:t.width)*e._viewport.scale,x=p;0!==l?(w=[b,k,-k,b,d,f],_=a.Util.getAxialAlignedBoundingBox([0,0,S,x],w)):_=[d,f,d+S,f+x],e._bounds.push({left:_[0],top:_[1],right:_[2],bottom:_[3],div:i,size:[S,x],m:w})}}function d(e){if(!e._canceled){var t=e._textDivs,r=e._capability,a=t.length;if(a>i)return e._renderingDone=!0,void r.resolve();if(!e._textContentStream)for(var n=0;n<a;n++)e._layoutText(t[n]);e._renderingDone=!0,r.resolve()}}function f(e,t,r){for(var a=0,n=0;n<r;n++){var i=e[t++];i>0&&(a=a?Math.min(i,a):i)}return a}function p(e){for(var t=e._bounds,r=e._viewport,n=v(r.width,r.height,t),i=0;i<n.length;i++){var o=t[i].div,s=e._textDivProperties.get(o);if(0!==s.angle){for(var l=n[i],c=t[i],u=c.m,h=u[0],d=u[1],p=[[0,0],[0,c.size[1]],[c.size[0],0],c.size],g=new Float64Array(64),m=0,y=p.length;m<y;m++){var b=a.Util.applyTransform(p[m],u);g[m+0]=h&&(l.left-b[0])/h,g[m+4]=d&&(l.top-b[1])/d,g[m+8]=h&&(l.right-b[0])/h,g[m+12]=d&&(l.bottom-b[1])/d,g[m+16]=d&&(l.left-b[0])/-d,g[m+20]=h&&(l.top-b[1])/h,g[m+24]=d&&(l.right-b[0])/-d,g[m+28]=h&&(l.bottom-b[1])/h,g[m+32]=h&&(l.left-b[0])/-h,g[m+36]=d&&(l.top-b[1])/-d,g[m+40]=h&&(l.right-b[0])/-h,g[m+44]=d&&(l.bottom-b[1])/-d,g[m+48]=d&&(l.left-b[0])/d,g[m+52]=h&&(l.top-b[1])/-h,g[m+56]=d&&(l.right-b[0])/d,g[m+60]=h&&(l.bottom-b[1])/-h}var k=1+Math.min(Math.abs(h),Math.abs(d));s.paddingLeft=f(g,32,16)/k,s.paddingTop=f(g,48,16)/k,s.paddingRight=f(g,0,16)/k,s.paddingBottom=f(g,16,16)/k,e._textDivProperties.set(o,s)}else s.paddingLeft=t[i].left-n[i].left,s.paddingTop=t[i].top-n[i].top,s.paddingRight=n[i].right-t[i].right,s.paddingBottom=n[i].bottom-t[i].bottom,e._textDivProperties.set(o,s)}}function v(e,t,r){var a=r.map((function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}}));g(e,a);var n,i=new Array(r.length),o=_createForOfIteratorHelper(a);try{for(o.s();!(n=o.n()).done;){var s=n.value,l=s.index;i[l]={left:s.x1New,top:0,right:s.x2New,bottom:0}}}catch(f){o.e(f)}finally{o.f()}r.map((function(t,r){var n=i[r],o=a[r];o.x1=t.top,o.y1=e-n.right,o.x2=t.bottom,o.y2=e-n.left,o.index=r,o.x1New=void 0,o.x2New=void 0})),g(t,a);var c,u=_createForOfIteratorHelper(a);try{for(u.s();!(c=u.n()).done;){var h=c.value,d=h.index;i[d].top=h.x1New,i[d].bottom=h.x2New}}catch(f){u.e(f)}finally{u.f()}return i}function g(e,t){t.sort((function(e,t){return e.x1-t.x1||e.index-t.index}));var r,a={x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0},n=[{start:-1/0,end:1/0,boundary:a}],i=_createForOfIteratorHelper(t);try{for(i.s();!(r=i.n()).done;){var o=r.value,s=0;while(s<n.length&&n[s].end<=o.y1)s++;var l=n.length-1;while(l>=0&&n[l].start>=o.y2)l--;var c=void 0,u=void 0,h=void 0,d=void 0,f=-1/0;for(h=s;h<=l;h++){c=n[h],u=c.boundary;var p=void 0;p=u.x2>o.x1?u.index>o.index?u.x1New:o.x1:void 0===u.x2New?(u.x2+o.x1)/2:u.x2New,p>f&&(f=p)}for(o.x1New=f,h=s;h<=l;h++)c=n[h],u=c.boundary,void 0===u.x2New?u.x2>o.x1?u.index>o.index&&(u.x2New=u.x2):u.x2New=f:u.x2New>f&&(u.x2New=Math.max(f,u.x2));var v=[],g=null;for(h=s;h<=l;h++){c=n[h],u=c.boundary;var m=u.x2>o.x2?u:o;g===m?v.at(-1).end=c.end:(v.push({start:c.start,end:c.end,boundary:m}),g=m)}for(n[s].start<o.y1&&(v[0].start=o.y1,v.unshift({start:n[s].start,end:o.y1,boundary:n[s].boundary})),o.y2<n[l].end&&(v.at(-1).end=o.y2,v.push({start:o.y2,end:n[l].end,boundary:n[l].boundary})),h=s;h<=l;h++)if(c=n[h],u=c.boundary,void 0===u.x2New){var y=!1;for(d=s-1;!y&&d>=0&&n[d].start>=u.y1;d--)y=n[d].boundary===u;for(d=l+1;!y&&d<n.length&&n[d].end<=u.y2;d++)y=n[d].boundary===u;for(d=0;!y&&d<v.length;d++)y=v[d].boundary===u;y||(u.x2New=f)}Array.prototype.splice.apply(n,[s,l-s+1].concat(v))}}catch(S){i.e(S)}finally{i.f()}for(var b=0,k=n;b<k.length;b++){var w=k[b],_=w.boundary;void 0===_.x2New&&(_.x2New=Math.max(e,_.x2))}}var m=function(){function e(t){var r,i=this,o=t.textContent,s=t.textContentStream,l=t.container,c=t.viewport,u=t.textDivs,h=t.textContentItemsStr,d=t.enhanceTextSelection;_classCallCheck(this,e),d&&(0,n.deprecated)("The `enhanceTextSelection` functionality will be removed in the future."),this._textContent=o,this._textContentStream=s,this._container=l,this._document=l.ownerDocument,this._viewport=c,this._textDivs=u||[],this._textContentItemsStr=h||[],this._enhanceTextSelection=!!d,this._fontInspectorEnabled=!(null===(r=globalThis.FontInspector)||void 0===r||!r.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,a.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._devicePixelRatio=globalThis.devicePixelRatio||1,this._capability.promise["finally"]((function(){i._enhanceTextSelection||(i._textDivProperties=null),i._layoutTextCtx&&(i._layoutTextCtx.canvas.width=0,i._layoutTextCtx.canvas.height=0,i._layoutTextCtx=null)}))["catch"]((function(){}))}return _createClass(e,[{key:"promise",get:function(){return this._capability.promise}},{key:"cancel",value:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new a.AbortException("TextLayer task cancelled."))["catch"]((function(){})),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}},{key:"_processItems",value:function(e,t){for(var r=0,a=e.length;r<a;r++)if(void 0!==e[r].str)this._textContentItemsStr.push(e[r].str),h(this,e[r],t,this._layoutTextCtx);else if("beginMarkedContentProps"===e[r].type||"beginMarkedContent"===e[r].type){var n=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==e[r].id&&this._container.setAttribute("id","".concat(e[r].id)),n.append(this._container)}else"endMarkedContent"===e[r].type&&(this._container=this._container.parentNode)}},{key:"_layoutText",value:function(e){var t=this._textDivProperties.get(e),r="";if(0!==t.canvasWidth&&t.hasText){var a=e.style.fontFamily,n=t.fontSize;n===this._layoutTextLastFontSize&&a===this._layoutTextLastFontFamily||(this._layoutTextCtx.font="".concat(n*this._devicePixelRatio,"px ").concat(a),this._layoutTextLastFontSize=n,this._layoutTextLastFontFamily=a);var i=this._layoutTextCtx.measureText(e.textContent),o=i.width;if(o>0){var s=this._devicePixelRatio*t.canvasWidth/o;this._enhanceTextSelection&&(t.scale=s),r="scaleX(".concat(s,")")}}if(0!==t.angle&&(r="rotate(".concat(t.angle,"deg) ").concat(r)),r.length>0&&(this._enhanceTextSelection&&(t.originalTransform=r),e.style.transform=r),t.hasText&&this._container.append(e),t.hasEOL){var l=document.createElement("br");l.setAttribute("role","presentation"),this._container.append(l)}}},{key:"_render",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=(0,a.createPromiseCapability)(),n=Object.create(null),i=this._document.createElement("canvas");if(i.height=i.width=o,this._layoutTextCtx=i.getContext("2d",{alpha:!1}),this._textContent){var s=this._textContent.items,l=this._textContent.styles;this._processItems(s,l),r.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');var c=function t(){e._reader.read().then((function(a){var i=a.value,o=a.done;o?r.resolve():(Object.assign(n,i.styles),e._processItems(i.items,n),t())}),r.reject)};this._reader=this._textContentStream.getReader(),c()}r.promise.then((function(){n=null,t?e._renderTimer=setTimeout((function(){d(e),e._renderTimer=null}),t):d(e)}),this._capability.reject)}},{key:"expandTextDivs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(p(this),this._bounds=null);for(var t=[],r=[],a=0,n=this._textDivs.length;a<n;a++){var i=this._textDivs[a],o=this._textDivProperties.get(i);o.hasText&&(e?(t.length=0,r.length=0,o.originalTransform&&t.push(o.originalTransform),o.paddingTop>0?(r.push("".concat(o.paddingTop,"px")),t.push("translateY(".concat(-o.paddingTop,"px)"))):r.push(0),o.paddingRight>0?r.push("".concat(o.paddingRight/o.scale,"px")):r.push(0),o.paddingBottom>0?r.push("".concat(o.paddingBottom,"px")):r.push(0),o.paddingLeft>0?(r.push("".concat(o.paddingLeft/o.scale,"px")),t.push("translateX(".concat(-o.paddingLeft/o.scale,"px)"))):r.push(0),i.style.padding=r.join(" "),t.length&&(i.style.transform=t.join(" "))):(i.style.padding=null,i.style.transform=o.originalTransform))}}}}]),e}();function y(e){var t=new m({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t}t.TextLayerRenderTask=m},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var a=r(8),n=r(1),i=r(3),o=_createClass((function e(){_classCallCheck(this,e),(0,n.unreachable)("Not implemented: SVGGraphics")}));t.SVGGraphics=o;var s=function(e){var t,r=[],a=[],n=_createForOfIteratorHelper(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;"save"!==i.fn?"restore"===i.fn?r=a.pop():r.push(i):(r.push({fnId:92,fn:"group",items:[]}),a.push(r),r=r.at(-1).items)}}catch(o){n.e(o)}finally{n.f()}return r},l=function(e){if(Number.isInteger(e))return e.toString();var t=e.toFixed(10),r=t.length-1;if("0"!==t[r])return t;do{r--}while("0"===t[r]);return t.substring(0,"."===t[r]?r:r+1)},c=function(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale(".concat(l(e[0])," ").concat(l(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){var t=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(l(t),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(l(e[4])," ").concat(l(e[5]),")");return"matrix(".concat(l(e[0])," ").concat(l(e[1])," ").concat(l(e[2])," ").concat(l(e[3])," ").concat(l(e[4])," ")+"".concat(l(e[5]),")")},u={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},h="http://www.w3.org/XML/1998/namespace",d="http://www.w3.org/1999/xlink",f=["butt","round","square"],p=["miter","round","bevel"],v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&"undefined"!==typeof Blob&&!r)return URL.createObjectURL(new Blob([e],{type:t}));for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="data:".concat(t,";base64,"),i=0,o=e.length;i<o;i+=3){var s=255&e[i],l=255&e[i+1],c=255&e[i+2],u=s>>2,h=(3&s)<<4|l>>4,d=i+1<o?(15&l)<<2|c>>6:64,f=i+2<o?63&c:64;n+=a[u]+a[h]+a[d]+a[f]}return n},g=function(){for(var e=new Uint8Array([137,80,78,71,13,10,26,10]),t=12,r=new Int32Array(256),a=0;a<256;a++){for(var o=a,s=0;s<8;s++)o=1&o?3988292384^o>>1&2147483647:o>>1&2147483647;r[a]=o}function l(e,t,a){for(var n=-1,i=t;i<a;i++){var o=255&(n^e[i]),s=r[o];n=n>>>8^s}return-1^n}function c(e,t,r,a){var n=a,i=t.length;r[n]=i>>24&255,r[n+1]=i>>16&255,r[n+2]=i>>8&255,r[n+3]=255&i,n+=4,r[n]=255&e.charCodeAt(0),r[n+1]=255&e.charCodeAt(1),r[n+2]=255&e.charCodeAt(2),r[n+3]=255&e.charCodeAt(3),n+=4,r.set(t,n),n+=t.length;var o=l(r,a+4,n);r[n]=o>>24&255,r[n+1]=o>>16&255,r[n+2]=o>>8&255,r[n+3]=255&o}function u(e,t,r){for(var a=1,n=0,i=t;i<r;++i)a=(a+(255&e[i]))%65521,n=(n+a)%65521;return n<<16|a}function h(e){if(!i.isNodeJS)return d(e);try{var t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);var r=__webpack_require__(2).deflateSync(t,{level:9});return r instanceof Uint8Array?r:new Uint8Array(r)}catch(a){(0,n.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+a)}return d(e)}function d(e){var t=e.length,r=65535,a=Math.ceil(t/r),n=new Uint8Array(2+t+5*a+4),i=0;n[i++]=120,n[i++]=156;var o=0;while(t>r)n[i++]=0,n[i++]=255,n[i++]=255,n[i++]=0,n[i++]=0,n.set(e.subarray(o,o+r),i),i+=r,o+=r,t-=r;n[i++]=1,n[i++]=255&t,n[i++]=t>>8&255,n[i++]=255&~t,n[i++]=(65535&~t)>>8&255,n.set(e.subarray(o),i),i+=e.length-o;var s=u(e,0,e.length);return n[i++]=s>>24&255,n[i++]=s>>16&255,n[i++]=s>>8&255,n[i++]=255&s,n}function f(r,a,i,o){var s,l,u,d=r.width,f=r.height,p=r.data;switch(a){case n.ImageKind.GRAYSCALE_1BPP:l=0,s=1,u=d+7>>3;break;case n.ImageKind.RGB_24BPP:l=2,s=8,u=3*d;break;case n.ImageKind.RGBA_32BPP:l=6,s=8,u=4*d;break;default:throw new Error("invalid format")}for(var g=new Uint8Array((1+u)*f),m=0,y=0,b=0;b<f;++b)g[m++]=0,g.set(p.subarray(y,y+u),m),y+=u,m+=u;if(a===n.ImageKind.GRAYSCALE_1BPP&&o){m=0;for(var k=0;k<f;k++){m++;for(var w=0;w<u;w++)g[m++]^=255}}var _=new Uint8Array([d>>24&255,d>>16&255,d>>8&255,255&d,f>>24&255,f>>16&255,f>>8&255,255&f,s,l,0,0,0]),S=h(g),x=e.length+3*t+_.length+S.length,A=new Uint8Array(x),C=0;return A.set(e,C),C+=e.length,c("IHDR",_,A,C),C+=t+_.length,c("IDATA",S,A,C),C+=t+S.length,c("IEND",new Uint8Array(0),A,C),v(A,"image/png",i)}return function(e,t,r){var a=void 0===e.kind?n.ImageKind.GRAYSCALE_1BPP:e.kind;return f(e,a,t,r)}}(),m=function(){function e(){_classCallCheck(this,e),this.fontSizeScale=1,this.fontWeight=u.fontWeight,this.fontSize=0,this.textMatrix=n.IDENTITY_MATRIX,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=n.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=u.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return _createClass(e,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(e,t){this.x=e,this.y=t}}]),e}(),y=0,b=0,k=0;t.SVGGraphics=o=function(){function e(t,r){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var o in _classCallCheck(this,e),(0,a.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new a.DOMSVGFactory,this.current=new m,this.transformMatrix=n.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=t,this.objs=r,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!i,this._operatorIdMapping=[],n.OPS)this._operatorIdMapping[n.OPS[o]]=o}return _createClass(e,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(e){this.save(),this.executeOpTree(e),this.restore()}},{key:"loadDependencies",value:function(e){for(var t=this,r=e.fnArray,a=e.argsArray,i=0,o=r.length;i<o;i++)if(r[i]===n.OPS.dependency){var s,l=_createForOfIteratorHelper(a[i]);try{var c=function(){var e=s.value,r=e.startsWith("g_")?t.commonObjs:t.objs,a=new Promise((function(t){r.get(e,t)}));t.current.dependencies.push(a)};for(l.s();!(s=l.n()).done;)c()}catch(u){l.e(u)}finally{l.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(e,t,r,a,i,o){var s=[e,t,r,a,i,o];this.transformMatrix=n.Util.transform(this.transformMatrix,s),this.tgrp=null}},{key:"getSVG",value:function(e,t){var r=this;this.viewport=t;var a=this._initialize(t);return this.loadDependencies(e).then((function(){return r.transformMatrix=n.IDENTITY_MATRIX,r.executeOpTree(r.convertOpList(e)),a}))}},{key:"convertOpList",value:function(e){for(var t=this._operatorIdMapping,r=e.argsArray,a=e.fnArray,n=[],i=0,o=a.length;i<o;i++){var l=a[i];n.push({fnId:l,fn:t[l],args:r[i]})}return s(n)}},{key:"executeOpTree",value:function(e){var t,r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){var a=t.value,i=a.fn,o=a.fnId,s=a.args;switch(0|o){case n.OPS.beginText:this.beginText();break;case n.OPS.dependency:break;case n.OPS.setLeading:this.setLeading(s);break;case n.OPS.setLeadingMoveText:this.setLeadingMoveText(s[0],s[1]);break;case n.OPS.setFont:this.setFont(s);break;case n.OPS.showText:this.showText(s[0]);break;case n.OPS.showSpacedText:this.showText(s[0]);break;case n.OPS.endText:this.endText();break;case n.OPS.moveText:this.moveText(s[0],s[1]);break;case n.OPS.setCharSpacing:this.setCharSpacing(s[0]);break;case n.OPS.setWordSpacing:this.setWordSpacing(s[0]);break;case n.OPS.setHScale:this.setHScale(s[0]);break;case n.OPS.setTextMatrix:this.setTextMatrix(s[0],s[1],s[2],s[3],s[4],s[5]);break;case n.OPS.setTextRise:this.setTextRise(s[0]);break;case n.OPS.setTextRenderingMode:this.setTextRenderingMode(s[0]);break;case n.OPS.setLineWidth:this.setLineWidth(s[0]);break;case n.OPS.setLineJoin:this.setLineJoin(s[0]);break;case n.OPS.setLineCap:this.setLineCap(s[0]);break;case n.OPS.setMiterLimit:this.setMiterLimit(s[0]);break;case n.OPS.setFillRGBColor:this.setFillRGBColor(s[0],s[1],s[2]);break;case n.OPS.setStrokeRGBColor:this.setStrokeRGBColor(s[0],s[1],s[2]);break;case n.OPS.setStrokeColorN:this.setStrokeColorN(s);break;case n.OPS.setFillColorN:this.setFillColorN(s);break;case n.OPS.shadingFill:this.shadingFill(s[0]);break;case n.OPS.setDash:this.setDash(s[0],s[1]);break;case n.OPS.setRenderingIntent:this.setRenderingIntent(s[0]);break;case n.OPS.setFlatness:this.setFlatness(s[0]);break;case n.OPS.setGState:this.setGState(s[0]);break;case n.OPS.fill:this.fill();break;case n.OPS.eoFill:this.eoFill();break;case n.OPS.stroke:this.stroke();break;case n.OPS.fillStroke:this.fillStroke();break;case n.OPS.eoFillStroke:this.eoFillStroke();break;case n.OPS.clip:this.clip("nonzero");break;case n.OPS.eoClip:this.clip("evenodd");break;case n.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case n.OPS.paintImageXObject:this.paintImageXObject(s[0]);break;case n.OPS.paintInlineImageXObject:this.paintInlineImageXObject(s[0]);break;case n.OPS.paintImageMaskXObject:this.paintImageMaskXObject(s[0]);break;case n.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(s[0],s[1]);break;case n.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case n.OPS.closePath:this.closePath();break;case n.OPS.closeStroke:this.closeStroke();break;case n.OPS.closeFillStroke:this.closeFillStroke();break;case n.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case n.OPS.nextLine:this.nextLine();break;case n.OPS.transform:this.transform(s[0],s[1],s[2],s[3],s[4],s[5]);break;case n.OPS.constructPath:this.constructPath(s[0],s[1]);break;case n.OPS.endPath:this.endPath();break;case 92:this.group(a.items);break;default:(0,n.warn)("Unimplemented operator ".concat(i));break}}}catch(l){r.e(l)}finally{r.f()}}},{key:"setWordSpacing",value:function(e){this.current.wordSpacing=e}},{key:"setCharSpacing",value:function(e){this.current.charSpacing=e}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(e,t,r,a,n,i){var o=this.current;o.textMatrix=o.lineMatrix=[e,t,r,a,n,i],o.textMatrixScale=Math.hypot(e,t),o.x=o.lineX=0,o.y=o.lineY=0,o.xcoords=[],o.ycoords=[],o.tspan=this.svgFactory.createElement("svg:tspan"),o.tspan.setAttributeNS(null,"font-family",o.fontFamily),o.tspan.setAttributeNS(null,"font-size","".concat(l(o.fontSize),"px")),o.tspan.setAttributeNS(null,"y",l(-o.y)),o.txtElement=this.svgFactory.createElement("svg:text"),o.txtElement.append(o.tspan)}},{key:"beginText",value:function(){var e=this.current;e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=n.IDENTITY_MATRIX,e.lineMatrix=n.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[],e.ycoords=[]}},{key:"moveText",value:function(e,t){var r=this.current;r.x=r.lineX+=e,r.y=r.lineY+=t,r.xcoords=[],r.ycoords=[],r.tspan=this.svgFactory.createElement("svg:tspan"),r.tspan.setAttributeNS(null,"font-family",r.fontFamily),r.tspan.setAttributeNS(null,"font-size","".concat(l(r.fontSize),"px")),r.tspan.setAttributeNS(null,"y",l(-r.y))}},{key:"showText",value:function(e){var t=this.current,r=t.font,a=t.fontSize;if(0!==a){var i,o=t.fontSizeScale,s=t.charSpacing,d=t.wordSpacing,f=t.fontDirection,p=t.textHScale*f,v=r.vertical,g=v?1:-1,m=r.defaultVMetrics,y=a*t.fontMatrix[0],b=0,k=_createForOfIteratorHelper(e);try{for(k.s();!(i=k.n()).done;){var w=i.value;if(null!==w)if("number"!==typeof w){var _=(w.isSpace?d:0)+s,S=w.fontChar,x=void 0,A=void 0,C=w.width;if(v){var F=void 0,P=w.vmetric||m;F=w.vmetric?P[1]:.5*C,F=-F*y;var T=P[2]*y;C=P?-P[0]:C,x=F/o,A=(b+T)/o}else x=b/o,A=0;(w.isInFont||r.missingFile)&&(t.xcoords.push(t.x+x),v&&t.ycoords.push(-t.y+A),t.tspan.textContent+=S);var O=void 0;O=v?C*y-_*f:C*y+_*f,b+=O}else b+=g*w*a/1e3;else b+=f*d}}catch(R){k.e(R)}finally{k.f()}t.tspan.setAttributeNS(null,"x",t.xcoords.map(l).join(" ")),v?t.tspan.setAttributeNS(null,"y",t.ycoords.map(l).join(" ")):t.tspan.setAttributeNS(null,"y",l(-t.y)),v?t.y-=b:t.x+=b*p,t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size","".concat(l(t.fontSize),"px")),t.fontStyle!==u.fontStyle&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==u.fontWeight&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight);var I=t.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;if(I===n.TextRenderingMode.FILL||I===n.TextRenderingMode.FILL_STROKE?(t.fillColor!==u.fillColor&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.fillAlpha<1&&t.tspan.setAttributeNS(null,"fill-opacity",t.fillAlpha)):t.textRenderingMode===n.TextRenderingMode.ADD_TO_PATH?t.tspan.setAttributeNS(null,"fill","transparent"):t.tspan.setAttributeNS(null,"fill","none"),I===n.TextRenderingMode.STROKE||I===n.TextRenderingMode.FILL_STROKE){var E=1/(t.textMatrixScale||1);this._setStrokeAttributes(t.tspan,E)}var M=t.textMatrix;0!==t.textRise&&(M=M.slice(),M[5]+=t.textRise),t.txtElement.setAttributeNS(null,"transform","".concat(c(M)," scale(").concat(l(p),", -1)")),t.txtElement.setAttributeNS(h,"xml:space","preserve"),t.txtElement.append(t.tspan),t.txtgrp.append(t.txtElement),this._ensureTransformGroup().append(t.txtElement)}}},{key:"setLeadingMoveText",value:function(e,t){this.setLeading(-t),this.moveText(e,t)}},{key:"addFontStyle",value:function(e){if(!e.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle));var t=v(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(e.loadedName,'";')+" src: url(".concat(t,"); }\n")}},{key:"setFont",value:function(e){var t=this.current,r=this.commonObjs.get(e[0]),a=e[1];t.font=r,!this.embedFonts||r.missingFile||this.embeddedFonts[r.loadedName]||(this.addFontStyle(r),this.embeddedFonts[r.loadedName]=r),t.fontMatrix=r.fontMatrix||n.FONT_IDENTITY_MATRIX;var i="normal";r.black?i="900":r.bold&&(i="bold");var o=r.italic?"italic":"normal";a<0?(a=-a,t.fontDirection=-1):t.fontDirection=1,t.fontSize=a,t.fontFamily=r.loadedName,t.fontWeight=i,t.fontStyle=o,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",l(-t.y)),t.xcoords=[],t.ycoords=[]}},{key:"endText",value:function(){var e,t=this.current;t.textRenderingMode&n.TextRenderingMode.ADD_TO_PATH_FLAG&&null!==(e=t.txtElement)&&void 0!==e&&e.hasChildNodes()&&(t.element=t.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(e){e>0&&(this.current.lineWidth=e)}},{key:"setLineCap",value:function(e){this.current.lineCap=f[e]}},{key:"setLineJoin",value:function(e){this.current.lineJoin=p[e]}},{key:"setMiterLimit",value:function(e){this.current.miterLimit=e}},{key:"setStrokeAlpha",value:function(e){this.current.strokeAlpha=e}},{key:"setStrokeRGBColor",value:function(e,t,r){this.current.strokeColor=n.Util.makeHexColor(e,t,r)}},{key:"setFillAlpha",value:function(e){this.current.fillAlpha=e}},{key:"setFillRGBColor",value:function(e,t,r){this.current.fillColor=n.Util.makeHexColor(e,t,r),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(e){this.current.strokeColor=this._makeColorN_Pattern(e)}},{key:"setFillColorN",value:function(e){this.current.fillColor=this._makeColorN_Pattern(e)}},{key:"shadingFill",value:function(e){var t=this.viewport.width,r=this.viewport.height,a=n.Util.inverseTransform(this.transformMatrix),i=n.Util.applyTransform([0,0],a),o=n.Util.applyTransform([0,r],a),s=n.Util.applyTransform([t,0],a),l=n.Util.applyTransform([t,r],a),c=Math.min(i[0],o[0],s[0],l[0]),u=Math.min(i[1],o[1],s[1],l[1]),h=Math.max(i[0],o[0],s[0],l[0]),d=Math.max(i[1],o[1],s[1],l[1]),f=this.svgFactory.createElement("svg:rect");f.setAttributeNS(null,"x",c),f.setAttributeNS(null,"y",u),f.setAttributeNS(null,"width",h-c),f.setAttributeNS(null,"height",d-u),f.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&f.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(f)}},{key:"_makeColorN_Pattern",value:function(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}},{key:"_makeTilingPattern",value:function(e){var t=e[1],r=e[2],a=e[3]||n.IDENTITY_MATRIX,i=_slicedToArray(e[4],4),o=i[0],s=i[1],l=i[2],c=i[3],u=e[5],h=e[6],d=e[7],f="shading".concat(k++),p=n.Util.normalizeRect([].concat(_toConsumableArray(n.Util.applyTransform([o,s],a)),_toConsumableArray(n.Util.applyTransform([l,c],a)))),v=_slicedToArray(p,4),g=v[0],m=v[1],y=v[2],b=v[3],w=n.Util.singularValueDecompose2dScale(a),_=_slicedToArray(w,2),S=_[0],x=_[1],A=u*S,C=h*x,F=this.svgFactory.createElement("svg:pattern");F.setAttributeNS(null,"id",f),F.setAttributeNS(null,"patternUnits","userSpaceOnUse"),F.setAttributeNS(null,"width",A),F.setAttributeNS(null,"height",C),F.setAttributeNS(null,"x","".concat(g)),F.setAttributeNS(null,"y","".concat(m));var P=this.svg,T=this.transformMatrix,O=this.current.fillColor,I=this.current.strokeColor,E=this.svgFactory.create(y-g,b-m);if(this.svg=E,this.transformMatrix=a,2===d){var M,R=(M=n.Util).makeHexColor.apply(M,_toConsumableArray(t));this.current.fillColor=R,this.current.strokeColor=R}return this.executeOpTree(this.convertOpList(r)),this.svg=P,this.transformMatrix=T,this.current.fillColor=O,this.current.strokeColor=I,F.append(E.childNodes[0]),this.defs.append(F),"url(#".concat(f,")")}},{key:"_makeShadingPattern",value:function(e){switch("string"===typeof e&&(e=this.objs.get(e)),e[0]){case"RadialAxial":var t,r="shading".concat(k++),a=e[3];switch(e[1]){case"axial":var i=e[4],o=e[5];t=this.svgFactory.createElement("svg:linearGradient"),t.setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"x1",i[0]),t.setAttributeNS(null,"y1",i[1]),t.setAttributeNS(null,"x2",o[0]),t.setAttributeNS(null,"y2",o[1]);break;case"radial":var s=e[4],l=e[5],c=e[6],u=e[7];t=this.svgFactory.createElement("svg:radialGradient"),t.setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"cx",l[0]),t.setAttributeNS(null,"cy",l[1]),t.setAttributeNS(null,"r",u),t.setAttributeNS(null,"fx",s[0]),t.setAttributeNS(null,"fy",s[1]),t.setAttributeNS(null,"fr",c);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}var h,d=_createForOfIteratorHelper(a);try{for(d.s();!(h=d.n()).done;){var f=h.value,p=this.svgFactory.createElement("svg:stop");p.setAttributeNS(null,"offset",f[0]),p.setAttributeNS(null,"stop-color",f[1]),t.append(p)}}catch(v){d.e(v)}finally{d.f()}return this.defs.append(t),"url(#".concat(r,")");case"Mesh":return(0,n.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}},{key:"setDash",value:function(e,t){this.current.dashArray=e,this.current.dashPhase=t}},{key:"constructPath",value:function(e,t){var r,a=this.current,i=a.x,o=a.y,s=[],c=0,u=_createForOfIteratorHelper(e);try{for(u.s();!(r=u.n()).done;){var h=r.value;switch(0|h){case n.OPS.rectangle:i=t[c++],o=t[c++];var d=t[c++],f=t[c++],p=i+d,v=o+f;s.push("M",l(i),l(o),"L",l(p),l(o),"L",l(p),l(v),"L",l(i),l(v),"Z");break;case n.OPS.moveTo:i=t[c++],o=t[c++],s.push("M",l(i),l(o));break;case n.OPS.lineTo:i=t[c++],o=t[c++],s.push("L",l(i),l(o));break;case n.OPS.curveTo:i=t[c+4],o=t[c+5],s.push("C",l(t[c]),l(t[c+1]),l(t[c+2]),l(t[c+3]),l(i),l(o)),c+=6;break;case n.OPS.curveTo2:s.push("C",l(i),l(o),l(t[c]),l(t[c+1]),l(t[c+2]),l(t[c+3])),i=t[c+2],o=t[c+3],c+=4;break;case n.OPS.curveTo3:i=t[c+2],o=t[c+3],s.push("C",l(t[c]),l(t[c+1]),l(i),l(o),l(i),l(o)),c+=4;break;case n.OPS.closePath:s.push("Z");break}}}catch(g){u.e(g)}finally{u.f()}s=s.join(" "),a.path&&e.length>0&&e[0]!==n.OPS.rectangle&&e[0]!==n.OPS.moveTo?s=a.path.getAttributeNS(null,"d")+s:(a.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(a.path)),a.path.setAttributeNS(null,"d",s),a.path.setAttributeNS(null,"fill","none"),a.element=a.path,a.setCurrentPoint(i,o)}},{key:"endPath",value:function(){var e=this.current;if(e.path=null,this.pendingClip)if(e.element){var t="clippath".concat(y++),r=this.svgFactory.createElement("svg:clipPath");r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"transform",c(this.transformMatrix));var a=e.element.cloneNode(!0);if("evenodd"===this.pendingClip?a.setAttributeNS(null,"clip-rule","evenodd"):a.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,r.append(a),this.defs.append(r),e.activeClipUrl){e.clipGroup=null;var n,i=_createForOfIteratorHelper(this.extraStack);try{for(i.s();!(n=i.n()).done;){var o=n.value;o.clipGroup=null}}catch(s){i.e(s)}finally{i.f()}r.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}else this.pendingClip=null}},{key:"clip",value:function(e){this.pendingClip=e}},{key:"closePath",value:function(){var e=this.current;if(e.path){var t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}},{key:"setLeading",value:function(e){this.current.leading=-e}},{key:"setTextRise",value:function(e){this.current.textRise=e}},{key:"setTextRenderingMode",value:function(e){this.current.textRenderingMode=e}},{key:"setHScale",value:function(e){this.current.textHScale=e/100}},{key:"setRenderingIntent",value:function(e){}},{key:"setFlatness",value:function(e){}},{key:"setGState",value:function(e){var t,r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){var a=_slicedToArray(t.value,2),i=a[0],o=a[1];switch(i){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o);break;case"CA":this.setStrokeAlpha(o);break;case"ca":this.setFillAlpha(o);break;default:(0,n.warn)("Unimplemented graphic state operator ".concat(i));break}}}catch(s){r.e(s)}finally{r.f()}}},{key:"fill",value:function(){var e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this.current,a=r.dashArray;1!==t&&a.length>0&&(a=a.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",r.strokeColor),e.setAttributeNS(null,"stroke-opacity",r.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",l(r.miterLimit)),e.setAttributeNS(null,"stroke-linecap",r.lineCap),e.setAttributeNS(null,"stroke-linejoin",r.lineJoin),e.setAttributeNS(null,"stroke-width",l(t*r.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",a.map(l).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",l(t*r.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(e)}},{key:"paintImageXObject",value:function(e){var t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,n.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(e,t){var r=e.width,a=e.height,n=g(e,this.forceDataSchema,!!t),i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y","0"),i.setAttributeNS(null,"width",l(r)),i.setAttributeNS(null,"height",l(a)),this.current.element=i,this.clip("nonzero");var o=this.svgFactory.createElement("svg:image");o.setAttributeNS(d,"xlink:href",n),o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y",l(-a)),o.setAttributeNS(null,"width",l(r)+"px"),o.setAttributeNS(null,"height",l(a)+"px"),o.setAttributeNS(null,"transform","scale(".concat(l(1/r)," ").concat(l(-1/a),")")),t?t.append(o):this._ensureTransformGroup().append(o)}},{key:"paintImageMaskXObject",value:function(e){var t=this.current,r=e.width,a=e.height,n=t.fillColor;t.maskId="mask".concat(b++);var i=this.svgFactory.createElement("svg:mask");i.setAttributeNS(null,"id",t.maskId);var o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",l(r)),o.setAttributeNS(null,"height",l(a)),o.setAttributeNS(null,"fill",n),o.setAttributeNS(null,"mask","url(#".concat(t.maskId,")")),this.defs.append(i),this._ensureTransformGroup().append(o),this.paintInlineImageXObject(e,i)}},{key:"paintFormXObjectBegin",value:function(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){var r=t[2]-t[0],a=t[3]-t[1],n=this.svgFactory.createElement("svg:rect");n.setAttributeNS(null,"x",t[0]),n.setAttributeNS(null,"y",t[1]),n.setAttributeNS(null,"width",l(r)),n.setAttributeNS(null,"height",l(a)),this.current.element=n,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(e){var t=this.svgFactory.create(e.width,e.height),r=this.svgFactory.createElement("svg:defs");t.append(r),this.defs=r;var a=this.svgFactory.createElement("svg:g");return a.setAttributeNS(null,"transform",c(e.transform)),t.append(a),this.svg=a,t}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(e),this.current.clipGroup=e}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",c(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var a=r(1),n=r(33),i=__webpack_require__(0),o=__webpack_require__(3),s=__webpack_require__(4),l=__webpack_require__(5),c=/^file:\/\/\/[a-zA-Z]:\//;function u(e){var t=l.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?l.parse("file:///".concat(e)):(t.host||(t.protocol="file:"),t)}var h=function(){function e(t){_classCallCheck(this,e),this.source=t,this.url=u(t.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return _createClass(e,[{key:"_progressiveDataLength",get:function(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}},{key:"getFullReader",value:function(){return(0,a.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new m(this):new v(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=this.isFsUrl?new y(this,e,t):new g(this,e,t);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t,r=_createForOfIteratorHelper(this._rangeRequestReaders.slice(0));try{for(r.s();!(t=r.n()).done;){var a=t.value;a.cancel(e)}}catch(n){r.e(n)}finally{r.f()}}}]),e}();t.PDFNodeStream=h;var d=function(){function e(t){_classCallCheck(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;var r=t.source;this._contentLength=r.length,this._loaded=0,this._filename=null,this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._readableStream=null,this._readCapability=(0,a.createPromiseCapability)(),this._headersCapability=(0,a.createPromiseCapability)()}return _createClass(e,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(t=this._readableStream.read(),null!==t){e.next=10;break}return this._readCapability=(0,a.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),r=new Uint8Array(t).buffer,e.abrupt("return",{value:r,done:!1});case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new a.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}]),e}(),f=function(){function e(t){_classCallCheck(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,a.createPromiseCapability)();var r=t.source;this._isStreamingSupported=!r.disableStream}return _createClass(e,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(t=this._readableStream.read(),null!==t){e.next=10;break}return this._readCapability=(0,a.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded}),r=new Uint8Array(t).buffer,e.abrupt("return",{value:r,done:!1});case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}]),e}();function p(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}var v=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var i;_classCallCheck(this,r),i=t.call(this,e);var l=function(t){if(404===t.statusCode){var r=new a.MissingPDFException('Missing PDF "'.concat(i._url,'".'));return i._storedError=r,void i._headersCapability.reject(r)}i._headersCapability.resolve(),i._setReadableStream(t);var o=function(e){return i._readableStream.headers[e.toLowerCase()]},s=(0,n.validateRangeRequestCapabilities)({getResponseHeader:o,isHttp:e.isHttp,rangeChunkSize:i._rangeChunkSize,disableRange:i._disableRange}),l=s.allowRangeRequests,c=s.suggestedLength;i._isRangeSupported=l,i._contentLength=c||i._contentLength,i._filename=(0,n.extractFilenameFromHeader)(o)};return i._request=null,"http:"===i._url.protocol?i._request=o.request(p(i._url,e.httpHeaders),l):i._request=s.request(p(i._url,e.httpHeaders),l),i._request.on("error",(function(e){i._storedError=e,i._headersCapability.reject(e)})),i._request.end(),i}return _createClass(r)}(d),g=function(e){_inherits(r,e);var t=_createSuper(r);function r(e,n,i){var l;for(var c in _classCallCheck(this,r),l=t.call(this,e),l._httpHeaders={},e.httpHeaders){var u=e.httpHeaders[c];"undefined"!==typeof u&&(l._httpHeaders[c]=u)}l._httpHeaders.Range="bytes=".concat(n,"-").concat(i-1);var h=function(e){if(404!==e.statusCode)l._setReadableStream(e);else{var t=new a.MissingPDFException('Missing PDF "'.concat(l._url,'".'));l._storedError=t}};return l._request=null,"http:"===l._url.protocol?l._request=o.request(p(l._url,l._httpHeaders),h):l._request=s.request(p(l._url,l._httpHeaders),h),l._request.on("error",(function(e){l._storedError=e})),l._request.end(),l}return _createClass(r)}(f),m=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var n;_classCallCheck(this,r),n=t.call(this,e);var o=decodeURIComponent(n._url.path);return c.test(n._url.href)&&(o=o.replace(/^\//,"")),i.lstat(o,(function(e,t){if(e)return"ENOENT"===e.code&&(e=new a.MissingPDFException('Missing PDF "'.concat(o,'".'))),n._storedError=e,void n._headersCapability.reject(e);n._contentLength=t.size,n._setReadableStream(i.createReadStream(o)),n._headersCapability.resolve()})),n}return _createClass(r)}(d),y=function(e){_inherits(r,e);var t=_createSuper(r);function r(e,a,n){var o;_classCallCheck(this,r),o=t.call(this,e);var s=decodeURIComponent(o._url.path);return c.test(o._url.href)&&(s=s.replace(/^\//,"")),o._setReadableStream(i.createReadStream(s,{start:a,end:n-1})),o}return _createClass(r)}(f)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=l,t.extractFilenameFromHeader=s,t.validateRangeRequestCapabilities=o,t.validateResponseStatus=c;var a=r(1),n=r(34),i=r(8);function o(e){var t=e.getResponseHeader,r=e.isHttp,a=e.rangeChunkSize,n=e.disableRange,i={allowRangeRequests:!1,suggestedLength:void 0},o=parseInt(t("Content-Length"),10);if(!Number.isInteger(o))return i;if(i.suggestedLength=o,o<=2*a)return i;if(n||!r)return i;if("bytes"!==t("Accept-Ranges"))return i;var s=t("Content-Encoding")||"identity";return"identity"!==s||(i.allowRangeRequests=!0),i}function s(e){var t=e("Content-Disposition");if(t){var r=(0,n.getFilenameFromContentDispositionHeader)(t);if(r.includes("%"))try{r=decodeURIComponent(r)}catch(a){}if((0,i.isPdfFile)(r))return r}return null}function l(e,t){return 404===e||0===e&&t.startsWith("file:")?new a.MissingPDFException('Missing PDF "'+t+'".'):new a.UnexpectedResponseException("Unexpected server response (".concat(e,') while retrieving PDF "').concat(t,'".'),e)}function c(e){return 200===e||206===e}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=n;var a=r(1);function n(e){var t=!0,r=s("filename\\*","i").exec(e);if(r){r=r[1];var n=h(r);return n=unescape(n),n=d(n),n=f(n),c(n)}if(r=u(e),r){var i=f(r);return c(i)}if(r=s("filename","i").exec(e),r){r=r[1];var o=h(r);return o=f(o),c(o)}function s(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function l(e,r){if(e){if(!/^[\x00-\xFF]+$/.test(r))return r;try{var n=new TextDecoder(e,{fatal:!0}),i=(0,a.stringToBytes)(r);r=n.decode(i),t=!1}catch(o){}}return r}function c(e){return t&&/[\x80-\xff]/.test(e)&&(e=l("utf-8",e),t&&(e=l("iso-8859-1",e))),e}function u(e){var t,r=[],a=s("filename\\*((?!0\\d)\\d+)(\\*?)","ig");while(null!==(t=a.exec(e))){var n=t,i=_slicedToArray(n,4),o=i[1],l=i[2],c=i[3];if(o=parseInt(o,10),o in r){if(0===o)break}else r[o]=[l,c]}for(var u=[],f=0;f<r.length;++f){if(!(f in r))break;var p=_slicedToArray(r[f],2),v=p[0],g=p[1];g=h(g),v&&(g=unescape(g),0===f&&(g=d(g))),u.push(g)}return u.join("")}function h(e){if(e.startsWith('"')){for(var t=e.slice(1).split('\\"'),r=0;r<t.length;++r){var a=t[r].indexOf('"');-1!==a&&(t[r]=t[r].slice(0,a),t.length=r+1),t[r]=t[r].replace(/\\(.)/g,"$1")}e=t.join('"')}return e}function d(e){var t=e.indexOf("'");if(-1===t)return e;var r=e.slice(0,t),a=e.slice(t+1),n=a.replace(/^[^']*'/,"");return l(r,n)}function f(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,(function(e,t,r,a){if("q"===r||"Q"===r)return a=a.replace(/_/g," "),a=a.replace(/=([0-9a-fA-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})),l(t,a);try{a=atob(a)}catch(n){}return l(t,a)}))}return""}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var a=r(1),n=r(33),i=200,o=206;function s(e){var t=e.response;if("string"!==typeof t)return t;var r=(0,a.stringToBytes)(t);return r.buffer}var l=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,e),this.url=t,this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&r.httpHeaders||Object.create(null),this.withCredentials=r.withCredentials||!1,this.getXhr=r.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return _createClass(e,[{key:"requestRange",value:function(e,t,r){var a={begin:e,end:t};for(var n in r)a[n]=r[n];return this.request(a)}},{key:"requestFull",value:function(e){return this.request(e)}},{key:"request",value:function(e){var t=this.getXhr(),r=this.currXhrId++,a=this.pendingRequests[r]={xhr:t};for(var n in t.open("GET",this.url),t.withCredentials=this.withCredentials,this.httpHeaders){var s=this.httpHeaders[n];"undefined"!==typeof s&&t.setRequestHeader(n,s)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),a.expectedStatus=o):a.expectedStatus=i,t.responseType="arraybuffer",e.onError&&(t.onerror=function(r){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,r),t.onprogress=this.onProgress.bind(this,r),a.onHeadersReceived=e.onHeadersReceived,a.onDone=e.onDone,a.onError=e.onError,a.onProgress=e.onProgress,t.send(null),r}},{key:"onProgress",value:function(e,t){var r,a=this.pendingRequests[e];a&&(null===(r=a.onProgress)||void 0===r||r.call(a,t))}},{key:"onStateChange",value:function(e,t){var r=this.pendingRequests[e];if(r){var a=r.xhr;if(a.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4===a.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===a.status&&this.isHttp){var n;null===(n=r.onError)||void 0===n||n.call(r,a.status)}else{var l=a.status||i,c=l===i&&r.expectedStatus===o;if(c||l===r.expectedStatus){var u=s(a);if(l===o){var h=a.getResponseHeader("Content-Range"),d=/bytes (\d+)-(\d+)\/(\d+)/.exec(h);r.onDone({begin:parseInt(d[1],10),chunk:u})}else if(u)r.onDone({begin:0,chunk:u});else{var f;null===(f=r.onError)||void 0===f||f.call(r,a.status)}}else{var p;null===(p=r.onError)||void 0===p||p.call(r,a.status)}}}}},{key:"getRequestXhr",value:function(e){return this.pendingRequests[e].xhr}},{key:"isPendingRequest",value:function(e){return e in this.pendingRequests}},{key:"abortRequest",value:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}]),e}(),c=function(){function e(t){_classCallCheck(this,e),this._source=t,this._manager=new l(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return _createClass(e,[{key:"_onRangeRequestReaderClosed",value:function(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}},{key:"getFullReader",value:function(){return(0,a.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new u(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var r=new h(this._manager,e,t);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);var r,a=_createForOfIteratorHelper(this._rangeRequestReaders.slice(0));try{for(a.s();!(r=a.n()).done;){var n=r.value;n.cancel(e)}}catch(i){a.e(i)}finally{a.f()}}}]),e}();t.PDFNetworkStream=c;var u=function(){function e(t,r){_classCallCheck(this,e),this._manager=t;var n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=r.url,this._fullRequestId=t.requestFull(n),this._headersReceivedCapability=(0,a.createPromiseCapability)(),this._disableRange=r.disableRange||!1,this._contentLength=r.length,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return _createClass(e,[{key:"_onHeadersReceived",value:function(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),r=function(e){return t.getResponseHeader(e)},a=(0,n.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),i=a.allowRangeRequests,o=a.suggestedLength;i&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=(0,n.extractFilenameFromHeader)(r),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(e){if(e)if(this._requests.length>0){var t=this._requests.shift();t.resolve({value:e.chunk,done:!1})}else this._cachedChunks.push(e.chunk);if(this._done=!0,!(this._cachedChunks.length>0)){var r,a=_createForOfIteratorHelper(this._requests);try{for(a.s();!(r=a.n()).done;){var n=r.value;n.resolve({value:void 0,done:!0})}}catch(i){a.e(i)}finally{a.f()}this._requests.length=0}}},{key:"_onError",value:function(e){this._storedError=(0,n.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError);var t,r=_createForOfIteratorHelper(this._requests);try{for(r.s();!(t=r.n()).done;){var a=t.value;a.reject(this._storedError)}}catch(i){r.e(i)}finally{r.f()}this._requests.length=0,this._cachedChunks.length=0}},{key:"_onProgress",value:function(e){var t;null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this._storedError){e.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){e.next=5;break}return t=this._cachedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 5:if(!this._done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return r=(0,a.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._headersReceivedCapability.reject(e);var t,r=_createForOfIteratorHelper(this._requests);try{for(r.s();!(t=r.n()).done;){var a=t.value;a.resolve({value:void 0,done:!0})}}catch(n){r.e(n)}finally{r.f()}this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}]),e}(),h=function(){function e(t,r,a){_classCallCheck(this,e),this._manager=t;var n={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._requestId=t.requestRange(r,a,n),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}return _createClass(e,[{key:"_close",value:function(){var e;null===(e=this.onClosed)||void 0===e||e.call(this,this)}},{key:"_onDone",value:function(e){var t=e.chunk;if(this._requests.length>0){var r=this._requests.shift();r.resolve({value:t,done:!1})}else this._queuedChunk=t;this._done=!0;var a,n=_createForOfIteratorHelper(this._requests);try{for(n.s();!(a=n.n()).done;){var i=a.value;i.resolve({value:void 0,done:!0})}}catch(o){n.e(o)}finally{n.f()}this._requests.length=0,this._close()}},{key:"_onError",value:function(e){this._storedError=(0,n.createResponseStatusError)(e,this._url);var t,r=_createForOfIteratorHelper(this._requests);try{for(r.s();!(t=r.n()).done;){var a=t.value;a.reject(this._storedError)}}catch(i){r.e(i)}finally{r.f()}this._requests.length=0,this._queuedChunk=null}},{key:"_onProgress",value:function(e){var t;this.isStreamingSupported||(null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded}))}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this._storedError){e.next=2;break}throw this._storedError;case 2:if(null===this._queuedChunk){e.next=6;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 6:if(!this._done){e.next=8;break}return e.abrupt("return",{value:void 0,done:!0});case 8:return r=(0,a.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0;var t,r=_createForOfIteratorHelper(this._requests);try{for(r.s();!(t=r.n()).done;){var a=t.value;a.resolve({value:void 0,done:!0})}}catch(n){r.e(n)}finally{r.f()}this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var a=r(1),n=r(33);function i(e,t,r){return{method:"GET",headers:e,signal:r.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function o(e){var t=new Headers;for(var r in e){var a=e[r];"undefined"!==typeof a&&t.append(r,a)}return t}var s=function(){function e(t){_classCallCheck(this,e),this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return _createClass(e,[{key:"_progressiveDataLength",get:function(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}},{key:"getFullReader",value:function(){return(0,a.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new l(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=new c(this,e,t);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t,r=_createForOfIteratorHelper(this._rangeRequestReaders.slice(0));try{for(r.s();!(t=r.n()).done;){var a=t.value;a.cancel(e)}}catch(n){r.e(n)}finally{r.f()}}}]),e}();t.PDFFetchStream=s;var l=function(){function e(t){var r=this;_classCallCheck(this,e),this._stream=t,this._reader=null,this._loaded=0,this._filename=null;var s=t.source;this._withCredentials=s.withCredentials||!1,this._contentLength=s.length,this._headersCapability=(0,a.createPromiseCapability)(),this._disableRange=s.disableRange||!1,this._rangeChunkSize=s.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!s.disableStream,this._isRangeSupported=!s.disableRange,this._headers=o(this._stream.httpHeaders);var l=s.url;fetch(l,i(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,n.validateResponseStatus)(e.status))throw(0,n.createResponseStatusError)(e.status,l);r._reader=e.body.getReader(),r._headersCapability.resolve();var t=function(t){return e.headers.get(t)},i=(0,n.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:r._stream.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),o=i.allowRangeRequests,s=i.suggestedLength;r._isRangeSupported=o,r._contentLength=s||r._contentLength,r._filename=(0,n.extractFilenameFromHeader)(t),!r._isStreamingSupported&&r._isRangeSupported&&r.cancel(new a.AbortException("Streaming is disabled."))}))["catch"](this._headersCapability.reject),this.onProgress=null}return _createClass(e,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,a,n;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._headersCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,r=t.value,a=t.done,!a){e.next=9;break}return e.abrupt("return",{value:r,done:a});case 9:return this._loaded+=r.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),n=new Uint8Array(r).buffer,e.abrupt("return",{value:n,done:!1});case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController.abort()}}]),e}(),c=function(){function e(t,r,s){var l=this;_classCallCheck(this,e),this._stream=t,this._reader=null,this._loaded=0;var c=t.source;this._withCredentials=c.withCredentials||!1,this._readCapability=(0,a.createPromiseCapability)(),this._isStreamingSupported=!c.disableStream,this._abortController=new AbortController,this._headers=o(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(r,"-").concat(s-1));var u=c.url;fetch(u,i(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,n.validateResponseStatus)(e.status))throw(0,n.createResponseStatusError)(e.status,u);l._readCapability.resolve(),l._reader=e.body.getReader()}))["catch"](this._readCapability.reject),this.onProgress=null}return _createClass(e,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,a,n;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,r=t.value,a=t.done,!a){e.next=9;break}return e.abrupt("return",{value:r,done:a});case 9:return this._loaded+=r.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),n=new Uint8Array(r).buffer,e.abrupt("return",{value:n,done:!1});case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController.abort()}}]),e}()}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__w_pdfjs_require__),r.exports}var __webpack_exports__={};return function(){var e=__webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return n.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return t.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return t.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return i.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return o.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return s.GlobalWorkerOptions}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"LoopbackPort",{enumerable:!0,get:function(){return r.LoopbackPort}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return r.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return a.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return r.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return a.PixelsPerInch}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return a.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return u.SVGGraphics}}),Object.defineProperty(e,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return t.UNSUPPORTED_FEATURES}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return h.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return r.build}}),Object.defineProperty(e,"createPromiseCapability",{enumerable:!0,get:function(){return t.createPromiseCapability}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return r.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return a.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return a.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return a.getXfaPageViewport}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return a.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return a.loadScript}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return c.renderTextLayer}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return r.version}});var t=__w_pdfjs_require__(1),r=__w_pdfjs_require__(4),a=__w_pdfjs_require__(8),n=__w_pdfjs_require__(22),i=__w_pdfjs_require__(7),o=__w_pdfjs_require__(27),s=__w_pdfjs_require__(15),l=__w_pdfjs_require__(3),c=__w_pdfjs_require__(30),u=__w_pdfjs_require__(31),h=__w_pdfjs_require__(29);if(l.isNodeJS){var d=__w_pdfjs_require__(32),f=d.PDFNodeStream;(0,r.setPDFNetworkStreamFactory)((function(e){return new f(e)}))}else{var p=__w_pdfjs_require__(35),v=p.PDFNetworkStream,g=__w_pdfjs_require__(36),m=g.PDFFetchStream;(0,r.setPDFNetworkStreamFactory)((function(e){return(0,a.isValidFetchUrl)(e.url)?new m(e):new v(e)}))}}(),__webpack_exports__}()}))}).call(this,__webpack_require__("4362"),__webpack_require__("b639").Buffer,__webpack_require__("62e4")(module))},9523:function(e,t,r){var a=r("a395");function n(e,t,r){return t=a(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"95ee":function(e,t,r){var a=r("1dfe"),n=r("c08c"),i=r("9fa2");function o(e,t,r){return n(e,t),i(r,"get"),a(e,r)}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},"970b":function(e,t){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"9b42":function(e,t){function r(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=i.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(u){c=!0,n=u}finally{try{if(!l&&null!=r["return"]&&(o=r["return"](),Object(o)!==o))return}finally{if(c)throw n}}return s}}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"9bf2":function(e,t,r){var a=r("83ab"),n=r("0cfb"),i=r("825a"),o=r("c04e"),s=Object.defineProperty;t.f=a?s:function(e,t,r){if(i(e),t=o(t,!0),i(r),n)try{return s(e,t,r)}catch(a){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},"9f70":function(e,t,r){var a=r("36c6");function n(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=a(e),null===e)break;return e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"9f7f":function(e,t,r){"use strict";var a=r("d039");function n(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=a((function(){var e=n("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=a((function(){var e=n("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},"9fa2":function(e,t){function r(e,t){if(void 0===e)throw new TypeError("attempted to "+t+" private static field before its declaration")}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},a395:function(e,t,r){var a=r("7037")["default"],n=r("e50d");function i(e){var t=n(e,"string");return"symbol"===a(t)?t:String(t)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},a640:function(e,t,r){"use strict";var a=r("d039");e.exports=function(e,t){var r=[][e];return!!r&&a((function(){r.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var r=Math.ceil,a=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?a:r)(e)}},a981:function(e,t){e.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},acef:function(e,t,r){"use strict";var a=r("ebb5"),n=r("50c4"),i=r("a691"),o=a.aTypedArray,s=a.exportTypedArrayMethod;s("at",(function(e){var t=o(this),r=n(t.length),a=i(e),s=a>=0?a:r+a;return s<0||s>=r?void 0:t[s]}))},ad6d:function(e,t,r){"use strict";var a=r("825a");e.exports=function(){var e=a(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ae40:function(e,t,r){var a=r("83ab"),n=r("d039"),i=r("5135"),o=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(i(s,e))return s[e];t||(t={});var r=[][e],c=!!i(t,"ACCESSORS")&&t.ACCESSORS,u=i(t,0)?t[0]:l,h=i(t,1)?t[1]:void 0;return s[e]=!!r&&!n((function(){if(c&&!a)return!0;var e={length:-1};c?o(e,1,{enumerable:!0,get:l}):e[1]=1,r.call(e,u,h)}))}},b622:function(e,t,r){var a=r("da84"),n=r("5692"),i=r("5135"),o=r("90e3"),s=r("4930"),l=r("fdbf"),c=n("wks"),u=a.Symbol,h=l?u:u&&u.withoutSetter||o;e.exports=function(e){return i(c,e)||(s&&i(u,e)?c[e]=u[e]:c[e]=h("Symbol."+e)),c[e]}},b639:function(e,t,r){"use strict";(function(e){
|
|
27
|
+
/*!
|
|
28
|
+
* The buffer module from node.js, for the browser.
|
|
29
|
+
*
|
|
30
|
+
* @author Feross Aboukhadijeh <http://feross.org>
|
|
31
|
+
* @license MIT
|
|
32
|
+
*/
|
|
33
|
+
var a=r("1fb5"),n=r("9152"),i=r("e3db");function o(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,r){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,r);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,r)}function u(e,t,r,a){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?g(e,t,r,a):"string"===typeof t?p(e,t,r):m(e,t)}function h(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t,r,a){return h(t),t<=0?l(e,t):void 0!==r?"string"===typeof a?l(e,t).fill(r,a):l(e,t).fill(r):l(e,t)}function f(e,t){if(h(t),e=l(e,t<0?0:0|y(t)),!c.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function p(e,t,r){if("string"===typeof r&&""!==r||(r="utf8"),!c.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var a=0|k(t,r);e=l(e,a);var n=e.write(t,r);return n!==a&&(e=e.slice(0,n)),e}function v(e,t){var r=t.length<0?0:0|y(t.length);e=l(e,r);for(var a=0;a<r;a+=1)e[a]=255&t[a];return e}function g(e,t,r,a){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(a||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===a?new Uint8Array(t):void 0===a?new Uint8Array(t,r):new Uint8Array(t,r,a),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=v(e,t),e}function m(e,t){if(c.isBuffer(t)){var r=0|y(t.length);return e=l(e,r),0===e.length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?l(e,0):v(e,t);if("Buffer"===t.type&&i(t.data))return v(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),c.alloc(+e)}function k(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(e).length;default:if(a)return K(e).length;t=(""+t).toLowerCase(),a=!0}}function w(e,t,r){var a=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return L(this,t,r);case"utf8":case"utf-8":return E(this,t,r);case"ascii":return D(this,t,r);case"latin1":case"binary":return N(this,t,r);case"base64":return I(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,r);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function _(e,t,r){var a=e[t];e[t]=e[r],e[r]=a}function S(e,t,r,a,n){if(0===e.length)return-1;if("string"===typeof r?(a=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"===typeof t&&(t=c.from(t,a)),c.isBuffer(t))return 0===t.length?-1:x(e,t,r,a,n);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):x(e,[t],r,a,n);throw new TypeError("val must be string, number or Buffer")}function x(e,t,r,a,n){var i,o=1,s=e.length,l=t.length;if(void 0!==a&&(a=String(a).toLowerCase(),"ucs2"===a||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var u=-1;for(i=r;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*o}else-1!==u&&(i-=i-u),u=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){for(var h=!0,d=0;d<l;d++)if(c(e,i+d)!==c(t,d)){h=!1;break}if(h)return i}return-1}function A(e,t,r,a){r=Number(r)||0;var n=e.length-r;a?(a=Number(a),a>n&&(a=n)):a=n;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");a>i/2&&(a=i/2);for(var o=0;o<a;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function C(e,t,r,a){return ee(K(t,e.length-r),e,r,a)}function F(e,t,r,a){return ee(J(t),e,r,a)}function P(e,t,r,a){return F(e,t,r,a)}function T(e,t,r,a){return ee(Q(t),e,r,a)}function O(e,t,r,a){return ee(Z(t,e.length-r),e,r,a)}function I(e,t,r){return 0===t&&r===e.length?a.fromByteArray(e):a.fromByteArray(e.slice(t,r))}function E(e,t,r){r=Math.min(e.length,r);var a=[],n=t;while(n<r){var i,o,s,l,c=e[n],u=null,h=c>239?4:c>223?3:c>191?2:1;if(n+h<=r)switch(h){case 1:c<128&&(u=c);break;case 2:i=e[n+1],128===(192&i)&&(l=(31&c)<<6|63&i,l>127&&(u=l));break;case 3:i=e[n+1],o=e[n+2],128===(192&i)&&128===(192&o)&&(l=(15&c)<<12|(63&i)<<6|63&o,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:i=e[n+1],o=e[n+2],s=e[n+3],128===(192&i)&&128===(192&o)&&128===(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,h=1):u>65535&&(u-=65536,a.push(u>>>10&1023|55296),u=56320|1023&u),a.push(u),n+=h}return R(a)}t.Buffer=c,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:o(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,r){return u(null,e,t,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,r){return d(null,e,t,r)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,a=t.length,n=0,i=Math.min(r,a);n<i;++n)if(e[n]!==t[n]){r=e[n],a=t[n];break}return r<a?-1:a<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var a=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(a,n),n+=o.length}return a},c.byteLength=k,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)_(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)_(this,t,t+3),_(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?E(this,0,e):w.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,r,a,n){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===a&&(a=0),void 0===n&&(n=this.length),t<0||r>e.length||a<0||n>this.length)throw new RangeError("out of range index");if(a>=n&&t>=r)return 0;if(a>=n)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,a>>>=0,n>>>=0,this===e)return 0;for(var i=n-a,o=r-t,s=Math.min(i,o),l=this.slice(a,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){i=l[h],o=u[h];break}return i<o?-1:o<i?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return S(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return S(this,e,t,r,!1)},c.prototype.write=function(e,t,r,a){if(void 0===t)a="utf8",r=this.length,t=0;else if(void 0===r&&"string"===typeof t)a=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===a&&(a="utf8")):(a=r,r=void 0)}var n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var i=!1;;)switch(a){case"hex":return A(this,e,t,r);case"utf8":case"utf-8":return C(this,e,t,r);case"ascii":return F(this,e,t,r);case"latin1":case"binary":return P(this,e,t,r);case"base64":return T(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function R(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);var r="",a=0;while(a<t)r+=String.fromCharCode.apply(String,e.slice(a,a+=M));return r}function D(e,t,r){var a="";r=Math.min(e.length,r);for(var n=t;n<r;++n)a+=String.fromCharCode(127&e[n]);return a}function N(e,t,r){var a="";r=Math.min(e.length,r);for(var n=t;n<r;++n)a+=String.fromCharCode(e[n]);return a}function L(e,t,r){var a=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>a)&&(r=a);for(var n="",i=t;i<r;++i)n+=Y(e[i]);return n}function B(e,t,r){for(var a=e.slice(t,r),n="",i=0;i<a.length;i+=2)n+=String.fromCharCode(a[i]+256*a[i+1]);return n}function j(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function U(e,t,r,a,n,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<i)throw new RangeError('"value" argument is out of bounds');if(r+a>e.length)throw new RangeError("Index out of range")}function q(e,t,r,a){t<0&&(t=65535+t+1);for(var n=0,i=Math.min(e.length-r,2);n<i;++n)e[r+n]=(t&255<<8*(a?n:1-n))>>>8*(a?n:1-n)}function G(e,t,r,a){t<0&&(t=4294967295+t+1);for(var n=0,i=Math.min(e.length-r,4);n<i;++n)e[r+n]=t>>>8*(a?n:3-n)&255}function H(e,t,r,a,n,i){if(r+a>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function X(e,t,r,a,i){return i||H(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,a,23,4),r+4}function $(e,t,r,a,i){return i||H(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,a,52,8),r+8}c.prototype.slice=function(e,t){var r,a=this.length;if(e=~~e,t=void 0===t?a:~~t,e<0?(e+=a,e<0&&(e=0)):e>a&&(e=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)r=this.subarray(e,t),r.__proto__=c.prototype;else{var n=t-e;r=new c(n,void 0);for(var i=0;i<n;++i)r[i]=this[i+e]}return r},c.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||j(e,t,this.length);var a=this[e],n=1,i=0;while(++i<t&&(n*=256))a+=this[e+i]*n;return a},c.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||j(e,t,this.length);var a=this[e+--t],n=1;while(t>0&&(n*=256))a+=this[e+--t]*n;return a},c.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||j(e,t,this.length);var a=this[e],n=1,i=0;while(++i<t&&(n*=256))a+=this[e+i]*n;return n*=128,a>=n&&(a-=Math.pow(2,8*t)),a},c.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||j(e,t,this.length);var a=t,n=1,i=this[e+--a];while(a>0&&(n*=256))i+=this[e+--a]*n;return n*=128,i>=n&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||j(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){t||j(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),n.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),n.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),n.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),n.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,a){if(e=+e,t|=0,r|=0,!a){var n=Math.pow(2,8*r)-1;U(this,e,t,r,n,0)}var i=1,o=0;this[t]=255&e;while(++o<r&&(i*=256))this[t+o]=e/i&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,a){if(e=+e,t|=0,r|=0,!a){var n=Math.pow(2,8*r)-1;U(this,e,t,r,n,0)}var i=r-1,o=1;this[t+i]=255&e;while(--i>=0&&(o*=256))this[t+i]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):G(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):G(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,r,a){if(e=+e,t|=0,!a){var n=Math.pow(2,8*r-1);U(this,e,t,r,n-1,-n)}var i=0,o=1,s=0;this[t]=255&e;while(++i<r&&(o*=256))e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,a){if(e=+e,t|=0,!a){var n=Math.pow(2,8*r-1);U(this,e,t,r,n-1,-n)}var i=r-1,o=1,s=0;this[t+i]=255&e;while(--i>=0&&(o*=256))e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):G(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):G(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return X(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return X(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return $(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return $(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,a){if(r||(r=0),a||0===a||(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a<r&&(a=r),a===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t<a-r&&(a=e.length-t+r);var n,i=a-r;if(this===e&&r<t&&t<a)for(n=i-1;n>=0;--n)e[n+t]=this[n+r];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(n=0;n<i;++n)e[n+t]=this[n+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},c.prototype.fill=function(e,t,r,a){if("string"===typeof e){if("string"===typeof t?(a=t,t=0,r=this.length):"string"===typeof r&&(a=r,r=this.length),1===e.length){var n=e.charCodeAt(0);n<256&&(e=n)}if(void 0!==a&&"string"!==typeof a)throw new TypeError("encoding must be a string");if("string"===typeof a&&!c.isEncoding(a))throw new TypeError("Unknown encoding: "+a)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(i=t;i<r;++i)this[i]=e;else{var o=c.isBuffer(e)?e:K(new c(e,a).toString()),s=o.length;for(i=0;i<r-t;++i)this[i+t]=o[i%s]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function W(e){if(e=V(e).replace(z,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Y(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,t){var r;t=t||1/0;for(var a=e.length,n=null,i=[],o=0;o<a;++o){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===a){(t-=3)>-1&&i.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&i.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function J(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function Z(e,t){for(var r,a,n,i=[],o=0;o<e.length;++o){if((t-=2)<0)break;r=e.charCodeAt(o),a=r>>8,n=r%256,i.push(n),i.push(a)}return i}function Q(e){return a.toByteArray(W(e))}function ee(e,t,r,a){for(var n=0;n<a;++n){if(n+r>=t.length||n>=e.length)break;t[n+r]=e[n]}return n}function te(e){return e!==e}}).call(this,r("c8ba"))},b669:function(e,t,r){var a=r("1dfe"),n=r("866f");function i(e,t){var r=n(e,t,"get");return a(e,r)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},c04e:function(e,t,r){var a=r("861d");e.exports=function(e,t){if(!a(e))return e;var r,n;if(t&&"function"==typeof(r=e.toString)&&!a(n=r.call(e)))return n;if("function"==typeof(r=e.valueOf)&&!a(n=r.call(e)))return n;if(!t&&"function"==typeof(r=e.toString)&&!a(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")}},c08c:function(e,t){function r(e,t){if(e!==t)throw new TypeError("Private static access of wrong provenance")}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},c135:function(e,t){function r(e){if(Array.isArray(e))return e}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},c240:function(e,t){function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},c6cd:function(e,t,r){var a=r("da84"),n=r("ce4e"),i="__core-js_shared__",o=a[i]||n(i,{});e.exports=o},c8ba:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(a){"object"===typeof window&&(r=window)}e.exports=r},c973:function(e,t){function r(e,t,r,a,n,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(a,n)}function a(e){return function(){var t=this,a=arguments;return new Promise((function(n,i){var o=e.apply(t,a);function s(e){r(o,n,i,s,l,"next",e)}function l(e){r(o,n,i,s,l,"throw",e)}s(void 0)}))}}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},ca84:function(e,t,r){var a=r("5135"),n=r("fc6a"),i=r("4d64").indexOf,o=r("d012");e.exports=function(e,t){var r,s=n(e),l=0,c=[];for(r in s)!a(o,r)&&a(s,r)&&c.push(r);while(t.length>l)a(s,r=t[l++])&&(~i(c,r)||c.push(r));return c}},cc12:function(e,t,r){var a=r("da84"),n=r("861d"),i=a.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},ce4e:function(e,t,r){var a=r("da84"),n=r("9112");e.exports=function(e,t){try{n(a,e,t)}catch(r){a[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,r){var a=r("428f"),n=r("da84"),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(a[e])||i(n[e]):a[e]&&a[e][t]||n[e]&&n[e][t]}},d1e7:function(e,t,r){"use strict";var a={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!a.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:a},d2bb:function(e,t,r){var a=r("825a"),n=r("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(r,[]),t=r instanceof Array}catch(i){}return function(r,i){return a(r),n(i),t?e.call(r,i):r.__proto__=i,r}}():void 0)},d44e:function(e,t,r){var a=r("9bf2").f,n=r("5135"),i=r("b622"),o=i("toStringTag");e.exports=function(e,t,r){e&&!n(e=r?e:e.prototype,o)&&a(e,o,{configurable:!0,value:t})}},d58f:function(e,t,r){var a=r("1c0b"),n=r("7b0b"),i=r("44ad"),o=r("50c4"),s=function(e){return function(t,r,s,l){a(r);var c=n(t),u=i(c),h=o(c.length),d=e?h-1:0,f=e?-1:1;if(s<2)while(1){if(d in u){l=u[d],d+=f;break}if(d+=f,e?d<0:h<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:h>d;d+=f)d in u&&(l=r(l,u[d],d,c));return l}};e.exports={left:s(!1),right:s(!0)}},d62b:function(e,t,r){(function(e,a,n,i){var o,s,l,c=r("6b58")["default"],u=r("8962")["default"],h=r("36c6")["default"],d=r("9523")["default"],f=r("3c96")["default"],p=r("448a")["default"],v=r("ed6d")["default"],g=r("2d0d")["default"],m=r("7ec2")["default"],y=r("480f")["default"],b=r("6374")["default"],k=r("278c")["default"],w=r("c973")["default"],_=r("970b")["default"],S=r("5bc3")["default"],x=r("7037")["default"];r("acef"),r("3c5d"),r("8f40"),r("5377"),r("13d5"),r("f8c9"),r("5b81"),
|
|
34
|
+
/**
|
|
35
|
+
* @licstart The following is the entire license notice for the
|
|
36
|
+
* JavaScript code in this page
|
|
37
|
+
*
|
|
38
|
+
* Copyright 2022 Mozilla Foundation
|
|
39
|
+
*
|
|
40
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
|
+
* you may not use this file except in compliance with the License.
|
|
42
|
+
* You may obtain a copy of the License at
|
|
43
|
+
*
|
|
44
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
45
|
+
*
|
|
46
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
47
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
48
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
49
|
+
* See the License for the specific language governing permissions and
|
|
50
|
+
* limitations under the License.
|
|
51
|
+
*
|
|
52
|
+
* @licend The above is the entire license notice for the
|
|
53
|
+
* JavaScript code in this page
|
|
54
|
+
*/
|
|
55
|
+
function(e,r){"object"===x(t)&&"object"===x(i)?i.exports=r():(s=[],o=r,l="function"===typeof o?o.apply(t,s):o,void 0===l||(i.exports=l))}(globalThis,(function(){return function(){var t=[,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerTask=t.WorkerMessageHandler=void 0;var a=r(2),n=r(130),i=r(131),o=r(133),s=r(196),l=r(190),c=r(4),u=r(227),h=r(228),d=function(){function e(t){_(this,e),this.name=t,this.terminated=!1,this._capability=(0,a.createPromiseCapability)()}return S(e,[{key:"finished",get:function(){return this._capability.promise}},{key:"finish",value:function(){this._capability.resolve()}},{key:"terminate",value:function(){this.terminated=!0}},{key:"ensureNotTerminated",value:function(){if(this.terminated)throw new Error("Worker task was terminated")}}]),e}();t.WorkerTask=d;var f=function(){function e(){_(this,e)}return S(e,null,[{key:"setup",value:function(t,r){var n=!1;t.on("test",(function(e){n||(n=!0,t.send("test",e instanceof Uint8Array))})),t.on("configure",(function(e){(0,a.setVerbosityLevel)(e.verbosity)})),t.on("GetDocRequest",(function(t){return e.createDocumentHandler(t,r)}))}},{key:"createDocumentHandler",value:function(e,t){var r,f=!1,p=null,v=[],g=(0,a.getVerbosityLevel)(),_=e.apiVersion,S="2.16.105";if(_!==S)throw new Error('The API version "'.concat(_,'" does not match ')+'the Worker version "'.concat(S,'".'));var x=[];for(var A in[])x.push(A);if(x.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+x.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");if("undefined"===typeof ReadableStream){var C="The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. `ReadableStream`); ";if(c.isNodeJS)throw new Error(C+"please use a `legacy`-build instead.");throw new Error(C+"please update to a supported browser.")}var F=e.docId,P=e.docBaseUrl,T=e.docId+"_worker",O=new u.MessageHandler(T,F,t);function I(){if(f)throw new Error("Worker was terminated")}function E(e){v.push(e)}function M(e){e.finish();var t=v.indexOf(e);v.splice(t,1)}function R(e){return D.apply(this,arguments)}function D(){return D=w(m().mark((function e(t){var a,n,i,o,s,l,c;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,r.ensureDoc("checkHeader");case 2:return e.next=4,r.ensureDoc("parseStartXRef");case 4:return e.next=6,r.ensureDoc("parse",[t]);case 6:return e.next=8,r.ensureDoc("checkFirstPage",[t]);case 8:return e.next=10,r.ensureDoc("checkLastPage",[t]);case 10:return e.next=12,r.ensureDoc("isPureXfa");case 12:if(a=e.sent,!a){e.next=18;break}return n=new d("loadXfaFonts"),E(n),e.next=18,Promise.all([r.loadXfaFonts(O,n)["catch"]((function(e){})).then((function(){return M(n)})),r.loadXfaImages()]);case 18:return e.next=20,Promise.all([r.ensureDoc("numPages"),r.ensureDoc("fingerprints")]);case 20:if(i=e.sent,o=k(i,2),s=o[0],l=o[1],!a){e.next=30;break}return e.next=27,r.ensureDoc("htmlForXfa");case 27:e.t0=e.sent,e.next=31;break;case 30:e.t0=null;case 31:return c=e.t0,e.abrupt("return",{numPages:s,fingerprints:l,htmlForXfa:c});case 33:case"end":return e.stop()}}),e)}))),D.apply(this,arguments)}function N(e,t,r){var n,i=(0,a.createPromiseCapability)(),s=e.source;if(s.data){try{n=new o.LocalPdfManager(F,s.data,s.password,O,t,r,P),i.resolve(n)}catch(g){i.reject(g)}return i.promise}var l,c=[];try{l=new h.PDFWorkerStream(O)}catch(g){return i.reject(g),i.promise}var u=l.getFullReader();u.headersReady.then((function(){if(u.isRangeSupported){var e=s.disableAutoFetch||u.isStreamingSupported;n=new o.NetworkPdfManager(F,l,{msgHandler:O,password:s.password,length:u.contentLength,disableAutoFetch:e,rangeChunkSize:s.rangeChunkSize},t,r,P);for(var a=0,h=c;a<h.length;a++){var d=h[a];n.sendProgressiveData(d)}c=[],i.resolve(n),p=null}}))["catch"]((function(e){i.reject(e),p=null}));var d=0,f=function(){var e=(0,a.arraysToBytes)(c);s.length&&e.length!==s.length&&(0,a.warn)("reported HTTP length is different from actual");try{n=new o.LocalPdfManager(F,e,s.password,O,t,r,P),i.resolve(n)}catch(g){i.reject(g)}c=[]},v=new Promise((function(e,t){var r=function e(r){var i=r.value,o=r.done;try{if(I(),o)return n||f(),void(p=null);d+=(0,a.arrayByteLength)(i),u.isStreamingSupported||O.send("DocProgress",{loaded:d,total:Math.max(d,u.contentLength||0)}),n?n.sendProgressiveData(i):c.push(i),u.read().then(e,t)}catch(s){t(s)}};u.read().then(r,t)}));return v["catch"]((function(e){i.reject(e),p=null})),p=function(e){l.cancelAllRequests(e)},i.promise}function L(e){function t(e){I(),O.send("GetDoc",{pdfInfo:e})}function n(e){if(I(),e instanceof a.PasswordException){var t=new d("PasswordException: response ".concat(e.code));E(t),O.sendWithPromise("PasswordRequest",e).then((function(e){var a=e.password;M(t),r.updatePassword(a),o()}))["catch"]((function(){M(t),O.send("DocException",e)}))}else e instanceof a.InvalidPDFException||e instanceof a.MissingPDFException||e instanceof a.UnexpectedResponseException||e instanceof a.UnknownErrorException?O.send("DocException",e):O.send("DocException",new a.UnknownErrorException(e.message,e.toString()))}function o(){I(),R(!1).then(t,(function(e){I(),e instanceof i.XRefParseException?(r.requestLoadedStream(),r.onLoadedStream().then((function(){I(),R(!0).then(t,n)}))):n(e)}))}I();var s={maxImageSize:e.maxImageSize,disableFontFace:e.disableFontFace,ignoreErrors:e.ignoreErrors,isEvalSupported:e.isEvalSupported,fontExtraProperties:e.fontExtraProperties,useSystemFonts:e.useSystemFonts,cMapUrl:e.cMapUrl,standardFontDataUrl:e.standardFontDataUrl};N(e,s,e.enableXfa).then((function(e){if(f)throw e.terminate(new a.AbortException("Worker was terminated.")),new Error("Worker was terminated");r=e,r.onLoadedStream().then((function(e){O.send("DataLoaded",{length:e.bytes.byteLength})}))})).then(o,n)}return O.on("GetPage",(function(e){return r.getPage(e.pageIndex).then((function(e){return Promise.all([r.ensure(e,"rotate"),r.ensure(e,"ref"),r.ensure(e,"userUnit"),r.ensure(e,"view")]).then((function(e){var t=k(e,4),r=t[0],a=t[1],n=t[2],i=t[3];return{rotate:r,ref:a,userUnit:n,view:i}}))}))})),O.on("GetPageIndex",(function(e){var t=n.Ref.get(e.num,e.gen);return r.ensureCatalog("getPageIndex",[t])})),O.on("GetDestinations",(function(e){return r.ensureCatalog("destinations")})),O.on("GetDestination",(function(e){return r.ensureCatalog("getDestination",[e.id])})),O.on("GetPageLabels",(function(e){return r.ensureCatalog("pageLabels")})),O.on("GetPageLayout",(function(e){return r.ensureCatalog("pageLayout")})),O.on("GetPageMode",(function(e){return r.ensureCatalog("pageMode")})),O.on("GetViewerPreferences",(function(e){return r.ensureCatalog("viewerPreferences")})),O.on("GetOpenAction",(function(e){return r.ensureCatalog("openAction")})),O.on("GetAttachments",(function(e){return r.ensureCatalog("attachments")})),O.on("GetJavaScript",(function(e){return r.ensureCatalog("javaScript")})),O.on("GetDocJSActions",(function(e){return r.ensureCatalog("jsActions")})),O.on("GetPageJSActions",(function(e){var t=e.pageIndex;return r.getPage(t).then((function(e){return r.ensure(e,"jsActions")}))})),O.on("GetOutline",(function(e){return r.ensureCatalog("documentOutline")})),O.on("GetOptionalContentConfig",(function(e){return r.ensureCatalog("optionalContentConfig")})),O.on("GetPermissions",(function(e){return r.ensureCatalog("permissions")})),O.on("GetMetadata",(function(e){return Promise.all([r.ensureDoc("documentInfo"),r.ensureCatalog("metadata")])})),O.on("GetMarkInfo",(function(e){return r.ensureCatalog("markInfo")})),O.on("GetData",(function(e){return r.requestLoadedStream(),r.onLoadedStream().then((function(e){return e.bytes}))})),O.on("GetAnnotations",(function(e){var t=e.pageIndex,a=e.intent;return r.getPage(t).then((function(e){var r=new d("GetAnnotations: page ".concat(t));return E(r),e.getAnnotationsData(O,r,a).then((function(e){return M(r),e}),(function(e){M(r)}))}))})),O.on("GetFieldObjects",(function(e){return r.ensureDoc("fieldObjects")})),O.on("HasJSActions",(function(e){return r.ensureDoc("hasJSActions")})),O.on("GetCalculationOrderIds",(function(e){return r.ensureDoc("calculationOrderIds")})),O.on("SaveDocument",(function(e){var t=e.isPureXfa,o=e.numPages,s=e.annotationStorage,c=e.filename;r.requestLoadedStream();var u=t?null:(0,i.getNewAnnotationsMap)(s),h=[r.onLoadedStream(),r.ensureCatalog("acroForm"),r.ensureCatalog("acroFormRef"),r.ensureDoc("xref"),r.ensureDoc("startXRef")];if(u){var f,p=b(u);try{var v=function(){var e=k(f.value,2),t=e[0],a=e[1];h.push(r.getPage(t).then((function(e){var r=new d("Save (editor): page ".concat(t));return e.saveNewAnnotations(O,r,a)["finally"]((function(){M(r)}))})))};for(p.s();!(f=p.n()).done;)v()}catch(w){p.e(w)}finally{p.f()}}if(t)h.push(r.serializeXfaData(s));else for(var g=function(e){h.push(r.getPage(e).then((function(t){var r=new d("Save: page ".concat(e));return t.save(O,r,s)["finally"]((function(){M(r)}))})))},m=0;m<o;m++)g(m);return Promise.all(h).then((function(e){var r=y(e),i=r[0],o=r[1],s=r[2],u=r[3],h=r[4],d=r.slice(5),f=[],p=null;if(t){if(p=d[0],!p)return i.bytes}else if(f=d.flat(2),0===f.length)return i.bytes;var v=o instanceof n.Dict&&o.get("XFA")||null,g=null,m=!1;if(Array.isArray(v)){for(var b=0,k=v.length;b<k;b+=2)"datasets"===v[b]&&(g=v[b+1],s=null,m=!0);null===g&&(g=u.getNewRef())}else v&&(s=null,(0,a.warn)("Unsupported XFA type."));var w=Object.create(null);if(u.trailer){var _=Object.create(null),S=u.trailer.get("Info")||null;S instanceof n.Dict&&S.forEach((function(e,t){"string"===typeof t&&(_[e]=(0,a.stringToPDFString)(t))})),w={rootRef:u.trailer.getRaw("Root")||null,encryptRef:u.trailer.getRaw("Encrypt")||null,newRef:u.getNewRef(),infoRef:u.trailer.getRaw("Info")||null,info:_,fileIds:u.trailer.get("ID")||null,startXRef:h,filename:c}}return u.resetNewRef(),(0,l.incrementalUpdate)({originalData:i.bytes,xrefInfo:w,newRefs:f,xref:u,hasXfa:!!v,xfaDatasetsRef:g,hasXfaDatasetsEntry:m,acroFormRef:s,acroForm:o,xfaData:p})}))})),O.on("GetOperatorList",(function(e,t){var n=e.pageIndex;r.getPage(n).then((function(r){var i=new d("GetOperatorList: page ".concat(n));E(i);var o=g>=a.VerbosityLevel.INFOS?Date.now():0;r.getOperatorList({handler:O,sink:t,task:i,intent:e.intent,cacheKey:e.cacheKey,annotationStorage:e.annotationStorage}).then((function(e){M(i),o&&(0,a.info)("page=".concat(n+1," - getOperatorList: time=")+"".concat(Date.now()-o,"ms, len=").concat(e.length)),t.close()}),(function(e){M(i),i.terminated||(O.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.errorOperatorList}),t.error(e))}))}))})),O.on("GetTextContent",(function(e,t){var n=e.pageIndex;r.getPage(n).then((function(r){var i=new d("GetTextContent: page "+n);E(i);var o=g>=a.VerbosityLevel.INFOS?Date.now():0;r.extractTextContent({handler:O,task:i,sink:t,includeMarkedContent:e.includeMarkedContent,combineTextItems:e.combineTextItems}).then((function(){M(i),o&&(0,a.info)("page=".concat(n+1," - getTextContent: time=")+"".concat(Date.now()-o,"ms")),t.close()}),(function(e){M(i),i.terminated||t.error(e)}))}))})),O.on("GetStructTree",(function(e){return r.getPage(e.pageIndex).then((function(e){return r.ensure(e,"getStructTree")}))})),O.on("FontFallback",(function(e){return r.fontFallback(e.id,O)})),O.on("Cleanup",(function(e){return r.cleanup(!0)})),O.on("Terminate",(function(e){f=!0;var t=[];if(r){r.terminate(new a.AbortException("Worker was terminated."));var n=r.cleanup();t.push(n),r=null}else(0,s.clearGlobalCaches)();p&&p(new a.AbortException("Worker was terminated."));for(var i=0,o=v;i<o.length;i++){var l=o[i];t.push(l.finished),l.terminate()}return Promise.all(t).then((function(){O.destroy(),O=null}))})),O.on("Ready",(function(t){L(e),e=null})),T}},{key:"initializeFromPort",value:function(t){var r=new u.MessageHandler("worker","main",t);e.setup(r,t),r.send("ready",null)}}]),e}();function p(e){return"function"===typeof e.postMessage&&"onmessage"in e}t.WorkerMessageHandler=f,"undefined"===typeof window&&!c.isNodeJS&&"undefined"!==typeof self&&p(self)&&f.initializeFromPort(self)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.UNSUPPORTED_FEATURES=t.TextRenderingMode=t.StreamType=t.RenderingIntentFlag=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FontType=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.arrayByteLength=se,t.arraysToBytes=le,t.assert=W,t.bytesToString=ie,t.createPromiseCapability=Fe,t.createValidAbsoluteUrl=Y,t.escapeString=be,t.getModificationDate=Ce,t.getVerbosityLevel=H,t.info=X,t.isArrayBuffer=xe,t.isArrayEqual=Ae,t.isAscii=ke,t.objectFromMap=he,t.objectSize=ue,t.setVerbosityLevel=G,t.shadow=K,t.string32=ce,t.stringToBytes=oe,t.stringToPDFString=ye,t.stringToUTF16BEString=we,t.stringToUTF8String=_e,t.unreachable=z,t.utf8StringToString=Se,t.warn=$,r(3);var a=[1,0,0,1,0,0];t.IDENTITY_MATRIX=a;var n=[.001,0,0,.001,0,0];t.FONT_IDENTITY_MATRIX=n;var i=1.35;t.LINE_FACTOR=i;var o=.35;t.LINE_DESCENT_FACTOR=o;var s={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};t.RenderingIntentFlag=s;var l={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};t.AnnotationMode=l;var c="pdfjs_internal_editor_";t.AnnotationEditorPrefix=c;var u={DISABLE:-1,NONE:0,FREETEXT:3,INK:15};t.AnnotationEditorType=u;var h={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13};t.AnnotationEditorParamsType=h;var d={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.PermissionFlag=d;var f={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};t.TextRenderingMode=f;var m={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.ImageKind=m;var y={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};t.AnnotationType=y;var w={MARKED:"Marked",REVIEW:"Review"};t.AnnotationStateModelType=w;var A={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationMarkedState=A;var C={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReviewState=C;var F={GROUP:"Group",REPLY:"R"};t.AnnotationReplyType=F;var P={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFlag=P;var T={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};t.AnnotationFieldFlag=T;var O={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.AnnotationBorderStyleType=O;var I={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"};t.AnnotationActionEventType=I;var E={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};t.DocumentActionEventType=E;var M={O:"PageOpen",C:"PageClose"};t.PageActionEventType=M;var R={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.StreamType=R;var D={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};t.FontType=D;var N={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=N;var L={NONE:0,BINARY:1,STREAM:2};t.CMapCompressionType=L;var B={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};t.OPS=B;var j={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",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"};t.UNSUPPORTED_FEATURES=j;var U={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};t.PasswordResponses=U;var q=N.WARNINGS;function G(e){Number.isInteger(e)&&(q=e)}function H(){return q}function X(e){q>=N.INFOS&&console.log("Info: ".concat(e))}function $(e){q>=N.WARNINGS&&console.log("Warning: ".concat(e))}function z(e){throw new Error(e)}function W(e,t){e||z(t)}function V(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function Y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(r&&"string"===typeof e){if(r.addDefaultProtocol&&e.startsWith("www.")){var a=e.match(/\./g);a&&a.length>=2&&(e="http://".concat(e))}if(r.tryConvertEncoding)try{e=_e(e)}catch(i){}}var n=t?new URL(e,t):new URL(e);if(V(n))return n}catch(i){}return null}function K(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}var J=function(){function e(t,r){this.constructor===e&&z("Cannot initialize BaseException."),this.message=t,this.name=r}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=J;var Z=function(e){v(r,e);var t=g(r);function r(e,a){var n;return _(this,r),n=t.call(this,e,"PasswordException"),n.code=a,n}return S(r)}(J);t.PasswordException=Z;var Q=function(e){v(r,e);var t=g(r);function r(e,a){var n;return _(this,r),n=t.call(this,e,"UnknownErrorException"),n.details=a,n}return S(r)}(J);t.UnknownErrorException=Q;var ee=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,e,"InvalidPDFException")}return S(r)}(J);t.InvalidPDFException=ee;var te=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,e,"MissingPDFException")}return S(r)}(J);t.MissingPDFException=te;var re=function(e){v(r,e);var t=g(r);function r(e,a){var n;return _(this,r),n=t.call(this,e,"UnexpectedResponseException"),n.status=a,n}return S(r)}(J);t.UnexpectedResponseException=re;var ae=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,e,"FormatError")}return S(r)}(J);t.FormatError=ae;var ne=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,e,"AbortException")}return S(r)}(J);function ie(e){"object"===x(e)&&null!==e&&void 0!==e.length||z("Invalid argument for bytesToString");var t=e.length,r=8192;if(t<r)return String.fromCharCode.apply(null,e);for(var a=[],n=0;n<t;n+=r){var i=Math.min(n+r,t),o=e.subarray(n,i);a.push(String.fromCharCode.apply(null,o))}return a.join("")}function oe(e){"string"!==typeof e&&z("Invalid argument for stringToBytes");for(var t=e.length,r=new Uint8Array(t),a=0;a<t;++a)r[a]=255&e.charCodeAt(a);return r}function se(e){return void 0!==e.length?e.length:void 0!==e.byteLength?e.byteLength:void z("Invalid argument for arrayByteLength")}function le(e){var t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];for(var r=0,a=0;a<t;a++)r+=se(e[a]);for(var n=0,i=new Uint8Array(r),o=0;o<t;o++){var s=e[o];s instanceof Uint8Array||(s="string"===typeof s?oe(s):new Uint8Array(s));var l=s.byteLength;i.set(s,n),n+=l}return i}function ce(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function ue(e){return Object.keys(e).length}function he(e){var t,r=Object.create(null),a=b(e);try{for(a.s();!(t=a.n()).done;){var n=k(t.value,2),i=n[0],o=n[1];r[i]=o}}catch(s){a.e(s)}finally{a.f()}return r}function de(){var e=new Uint8Array(4);e[0]=1;var t=new Uint32Array(e.buffer,0,1);return 1===t[0]}function fe(){try{return new Function(""),!0}catch(e){return!1}}t.AbortException=ne;var pe=function(){function e(){_(this,e)}return S(e,null,[{key:"isLittleEndian",get:function(){return K(this,"isLittleEndian",de())}},{key:"isEvalSupported",get:function(){return K(this,"isEvalSupported",fe())}},{key:"isOffscreenCanvasSupported",get:function(){return K(this,"isOffscreenCanvasSupported","undefined"!==typeof OffscreenCanvas)}}]),e}();t.FeatureTest=pe;var ve=p(Array(256).keys()).map((function(e){return e.toString(16).padStart(2,"0")})),ge=function(){function e(){_(this,e)}return S(e,null,[{key:"makeHexColor",value:function(e,t,r){return"#".concat(ve[e]).concat(ve[t]).concat(ve[r])}},{key:"scaleMinMax",value:function(e,t){var r;e[0]?(e[0]<0&&(r=t[0],t[0]=t[1],t[1]=r),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(r=t[2],t[2]=t[3],t[3]=r),t[2]*=e[3],t[3]*=e[3]):(r=t[0],t[0]=t[2],t[2]=r,r=t[1],t[1]=t[3],t[3]=r,e[1]<0&&(r=t[2],t[2]=t[3],t[3]=r),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(r=t[0],t[0]=t[1],t[1]=r),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}},{key:"transform",value:function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}},{key:"applyTransform",value:function(e,t){var r=e[0]*t[0]+e[1]*t[2]+t[4],a=e[0]*t[1]+e[1]*t[3]+t[5];return[r,a]}},{key:"applyInverseTransform",value:function(e,t){var r=t[0]*t[3]-t[1]*t[2],a=(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,n=(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r;return[a,n]}},{key:"getAxialAlignedBoundingBox",value:function(t,r){var a=e.applyTransform(t,r),n=e.applyTransform(t.slice(2,4),r),i=e.applyTransform([t[0],t[3]],r),o=e.applyTransform([t[2],t[1]],r);return[Math.min(a[0],n[0],i[0],o[0]),Math.min(a[1],n[1],i[1],o[1]),Math.max(a[0],n[0],i[0],o[0]),Math.max(a[1],n[1],i[1],o[1])]}},{key:"inverseTransform",value:function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}},{key:"apply3dTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}},{key:"singularValueDecompose2dScale",value:function(e){var t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],a=e[0]*t[1]+e[1]*t[3],n=e[2]*t[0]+e[3]*t[2],i=e[2]*t[1]+e[3]*t[3],o=(r+i)/2,s=Math.sqrt(Math.pow(r+i,2)-4*(r*i-n*a))/2,l=o+s||1,c=o-s||1;return[Math.sqrt(l),Math.sqrt(c)]}},{key:"normalizeRect",value:function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(e,t){var r=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),a=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(r>a)return null;var n=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),i=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return n>i?null:[r,n,a,i]}},{key:"bezierBoundingBox",value:function(e,t,r,a,n,i,o,s){for(var l,c,u,h,d,f,v,g,m=[],y=[[],[]],b=0;b<2;++b)if(0===b?(c=6*e-12*r+6*n,l=-3*e+9*r-9*n+3*o,u=3*r-3*e):(c=6*t-12*a+6*i,l=-3*t+9*a-9*i+3*s,u=3*a-3*t),Math.abs(l)<1e-12){if(Math.abs(c)<1e-12)continue;h=-u/c,0<h&&h<1&&m.push(h)}else v=c*c-4*u*l,g=Math.sqrt(v),v<0||(d=(-c+g)/(2*l),0<d&&d<1&&m.push(d),f=(-c-g)/(2*l),0<f&&f<1&&m.push(f));var k,w=m.length,_=w;while(w--)h=m[w],k=1-h,y[0][w]=k*k*k*e+3*k*k*h*r+3*k*h*h*n+h*h*h*o,y[1][w]=k*k*k*t+3*k*k*h*a+3*k*h*h*i+h*h*h*s;return y[0][_]=e,y[1][_]=t,y[0][_+1]=o,y[1][_+1]=s,y[0].length=y[1].length=_+2,[Math.min.apply(Math,p(y[0])),Math.min.apply(Math,p(y[1])),Math.max.apply(Math,p(y[0])),Math.max.apply(Math,p(y[1]))]}}]),e}();t.Util=ge;var me=[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 ye(e){var t;if(e[0]>="ï"&&("þ"===e[0]&&"ÿ"===e[1]?t="utf-16be":"ÿ"===e[0]&&"þ"===e[1]?t="utf-16le":"ï"===e[0]&&"»"===e[1]&&"¿"===e[2]&&(t="utf-8"),t))try{var r=new TextDecoder(t,{fatal:!0}),a=oe(e);return r.decode(a)}catch(l){$('stringToPDFString: "'.concat(l,'".'))}for(var n=[],i=0,o=e.length;i<o;i++){var s=me[e.charCodeAt(i)];n.push(s?String.fromCharCode(s):e.charAt(i))}return n.join("")}function be(e){return e.replace(/([()\\\n\r])/g,(function(e){return"\n"===e?"\\n":"\r"===e?"\\r":"\\".concat(e)}))}function ke(e){return/^[\x00-\x7F]*$/.test(e)}function we(e){for(var t=["þÿ"],r=0,a=e.length;r<a;r++){var n=e.charCodeAt(r);t.push(String.fromCharCode(n>>8&255),String.fromCharCode(255&n))}return t.join("")}function _e(e){return decodeURIComponent(escape(e))}function Se(e){return unescape(encodeURIComponent(e))}function xe(e){return"object"===x(e)&&null!==e&&void 0!==e.byteLength}function Ae(e,t){if(e.length!==t.length)return!1;for(var r=0,a=e.length;r<a;r++)if(e[r]!==t[r])return!1;return!0}function Ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")];return t.join("")}function Fe(){var e=Object.create(null),t=!1;return Object.defineProperty(e,"settled",{get:function(){return t}}),e.promise=new Promise((function(r,a){e.resolve=function(e){t=!0,r(e)},e.reject=function(e){t=!0,a(e)}})),e}},function(t,a,n){"use strict";var i=n(4);globalThis._pdfjsCompatibilityChecked||(globalThis._pdfjsCompatibilityChecked=!0,function(){!globalThis.btoa&&i.isNodeJS&&(globalThis.btoa=function(t){return e.from(t,"binary").toString("base64")})}(),function(){!globalThis.atob&&i.isNodeJS&&(globalThis.atob=function(t){return e.from(t,"base64").toString("binary")})}(),function(){!globalThis.DOMMatrix&&i.isNodeJS&&(globalThis.DOMMatrix=r("fbab"))}(),function(){!globalThis.ReadableStream&&i.isNodeJS&&(globalThis.ReadableStream=r("87c2").ReadableStream)}(),function(){Array.prototype.at||n(5)}(),function(){Uint8Array.prototype.at||n(77)}(),function(){globalThis.structuredClone||n(87)}())},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;var r="object"===("undefined"===typeof a?"undefined":x(a))&&a+""==="[object process]"&&!a.versions.nw&&!(a.versions.electron&&a.type&&"browser"!==a.type);t.isNodeJS=r},function(e,t,r){r(6);var a=r(76);e.exports=a("Array","at")},function(e,t,r){"use strict";var a=r(7),n=r(42),i=r(66),o=r(64),s=r(71);a({target:"Array",proto:!0},{at:function(e){var t=n(this),r=i(t),a=o(e),s=a>=0?a:r+a;return s<0||s>=r?void 0:t[s]}}),s("at")},function(e,t,r){var a=r(8),n=r(9).f,i=r(46),o=r(50),s=r(40),l=r(58),c=r(70);e.exports=function(e,t){var r,u,h,d,f,p,v=e.target,g=e.global,m=e.stat;if(u=g?a:m?a[v]||s(v,{}):(a[v]||{}).prototype,u)for(h in t){if(f=t[h],e.dontCallGetSet?(p=n(u,h),d=p&&p.value):d=u[h],r=c(g?h:v+(m?".":"#")+h,e.forced),!r&&void 0!==d){if(x(f)==x(d))continue;l(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),o(u,h,f,e)}}},function(e){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==("undefined"===typeof globalThis?"undefined":x(globalThis))&&globalThis)||t("object"==("undefined"===typeof window?"undefined":x(window))&&window)||t("object"==("undefined"===typeof self?"undefined":x(self))&&self)||t("object"==("undefined"===typeof n?"undefined":x(n))&&n)||function(){return this}()||Function("return this")()},function(e,t,r){var a=r(10),n=r(12),i=r(14),o=r(15),s=r(16),l=r(21),c=r(41),u=r(44),h=Object.getOwnPropertyDescriptor;t.f=a?h:function(e,t){if(e=s(e),t=l(t),u)try{return h(e,t)}catch(r){}if(c(e,t))return o(!n(i.f,e,t),e[t])}},function(e,t,r){var a=r(11);e.exports=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,r){var a=r(13),n=Function.prototype.call;e.exports=a?n.bind(n):function(){return n.apply(n,arguments)}},function(e,t,r){var a=r(11);e.exports=!a((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},function(e,t){"use strict";var r={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,n=a&&!r.call({1:2},1);t.f=n?function(e){var t=a(this,e);return!!t&&t.enumerable}:r},function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var a=r(17),n=r(20);e.exports=function(e){return a(n(e))}},function(e,t,r){var a=r(18),n=r(11),i=r(19),o=Object,s=a("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):o(e)}:o},function(e,t,r){var a=r(13),n=Function.prototype,i=n.bind,o=n.call,s=a&&i.bind(o,o);e.exports=a?function(e){return e&&s(e)}:function(e){return e&&function(){return o.apply(e,arguments)}}},function(e,t,r){var a=r(18),n=a({}.toString),i=a("".slice);e.exports=function(e){return i(n(e),8,-1)}},function(e){var t=TypeError;e.exports=function(e){if(void 0==e)throw t("Can't call method on "+e);return e}},function(e,t,r){var a=r(22),n=r(25);e.exports=function(e){var t=a(e,"string");return n(t)?t:t+""}},function(e,t,r){var a=r(12),n=r(23),i=r(25),o=r(32),s=r(35),l=r(36),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,l=o(e,u);if(l){if(void 0===t&&(t="default"),r=a(l,e,t),!n(r)||i(r))return r;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},function(e,t,r){var a=r(24);e.exports=function(e){return"object"==x(e)?null!==e:a(e)}},function(e){e.exports=function(e){return"function"==typeof e}},function(e,t,r){var a=r(26),n=r(24),i=r(27),o=r(28),s=Object;e.exports=o?function(e){return"symbol"==x(e)}:function(e){var t=a("Symbol");return n(t)&&i(t.prototype,s(e))}},function(e,t,r){var a=r(8),n=r(24),i=function(e){return n(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(a[e]):a[e]&&a[e][t]}},function(e,t,r){var a=r(18);e.exports=a({}.isPrototypeOf)},function(e,t,r){var a=r(29);e.exports=a&&!Symbol.sham&&"symbol"==x(Symbol.iterator)},function(e,t,r){var a=r(30),n=r(11);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&a&&a<41}))},function(e,t,r){var a,n,i=r(8),o=r(31),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(a=u.split("."),n=a[0]>0&&a[0]<4?1:+(a[0]+a[1])),!n&&o&&(a=o.match(/Edge\/(\d+)/),(!a||a[1]>=74)&&(a=o.match(/Chrome\/(\d+)/),a&&(n=+a[1]))),e.exports=n},function(e,t,r){var a=r(26);e.exports=a("navigator","userAgent")||""},function(e,t,r){var a=r(33);e.exports=function(e,t){var r=e[t];return null==r?void 0:a(r)}},function(e,t,r){var a=r(24),n=r(34),i=TypeError;e.exports=function(e){if(a(e))return e;throw i(n(e)+" is not a function")}},function(e){var t=String;e.exports=function(e){try{return t(e)}catch(r){return"Object"}}},function(e,t,r){var a=r(12),n=r(24),i=r(23),o=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&n(r=e.toString)&&!i(s=a(r,e)))return s;if(n(r=e.valueOf)&&!i(s=a(r,e)))return s;if("string"!==t&&n(r=e.toString)&&!i(s=a(r,e)))return s;throw o("Can't convert object to primitive value")}},function(e,t,r){var a=r(8),n=r(37),i=r(41),o=r(43),s=r(29),l=r(28),c=n("wks"),u=a.Symbol,h=u&&u["for"],d=l?u:u&&u.withoutSetter||o;e.exports=function(e){if(!i(c,e)||!s&&"string"!=typeof c[e]){var t="Symbol."+e;s&&i(u,e)?c[e]=u[e]:c[e]=l&&h?h(t):d(t)}return c[e]}},function(e,t,r){var a=r(38),n=r(39);(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:a?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e){e.exports=!1},function(e,t,r){var a=r(8),n=r(40),i="__core-js_shared__",o=a[i]||n(i,{});e.exports=o},function(e,t,r){var a=r(8),n=Object.defineProperty;e.exports=function(e,t){try{n(a,e,{value:t,configurable:!0,writable:!0})}catch(r){a[e]=t}return t}},function(e,t,r){var a=r(18),n=r(42),i=a({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},function(e,t,r){var a=r(20),n=Object;e.exports=function(e){return n(a(e))}},function(e,t,r){var a=r(18),n=0,i=Math.random(),o=a(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},function(e,t,r){var a=r(10),n=r(11),i=r(45);e.exports=!a&&!n((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){var a=r(8),n=r(23),i=a.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,r){var a=r(10),n=r(47),i=r(15);e.exports=a?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var a=r(10),n=r(44),i=r(48),o=r(49),s=r(21),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",f="writable";t.f=a?i?function(e,t,r){if(o(e),t=s(t),o(r),"function"===typeof e&&"prototype"===t&&"value"in r&&f in r&&!r[f]){var a=u(e,t);a&&a[f]&&(e[t]=r.value,r={configurable:d in r?r[d]:a[d],enumerable:h in r?r[h]:a[h],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(o(e),t=s(t),o(r),n)try{return c(e,t,r)}catch(a){}if("get"in r||"set"in r)throw l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var a=r(10),n=r(11);e.exports=a&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(e,t,r){var a=r(23),n=String,i=TypeError;e.exports=function(e){if(a(e))return e;throw i(n(e)+" is not an object")}},function(e,t,r){var a=r(24),n=r(47),i=r(51),o=r(40);e.exports=function(e,t,r,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(a(r)&&i(r,c,s),s.global)l?e[t]=r:o(t,r);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=r:n.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},function(e,t,r){var a=r(11),n=r(24),i=r(41),o=r(10),s=r(52).CONFIGURABLE,l=r(53),c=r(54),u=c.enforce,h=c.get,d=Object.defineProperty,f=o&&!a((function(){return 8!==d((function(){}),"length",{value:8}).length})),p=String(String).split("String"),v=e.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!i(e,"name")||s&&e.name!==t)&&(o?d(e,"name",{value:t,configurable:!0}):e.name=t),f&&r&&i(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&i(r,"constructor")&&r.constructor?o&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(n){}var a=u(e);return i(a,"source")||(a.source=p.join("string"==typeof t?t:"")),e};Function.prototype.toString=v((function(){return n(this)&&h(this).source||l(this)}),"toString")},function(e,t,r){var a=r(10),n=r(41),i=Function.prototype,o=a&&Object.getOwnPropertyDescriptor,s=n(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!a||a&&o(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},function(e,t,r){var a=r(18),n=r(24),i=r(39),o=a(Function.toString);n(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),e.exports=i.inspectSource},function(e,t,r){var a,n,i,o=r(55),s=r(8),l=r(18),c=r(23),u=r(46),h=r(41),d=r(39),f=r(56),p=r(57),v="Object already initialized",g=s.TypeError,m=s.WeakMap,y=function(e){return i(e)?n(e):a(e,{})},b=function(e){return function(t){var r;if(!c(t)||(r=n(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return r}};if(o||d.state){var k=d.state||(d.state=new m),w=l(k.get),_=l(k.has),S=l(k.set);a=function(e,t){if(_(k,e))throw new g(v);return t.facade=e,S(k,e,t),t},n=function(e){return w(k,e)||{}},i=function(e){return _(k,e)}}else{var x=f("state");p[x]=!0,a=function(e,t){if(h(e,x))throw new g(v);return t.facade=e,u(e,x,t),t},n=function(e){return h(e,x)?e[x]:{}},i=function(e){return h(e,x)}}e.exports={set:a,get:n,has:i,enforce:y,getterFor:b}},function(e,t,r){var a=r(8),n=r(24),i=r(53),o=a.WeakMap;e.exports=n(o)&&/native code/.test(i(o))},function(e,t,r){var a=r(37),n=r(43),i=a("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},function(e){e.exports={}},function(e,t,r){var a=r(41),n=r(59),i=r(9),o=r(47);e.exports=function(e,t,r){for(var s=n(t),l=o.f,c=i.f,u=0;u<s.length;u++){var h=s[u];a(e,h)||r&&a(r,h)||l(e,h,c(t,h))}}},function(e,t,r){var a=r(26),n=r(18),i=r(60),o=r(69),s=r(49),l=n([].concat);e.exports=a("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=o.f;return r?l(t,r(e)):t}},function(e,t,r){var a=r(61),n=r(68),i=n.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return a(e,i)}},function(e,t,r){var a=r(18),n=r(41),i=r(16),o=r(62).indexOf,s=r(57),l=a([].push);e.exports=function(e,t){var r,a=i(e),c=0,u=[];for(r in a)!n(s,r)&&n(a,r)&&l(u,r);while(t.length>c)n(a,r=t[c++])&&(~o(u,r)||l(u,r));return u}},function(e,t,r){var a=r(16),n=r(63),i=r(66),o=function(e){return function(t,r,o){var s,l=a(t),c=i(l),u=n(o,c);if(e&&r!=r){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,r){var a=r(64),n=Math.max,i=Math.min;e.exports=function(e,t){var r=a(e);return r<0?n(r+t,0):i(r,t)}},function(e,t,r){var a=r(65);e.exports=function(e){var t=+e;return t!==t||0===t?0:a(t)}},function(e){var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var a=+e;return(a>0?r:t)(a)}},function(e,t,r){var a=r(67);e.exports=function(e){return a(e.length)}},function(e,t,r){var a=r(64),n=Math.min;e.exports=function(e){return e>0?n(a(e),9007199254740991):0}},function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var a=r(11),n=r(24),i=/#|\.prototype\./,o=function(e,t){var r=l[s(e)];return r==u||r!=c&&(n(t)?a(t):!!t)},s=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},function(e,t,r){var a=r(36),n=r(72),i=r(47).f,o=a("unscopables"),s=Array.prototype;void 0==s[o]&&i(s,o,{configurable:!0,value:n(null)}),e.exports=function(e){s[o][e]=!0}},function(e,t,r){var a,n=r(49),i=r(73),o=r(68),s=r(57),l=r(75),c=r(45),u=r(56),h=">",d="<",f="prototype",p="script",v=u("IE_PROTO"),g=function(){},m=function(e){return d+p+h+e+d+"/"+p+h},y=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=c("iframe"),r="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(r),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},k=function(){try{a=new ActiveXObject("htmlfile")}catch(t){}k="undefined"!=typeof document?document.domain&&a?y(a):b():y(a);var e=o.length;while(e--)delete k[f][o[e]];return k()};s[v]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(g[f]=n(e),r=new g,g[f]=null,r[v]=e):r=k(),void 0===t?r:i.f(r,t)}},function(e,t,r){var a=r(10),n=r(48),i=r(47),o=r(49),s=r(16),l=r(74);t.f=a&&!n?Object.defineProperties:function(e,t){o(e);var r,a=s(t),n=l(t),c=n.length,u=0;while(c>u)i.f(e,r=n[u++],a[r]);return e}},function(e,t,r){var a=r(61),n=r(68);e.exports=Object.keys||function(e){return a(e,n)}},function(e,t,r){var a=r(26);e.exports=a("document","documentElement")},function(e,t,r){var a=r(8),n=r(18);e.exports=function(e,t){return n(a[e].prototype[t])}},function(e,t,r){r(78)},function(e,t,r){"use strict";var a=r(79),n=r(66),i=r(64),o=a.aTypedArray,s=a.exportTypedArrayMethod;s("at",(function(e){var t=o(this),r=n(t),a=i(e),s=a>=0?a:r+a;return s<0||s>=r?void 0:t[s]}))},function(e,t,r){"use strict";var a,n,i,o=r(80),s=r(10),l=r(8),c=r(24),u=r(23),h=r(41),d=r(81),f=r(34),p=r(46),v=r(50),g=r(47).f,m=r(27),y=r(83),b=r(85),k=r(36),w=r(43),_=r(54),S=_.enforce,x=_.get,A=l.Int8Array,C=A&&A.prototype,F=l.Uint8ClampedArray,P=F&&F.prototype,T=A&&y(A),O=C&&y(C),I=Object.prototype,E=l.TypeError,M=k("toStringTag"),R=w("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",N=o&&!!b&&"Opera"!==d(l.opera),L=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},j={BigInt64Array:8,BigUint64Array:8},U=function(e){if(!u(e))return!1;var t=d(e);return"DataView"===t||h(B,t)||h(j,t)},q=function e(t){var r=y(t);if(u(r)){var a=x(r);return a&&h(a,D)?a[D]:e(r)}},G=function(e){if(!u(e))return!1;var t=d(e);return h(B,t)||h(j,t)},H=function(e){if(G(e))return e;throw E("Target is not a typed array")},X=function(e){if(c(e)&&(!b||m(T,e)))return e;throw E(f(e)+" is not a typed array constructor")},$=function(e,t,r,a){if(s){if(r)for(var n in B){var i=l[n];if(i&&h(i.prototype,e))try{delete i.prototype[e]}catch(o){try{i.prototype[e]=t}catch(c){}}}O[e]&&!r||v(O,e,r?t:N&&C[e]||t,a)}},z=function(e,t,r){var a,n;if(s){if(b){if(r)for(a in B)if(n=l[a],n&&h(n,e))try{delete n[e]}catch(i){}if(T[e]&&!r)return;try{return v(T,e,r?t:N&&T[e]||t)}catch(i){}}for(a in B)n=l[a],!n||n[e]&&!r||v(n,e,t)}};for(a in B)n=l[a],i=n&&n.prototype,i?S(i)[D]=n:N=!1;for(a in j)n=l[a],i=n&&n.prototype,i&&(S(i)[D]=n);if((!N||!c(T)||T===Function.prototype)&&(T=function(){throw E("Incorrect invocation")},N))for(a in B)l[a]&&b(l[a],T);if((!N||!O||O===I)&&(O=T.prototype,N))for(a in B)l[a]&&b(l[a].prototype,O);if(N&&y(P)!==O&&b(P,O),s&&!h(O,M))for(a in L=!0,g(O,M,{get:function(){return u(this)?this[R]:void 0}}),B)l[a]&&p(l[a],R,a);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:L&&R,aTypedArray:H,aTypedArrayConstructor:X,exportTypedArrayMethod:$,exportTypedArrayStaticMethod:z,getTypedArrayConstructor:q,isView:U,isTypedArray:G,TypedArray:T,TypedArrayPrototype:O}},function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,r){var a=r(82),n=r(24),i=r(19),o=r(36),s=o("toStringTag"),l=Object,c="Arguments"==i(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(r){}};e.exports=a?i:function(e){var t,r,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=u(t=l(e),s))?r:c?i(t):"Object"==(a=i(t))&&n(t.callee)?"Arguments":a}},function(e,t,r){var a=r(36),n=a("toStringTag"),i={};i[n]="z",e.exports="[object z]"===String(i)},function(e,t,r){var a=r(41),n=r(24),i=r(42),o=r(56),s=r(84),l=o("IE_PROTO"),c=Object,u=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(a(t,l))return t[l];var r=t.constructor;return n(r)&&t instanceof r?r.prototype:t instanceof c?u:null}},function(e,t,r){var a=r(11);e.exports=!a((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,r){var a=r(18),n=r(49),i=r(86);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{e=a(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(r,[]),t=r instanceof Array}catch(o){}return function(r,a){return n(r),i(a),t?e(r,a):r.__proto__=a,r}}():void 0)},function(e,t,r){var a=r(24),n=String,i=TypeError;e.exports=function(e){if("object"==x(e)||a(e))return e;throw i("Can't set "+n(e)+" as a prototype")}},function(e,t,r){r(88),r(94),r(96),r(118),r(120);var a=r(129);e.exports=a.structuredClone},function(e,t,r){"use strict";var a=r(16),n=r(71),i=r(89),o=r(54),s=r(47).f,l=r(90),c=r(38),u=r(10),h="Array Iterator",d=o.set,f=o.getterFor(h);e.exports=l(Array,"Array",(function(e,t){d(this,{type:h,target:a(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,r=e.kind,a=e.index++;return!t||a>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:a,done:!1}:"values"==r?{value:t[a],done:!1}:{value:[a,t[a]],done:!1}}),"values");var p=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!c&&u&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(v){}},function(e){e.exports={}},function(e,t,r){"use strict";var a=r(7),n=r(12),i=r(38),o=r(52),s=r(24),l=r(91),c=r(83),u=r(85),h=r(93),d=r(46),f=r(50),p=r(36),v=r(89),g=r(92),m=o.PROPER,y=o.CONFIGURABLE,b=g.IteratorPrototype,k=g.BUGGY_SAFARI_ITERATORS,w=p("iterator"),_="keys",S="values",x="entries",A=function(){return this};e.exports=function(e,t,r,o,p,g,C){l(r,t,o);var F,P,T,O=function(e){if(e===p&&D)return D;if(!k&&e in M)return M[e];switch(e){case _:return function(){return new r(this,e)};case S:return function(){return new r(this,e)};case x:return function(){return new r(this,e)}}return function(){return new r(this)}},I=t+" Iterator",E=!1,M=e.prototype,R=M[w]||M["@@iterator"]||p&&M[p],D=!k&&R||O(p),N="Array"==t&&M.entries||R;if(N&&(F=c(N.call(new e)),F!==Object.prototype&&F.next&&(i||c(F)===b||(u?u(F,b):s(F[w])||f(F,w,A)),h(F,I,!0,!0),i&&(v[I]=A))),m&&p==S&&R&&R.name!==S&&(!i&&y?d(M,"name",S):(E=!0,D=function(){return n(R,this)})),p)if(P={values:O(S),keys:g?D:O(_),entries:O(x)},C)for(T in P)(k||E||!(T in M))&&f(M,T,P[T]);else a({target:t,proto:!0,forced:k||E},P);return i&&!C||M[w]===D||f(M,w,D,{name:p}),v[t]=D,P}},function(e,t,r){"use strict";var a=r(92).IteratorPrototype,n=r(72),i=r(15),o=r(93),s=r(89),l=function(){return this};e.exports=function(e,t,r,c){var u=t+" Iterator";return e.prototype=n(a,{next:i(+!c,r)}),o(e,u,!1,!0),s[u]=l,e}},function(e,t,r){"use strict";var a,n,i,o=r(11),s=r(24),l=r(72),c=r(83),u=r(50),h=r(36),d=r(38),f=h("iterator"),p=!1;[].keys&&(i=[].keys(),"next"in i?(n=c(c(i)),n!==Object.prototype&&(a=n)):p=!0);var v=void 0==a||o((function(){var e={};return a[f].call(e)!==e}));v?a={}:d&&(a=l(a)),s(a[f])||u(a,f,(function(){return this})),e.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:p}},function(e,t,r){var a=r(47).f,n=r(41),i=r(36),o=i("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!n(e,o)&&a(e,o,{configurable:!0,value:t})}},function(e,t,r){var a=r(82),n=r(50),i=r(95);a||n(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,r){"use strict";var a=r(82),n=r(81);e.exports=a?{}.toString:function(){return"[object "+n(this)+"]"}},function(e,t,r){r(97)},function(e,t,r){"use strict";var a=r(98),n=r(115);a("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n)},function(e,t,r){"use strict";var a=r(7),n=r(8),i=r(18),o=r(70),s=r(50),l=r(99),c=r(106),u=r(112),h=r(24),d=r(23),f=r(11),p=r(113),v=r(93),g=r(114);e.exports=function(e,t,r){var m=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),b=m?"set":"add",k=n[e],w=k&&k.prototype,_=k,S={},x=function(e){var t=i(w[e]);s(w,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!d(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return y&&!d(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!d(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})},A=o(e,!h(k)||!(y||w.forEach&&!f((function(){(new k).entries().next()}))));if(A)_=r.getConstructor(t,e,m,b),l.enable();else if(o(e,!0)){var C=new _,F=C[b](y?{}:-0,1)!=C,P=f((function(){C.has(1)})),T=p((function(e){new k(e)})),O=!y&&f((function(){var e=new k,t=5;while(t--)e[b](t,t);return!e.has(-0)}));T||(_=t((function(e,t){u(e,w);var r=g(new k,e,_);return void 0!=t&&c(t,r[b],{that:r,AS_ENTRIES:m}),r})),_.prototype=w,w.constructor=_),(P||O)&&(x("delete"),x("has"),m&&x("get")),(O||F)&&x(b),y&&w.clear&&delete w.clear}return S[e]=_,a({global:!0,constructor:!0,forced:_!=k},S),v(_,e),y||r.setStrong(_,e,m),_}},function(e,t,r){var a=r(7),n=r(18),i=r(57),o=r(23),s=r(41),l=r(47).f,c=r(60),u=r(100),h=r(103),d=r(43),f=r(105),p=!1,v=d("meta"),g=0,m=function(e){l(e,v,{value:{objectID:"O"+g++,weakData:{}}})},y=function(e,t){if(!o(e))return"symbol"==x(e)?e:("string"==typeof e?"S":"P")+e;if(!s(e,v)){if(!h(e))return"F";if(!t)return"E";m(e)}return e[v].objectID},b=function(e,t){if(!s(e,v)){if(!h(e))return!0;if(!t)return!1;m(e)}return e[v].weakData},k=function(e){return f&&p&&h(e)&&!s(e,v)&&m(e),e},w=function(){_.enable=function(){},p=!0;var e=c.f,t=n([].splice),r={};r[v]=1,e(r).length&&(c.f=function(r){for(var a=e(r),n=0,i=a.length;n<i;n++)if(a[n]===v){t(a,n,1);break}return a},a({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},_=e.exports={enable:w,fastKey:y,getWeakData:b,onFreeze:k};i[v]=!0},function(e,t,r){var a=r(19),n=r(16),i=r(60).f,o=r(101),s="object"==("undefined"===typeof window?"undefined":x(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return i(e)}catch(t){return o(s)}};e.exports.f=function(e){return s&&"Window"==a(e)?l(e):i(n(e))}},function(e,t,r){var a=r(63),n=r(66),i=r(102),o=Array,s=Math.max;e.exports=function(e,t,r){for(var l=n(e),c=a(t,l),u=a(void 0===r?l:r,l),h=o(s(u-c,0)),d=0;c<u;c++,d++)i(h,d,e[c]);return h.length=d,h}},function(e,t,r){"use strict";var a=r(21),n=r(47),i=r(15);e.exports=function(e,t,r){var o=a(t);o in e?n.f(e,o,i(0,r)):e[o]=r}},function(e,t,r){var a=r(11),n=r(23),i=r(19),o=r(104),s=Object.isExtensible,l=a((function(){s(1)}));e.exports=l||o?function(e){return!!n(e)&&((!o||"ArrayBuffer"!=i(e))&&(!s||s(e)))}:s},function(e,t,r){var a=r(11);e.exports=a((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,t,r){var a=r(11);e.exports=!a((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,r){var a=r(107),n=r(12),i=r(49),o=r(34),s=r(108),l=r(66),c=r(27),u=r(109),h=r(110),d=r(111),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},v=p.prototype;e.exports=function(e,t,r){var g,m,y,b,k,w,_,S=r&&r.that,A=!(!r||!r.AS_ENTRIES),C=!(!r||!r.IS_RECORD),F=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),T=a(t,S),O=function(e){return g&&d(g,"normal",e),new p(!0,e)},I=function(e){return A?(i(e),P?T(e[0],e[1],O):T(e[0],e[1])):P?T(e,O):T(e)};if(C)g=e.iterator;else if(F)g=e;else{if(m=h(e),!m)throw f(o(e)+" is not iterable");if(s(m)){for(y=0,b=l(e);b>y;y++)if(k=I(e[y]),k&&c(v,k))return k;return new p(!1)}g=u(e,m)}w=C?e.next:g.next;while(!(_=n(w,g)).done){try{k=I(_.value)}catch(E){d(g,"throw",E)}if("object"==x(k)&&k&&c(v,k))return k}return new p(!1)}},function(e,t,r){var a=r(18),n=r(33),i=r(13),o=a(a.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},function(e,t,r){var a=r(36),n=r(89),i=a("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},function(e,t,r){var a=r(12),n=r(33),i=r(49),o=r(34),s=r(110),l=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(n(r))return i(a(r,e));throw l(o(e)+" is not iterable")}},function(e,t,r){var a=r(81),n=r(32),i=r(89),o=r(36),s=o("iterator");e.exports=function(e){if(void 0!=e)return n(e,s)||n(e,"@@iterator")||i[a(e)]}},function(e,t,r){var a=r(12),n=r(49),i=r(32);e.exports=function(e,t,r){var o,s;n(e);try{if(o=i(e,"return"),!o){if("throw"===t)throw r;return r}o=a(o,e)}catch(l){s=!0,o=l}if("throw"===t)throw r;if(s)throw o;return n(o),r}},function(e,t,r){var a=r(27),n=TypeError;e.exports=function(e,t){if(a(t,e))return e;throw n("Incorrect invocation")}},function(e,t,r){var a=r(36),n=a("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var a={};a[n]=function(){return{next:function(){return{done:r=!0}}}},e(a)}catch(l){}return r}},function(e,t,r){var a=r(24),n=r(23),i=r(85);e.exports=function(e,t,r){var o,s;return i&&a(o=t.constructor)&&o!==r&&n(s=o.prototype)&&s!==r.prototype&&i(e,s),e}},function(e,t,r){"use strict";var a=r(47).f,n=r(72),i=r(116),o=r(107),s=r(112),l=r(106),c=r(90),u=r(117),h=r(10),d=r(99).fastKey,f=r(54),p=f.set,v=f.getterFor;e.exports={getConstructor:function(e,t,r,c){var u=e((function(e,a){s(e,f),p(e,{type:t,index:n(null),first:void 0,last:void 0,size:0}),h||(e.size=0),void 0!=a&&l(a,e[c],{that:e,AS_ENTRIES:r})})),f=u.prototype,g=v(t),m=function(e,t,r){var a,n,i=g(e),o=y(e,t);return o?o.value=r:(i.last=o={index:n=d(t,!0),key:t,value:r,previous:a=i.last,next:void 0,removed:!1},i.first||(i.first=o),a&&(a.next=o),h?i.size++:e.size++,"F"!==n&&(i.index[n]=o)),e},y=function(e,t){var r,a=g(e),n=d(t);if("F"!==n)return a.index[n];for(r=a.first;r;r=r.next)if(r.key==t)return r};return i(f,{clear:function(){var e=this,t=g(e),r=t.index,a=t.first;while(a)a.removed=!0,a.previous&&(a.previous=a.previous.next=void 0),delete r[a.index],a=a.next;t.first=t.last=void 0,h?t.size=0:e.size=0},delete:function(e){var t=this,r=g(t),a=y(t,e);if(a){var n=a.next,i=a.previous;delete r.index[a.index],a.removed=!0,i&&(i.next=n),n&&(n.previous=i),r.first==a&&(r.first=n),r.last==a&&(r.last=i),h?r.size--:t.size--}return!!a},forEach:function(e){var t,r=g(this),a=o(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:r.first){a(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!y(this,e)}}),i(f,r?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),h&&a(f,"size",{get:function(){return g(this).size}}),u},setStrong:function(e,t,r){var a=t+" Iterator",n=v(t),i=v(a);c(e,t,(function(e,t){p(this,{type:a,target:e,state:n(e),kind:t,last:void 0})}),(function(){var e=i(this),t=e.kind,r=e.last;while(r&&r.removed)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),u(t)}}},function(e,t,r){var a=r(50);e.exports=function(e,t,r){for(var n in t)a(e,n,t[n],r);return e}},function(e,t,r){"use strict";var a=r(26),n=r(47),i=r(36),o=r(10),s=i("species");e.exports=function(e){var t=a(e),r=n.f;o&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,r){r(119)},function(e,t,r){"use strict";var a=r(98),n=r(115);a("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n)},function(e,t,r){var a=r(38),n=r(7),i=r(8),o=r(26),s=r(18),l=r(11),c=r(43),u=r(24),h=r(121),d=r(23),f=r(25),p=r(106),v=r(49),g=r(81),m=r(41),y=r(102),b=r(46),k=r(66),w=r(122),_=r(123),S=r(125),A=r(30),C=r(126),F=r(127),P=r(128),T=i.Object,O=i.Date,I=i.Error,E=i.EvalError,M=i.RangeError,R=i.ReferenceError,D=i.SyntaxError,N=i.TypeError,L=i.URIError,B=i.PerformanceMark,j=i.WebAssembly,U=j&&j.CompileError||I,q=j&&j.LinkError||I,G=j&&j.RuntimeError||I,H=o("DOMException"),X=o("Set"),$=o("Map"),z=$.prototype,W=s(z.has),V=s(z.get),Y=s(z.set),K=s(X.prototype.add),J=o("Object","keys"),Z=s([].push),Q=s((!0).valueOf),ee=s(1..valueOf),te=s("".valueOf),re=s(O.prototype.getTime),ae=c("structuredClone"),ne="DataCloneError",ie="Transferring",oe=function(e){return!l((function(){var t=new i.Set([7]),r=e(t),a=e(T(7));return r==t||!r.has(7)||"object"!=x(a)||7!=a}))&&e},se=function(e,t){return!l((function(){var r=new t,a=e({a:r,b:r});return!(a&&a.a===a.b&&a.a instanceof t&&a.a.stack===r.stack)}))},le=function(e){return!l((function(){var t=e(new i.AggregateError([1],ae,{cause:3}));return"AggregateError"!=t.name||1!=t.errors[0]||t.message!=ae||3!=t.cause}))},ce=i.structuredClone,ue=a||!se(ce,I)||!se(ce,H)||!le(ce),he=!ce&&oe((function(e){return new B(ae,{detail:e}).detail})),de=oe(ce)||he,fe=function(e){throw new H("Uncloneable type: "+e,ne)},pe=function(e,t){throw new H((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",ne)},ve=function e(t,r){if(f(t)&&fe("Symbol"),!d(t))return t;if(r){if(W(r,t))return V(r,t)}else r=new $;var a,n,s,l,c,p,v,w,x,A,C=g(t),F=!1;switch(C){case"Array":s=[],F=!0;break;case"Object":s={},F=!0;break;case"Map":s=new $,F=!0;break;case"Set":s=new X,F=!0;break;case"RegExp":s=new RegExp(t.source,_(t));break;case"Error":switch(n=t.name,n){case"AggregateError":s=o("AggregateError")([]);break;case"EvalError":s=E();break;case"RangeError":s=M();break;case"ReferenceError":s=R();break;case"SyntaxError":s=D();break;case"TypeError":s=N();break;case"URIError":s=L();break;case"CompileError":s=U();break;case"LinkError":s=q();break;case"RuntimeError":s=G();break;default:s=I()}F=!0;break;case"DOMException":s=new H(t.message,t.name),F=!0;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":a=i[C],d(a)||pe(C),s=new a(e(t.buffer,r),t.byteOffset,"DataView"===C?t.byteLength:t.length);break;case"DOMQuad":try{s=new DOMQuad(e(t.p1,r),e(t.p2,r),e(t.p3,r),e(t.p4,r))}catch(P){de?s=de(t):pe(C)}break;case"FileList":if(a=i.DataTransfer,h(a)){for(l=new a,c=0,p=k(t);c<p;c++)l.items.add(e(t[c],r));s=l.files}else de?s=de(t):pe(C);break;case"ImageData":try{s=new ImageData(e(t.data,r),t.width,t.height,{colorSpace:t.colorSpace})}catch(P){de?s=de(t):pe(C)}break;default:if(de)s=de(t);else switch(C){case"BigInt":s=T(t.valueOf());break;case"Boolean":s=T(Q(t));break;case"Number":s=T(ee(t));break;case"String":s=T(te(t));break;case"Date":s=new O(re(t));break;case"ArrayBuffer":a=i.DataView,a||"function"==typeof t.slice||pe(C);try{if("function"==typeof t.slice)s=t.slice(0);else for(p=t.byteLength,s=new ArrayBuffer(p),x=new a(t),A=new a(s),c=0;c<p;c++)A.setUint8(c,x.getUint8(c))}catch(P){throw new H("ArrayBuffer is detached",ne)}break;case"SharedArrayBuffer":s=t;break;case"Blob":try{s=t.slice(0,t.size,t.type)}catch(P){pe(C)}break;case"DOMPoint":case"DOMPointReadOnly":a=i[C];try{s=a.fromPoint?a.fromPoint(t):new a(t.x,t.y,t.z,t.w)}catch(P){pe(C)}break;case"DOMRect":case"DOMRectReadOnly":a=i[C];try{s=a.fromRect?a.fromRect(t):new a(t.x,t.y,t.width,t.height)}catch(P){pe(C)}break;case"DOMMatrix":case"DOMMatrixReadOnly":a=i[C];try{s=a.fromMatrix?a.fromMatrix(t):new a(t)}catch(P){pe(C)}break;case"AudioData":case"VideoFrame":u(t.clone)||pe(C);try{s=t.clone()}catch(P){fe(C)}break;case"File":try{s=new File([t],t.name,t)}catch(P){pe(C)}break;case"CryptoKey":case"GPUCompilationMessage":case"GPUCompilationInfo":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":pe(C);default:fe(C)}}if(Y(r,t,s),F)switch(C){case"Array":case"Object":for(v=J(t),c=0,p=k(v);c<p;c++)w=v[c],y(s,w,e(t[w],r));break;case"Map":t.forEach((function(t,a){Y(s,e(a,r),e(t,r))}));break;case"Set":t.forEach((function(t){K(s,e(t,r))}));break;case"Error":b(s,"message",e(t.message,r)),m(t,"cause")&&b(s,"cause",e(t.cause,r)),"AggregateError"==n&&(s.errors=e(t.errors,r));case"DOMException":S&&b(s,"stack",e(t.stack,r))}return s},ge=ce&&!l((function(){if(F&&A>92||P&&A>94||C&&A>97)return!1;var e=new ArrayBuffer(8),t=ce(e,{transfer:[e]});return 0!=e.byteLength||8!=t.byteLength})),me=function(e,t){if(!d(e))throw N("Transfer option cannot be converted to a sequence");var r=[];p(e,(function(e){Z(r,v(e))}));var a,n,o,s,l,c,f,m=0,y=k(r);if(ge){s=ce(r,{transfer:r});while(m<y)Y(t,r[m],s[m++])}else while(m<y){if(a=r[m++],W(t,a))throw new H("Duplicate transferable",ne);switch(n=g(a),n){case"ImageBitmap":o=i.OffscreenCanvas,h(o)||pe(n,ie);try{c=new o(a.width,a.height),f=c.getContext("bitmaprenderer"),f.transferFromImageBitmap(a),l=c.transferToImageBitmap()}catch(b){}break;case"AudioData":case"VideoFrame":u(a.clone)&&u(a.close)||pe(n,ie);try{l=a.clone(),a.close()}catch(b){}break;case"ArrayBuffer":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":pe(n,ie)}if(void 0===l)throw new H("This object cannot be transferred: "+n,ne);Y(t,a,l)}};n({global:!0,enumerable:!0,sham:!ge,forced:ue},{structuredClone:function(e){var t,r=w(arguments.length,1)>1&&null!=arguments[1]?v(arguments[1]):void 0,a=r?r.transfer:void 0;return void 0!==a&&(t=new $,me(a,t)),ve(e,t)}})},function(e,t,r){var a=r(18),n=r(11),i=r(24),o=r(81),s=r(26),l=r(53),c=function(){},u=[],h=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=a(d.exec),p=!d.exec(c),v=function(e){if(!i(e))return!1;try{return h(c,u,e),!0}catch(t){return!1}},g=function(e){if(!i(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(d,l(e))}catch(t){return!0}};g.sham=!0,e.exports=!h||n((function(){var e;return v(v.call)||!v(Object)||!v((function(){e=!0}))||e}))?g:v},function(e){var t=TypeError;e.exports=function(e,r){if(e<r)throw t("Not enough arguments");return e}},function(e,t,r){var a=r(12),n=r(41),i=r(27),o=r(124),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||n(e,"flags")||!i(s,e)?t:a(o,e)}},function(e,t,r){"use strict";var a=r(49);e.exports=function(){var e=a(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},function(e,t,r){var a=r(11),n=r(15);e.exports=!a((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},function(e,t,r){var a=r(127),n=r(128);e.exports=!a&&!n&&"object"==("undefined"===typeof window?"undefined":x(window))&&"object"==("undefined"===typeof document?"undefined":x(document))},function(e){e.exports="object"==("undefined"===typeof Deno?"undefined":x(Deno))&&Deno&&"object"==x(Deno.version)},function(e,t,r){var a=r(19),n=r(8);e.exports="process"==a(n.process)},function(e,t,r){var a=r(8);e.exports=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RefSetCache=t.RefSet=t.Ref=t.Name=t.EOF=t.Dict=t.Cmd=t.CIRCULAR_REF=void 0,t.clearPrimitiveCaches=y,t.isCmd=p,t.isDict=v,t.isName=f,t.isRefsEqual=g;var a=r(2),n=Symbol("CIRCULAR_REF");t.CIRCULAR_REF=n;var i=Symbol("EOF");t.EOF=i;var o=function(){var e=Object.create(null),t=function(){function t(e){_(this,t),this.name=e}return S(t,null,[{key:"get",value:function(r){return e[r]||(e[r]=new t(r))}},{key:"_clearCache",value:function(){e=Object.create(null)}}]),t}();return t}();t.Name=o;var s=function(){var e=Object.create(null),t=function(){function t(e){_(this,t),this.cmd=e}return S(t,null,[{key:"get",value:function(r){return e[r]||(e[r]=new t(r))}},{key:"_clearCache",value:function(){e=Object.create(null)}}]),t}();return t}();t.Cmd=s;var l=function(){return l},c=function(){function e(){_(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._map=Object.create(null),this.xref=t,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=l}return S(e,[{key:"assignXref",value:function(e){this.xref=e}},{key:"size",get:function(){return Object.keys(this._map).length}},{key:"get",value:function(e,t,r){var a=this._map[e];return void 0===a&&void 0!==t&&(a=this._map[t],void 0===a&&void 0!==r&&(a=this._map[r])),a instanceof u&&this.xref?this.xref.fetch(a,this.suppressEncryption):a}},{key:"getAsync",value:function(){var e=w(m().mark((function e(t,r,a){var n;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=this._map[t],void 0===n&&void 0!==r&&(n=this._map[r],void 0===n&&void 0!==a&&(n=this._map[a])),!(n instanceof u&&this.xref)){e.next=4;break}return e.abrupt("return",this.xref.fetchAsync(n,this.suppressEncryption));case 4:return e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));function t(t,r,a){return e.apply(this,arguments)}return t}()},{key:"getArray",value:function(e,t,r){var a=this._map[e];if(void 0===a&&void 0!==t&&(a=this._map[t],void 0===a&&void 0!==r&&(a=this._map[r])),a instanceof u&&this.xref&&(a=this.xref.fetch(a,this.suppressEncryption)),Array.isArray(a)){a=a.slice();for(var n=0,i=a.length;n<i;n++)a[n]instanceof u&&this.xref&&(a[n]=this.xref.fetch(a[n],this.suppressEncryption))}return a}},{key:"getRaw",value:function(e){return this._map[e]}},{key:"getKeys",value:function(){return Object.keys(this._map)}},{key:"getRawValues",value:function(){return Object.values(this._map)}},{key:"set",value:function(e,t){this._map[e]=t}},{key:"has",value:function(e){return void 0!==this._map[e]}},{key:"forEach",value:function(e){for(var t in this._map)e(t,this.get(t))}}],[{key:"empty",get:function(){var t=new e(null);return t.set=function(e,t){(0,a.unreachable)("Should not call `set` on the empty dictionary.")},(0,a.shadow)(this,"empty",t)}},{key:"merge",value:function(t){var r,a=t.xref,n=t.dictArray,i=t.mergeSubDicts,o=void 0!==i&&i,s=new e(a),l=new Map,c=b(n);try{for(c.s();!(r=c.n()).done;){var u=r.value;if(u instanceof e)for(var h=0,d=Object.entries(u._map);h<d.length;h++){var f=k(d[h],2),p=f[0],v=f[1],g=l.get(p);if(void 0===g)g=[],l.set(p,g);else if(!o||!(v instanceof e))continue;g.push(v)}}}catch(M){c.e(M)}finally{c.f()}var m,y=b(l);try{for(y.s();!(m=y.n()).done;){var w=k(m.value,2),_=w[0],S=w[1];if(1!==S.length&&S[0]instanceof e){var x,A=new e(a),C=b(S);try{for(C.s();!(x=C.n()).done;)for(var F=x.value,P=0,T=Object.entries(F._map);P<T.length;P++){var O=k(T[P],2),I=O[0],E=O[1];void 0===A._map[I]&&(A._map[I]=E)}}catch(M){C.e(M)}finally{C.f()}A.size>0&&(s._map[_]=A)}else s._map[_]=S[0]}}catch(M){y.e(M)}finally{y.f()}return l.clear(),s.size>0?s:e.empty}}]),e}();t.Dict=c;var u=function(){var e=Object.create(null),t=function(){function t(e,r){_(this,t),this.num=e,this.gen=r}return S(t,[{key:"toString",value:function(){return 0===this.gen?"".concat(this.num,"R"):"".concat(this.num,"R").concat(this.gen)}}],[{key:"get",value:function(r,a){var n=0===a?"".concat(r,"R"):"".concat(r,"R").concat(a);return e[n]||(e[n]=new t(r,a))}},{key:"_clearCache",value:function(){e=Object.create(null)}}]),t}();return t}();t.Ref=u;var h=function(e){function t(){_(this,t);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._set=new Set(e&&e._set)}return S(t,[{key:"has",value:function(e){return this._set.has(e.toString())}},{key:"put",value:function(e){this._set.add(e.toString())}},{key:"remove",value:function(e){this._set["delete"](e.toString())}},{key:e,value:function(){return this._set.values()}},{key:"clear",value:function(){this._set.clear()}}]),t}(Symbol.iterator);t.RefSet=h;var d=function(e){function t(){_(this,t),this._map=new Map}return S(t,[{key:"size",get:function(){return this._map.size}},{key:"get",value:function(e){return this._map.get(e.toString())}},{key:"has",value:function(e){return this._map.has(e.toString())}},{key:"put",value:function(e,t){this._map.set(e.toString(),t)}},{key:"putAlias",value:function(e,t){this._map.set(e.toString(),this.get(t))}},{key:e,value:function(){return this._map.values()}},{key:"clear",value:function(){this._map.clear()}}]),t}(Symbol.iterator);function f(e,t){return e instanceof o&&(void 0===t||e.name===t)}function p(e,t){return e instanceof s&&(void 0===t||e.cmd===t)}function v(e,t){return e instanceof c&&(void 0===t||f(e.get("Type"),t))}function g(e,t){return e.num===t.num&&e.gen===t.gen}function y(){s._clearCache(),o._clearCache(),u._clearCache()}t.RefSetCache=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XRefParseException=t.XRefEntryException=t.ParserEOFException=t.MissingDataException=t.DocStats=void 0,t.collectActions=O,t.encodeToXmlString=E,t.escapePDFName=P,t.getArrayLookupTableFactory=s,t.getInheritableProperty=f,t.getLookupTableFactory=o,t.getNewAnnotationsMap=N,t.isWhiteSpace=C,t.log2=y,t.numberToString=D,t.parseXFAPath=F,t.readInt8=w,t.readUint16=x,t.readUint32=A,t.recoverJsURL=R,t.toRomanNumerals=m,t.validateCSSFont=M;var a=r(2),n=r(130),i=r(132);function o(e){var t;return function(){return e&&(t=Object.create(null),e(t),e=null),t}}function s(e){var t;return function(){if(e){var r=e();e=null,t=Object.create(null);for(var a=0,n=r.length;a<n;a+=2)t[r[a]]=r[a+1];r=null}return t}}var l=function(e){v(r,e);var t=g(r);function r(e,a){var n;return _(this,r),n=t.call(this,"Missing data [".concat(e,", ").concat(a,")"),"MissingDataException"),n.begin=e,n.end=a,n}return S(r)}(a.BaseException);t.MissingDataException=l;var c=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,e,"ParserEOFException")}return S(r)}(a.BaseException);t.ParserEOFException=c;var u=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,e,"XRefEntryException")}return S(r)}(a.BaseException);t.XRefEntryException=u;var h=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,e,"XRefParseException")}return S(r)}(a.BaseException);t.XRefParseException=h;var d=function(){function e(t){_(this,e),this._handler=t,this._streamTypes=new Set,this._fontTypes=new Set}return S(e,[{key:"_send",value:function(){var e,t=Object.create(null),r=Object.create(null),a=b(this._streamTypes);try{for(a.s();!(e=a.n()).done;){var n=e.value;t[n]=!0}}catch(l){a.e(l)}finally{a.f()}var i,o=b(this._fontTypes);try{for(o.s();!(i=o.n()).done;){var s=i.value;r[s]=!0}}catch(l){o.e(l)}finally{o.f()}this._handler.send("DocStats",{streamTypes:t,fontTypes:r})}},{key:"addStreamType",value:function(e){this._streamTypes.has(e)||(this._streamTypes.add(e),this._send())}},{key:"addFontType",value:function(e){this._fontTypes.has(e)||(this._fontTypes.add(e),this._send())}}]),e}();function f(e){var t,r=e.dict,a=e.key,i=e.getArray,o=void 0!==i&&i,s=e.stopWhenFound,l=void 0===s||s,c=new n.RefSet;while(r instanceof n.Dict&&(!r.objId||!c.has(r.objId))){r.objId&&c.put(r.objId);var u=o?r.getArray(a):r.get(a);if(void 0!==u){if(l)return u;t||(t=[]),t.push(u)}r=r.get("Parent")}return t}t.DocStats=d;var p=["","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 m(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,a.assert)(Number.isInteger(e)&&e>0,"The number should be a positive integer.");var r,n=[];while(e>=1e3)e-=1e3,n.push("M");r=e/100|0,e%=100,n.push(p[r]),r=e/10|0,e%=10,n.push(p[10+r]),n.push(p[20+e]);var i=n.join("");return t?i.toLowerCase():i}function y(e){return e<=0?0:Math.ceil(Math.log2(e))}function w(e,t){return e[t]<<24>>24}function x(e,t){return e[t]<<8|e[t+1]}function A(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function C(e){return 32===e||9===e||13===e||10===e}function F(e){var t=/(.+)\[(\d+)\]$/;return e.split(".").map((function(e){var r=e.match(t);return r?{name:r[1],pos:parseInt(r[2],10)}:{name:e,pos:0}}))}function P(e){for(var t=[],r=0,a=0,n=e.length;a<n;a++){var i=e.charCodeAt(a);(i<33||i>126||35===i||40===i||41===i||60===i||62===i||91===i||93===i||123===i||125===i||47===i||37===i)&&(r<a&&t.push(e.substring(r,a)),t.push("#".concat(i.toString(16))),r=a+1)}return 0===t.length?e:(r<e.length&&t.push(e.substring(r,e.length)),t.join(""))}function T(e,t,r,o){if(e){var s=null;if(e instanceof n.Ref){if(o.has(e))return;s=e,o.put(s),e=t.fetch(e)}if(Array.isArray(e)){var l,c=b(e);try{for(c.s();!(l=c.n()).done;){var u=l.value;T(u,t,r,o)}}catch(f){c.e(f)}finally{c.f()}}else if(e instanceof n.Dict){if((0,n.isName)(e.get("S"),"JavaScript")){var h,d=e.get("JS");d instanceof i.BaseStream?h=d.getString():"string"===typeof d&&(h=d),h=h&&(0,a.stringToPDFString)(h).replace(/\u0000/g,""),h&&r.push(h)}T(e.getRaw("Next"),t,r,o)}s&&o.remove(s)}}function O(e,t,r){var i=Object.create(null),o=f({dict:t,key:"AA",stopWhenFound:!1});if(o)for(var s=o.length-1;s>=0;s--){var l=o[s];if(l instanceof n.Dict){var c,u=b(l.getKeys());try{for(u.s();!(c=u.n()).done;){var h=c.value,d=r[h];if(d){var p=l.getRaw(h),v=new n.RefSet,g=[];T(p,e,g,v),g.length>0&&(i[d]=g)}}}catch(w){u.e(w)}finally{u.f()}}}if(t.has("A")){var m=t.get("A"),y=new n.RefSet,k=[];T(m,e,k,y),k.length>0&&(i.Action=k)}return(0,a.objectSize)(i)>0?i:null}var I={60:"<",62:">",38:"&",34:""",39:"'"};function E(e){for(var t=[],r=0,a=0,n=e.length;a<n;a++){var i=e.codePointAt(a);if(32<=i&&i<=126){var o=I[i];o&&(r<a&&t.push(e.substring(r,a)),t.push(o),r=a+1)}else r<a&&t.push(e.substring(r,a)),t.push("&#x".concat(i.toString(16).toUpperCase(),";")),i>55295&&(i<57344||i>65533)&&a++,r=a+1}return 0===t.length?e:(r<e.length&&t.push(e.substring(r,e.length)),t.join(""))}function M(e){var t="14",r="400",n=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),i=e.fontFamily,o=e.fontWeight,s=e.italicAngle;if(/^".*"$/.test(i)){if(/[^\\]"/.test(i.slice(1,i.length-1)))return(0,a.warn)('XFA - FontFamily contains some unescaped ": '.concat(i,".")),!1}else if(/^'.*'$/.test(i)){if(/[^\\]'/.test(i.slice(1,i.length-1)))return(0,a.warn)("XFA - FontFamily contains some unescaped ': ".concat(i,".")),!1}else{var l,c=b(i.split(/[ \t]+/));try{for(c.s();!(l=c.n()).done;){var u=l.value;if(/^(\d|(-(\d|-)))/.test(u)||!/^[\w-\\]+$/.test(u))return(0,a.warn)("XFA - FontFamily contains some invalid <custom-ident>: ".concat(i,".")),!1}}catch(f){c.e(f)}finally{c.f()}}var h=o?o.toString():"";e.fontWeight=n.has(h)?h:r;var d=parseFloat(s);return e.italicAngle=isNaN(d)||d<-90||d>90?t:s.toString(),!0}function R(e){var t=["app.launchURL","window.open","xfa.host.gotoURL"],r=new RegExp("^\\s*("+t.join("|").split(".").join("\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i"),a=r.exec(e);if(a&&a[2]){var n=a[2],i=!1;return"true"===a[3]&&"app.launchURL"===a[1]&&(i=!0),{url:n,newWindow:i}}return null}function D(e){if(Number.isInteger(e))return e.toString();var t=Math.round(100*e);return t%100===0?(t/100).toString():t%10===0?e.toFixed(1):e.toFixed(2)}function N(e){if(!e)return null;var t,r=new Map,n=b(e);try{for(n.s();!(t=n.n()).done;){var i=k(t.value,2),o=i[0],s=i[1];if(o.startsWith(a.AnnotationEditorPrefix)){var l=r.get(s.pageIndex);l||(l=[],r.set(s.pageIndex,l)),l.push(s)}}}catch(c){n.e(c)}finally{n.f()}return r.size>0?r:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStream=void 0;var a=r(2),n=function(){function e(){_(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize BaseStream.")}return S(e,[{key:"length",get:function(){(0,a.unreachable)("Abstract getter `length` accessed")}},{key:"isEmpty",get:function(){(0,a.unreachable)("Abstract getter `isEmpty` accessed")}},{key:"isDataLoaded",get:function(){return(0,a.shadow)(this,"isDataLoaded",!0)}},{key:"getByte",value:function(){(0,a.unreachable)("Abstract method `getByte` called")}},{key:"getBytes",value:function(e){(0,a.unreachable)("Abstract method `getBytes` called")}},{key:"peekByte",value:function(){var e=this.getByte();return-1!==e&&this.pos--,e}},{key:"peekBytes",value:function(e){var t=this.getBytes(e);return this.pos-=t.length,t}},{key:"getUint16",value:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t}},{key:"getInt32",value:function(){var e=this.getByte(),t=this.getByte(),r=this.getByte(),a=this.getByte();return(e<<24)+(t<<16)+(r<<8)+a}},{key:"getByteRange",value:function(e,t){(0,a.unreachable)("Abstract method `getByteRange` called")}},{key:"getString",value:function(e){return(0,a.bytesToString)(this.getBytes(e))}},{key:"skip",value:function(e){this.pos+=e||1}},{key:"reset",value:function(){(0,a.unreachable)("Abstract method `reset` called")}},{key:"moveStart",value:function(){(0,a.unreachable)("Abstract method `moveStart` called")}},{key:"makeSubStream",value:function(e,t){(0,a.unreachable)("Abstract method `makeSubStream` called")}},{key:"getBaseStreams",value:function(){return null}}]),e}();t.BaseStream=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkPdfManager=t.LocalPdfManager=void 0;var a=r(2),n=r(134),i=r(131),o=r(136),s=r(135);function l(e){if(e){var t=(0,a.createValidAbsoluteUrl)(e);if(t)return t.href;(0,a.warn)('Invalid absolute docBaseUrl: "'.concat(e,'".'))}return null}var c=function(){function e(){_(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize BasePdfManager.")}return S(e,[{key:"docId",get:function(){return this._docId}},{key:"password",get:function(){return this._password}},{key:"docBaseUrl",get:function(){var e=this.pdfDocument.catalog;return(0,a.shadow)(this,"docBaseUrl",e.baseUrl||this._docBaseUrl)}},{key:"onLoadedStream",value:function(){(0,a.unreachable)("Abstract method `onLoadedStream` called")}},{key:"ensureDoc",value:function(e,t){return this.ensure(this.pdfDocument,e,t)}},{key:"ensureXRef",value:function(e,t){return this.ensure(this.pdfDocument.xref,e,t)}},{key:"ensureCatalog",value:function(e,t){return this.ensure(this.pdfDocument.catalog,e,t)}},{key:"getPage",value:function(e){return this.pdfDocument.getPage(e)}},{key:"fontFallback",value:function(e,t){return this.pdfDocument.fontFallback(e,t)}},{key:"loadXfaFonts",value:function(e,t){return this.pdfDocument.loadXfaFonts(e,t)}},{key:"loadXfaImages",value:function(){return this.pdfDocument.loadXfaImages()}},{key:"serializeXfaData",value:function(e){return this.pdfDocument.serializeXfaData(e)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pdfDocument.cleanup(e)}},{key:"ensure",value:function(){var e=w(m().mark((function e(t,r,n){return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:(0,a.unreachable)("Abstract method `ensure` called");case 1:case"end":return e.stop()}}),e)})));function t(t,r,a){return e.apply(this,arguments)}return t}()},{key:"requestRange",value:function(e,t){(0,a.unreachable)("Abstract method `requestRange` called")}},{key:"requestLoadedStream",value:function(){(0,a.unreachable)("Abstract method `requestLoadedStream` called")}},{key:"sendProgressiveData",value:function(e){(0,a.unreachable)("Abstract method `sendProgressiveData` called")}},{key:"updatePassword",value:function(e){this._password=e}},{key:"terminate",value:function(e){(0,a.unreachable)("Abstract method `terminate` called")}}]),e}(),u=function(e){v(r,e);var t=g(r);function r(e,a,n,i,c,u,h){var d;_(this,r),d=t.call(this),d._docId=e,d._password=n,d._docBaseUrl=l(h),d.msgHandler=i,d.evaluatorOptions=c,d.enableXfa=u;var p=new s.Stream(a);return d.pdfDocument=new o.PDFDocument(f(d),p),d._loadedStreamPromise=Promise.resolve(p),d}return S(r,[{key:"ensure",value:function(){var e=w(m().mark((function e(t,r,a){var n;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t[r],"function"!==typeof n){e.next=3;break}return e.abrupt("return",n.apply(t,a));case 3:return e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));function t(t,r,a){return e.apply(this,arguments)}return t}()},{key:"requestRange",value:function(e,t){return Promise.resolve()}},{key:"requestLoadedStream",value:function(){}},{key:"onLoadedStream",value:function(){return this._loadedStreamPromise}},{key:"terminate",value:function(e){}}]),r}(c);t.LocalPdfManager=u;var h=function(e){v(r,e);var t=g(r);function r(e,a,i,s,c,u){var h;return _(this,r),h=t.call(this),h._docId=e,h._password=i.password,h._docBaseUrl=l(u),h.msgHandler=i.msgHandler,h.evaluatorOptions=s,h.enableXfa=c,h.streamManager=new n.ChunkedStreamManager(a,{msgHandler:i.msgHandler,length:i.length,disableAutoFetch:i.disableAutoFetch,rangeChunkSize:i.rangeChunkSize}),h.pdfDocument=new o.PDFDocument(f(h),h.streamManager.getStream()),h}return S(r,[{key:"ensure",value:function(){var e=w(m().mark((function e(t,r,a){var n;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,n=t[r],"function"!==typeof n){e.next=4;break}return e.abrupt("return",n.apply(t,a));case 4:return e.abrupt("return",n);case 7:if(e.prev=7,e.t0=e["catch"](0),e.t0 instanceof i.MissingDataException){e.next=11;break}throw e.t0;case 11:return e.next=13,this.requestRange(e.t0.begin,e.t0.end);case 13:return e.abrupt("return",this.ensure(t,r,a));case 14:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(t,r,a){return e.apply(this,arguments)}return t}()},{key:"requestRange",value:function(e,t){return this.streamManager.requestRange(e,t)}},{key:"requestLoadedStream",value:function(){this.streamManager.requestAllChunks()}},{key:"sendProgressiveData",value:function(e){this.streamManager.onReceiveData({chunk:e})}},{key:"onLoadedStream",value:function(){return this.streamManager.onLoadedStream()}},{key:"terminate",value:function(e){this.streamManager.abort(e)}}]),r}(c);t.NetworkPdfManager=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkedStreamManager=t.ChunkedStream=void 0;var a=r(2),n=r(131),i=r(135),o=function(e){v(r,e);var t=g(r);function r(e,a,n){var i;return _(this,r),i=t.call(this,new Uint8Array(e),0,e,null),i.chunkSize=a,i._loadedChunks=new Set,i.numChunks=Math.ceil(e/a),i.manager=n,i.progressiveDataLength=0,i.lastSuccessfulEnsureByteChunk=-1,i}return S(r,[{key:"getMissingChunks",value:function(){for(var e=[],t=0,r=this.numChunks;t<r;++t)this._loadedChunks.has(t)||e.push(t);return e}},{key:"numChunksLoaded",get:function(){return this._loadedChunks.size}},{key:"isDataLoaded",get:function(){return this.numChunksLoaded===this.numChunks}},{key:"onReceiveData",value:function(e,t){var r=this.chunkSize;if(e%r!==0)throw new Error("Bad begin offset: ".concat(e));var a=e+t.byteLength;if(a%r!==0&&a!==this.bytes.length)throw new Error("Bad end offset: ".concat(a));this.bytes.set(new Uint8Array(t),e);for(var n=Math.floor(e/r),i=Math.floor((a-1)/r)+1,o=n;o<i;++o)this._loadedChunks.add(o)}},{key:"onReceiveProgressiveData",value:function(e){var t=this.progressiveDataLength,r=Math.floor(t/this.chunkSize);this.bytes.set(new Uint8Array(e),t),t+=e.byteLength,this.progressiveDataLength=t;for(var a=t>=this.end?this.numChunks:Math.floor(t/this.chunkSize),n=r;n<a;++n)this._loadedChunks.add(n)}},{key:"ensureByte",value:function(e){if(!(e<this.progressiveDataLength)){var t=Math.floor(e/this.chunkSize);if(!(t>this.numChunks)&&t!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(t))throw new n.MissingDataException(e,e+1);this.lastSuccessfulEnsureByteChunk=t}}}},{key:"ensureRange",value:function(e,t){if(!(e>=t)&&!(t<=this.progressiveDataLength)){var r=Math.floor(e/this.chunkSize);if(!(r>this.numChunks))for(var a=Math.min(Math.floor((t-1)/this.chunkSize)+1,this.numChunks),i=r;i<a;++i)if(!this._loadedChunks.has(i))throw new n.MissingDataException(e,t)}}},{key:"nextEmptyChunk",value:function(e){for(var t=this.numChunks,r=0;r<t;++r){var a=(e+r)%t;if(!this._loadedChunks.has(a))return a}return null}},{key:"hasChunk",value:function(e){return this._loadedChunks.has(e)}},{key:"getByte",value:function(){var e=this.pos;return e>=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}},{key:"getBytes",value:function(e){var t=this.bytes,r=this.pos,a=this.end;if(!e)return a>this.progressiveDataLength&&this.ensureRange(r,a),t.subarray(r,a);var n=r+e;return n>a&&(n=a),n>this.progressiveDataLength&&this.ensureRange(r,n),this.pos=n,t.subarray(r,n)}},{key:"getByteRange",value:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),t>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}},{key:"makeSubStream",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;function a(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),a.prototype=Object.create(this),a.prototype.getMissingChunks=function(){for(var e=this.chunkSize,t=Math.floor(this.start/e),r=Math.floor((this.end-1)/e)+1,a=[],n=t;n<r;++n)this._loadedChunks.has(n)||a.push(n);return a},Object.defineProperty(a.prototype,"isDataLoaded",{get:function(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length},configurable:!0});var n=new a;return n.pos=n.start=e,n.end=e+t||this.end,n.dict=r,n}},{key:"getBaseStreams",value:function(){return[this]}}]),r}(i.Stream);t.ChunkedStream=o;var s=function(){function e(t,r){_(this,e),this.length=r.length,this.chunkSize=r.rangeChunkSize,this.stream=new o(this.length,this.chunkSize,this),this.pdfNetworkStream=t,this.disableAutoFetch=r.disableAutoFetch,this.msgHandler=r.msgHandler,this.currRequestId=0,this._chunksNeededByRequest=new Map,this._requestsByChunk=new Map,this._promisesByRequest=new Map,this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=(0,a.createPromiseCapability)()}return S(e,[{key:"onLoadedStream",value:function(){return this._loadedStreamCapability.promise}},{key:"sendRequest",value:function(e,t){var r=this,n=this.pdfNetworkStream.getRangeReader(e,t);n.isStreamingSupported||(n.onProgress=this.onProgress.bind(this));var i=[],o=0;return new Promise((function(e,t){var s=function s(l){try{if(!l.done){var c=l.value;return i.push(c),o+=(0,a.arrayByteLength)(c),n.isStreamingSupported&&r.onProgress({loaded:o}),void n.read().then(s,t)}var u=(0,a.arraysToBytes)(i);i=null,e(u)}catch(h){t(h)}};n.read().then(s,t)})).then((function(t){r.aborted||r.onReceiveData({chunk:t,begin:e})}))}},{key:"requestAllChunks",value:function(){var e=this.stream.getMissingChunks();return this._requestChunks(e),this._loadedStreamCapability.promise}},{key:"_requestChunks",value:function(e){var t=this,r=this.currRequestId++,n=new Set;this._chunksNeededByRequest.set(r,n);var i,o=b(e);try{for(o.s();!(i=o.n()).done;){var s=i.value;this.stream.hasChunk(s)||n.add(s)}}catch(w){o.e(w)}finally{o.f()}if(0===n.size)return Promise.resolve();var l=(0,a.createPromiseCapability)();this._promisesByRequest.set(r,l);var c,u=[],h=b(n);try{for(h.s();!(c=h.n()).done;){var d=c.value,f=this._requestsByChunk.get(d);f||(f=[],this._requestsByChunk.set(d,f),u.push(d)),f.push(r)}}catch(w){h.e(w)}finally{h.f()}if(u.length>0){var p,v=this.groupChunks(u),g=b(v);try{for(g.s();!(p=g.n()).done;){var m=p.value,y=m.beginChunk*this.chunkSize,k=Math.min(m.endChunk*this.chunkSize,this.length);this.sendRequest(y,k)["catch"](l.reject)}}catch(w){g.e(w)}finally{g.f()}}return l.promise["catch"]((function(e){if(!t.aborted)throw e}))}},{key:"getStream",value:function(){return this.stream}},{key:"requestRange",value:function(e,t){t=Math.min(t,this.length);for(var r=this.getBeginChunk(e),a=this.getEndChunk(t),n=[],i=r;i<a;++i)n.push(i);return this._requestChunks(n)}},{key:"requestRanges",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=[],a=b(t);try{for(a.s();!(e=a.n()).done;)for(var n=e.value,i=this.getBeginChunk(n.begin),o=this.getEndChunk(n.end),s=i;s<o;++s)r.includes(s)||r.push(s)}catch(l){a.e(l)}finally{a.f()}return r.sort((function(e,t){return e-t})),this._requestChunks(r)}},{key:"groupChunks",value:function(e){for(var t=[],r=-1,a=-1,n=0,i=e.length;n<i;++n){var o=e[n];r<0&&(r=o),a>=0&&a+1!==o&&(t.push({beginChunk:r,endChunk:a+1}),r=o),n+1===e.length&&t.push({beginChunk:r,endChunk:o+1}),a=o}return t}},{key:"onProgress",value:function(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}},{key:"onReceiveData",value:function(e){var t=e.chunk,r=void 0===e.begin,a=r?this.progressiveDataLength:e.begin,n=a+t.byteLength,i=Math.floor(a/this.chunkSize),o=n<this.length?Math.floor(n/this.chunkSize):Math.ceil(n/this.chunkSize);r?(this.stream.onReceiveProgressiveData(t),this.progressiveDataLength=n):this.stream.onReceiveData(a,t),this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream);for(var s=[],l=i;l<o;++l){var c=this._requestsByChunk.get(l);if(c){this._requestsByChunk["delete"](l);var u,h=b(c);try{for(h.s();!(u=h.n()).done;){var d=u.value,f=this._chunksNeededByRequest.get(d);f.has(l)&&f["delete"](l),f.size>0||s.push(d)}}catch(w){h.e(w)}finally{h.f()}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){var p;if(1===this.stream.numChunksLoaded){var v=this.stream.numChunks-1;this.stream.hasChunk(v)||(p=v)}else p=this.stream.nextEmptyChunk(o);Number.isInteger(p)&&this._requestChunks([p])}for(var g=0,m=s;g<m.length;g++){var y=m[g],k=this._promisesByRequest.get(y);this._promisesByRequest["delete"](y),k.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}},{key:"onError",value:function(e){this._loadedStreamCapability.reject(e)}},{key:"getBeginChunk",value:function(e){return Math.floor(e/this.chunkSize)}},{key:"getEndChunk",value:function(e){return Math.floor((e-1)/this.chunkSize)+1}},{key:"abort",value:function(e){this.aborted=!0,this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(e);var t,r=b(this._promisesByRequest.values());try{for(r.s();!(t=r.n()).done;){var a=t.value;a.reject(e)}}catch(n){r.e(n)}finally{r.f()}}}]),e}();t.ChunkedStreamManager=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringStream=t.Stream=t.NullStream=void 0;var a=r(132),n=r(2),i=function(e){v(r,e);var t=g(r);function r(e,a,n,i){var o;return _(this,r),o=t.call(this),o.bytes=e instanceof Uint8Array?e:new Uint8Array(e),o.start=a||0,o.pos=o.start,o.end=a+n||o.bytes.length,o.dict=i,o}return S(r,[{key:"length",get:function(){return this.end-this.start}},{key:"isEmpty",get:function(){return 0===this.length}},{key:"getByte",value:function(){return this.pos>=this.end?-1:this.bytes[this.pos++]}},{key:"getBytes",value:function(e){var t=this.bytes,r=this.pos,a=this.end;if(!e)return t.subarray(r,a);var n=r+e;return n>a&&(n=a),this.pos=n,t.subarray(r,n)}},{key:"getByteRange",value:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)}},{key:"reset",value:function(){this.pos=this.start}},{key:"moveStart",value:function(){this.start=this.pos}},{key:"makeSubStream",value:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new r(this.bytes.buffer,e,t,a)}}]),r}(a.BaseStream);t.Stream=i;var o=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,(0,n.stringToBytes)(e))}return S(r)}(i);t.StringStream=o;var s=function(e){v(r,e);var t=g(r);function r(){return _(this,r),t.call(this,new Uint8Array(0))}return S(r)}(i);t.NullStream=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Page=t.PDFDocument=void 0;var a=r(137),n=r(2),i=r(131),o=r(130),s=r(176),l=r(132),c=r(192),u=r(194),h=r(196),f=r(225),y=r(142),A=r(135),C=r(200),F=r(187),P=r(140),T=r(144),O=r(199),I=r(190),E=r(201),M=r(226),R=1,D=[0,0,612,792],N=function(){function e(t){_(this,e);var r=t.pdfManager,a=t.xref,n=t.pageIndex,i=t.pageDict,o=t.ref,s=t.globalIdFactory,l=t.fontCache,c=t.builtInCMapCache,u=t.standardFontDataCache,h=t.globalImageCache,d=t.nonBlendModesSet,f=t.xfaFactory;this.pdfManager=r,this.pageIndex=n,this.pageDict=i,this.xref=a,this.ref=o,this.fontCache=l,this.builtInCMapCache=c,this.standardFontDataCache=u,this.globalImageCache=h,this.nonBlendModesSet=d,this.evaluatorOptions=r.evaluatorOptions,this.resourcesPromise=null,this.xfaFactory=f;var p={obj:0};this._localIdFactory=function(e){v(r,e);var t=g(r);function r(){return _(this,r),t.apply(this,arguments)}return S(r,null,[{key:"createObjId",value:function(){return"p".concat(n,"_").concat(++p.obj)}},{key:"getPageObjId",value:function(){return"page".concat(o.toString())}}]),r}(s)}return S(e,[{key:"_getInheritableProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(0,i.getInheritableProperty)({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(r)?1!==r.length&&r[0]instanceof o.Dict?o.Dict.merge({xref:this.xref,dictArray:r}):r[0]:r}},{key:"content",get:function(){return this.pageDict.getArray("Contents")}},{key:"resources",get:function(){var e=this._getInheritableProperty("Resources");return(0,n.shadow)(this,"resources",e instanceof o.Dict?e:o.Dict.empty)}},{key:"_getBoundingBox",value:function(e){if(this.xfaData)return this.xfaData.bbox;var t=this._getInheritableProperty(e,!0);if(Array.isArray(t)&&4===t.length){if(t[2]-t[0]!==0&&t[3]-t[1]!==0)return t;(0,n.warn)("Empty /".concat(e," entry."))}return null}},{key:"mediaBox",get:function(){return(0,n.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||D)}},{key:"cropBox",get:function(){return(0,n.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}},{key:"userUnit",get:function(){var e=this.pageDict.get("UserUnit");return("number"!==typeof e||e<=0)&&(e=R),(0,n.shadow)(this,"userUnit",e)}},{key:"view",get:function(){var e,t=this.cropBox,r=this.mediaBox;if(t===r||(0,n.isArrayEqual)(t,r))e=r;else{var a=n.Util.intersect(t,r);a&&a[2]-a[0]!==0&&a[3]-a[1]!==0?e=a:(0,n.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,n.shadow)(this,"view",e||r)}},{key:"rotate",get:function(){var e=this._getInheritableProperty("Rotate")||0;return e%90!==0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360),(0,n.shadow)(this,"rotate",e)}},{key:"_onSubStreamError",value:function(e,t,r){if(this.evaluatorOptions.ignoreErrors)return e.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorContentSubStream}),void(0,n.warn)("getContentStream - ignoring sub-stream (".concat(r,'): "').concat(t,'".'));throw t}},{key:"getContentStream",value:function(e){var t=this;return this.pdfManager.ensure(this,"content").then((function(r){return r instanceof l.BaseStream?r:Array.isArray(r)?new T.StreamsSequenceStream(r,t._onSubStreamError.bind(t,e)):new A.NullStream}))}},{key:"xfaData",get:function(){return(0,n.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}},{key:"saveNewAnnotations",value:function(){var e=w(m().mark((function e(t,r,n){var i,o,s,l,c,u,h,d,f,v,g;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.xfaFactory){e.next=2;break}throw new Error("XFA: Cannot save new annotations.");case 2:return i=new P.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}),o=this.pageDict,s=this.annotations.slice(),e.next=7,a.AnnotationFactory.saveNewAnnotations(i,r,n);case 7:l=e.sent,c=b(l.annotations);try{for(c.s();!(u=c.n()).done;)h=u.value.ref,s.push(h)}catch(m){c.e(m)}finally{c.f()}return d=o.get("Annots"),o.set("Annots",s),f=[],v=null,this.xref.encrypt&&(v=this.xref.encrypt.createCipherTransform(this.ref.num,this.ref.gen)),(0,I.writeObject)(this.ref,o,f,v),d&&o.set("Annots",d),g=l.dependencies,g.push.apply(g,[{ref:this.ref,data:f.join("")}].concat(p(l.annotations))),e.abrupt("return",g);case 20:case"end":return e.stop()}}),e,this)})));function t(t,r,a){return e.apply(this,arguments)}return t}()},{key:"save",value:function(e,t,r){var a=new P.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 this._parsedAnnotations.then((function(e){var i,o=[],s=b(e);try{for(s.s();!(i=s.n()).done;){var l=i.value;l.mustBePrinted(r)&&o.push(l.save(a,t,r)["catch"]((function(e){return(0,n.warn)("save - ignoring annotation data during "+'"'.concat(t.name,'" task: "').concat(e,'".')),null})))}}catch(c){s.e(c)}finally{s.f()}return Promise.all(o).then((function(e){return e.filter((function(e){return!!e}))}))}))}},{key:"loadResources",value:function(e){var t=this;return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then((function(){var r=new C.ObjectLoader(t.resources,e,t.xref);return r.load()}))}},{key:"getOperatorList",value:function(e){var t=this,r=e.handler,o=e.sink,s=e.task,l=e.intent,c=e.cacheKey,u=e.annotationStorage,h=void 0===u?null:u,d=this.getContentStream(r),f=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),p=new P.PartialEvaluator({xref:this.xref,handler:r,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),v=this.xfaFactory?null:(0,i.getNewAnnotationsMap)(h),g=Promise.resolve(null);if(v){var m=v.get(this.pageIndex);m&&(g=a.AnnotationFactory.printNewAnnotations(p,s,m))}var y=Promise.all([d,f]),w=y.then((function(e){var a=k(e,1),n=a[0],i=new F.OperatorList(l,o);return r.send("StartRenderPage",{transparency:p.hasBlendModes(t.resources,t.nonBlendModesSet),pageIndex:t.pageIndex,cacheKey:c}),p.getOperatorList({stream:n,task:s,resources:t.resources,operatorList:i}).then((function(){return i}))}));return Promise.all([w,this._parsedAnnotations,g]).then((function(e){var t=k(e,3),r=t[0],a=t[1],i=t[2];if(i&&(a=a.concat(i)),0===a.length||l&n.RenderingIntentFlag.ANNOTATIONS_DISABLE)return r.flush(!0),{length:r.totalLength};var o,c=!!(l&n.RenderingIntentFlag.ANNOTATIONS_FORMS),u=!!(l&n.RenderingIntentFlag.ANY),d=!!(l&n.RenderingIntentFlag.DISPLAY),f=!!(l&n.RenderingIntentFlag.PRINT),v=[],g=b(a);try{for(g.s();!(o=g.n()).done;){var m=o.value;(u||d&&m.mustBeViewed(h)||f&&m.mustBePrinted(h))&&v.push(m.getOperatorList(p,s,l,c,h)["catch"]((function(e){return(0,n.warn)("getOperatorList - ignoring annotation data during "+'"'.concat(s.name,'" task: "').concat(e,'".')),null})))}}catch(y){g.e(y)}finally{g.f()}return Promise.all(v).then((function(e){var t,a=!1,n=!1,i=b(e);try{for(i.s();!(t=i.n()).done;){var o=t.value,s=o.opList,l=o.separateForm,c=o.separateCanvas;r.addOpList(s),l&&(a=l),c&&(n=c)}}catch(y){i.e(y)}finally{i.f()}return r.flush(!0,{form:a,canvas:n}),{length:r.totalLength}}))}))}},{key:"extractTextContent",value:function(e){var t=this,r=e.handler,a=e.task,n=e.includeMarkedContent,i=e.sink,o=e.combineTextItems,s=this.getContentStream(r),l=this.loadResources(["ExtGState","Font","Properties","XObject"]),c=Promise.all([s,l]);return c.then((function(e){var s=k(e,1),l=s[0],c=new P.PartialEvaluator({xref:t.xref,handler:r,pageIndex:t.pageIndex,idFactory:t._localIdFactory,fontCache:t.fontCache,builtInCMapCache:t.builtInCMapCache,standardFontDataCache:t.standardFontDataCache,globalImageCache:t.globalImageCache,options:t.evaluatorOptions});return c.getTextContent({stream:l,task:a,resources:t.resources,includeMarkedContent:n,combineTextItems:o,sink:i,viewBox:t.view})}))}},{key:"getStructTree",value:function(){var e=w(m().mark((function e(){var t,r;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.pdfManager.ensureCatalog("structTreeRoot");case 2:if(t=e.sent,t){e.next=5;break}return e.abrupt("return",null);case 5:return e.next=7,this.pdfManager.ensure(this,"_parseStructTree",[t]);case 7:return r=e.sent,e.abrupt("return",r.serializable);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"_parseStructTree",value:function(e){var t=new O.StructTreePage(e,this.pageDict);return t.parse(),t}},{key:"getAnnotationsData",value:function(){var e=w(m().mark((function e(t,r,a){var i,o,s,l,c,u,h,d,f,p,v;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._parsedAnnotations;case 2:if(i=e.sent,0!==i.length){e.next=5;break}return e.abrupt("return",[]);case 5:o=[],s=[],c=!!(a&n.RenderingIntentFlag.ANY),u=!!(a&n.RenderingIntentFlag.DISPLAY),h=!!(a&n.RenderingIntentFlag.PRINT),d=b(i);try{for(d.s();!(f=d.n()).done;)p=f.value,v=c||u&&p.viewable,(v||h&&p.printable)&&s.push(p.data),p.hasTextContent&&v&&(l||(l=new P.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})),o.push(p.extractTextContent(l,r,this.view)["catch"]((function(e){(0,n.warn)('getAnnotationsData - ignoring textContent during "'.concat(r.name,'" task: "').concat(e,'".'))}))))}catch(g){d.e(g)}finally{d.f()}return e.next=12,Promise.all(o);case 12:return e.abrupt("return",s);case 13:case"end":return e.stop()}}),e,this)})));function t(t,r,a){return e.apply(this,arguments)}return t}()},{key:"annotations",get:function(){var e=this._getInheritableProperty("Annots");return(0,n.shadow)(this,"annotations",Array.isArray(e)?e:[])}},{key:"_parsedAnnotations",get:function(){var e=this,t=this.pdfManager.ensure(this,"annotations").then((function(){var t,r=[],i=b(e.annotations);try{for(i.s();!(t=i.n()).done;){var o=t.value;r.push(a.AnnotationFactory.create(e.xref,o,e.pdfManager,e._localIdFactory,!1)["catch"]((function(e){return(0,n.warn)('_parsedAnnotations: "'.concat(e,'".')),null})))}}catch(s){i.e(s)}finally{i.f()}return Promise.all(r).then((function(e){if(0===e.length)return e;var t,r,n=[],i=b(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;o&&(o instanceof a.PopupAnnotation?(t||(t=[]),t.push(o)):n.push(o))}}catch(s){i.e(s)}finally{i.f()}return t&&n.push.apply(n,p(t)),n}))}));return(0,n.shadow)(this,"_parsedAnnotations",t)}},{key:"jsActions",get:function(){var e=(0,i.collectActions)(this.xref,this.pageDict,n.PageActionEventType);return(0,n.shadow)(this,"jsActions",e)}}]),e}();t.Page=N;var L=new Uint8Array([37,80,68,70,45]),B=new Uint8Array([115,116,97,114,116,120,114,101,102]),j=new Uint8Array([101,110,100,111,98,106]),U=1024,q="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",G=/^[1-9]\.\d$/;function H(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1024,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=t.length,i=e.peekBytes(r),o=i.length-n;if(o<=0)return!1;if(a){var s=n-1,l=i.length-1;while(l>=s){var c=0;while(c<n&&i[l-c]===t[s-c])c++;if(c>=n)return e.pos+=l-s,!0;l--}}else{var u=0;while(u<=o){var h=0;while(h<n&&i[u+h]===t[h])h++;if(h>=n)return e.pos+=u,!0;u++}}return!1}var X=function(){function e(t,r){if(_(this,e),r.length<=0)throw new n.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t,this.stream=r,this.xref=new M.XRef(r,t),this._pagePromises=new Map,this._version=null;var a={font:0};this._globalIdFactory=function(){function e(){_(this,e)}return S(e,null,[{key:"getDocId",value:function(){return"g_".concat(t.docId)}},{key:"createFontId",value:function(){return"f".concat(++a.font)}},{key:"createObjId",value:function(){(0,n.unreachable)("Abstract method `createObjId` called.")}},{key:"getPageObjId",value:function(){(0,n.unreachable)("Abstract method `getPageObjId` called.")}}]),e}()}return S(e,[{key:"parse",value:function(e){this.xref.parse(e),this.catalog=new u.Catalog(this.pdfManager,this.xref),this.catalog.version&&(this._version=this.catalog.version)}},{key:"linearization",get:function(){var e=null;try{e=y.Linearization.create(this.stream)}catch(t){if(t instanceof i.MissingDataException)throw t;(0,n.info)(t)}return(0,n.shadow)(this,"linearization",e)}},{key:"startXRef",get:function(){var e=this.stream,t=0;if(this.linearization)e.reset(),H(e,j)&&(t=e.pos+6-e.start);else{var r=1024,a=B.length,o=!1,s=e.end;while(!o&&s>0)s-=r-a,s<0&&(s=0),e.pos=s,o=H(e,B,r,!0);if(o){var l;e.skip(9);do{l=e.getByte()}while((0,i.isWhiteSpace)(l));var c="";while(l>=32&&l<=57)c+=String.fromCharCode(l),l=e.getByte();t=parseInt(c,10),isNaN(t)&&(t=0)}}return(0,n.shadow)(this,"startXRef",t)}},{key:"checkHeader",value:function(){var e=this.stream;if(e.reset(),H(e,L)){e.moveStart();var t,r=12,a="";while((t=e.getByte())>32){if(a.length>=r)break;a+=String.fromCharCode(t)}this._version||(this._version=a.substring(5))}}},{key:"parseStartXRef",value:function(){this.xref.setStartXRef(this.startXRef)}},{key:"numPages",get:function(){var e=0;return e=this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages,(0,n.shadow)(this,"numPages",e)}},{key:"_hasOnlyDocumentSignatures",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=10;return!!Array.isArray(e)&&e.every((function(e){if(e=t.xref.fetchIfRef(e),!(e instanceof o.Dict))return!1;if(e.has("Kids"))return++r>a?((0,n.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):t._hasOnlyDocumentSignatures(e.get("Kids"),r);var i=(0,o.isName)(e.get("FT"),"Sig"),s=e.get("Rect"),l=Array.isArray(s)&&s.every((function(e){return 0===e}));return i&&l}))}},{key:"_xfaStreams",get:function(){var e=this.catalog.acroForm;if(!e)return null;var t=e.get("XFA"),r={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if(t instanceof l.BaseStream&&!t.isEmpty)return r["xdp:xdp"]=t,r;if(!Array.isArray(t)||0===t.length)return null;for(var a=0,n=t.length;a<n;a+=2){var i=void 0;if(i=0===a?"xdp:xdp":a===n-2?"/xdp:xdp":t[a],r.hasOwnProperty(i)){var o=this.xref.fetchIfRef(t[a+1]);o instanceof l.BaseStream&&!o.isEmpty&&(r[i]=o)}}return r}},{key:"xfaDatasets",get:function(){var e=this._xfaStreams;if(!e)return(0,n.shadow)(this,"xfaDatasets",null);for(var t=0,r=["datasets","xdp:xdp"];t<r.length;t++){var a=r[t],i=e[a];if(i)try{var o=(0,n.stringToUTF8String)(i.getString()),s=d({},a,o);return(0,n.shadow)(this,"xfaDatasets",new f.DatasetReader(s))}catch(l){(0,n.warn)("XFA - Invalid utf-8 string.");break}}return(0,n.shadow)(this,"xfaDatasets",null)}},{key:"xfaData",get:function(){var e=this._xfaStreams;if(!e)return null;for(var t=Object.create(null),r=0,a=Object.entries(e);r<a.length;r++){var i=k(a[r],2),o=i[0],s=i[1];if(s)try{t[o]=(0,n.stringToUTF8String)(s.getString())}catch(l){return(0,n.warn)("XFA - Invalid utf-8 string."),null}}return t}},{key:"xfaFactory",get:function(){var e;return this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(e=this.xfaData),(0,n.shadow)(this,"xfaFactory",e?new E.XFAFactory(e):null)}},{key:"isPureXfa",get:function(){return!!this.xfaFactory&&this.xfaFactory.isValid()}},{key:"htmlForXfa",get:function(){return this.xfaFactory?this.xfaFactory.getPages():null}},{key:"loadXfaImages",value:function(){var e=w(m().mark((function e(){var t,r,a,n,i,o,s,c;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.pdfManager.ensureCatalog("xfaImages");case 2:if(t=e.sent,t){e.next=5;break}return e.abrupt("return");case 5:return r=t.getKeys(),a=new C.ObjectLoader(t,r,this.xref),e.next=9,a.load();case 9:n=new Map,i=b(r);try{for(i.s();!(o=i.n()).done;)s=o.value,c=t.get(s),c instanceof l.BaseStream&&n.set(s,c.getBytes())}catch(u){i.e(u)}finally{i.f()}this.xfaFactory.setImages(n);case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"loadXfaFonts",value:function(){var e=w(m().mark((function e(t,r){var a,l,c,u,h,d,f,p,v,g,y,w,_,S,x,A,T,O,I,E,M,R,D,N,L,B,j,U,q,G,H,X,$,z;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.pdfManager.ensureCatalog("acroForm");case 2:if(a=e.sent,a){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,a.getAsync("DR");case 7:if(l=e.sent,l instanceof o.Dict){e.next=10;break}return e.abrupt("return");case 10:return c=new C.ObjectLoader(l,["Font"],this.xref),e.next=13,c.load();case 13:if(u=l.get("Font"),u instanceof o.Dict){e.next=16;break}return e.abrupt("return");case 16:h=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions),h.useSystemFonts=!1,d=new P.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}),f=new F.OperatorList,p=[],e.t0=function(){return this},v={get font(){return p.at(-1)},set font(e){p.push(e)},clone:e.t0},g=new Map,u.forEach((function(e,t){g.set(e,t)})),y=[],w=b(g),e.prev=27,w.s();case 29:if((_=w.n()).done){e.next=44;break}if(S=k(_.value,2),x=S[0],A=S[1],T=A.get("FontDescriptor"),T instanceof o.Dict){e.next=34;break}return e.abrupt("continue",42);case 34:if(O=T.get("FontFamily"),O=O.replace(/[ ]+(\d)/g,"$1"),I=T.get("FontWeight"),E=-T.get("ItalicAngle"),M={fontFamily:O,fontWeight:I,italicAngle:E},(0,i.validateCSSFont)(M)){e.next=41;break}return e.abrupt("continue",42);case 41:y.push(d.handleSetFont(l,[o.Name.get(x),1],null,f,r,v,null,M)["catch"]((function(e){return(0,n.warn)('loadXfaFonts: "'.concat(e,'".')),null})));case 42:e.next=29;break;case 44:e.next=49;break;case 46:e.prev=46,e.t1=e["catch"](27),w.e(e.t1);case 49:return e.prev=49,w.f(),e.finish(49);case 52:return e.next=54,Promise.all(y);case 54:if(R=this.xfaFactory.setFonts(p),R){e.next=57;break}return e.abrupt("return");case 57:h.ignoreErrors=!0,y.length=0,p.length=0,D=new Set,N=b(R);try{for(N.s();!(L=N.n()).done;)B=L.value,(0,s.getXfaFontName)("".concat(B,"-Regular"))||D.add(B)}catch(m){N.e(m)}finally{N.f()}D.size&&R.push("PdfJS-Fallback"),j=b(R),e.prev=65,j.s();case 67:if((U=j.n()).done){e.next=74;break}if(q=U.value,!D.has(q)){e.next=71;break}return e.abrupt("continue",72);case 71:for(G=0,H=[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}];G<H.length;G++)X=H[G],$="".concat(q,"-").concat(X.name),z=(0,s.getXfaFontDict)($),y.push(d.handleSetFont(l,[o.Name.get($),1],null,f,r,v,z,{fontFamily:q,fontWeight:X.fontWeight,italicAngle:X.italicAngle})["catch"]((function(e){return(0,n.warn)('loadXfaFonts: "'.concat(e,'".')),null})));case 72:e.next=67;break;case 74:e.next=79;break;case 76:e.prev=76,e.t2=e["catch"](65),j.e(e.t2);case 79:return e.prev=79,j.f(),e.finish(79);case 82:return e.next=84,Promise.all(y);case 84:this.xfaFactory.appendFonts(p,D);case 85:case"end":return e.stop()}}),e,this,[[27,46,49,52],[65,76,79,82]])})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"serializeXfaData",value:function(){var e=w(m().mark((function e(t){return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.xfaFactory?this.xfaFactory.serializeData(t):null);case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"formInfo",get:function(){var e={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},t=this.catalog.acroForm;if(!t)return(0,n.shadow)(this,"formInfo",e);try{var r=t.get("Fields"),a=Array.isArray(r)&&r.length>0;e.hasFields=a;var o=t.get("XFA");e.hasXfa=Array.isArray(o)&&o.length>0||o instanceof l.BaseStream&&!o.isEmpty;var s=t.get("SigFlags"),c=!!(1&s),u=c&&this._hasOnlyDocumentSignatures(r);e.hasAcroForm=a&&!u,e.hasSignatures=c}catch(h){if(h instanceof i.MissingDataException)throw h;(0,n.warn)('Cannot fetch form information: "'.concat(h,'".'))}return(0,n.shadow)(this,"formInfo",e)}},{key:"documentInfo",get:function(){var e=this._version;"string"===typeof e&&G.test(e)||((0,n.warn)("Invalid PDF header version number: ".concat(e)),e=null);var t,r={PDFFormatVersion:e,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};try{t=this.xref.trailer.get("Info")}catch(h){if(h instanceof i.MissingDataException)throw h;(0,n.info)("The document information dictionary is invalid.")}if(!(t instanceof o.Dict))return(0,n.shadow)(this,"documentInfo",r);var a,s=b(t.getKeys());try{for(s.s();!(a=s.n()).done;){var l=a.value,c=t.get(l);switch(l){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if("string"===typeof c){r[l]=(0,n.stringToPDFString)(c);continue}break;case"Trapped":if(c instanceof o.Name){r[l]=c;continue}break;default:var u=void 0;switch(x(c)){case"string":u=(0,n.stringToPDFString)(c);break;case"number":case"boolean":u=c;break;default:c instanceof o.Name&&(u=c);break}if(void 0===u){(0,n.warn)('Bad value, for custom key "'.concat(l,'", in Info: ').concat(c,"."));continue}r.Custom||(r.Custom=Object.create(null)),r.Custom[l]=u;continue}(0,n.warn)('Bad value, for key "'.concat(l,'", in Info: ').concat(c,"."))}}catch(h){s.e(h)}finally{s.f()}return(0,n.shadow)(this,"documentInfo",r)}},{key:"fingerprints",get:function(){function e(e){return"string"===typeof e&&e.length>0&&e!==q}function t(e){for(var t=[],r=0,a=e.length;r<a;r++){var n=e[r].toString(16);t.push(n.padStart(2,"0"))}return t.join("")}var r,a,i=this.xref.trailer.get("ID");return Array.isArray(i)&&e(i[0])?(r=(0,n.stringToBytes)(i[0]),i[1]!==i[0]&&e(i[1])&&(a=(0,n.stringToBytes)(i[1]))):r=(0,c.calculateMD5)(this.stream.getByteRange(0,U),0,U),(0,n.shadow)(this,"fingerprints",[t(r),a?t(a):null])}},{key:"_getLinearizationPage",value:function(){var e=w(m().mark((function e(t){var r,a,i,s,l,c;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this.catalog,a=this.linearization,i=this.xref,s=o.Ref.get(a.objectNumberFirst,0),e.prev=2,e.next=5,i.fetchAsync(s);case 5:if(l=e.sent,!(l instanceof o.Dict)){e.next=16;break}if(c=l.getRaw("Type"),!(c instanceof o.Ref)){e.next=12;break}return e.next=11,i.fetchAsync(c);case 11:c=e.sent;case 12:if(!(0,o.isName)(c,"Page")&&(l.has("Type")||l.has("Kids"))){e.next=16;break}return r.pageKidsCountCache.has(s)||r.pageKidsCountCache.put(s,1),r.pageIndexCache.has(s)||r.pageIndexCache.put(s,0),e.abrupt("return",[l,s]);case 16:throw new n.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.");case 19:return e.prev=19,e.t0=e["catch"](2),(0,n.warn)('_getLinearizationPage: "'.concat(e.t0.message,'".')),e.abrupt("return",r.getPageDict(t));case 23:case"end":return e.stop()}}),e,this,[[2,19]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getPage",value:function(e){var t=this,r=this._pagePromises.get(e);if(r)return r;var a,n=this.catalog,i=this.linearization,s=this.xfaFactory;return a=s?Promise.resolve([o.Dict.empty,null]):i&&i.pageFirst===e?this._getLinearizationPage(e):n.getPageDict(e),a=a.then((function(r){var a=k(r,2),i=a[0],o=a[1];return new N({pdfManager:t.pdfManager,xref:t.xref,pageIndex:e,pageDict:i,ref:o,globalIdFactory:t._globalIdFactory,fontCache:n.fontCache,builtInCMapCache:n.builtInCMapCache,standardFontDataCache:n.standardFontDataCache,globalImageCache:n.globalImageCache,nonBlendModesSet:n.nonBlendModesSet,xfaFactory:s})})),this._pagePromises.set(e,a),a}},{key:"checkFirstPage",value:function(){var e=w(m().mark((function e(){var t,r=arguments;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=r.length>0&&void 0!==r[0]&&r[0],!t){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,this.getPage(0);case 6:e.next=15;break;case 8:if(e.prev=8,e.t0=e["catch"](3),!(e.t0 instanceof i.XRefEntryException)){e.next=15;break}return this._pagePromises["delete"](0),e.next=14,this.cleanup();case 14:throw new i.XRefParseException;case 15:case"end":return e.stop()}}),e,this,[[3,8]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"checkLastPage",value:function(){var e=w(m().mark((function e(){var t,r,a,o,s,l,c,u,h,d,f,p,v,g=arguments;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=g.length>0&&void 0!==g[0]&&g[0],r=this.catalog,a=this.pdfManager,r.setActualNumPages(),e.prev=3,e.next=6,Promise.all([a.ensureDoc("xfaFactory"),a.ensureDoc("linearization"),a.ensureCatalog("numPages")]);case 6:if(!this.xfaFactory){e.next=10;break}return e.abrupt("return");case 10:o=this.linearization?this.linearization.numPages:r.numPages;case 11:if(Number.isInteger(o)){e.next=15;break}throw new n.FormatError("Page count is not an integer.");case 15:if(!(o<=1)){e.next=17;break}return e.abrupt("return");case 17:return e.next=19,this.getPage(o-1);case 19:e.next=44;break;case 21:return e.prev=21,e.t0=e["catch"](3),this._pagePromises["delete"](o-1),e.next=26,this.cleanup();case 26:if(!(e.t0 instanceof i.XRefEntryException)||t){e.next=28;break}throw new i.XRefParseException;case 28:return(0,n.warn)("checkLastPage - invalid /Pages tree /Count: ".concat(o,".")),e.prev=29,e.next=32,r.getAllPageDicts(t);case 32:s=e.sent,e.next=41;break;case 35:if(e.prev=35,e.t1=e["catch"](29),!(e.t1 instanceof i.XRefEntryException)||t){e.next=39;break}throw new i.XRefParseException;case 39:return r.setActualNumPages(1),e.abrupt("return");case 41:l=b(s);try{for(l.s();!(c=l.n()).done;)u=k(c.value,2),h=u[0],d=k(u[1],2),f=d[0],p=d[1],v=void 0,f instanceof Error?(v=Promise.reject(f),v["catch"]((function(){}))):v=Promise.resolve(new N({pdfManager:a,xref:this.xref,pageIndex:h,pageDict:f,ref:p,globalIdFactory:this._globalIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,standardFontDataCache:r.standardFontDataCache,globalImageCache:r.globalImageCache,nonBlendModesSet:r.nonBlendModesSet,xfaFactory:null})),this._pagePromises.set(h,v)}catch(m){l.e(m)}finally{l.f()}r.setActualNumPages(s.size);case 44:case"end":return e.stop()}}),e,this,[[3,21],[29,35]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"fontFallback",value:function(e,t){return this.catalog.fontFallback(e,t)}},{key:"cleanup",value:function(){var e=w(m().mark((function e(){var t,r=arguments;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]&&r[0],e.abrupt("return",this.catalog?this.catalog.cleanup(t):(0,h.clearGlobalCaches)());case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"_collectFieldObjects",value:function(e,t,r){var i=this.xref.fetchIfRef(t);if(i.has("T")){var o=(0,n.stringToPDFString)(i.get("T"));e=""===e?o:"".concat(e,".").concat(o)}if(r.has(e)||r.set(e,[]),r.get(e).push(a.AnnotationFactory.create(this.xref,t,this.pdfManager,this._localIdFactory,!0).then((function(e){return e&&e.getFieldObject()}))["catch"]((function(e){return(0,n.warn)('_collectFieldObjects: "'.concat(e,'".')),null}))),i.has("Kids")){var s,l=i.get("Kids"),c=b(l);try{for(c.s();!(s=c.n()).done;){var u=s.value;this._collectFieldObjects(e,u,r)}}catch(h){c.e(h)}finally{c.f()}}}},{key:"fieldObjects",get:function(){if(!this.formInfo.hasFields)return(0,n.shadow)(this,"fieldObjects",Promise.resolve(null));var e,t=Object.create(null),r=new Map,a=b(this.catalog.acroForm.get("Fields"));try{for(a.s();!(e=a.n()).done;){var i=e.value;this._collectFieldObjects("",i,r)}}catch(u){a.e(u)}finally{a.f()}var o,s=[],l=b(r);try{var c=function(){var e=k(o.value,2),r=e[0],a=e[1];s.push(Promise.all(a).then((function(e){e=e.filter((function(e){return!!e})),e.length>0&&(t[r]=e)})))};for(l.s();!(o=l.n()).done;)c()}catch(u){l.e(u)}finally{l.f()}return(0,n.shadow)(this,"fieldObjects",Promise.all(s).then((function(){return t})))}},{key:"hasJSActions",get:function(){var e=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,n.shadow)(this,"hasJSActions",e)}},{key:"_parseHasJSActions",value:function(){var e=w(m().mark((function e(){var t,r,a,n;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);case 2:if(t=e.sent,r=k(t,2),a=r[0],n=r[1],!a){e.next=8;break}return e.abrupt("return",!0);case 8:if(!n){e.next=10;break}return e.abrupt("return",Object.values(n).some((function(e){return e.some((function(e){return null!==e.actions}))})));case 10:return e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"calculationOrderIds",get:function(){var e=this.catalog.acroForm;if(!e||!e.has("CO"))return(0,n.shadow)(this,"calculationOrderIds",null);var t=e.get("CO");if(!Array.isArray(t)||0===t.length)return(0,n.shadow)(this,"calculationOrderIds",null);var r,a=[],i=b(t);try{for(i.s();!(r=i.n()).done;){var s=r.value;s instanceof o.Ref&&a.push(s.toString())}}catch(l){i.e(l)}finally{i.f()}return 0===a.length?(0,n.shadow)(this,"calculationOrderIds",null):(0,n.shadow)(this,"calculationOrderIds",a)}}]),e}();t.PDFDocument=X},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupAnnotation=t.MarkupAnnotation=t.AnnotationFactory=t.AnnotationBorderStyle=t.Annotation=void 0,t.getQuadPoints=I;var a=r(2),n=r(131),i=r(138),o=r(130),s=r(190),l=r(132),d=r(185),p=r(194),y=r(139),x=r(197),A=r(200),C=r(187),F=r(135),P=r(201),T=function(){function e(){_(this,e)}return S(e,null,[{key:"create",value:function(e,t,r,a,n){var i=this;return Promise.all([r.ensureCatalog("acroForm"),r.ensureCatalog("baseUrl"),r.ensureDoc("xfaDatasets"),n?this._getPageIndex(e,t,r):-1]).then((function(o){var s=k(o,4),l=s[0],c=(s[1],s[2]),u=s[3];return r.ensure(i,"_create",[e,t,r,a,l,c,n,u])}))}},{key:"_create",value:function(e,t,r,i,s,l,c){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:-1,h=e.fetchIfRef(t);if(h instanceof o.Dict){var d=t instanceof o.Ref?t.toString():"annot_".concat(i.createObjId()),f=h.get("Subtype");f=f instanceof o.Name?f.name:null;var p={xref:e,ref:t,dict:h,subtype:f,id:d,pdfManager:r,acroForm:s instanceof o.Dict?s:o.Dict.empty,xfaDatasets:l,collectFields:c,pageIndex:u};switch(f){case"Link":return new G(p);case"Text":return new q(p);case"Widget":var v=(0,n.getInheritableProperty)({dict:h,key:"FT"});switch(v=v instanceof o.Name?v.name:null,v){case"Tx":return new L(p);case"Btn":return new B(p);case"Ch":return new j(p);case"Sig":return new U(p)}return(0,a.warn)('Unimplemented widget field type "'.concat(v,'", ')+"falling back to base field type."),new N(p);case"Popup":return new H(p);case"FreeText":return new X(p);case"Line":return new $(p);case"Square":return new z(p);case"Circle":return new W(p);case"PolyLine":return new V(p);case"Polygon":return new Y(p);case"Caret":return new K(p);case"Ink":return new J(p);case"Highlight":return new Z(p);case"Underline":return new Q(p);case"Squiggly":return new ee(p);case"StrikeOut":return new te(p);case"Stamp":return new re(p);case"FileAttachment":return new ae(p);default:return c||(f?(0,a.warn)('Unimplemented annotation type "'.concat(f,'", ')+"falling back to base annotation."):(0,a.warn)("Annotation is missing the required /Subtype.")),new M(p)}}}},{key:"_getPageIndex",value:function(){var e=w(m().mark((function e(t,r,n){var i,s,l;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.fetchIfRefAsync(r);case 3:if(i=e.sent,i instanceof o.Dict){e.next=6;break}return e.abrupt("return",-1);case 6:if(s=i.getRaw("P"),s instanceof o.Ref){e.next=9;break}return e.abrupt("return",-1);case 9:return e.next=11,n.ensureCatalog("getPageIndex",[s]);case 11:return l=e.sent,e.abrupt("return",l);case 15:return e.prev=15,e.t0=e["catch"](0),(0,a.warn)('_getPageIndex: "'.concat(e.t0,'".')),e.abrupt("return",-1);case 19:case"end":return e.stop()}}),e,null,[[0,15]])})));function t(t,r,a){return e.apply(this,arguments)}return t}()},{key:"saveNewAnnotations",value:function(){var e=w(m().mark((function e(t,r,n){var i,l,c,u,h,d,f,p,v;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=t.xref,c=[],u=[],h=b(n),e.prev=4,h.s();case 6:if((d=h.n()).done){e.next=17;break}f=d.value,e.t0=f.annotationType,e.next=e.t0===a.AnnotationEditorType.FREETEXT?11:e.t0===a.AnnotationEditorType.INK?14:15;break;case 11:return l||(p=new o.Dict(i),p.set("BaseFont",o.Name.get("Helvetica")),p.set("Type",o.Name.get("Font")),p.set("Subtype",o.Name.get("Type1")),p.set("Encoding",o.Name.get("WinAnsiEncoding")),v=[],l=i.getNewRef(),(0,s.writeObject)(l,p,v,null),c.push({ref:l,data:v.join("")})),u.push(X.createNewAnnotation(i,f,c,{evaluator:t,task:r,baseFontRef:l})),e.abrupt("break",15);case 14:u.push(J.createNewAnnotation(i,f,c));case 15:e.next=6;break;case 17:e.next=22;break;case 19:e.prev=19,e.t1=e["catch"](4),h.e(e.t1);case 22:return e.prev=22,h.f(),e.finish(22);case 25:return e.next=27,Promise.all(u);case 27:return e.t2=e.sent,e.t3=c,e.abrupt("return",{annotations:e.t2,dependencies:e.t3});case 30:case"end":return e.stop()}}),e,null,[[4,19,22,25]])})));function t(t,r,a){return e.apply(this,arguments)}return t}()},{key:"printNewAnnotations",value:function(){var e=w(m().mark((function e(t,r,n){var i,o,s,l,c;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",null);case 2:i=t.xref,o=[],s=b(n),e.prev=5,s.s();case 7:if((l=s.n()).done){e.next=18;break}c=l.value,e.t0=c.annotationType,e.next=e.t0===a.AnnotationEditorType.FREETEXT?12:e.t0===a.AnnotationEditorType.INK?14:16;break;case 12:return o.push(X.createNewPrintAnnotation(i,c,{evaluator:t,task:r})),e.abrupt("break",16);case 14:return o.push(J.createNewPrintAnnotation(i,c)),e.abrupt("break",16);case 16:e.next=7;break;case 18:e.next=23;break;case 20:e.prev=20,e.t1=e["catch"](5),s.e(e.t1);case 23:return e.prev=23,s.f(),e.finish(23);case 26:return e.abrupt("return",Promise.all(o));case 27:case"end":return e.stop()}}),e,null,[[5,20,23,26]])})));function t(t,r,a){return e.apply(this,arguments)}return t}()}]),e}();function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8ClampedArray(3);if(!Array.isArray(e))return t;var r=t||new Uint8ClampedArray(3);switch(e.length){case 0:return null;case 1:return y.ColorSpace.singletons.gray.getRgbItem(e,0,r,0),r;case 3:return y.ColorSpace.singletons.rgb.getRgbItem(e,0,r,0),r;case 4:return y.ColorSpace.singletons.cmyk.getRgbItem(e,0,r,0),r;default:return t}}function I(e,t){if(!e.has("QuadPoints"))return null;var r=e.getArray("QuadPoints");if(!Array.isArray(r)||0===r.length||r.length%8>0)return null;for(var a=[],n=0,i=r.length/8;n<i;n++){a.push([]);for(var o=8*n,s=8*n+8;o<s;o+=2){var l=r[o],c=r[o+1];if(null!==t&&(l<t[0]||l>t[2]||c<t[1]||c>t[3]))return null;a[n].push({x:l,y:c})}}return a.map((function(e){var t=e.reduce((function(e,t){var r=k(e,4),a=r[0],n=r[1],i=r[2],o=r[3];return[Math.min(a,t.x),Math.max(n,t.x),Math.min(i,t.y),Math.max(o,t.y)]}),[Number.MAX_VALUE,Number.MIN_VALUE,Number.MAX_VALUE,Number.MIN_VALUE]),r=k(t,4),a=r[0],n=r[1],i=r[2],o=r[3];return[{x:a,y:o},{x:n,y:o},{x:a,y:i},{x:n,y:i}]}))}function E(e,t,r){var n=a.Util.getAxialAlignedBoundingBox(t,r),i=k(n,4),o=i[0],s=i[1],l=i[2],c=i[3];if(o===l||s===c)return[1,0,0,1,e[0],e[1]];var u=(e[2]-e[0])/(l-o),h=(e[3]-e[1])/(c-s);return[u,0,0,h,e[0]-o*u,e[1]-s*h]}t.AnnotationFactory=T;var M=function(){function e(t){_(this,e);var r=t.dict;this.setTitle(r.get("T")),this.setContents(r.get("Contents")),this.setModificationDate(r.get("M")),this.setFlags(r.get("F")),this.setRectangle(r.getArray("Rect")),this.setColor(r.getArray("C")),this.setBorderStyle(r),this.setAppearance(r),this.setOptionalContent(r);var i=r.get("MK");if(this.setBorderAndBackgroundColors(i),this.setRotation(i),this._streams=[],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:!1},t.collectFields){var s=r.get("Kids");if(Array.isArray(s)){var l,c=[],u=b(s);try{for(u.s();!(l=u.n()).done;){var h=l.value;h instanceof o.Ref&&c.push(h.toString())}}catch(d){u.e(d)}finally{u.f()}0!==c.length&&(this.data.kidIds=c)}this.data.actions=(0,n.collectActions)(t.xref,r,a.AnnotationActionEventType),this.data.fieldName=this._constructFieldName(r),this.data.pageIndex=t.pageIndex}this._fallbackFontDict=null}return S(e,[{key:"_hasFlag",value:function(e,t){return!!(e&t)}},{key:"_isViewable",value:function(e){return!this._hasFlag(e,a.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,a.AnnotationFlag.NOVIEW)}},{key:"_isPrintable",value:function(e){return this._hasFlag(e,a.AnnotationFlag.PRINT)&&!this._hasFlag(e,a.AnnotationFlag.INVISIBLE)}},{key:"mustBeViewed",value:function(e){var t=e&&e.get(this.data.id);return t&&void 0!==t.hidden?!t.hidden:this.viewable&&!this._hasFlag(this.flags,a.AnnotationFlag.HIDDEN)}},{key:"mustBePrinted",value:function(e){var t=e&&e.get(this.data.id);return t&&void 0!==t.print?t.print:this.printable}},{key:"viewable",get:function(){return null!==this.data.quadPoints&&(0===this.flags||this._isViewable(this.flags))}},{key:"printable",get:function(){return null!==this.data.quadPoints&&(0!==this.flags&&this._isPrintable(this.flags))}},{key:"_parseStringHelper",value:function(e){var t="string"===typeof e?(0,a.stringToPDFString)(e):"",r=t&&"rtl"===(0,d.bidi)(t).dir?"rtl":"ltr";return{str:t,dir:r}}},{key:"setTitle",value:function(e){this._title=this._parseStringHelper(e)}},{key:"setContents",value:function(e){this._contents=this._parseStringHelper(e)}},{key:"setModificationDate",value:function(e){this.modificationDate="string"===typeof e?e:null}},{key:"setFlags",value:function(e){this.flags=Number.isInteger(e)&&e>0?e:0}},{key:"hasFlag",value:function(e){return this._hasFlag(this.flags,e)}},{key:"setRectangle",value:function(e){Array.isArray(e)&&4===e.length?this.rectangle=a.Util.normalizeRect(e):this.rectangle=[0,0,0,0]}},{key:"setColor",value:function(e){this.color=O(e)}},{key:"setLineEndings",value:function(e){if(this.lineEndings=["None","None"],Array.isArray(e)&&2===e.length)for(var t=0;t<2;t++){var r=e[t];if(r instanceof o.Name)switch(r.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[t]=r.name;continue}(0,a.warn)("Ignoring invalid lineEnding: ".concat(r))}}},{key:"setRotation",value:function(e){if(this.rotation=0,e instanceof o.Dict){var t=e.get("R")||0;Number.isInteger(t)&&0!==t&&(t%=360,t<0&&(t+=360),t%90===0&&(this.rotation=t))}}},{key:"setBorderAndBackgroundColors",value:function(e){e instanceof o.Dict?(this.borderColor=O(e.getArray("BC"),null),this.backgroundColor=O(e.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}},{key:"setBorderStyle",value:function(e){if(this.borderStyle=new R,e instanceof o.Dict)if(e.has("BS")){var t=e.get("BS"),r=t.get("Type");r&&!(0,o.isName)(r,"Border")||(this.borderStyle.setWidth(t.get("W"),this.rectangle),this.borderStyle.setStyle(t.get("S")),this.borderStyle.setDashArray(t.getArray("D")))}else if(e.has("Border")){var a=e.getArray("Border");Array.isArray(a)&&a.length>=3&&(this.borderStyle.setHorizontalCornerRadius(a[0]),this.borderStyle.setVerticalCornerRadius(a[1]),this.borderStyle.setWidth(a[2],this.rectangle),4===a.length&&this.borderStyle.setDashArray(a[3],!0))}else this.borderStyle.setWidth(0)}},{key:"setAppearance",value:function(e){this.appearance=null;var t=e.get("AP");if(t instanceof o.Dict){var r=t.get("N");if(r instanceof l.BaseStream)this.appearance=r;else if(r instanceof o.Dict){var a=e.get("AS");a instanceof o.Name&&r.has(a.name)&&(this.appearance=r.get(a.name))}}}},{key:"setOptionalContent",value:function(e){this.oc=null;var t=e.get("OC");t instanceof o.Name?(0,a.warn)("setOptionalContent: Support for /Name-entry is not implemented."):t instanceof o.Dict&&(this.oc=t)}},{key:"loadResources",value:function(e,t){return t.dict.getAsync("Resources").then((function(t){if(t){var r=new A.ObjectLoader(t,e,t.xref);return r.load().then((function(){return t}))}}))}},{key:"getOperatorList",value:function(){var e=w(m().mark((function e(t,r,n,i,s){var l,c,u,h,d,f,p,v,g,y;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(l=this.data,c=this.appearance,u=!!(this.data.hasOwnCanvas&&n&a.RenderingIntentFlag.DISPLAY),c){e.next=8;break}if(u){e.next=6;break}return e.abrupt("return",{opList:new C.OperatorList,separateForm:!1,separateCanvas:!1});case 6:c=new F.StringStream(""),c.dict=new o.Dict;case 8:return h=c.dict,e.next=11,this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],c);case 11:if(d=e.sent,f=h.getArray("BBox")||[0,0,1,1],p=h.getArray("Matrix")||[1,0,0,1,0,0],v=E(l.rect,f,p),g=new C.OperatorList,!this.oc){e.next=20;break}return e.next=19,t.parseMarkedContentProps(this.oc,null);case 19:y=e.sent;case 20:return void 0!==y&&g.addOp(a.OPS.beginMarkedContentProps,["OC",y]),g.addOp(a.OPS.beginAnnotation,[l.id,l.rect,v,p,u]),e.next=24,t.getOperatorList({stream:c,task:r,resources:d,operatorList:g,fallbackFontDict:this._fallbackFontDict});case 24:return g.addOp(a.OPS.endAnnotation,[]),void 0!==y&&g.addOp(a.OPS.endMarkedContent,[]),this.reset(),e.abrupt("return",{opList:g,separateForm:!1,separateCanvas:u});case 28:case"end":return e.stop()}}),e,this)})));function t(t,r,a,n,i){return e.apply(this,arguments)}return t}()},{key:"save",value:function(){var e=w(m().mark((function e(t,r,a){return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),e)})));function t(t,r,a){return e.apply(this,arguments)}return t}()},{key:"hasTextContent",get:function(){return!1}},{key:"extractTextContent",value:function(){var e=w(m().mark((function e(t,r,a){var n,i,o,s;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.appearance){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance);case 4:return n=e.sent,i=[],o=[],s={desiredSize:Math.Infinity,ready:!0,enqueue:function(e,t){var r,a=b(e.items);try{for(a.s();!(r=a.n()).done;){var n=r.value;o.push(n.str),n.hasEOL&&(i.push(o.join("")),o.length=0)}}catch(s){a.e(s)}finally{a.f()}}},e.next=10,t.getTextContent({stream:this.appearance,task:r,resources:n,includeMarkedContent:!0,combineTextItems:!0,sink:s,viewBox:a});case 10:this.reset(),o.length&&i.push(o.join("")),i.length>0&&(this.data.textContent=i);case 13:case"end":return e.stop()}}),e,this)})));function t(t,r,a){return e.apply(this,arguments)}return t}()},{key:"getFieldObject",value:function(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}:null}},{key:"reset",value:function(){var e,t=b(this._streams);try{for(t.s();!(e=t.n()).done;){var r=e.value;r.reset()}}catch(a){t.e(a)}finally{t.f()}}},{key:"_constructFieldName",value:function(e){if(!e.has("T")&&!e.has("Parent"))return(0,a.warn)("Unknown field name, falling back to empty field name."),"";if(!e.has("Parent"))return(0,a.stringToPDFString)(e.get("T"));var t=[];e.has("T")&&t.unshift((0,a.stringToPDFString)(e.get("T")));var r=e,n=new o.RefSet;e.objId&&n.put(e.objId);while(r.has("Parent")){if(r=r.get("Parent"),!(r instanceof o.Dict)||r.objId&&n.has(r.objId))break;r.objId&&n.put(r.objId),r.has("T")&&t.unshift((0,a.stringToPDFString)(r.get("T")))}return t.join(".")}}]),e}();t.Annotation=M;var R=function(){function e(){_(this,e),this.width=1,this.style=a.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}return S(e,[{key:"setWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];if(e instanceof o.Name)this.width=0;else if("number"===typeof e){if(e>0){var r=(t[2]-t[0])/2,n=(t[3]-t[1])/2;r>0&&n>0&&(e>r||e>n)&&((0,a.warn)("AnnotationBorderStyle.setWidth - ignoring width: ".concat(e)),e=1)}this.width=e}}},{key:"setStyle",value:function(e){if(e instanceof o.Name)switch(e.name){case"S":this.style=a.AnnotationBorderStyleType.SOLID;break;case"D":this.style=a.AnnotationBorderStyleType.DASHED;break;case"B":this.style=a.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=a.AnnotationBorderStyleType.INSET;break;case"U":this.style=a.AnnotationBorderStyleType.UNDERLINE;break;default:break}}},{key:"setDashArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)&&e.length>0){var r,a=!0,n=!0,i=b(e);try{for(i.s();!(r=i.n()).done;){var s=r.value,l=+s>=0;if(!l){a=!1;break}s>0&&(n=!1)}}catch(c){i.e(c)}finally{i.f()}a&&!n?(this.dashArray=e,t&&this.setStyle(o.Name.get("D"))):this.width=0}else e&&(this.width=0)}},{key:"setHorizontalCornerRadius",value:function(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}},{key:"setVerticalCornerRadius",value:function(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}]),e}();t.AnnotationBorderStyle=R;var D=function(e){v(r,e);var t=g(r);function r(e){var n;_(this,r),n=t.call(this,e);var i=e.dict;if(i.has("IRT")){var s=i.getRaw("IRT");n.data.inReplyTo=s instanceof o.Ref?s.toString():null;var l=i.get("RT");n.data.replyType=l instanceof o.Name?l.name:a.AnnotationReplyType.REPLY}if(n.data.replyType===a.AnnotationReplyType.GROUP){var c=i.get("IRT");n.setTitle(c.get("T")),n.data.titleObj=n._title,n.setContents(c.get("Contents")),n.data.contentsObj=n._contents,c.has("CreationDate")?(n.setCreationDate(c.get("CreationDate")),n.data.creationDate=n.creationDate):n.data.creationDate=null,c.has("M")?(n.setModificationDate(c.get("M")),n.data.modificationDate=n.modificationDate):n.data.modificationDate=null,n.data.hasPopup=c.has("Popup"),c.has("C")?(n.setColor(c.getArray("C")),n.data.color=n.color):n.data.color=null}else n.data.titleObj=n._title,n.setCreationDate(i.get("CreationDate")),n.data.creationDate=n.creationDate,n.data.hasPopup=i.has("Popup"),i.has("C")||(n.data.color=null);return i.has("RC")&&(n.data.richText=P.XFAFactory.getRichTextAsHtml(i.get("RC"))),n}return S(r,[{key:"setCreationDate",value:function(e){this.creationDate="string"===typeof e?e:null}},{key:"_setDefaultAppearance",value:function(e){var t=e.xref,r=e.extra,a=e.strokeColor,n=e.fillColor,i=e.blendMode,s=e.strokeAlpha,l=e.fillAlpha,c=e.pointsCallback,u=Number.MAX_VALUE,h=Number.MAX_VALUE,d=Number.MIN_VALUE,f=Number.MIN_VALUE,p=["q"];r&&p.push(r),a&&p.push("".concat(a[0]," ").concat(a[1]," ").concat(a[2]," RG")),n&&p.push("".concat(n[0]," ").concat(n[1]," ").concat(n[2]," rg"));var v=this.data.quadPoints;v||(v=[[{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]}]]);var g,m=b(v);try{for(m.s();!(g=m.n()).done;){var y=g.value,w=c(p,y),_=k(w,4),S=_[0],x=_[1],A=_[2],C=_[3];u=Math.min(u,S),d=Math.max(d,x),h=Math.min(h,A),f=Math.max(f,C)}}catch(N){m.e(N)}finally{m.f()}p.push("Q");var P=new o.Dict(t),T=new o.Dict(t);T.set("Subtype",o.Name.get("Form"));var O=new F.StringStream(p.join(" "));O.dict=T,P.set("Fm0",O);var I=new o.Dict(t);i&&I.set("BM",o.Name.get(i)),"number"===typeof s&&I.set("CA",s),"number"===typeof l&&I.set("ca",l);var E=new o.Dict(t);E.set("GS0",I);var M=new o.Dict(t);M.set("ExtGState",E),M.set("XObject",P);var R=new o.Dict(t);R.set("Resources",M);var D=this.data.rect=[u,h,d,f];R.set("BBox",D),this.appearance=new F.StringStream("/GS0 gs /Fm0 Do"),this.appearance.dict=R,this._streams.push(this.appearance,O)}}],[{key:"createNewAnnotation",value:function(){var e=w(m().mark((function e(t,r,a,n){var i,o,l,c,u,h;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.getNewRef(),o=t.getNewRef(),l=this.createNewDict(r,t,{apRef:o}),e.next=5,this.createNewAppearanceStream(r,t,n);case 5:return c=e.sent,u=[],h=t.encrypt?t.encrypt.createCipherTransform(o.num,o.gen):null,(0,s.writeObject)(o,c,u,h),a.push({ref:o,data:u.join("")}),u.length=0,h=t.encrypt?t.encrypt.createCipherTransform(i.num,i.gen):null,(0,s.writeObject)(i,l,u,h),e.abrupt("return",{ref:i,data:u.join("")});case 14:case"end":return e.stop()}}),e,this)})));function t(t,r,a,n){return e.apply(this,arguments)}return t}()},{key:"createNewPrintAnnotation",value:function(){var e=w(m().mark((function e(t,r,a){var n,i;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.createNewAppearanceStream(r,t,a);case 2:return n=e.sent,i=this.createNewDict(r,t,{ap:n}),e.abrupt("return",new this.prototype.constructor({dict:i,xref:t}));case 5:case"end":return e.stop()}}),e,this)})));function t(t,r,a){return e.apply(this,arguments)}return t}()}]),r}(M);t.MarkupAnnotation=D;var N=function(e){v(r,e);var t=g(r);function r(e){var s;_(this,r),s=t.call(this,e);var l=e.dict,c=s.data;s.ref=e.ref,c.annotationType=a.AnnotationType.WIDGET,void 0===c.fieldName&&(c.fieldName=s._constructFieldName(l)),void 0===c.actions&&(c.actions=(0,n.collectActions)(e.xref,l,a.AnnotationActionEventType));var u=(0,n.getInheritableProperty)({dict:l,key:"V",getArray:!0});c.fieldValue=s._decodeFormValue(u);var h=(0,n.getInheritableProperty)({dict:l,key:"DV",getArray:!0});if(c.defaultFieldValue=s._decodeFormValue(h),void 0===u&&e.xfaDatasets){var d=s._title.str;d&&(s._hasValueFromXFA=!0,c.fieldValue=u=e.xfaDatasets.getValue(d))}void 0===u&&null!==c.defaultFieldValue&&(c.fieldValue=c.defaultFieldValue),c.alternativeText=(0,a.stringToPDFString)(l.get("TU")||"");var f=(0,n.getInheritableProperty)({dict:l,key:"DA"})||e.acroForm.get("DA");s._defaultAppearance="string"===typeof f?f:"",c.defaultAppearanceData=(0,i.parseDefaultAppearance)(s._defaultAppearance);var p=(0,n.getInheritableProperty)({dict:l,key:"FT"});c.fieldType=p instanceof o.Name?p.name:null;var v=(0,n.getInheritableProperty)({dict:l,key:"DR"}),g=e.acroForm.get("DR"),m=s.appearance&&s.appearance.dict.get("Resources");return s._fieldResources={localResources:v,acroFormResources:g,appearanceResources:m,mergedResources:o.Dict.merge({xref:e.xref,dictArray:[v,m,g],mergeSubDicts:!0})},c.fieldFlags=(0,n.getInheritableProperty)({dict:l,key:"Ff"}),(!Number.isInteger(c.fieldFlags)||c.fieldFlags<0)&&(c.fieldFlags=0),c.readOnly=s.hasFieldFlag(a.AnnotationFieldFlag.READONLY),c.required=s.hasFieldFlag(a.AnnotationFieldFlag.REQUIRED),c.hidden=s._hasFlag(c.annotationFlags,a.AnnotationFlag.HIDDEN),s}return S(r,[{key:"_decodeFormValue",value:function(e){return Array.isArray(e)?e.filter((function(e){return"string"===typeof e})).map((function(e){return(0,a.stringToPDFString)(e)})):e instanceof o.Name?(0,a.stringToPDFString)(e.name):"string"===typeof e?(0,a.stringToPDFString)(e):null}},{key:"hasFieldFlag",value:function(e){return!!(this.data.fieldFlags&e)}},{key:"getRotationMatrix",value:function(e){var t=e?e.get(this.data.id):void 0,n=t&&t.rotation;if(void 0===n&&(n=this.rotation),0===n)return a.IDENTITY_MATRIX;var i=this.data.rect[2]-this.data.rect[0],o=this.data.rect[3]-this.data.rect[1];return r._getRotationMatrix(n,i,o)}},{key:"getBorderAndBackgroundAppearances",value:function(e){var t=e?e.get(this.data.id):void 0,r=t&&t.rotation;if(void 0===r&&(r=this.rotation),!this.backgroundColor&&!this.borderColor)return"";var a=this.data.rect[2]-this.data.rect[0],n=this.data.rect[3]-this.data.rect[1],o=0===r||180===r?"0 0 ".concat(a," ").concat(n," re"):"0 0 ".concat(n," ").concat(a," re"),s="";if(this.backgroundColor&&(s="".concat((0,i.getPdfColor)(this.backgroundColor,!0)," ").concat(o," f ")),this.borderColor){var l=this.borderStyle.width||1;s+="".concat(l," w ").concat((0,i.getPdfColor)(this.borderColor,!1)," ").concat(o," S ")}return s}},{key:"getOperatorList",value:function(){var e=w(m().mark((function e(t,n,i,o,s){var l,c,d,f,p,v,g;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!o||this instanceof U){e.next=2;break}return e.abrupt("return",{opList:new C.OperatorList,separateForm:!0,separateCanvas:!1});case 2:if(this._hasText){e.next=4;break}return e.abrupt("return",u(h(r.prototype),"getOperatorList",this).call(this,t,n,i,o,s));case 4:return e.next=6,this._getAppearance(t,n,s);case 6:if(l=e.sent,!this.appearance||null!==l){e.next=9;break}return e.abrupt("return",u(h(r.prototype),"getOperatorList",this).call(this,t,n,i,o,s));case 9:if(c=new C.OperatorList,this._defaultAppearance&&null!==l){e.next=12;break}return e.abrupt("return",{opList:c,separateForm:!1,separateCanvas:!1});case 12:if(d=[1,0,0,1,0,0],f=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],p=E(this.data.rect,f,d),!this.oc){e.next=19;break}return e.next=18,t.parseMarkedContentProps(this.oc,null);case 18:v=e.sent;case 19:return void 0!==v&&c.addOp(a.OPS.beginMarkedContentProps,["OC",v]),c.addOp(a.OPS.beginAnnotation,[this.data.id,this.data.rect,p,this.getRotationMatrix(s),!1]),g=new F.StringStream(l),e.next=24,t.getOperatorList({stream:g,task:n,resources:this._fieldResources.mergedResources,operatorList:c});case 24:return c.addOp(a.OPS.endAnnotation,[]),void 0!==v&&c.addOp(a.OPS.endMarkedContent,[]),e.abrupt("return",{opList:c,separateForm:!1,separateCanvas:!1});case 27:case"end":return e.stop()}}),e,this)})));function t(t,r,a,n,i){return e.apply(this,arguments)}return t}()},{key:"_getMKDict",value:function(e){var t=new o.Dict(null);return e&&t.set("R",e),this.borderColor&&t.set("BC",Array.from(this.borderColor).map((function(e){return e/255}))),this.backgroundColor&&t.set("BG",Array.from(this.backgroundColor).map((function(e){return e/255}))),t.size>0?t:null}},{key:"save",value:function(){var e=w(m().mark((function e(t,r,n){var i,l,c,u,h,d,f,p,v,g,y,b,k,w,_,S,x,A,C,F=this;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=n?n.get(this.data.id):void 0,l=i&&i.value,c=i&&i.rotation,l!==this.data.fieldValue&&void 0!==l){e.next=7;break}if(this._hasValueFromXFA||void 0!==c){e.next=6;break}return e.abrupt("return",null);case 6:l=l||this.data.fieldValue;case 7:if(void 0!==c||this._hasValueFromXFA||!Array.isArray(l)||!Array.isArray(this.data.fieldValue)||l.length!==this.data.fieldValue.length||!l.every((function(e,t){return e===F.data.fieldValue[t]}))){e.next=9;break}return e.abrupt("return",null);case 9:return void 0===c&&(c=this.rotation),e.next=12,this._getAppearance(t,r,n);case 12:if(u=e.sent,null!==u){e.next=15;break}return e.abrupt("return",null);case 15:if(h=t.xref,d=h.fetchIfRef(this.ref),d instanceof o.Dict){e.next=19;break}return e.abrupt("return",null);case 19:return f=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],p={path:(0,a.stringToPDFString)(d.get("T")||""),value:l},v=h.getNewRef(),g=new o.Dict(h),g.set("N",v),y=h.encrypt,b=null,k=null,y&&(b=y.createCipherTransform(this.ref.num,this.ref.gen),k=y.createCipherTransform(v.num,v.gen),u=k.encryptString(u)),w=function(e){return(0,a.isAscii)(e)?e:(0,a.stringToUTF16BEString)(e)},d.set("V",Array.isArray(l)?l.map(w):w(l)),d.set("AP",g),d.set("M","D:".concat((0,a.getModificationDate)())),_=this._getMKDict(c),_&&d.set("MK",_),S=new o.Dict(h),S.set("Length",u.length),S.set("Subtype",o.Name.get("Form")),S.set("Resources",this._getSaveFieldResources(h)),S.set("BBox",f),x=this.getRotationMatrix(n),x!==a.IDENTITY_MATRIX&&S.set("Matrix",x),A=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")],(0,s.writeDict)(d,A,b),A.push("\nendobj\n"),C=["".concat(v.num," ").concat(v.gen," obj\n")],(0,s.writeDict)(S,C,k),C.push(" stream\n",u,"\nendstream\nendobj\n"),e.abrupt("return",[{ref:this.ref,data:A.join(""),xfa:p},{ref:v,data:C.join(""),xfa:null}]);case 48:case"end":return e.stop()}}),e,this)})));function t(t,r,a){return e.apply(this,arguments)}return t}()},{key:"_getAppearance",value:function(){var e=w(m().mark((function e(t,n,o){var s,l,c,u,h,d,f,p,v,g,y,b,w,_,S,x,A,C,F,P,T,O;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=this.hasFieldFlag(a.AnnotationFieldFlag.PASSWORD),!s){e.next=3;break}return e.abrupt("return",null);case 3:if(l=o?o.get(this.data.id):void 0,l&&(c=l.formattedValue||l.value,u=l.rotation),void 0!==u||void 0!==c){e.next=8;break}if(this._hasValueFromXFA&&!this.appearance){e.next=8;break}return e.abrupt("return",null);case 8:if(void 0!==c){e.next=12;break}if(c=this.data.fieldValue,c){e.next=12;break}return e.abrupt("return","");case 12:if(Array.isArray(c)&&1===c.length&&(c=c[0]),(0,a.assert)("string"===typeof c,"Expected `value` to be a string."),c=c.trim(),""!==c){e.next=17;break}return e.abrupt("return","");case 17:return void 0===u&&(u=this.rotation),h=-1,this.data.multiLine&&(h=c.split(/\r\n|\r|\n/).length),d=2,f=d,p=this.data.rect[3]-this.data.rect[1],v=this.data.rect[2]-this.data.rect[0],90!==u&&270!==u||(g=[p,v],v=g[0],p=g[1]),this._defaultAppearance||(this.data.defaultAppearanceData=(0,i.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g")),e.next=28,r._getFontData(t,n,this.data.defaultAppearanceData,this._fieldResources.mergedResources);case 28:if(y=e.sent,b=this._computeFontSize(p-d,v-2*f,c,y,h),w=k(b,2),_=w[0],S=w[1],x=y.descent,isNaN(x)&&(x=0),A=Math.min(Math.floor((p-S)/2),d),C=A+Math.abs(x)*S,F=this.data.textAlignment,!this.data.multiLine){e.next=37;break}return e.abrupt("return",this._getMultilineAppearance(_,c,y,S,v,p,F,f,C,o));case 37:if(P=y.encodeString(c).join(""),!this.data.comb){e.next=40;break}return e.abrupt("return",this._getCombAppearance(_,y,P,v,f,C,o));case 40:if(T=this.getBorderAndBackgroundAppearances(o),!(0===F||F>2)){e.next=43;break}return e.abrupt("return","/Tx BMC q ".concat(T,"BT ")+_+" 1 0 0 1 ".concat(f," ").concat(C," Tm (").concat((0,a.escapeString)(P),") Tj")+" ET Q EMC");case 43:return O=this._renderText(P,y,S,v,F,f,C),e.abrupt("return","/Tx BMC q ".concat(T,"BT ")+_+" 1 0 0 1 0 0 Tm ".concat(O)+" ET Q EMC");case 45:case"end":return e.stop()}}),e,this)})));function t(t,r,a){return e.apply(this,arguments)}return t}()},{key:"_getTextWidth",value:function(e,t){return t.charsToGlyphs(e).reduce((function(e,t){return e+t.width}),0)/1e3}},{key:"_computeFontSize",value:function(e,t,r,n,o){var s=this,l=this.data.defaultAppearanceData.fontSize;if(!l){var c=function(e){return Math.floor(100*e)/100};if(-1===o){var u=this._getTextWidth(r,n);l=c(Math.min(e/a.LINE_FACTOR,t/u))}else{var h,d=r.split(/\r\n?|\n/),f=[],p=b(d);try{for(p.s();!(h=p.n()).done;){var v=h.value,g=n.encodeString(v).join(""),m=n.charsToGlyphs(g),y=n.getCharPositions(g);f.push({line:g,glyphs:m,positions:y})}}catch(C){p.e(C)}finally{p.f()}var k=function(r){for(var a=0,i=0,o=f;i<o.length;i++){var l=o[i],c=s._splitLine(null,n,r,t,l);if(a+=c.length*r,a>e)return!0}return!1};l=12;var w=l*a.LINE_FACTOR,_=Math.round(e/w);_=Math.max(_,o);while(1){if(w=e/_,l=c(w/a.LINE_FACTOR),!k(l))break;_++}}var S=this.data.defaultAppearanceData,x=S.fontName,A=S.fontColor;this._defaultAppearance=(0,i.createDefaultAppearance)({fontSize:l,fontName:x,fontColor:A})}return[this._defaultAppearance,l]}},{key:"_renderText",value:function(e,t,r,i,o,s,l){var c;if(1===o){var u=this._getTextWidth(e,t)*r;c=(i-u)/2}else if(2===o){var h=this._getTextWidth(e,t)*r;c=i-h-s}else c=s;return c=(0,n.numberToString)(c),l=(0,n.numberToString)(l),"".concat(c," ").concat(l," Td (").concat((0,a.escapeString)(e),") Tj")}},{key:"_getSaveFieldResources",value:function(e){var t=this._fieldResources,r=t.localResources,a=t.appearanceResources,n=t.acroFormResources,i=this.data.defaultAppearanceData&&this.data.defaultAppearanceData.fontName;if(!i)return r||o.Dict.empty;for(var s=0,l=[r,a];s<l.length;s++){var c=l[s];if(c instanceof o.Dict){var u=c.get("Font");if(u instanceof o.Dict&&u.has(i))return c}}if(n instanceof o.Dict){var h=n.get("Font");if(h instanceof o.Dict&&h.has(i)){var d=new o.Dict(e);d.set(i,h.getRaw(i));var f=new o.Dict(e);return f.set("Font",d),o.Dict.merge({xref:e,dictArray:[f,r],mergeSubDicts:!0})}}return r||o.Dict.empty}},{key:"getFieldObject",value:function(){return null}}],[{key:"_getRotationMatrix",value:function(e,t,r){switch(e){case 90:return[0,1,-1,0,t,0];case 180:return[-1,0,0,-1,t,r];case 270:return[0,-1,1,0,0,r];default:throw new Error("Invalid rotation")}}},{key:"_getFontData",value:function(){var e=w(m().mark((function e(t,r,a,n){var i,s,l,c;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=new C.OperatorList,s={font:null,clone:function(){return this}},l=a.fontName,c=a.fontSize,e.next=5,t.handleSetFont(n,[l&&o.Name.get(l),c],null,i,r,s,null);case 5:return e.abrupt("return",s.font);case 6:case"end":return e.stop()}}),e)})));function t(t,r,a,n){return e.apply(this,arguments)}return t}()}]),r}(M),L=function(e){v(r,e);var t=g(r);function r(e){var i;_(this,r),i=t.call(this,e),i._hasText=!0;var o=e.dict;"string"!==typeof i.data.fieldValue&&(i.data.fieldValue="");var s=(0,n.getInheritableProperty)({dict:o,key:"Q"});(!Number.isInteger(s)||s<0||s>2)&&(s=null),i.data.textAlignment=s;var l=(0,n.getInheritableProperty)({dict:o,key:"MaxLen"});return(!Number.isInteger(l)||l<0)&&(l=0),i.data.maxLen=l,i.data.multiLine=i.hasFieldFlag(a.AnnotationFieldFlag.MULTILINE),i.data.comb=i.hasFieldFlag(a.AnnotationFieldFlag.COMB)&&!i.hasFieldFlag(a.AnnotationFieldFlag.MULTILINE)&&!i.hasFieldFlag(a.AnnotationFieldFlag.PASSWORD)&&!i.hasFieldFlag(a.AnnotationFieldFlag.FILESELECT)&&0!==i.data.maxLen,i.data.doNotScroll=i.hasFieldFlag(a.AnnotationFieldFlag.DONOTSCROLL),i}return S(r,[{key:"_getCombAppearance",value:function(e,t,r,i,o,s,l){var c,u=(0,n.numberToString)(i/this.data.maxLen),h=[],d=t.getCharPositions(r),f=b(d);try{for(f.s();!(c=f.n()).done;){var p=k(c.value,2),v=p[0],g=p[1];h.push("(".concat((0,a.escapeString)(r.substring(v,g)),") Tj"))}}catch(w){f.e(w)}finally{f.f()}var m=this.getBorderAndBackgroundAppearances(l),y=h.join(" ".concat(u," 0 Td "));return"/Tx BMC q ".concat(m,"BT ")+e+" 1 0 0 1 ".concat(o," ").concat(s," Tm ").concat(y)+" ET Q EMC"}},{key:"_getMultilineAppearance",value:function(e,t,r,a,n,i,o,s,l,c){var u,h=t.split(/\r\n?|\n/),d=[],f=n-2*s,p=b(h);try{for(p.s();!(u=p.n()).done;){var v,g=u.value,m=this._splitLine(g,r,a,f),y=b(m);try{for(y.s();!(v=y.n()).done;){var k=v.value,w=0===d.length?s:0;d.push(this._renderText(k,r,a,n,o,w,-a))}}catch(x){y.e(x)}finally{y.f()}}}catch(x){p.e(x)}finally{p.f()}var _=d.join("\n"),S=this.getBorderAndBackgroundAppearances(c);return"/Tx BMC q ".concat(S,"BT ")+e+" 1 0 0 1 0 ".concat(i," Tm ").concat(_)+" ET Q EMC"}},{key:"_splitLine",value:function(e,t,r,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};e=n.line||t.encodeString(e).join("");var i=n.glyphs||t.charsToGlyphs(e);if(i.length<=1)return[e];for(var o=n.positions||t.getCharPositions(e),s=r/1e3,l=[],c=-1,u=-1,h=-1,d=0,f=0,p=0,v=i.length;p<v;p++){var g=k(o[p],2),m=g[0],y=g[1],b=i[p],w=b.width*s;" "===b.unicode?f+w>a?(l.push(e.substring(d,m)),d=m,f=w,c=-1,h=-1):(f+=w,c=m,u=y,h=p):f+w>a?-1!==c?(l.push(e.substring(d,u)),d=u,p=h+1,c=-1,f=0):(l.push(e.substring(d,m)),d=m,f=w):f+=w}return d<e.length&&l.push(e.substring(d,e.length)),l}},{key:"getFieldObject",value:function(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.hasFieldFlag(a.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"}}}]),r}(N),B=function(e){v(r,e);var t=g(r);function r(e){var n;return _(this,r),n=t.call(this,e),n.checkedAppearance=null,n.uncheckedAppearance=null,n.data.checkBox=!n.hasFieldFlag(a.AnnotationFieldFlag.RADIO)&&!n.hasFieldFlag(a.AnnotationFieldFlag.PUSHBUTTON),n.data.radioButton=n.hasFieldFlag(a.AnnotationFieldFlag.RADIO)&&!n.hasFieldFlag(a.AnnotationFieldFlag.PUSHBUTTON),n.data.pushButton=n.hasFieldFlag(a.AnnotationFieldFlag.PUSHBUTTON),n.data.isTooltipOnly=!1,n.data.checkBox?n._processCheckBox(e):n.data.radioButton?n._processRadioButton(e):n.data.pushButton?(n.data.hasOwnCanvas=!0,n._processPushButton(e)):(0,a.warn)("Invalid field flags for button widget annotation"),n}return S(r,[{key:"getOperatorList",value:function(){var e=w(m().mark((function e(t,n,i,o,s){var l,c,d,f,p,v,g;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.data.pushButton){e.next=2;break}return e.abrupt("return",u(h(r.prototype),"getOperatorList",this).call(this,t,n,i,!1,s));case 2:if(l=null,c=null,s&&(d=s.get(this.data.id),l=d?d.value:null,c=d?d.rotation:null),null!==l||!this.appearance){e.next=7;break}return e.abrupt("return",u(h(r.prototype),"getOperatorList",this).call(this,t,n,i,o,s));case 7:if(null!==l&&void 0!==l||(l=this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue),f=l?this.checkedAppearance:this.uncheckedAppearance,!f){e.next=18;break}return p=this.appearance,v=f.dict.getArray("Matrix")||a.IDENTITY_MATRIX,c&&f.dict.set("Matrix",this.getRotationMatrix(s)),this.appearance=f,g=u(h(r.prototype),"getOperatorList",this).call(this,t,n,i,o,s),this.appearance=p,f.dict.set("Matrix",v),e.abrupt("return",g);case 18:return e.abrupt("return",{opList:new C.OperatorList,separateForm:!1,separateCanvas:!1});case 19:case"end":return e.stop()}}),e,this)})));function t(t,r,a,n,i){return e.apply(this,arguments)}return t}()},{key:"save",value:function(){var e=w(m().mark((function e(t,r,a){return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.data.checkBox){e.next=2;break}return e.abrupt("return",this._saveCheckbox(t,r,a));case 2:if(!this.data.radioButton){e.next=4;break}return e.abrupt("return",this._saveRadioButton(t,r,a));case 4:return e.abrupt("return",null);case 5:case"end":return e.stop()}}),e,this)})));function t(t,r,a){return e.apply(this,arguments)}return t}()},{key:"_saveCheckbox",value:function(){var e=w(m().mark((function e(t,r,n){var i,l,c,u,h,d,f,p,v,g,y;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",null);case 2:if(i=n.get(this.data.id),l=i&&i.rotation,c=i&&i.value,void 0!==l){e.next=11;break}if(void 0!==c){e.next=8;break}return e.abrupt("return",null);case 8:if(u=this.data.fieldValue===this.data.exportValue,u!==c){e.next=11;break}return e.abrupt("return",null);case 11:if(h=t.xref.fetchIfRef(this.ref),h instanceof o.Dict){e.next=14;break}return e.abrupt("return",null);case 14:return void 0===l&&(l=this.rotation),void 0===c&&(c=this.data.fieldValue===this.data.exportValue),d={path:(0,a.stringToPDFString)(h.get("T")||""),value:c?this.data.exportValue:""},f=o.Name.get(c?this.data.exportValue:"Off"),h.set("V",f),h.set("AS",f),h.set("M","D:".concat((0,a.getModificationDate)())),p=this._getMKDict(l),p&&h.set("MK",p),v=t.xref.encrypt,g=null,v&&(g=v.createCipherTransform(this.ref.num,this.ref.gen)),y=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")],(0,s.writeDict)(h,y,g),y.push("\nendobj\n"),e.abrupt("return",[{ref:this.ref,data:y.join(""),xfa:d}]);case 30:case"end":return e.stop()}}),e,this)})));function t(t,r,a){return e.apply(this,arguments)}return t}()},{key:"_saveRadioButton",value:function(){var e=w(m().mark((function e(t,r,n){var i,l,c,u,h,d,f,p,v,g,y,b,k,w,_;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",null);case 2:if(i=n.get(this.data.id),l=i&&i.rotation,c=i&&i.value,void 0!==l){e.next=11;break}if(void 0!==c){e.next=8;break}return e.abrupt("return",null);case 8:if(u=this.data.fieldValue===this.data.buttonValue,u!==c){e.next=11;break}return e.abrupt("return",null);case 11:if(h=t.xref.fetchIfRef(this.ref),h instanceof o.Dict){e.next=14;break}return e.abrupt("return",null);case 14:return void 0===c&&(c=this.data.fieldValue===this.data.buttonValue),void 0===l&&(l=this.rotation),d={path:(0,a.stringToPDFString)(h.get("T")||""),value:c?this.data.buttonValue:""},f=o.Name.get(c?this.data.buttonValue:"Off"),p=null,v=t.xref.encrypt,c&&(this.parent instanceof o.Ref?(g=t.xref.fetch(this.parent),y=null,v&&(y=v.createCipherTransform(this.parent.num,this.parent.gen)),g.set("V",f),p=["".concat(this.parent.num," ").concat(this.parent.gen," obj\n")],(0,s.writeDict)(g,p,y),p.push("\nendobj\n")):this.parent instanceof o.Dict&&this.parent.set("V",f)),h.set("AS",f),h.set("M","D:".concat((0,a.getModificationDate)())),b=this._getMKDict(l),b&&h.set("MK",b),k=null,v&&(k=v.createCipherTransform(this.ref.num,this.ref.gen)),w=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")],(0,s.writeDict)(h,w,k),w.push("\nendobj\n"),_=[{ref:this.ref,data:w.join(""),xfa:d}],null!==p&&_.push({ref:this.parent,data:p.join(""),xfa:null}),e.abrupt("return",_);case 33:case"end":return e.stop()}}),e,this)})));function t(t,r,a){return e.apply(this,arguments)}return t}()},{key:"_getDefaultCheckedAppearance",value:function(e,t){var r,i,s=this.data.rect[2]-this.data.rect[0],l=this.data.rect[3]-this.data.rect[1],c=[0,0,s,l],u=.8,h=Math.min(s,l)*u;"check"===t?(r={width:.755*h,height:.705*h},i="3"):"disc"===t?(r={width:.791*h,height:.705*h},i="l"):(0,a.unreachable)("_getDefaultCheckedAppearance - unsupported type: ".concat(t));var d=(0,n.numberToString)((s-r.width)/2),f=(0,n.numberToString)((l-r.height)/2),p="q BT /PdfJsZaDb ".concat(h," Tf 0 g ").concat(d," ").concat(f," Td (").concat(i,") Tj ET Q"),v=new o.Dict(e.xref);v.set("FormType",1),v.set("Subtype",o.Name.get("Form")),v.set("Type",o.Name.get("XObject")),v.set("BBox",c),v.set("Matrix",[1,0,0,1,0,0]),v.set("Length",p.length);var g=new o.Dict(e.xref),m=new o.Dict(e.xref);m.set("PdfJsZaDb",this.fallbackFontDict),g.set("Font",m),v.set("Resources",g),this.checkedAppearance=new F.StringStream(p),this.checkedAppearance.dict=v,this._streams.push(this.checkedAppearance)}},{key:"_processCheckBox",value:function(e){var t=e.dict.get("AP");if(t instanceof o.Dict){var r=t.get("N");if(r instanceof o.Dict){var a=this._decodeFormValue(e.dict.get("AS"));"string"===typeof a&&(this.data.fieldValue=a);var n=null!==this.data.fieldValue&&"Off"!==this.data.fieldValue?this.data.fieldValue:"Yes",i=r.getKeys();if(0===i.length)i.push("Off",n);else if(1===i.length)"Off"===i[0]?i.push(n):i.unshift("Off");else if(i.includes(n))i.length=0,i.push("Off",n);else{var s=i.find((function(e){return"Off"!==e}));i.length=0,i.push("Off",s)}i.includes(this.data.fieldValue)||(this.data.fieldValue="Off"),this.data.exportValue=i[1],this.checkedAppearance=r.get(this.data.exportValue)||null,this.uncheckedAppearance=r.get("Off")||null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict}}}},{key:"_processRadioButton",value:function(e){this.data.fieldValue=this.data.buttonValue=null;var t=e.dict.get("Parent");if(t instanceof o.Dict){this.parent=e.dict.getRaw("Parent");var r=t.get("V");r instanceof o.Name&&(this.data.fieldValue=this._decodeFormValue(r))}var a=e.dict.get("AP");if(a instanceof o.Dict){var n=a.get("N");if(n instanceof o.Dict){var i,s=b(n.getKeys());try{for(s.s();!(i=s.n()).done;){var l=i.value;if("Off"!==l){this.data.buttonValue=this._decodeFormValue(l);break}}}catch(c){s.e(c)}finally{s.f()}this.checkedAppearance=n.get(this.data.buttonValue)||null,this.uncheckedAppearance=n.get("Off")||null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict}}}},{key:"_processPushButton",value:function(e){e.dict.has("A")||e.dict.has("AA")||this.data.alternativeText?(this.data.isTooltipOnly=!e.dict.has("A")&&!e.dict.has("AA"),p.Catalog.parseDestDictionary({destDict:e.dict,resultObj:this.data,docBaseUrl:e.pdfManager.docBaseUrl})):(0,a.warn)("Push buttons without action dictionaries are not supported")}},{key:"getFieldObject",value:function(){var e,t="button";return this.data.checkBox?(t="checkbox",e=this.data.exportValue):this.data.radioButton&&(t="radiobutton",e=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:e,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:t}}},{key:"fallbackFontDict",get:function(){var e=new o.Dict;return e.set("BaseFont",o.Name.get("ZapfDingbats")),e.set("Type",o.Name.get("FallbackType")),e.set("Subtype",o.Name.get("FallbackType")),e.set("Encoding",o.Name.get("ZapfDingbatsEncoding")),(0,a.shadow)(this,"fallbackFontDict",e)}}]),r}(N),j=function(e){v(r,e);var t=g(r);function r(e){var i;_(this,r),i=t.call(this,e),i.data.options=[];var o=(0,n.getInheritableProperty)({dict:e.dict,key:"Opt"});if(Array.isArray(o))for(var s=e.xref,l=0,c=o.length;l<c;l++){var u=s.fetchIfRef(o[l]),h=Array.isArray(u);i.data.options[l]={exportValue:i._decodeFormValue(h?s.fetchIfRef(u[0]):u),displayValue:i._decodeFormValue(h?s.fetchIfRef(u[1]):u)}}return"string"===typeof i.data.fieldValue?i.data.fieldValue=[i.data.fieldValue]:i.data.fieldValue||(i.data.fieldValue=[]),i.data.combo=i.hasFieldFlag(a.AnnotationFieldFlag.COMBO),i.data.multiSelect=i.hasFieldFlag(a.AnnotationFieldFlag.MULTISELECT),i._hasText=!0,i}return S(r,[{key:"getFieldObject",value:function(){var e=this.data.combo?"combobox":"listbox",t=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:t,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:e}}},{key:"_getAppearance",value:function(){var e=w(m().mark((function e(t,n,o){var s,l,c,d,f,p,v,g,y,w,_,S,x,A,C,F,P,T,O,I,E,M,R,D,L,B,j,U,q,G,H,X,$,z,W,V,Y,K,J;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.data.combo){e.next=2;break}return e.abrupt("return",u(h(r.prototype),"_getAppearance",this).call(this,t,n,o));case 2:if(o){e.next=4;break}return e.abrupt("return",null);case 4:if(s=o.get(this.data.id),s){e.next=7;break}return e.abrupt("return",null);case 7:if(l=s.rotation,c=s.value,void 0!==l||void 0!==c){e.next=11;break}return e.abrupt("return",null);case 11:for(void 0===c?c=this.data.fieldValue:Array.isArray(c)||(c=[c]),d=2,f=d,p=this.data.rect[3]-this.data.rect[1],v=this.data.rect[2]-this.data.rect[0],90!==l&&270!==l||(g=[p,v],v=g[0],p=g[1]),y=this.data.options.length,w=[],_=0;_<y;_++)S=this.data.options[_].exportValue,c.includes(S)&&w.push(_);return this._defaultAppearance||(this.data.defaultAppearanceData=(0,i.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g")),e.next=23,N._getFontData(t,n,this.data.defaultAppearanceData,this._fieldResources.mergedResources);case 23:if(x=e.sent,C=this.data.defaultAppearanceData.fontSize,C)A=this._defaultAppearance;else{F=(p-d)/y,P=-1,O=b(this.data.options);try{for(O.s();!(I=O.n()).done;)E=I.value.displayValue,M=this._getTextWidth(E,x),M>P&&(P=M,T=E)}catch(m){O.e(m)}finally{O.f()}R=this._computeFontSize(F,v-2*f,T,x,-1),D=k(R,2),A=D[0],C=D[1]}if(L=C*a.LINE_FACTOR,B=(L-C)/2,j=Math.floor(p/L),1===w.length?(q=w[0],G=q%j,U=q-G):U=w.length?w[0]:0,H=Math.min(U+j+1,y),X=["/Tx BMC q","1 1 ".concat(v," ").concat(p," re W n")],w.length){X.push("0.600006 0.756866 0.854904 rg"),$=b(w);try{for($.s();!(z=$.n()).done;)W=z.value,U<=W&&W<H&&X.push("1 ".concat(p-(W-U+1)*L," ").concat(v," ").concat(L," re f"))}catch(m){$.e(m)}finally{$.f()}}for(X.push("BT",A,"1 0 0 1 0 ".concat(p," Tm")),V=U;V<H;V++)Y=this.data.options[V].displayValue,K=V===U?f:0,J=V===U?B:0,X.push(this._renderText(Y,x,C,v,0,K,-L+J));return X.push("ET Q EMC"),e.abrupt("return",X.join("\n"));case 37:case"end":return e.stop()}}),e,this)})));function t(t,r,a){return e.apply(this,arguments)}return t}()}]),r}(N),U=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,e),a.data.fieldValue=null,a}return S(r,[{key:"getFieldObject",value:function(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}]),r}(N),q=function(e){v(r,e);var t=g(r);function r(e){var n;_(this,r);var i=22;n=t.call(this,e);var o=e.dict;return n.data.annotationType=a.AnnotationType.TEXT,n.data.hasAppearance?n.data.name="NoIcon":(n.data.rect[1]=n.data.rect[3]-i,n.data.rect[2]=n.data.rect[0]+i,n.data.name=o.has("Name")?o.get("Name").name:"Note"),o.has("State")?(n.data.state=o.get("State")||null,n.data.stateModel=o.get("StateModel")||null):(n.data.state=null,n.data.stateModel=null),n}return S(r)}(D),G=function(e){v(r,e);var t=g(r);function r(e){var n;_(this,r),n=t.call(this,e),n.data.annotationType=a.AnnotationType.LINK;var i=I(e.dict,n.rectangle);return i&&(n.data.quadPoints=i),n.data.borderColor=n.data.borderColor||n.data.color,p.Catalog.parseDestDictionary({destDict:e.dict,resultObj:n.data,docBaseUrl:e.pdfManager.docBaseUrl}),n}return S(r)}(M),H=function(e){v(r,e);var t=g(r);function r(e){var n;_(this,r),n=t.call(this,e),n.data.annotationType=a.AnnotationType.POPUP;var i=e.dict.get("Parent");if(!i)return(0,a.warn)("Popup annotation has a missing or invalid parent annotation."),c(n);var s=i.get("Subtype");n.data.parentType=s instanceof o.Name?s.name:null;var l=e.dict.getRaw("Parent");n.data.parentId=l instanceof o.Ref?l.toString():null;var u=i.getArray("Rect");Array.isArray(u)&&4===u.length?n.data.parentRect=a.Util.normalizeRect(u):n.data.parentRect=[0,0,0,0];var h=i.get("RT");if((0,o.isName)(h,a.AnnotationReplyType.GROUP)&&(i=i.get("IRT")),i.has("M")?(n.setModificationDate(i.get("M")),n.data.modificationDate=n.modificationDate):n.data.modificationDate=null,i.has("C")?(n.setColor(i.getArray("C")),n.data.color=n.color):n.data.color=null,!n.viewable){var d=i.get("F");n._isViewable(d)&&n.setFlags(d)}return n.setTitle(i.get("T")),n.data.titleObj=n._title,n.setContents(i.get("Contents")),n.data.contentsObj=n._contents,i.has("RC")&&(n.data.richText=P.XFAFactory.getRichTextAsHtml(i.get("RC"))),n}return S(r)}(M);t.PopupAnnotation=H;var X=function(e){v(r,e);var t=g(r);function r(e){var n;return _(this,r),n=t.call(this,e),n.data.annotationType=a.AnnotationType.FREETEXT,n}return S(r,[{key:"hasTextContent",get:function(){return!!this.appearance}}],[{key:"createNewDict",value:function(e,t,r){var n=r.apRef,s=r.ap,l=e.color,c=e.fontSize,u=e.rect,h=e.rotation,d=e.user,f=e.value,p=new o.Dict(t);p.set("Type",o.Name.get("Annot")),p.set("Subtype",o.Name.get("FreeText")),p.set("CreationDate","D:".concat((0,a.getModificationDate)())),p.set("Rect",u);var v="/Helv ".concat(c," Tf ").concat((0,i.getPdfColor)(l,!0));p.set("DA",v),p.set("Contents",f),p.set("F",4),p.set("Border",[0,0,0]),p.set("Rotate",h),d&&p.set("T",(0,a.stringToUTF8String)(d));var g=new o.Dict(t);return p.set("AP",g),n?g.set("N",n):g.set("N",s),p}},{key:"createNewAppearanceStream",value:function(){var e=w(m().mark((function e(t,r,s){var l,c,u,h,d,f,p,v,g,y,w,_,S,x,A,C,P,T,O,I,E,M,R,D,L,B,j,U,q,G,H,X,$,z,W,V,Y,K,J,Z,Q,ee,te,re,ae,ne,ie,oe;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return l=s.baseFontRef,c=s.evaluator,u=s.task,h=t.color,d=t.fontSize,f=t.rect,p=t.rotation,v=t.value,g=new o.Dict(r),y=new o.Dict(r),l?y.set("Helv",l):(w=new o.Dict(r),w.set("BaseFont",o.Name.get("Helvetica")),w.set("Type",o.Name.get("Font")),w.set("Subtype",o.Name.get("Type1")),w.set("Encoding",o.Name.get("WinAnsiEncoding")),y.set("Helv",w)),g.set("Font",y),e.next=8,N._getFontData(c,u,{fontName:"Helvetica",fontSize:d},g);case 8:_=e.sent,S=k(f,4),x=S[0],A=S[1],C=S[2],P=S[3],T=C-x,O=P-A,p%180!==0&&(I=[O,T],T=I[0],O=I[1]),E=v.split("\n"),M=d/1e3,R=-1/0,D=[],L=b(E);try{for(L.s();!(B=L.n()).done;){j=B.value,j=_.encodeString(j).join(""),D.push(j),U=0,q=_.charsToGlyphs(j),G=b(q);try{for(G.s();!(H=G.n()).done;)X=H.value,U+=X.width*M}catch(m){G.e(m)}finally{G.f()}R=Math.max(R,U)}}catch(m){L.e(m)}finally{L.f()}for($=1,R>T&&($=T/R),z=1,W=a.LINE_FACTOR*d,V=a.LINE_DESCENT_FACTOR*d,Y=W*E.length,Y>O&&(z=O/Y),K=Math.min($,z),J=d*K,Z=["q","0 0 ".concat((0,n.numberToString)(T)," ").concat((0,n.numberToString)(O)," re W n"),"BT","1 0 0 1 0 ".concat((0,n.numberToString)(O+V)," Tm 0 Tc ").concat((0,i.getPdfColor)(h,!0)),"/Helv ".concat((0,n.numberToString)(J)," Tf")],Q=(0,n.numberToString)(W),ee=0,te=D;ee<te.length;ee++)re=te[ee],Z.push("0 -".concat(Q," Td (").concat((0,a.escapeString)(re),") Tj"));return Z.push("ET","Q"),ae=Z.join("\n"),ne=new o.Dict(r),ne.set("FormType",1),ne.set("Subtype",o.Name.get("Form")),ne.set("Type",o.Name.get("XObject")),ne.set("BBox",[0,0,T,O]),ne.set("Length",ae.length),ne.set("Resources",g),p&&(ie=N._getRotationMatrix(p,T,O),ne.set("Matrix",ie)),oe=new F.StringStream(ae),oe.dict=ne,e.abrupt("return",oe);case 44:case"end":return e.stop()}}),e)})));function t(t,r,a){return e.apply(this,arguments)}return t}()}]),r}(D),$=function(e){v(r,e);var t=g(r);function r(e){var n;_(this,r),n=t.call(this,e);var i=e.dict;n.data.annotationType=a.AnnotationType.LINE;var o=i.getArray("L");if(n.data.lineCoordinates=a.Util.normalizeRect(o),n.setLineEndings(i.getArray("LE")),n.data.lineEndings=n.lineEndings,!n.appearance){var s=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],l=i.get("CA"),c=null,u=i.getArray("IC");u&&(u=O(u,null),c=u?Array.from(u).map((function(e){return e/255})):null);var h=c?l:null,d=n.borderStyle.width||1,f=2*d,p=[n.data.lineCoordinates[0]-f,n.data.lineCoordinates[1]-f,n.data.lineCoordinates[2]+f,n.data.lineCoordinates[3]+f];a.Util.intersect(n.rectangle,p)||(n.rectangle=p),n._setDefaultAppearance({xref:e.xref,extra:"".concat(d," w"),strokeColor:s,fillColor:c,strokeAlpha:l,fillAlpha:h,pointsCallback:function(e,t){return e.push("".concat(o[0]," ").concat(o[1]," m"),"".concat(o[2]," ").concat(o[3]," l"),"S"),[t[0].x-d,t[1].x+d,t[3].y-d,t[1].y+d]}})}return n}return S(r)}(D),z=function(e){v(r,e);var t=g(r);function r(e){var n;if(_(this,r),n=t.call(this,e),n.data.annotationType=a.AnnotationType.SQUARE,!n.appearance){var i=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],o=e.dict.get("CA"),s=null,l=e.dict.getArray("IC");l&&(l=O(l,null),s=l?Array.from(l).map((function(e){return e/255})):null);var u=s?o:null;if(0===n.borderStyle.width&&!s)return c(n);n._setDefaultAppearance({xref:e.xref,extra:"".concat(n.borderStyle.width," w"),strokeColor:i,fillColor:s,strokeAlpha:o,fillAlpha:u,pointsCallback:function(e,t){var r=t[2].x+n.borderStyle.width/2,a=t[2].y+n.borderStyle.width/2,i=t[3].x-t[2].x-n.borderStyle.width,o=t[1].y-t[3].y-n.borderStyle.width;return e.push("".concat(r," ").concat(a," ").concat(i," ").concat(o," re")),s?e.push("B"):e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}return n}return S(r)}(D),W=function(e){v(r,e);var t=g(r);function r(e){var n;if(_(this,r),n=t.call(this,e),n.data.annotationType=a.AnnotationType.CIRCLE,!n.appearance){var i=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],o=e.dict.get("CA"),s=null,l=e.dict.getArray("IC");l&&(l=O(l,null),s=l?Array.from(l).map((function(e){return e/255})):null);var u=s?o:null;if(0===n.borderStyle.width&&!s)return c(n);var h=4/3*Math.tan(Math.PI/8);n._setDefaultAppearance({xref:e.xref,extra:"".concat(n.borderStyle.width," w"),strokeColor:i,fillColor:s,strokeAlpha:o,fillAlpha:u,pointsCallback:function(e,t){var r=t[0].x+n.borderStyle.width/2,a=t[0].y-n.borderStyle.width/2,i=t[3].x-n.borderStyle.width/2,o=t[3].y+n.borderStyle.width/2,l=r+(i-r)/2,c=a+(o-a)/2,u=(i-r)/2*h,d=(o-a)/2*h;return e.push("".concat(l," ").concat(o," m"),"".concat(l+u," ").concat(o," ").concat(i," ").concat(c+d," ").concat(i," ").concat(c," c"),"".concat(i," ").concat(c-d," ").concat(l+u," ").concat(a," ").concat(l," ").concat(a," c"),"".concat(l-u," ").concat(a," ").concat(r," ").concat(c-d," ").concat(r," ").concat(c," c"),"".concat(r," ").concat(c+d," ").concat(l-u," ").concat(o," ").concat(l," ").concat(o," c"),"h"),s?e.push("B"):e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}return n}return S(r)}(D),V=function(e){v(r,e);var t=g(r);function r(e){var n;_(this,r),n=t.call(this,e);var i=e.dict;n.data.annotationType=a.AnnotationType.POLYLINE,n.data.vertices=[],f(n)instanceof Y||(n.setLineEndings(i.getArray("LE")),n.data.lineEndings=n.lineEndings);var o=i.getArray("Vertices");if(!Array.isArray(o))return c(n);for(var s=0,l=o.length;s<l;s+=2)n.data.vertices.push({x:o[s],y:o[s+1]});if(!n.appearance){var u,h=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],d=i.get("CA"),p=n.borderStyle.width||1,v=2*p,g=[1/0,1/0,-1/0,-1/0],m=b(n.data.vertices);try{for(m.s();!(u=m.n()).done;){var y=u.value;g[0]=Math.min(g[0],y.x-v),g[1]=Math.min(g[1],y.y-v),g[2]=Math.max(g[2],y.x+v),g[3]=Math.max(g[3],y.y+v)}}catch(k){m.e(k)}finally{m.f()}a.Util.intersect(n.rectangle,g)||(n.rectangle=g),n._setDefaultAppearance({xref:e.xref,extra:"".concat(p," w"),strokeColor:h,strokeAlpha:d,pointsCallback:function(e,t){for(var r=n.data.vertices,a=0,i=r.length;a<i;a++)e.push("".concat(r[a].x," ").concat(r[a].y," ").concat(0===a?"m":"l"));return e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}return n}return S(r)}(D),Y=function(e){v(r,e);var t=g(r);function r(e){var n;return _(this,r),n=t.call(this,e),n.data.annotationType=a.AnnotationType.POLYGON,n}return S(r)}(V),K=function(e){v(r,e);var t=g(r);function r(e){var n;return _(this,r),n=t.call(this,e),n.data.annotationType=a.AnnotationType.CARET,n}return S(r)}(D),J=function(e){v(r,e);var t=g(r);function r(e){var n;_(this,r),n=t.call(this,e),n.data.annotationType=a.AnnotationType.INK,n.data.inkLists=[];var i=e.dict.getArray("InkList");if(!Array.isArray(i))return c(n);for(var o=e.xref,s=0,l=i.length;s<l;++s){n.data.inkLists.push([]);for(var u=0,h=i[s].length;u<h;u+=2)n.data.inkLists[s].push({x:o.fetchIfRef(i[s][u]),y:o.fetchIfRef(i[s][u+1])})}if(!n.appearance){var d,f=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],p=e.dict.get("CA"),v=n.borderStyle.width||1,g=2*v,m=[1/0,1/0,-1/0,-1/0],y=b(n.data.inkLists);try{for(y.s();!(d=y.n()).done;){var k,w=d.value,S=b(w);try{for(S.s();!(k=S.n()).done;){var x=k.value;m[0]=Math.min(m[0],x.x-g),m[1]=Math.min(m[1],x.y-g),m[2]=Math.max(m[2],x.x+g),m[3]=Math.max(m[3],x.y+g)}}catch(A){S.e(A)}finally{S.f()}}}catch(A){y.e(A)}finally{y.f()}a.Util.intersect(n.rectangle,m)||(n.rectangle=m),n._setDefaultAppearance({xref:e.xref,extra:"".concat(v," w"),strokeColor:f,strokeAlpha:p,pointsCallback:function(e,t){var r,a=b(n.data.inkLists);try{for(a.s();!(r=a.n()).done;){for(var i=r.value,o=0,s=i.length;o<s;o++)e.push("".concat(i[o].x," ").concat(i[o].y," ").concat(0===o?"m":"l"));e.push("S")}}catch(A){a.e(A)}finally{a.f()}return[t[0].x,t[1].x,t[3].y,t[1].y]}})}return n}return S(r,null,[{key:"createNewDict",value:function(e,t,r){var n=r.apRef,i=r.ap,s=e.paths,l=e.rect,c=e.rotation,u=new o.Dict(t);u.set("Type",o.Name.get("Annot")),u.set("Subtype",o.Name.get("Ink")),u.set("CreationDate","D:".concat((0,a.getModificationDate)())),u.set("Rect",l),u.set("InkList",s.map((function(e){return e.points}))),u.set("F",4),u.set("Border",[0,0,0]),u.set("Rotate",c);var h=new o.Dict(t);return u.set("AP",h),n?h.set("N",n):h.set("N",i),u}},{key:"createNewAppearanceStream",value:function(){var e=w(m().mark((function e(t,r,a){var s,l,c,u,h,d,f,p,v,g,y,w,_,S,x,A,C,P,T,O,I,E,M,R,D,L,B,j,U;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:s=t.color,l=t.rect,c=t.rotation,u=t.paths,h=t.thickness,d=t.opacity,f=k(l,4),p=f[0],v=f[1],g=f[2],y=f[3],w=g-p,_=y-v,c%180!==0&&(S=[_,w],w=S[0],_=S[1]),x=["".concat(h," w 1 J 1 j"),"".concat((0,i.getPdfColor)(s,!1))],1!==d&&x.push("/R0 gs"),A=[],C=b(u);try{for(C.s();!(P=C.n()).done;){for(T=P.value.bezier,A.length=0,A.push("".concat((0,n.numberToString)(T[0])," ").concat((0,n.numberToString)(T[1])," m")),O=2,I=T.length;O<I;O+=6)E=T.slice(O,O+6).map(n.numberToString).join(" "),A.push("".concat(E," c"));A.push("S"),x.push(A.join("\n"))}}catch(a){C.e(a)}finally{C.f()}return M=x.join("\n"),R=new o.Dict(r),R.set("FormType",1),R.set("Subtype",o.Name.get("Form")),R.set("Type",o.Name.get("XObject")),R.set("BBox",[0,0,w,_]),R.set("Length",M.length),c&&(D=N._getRotationMatrix(c,w,_),R.set("Matrix",D)),1!==d&&(L=new o.Dict(r),B=new o.Dict(r),j=new o.Dict(r),j.set("CA",d),j.set("Type",o.Name.get("ExtGState")),B.set("R0",j),L.set("ExtGState",B),R.set("Resources",L)),U=new F.StringStream(M),U.dict=R,e.abrupt("return",U);case 22:case"end":return e.stop()}}),e)})));function t(t,r,a){return e.apply(this,arguments)}return t}()}]),r}(D),Z=function(e){v(r,e);var t=g(r);function r(e){var n;_(this,r),n=t.call(this,e),n.data.annotationType=a.AnnotationType.HIGHLIGHT;var i=n.data.quadPoints=I(e.dict,null);if(i){var o=n.appearance&&n.appearance.dict.get("Resources");if(!n.appearance||!o||!o.has("ExtGState")){n.appearance&&(0,a.warn)("HighlightAnnotation - ignoring built-in appearance stream.");var s=n.color?Array.from(n.color).map((function(e){return e/255})):[1,1,0],l=e.dict.get("CA");n._setDefaultAppearance({xref:e.xref,fillColor:s,blendMode:"Multiply",fillAlpha:l,pointsCallback:function(e,t){return e.push("".concat(t[0].x," ").concat(t[0].y," m"),"".concat(t[1].x," ").concat(t[1].y," l"),"".concat(t[3].x," ").concat(t[3].y," l"),"".concat(t[2].x," ").concat(t[2].y," l"),"f"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}else n.data.hasPopup=!1;return n}return S(r)}(D),Q=function(e){v(r,e);var t=g(r);function r(e){var n;_(this,r),n=t.call(this,e),n.data.annotationType=a.AnnotationType.UNDERLINE;var i=n.data.quadPoints=I(e.dict,null);if(i){if(!n.appearance){var o=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],s=e.dict.get("CA");n._setDefaultAppearance({xref:e.xref,extra:"[] 0 d 1 w",strokeColor:o,strokeAlpha:s,pointsCallback:function(e,t){return e.push("".concat(t[2].x," ").concat(t[2].y," m"),"".concat(t[3].x," ").concat(t[3].y," l"),"S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}else n.data.hasPopup=!1;return n}return S(r)}(D),ee=function(e){v(r,e);var t=g(r);function r(e){var n;_(this,r),n=t.call(this,e),n.data.annotationType=a.AnnotationType.SQUIGGLY;var i=n.data.quadPoints=I(e.dict,null);if(i){if(!n.appearance){var o=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],s=e.dict.get("CA");n._setDefaultAppearance({xref:e.xref,extra:"[] 0 d 1 w",strokeColor:o,strokeAlpha:s,pointsCallback:function(e,t){var r=(t[0].y-t[2].y)/6,a=r,n=t[2].x,i=t[2].y,o=t[3].x;e.push("".concat(n," ").concat(i+a," m"));do{n+=2,a=0===a?r:0,e.push("".concat(n," ").concat(i+a," l"))}while(n<o);return e.push("S"),[t[2].x,o,i-2*r,i+2*r]}})}}else n.data.hasPopup=!1;return n}return S(r)}(D),te=function(e){v(r,e);var t=g(r);function r(e){var n;_(this,r),n=t.call(this,e),n.data.annotationType=a.AnnotationType.STRIKEOUT;var i=n.data.quadPoints=I(e.dict,null);if(i){if(!n.appearance){var o=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],s=e.dict.get("CA");n._setDefaultAppearance({xref:e.xref,extra:"[] 0 d 1 w",strokeColor:o,strokeAlpha:s,pointsCallback:function(e,t){return e.push("".concat((t[0].x+t[2].x)/2," ")+"".concat((t[0].y+t[2].y)/2," m"),"".concat((t[1].x+t[3].x)/2," ")+"".concat((t[1].y+t[3].y)/2," l"),"S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}else n.data.hasPopup=!1;return n}return S(r)}(D),re=function(e){v(r,e);var t=g(r);function r(e){var n;return _(this,r),n=t.call(this,e),n.data.annotationType=a.AnnotationType.STAMP,n}return S(r)}(D),ae=function(e){v(r,e);var t=g(r);function r(e){var n;_(this,r),n=t.call(this,e);var i=new x.FileSpec(e.dict.get("FS"),e.xref);return n.data.annotationType=a.AnnotationType.FILEATTACHMENT,n.data.file=i.serializable,n}return S(r)}(D)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDefaultAppearance=d,t.getPdfColor=h,t.parseDefaultAppearance=u;var a=r(131),n=r(2),i=r(139),o=r(140),s=r(130),l=r(135),c=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,new l.StringStream(e))}return S(r,[{key:"parse",value:function(){var e={fn:0,args:[]},t={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{while(1){if(e.args.length=0,!this.read(e))break;if(0===this.savedStatesDepth){var r=e.fn,a=e.args;switch(0|r){case n.OPS.setFont:var o=k(a,2),l=o[0],c=o[1];l instanceof s.Name&&(t.fontName=l.name),"number"===typeof c&&c>0&&(t.fontSize=c);break;case n.OPS.setFillRGBColor:i.ColorSpace.singletons.rgb.getRgbItem(a,0,t.fontColor,0);break;case n.OPS.setFillGray:i.ColorSpace.singletons.gray.getRgbItem(a,0,t.fontColor,0);break;case n.OPS.setFillColorSpace:i.ColorSpace.singletons.cmyk.getRgbItem(a,0,t.fontColor,0);break}}}}catch(u){(0,n.warn)('parseDefaultAppearance - ignoring errors: "'.concat(u,'".'))}return t}}]),r}(o.EvaluatorPreprocessor);function u(e){return new c(e).parse()}function h(e,t){if(e[0]===e[1]&&e[1]===e[2]){var r=e[0]/255;return"".concat((0,a.numberToString)(r)," ").concat(t?"g":"G")}return Array.from(e).map((function(e){return(0,a.numberToString)(e/255)})).join(" ")+" ".concat(t?"rg":"RG")}function d(e){var t=e.fontSize,r=e.fontName,n=e.fontColor;return"/".concat((0,a.escapePDFName)(r)," ").concat(t," Tf ").concat(h(n,!0))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpace=void 0;var a=r(2),n=r(130),i=r(132),o=r(131);function s(e,t,r,a,n,i,o){var s=3;o=1!==o?0:o;for(var l,c=r/n,u=a/i,h=0,d=new Uint16Array(n),f=r*s,p=0;p<n;p++)d[p]=Math.floor(p*c)*s;for(var v=0;v<i;v++)for(var g=Math.floor(v*u)*f,m=0;m<n;m++)l=g+d[m],t[h++]=e[l++],t[h++]=e[l++],t[h++]=e[l++],h+=o}var l=function(){function e(t,r){_(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize ColorSpace."),this.name=t,this.numComps=r}return S(e,[{key:"getRgb",value:function(e,t){var r=new Uint8ClampedArray(3);return this.getRgbItem(e,t,r,0),r}},{key:"getRgbItem",value:function(e,t,r,n){(0,a.unreachable)("Should not call ColorSpace.getRgbItem")}},{key:"getRgbBuffer",value:function(e,t,r,n,i,o,s){(0,a.unreachable)("Should not call ColorSpace.getRgbBuffer")}},{key:"getOutputLength",value:function(e,t){(0,a.unreachable)("Should not call ColorSpace.getOutputLength")}},{key:"isPassthrough",value:function(e){return!1}},{key:"isDefaultDecode",value:function(t,r){return e.isDefaultDecode(t,this.numComps)}},{key:"fillRgb",value:function(e,t,r,a,n,i,o,l,c){var u=t*r,h=null,d=1<<o,f=r!==n||t!==a;if(this.isPassthrough(o))h=l;else if(1===this.numComps&&u>d&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){for(var p=o<=8?new Uint8Array(d):new Uint16Array(d),v=0;v<d;v++)p[v]=v;var g=new Uint8ClampedArray(3*d);if(this.getRgbBuffer(p,0,d,g,0,o,0),f){h=new Uint8Array(3*u);for(var m=0,y=0;y<u;++y){var b=3*l[y];h[m++]=g[b],h[m++]=g[b+1],h[m++]=g[b+2]}}else for(var k=0,w=0;w<u;++w){var _=3*l[w];e[k++]=g[_],e[k++]=g[_+1],e[k++]=g[_+2],k+=c}}else f?(h=new Uint8ClampedArray(3*u),this.getRgbBuffer(l,0,u,h,0,o,0)):this.getRgbBuffer(l,0,a*i,e,0,o,c);if(h)if(f)s(h,e,t,r,a,n,c);else for(var S=0,x=0,A=0,C=a*i;A<C;A++)e[S++]=h[x++],e[S++]=h[x++],e[S++]=h[x++],S+=c}},{key:"usesZeroToOneRange",get:function(){return(0,a.shadow)(this,"usesZeroToOneRange",!0)}}],[{key:"_cache",value:function(e,t,r,a){if(!r)throw new Error('ColorSpace._cache - expected "localColorSpaceCache" argument.');if(!a)throw new Error('ColorSpace._cache - expected "parsedColorSpace" argument.');var i,o;e instanceof n.Ref&&(o=e,e=t.fetch(e)),e instanceof n.Name&&(i=e.name),(i||o)&&r.set(i,o,a)}},{key:"getCached",value:function(e,t,r){if(!r)throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.');if(e instanceof n.Ref){var a=r.getByRef(e);if(a)return a;try{e=t.fetch(e)}catch(s){if(s instanceof o.MissingDataException)throw s}}if(e instanceof n.Name){var i=r.getByName(e.name);if(i)return i}return null}},{key:"parseAsync",value:function(){var e=w(m().mark((function e(t){var r,a,n,i,o,s,l;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.cs,a=t.xref,n=t.resources,i=void 0===n?null:n,o=t.pdfFunctionFactory,s=t.localColorSpaceCache,l=this._parse(r,a,i,o),this._cache(r,a,s,l),e.abrupt("return",l);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"parse",value:function(e){var t=e.cs,r=e.xref,a=e.resources,n=void 0===a?null:a,i=e.pdfFunctionFactory,o=e.localColorSpaceCache,s=this.getCached(t,r,o);if(s)return s;var l=this._parse(t,r,n,i);return this._cache(t,r,o,l),l}},{key:"_parse",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;if(e=t.fetchIfRef(e),e instanceof n.Name)switch(e.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 u(null);default:if(r instanceof n.Dict){var o=r.get("ColorSpace");if(o instanceof n.Dict){var s=o.get(e.name);if(s){if(s instanceof n.Name)return this._parse(s,t,r,i);e=s;break}}}throw new a.FormatError("Unrecognized ColorSpace: ".concat(e.name))}if(Array.isArray(e)){var l,d,f,p,v,g,m=t.fetchIfRef(e[0]).name;switch(m){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"CalGray":return l=t.fetchIfRef(e[1]),p=l.getArray("WhitePoint"),v=l.getArray("BlackPoint"),g=l.get("Gamma"),new y(p,v,g);case"CalRGB":l=t.fetchIfRef(e[1]),p=l.getArray("WhitePoint"),v=l.getArray("BlackPoint"),g=l.getArray("Gamma");var w=l.getArray("Matrix");return new b(p,v,g,w);case"ICCBased":var _=t.fetchIfRef(e[1]),S=_.dict;d=S.get("N");var x=S.get("Alternate");if(x){var A=this._parse(x,t,r,i);if(A.numComps===d)return A;(0,a.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===d)return this.singletons.gray;if(3===d)return this.singletons.rgb;if(4===d)return this.singletons.cmyk;break;case"Pattern":return f=e[1]||null,f&&(f=this._parse(f,t,r,i)),new u(f);case"I":case"Indexed":f=this._parse(e[1],t,r,i);var C=t.fetchIfRef(e[2])+1,F=t.fetchIfRef(e[3]);return new h(f,C,F);case"Separation":case"DeviceN":var P=t.fetchIfRef(e[1]);d=Array.isArray(P)?P.length:1,f=this._parse(e[2],t,r,i);var T=i.create(e[3]);return new c(d,f,T);case"Lab":l=t.fetchIfRef(e[1]),p=l.getArray("WhitePoint"),v=l.getArray("BlackPoint");var O=l.getArray("Range");return new k(p,v,O);default:throw new a.FormatError("Unimplemented ColorSpace object: ".concat(m))}}throw new a.FormatError("Unrecognized ColorSpace object: ".concat(e))}},{key:"isDefaultDecode",value:function(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length)return(0,a.warn)("The decode map is not the correct length"),!0;for(var r=0,n=e.length;r<n;r+=2)if(0!==e[r]||1!==e[r+1])return!1;return!0}},{key:"singletons",get:function(){return(0,a.shadow)(this,"singletons",{get gray(){return(0,a.shadow)(this,"gray",new d)},get rgb(){return(0,a.shadow)(this,"rgb",new f)},get cmyk(){return(0,a.shadow)(this,"cmyk",new p)}})}}]),e}();t.ColorSpace=l;var c=function(e){v(r,e);var t=g(r);function r(e,a,n){var i;return _(this,r),i=t.call(this,"Alternate",e),i.base=a,i.tintFn=n,i.tmpBuf=new Float32Array(a.numComps),i}return S(r,[{key:"getRgbItem",value:function(e,t,r,a){var n=this.tmpBuf;this.tintFn(e,t,n,0),this.base.getRgbItem(n,0,r,a)}},{key:"getRgbBuffer",value:function(e,t,r,a,n,i,o){var s,l,c=this.tintFn,u=this.base,h=1/((1<<i)-1),d=u.numComps,f=u.usesZeroToOneRange,p=(u.isPassthrough(8)||!f)&&0===o,v=p?n:0,g=p?a:new Uint8ClampedArray(d*r),m=this.numComps,y=new Float32Array(m),b=new Float32Array(d);for(s=0;s<r;s++){for(l=0;l<m;l++)y[l]=e[t++]*h;if(c(y,0,b,0),f)for(l=0;l<d;l++)g[v++]=255*b[l];else u.getRgbItem(b,0,g,v),v+=d}p||u.getRgbBuffer(g,0,r,a,n,8,o)}},{key:"getOutputLength",value:function(e,t){return this.base.getOutputLength(e*this.base.numComps/this.numComps,t)}}]),r}(l),u=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,"Pattern",null),a.base=e,a}return S(r,[{key:"isDefaultDecode",value:function(e,t){(0,a.unreachable)("Should not call PatternCS.isDefaultDecode")}}]),r}(l),h=function(e){v(r,e);var t=g(r);function r(e,n,o){var s;_(this,r),s=t.call(this,"Indexed",1),s.base=e,s.highVal=n;var l=e.numComps*n;if(s.lookup=new Uint8Array(l),o instanceof i.BaseStream){var c=o.getBytes(l);s.lookup.set(c)}else{if("string"!==typeof o)throw new a.FormatError("IndexedCS - unrecognized lookup table: ".concat(o));for(var u=0;u<l;++u)s.lookup[u]=255&o.charCodeAt(u)}return s}return S(r,[{key:"getRgbItem",value:function(e,t,r,a){var n=this.base.numComps,i=e[t]*n;this.base.getRgbBuffer(this.lookup,i,1,r,a,8,0)}},{key:"getRgbBuffer",value:function(e,t,r,a,n,i,o){for(var s=this.base,l=s.numComps,c=s.getOutputLength(l,o),u=this.lookup,h=0;h<r;++h){var d=e[t++]*l;s.getRgbBuffer(u,d,1,a,n,8,o),n+=c}}},{key:"getOutputLength",value:function(e,t){return this.base.getOutputLength(e*this.base.numComps,t)}},{key:"isDefaultDecode",value:function(e,t){return!Array.isArray(e)||(2!==e.length?((0,a.warn)("Decode map length is not correct"),!0):!Number.isInteger(t)||t<1?((0,a.warn)("Bits per component is not correct"),!0):0===e[0]&&e[1]===(1<<t)-1)}}]),r}(l),d=function(e){v(r,e);var t=g(r);function r(){return _(this,r),t.call(this,"DeviceGray",1)}return S(r,[{key:"getRgbItem",value:function(e,t,r,a){var n=255*e[t];r[a]=r[a+1]=r[a+2]=n}},{key:"getRgbBuffer",value:function(e,t,r,a,n,i,o){for(var s=255/((1<<i)-1),l=t,c=n,u=0;u<r;++u){var h=s*e[l++];a[c++]=h,a[c++]=h,a[c++]=h,c+=o}}},{key:"getOutputLength",value:function(e,t){return e*(3+t)}}]),r}(l),f=function(e){v(r,e);var t=g(r);function r(){return _(this,r),t.call(this,"DeviceRGB",3)}return S(r,[{key:"getRgbItem",value:function(e,t,r,a){r[a]=255*e[t],r[a+1]=255*e[t+1],r[a+2]=255*e[t+2]}},{key:"getRgbBuffer",value:function(e,t,r,a,n,i,o){if(8!==i||0!==o)for(var s=255/((1<<i)-1),l=t,c=n,u=0;u<r;++u)a[c++]=s*e[l++],a[c++]=s*e[l++],a[c++]=s*e[l++],c+=o;else a.set(e.subarray(t,t+3*r),n)}},{key:"getOutputLength",value:function(e,t){return e*(3+t)/3|0}},{key:"isPassthrough",value:function(e){return 8===e}}]),r}(l),p=function(){function e(e,t,r,a,n){var i=e[t]*r,o=e[t+1]*r,s=e[t+2]*r,l=e[t+3]*r;a[n]=255+i*(-4.387332384609988*i+54.48615194189176*o+18.82290502165302*s+212.25662451639585*l-285.2331026137004)+o*(1.7149763477362134*o-5.6096736904047315*s+-17.873870861415444*l-5.497006427196366)+s*(-2.5217340131683033*s-21.248923337353073*l+17.5119270841813)+l*(-21.86122147463605*l-189.48180835922747),a[n+1]=255+i*(8.841041422036149*i+60.118027045597366*o+6.871425592049007*s+31.159100130055922*l-79.2970844816548)+o*(-15.310361306967817*o+17.575251261109482*s+131.35250912493976*l-190.9453302588951)+s*(4.444339102852739*s+9.8632861493405*l-24.86741582555878)+l*(-20.737325471181034*l-187.80453709719578),a[n+2]=255+i*(.8842522430003296*i+8.078677503112928*o+30.89978309703729*s-.23883238689178934*l-14.183576799673286)+o*(10.49593273432072*o+63.02378494754052*s+50.606957656360734*l-112.23884253719248)+s*(.03296041114873217*s+115.60384449646641*l-193.58209356861505)+l*(-22.33816807309886*l-180.12613974708367)}var t=function(t){v(a,t);var r=g(a);function a(){return _(this,a),r.call(this,"DeviceCMYK",4)}return S(a,[{key:"getRgbItem",value:function(t,r,a,n){e(t,r,1,a,n)}},{key:"getRgbBuffer",value:function(t,r,a,n,i,o,s){for(var l=1/((1<<o)-1),c=0;c<a;c++)e(t,r,l,n,i),r+=4,i+=3+s}},{key:"getOutputLength",value:function(e,t){return e/4*(3+t)|0}}]),a}(l);return t}(),y=function(){function e(e,t,r,a,n,i){var o=t[r]*i,s=Math.pow(o,e.G),l=e.YW*s,c=Math.max(295.8*Math.pow(l,.3333333333333333)-40.8,0);a[n]=c,a[n+1]=c,a[n+2]=c}var t=function(t){v(n,t);var r=g(n);function n(e,t,i){var o;if(_(this,n),o=r.call(this,"CalGray",1),!e)throw new a.FormatError("WhitePoint missing - required for color space CalGray");if(t=t||[0,0,0],i=i||1,o.XW=e[0],o.YW=e[1],o.ZW=e[2],o.XB=t[0],o.YB=t[1],o.ZB=t[2],o.G=i,o.XW<0||o.ZW<0||1!==o.YW)throw new a.FormatError("Invalid WhitePoint components for ".concat(o.name)+", no fallback available");return(o.XB<0||o.YB<0||o.ZB<0)&&((0,a.info)("Invalid BlackPoint for ".concat(o.name,", falling back to default.")),o.XB=o.YB=o.ZB=0),0===o.XB&&0===o.YB&&0===o.ZB||(0,a.warn)("".concat(o.name,", BlackPoint: XB: ").concat(o.XB,", YB: ").concat(o.YB,", ")+"ZB: ".concat(o.ZB,", only default values are supported.")),o.G<1&&((0,a.info)("Invalid Gamma: ".concat(o.G," for ").concat(o.name,", ")+"falling back to default."),o.G=1),o}return S(n,[{key:"getRgbItem",value:function(t,r,a,n){e(this,t,r,a,n,1)}},{key:"getRgbBuffer",value:function(t,r,a,n,i,o,s){for(var l=1/((1<<o)-1),c=0;c<a;++c)e(this,t,r,n,i,l),r+=1,i+=3+s}},{key:"getOutputLength",value:function(e,t){return e*(3+t)}}]),n}(l);return t}(),b=function(){var e=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),t=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),r=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),n=new Float32Array([1,1,1]),i=new Float32Array(3),o=new Float32Array(3),s=new Float32Array(3),c=Math.pow(24/116,3)/8;function u(e,t,r){r[0]=e[0]*t[0]+e[1]*t[1]+e[2]*t[2],r[1]=e[3]*t[0]+e[4]*t[1]+e[5]*t[2],r[2]=e[6]*t[0]+e[7]*t[1]+e[8]*t[2]}function h(e,t,r){r[0]=1*t[0]/e[0],r[1]=1*t[1]/e[1],r[2]=1*t[2]/e[2]}function d(e,t,r){var a=.95047,n=1,i=1.08883;r[0]=t[0]*a/e[0],r[1]=t[1]*n/e[1],r[2]=t[2]*i/e[2]}function f(e){return e<=.0031308?p(0,1,12.92*e):e>=.99554525?1:p(0,1,1.055*Math.pow(e,1/2.4)-.055)}function p(e,t,r){return Math.max(e,Math.min(t,r))}function m(e){return e<0?-m(-e):e>8?Math.pow((e+16)/116,3):e*c}function y(e,t,r){if(0===e[0]&&0===e[1]&&0===e[2])return r[0]=t[0],r[1]=t[1],void(r[2]=t[2]);var a=m(0),n=a,i=m(e[0]),o=a,s=m(e[1]),l=a,c=m(e[2]),u=(1-n)/(1-i),h=1-u,d=(1-o)/(1-s),f=1-d,p=(1-l)/(1-c),v=1-p;r[0]=t[0]*u+h,r[1]=t[1]*d+f,r[2]=t[2]*p+v}function b(r,a,n){if(1===r[0]&&1===r[2])return n[0]=a[0],n[1]=a[1],void(n[2]=a[2]);var o=n;u(e,a,o);var s=i;h(r,o,s),u(t,s,n)}function k(r,a,n){var o=n;u(e,a,o);var s=i;d(r,o,s),u(t,s,n)}function w(e,t,a,i,l,c){var h=p(0,1,t[a]*c),d=p(0,1,t[a+1]*c),v=p(0,1,t[a+2]*c),g=1===h?1:Math.pow(h,e.GR),m=1===d?1:Math.pow(d,e.GG),w=1===v?1:Math.pow(v,e.GB),_=e.MXA*g+e.MXB*m+e.MXC*w,S=e.MYA*g+e.MYB*m+e.MYC*w,x=e.MZA*g+e.MZB*m+e.MZC*w,A=o;A[0]=_,A[1]=S,A[2]=x;var C=s;b(e.whitePoint,A,C);var F=o;y(e.blackPoint,C,F);var P=s;k(n,F,P);var T=o;u(r,P,T),i[l]=255*f(T[0]),i[l+1]=255*f(T[1]),i[l+2]=255*f(T[2])}var x=function(e){v(r,e);var t=g(r);function r(e,n,i,o){var s;if(_(this,r),s=t.call(this,"CalRGB",3),!e)throw new a.FormatError("WhitePoint missing - required for color space CalRGB");n=n||new Float32Array(3),i=i||new Float32Array([1,1,1]),o=o||new Float32Array([1,0,0,0,1,0,0,0,1]);var l=e[0],c=e[1],u=e[2];s.whitePoint=e;var h=n[0],d=n[1],f=n[2];if(s.blackPoint=n,s.GR=i[0],s.GG=i[1],s.GB=i[2],s.MXA=o[0],s.MYA=o[1],s.MZA=o[2],s.MXB=o[3],s.MYB=o[4],s.MZB=o[5],s.MXC=o[6],s.MYC=o[7],s.MZC=o[8],l<0||u<0||1!==c)throw new a.FormatError("Invalid WhitePoint components for ".concat(s.name)+", no fallback available");return(h<0||d<0||f<0)&&((0,a.info)("Invalid BlackPoint for ".concat(s.name," [").concat(h,", ").concat(d,", ").concat(f,"], ")+"falling back to default."),s.blackPoint=new Float32Array(3)),(s.GR<0||s.GG<0||s.GB<0)&&((0,a.info)("Invalid Gamma [".concat(s.GR,", ").concat(s.GG,", ").concat(s.GB,"] for ")+"".concat(s.name,", falling back to default.")),s.GR=s.GG=s.GB=1),s}return S(r,[{key:"getRgbItem",value:function(e,t,r,a){w(this,e,t,r,a,1)}},{key:"getRgbBuffer",value:function(e,t,r,a,n,i,o){for(var s=1/((1<<i)-1),l=0;l<r;++l)w(this,e,t,a,n,s),t+=3,n+=3+o}},{key:"getOutputLength",value:function(e,t){return e*(3+t)/3|0}}]),r}(l);return x}(),k=function(){function e(e){var t;return t=e>=6/29?Math.pow(e,3):108/841*(e-4/29),t}function t(e,t,r,a){return r+e*(a-r)/t}function r(r,a,n,i,o,s){var l=a[n],c=a[n+1],u=a[n+2];!1!==i&&(l=t(l,i,0,100),c=t(c,i,r.amin,r.amax),u=t(u,i,r.bmin,r.bmax)),c>r.amax?c=r.amax:c<r.amin&&(c=r.amin),u>r.bmax?u=r.bmax:u<r.bmin&&(u=r.bmin);var h,d,f,p=(l+16)/116,v=p+c/500,g=p-u/200,m=r.XW*e(v),y=r.YW*e(p),b=r.ZW*e(g);r.ZW<1?(h=3.1339*m+-1.617*y+-.4906*b,d=-.9785*m+1.916*y+.0333*b,f=.072*m+-.229*y+1.4057*b):(h=3.2406*m+-1.5372*y+-.4986*b,d=-.9689*m+1.8758*y+.0415*b,f=.0557*m+-.204*y+1.057*b),o[s]=255*Math.sqrt(h),o[s+1]=255*Math.sqrt(d),o[s+2]=255*Math.sqrt(f)}var n=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;if(_(this,n),o=t.call(this,"Lab",3),!e)throw new a.FormatError("WhitePoint missing - required for color space Lab");if(r=r||[0,0,0],i=i||[-100,100,-100,100],o.XW=e[0],o.YW=e[1],o.ZW=e[2],o.amin=i[0],o.amax=i[1],o.bmin=i[2],o.bmax=i[3],o.XB=r[0],o.YB=r[1],o.ZB=r[2],o.XW<0||o.ZW<0||1!==o.YW)throw new a.FormatError("Invalid WhitePoint components, no fallback available");return(o.XB<0||o.YB<0||o.ZB<0)&&((0,a.info)("Invalid BlackPoint, falling back to default"),o.XB=o.YB=o.ZB=0),(o.amin>o.amax||o.bmin>o.bmax)&&((0,a.info)("Invalid Range, falling back to defaults"),o.amin=-100,o.amax=100,o.bmin=-100,o.bmax=100),o}return S(n,[{key:"getRgbItem",value:function(e,t,a,n){r(this,e,t,!1,a,n)}},{key:"getRgbBuffer",value:function(e,t,a,n,i,o,s){for(var l=(1<<o)-1,c=0;c<a;c++)r(this,e,t,l,n,i),t+=3,i+=3+s}},{key:"getOutputLength",value:function(e,t){return e*(3+t)/3|0}},{key:"isDefaultDecode",value:function(e,t){return!0}},{key:"usesZeroToOneRange",get:function(){return(0,a.shadow)(this,"usesZeroToOneRange",!1)}}]),n}(l);return n}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PartialEvaluator=t.EvaluatorPreprocessor=void 0;var a=r(2),n=r(141),i=r(130),o=r(159),s=r(163),l=r(162),c=r(166),u=r(165),h=r(175),d=r(176),f=r(167),p=r(182),v=r(142),g=r(184),y=r(135),x=r(132),A=r(185),C=r(139),F=r(144),P=r(164),T=r(131),O=r(170),I=r(186),E=r(187),M=r(188),R=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),D={TILING:1,SHADING:2},N=10,L=Promise.resolve();function B(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)){for(var r=0,n=e.length;r<n;r++){var o=B(e[r],!0);if(o)return o}return(0,a.warn)("Unsupported blend mode Array: ".concat(e)),"source-over"}if(!(e instanceof i.Name))return t?null:"source-over";switch(e.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}return t?null:((0,a.warn)("Unsupported blend mode: ".concat(e.name)),"source-over")}function j(e){e.fn===a.OPS.paintImageMaskXObject&&e.args[0]&&e.args[0].count>0&&e.args[0].count++}var U=function(){function e(){_(this,e),this.reset()}return S(e,[{key:"check",value:function(){return!(++this.checked<e.CHECK_TIME_EVERY)&&(this.checked=0,this.endTime<=Date.now())}},{key:"reset",value:function(){this.endTime=Date.now()+e.TIME_SLOT_DURATION_MS,this.checked=0}}],[{key:"TIME_SLOT_DURATION_MS",get:function(){return(0,a.shadow)(this,"TIME_SLOT_DURATION_MS",20)}},{key:"CHECK_TIME_EVERY",get:function(){return(0,a.shadow)(this,"CHECK_TIME_EVERY",100)}}]),e}(),q=function(){function e(t){_(this,e);var r=t.xref,a=t.handler,n=t.pageIndex,i=t.idFactory,o=t.fontCache,s=t.builtInCMapCache,l=t.standardFontDataCache,c=t.globalImageCache,u=t.options,h=void 0===u?null:u;this.xref=r,this.handler=a,this.pageIndex=n,this.idFactory=i,this.fontCache=o,this.builtInCMapCache=s,this.standardFontDataCache=l,this.globalImageCache=c,this.options=h||R,this.parsingType3Font=!1,this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}return S(e,[{key:"_pdfFunctionFactory",get:function(){var e=new p.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported});return(0,a.shadow)(this,"_pdfFunctionFactory",e)}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=Object.create(this);return t.options=Object.assign(Object.create(null),this.options,e),t}},{key:"hasBlendModes",value:function(e,t){if(!(e instanceof i.Dict))return!1;if(e.objId&&t.has(e.objId))return!1;var r=new i.RefSet(t);e.objId&&r.put(e.objId);var n=[e],o=this.xref;while(n.length){var s=n.shift(),l=s.get("ExtGState");if(l instanceof i.Dict){var c,u=b(l.getRawValues());try{for(u.s();!(c=u.n()).done;){var h=c.value;if(h instanceof i.Ref){if(r.has(h))continue;try{h=o.fetch(h)}catch(C){r.put(h),(0,a.info)('hasBlendModes - ignoring ExtGState: "'.concat(C,'".'));continue}}if(h instanceof i.Dict){h.objId&&r.put(h.objId);var d=h.get("BM");if(d instanceof i.Name){if("Normal"!==d.name)return!0}else if(void 0!==d&&Array.isArray(d)){var f,p=b(d);try{for(p.s();!(f=p.n()).done;){var v=f.value;if(v instanceof i.Name&&"Normal"!==v.name)return!0}}catch(F){p.e(F)}finally{p.f()}}}}}catch(F){u.e(F)}finally{u.f()}}var g=s.get("XObject");if(g instanceof i.Dict){var m,y=b(g.getRawValues());try{for(y.s();!(m=y.n()).done;){var k=m.value;if(k instanceof i.Ref){if(r.has(k))continue;try{k=o.fetch(k)}catch(C){r.put(k),(0,a.info)('hasBlendModes - ignoring XObject: "'.concat(C,'".'));continue}}if(k instanceof x.BaseStream){k.dict.objId&&r.put(k.dict.objId);var w=k.dict.get("Resources");w instanceof i.Dict&&(w.objId&&r.has(w.objId)||(n.push(w),w.objId&&r.put(w.objId)))}}}catch(F){y.e(F)}finally{y.f()}}}var _,S=b(r);try{for(S.s();!(_=S.n()).done;){var A=_.value;t.put(A)}}catch(F){S.e(F)}finally{S.f()}return!1}},{key:"fetchBuiltInCMap",value:function(){var e=w(m().mark((function e(t){var r,n,i,o;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=this.builtInCMapCache.get(t),!r){e.next=3;break}return e.abrupt("return",r);case 3:if(null===this.options.cMapUrl){e.next=19;break}return i="".concat(this.options.cMapUrl).concat(t,".bcmap"),e.next=7,fetch(i);case 7:if(o=e.sent,o.ok){e.next=10;break}throw new Error('fetchBuiltInCMap: failed to fetch file "'.concat(i,'" with "').concat(o.statusText,'".'));case 10:return e.t0=Uint8Array,e.next=13,o.arrayBuffer();case 13:e.t1=e.sent,e.t2=new e.t0(e.t1),e.t3=a.CMapCompressionType.BINARY,n={cMapData:e.t2,compressionType:e.t3},e.next=22;break;case 19:return e.next=21,this.handler.sendWithPromise("FetchBuiltInCMap",{name:t});case 21:n=e.sent;case 22:return n.compressionType!==a.CMapCompressionType.NONE&&this.builtInCMapCache.set(t,n),e.abrupt("return",n);case 24:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"fetchStandardFontData",value:function(){var e=w(m().mark((function e(t){var r,n,i,o,s,l;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=this.standardFontDataCache.get(t),!r){e.next=3;break}return e.abrupt("return",new y.Stream(r));case 3:if(!this.options.useSystemFonts||"Symbol"===t||"ZapfDingbats"===t){e.next=5;break}return e.abrupt("return",null);case 5:if(n=(0,c.getFontNameToFileMap)(),i=n[t],null===this.options.standardFontDataUrl){e.next=20;break}return s="".concat(this.options.standardFontDataUrl).concat(i),e.next=10,fetch(s);case 10:if(l=e.sent,l.ok){e.next=15;break}(0,a.warn)('fetchStandardFontData: failed to fetch file "'.concat(s,'" with "').concat(l.statusText,'".')),e.next=18;break;case 15:return e.next=17,l.arrayBuffer();case 17:o=e.sent;case 18:e.next=29;break;case 20:return e.prev=20,e.next=23,this.handler.sendWithPromise("FetchStandardFontData",{filename:i});case 23:o=e.sent,e.next=29;break;case 26:e.prev=26,e.t0=e["catch"](20),(0,a.warn)('fetchStandardFontData: failed to fetch file "'.concat(i,'" with "').concat(e.t0,'".'));case 29:if(o){e.next=31;break}return e.abrupt("return",null);case 31:return this.standardFontDataCache.set(t,o),e.abrupt("return",new y.Stream(o));case 33:case"end":return e.stop()}}),e,this,[[20,26]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"buildFormXObject",value:function(){var e=w(m().mark((function e(t,r,n,o,s,l,c){var u,h,d,f,p,v,g,y,b,k,w;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(u=r.dict,h=u.getArray("Matrix"),d=u.getArray("BBox"),d=Array.isArray(d)&&4===d.length?a.Util.normalizeRect(d):null,!u.has("OC")){e.next=8;break}return e.next=7,this.parseMarkedContentProps(u.get("OC"),t);case 7:f=e.sent;case 8:if(void 0!==f&&o.addOp(a.OPS.beginMarkedContentProps,["OC",f]),v=u.get("Group"),!v){e.next=29;break}if(p={matrix:h,bbox:d,smask:n,isolated:!1,knockout:!1},g=v.get("S"),y=null,!(0,i.isName)(g,"Transparency")){e.next=27;break}if(p.isolated=v.get("I")||!1,p.knockout=v.get("K")||!1,!v.has("CS")){e.next=27;break}if(b=v.getRaw("CS"),k=C.ColorSpace.getCached(b,this.xref,c),!k){e.next=24;break}y=k,e.next=27;break;case 24:return e.next=26,this.parseColorSpace({cs:b,resources:t,localColorSpaceCache:c});case 26:y=e.sent;case 27:n&&n.backdrop&&(y=y||C.ColorSpace.singletons.rgb,n.backdrop=y.getRgb(n.backdrop,0)),o.addOp(a.OPS.beginGroup,[p]);case 29:return w=v?[h,null]:[h,d],o.addOp(a.OPS.paintFormXObjectBegin,w),e.abrupt("return",this.getOperatorList({stream:r,task:s,resources:u.get("Resources")||t,operatorList:o,initialState:l}).then((function(){o.addOp(a.OPS.paintFormXObjectEnd,[]),v&&o.addOp(a.OPS.endGroup,[p]),void 0!==f&&o.addOp(a.OPS.endMarkedContent,[])})));case 32:case"end":return e.stop()}}),e,this)})));function t(t,r,a,n,i,o,s){return e.apply(this,arguments)}return t}()},{key:"_sendImgData",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=t?[t.bitmap||t.data.buffer]:null;return this.parsingType3Font||r?this.handler.send("commonobj",[e,"Image",t],a):this.handler.send("obj",[e,this.pageIndex,"Image",t],a)}},{key:"buildPaintImageXObject",value:function(){var e=w(m().mark((function e(t){var r,n,i,o,s,l,c,u,h,d,f,p,v,g,y,b,k,w,_,S,x,A,C,P,T,O,I,E,R,D=this;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.resources,n=t.image,i=t.isInline,o=void 0!==i&&i,s=t.operatorList,l=t.cacheKey,c=t.localImageCache,u=t.localColorSpaceCache,h=n.dict,d=h.objId,f=h.get("W","Width"),p=h.get("H","Height"),f&&"number"===typeof f&&p&&"number"===typeof p){e.next=8;break}return(0,a.warn)("Image dimensions are missing, or not numbers."),e.abrupt("return");case 8:if(v=this.options.maxImageSize,!(-1!==v&&f*p>v)){e.next=15;break}if(g="Image exceeded maximum allowed size and was removed.",!this.options.ignoreErrors){e.next=14;break}return(0,a.warn)(g),e.abrupt("return");case 14:throw new Error(g);case 15:if(!h.has("OC")){e.next=19;break}return e.next=18,this.parseMarkedContentProps(h.get("OC"),r);case 18:y=e.sent;case 19:if(b=h.get("IM","ImageMask")||!1,!b){e.next=44;break}if(_=h.get("I","Interpolate"),S=f+7>>3,x=n.getBytes(S*p),A=h.getArray("D","Decode"),!this.parsingType3Font){e.next=32;break}return k=M.PDFImage.createRawMask({imgArray:x,width:f,height:p,imageIsFromDecodeStream:n instanceof F.DecodeStream,inverseDecode:!!A&&A[0]>0,interpolate:_}),k.cached=!!l,w=[k],s.addImageOps(a.OPS.paintImageMaskXObject,w,y),l&&c.set(l,d,{fn:a.OPS.paintImageMaskXObject,args:w,optionalContent:y}),e.abrupt("return");case 32:if(k=M.PDFImage.createMask({imgArray:x,width:f,height:p,imageIsFromDecodeStream:n instanceof F.DecodeStream,inverseDecode:!!A&&A[0]>0,interpolate:_}),!k.isSingleOpaquePixel){e.next=37;break}return s.addImageOps(a.OPS.paintSolidColorImageMask,[],y),l&&c.set(l,d,{fn:a.OPS.paintSolidColorImageMask,args:[],optionalContent:y}),e.abrupt("return");case 37:return C="mask_".concat(this.idFactory.createObjId()),s.addDependency(C),this._sendImgData(C,k),w=[{data:C,width:k.width,height:k.height,interpolate:k.interpolate,count:1}],s.addImageOps(a.OPS.paintImageMaskXObject,w,y),l&&c.set(l,d,{fn:a.OPS.paintImageMaskXObject,args:w,optionalContent:y}),e.abrupt("return");case 44:if(P=h.get("SM","SMask")||!1,T=h.get("Mask")||!1,O=200,!o||P||T||!(f+p<O)){e.next=52;break}return I=new M.PDFImage({xref:this.xref,res:r,image:n,isInline:o,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:u}),k=I.createImageData(!0),s.addImageOps(a.OPS.paintInlineImageXObject,[k],y),e.abrupt("return");case 52:E="img_".concat(this.idFactory.createObjId()),R=!1,this.parsingType3Font?E="".concat(this.idFactory.getDocId(),"_type3_").concat(E):d&&(R=this.globalImageCache.shouldCache(d,this.pageIndex),R&&(E="".concat(this.idFactory.getDocId(),"_").concat(E))),s.addDependency(E),w=[E,f,p],M.PDFImage.buildImage({xref:this.xref,res:r,image:n,isInline:o,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:u}).then((function(e){return k=e.createImageData(!1),l&&d&&R&&D.globalImageCache.addByteSize(d,k.data.length),D._sendImgData(E,k,R)}))["catch"]((function(e){return(0,a.warn)('Unable to decode image "'.concat(E,'": "').concat(e,'".')),D._sendImgData(E,null,R)})),s.addImageOps(a.OPS.paintImageXObject,w,y),l&&(c.set(l,d,{fn:a.OPS.paintImageXObject,args:w,optionalContent:y}),d&&((0,a.assert)(!o,"Cannot cache an inline image globally."),this.globalImageCache.addPageIndex(d,this.pageIndex),R&&this.globalImageCache.setData(d,{objId:E,fn:a.OPS.paintImageXObject,args:w,optionalContent:y,byteSize:0})));case 59:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"handleSMask",value:function(e,t,r,a,n,i){var o=e.get("G"),s={subtype:e.get("S").name,backdrop:e.get("BC")},l=e.get("TR");if((0,p.isPDFFunction)(l)){for(var c=this._pdfFunctionFactory.create(l),u=new Uint8Array(256),h=new Float32Array(1),d=0;d<256;d++)h[0]=d/255,c(h,0,h,0),u[d]=255*h[0]|0;s.transferMap=u}return this.buildFormXObject(t,o,s,r,a,n.state.clone(),i)}},{key:"handleTransferFunction",value:function(e){var t;if(Array.isArray(e))t=e;else{if(!(0,p.isPDFFunction)(e))return null;t=[e]}var r,a=[],n=0,o=0,s=b(t);try{for(s.s();!(r=s.n()).done;){var l=r.value,c=this.xref.fetchIfRef(l);if(n++,(0,i.isName)(c,"Identity"))a.push(null);else{if(!(0,p.isPDFFunction)(c))return null;for(var u=this._pdfFunctionFactory.create(c),h=new Uint8Array(256),d=new Float32Array(1),f=0;f<256;f++)d[0]=f/255,u(d,0,d,0),h[f]=255*d[0]|0;a.push(h),o++}}}catch(v){s.e(v)}finally{s.f()}return 1!==n&&4!==n||0===o?null:a}},{key:"handleTilingType",value:function(e,t,r,n,o,s,l,c){var u=this,d=new E.OperatorList,f=i.Dict.merge({xref:this.xref,dictArray:[o.get("Resources"),r]});return this.getOperatorList({stream:n,task:l,resources:f,operatorList:d}).then((function(){var r=d.getIR(),a=(0,h.getTilingPatternIR)(r,o,t);s.addDependencies(d.dependencies),s.addOp(e,a),o.objId&&c.set(null,o.objId,{operatorListIR:r,dict:o})}))["catch"]((function(e){if(!(e instanceof a.AbortException)){if(u.options.ignoreErrors)return u.handler.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.errorTilingPattern}),void(0,a.warn)('handleTilingType - ignoring pattern: "'.concat(e,'".'));throw e}}))}},{key:"handleSetFont",value:function(e,t,r,n,s,l){var c=this,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,h=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,d=t&&t[0]instanceof i.Name?t[0].name:null;return this.loadFont(d,r,e,u,h).then((function(t){return t.font.isType3Font?t.loadType3Data(c,e,s).then((function(){return n.addDependencies(t.type3Dependencies),t}))["catch"]((function(e){return c.handler.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.errorFontLoadType3}),new G({loadedName:"g_font_error",font:new o.ErrorFont("Type3 font load error: ".concat(e)),dict:t.font,evaluatorOptions:c.options})})):t})).then((function(e){return l.font=e.font,e.send(c.handler),e.loadedName}))}},{key:"handleText",value:function(t,r){var n=r.font,i=n.charsToGlyphs(t);if(n.data){var o=!!(r.textRenderingMode&a.TextRenderingMode.ADD_TO_PATH_FLAG);(o||"Pattern"===r.fillColorSpace.name||n.disableFontFace||this.options.disableFontFace)&&e.buildFontPaths(n,i,this.handler,this.options)}return i}},{key:"ensureStateFont",value:function(e){if(!e.font){var t=new a.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.errorFontState}),void(0,a.warn)('ensureStateFont: "'.concat(t,'".'));throw t}}},{key:"setGState",value:function(){var e=w(m().mark((function e(t){var r,n,o,s,l,c,u,h,d,f,p,v,g,y,b,k,w=this;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=t.resources,n=t.gState,o=t.operatorList,s=t.cacheKey,l=t.task,c=t.stateManager,u=t.localGStateCache,h=t.localColorSpaceCache,d=n.objId,f=!0,p=[],v=n.getKeys(),g=Promise.resolve(),y=m().mark((function e(){var t,s,u;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=v[b],s=n.get(t),e.t0=t,e.next="Type"===e.t0?5:"LW"===e.t0||"LC"===e.t0||"LJ"===e.t0||"ML"===e.t0||"D"===e.t0||"RI"===e.t0||"FL"===e.t0||"CA"===e.t0||"ca"===e.t0?6:"Font"===e.t0?8:"BM"===e.t0?11:"SMask"===e.t0?13:"TR"===e.t0?18:"OP"===e.t0||"op"===e.t0||"OPM"===e.t0||"BG"===e.t0||"BG2"===e.t0||"UCR"===e.t0||"UCR2"===e.t0||"TR2"===e.t0||"HT"===e.t0||"SM"===e.t0||"SA"===e.t0||"AIS"===e.t0||"TK"===e.t0?21:23;break;case 5:return e.abrupt("break",25);case 6:return p.push([t,s]),e.abrupt("break",25);case 8:return f=!1,g=g.then((function(){return w.handleSetFont(r,null,s[0],o,l,c.state).then((function(e){o.addDependency(e),p.push([t,[e,s[1]]])}))})),e.abrupt("break",25);case 11:return p.push([t,B(s)]),e.abrupt("break",25);case 13:if(!(0,i.isName)(s,"None")){e.next=16;break}return p.push([t,!1]),e.abrupt("break",25);case 16:return s instanceof i.Dict?(f=!1,g=g.then((function(){return w.handleSMask(s,r,o,l,c,h)})),p.push([t,!0])):(0,a.warn)("Unsupported SMask type"),e.abrupt("break",25);case 18:return u=w.handleTransferFunction(s),p.push([t,u]),e.abrupt("break",25);case 21:return(0,a.info)("graphic state operator "+t),e.abrupt("break",25);case 23:return(0,a.info)("Unknown graphic state operator "+t),e.abrupt("break",25);case 25:case"end":return e.stop()}}),e)})),b=0,k=v.length;case 8:if(!(b<k)){e.next=13;break}return e.delegateYield(y(),"t0",10);case 10:b++,e.next=8;break;case 13:return e.abrupt("return",g.then((function(){p.length>0&&o.addOp(a.OPS.setGState,[p]),f&&u.set(s,d,p)})));case 14:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"loadFont",value:function(t,r,n){var l,c=this,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,h=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,d=function(){var e=w(m().mark((function e(){return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new G({loadedName:"g_font_error",font:new o.ErrorFont('Font "'.concat(t,'" is not available.')),dict:r,evaluatorOptions:c.options}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),f=this.xref;if(r)r instanceof i.Ref&&(l=r);else{var p=n.get("Font");p&&(l=p.getRaw(t))}if(!l){var v='Font "'.concat(t||r&&r.toString(),'" is not available');if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,a.warn)("".concat(v,".")),d();this.handler.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.errorFontMissing}),(0,a.warn)("".concat(v," -- attempting to fallback to a default font.")),l=u||e.fallbackFontDict}if(this.parsingType3Font&&this.type3FontRefs.has(l))return d();if(this.fontCache.has(l))return this.fontCache.get(l);if(r=f.fetchIfRef(l),!(r instanceof i.Dict))return d();if(r.cacheKey&&this.fontCache.has(r.cacheKey))return this.fontCache.get(r.cacheKey);var g,y=(0,a.createPromiseCapability)();try{g=this.preEvaluateFont(r),g.cssFontInfo=h}catch(F){return(0,a.warn)('loadFont - preEvaluateFont failed: "'.concat(F,'".')),d()}var b,k=g,_=k.descriptor,S=k.hash,x=l instanceof i.Ref;if(x&&(b="f".concat(l.toString())),S&&_ instanceof i.Dict){_.fontAliases||(_.fontAliases=Object.create(null));var A=_.fontAliases;if(A[S]){var C=A[S].aliasRef;if(x&&C&&this.fontCache.has(C))return this.fontCache.putAlias(l,C),this.fontCache.get(l)}else A[S]={fontID:this.idFactory.createFontId()};x&&(A[S].aliasRef=l),b=A[S].fontID}return x?this.fontCache.put(l,y.promise):(b||(b=this.idFactory.createFontId()),r.cacheKey="cacheKey_".concat(b),this.fontCache.put(r.cacheKey,y.promise)),(0,a.assert)(b&&b.startsWith("f"),'The "fontID" must be (correctly) defined.'),r.loadedName="".concat(this.idFactory.getDocId(),"_").concat(b),this.translateFont(g).then((function(e){void 0!==e.fontType&&f.stats.addFontType(e.fontType),y.resolve(new G({loadedName:r.loadedName,font:e,dict:r,evaluatorOptions:c.options}))}))["catch"]((function(e){c.handler.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.errorFontTranslate}),(0,a.warn)('loadFont - translateFont failed: "'.concat(e,'".'));try{var t=_&&_.get("FontFile3"),n=t&&t.get("Subtype"),i=(0,s.getFontType)(g.type,n&&n.name);void 0!==i&&f.stats.addFontType(i)}catch(l){}y.resolve(new G({loadedName:r.loadedName,font:new o.ErrorFont(e instanceof Error?e.message:e),dict:r,evaluatorOptions:c.options}))})),y.promise}},{key:"buildPath",value:function(e,t,r){var n,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e.length-1;if(r||(r=[]),o<0||e.fnArray[o]!==a.OPS.constructPath)i&&((0,a.warn)('Encountered path operator "'.concat(t,'" inside of a text object.')),e.addOp(a.OPS.save,null)),n=[1/0,-1/0,1/0,-1/0],e.addOp(a.OPS.constructPath,[[t],r,n]),i&&e.addOp(a.OPS.restore,null);else{var s=e.argsArray[o];s[0].push(t),Array.prototype.push.apply(s[1],r),n=s[2]}switch(t){case a.OPS.rectangle:n[0]=Math.min(n[0],r[0],r[0]+r[2]),n[1]=Math.max(n[1],r[0],r[0]+r[2]),n[2]=Math.min(n[2],r[1],r[1]+r[3]),n[3]=Math.max(n[3],r[1],r[1]+r[3]);break;case a.OPS.moveTo:case a.OPS.lineTo:n[0]=Math.min(n[0],r[0]),n[1]=Math.max(n[1],r[0]),n[2]=Math.min(n[2],r[1]),n[3]=Math.max(n[3],r[1]);break}}},{key:"parseColorSpace",value:function(e){var t=this,r=e.cs,n=e.resources,i=e.localColorSpaceCache;return C.ColorSpace.parseAsync({cs:r,xref:this.xref,resources:n,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:i})["catch"]((function(e){if(e instanceof a.AbortException)return null;if(t.options.ignoreErrors)return t.handler.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.errorColorSpace}),(0,a.warn)('parseColorSpace - ignoring ColorSpace: "'.concat(e,'".')),null;throw e}))}},{key:"parseShading",value:function(e){var t=e.shading,r=e.resources,a=e.localColorSpaceCache,n=e.localShadingPatternCache,i=n.get(t);if(!i){var o=h.Pattern.parseShading(t,this.xref,r,this.handler,this._pdfFunctionFactory,a),s=o.getIR();i="pattern_".concat(this.idFactory.createObjId()),n.set(t,i),this.handler.send("obj",[i,this.pageIndex,"Pattern",s])}return i}},{key:"handleColorN",value:function(e,t,r,n,o,s,l,c,u,d){var f=r.pop();if(f instanceof i.Name){var p=o.getRaw(f.name),v=p instanceof i.Ref&&u.getByRef(p);if(v)try{var g=n.base?n.base.getRgb(r,0):null,m=(0,h.getTilingPatternIR)(v.operatorListIR,v.dict,g);return void e.addOp(t,m)}catch(C){}var y=this.xref.fetchIfRef(p);if(y){var b=y instanceof x.BaseStream?y.dict:y,k=b.get("PatternType");if(k===D.TILING){var w=n.base?n.base.getRgb(r,0):null;return this.handleTilingType(t,w,s,y,b,e,l,u)}if(k===D.SHADING){var _=b.get("Shading"),S=b.getArray("Matrix"),A=this.parseShading({shading:_,resources:s,localColorSpaceCache:c,localShadingPatternCache:d});return void e.addOp(t,["Shading",A,S])}throw new a.FormatError("Unknown PatternType: ".concat(k))}}throw new a.FormatError("Unknown PatternName: ".concat(f))}},{key:"_parseVisibilityExpression",value:function(e,t,r){var n=10;if(++t>n)(0,a.warn)("Visibility expression is too deeply nested");else{var o=e.length,s=this.xref.fetchIfRef(e[0]);if(!(o<2)&&s instanceof i.Name){switch(s.name){case"And":case"Or":case"Not":r.push(s.name);break;default:return void(0,a.warn)("Invalid operator ".concat(s.name," in visibility expression"))}for(var l=1;l<o;l++){var c=e[l],u=this.xref.fetchIfRef(c);if(Array.isArray(u)){var h=[];r.push(h),this._parseVisibilityExpression(u,t,h)}else c instanceof i.Ref&&r.push(c.toString())}}else(0,a.warn)("Invalid visibility expression")}}},{key:"parseMarkedContentProps",value:function(){var e=w(m().mark((function e(t,r){var n,o,s,l,c,u,h,d,f,p;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t instanceof i.Name)){e.next=5;break}o=r.get("Properties"),n=o.get(t.name),e.next=10;break;case 5:if(!(t instanceof i.Dict)){e.next=9;break}n=t,e.next=10;break;case 9:throw new a.FormatError("Optional content properties malformed.");case 10:if(s=n.get("Type").name,"OCG"!==s){e.next=15;break}return e.abrupt("return",{type:s,id:n.objId});case 15:if("OCMD"!==s){e.next=31;break}if(l=n.get("VE"),!Array.isArray(l)){e.next=22;break}if(c=[],this._parseVisibilityExpression(l,0,c),!(c.length>0)){e.next=22;break}return e.abrupt("return",{type:"OCMD",expression:c});case 22:if(u=n.get("OCGs"),!(Array.isArray(u)||u instanceof i.Dict)){e.next=29;break}if(h=[],Array.isArray(u)){d=b(u);try{for(d.s();!(f=d.n()).done;)p=f.value,h.push(p.toString())}catch(v){d.e(v)}finally{d.f()}}else h.push(u.objId);return e.abrupt("return",{type:s,ids:h,policy:n.get("P")instanceof i.Name?n.get("P").name:null,expression:null});case 29:if(!(u instanceof i.Ref)){e.next=31;break}return e.abrupt("return",{type:s,id:u.toString()});case 31:return e.abrupt("return",null);case 32:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"getOperatorList",value:function(e){var t=this,r=e.stream,n=e.task,o=e.resources,s=e.operatorList,l=e.initialState,c=void 0===l?null:l,u=e.fallbackFontDict,h=void 0===u?null:u;if(o=o||i.Dict.empty,c=c||new $,!s)throw new Error('getOperatorList: missing "operatorList" parameter');var d=this,f=this.xref,p=!1,v=new g.LocalImageCache,m=new g.LocalColorSpaceCache,y=new g.LocalGStateCache,b=new g.LocalTilingPatternCache,k=new Map,w=o.get("XObject")||i.Dict.empty,_=o.get("Pattern")||i.Dict.empty,S=new H(c),A=new z(r,f,S),F=new U;function P(e){for(var t=0,r=A.savedStatesDepth;t<r;t++)s.addOp(a.OPS.restore,[])}return new Promise((function e(t,r){var l=function(a){Promise.all([a,s.ready]).then((function(){try{e(t,r)}catch(a){r(a)}}),r)};n.ensureNotTerminated(),F.reset();var c,u,g,T,O,I,E={};while(!(c=F.check())){if(E.args=null,!A.read(E))break;var M=E.args,R=E.fn;switch(0|R){case a.OPS.paintXObject:if(I=M[0]instanceof i.Name,O=M[0].name,I){var D=v.getByName(O);if(D){s.addImageOps(D.fn,D.args,D.optionalContent),j(D),M=null;continue}}return void l(new Promise((function(e,t){if(!I)throw new a.FormatError("XObject must be referred to by name.");var r=w.getRaw(O);if(r instanceof i.Ref){var l=v.getByRef(r);if(l)return s.addImageOps(l.fn,l.args,l.optionalContent),j(l),void e();var c=d.globalImageCache.getData(r,d.pageIndex);if(c)return s.addDependency(c.objId),s.addImageOps(c.fn,c.args,c.optionalContent),void e();r=f.fetch(r)}if(!(r instanceof x.BaseStream))throw new a.FormatError("XObject should be a stream");var u=r.dict.get("Subtype");if(!(u instanceof i.Name))throw new a.FormatError("XObject should have a Name subtype");if("Form"===u.name)return S.save(),void d.buildFormXObject(o,r,null,s,n,S.state.clone(),m).then((function(){S.restore(),e()}),t);if("Image"!==u.name){if("PS"!==u.name)throw new a.FormatError("Unhandled XObject subtype ".concat(u.name));(0,a.info)("Ignored XObject subtype PS"),e()}else d.buildPaintImageXObject({resources:o,image:r,operatorList:s,cacheKey:O,localImageCache:v,localColorSpaceCache:m}).then(e,t)}))["catch"]((function(e){if(!(e instanceof a.AbortException)){if(d.options.ignoreErrors)return d.handler.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.errorXObject}),void(0,a.warn)('getOperatorList - ignoring XObject: "'.concat(e,'".'));throw e}})));case a.OPS.setFont:var N=M[1];return void l(d.handleSetFont(o,M,null,s,n,S.state,h).then((function(e){s.addDependency(e),s.addOp(a.OPS.setFont,[e,N])})));case a.OPS.beginText:p=!0;break;case a.OPS.endText:p=!1;break;case a.OPS.endInlineImage:var B=M[0].cacheKey;if(B){var U=v.getByName(B);if(U){s.addImageOps(U.fn,U.args,U.optionalContent),j(U),M=null;continue}}return void l(d.buildPaintImageXObject({resources:o,image:M[0],isInline:!0,operatorList:s,cacheKey:B,localImageCache:v,localColorSpaceCache:m}));case a.OPS.showText:if(!S.state.font){d.ensureStateFont(S.state);continue}M[0]=d.handleText(M[0],S.state);break;case a.OPS.showSpacedText:if(!S.state.font){d.ensureStateFont(S.state);continue}var q=M[0],G=[],H=q.length,X=S.state;for(u=0;u<H;++u){var $=q[u];"string"===typeof $?Array.prototype.push.apply(G,d.handleText($,X)):"number"===typeof $&&G.push($)}M[0]=G,R=a.OPS.showText;break;case a.OPS.nextLineShowText:if(!S.state.font){d.ensureStateFont(S.state);continue}s.addOp(a.OPS.nextLine),M[0]=d.handleText(M[0],S.state),R=a.OPS.showText;break;case a.OPS.nextLineSetSpacingShowText:if(!S.state.font){d.ensureStateFont(S.state);continue}s.addOp(a.OPS.nextLine),s.addOp(a.OPS.setWordSpacing,[M.shift()]),s.addOp(a.OPS.setCharSpacing,[M.shift()]),M[0]=d.handleText(M[0],S.state),R=a.OPS.showText;break;case a.OPS.setTextRenderingMode:S.state.textRenderingMode=M[0];break;case a.OPS.setFillColorSpace:var z=C.ColorSpace.getCached(M[0],f,m);if(z){S.state.fillColorSpace=z;continue}return void l(d.parseColorSpace({cs:M[0],resources:o,localColorSpaceCache:m}).then((function(e){e&&(S.state.fillColorSpace=e)})));case a.OPS.setStrokeColorSpace:var W=C.ColorSpace.getCached(M[0],f,m);if(W){S.state.strokeColorSpace=W;continue}return void l(d.parseColorSpace({cs:M[0],resources:o,localColorSpaceCache:m}).then((function(e){e&&(S.state.strokeColorSpace=e)})));case a.OPS.setFillColor:T=S.state.fillColorSpace,M=T.getRgb(M,0),R=a.OPS.setFillRGBColor;break;case a.OPS.setStrokeColor:T=S.state.strokeColorSpace,M=T.getRgb(M,0),R=a.OPS.setStrokeRGBColor;break;case a.OPS.setFillGray:S.state.fillColorSpace=C.ColorSpace.singletons.gray,M=C.ColorSpace.singletons.gray.getRgb(M,0),R=a.OPS.setFillRGBColor;break;case a.OPS.setStrokeGray:S.state.strokeColorSpace=C.ColorSpace.singletons.gray,M=C.ColorSpace.singletons.gray.getRgb(M,0),R=a.OPS.setStrokeRGBColor;break;case a.OPS.setFillCMYKColor:S.state.fillColorSpace=C.ColorSpace.singletons.cmyk,M=C.ColorSpace.singletons.cmyk.getRgb(M,0),R=a.OPS.setFillRGBColor;break;case a.OPS.setStrokeCMYKColor:S.state.strokeColorSpace=C.ColorSpace.singletons.cmyk,M=C.ColorSpace.singletons.cmyk.getRgb(M,0),R=a.OPS.setStrokeRGBColor;break;case a.OPS.setFillRGBColor:S.state.fillColorSpace=C.ColorSpace.singletons.rgb,M=C.ColorSpace.singletons.rgb.getRgb(M,0);break;case a.OPS.setStrokeRGBColor:S.state.strokeColorSpace=C.ColorSpace.singletons.rgb,M=C.ColorSpace.singletons.rgb.getRgb(M,0);break;case a.OPS.setFillColorN:if(T=S.state.fillColorSpace,"Pattern"===T.name)return void l(d.handleColorN(s,a.OPS.setFillColorN,M,T,_,o,n,m,b,k));M=T.getRgb(M,0),R=a.OPS.setFillRGBColor;break;case a.OPS.setStrokeColorN:if(T=S.state.strokeColorSpace,"Pattern"===T.name)return void l(d.handleColorN(s,a.OPS.setStrokeColorN,M,T,_,o,n,m,b,k));M=T.getRgb(M,0),R=a.OPS.setStrokeRGBColor;break;case a.OPS.shadingFill:var V=o.get("Shading");if(!V)throw new a.FormatError("No shading resource found");var Y=V.get(M[0].name);if(!Y)throw new a.FormatError("No shading object found");var K=d.parseShading({shading:Y,resources:o,localColorSpaceCache:m,localShadingPatternCache:k});M=[K],R=a.OPS.shadingFill;break;case a.OPS.setGState:if(I=M[0]instanceof i.Name,O=M[0].name,I){var J=y.getByName(O);if(J){J.length>0&&s.addOp(a.OPS.setGState,[J]),M=null;continue}}return void l(new Promise((function(e,t){if(!I)throw new a.FormatError("GState must be referred to by name.");var r=o.get("ExtGState");if(!(r instanceof i.Dict))throw new a.FormatError("ExtGState should be a dictionary.");var l=r.get(O);if(!(l instanceof i.Dict))throw new a.FormatError("GState should be a dictionary.");d.setGState({resources:o,gState:l,operatorList:s,cacheKey:O,task:n,stateManager:S,localGStateCache:y,localColorSpaceCache:m}).then(e,t)}))["catch"]((function(e){if(!(e instanceof a.AbortException)){if(d.options.ignoreErrors)return d.handler.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.errorExtGState}),void(0,a.warn)('getOperatorList - ignoring ExtGState: "'.concat(e,'".'));throw e}})));case a.OPS.moveTo:case a.OPS.lineTo:case a.OPS.curveTo:case a.OPS.curveTo2:case a.OPS.curveTo3:case a.OPS.closePath:case a.OPS.rectangle:d.buildPath(s,R,M,p);continue;case a.OPS.markPoint:case a.OPS.markPointProps:case a.OPS.beginCompat:case a.OPS.endCompat:continue;case a.OPS.beginMarkedContentProps:if(!(M[0]instanceof i.Name)){(0,a.warn)("Expected name for beginMarkedContentProps arg0=".concat(M[0]));continue}if("OC"===M[0].name)return void l(d.parseMarkedContentProps(M[1],o).then((function(e){s.addOp(a.OPS.beginMarkedContentProps,["OC",e])}))["catch"]((function(e){if(!(e instanceof a.AbortException)){if(d.options.ignoreErrors)return d.handler.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.errorMarkedContent}),void(0,a.warn)('getOperatorList - ignoring beginMarkedContentProps: "'.concat(e,'".'));throw e}})));M=[M[0].name,M[1]instanceof i.Dict?M[1].get("MCID"):null];break;case a.OPS.beginMarkedContent:case a.OPS.endMarkedContent:default:if(null!==M){for(u=0,g=M.length;u<g;u++)if(M[u]instanceof i.Dict)break;if(u<g){(0,a.warn)("getOperatorList - ignoring operator: "+R);continue}}}s.addOp(R,M)}c?l(L):(P(),t())}))["catch"]((function(e){if(!(e instanceof a.AbortException)){if(t.options.ignoreErrors)return t.handler.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.errorOperatorList}),(0,a.warn)('getOperatorList - ignoring errors during "'.concat(n.name,'" ')+'task: "'.concat(e,'".')),void P();throw e}}))}},{key:"getTextContent",value:function(e){var t=this,r=e.stream,n=e.task,o=e.resources,s=e.stateManager,l=void 0===s?null:s,c=e.combineTextItems,h=void 0!==c&&c,d=e.includeMarkedContent,f=void 0!==d&&d,p=e.sink,v=e.seenStyles,m=void 0===v?new Set:v,y=e.viewBox;o=o||i.Dict.empty,l=l||new H(new X);var b=(0,u.getNormalizedUnicodes)(),w={items:[],styles:Object.create(null)},_={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},S=[" "," "],C=0;function F(e){var t=(C+1)%2,r=" "!==S[C]&&" "===S[t];return S[C]=e,C=t,r}function P(){S[0]=S[1]=" ",C=0}var T,O=.1,I=.03,E=-.2,M=.1,R=.6,D=this,B=this.xref,j=[],q=null,G=new g.LocalImageCache,$=new g.LocalGStateCache,W=new z(r,B,l);function V(){var e=T.font,t=[T.fontSize*T.textHScale,0,0,T.fontSize,0,T.textRise];if(e.isType3Font&&(T.fontSize<=1||e.isCharBBox)&&!(0,a.isArrayEqual)(T.fontMatrix,a.FONT_IDENTITY_MATRIX)){var r=e.bbox[3]-e.bbox[1];r>0&&(t[3]*=r*T.fontMatrix[3])}return a.Util.transform(T.ctm,a.Util.transform(T.textMatrix,t))}function Y(){if(_.initialized)return _;var e=T.font,t=e.loadedName;m.has(t)||(m.add(t),w.styles[t]={fontFamily:e.fallbackName,ascent:e.ascent,descent:e.descent,vertical:e.vertical}),_.fontName=t;var r=_.transform=V();e.vertical?(_.width=_.totalWidth=Math.hypot(r[0],r[1]),_.height=_.totalHeight=0,_.vertical=!0):(_.width=_.totalWidth=0,_.height=_.totalHeight=Math.hypot(r[2],r[3]),_.vertical=!1);var a=Math.hypot(T.textLineMatrix[0],T.textLineMatrix[1]),n=Math.hypot(T.ctm[0],T.ctm[1]);return _.textAdvanceScale=n*a,_.trackingSpaceMin=T.fontSize*O,_.notASpace=T.fontSize*I,_.negativeSpaceMax=T.fontSize*E,_.spaceInFlowMin=T.fontSize*M,_.spaceInFlowMax=T.fontSize*R,_.hasEOL=!1,_.initialized=!0,_}function K(){if(_.initialized){var e=Math.hypot(T.textLineMatrix[0],T.textLineMatrix[1]),t=Math.hypot(T.ctm[0],T.ctm[1]),r=t*e;r!==_.textAdvanceScale&&(_.vertical?(_.totalHeight+=_.height*_.textAdvanceScale,_.height=0):(_.totalWidth+=_.width*_.textAdvanceScale,_.width=0),_.textAdvanceScale=r)}}function J(e){var t=e.str.join(""),r=(0,A.bidi)(t,-1,e.vertical);return{str:r.str,dir:r.dir,width:Math.abs(e.totalWidth),height:Math.abs(e.totalHeight),transform:e.transform,fontName:e.fontName,hasEOL:e.hasEOL}}function Z(e,t){return D.loadFont(e,t,o).then((function(e){return e.font.isType3Font?e.loadType3Data(D,o,n)["catch"]((function(){})).then((function(){return e})):e})).then((function(e){T.font=e.font,T.fontMatrix=e.font.fontMatrix||a.FONT_IDENTITY_MATRIX}))}function Q(e,t,r){var a=Math.hypot(r[0],r[1]);return[(r[0]*e+r[1]*t)/a,(r[2]*e+r[3]*t)/a]}function ee(){var e=V(),t=e[4],r=e[5],a=t-y[0],n=r-y[1];if(a<0||a>y[2]||n<0||n>y[3])return!1;if(!h||!T.font||!_.prevTransform)return!0;var i=_.prevTransform[4],o=_.prevTransform[5];if(i===t&&o===r)return!0;var s=-1;switch(e[0]&&0===e[1]&&0===e[2]?s=e[0]>0?0:180:e[1]&&0===e[0]&&0===e[3]&&(s=e[1]>0?90:270),s){case 0:break;case 90:var l=[r,t];t=l[0],r=l[1];var c=[o,i];i=c[0],o=c[1];break;case 180:var u=[-t,-r,-i,-o];t=u[0],r=u[1],i=u[2],o=u[3];break;case 270:var d=[-r,-t];t=d[0],r=d[1];var f=[-o,-i];i=f[0],o=f[1];break;default:var p=Q(t,r,e),v=k(p,2);t=v[0],r=v[1];var g=Q(i,o,_.prevTransform),m=k(g,2);i=m[0],o=m[1]}if(T.font.vertical){var b=(o-r)/_.textAdvanceScale,S=t-i,x=Math.sign(_.height);return b<x*_.negativeSpaceMax?Math.abs(S)>.5*_.width?(re(),!0):(P(),ne(),!0):Math.abs(S)>_.width?(re(),!0):(b<=x*_.notASpace&&P(),b<=x*_.trackingSpaceMin?_.height+=b:ae(b,_.prevTransform,x)||(0===_.str.length?(P(),w.items.push({str:" ",dir:"ltr",width:0,height:Math.abs(b),transform:_.prevTransform,fontName:_.fontName,hasEOL:!1})):_.height+=b),!0)}var A=(t-i)/_.textAdvanceScale,C=r-o,F=Math.sign(_.width);return A<F*_.negativeSpaceMax?Math.abs(C)>.5*_.height?(re(),!0):(P(),ne(),!0):Math.abs(C)>_.height?(re(),!0):(A<=F*_.notASpace&&P(),A<=F*_.trackingSpaceMin?_.width+=A:ae(A,_.prevTransform,F)||(0===_.str.length?(P(),w.items.push({str:" ",dir:"ltr",width:Math.abs(A),height:0,transform:_.prevTransform,fontName:_.fontName,hasEOL:!1})):_.width+=A),!0)}function te(e){var t=e.chars,r=e.extraSpacing,a=T.font;if(t)for(var n=a.charsToGlyphs(t),i=T.fontMatrix[0]*T.fontSize,o=0,s=n.length;o<s;o++){var l=n[o];if(!l.isInvisibleFormatMark){var c=T.charSpacing+(o+1===s?r:0),h=l.width;a.vertical&&(h=l.vmetric?l.vmetric[0]:-h);var d=h*i;if(l.isWhitespace)a.vertical?(c+=-d+T.wordSpacing,T.translateTextMatrix(0,-c)):(c+=d+T.wordSpacing,T.translateTextMatrix(c*T.textHScale,0)),F(" ");else if(ee()){var f=Y();l.isZeroWidthDiacritic&&(d=0),a.vertical?(T.translateTextMatrix(0,d),d=Math.abs(d),f.height+=d):(d*=T.textHScale,T.translateTextMatrix(d,0),f.width+=d),d&&(f.prevTransform=V());var p=l.unicode;p=b[p]||p,p=(0,u.reverseIfRtl)(p),F(p)&&f.str.push(" "),f.str.push(p),c&&(a.vertical?T.translateTextMatrix(0,-c):T.translateTextMatrix(c*T.textHScale,0))}}}else{var v=T.charSpacing+r;v&&(a.vertical?T.translateTextMatrix(0,-v):T.translateTextMatrix(v*T.textHScale,0))}}function re(){P(),_.initialized?(_.hasEOL=!0,ne()):w.items.push({str:"",dir:"ltr",width:0,height:0,transform:V(),fontName:T.font.loadedName,hasEOL:!0})}function ae(e,t,r){if(r*_.spaceInFlowMin<=e&&e<=r*_.spaceInFlowMax)return _.initialized&&(P(),_.str.push(" ")),!1;var a=_.fontName,n=0;return _.vertical&&(n=e,e=0),ne(),P(),w.items.push({str:" ",dir:"ltr",width:Math.abs(e),height:Math.abs(n),transform:t||V(),fontName:a,hasEOL:!1}),!0}function ne(){_.initialized&&_.str&&(_.vertical?_.totalHeight+=_.height*_.textAdvanceScale:_.totalWidth+=_.width*_.textAdvanceScale,w.items.push(J(_)),_.initialized=!1,_.str.length=0)}function ie(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=w.items.length;0!==t&&(e&&t<N||(p.enqueue(w,t),w.items=[],w.styles=Object.create(null)))}var oe=new U;return new Promise((function e(t,r){var s=function(a){ie(!0),Promise.all([a,p.ready]).then((function(){try{e(t,r)}catch(a){r(a)}}),r)};n.ensureNotTerminated(),oe.reset();var c,u={},d=[];while(!(c=oe.check())){if(d.length=0,u.args=d,!W.read(u))break;T=l.state;var v=u.fn;switch(d=u.args,0|v){case a.OPS.setFont:var g=d[0].name,b=d[1];if(T.font&&g===T.fontName&&b===T.fontSize)break;return ne(),T.fontName=g,T.fontSize=b,void s(Z(g,null));case a.OPS.setTextRise:T.textRise=d[0];break;case a.OPS.setHScale:T.textHScale=d[0]/100;break;case a.OPS.setLeading:T.leading=d[0];break;case a.OPS.moveText:T.translateTextLineMatrix(d[0],d[1]),T.textMatrix=T.textLineMatrix.slice();break;case a.OPS.setLeadingMoveText:T.leading=-d[1],T.translateTextLineMatrix(d[0],d[1]),T.textMatrix=T.textLineMatrix.slice();break;case a.OPS.nextLine:T.carriageReturn();break;case a.OPS.setTextMatrix:T.setTextMatrix(d[0],d[1],d[2],d[3],d[4],d[5]),T.setTextLineMatrix(d[0],d[1],d[2],d[3],d[4],d[5]),K();break;case a.OPS.setCharSpacing:T.charSpacing=d[0];break;case a.OPS.setWordSpacing:T.wordSpacing=d[0];break;case a.OPS.beginText:T.textMatrix=a.IDENTITY_MATRIX.slice(),T.textLineMatrix=a.IDENTITY_MATRIX.slice();break;case a.OPS.showSpacedText:if(!l.state.font){D.ensureStateFont(l.state);continue}for(var k=(T.font.vertical?1:-1)*T.fontSize/1e3,_=d[0],S=0,A=_.length;S<A-1;S++){var C=_[S];if("string"===typeof C)j.push(C);else if("number"===typeof C&&0!==C){var F=j.join("");j.length=0,te({chars:F,extraSpacing:C*k})}}var P=_.at(-1);if("string"===typeof P&&j.push(P),j.length>0){var O=j.join("");j.length=0,te({chars:O,extraSpacing:0})}break;case a.OPS.showText:if(!l.state.font){D.ensureStateFont(l.state);continue}te({chars:d[0],extraSpacing:0});break;case a.OPS.nextLineShowText:if(!l.state.font){D.ensureStateFont(l.state);continue}T.carriageReturn(),te({chars:d[0],extraSpacing:0});break;case a.OPS.nextLineSetSpacingShowText:if(!l.state.font){D.ensureStateFont(l.state);continue}T.wordSpacing=d[0],T.charSpacing=d[1],T.carriageReturn(),te({chars:d[2],extraSpacing:0});break;case a.OPS.paintXObject:ne(),q||(q=o.get("XObject")||i.Dict.empty);var I=d[0]instanceof i.Name,E=d[0].name;if(I&&G.getByName(E))break;return void s(new Promise((function(e,t){if(!I)throw new a.FormatError("XObject must be referred to by name.");var r=q.getRaw(E);if(r instanceof i.Ref){if(G.getByRef(r))return void e();var s=D.globalImageCache.getData(r,D.pageIndex);if(s)return void e();r=B.fetch(r)}if(!(r instanceof x.BaseStream))throw new a.FormatError("XObject should be a stream");var c=r.dict.get("Subtype");if(!(c instanceof i.Name))throw new a.FormatError("XObject should have a Name subtype");if("Form"!==c.name)return G.set(E,r.dict.objId,!0),void e();var u=l.state.clone(),d=new H(u),v=r.dict.getArray("Matrix");Array.isArray(v)&&6===v.length&&d.transform(v),ie();var g={enqueueInvoked:!1,enqueue:function(e,t){this.enqueueInvoked=!0,p.enqueue(e,t)},get desiredSize(){return p.desiredSize},get ready(){return p.ready}};D.getTextContent({stream:r,task:n,resources:r.dict.get("Resources")||o,stateManager:d,combineTextItems:h,includeMarkedContent:f,sink:g,seenStyles:m,viewBox:y}).then((function(){g.enqueueInvoked||G.set(E,r.dict.objId,!0),e()}),t)}))["catch"]((function(e){if(!(e instanceof a.AbortException)){if(!D.options.ignoreErrors)throw e;(0,a.warn)('getTextContent - ignoring XObject: "'.concat(e,'".'))}})));case a.OPS.setGState:if(I=d[0]instanceof i.Name,E=d[0].name,I&&$.getByName(E))break;return void s(new Promise((function(e,t){if(!I)throw new a.FormatError("GState must be referred to by name.");var r=o.get("ExtGState");if(!(r instanceof i.Dict))throw new a.FormatError("ExtGState should be a dictionary.");var n=r.get(E);if(!(n instanceof i.Dict))throw new a.FormatError("GState should be a dictionary.");var s=n.get("Font");if(!s)return $.set(E,n.objId,!0),void e();ne(),T.fontName=null,T.fontSize=s[1],Z(null,s[0]).then(e,t)}))["catch"]((function(e){if(!(e instanceof a.AbortException)){if(!D.options.ignoreErrors)throw e;(0,a.warn)('getTextContent - ignoring ExtGState: "'.concat(e,'".'))}})));case a.OPS.beginMarkedContent:ne(),f&&w.items.push({type:"beginMarkedContent",tag:d[0]instanceof i.Name?d[0].name:null});break;case a.OPS.beginMarkedContentProps:if(ne(),f){var M=null;d[1]instanceof i.Dict&&(M=d[1].get("MCID")),w.items.push({type:"beginMarkedContentProps",id:Number.isInteger(M)?"".concat(D.idFactory.getPageObjId(),"_mcid").concat(M):null,tag:d[0]instanceof i.Name?d[0].name:null})}break;case a.OPS.endMarkedContent:ne(),f&&w.items.push({type:"endMarkedContent"});break}if(w.items.length>=p.desiredSize){c=!0;break}}c?s(L):(ne(),ie(),t())}))["catch"]((function(e){if(!(e instanceof a.AbortException)){if(t.options.ignoreErrors)return(0,a.warn)('getTextContent - ignoring errors during "'.concat(n.name,'" ')+'task: "'.concat(e,'".')),ne(),void ie();throw e}}))}},{key:"extractDataStructures",value:function(e,t,r){var n,o=this,c=this.xref,u=this.readToUnicode(r.toUnicode||e.get("ToUnicode")||t.get("ToUnicode"));if(r.composite){var h=e.get("CIDSystemInfo");h instanceof i.Dict&&(r.cidSystemInfo={registry:(0,a.stringToPDFString)(h.get("Registry")),ordering:(0,a.stringToPDFString)(h.get("Ordering")),supplement:h.get("Supplement")});try{var d=e.get("CIDToGIDMap");d instanceof x.BaseStream&&(n=d.getBytes())}catch(A){if(!this.options.ignoreErrors)throw A;(0,a.warn)('extractDataStructures - ignoring CIDToGIDMap data: "'.concat(A,'".'))}}var f,p=[],v=null;if(e.has("Encoding")){if(f=e.get("Encoding"),f instanceof i.Dict){if(v=f.get("BaseEncoding"),v=v instanceof i.Name?v.name:null,f.has("Differences"))for(var g=f.get("Differences"),m=0,y=0,b=g.length;y<b;y++){var k=c.fetchIfRef(g[y]);if("number"===typeof k)m=k;else{if(!(k instanceof i.Name))throw new a.FormatError("Invalid entry in 'Differences' array: ".concat(k));p[m++]=k.name}}}else if(f instanceof i.Name)v=f.name;else{var w="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new a.FormatError(w);(0,a.warn)(w)}"MacRomanEncoding"!==v&&"MacExpertEncoding"!==v&&"WinAnsiEncoding"!==v&&(v=null)}if(v)r.defaultEncoding=(0,l.getEncoding)(v);else{var _=!!(r.flags&s.FontFlags.Symbolic),S=!!(r.flags&s.FontFlags.Nonsymbolic);f=l.StandardEncoding,"TrueType"!==r.type||S||(f=l.WinAnsiEncoding),_&&(f=l.MacRomanEncoding,r.file&&!r.isInternalFont||(/Symbol/i.test(r.name)?f=l.SymbolSetEncoding:/Dingbats|Wingdings/i.test(r.name)&&(f=l.ZapfDingbatsEncoding))),r.defaultEncoding=f}return r.differences=p,r.baseEncodingName=v,r.hasEncoding=!!v||p.length>0,r.dict=e,u.then((function(e){return r.toUnicode=e,o.buildToUnicode(r)})).then((function(e){return r.toUnicode=e,n&&(r.cidToGidMap=o.readCidToGidMap(n,e)),r}))}},{key:"_simpleFontToUnicode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,a.assert)(!e.composite,"Must be a simple font.");var r=[],n=e.defaultEncoding.slice(),i=e.baseEncodingName,o=e.differences;for(var s in o){var c=o[s];".notdef"!==c&&(n[s]=c)}var h=(0,P.getGlyphsUnicode)();for(var d in n){var f=n[d];if(""!==f)if(void 0!==h[f])r[d]=String.fromCharCode(h[f]);else{var p=0;switch(f[0]){case"G":3===f.length&&(p=parseInt(f.substring(1),16));break;case"g":5===f.length&&(p=parseInt(f.substring(1),16));break;case"C":case"c":if(f.length>=3&&f.length<=4){var v=f.substring(1);if(t){p=parseInt(v,16);break}if(p=+v,Number.isNaN(p)&&Number.isInteger(parseInt(v,16)))return this._simpleFontToUnicode(e,!0)}break;default:var g=(0,u.getUnicodeForGlyph)(f,h);-1!==g&&(p=g)}if(p>0&&p<=1114111&&Number.isInteger(p)){if(i&&p===+d){var m=(0,l.getEncoding)(i);if(m&&(f=m[d])){r[d]=String.fromCharCode(h[f]);continue}}r[d]=String.fromCodePoint(p)}}}return r}},{key:"buildToUnicode",value:function(){var e=w(m().mark((function e(t){var r,o,s,l,c,u;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.hasIncludedToUnicodeMap=!!t.toUnicode&&t.toUnicode.length>0,!t.hasIncludedToUnicodeMap){e.next=4;break}return!t.composite&&t.hasEncoding&&(t.fallbackToUnicode=this._simpleFontToUnicode(t)),e.abrupt("return",t.toUnicode);case 4:if(t.composite){e.next=6;break}return e.abrupt("return",new f.ToUnicodeMap(this._simpleFontToUnicode(t)));case 6:if(!t.composite||(!t.cMap.builtInCMap||t.cMap instanceof n.IdentityCMap)&&("Adobe"!==t.cidSystemInfo.registry||"GB1"!==t.cidSystemInfo.ordering&&"CNS1"!==t.cidSystemInfo.ordering&&"Japan1"!==t.cidSystemInfo.ordering&&"Korea1"!==t.cidSystemInfo.ordering)){e.next=15;break}return r=t.cidSystemInfo,o=r.registry,s=r.ordering,l=i.Name.get("".concat(o,"-").concat(s,"-UCS2")),e.next=11,n.CMapFactory.create({encoding:l,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 11:return c=e.sent,u=[],t.cMap.forEach((function(e,t){if(t>65535)throw new a.FormatError("Max size of CID is 65,535");var r=c.lookup(t);r&&(u[e]=String.fromCharCode((r.charCodeAt(0)<<8)+r.charCodeAt(1)))})),e.abrupt("return",new f.ToUnicodeMap(u));case 15:return e.abrupt("return",new f.IdentityToUnicodeMap(t.firstChar,t.lastChar));case 16:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"readToUnicode",value:function(e){var t=this;return e?e instanceof i.Name?n.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(e){return e instanceof n.IdentityCMap?new f.IdentityToUnicodeMap(0,65535):new f.ToUnicodeMap(e.getMap())})):e instanceof x.BaseStream?n.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(e){if(e instanceof n.IdentityCMap)return new f.IdentityToUnicodeMap(0,65535);var t=new Array(e.length);return e.forEach((function(e,r){if("number"!==typeof r){for(var a=[],n=0;n<r.length;n+=2){var i=r.charCodeAt(n)<<8|r.charCodeAt(n+1);if(55296===(63488&i)){n+=2;var o=r.charCodeAt(n)<<8|r.charCodeAt(n+1);a.push(((1023&i)<<10)+(1023&o)+65536)}else a.push(i)}t[e]=String.fromCodePoint.apply(String,a)}else t[e]=String.fromCodePoint(r)})),new f.ToUnicodeMap(t)}),(function(e){if(e instanceof a.AbortException)return null;if(t.options.ignoreErrors)return t.handler.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.errorFontToUnicode}),(0,a.warn)('readToUnicode - ignoring ToUnicode data: "'.concat(e,'".')),null;throw e})):Promise.resolve(null):Promise.resolve(null)}},{key:"readCidToGidMap",value:function(e,t){for(var r=[],a=0,n=e.length;a<n;a++){var i=e[a++]<<8|e[a],o=a>>1;(0!==i||t.has(o))&&(r[o]=i)}return r}},{key:"extractWidths",value:function(e,t,r){var a,n,o,l,c,u,h,d,f=this.xref,p=[],v=0,g=[];if(r.composite){if(v=e.has("DW")?e.get("DW"):1e3,d=e.get("W"),d)for(n=0,o=d.length;n<o;n++)if(u=f.fetchIfRef(d[n++]),h=f.fetchIfRef(d[n]),Array.isArray(h))for(l=0,c=h.length;l<c;l++)p[u++]=f.fetchIfRef(h[l]);else{var m=f.fetchIfRef(d[++n]);for(l=u;l<=h;l++)p[l]=m}if(r.vertical){var y=e.getArray("DW2")||[880,-1e3];if(a=[y[1],.5*v,y[0]],y=e.get("W2"),y)for(n=0,o=y.length;n<o;n++)if(u=f.fetchIfRef(y[n++]),h=f.fetchIfRef(y[n]),Array.isArray(h))for(l=0,c=h.length;l<c;l++)g[u++]=[f.fetchIfRef(h[l++]),f.fetchIfRef(h[l++]),f.fetchIfRef(h[l])];else{var b=[f.fetchIfRef(y[++n]),f.fetchIfRef(y[++n]),f.fetchIfRef(y[++n])];for(l=u;l<=h;l++)g[l]=b}}}else{var k=r.firstChar;if(d=e.get("Widths"),d){for(l=k,n=0,o=d.length;n<o;n++)p[l++]=f.fetchIfRef(d[n]);v=parseFloat(t.get("MissingWidth"))||0}else{var w=e.get("BaseFont");if(w instanceof i.Name){var _=this.getBaseFontMetrics(w.name);p=this.buildCharCodeToWidth(_.widths,r),v=_.defaultWidth}}}var S=!0,x=v;for(var A in p){var C=p[A];if(C)if(x){if(x!==C){S=!1;break}}else x=C}S&&(r.flags|=s.FontFlags.FixedPitch),r.defaultWidth=v,r.widths=p,r.defaultVMetrics=a,r.vmetrics=g}},{key:"isSerifFont",value:function(e){var t=e.split("-")[0];return t in(0,c.getSerifFonts)()||-1!==t.search(/serif/gi)}},{key:"getBaseFontMetrics",value:function(e){var t=0,r=Object.create(null),a=!1,n=(0,c.getStdFontMap)(),i=n[e]||e,o=(0,O.getMetrics)();i in o||(i=this.isSerifFont(e)?"Times-Roman":"Helvetica");var s=o[i];return"number"===typeof s?(t=s,a=!0):r=s(),{defaultWidth:t,monospace:a,widths:r}}},{key:"buildCharCodeToWidth",value:function(e,t){for(var r=Object.create(null),a=t.differences,n=t.defaultEncoding,i=0;i<256;i++)i in a&&e[a[i]]?r[i]=e[a[i]]:i in n&&e[n[i]]&&(r[i]=e[n[i]]);return r}},{key:"preEvaluateFont",value:function(e){var t=e,r=e.get("Subtype");if(!(r instanceof i.Name))throw new a.FormatError("invalid font Subtype");var n,o,s=!1;if("Type0"===r.name){var l=e.get("DescendantFonts");if(!l)throw new a.FormatError("Descendant fonts are not specified");if(e=Array.isArray(l)?this.xref.fetchIfRef(l[0]):l,!(e instanceof i.Dict))throw new a.FormatError("Descendant font is not a dictionary.");if(r=e.get("Subtype"),!(r instanceof i.Name))throw new a.FormatError("invalid font Subtype");s=!0}var c=e.get("FirstChar")||0,u=e.get("LastChar")||(s?65535:255),h=e.get("FontDescriptor");if(h){n=new I.MurmurHash3_64;var d=t.getRaw("Encoding");if(d instanceof i.Name)n.update(d.name);else if(d instanceof i.Ref)n.update(d.toString());else if(d instanceof i.Dict){var f,p=b(d.getRawValues());try{for(p.s();!(f=p.n()).done;){var v=f.value;if(v instanceof i.Name)n.update(v.name);else if(v instanceof i.Ref)n.update(v.toString());else if(Array.isArray(v)){for(var g=v.length,m=new Array(g),y=0;y<g;y++){var k=v[y];k instanceof i.Name?m[y]=k.name:("number"===typeof k||k instanceof i.Ref)&&(m[y]=k.toString())}n.update(m.join())}}}catch(U){p.e(U)}finally{p.f()}}if(n.update("".concat(c,"-").concat(u)),o=e.get("ToUnicode")||t.get("ToUnicode"),o instanceof x.BaseStream){var w=o.str||o,_=w.buffer?new Uint8Array(w.buffer.buffer,0,w.bufferLength):new Uint8Array(w.bytes.buffer,w.start,w.end-w.start);n.update(_)}else o instanceof i.Name&&n.update(o.name);var S=e.get("Widths")||t.get("Widths");if(Array.isArray(S)){var A,C=[],F=b(S);try{for(F.s();!(A=F.n()).done;){var P=A.value;("number"===typeof P||P instanceof i.Ref)&&C.push(P.toString())}}catch(U){F.e(U)}finally{F.f()}n.update(C.join())}if(s){n.update("compositeFont");var T=e.get("W")||t.get("W");if(Array.isArray(T)){var O,E=[],M=b(T);try{for(M.s();!(O=M.n()).done;){var R=O.value;if("number"===typeof R||R instanceof i.Ref)E.push(R.toString());else if(Array.isArray(R)){var D,N=[],L=b(R);try{for(L.s();!(D=L.n()).done;){var B=D.value;("number"===typeof B||B instanceof i.Ref)&&N.push(B.toString())}}catch(U){L.e(U)}finally{L.f()}E.push("[".concat(N.join(),"]"))}}}catch(U){M.e(U)}finally{M.f()}n.update(E.join())}var j=e.getRaw("CIDToGIDMap")||t.getRaw("CIDToGIDMap");j instanceof i.Name?n.update(j.name):j instanceof i.Ref?n.update(j.toString()):j instanceof x.BaseStream&&n.update(j.peekBytes())}}return{descriptor:h,dict:e,baseDict:t,composite:s,type:r.name,firstChar:c,lastChar:u,toUnicode:o,hash:n?n.hexdigest():""}}},{key:"translateFont",value:function(){var e=w(m().mark((function e(t){var r,l,u,h,f,p,v,g,b,k,w,_,S,x,A,C,F,P,T,O,I,E,M,R,D,N,L,B,j,U,q,G,H,X,$,z=this;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.descriptor,l=t.dict,u=t.baseDict,h=t.composite,f=t.type,p=t.firstChar,v=t.lastChar,g=t.toUnicode,b=t.cssFontInfo,k="Type3"===f,r){e.next=27;break}if(!k){e.next=9;break}r=new i.Dict(null),r.set("FontName",i.Name.get(f)),r.set("FontBBox",l.getArray("FontBBox")||[0,0,0,0]),e.next=27;break;case 9:if(_=l.get("BaseFont"),_ instanceof i.Name){e.next=12;break}throw new a.FormatError("Base font is not specified");case 12:if(_=_.name.replace(/[,_]/g,"-"),S=this.getBaseFontMetrics(_),x=_.split("-")[0],A=(this.isSerifFont(x)?s.FontFlags.Serif:0)|(S.monospace?s.FontFlags.FixedPitch:0)|((0,c.getSymbolsFonts)()[x]?s.FontFlags.Symbolic:s.FontFlags.Nonsymbolic),w={type:f,name:_,loadedName:u.loadedName,widths:S.widths,defaultWidth:S.defaultWidth,isSimulatedFlags:!0,flags:A,firstChar:p,lastChar:v,toUnicode:g,xHeight:0,capHeight:0,italicAngle:0,isType3Font:k},C=l.get("Widths"),F=(0,c.getStandardFontName)(_),P=null,!F){e.next=26;break}return w.isStandardFont=!0,e.next=24,this.fetchStandardFontData(F);case 24:P=e.sent,w.isInternalFont=!!P;case 26:return e.abrupt("return",this.extractDataStructures(l,l,w).then((function(e){if(C){for(var t=[],r=p,a=0,n=C.length;a<n;a++)t[r++]=z.xref.fetchIfRef(C[a]);e.widths=t}else e.widths=z.buildCharCodeToWidth(S.widths,e);return new o.Font(_,P,e)})));case 27:if(T=r.get("FontName"),O=l.get("BaseFont"),"string"===typeof T&&(T=i.Name.get(T)),"string"===typeof O&&(O=i.Name.get(O)),k||(I=T&&T.name,E=O&&O.name,I!==E&&((0,a.info)("The FontDescriptor's FontName is \"".concat(I,'" but ')+"should be the same as the Font's BaseFont \"".concat(E,'".')),I&&E&&E.startsWith(I)&&(T=O))),T=T||O,T instanceof i.Name){e.next=35;break}throw new a.FormatError("invalid font name");case 35:e.prev=35,M=r.get("FontFile","FontFile2","FontFile3"),e.next=45;break;case 39:if(e.prev=39,e.t0=e["catch"](35),this.options.ignoreErrors){e.next=43;break}throw e.t0;case 43:(0,a.warn)('translateFont - fetching "'.concat(T.name,'" font file: "').concat(e.t0,'".')),M=new y.NullStream;case 45:if(B=!1,j=!1,U=null,!M){e.next=52;break}M.dict&&(q=M.dict.get("Subtype"),q instanceof i.Name&&(R=q.name),D=M.dict.get("Length1"),N=M.dict.get("Length2"),L=M.dict.get("Length3")),e.next=74;break;case 52:if(!b){e.next=66;break}if(G=(0,d.getXfaFontName)(T.name),!G){e.next=64;break}return b.fontFamily="".concat(b.fontFamily,"-PdfJS-XFA"),b.metrics=G.metrics||null,U=G.factors||null,e.next=60,this.fetchStandardFontData(G.name);case 60:M=e.sent,j=!!M,u=l=(0,d.getXfaFontDict)(T.name),h=!0;case 64:e.next=74;break;case 66:if(k){e.next=74;break}if(H=(0,c.getStandardFontName)(T.name),!H){e.next=74;break}return B=!0,e.next=72,this.fetchStandardFontData(H);case 72:M=e.sent,j=!!M;case 74:if(w={type:f,name:T.name,subtype:R,file:M,length1:D,length2:N,length3:L,isStandardFont:B,isInternalFont:j,loadedName:u.loadedName,composite:h,fixedPitch:!1,fontMatrix:l.getArray("FontMatrix")||a.FONT_IDENTITY_MATRIX,firstChar:p,lastChar:v,toUnicode:g,bbox:r.getArray("FontBBox")||l.getArray("FontBBox"),ascent:r.get("Ascent"),descent:r.get("Descent"),xHeight:r.get("XHeight")||0,capHeight:r.get("CapHeight")||0,flags:r.get("Flags"),italicAngle:r.get("ItalicAngle")||0,isType3Font:k,cssFontInfo:b,scaleFactors:U},!h){e.next=83;break}return X=u.get("Encoding"),X instanceof i.Name&&(w.cidEncoding=X.name),e.next=80,n.CMapFactory.create({encoding:X,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 80:$=e.sent,w.cMap=$,w.vertical=w.cMap.vertical;case 83:return e.abrupt("return",this.extractDataStructures(l,u,w).then((function(e){return z.extractWidths(l,r,e),new o.Font(T.name,M,e)})));case 84:case"end":return e.stop()}}),e,this,[[35,39]])})));function t(t){return e.apply(this,arguments)}return t}()}],[{key:"buildFontPaths",value:function(e,t,r,n){function i(t){var i="".concat(e.loadedName,"_path_").concat(t);try{if(e.renderer.hasBuiltPath(t))return;r.send("commonobj",[i,"FontPath",e.renderer.getPathJs(t)])}catch(o){if(n.ignoreErrors)return r.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.errorFontBuildPath}),void(0,a.warn)("buildFontPaths - ignoring ".concat(i,' glyph: "').concat(o,'".'));throw o}}var o,s=b(t);try{for(s.s();!(o=s.n()).done;){var l=o.value;i(l.fontChar);var c=l.accent;c&&c.fontChar&&i(c.fontChar)}}catch(u){s.e(u)}finally{s.f()}}},{key:"fallbackFontDict",get:function(){var e=new i.Dict;return e.set("BaseFont",i.Name.get("PDFJS-FallbackFont")),e.set("Type",i.Name.get("FallbackType")),e.set("Subtype",i.Name.get("FallbackType")),e.set("Encoding",i.Name.get("WinAnsiEncoding")),(0,a.shadow)(this,"fallbackFontDict",e)}}]),e}();t.PartialEvaluator=q;var G=function(){function e(t){_(this,e);var r=t.loadedName,a=t.font,n=t.dict,i=t.evaluatorOptions;this.loadedName=r,this.font=a,this.dict=n,this._evaluatorOptions=i||R,this.type3Loaded=null,this.type3Dependencies=a.isType3Font?new Set:null,this.sent=!1}return S(e,[{key:"send",value:function(e){this.sent||(this.sent=!0,e.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)]))}},{key:"fallback",value:function(e){this.font.data&&(this.font.disableFontFace=!0,q.buildFontPaths(this.font,this.font.glyphCacheValues,e,this._evaluatorOptions))}},{key:"loadType3Data",value:function(e,t,r){var n=this;if(this.type3Loaded)return this.type3Loaded;if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");var o=e.clone({ignoreErrors:!1});o.parsingType3Font=!0;var s=new i.RefSet(e.type3FontRefs);this.dict.objId&&!s.has(this.dict.objId)&&s.put(this.dict.objId),o.type3FontRefs=s;var l,c=this.font,u=this.type3Dependencies,h=Promise.resolve(),d=this.dict.get("CharProcs"),f=this.dict.get("Resources")||t,p=Object.create(null),v=a.Util.normalizeRect(c.bbox||[0,0,0,0]),g=v[2]-v[0],m=v[3]-v[1],y=Math.hypot(g,m),k=b(d.getKeys());try{var w=function(){var e=l.value;h=h.then((function(){var t=d.get(e),i=new E.OperatorList;return o.getOperatorList({stream:t,task:r,resources:f,operatorList:i}).then((function(){i.fnArray[0]===a.OPS.setCharWidthAndBounds&&n._removeType3ColorOperators(i,y),p[e]=i.getIR();var t,r=b(i.dependencies);try{for(r.s();!(t=r.n()).done;){var o=t.value;u.add(o)}}catch(s){r.e(s)}finally{r.f()}}))["catch"]((function(t){(0,a.warn)('Type3 font resource "'.concat(e,'" is not available.'));var r=new E.OperatorList;p[e]=r.getIR()}))}))};for(k.s();!(l=k.n()).done;)w()}catch(_){k.e(_)}finally{k.f()}return this.type3Loaded=h.then((function(){c.charProcOperatorList=p,n._bbox&&(c.isCharBBox=!0,c.bbox=n._bbox)})),this.type3Loaded}},{key:"_removeType3ColorOperators",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,r=a.Util.normalizeRect(e.argsArray[0].slice(2)),n=r[2]-r[0],i=r[3]-r[1],o=Math.hypot(n,i);0===n||0===i?(e.fnArray.splice(0,1),e.argsArray.splice(0,1)):(0===t||Math.round(o/t)>=10)&&(this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]),this._bbox[0]=Math.min(this._bbox[0],r[0]),this._bbox[1]=Math.min(this._bbox[1],r[1]),this._bbox[2]=Math.max(this._bbox[2],r[2]),this._bbox[3]=Math.max(this._bbox[3],r[3]));var s=0,l=e.length;while(s<l){switch(e.fnArray[s]){case a.OPS.setCharWidthAndBounds:break;case a.OPS.setStrokeColorSpace:case a.OPS.setFillColorSpace:case a.OPS.setStrokeColor:case a.OPS.setStrokeColorN:case a.OPS.setFillColor:case a.OPS.setFillColorN:case a.OPS.setStrokeGray:case a.OPS.setFillGray:case a.OPS.setStrokeRGBColor:case a.OPS.setFillRGBColor:case a.OPS.setStrokeCMYKColor:case a.OPS.setFillCMYKColor:case a.OPS.shadingFill:case a.OPS.setRenderingIntent:e.fnArray.splice(s,1),e.argsArray.splice(s,1),l--;continue;case a.OPS.setGState:var c=k(e.argsArray[s],1),u=c[0],h=0,d=u.length;while(h<d){var f=k(u[h],1),p=f[0];switch(p){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":u.splice(h,1),d--;continue}h++}break}s++}}}]),e}(),H=function(){function e(){_(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new $;this.state=t,this.stateStack=[]}return S(e,[{key:"save",value:function(){var e=this.state;this.stateStack.push(this.state),this.state=e.clone()}},{key:"restore",value:function(){var e=this.stateStack.pop();e&&(this.state=e)}},{key:"transform",value:function(e){this.state.ctm=a.Util.transform(this.state.ctm,e)}}]),e}(),X=function(){function e(){_(this,e),this.ctm=new Float32Array(a.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.font=null,this.fontMatrix=a.FONT_IDENTITY_MATRIX,this.textMatrix=a.IDENTITY_MATRIX.slice(),this.textLineMatrix=a.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}return S(e,[{key:"setTextMatrix",value:function(e,t,r,a,n,i){var o=this.textMatrix;o[0]=e,o[1]=t,o[2]=r,o[3]=a,o[4]=n,o[5]=i}},{key:"setTextLineMatrix",value:function(e,t,r,a,n,i){var o=this.textLineMatrix;o[0]=e,o[1]=t,o[2]=r,o[3]=a,o[4]=n,o[5]=i}},{key:"translateTextMatrix",value:function(e,t){var r=this.textMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5]}},{key:"translateTextLineMatrix",value:function(e,t){var r=this.textLineMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5]}},{key:"carriageReturn",value:function(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}},{key:"clone",value:function(){var e=Object.create(this);return e.textMatrix=this.textMatrix.slice(),e.textLineMatrix=this.textLineMatrix.slice(),e.fontMatrix=this.fontMatrix.slice(),e}}]),e}(),$=function(){function e(){_(this,e),this.ctm=new Float32Array(a.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=a.TextRenderingMode.FILL,this.fillColorSpace=C.ColorSpace.singletons.gray,this.strokeColorSpace=C.ColorSpace.singletons.gray}return S(e,[{key:"clone",value:function(){return Object.create(this)}}]),e}(),z=function(){function e(t,r){_(this,e);var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new H;this.parser=new v.Parser({lexer:new v.Lexer(t,e.opMap),xref:r}),this.stateManager=a,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}return S(e,[{key:"savedStatesDepth",get:function(){return this.stateManager.stateStack.length}},{key:"read",value:function(t){var r=t.args;while(1){var n=this.parser.getObj();if(n instanceof i.Cmd){var o=n.cmd,s=e.opMap[o];if(!s){(0,a.warn)('Unknown command "'.concat(o,'".'));continue}var l=s.id,c=s.numArgs,u=null!==r?r.length:0;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=l>=a.OPS.moveTo&&l<=a.OPS.endPath,s.variableArgs)u>c&&(0,a.info)("Command ".concat(o,": expected [0, ").concat(c,"] args, ")+"but received ".concat(u," args."));else{if(u!==c){var h=this.nonProcessedArgs;while(u>c)h.push(r.shift()),u--;while(u<c&&0!==h.length)null===r&&(r=[]),r.unshift(h.pop()),u++}if(u<c){var d="command ".concat(o,": expected ").concat(c," args, ")+"but received ".concat(u," args.");if(this._isPathOp&&++this._numInvalidPathOPS>e.MAX_INVALID_PATH_OPS)throw new a.FormatError("Invalid ".concat(d));(0,a.warn)("Skipping ".concat(d)),null!==r&&(r.length=0);continue}}return this.preprocessCommand(l,r),t.fn=l,t.args=r,!0}if(n===i.EOF)return!1;if(null!==n&&(null===r&&(r=[]),r.push(n),r.length>33))throw new a.FormatError("Too many arguments")}}},{key:"preprocessCommand",value:function(e,t){switch(0|e){case a.OPS.save:this.stateManager.save();break;case a.OPS.restore:this.stateManager.restore();break;case a.OPS.transform:this.stateManager.transform(t);break}}}],[{key:"opMap",get:function(){var e=(0,T.getLookupTableFactory)((function(e){e.w={id:a.OPS.setLineWidth,numArgs:1,variableArgs:!1},e.J={id:a.OPS.setLineCap,numArgs:1,variableArgs:!1},e.j={id:a.OPS.setLineJoin,numArgs:1,variableArgs:!1},e.M={id:a.OPS.setMiterLimit,numArgs:1,variableArgs:!1},e.d={id:a.OPS.setDash,numArgs:2,variableArgs:!1},e.ri={id:a.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},e.i={id:a.OPS.setFlatness,numArgs:1,variableArgs:!1},e.gs={id:a.OPS.setGState,numArgs:1,variableArgs:!1},e.q={id:a.OPS.save,numArgs:0,variableArgs:!1},e.Q={id:a.OPS.restore,numArgs:0,variableArgs:!1},e.cm={id:a.OPS.transform,numArgs:6,variableArgs:!1},e.m={id:a.OPS.moveTo,numArgs:2,variableArgs:!1},e.l={id:a.OPS.lineTo,numArgs:2,variableArgs:!1},e.c={id:a.OPS.curveTo,numArgs:6,variableArgs:!1},e.v={id:a.OPS.curveTo2,numArgs:4,variableArgs:!1},e.y={id:a.OPS.curveTo3,numArgs:4,variableArgs:!1},e.h={id:a.OPS.closePath,numArgs:0,variableArgs:!1},e.re={id:a.OPS.rectangle,numArgs:4,variableArgs:!1},e.S={id:a.OPS.stroke,numArgs:0,variableArgs:!1},e.s={id:a.OPS.closeStroke,numArgs:0,variableArgs:!1},e.f={id:a.OPS.fill,numArgs:0,variableArgs:!1},e.F={id:a.OPS.fill,numArgs:0,variableArgs:!1},e["f*"]={id:a.OPS.eoFill,numArgs:0,variableArgs:!1},e.B={id:a.OPS.fillStroke,numArgs:0,variableArgs:!1},e["B*"]={id:a.OPS.eoFillStroke,numArgs:0,variableArgs:!1},e.b={id:a.OPS.closeFillStroke,numArgs:0,variableArgs:!1},e["b*"]={id:a.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},e.n={id:a.OPS.endPath,numArgs:0,variableArgs:!1},e.W={id:a.OPS.clip,numArgs:0,variableArgs:!1},e["W*"]={id:a.OPS.eoClip,numArgs:0,variableArgs:!1},e.BT={id:a.OPS.beginText,numArgs:0,variableArgs:!1},e.ET={id:a.OPS.endText,numArgs:0,variableArgs:!1},e.Tc={id:a.OPS.setCharSpacing,numArgs:1,variableArgs:!1},e.Tw={id:a.OPS.setWordSpacing,numArgs:1,variableArgs:!1},e.Tz={id:a.OPS.setHScale,numArgs:1,variableArgs:!1},e.TL={id:a.OPS.setLeading,numArgs:1,variableArgs:!1},e.Tf={id:a.OPS.setFont,numArgs:2,variableArgs:!1},e.Tr={id:a.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},e.Ts={id:a.OPS.setTextRise,numArgs:1,variableArgs:!1},e.Td={id:a.OPS.moveText,numArgs:2,variableArgs:!1},e.TD={id:a.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},e.Tm={id:a.OPS.setTextMatrix,numArgs:6,variableArgs:!1},e["T*"]={id:a.OPS.nextLine,numArgs:0,variableArgs:!1},e.Tj={id:a.OPS.showText,numArgs:1,variableArgs:!1},e.TJ={id:a.OPS.showSpacedText,numArgs:1,variableArgs:!1},e["'"]={id:a.OPS.nextLineShowText,numArgs:1,variableArgs:!1},e['"']={id:a.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},e.d0={id:a.OPS.setCharWidth,numArgs:2,variableArgs:!1},e.d1={id:a.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},e.CS={id:a.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},e.cs={id:a.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},e.SC={id:a.OPS.setStrokeColor,numArgs:4,variableArgs:!0},e.SCN={id:a.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},e.sc={id:a.OPS.setFillColor,numArgs:4,variableArgs:!0},e.scn={id:a.OPS.setFillColorN,numArgs:33,variableArgs:!0},e.G={id:a.OPS.setStrokeGray,numArgs:1,variableArgs:!1},e.g={id:a.OPS.setFillGray,numArgs:1,variableArgs:!1},e.RG={id:a.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},e.rg={id:a.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},e.K={id:a.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},e.k={id:a.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},e.sh={id:a.OPS.shadingFill,numArgs:1,variableArgs:!1},e.BI={id:a.OPS.beginInlineImage,numArgs:0,variableArgs:!1},e.ID={id:a.OPS.beginImageData,numArgs:0,variableArgs:!1},e.EI={id:a.OPS.endInlineImage,numArgs:1,variableArgs:!1},e.Do={id:a.OPS.paintXObject,numArgs:1,variableArgs:!1},e.MP={id:a.OPS.markPoint,numArgs:1,variableArgs:!1},e.DP={id:a.OPS.markPointProps,numArgs:2,variableArgs:!1},e.BMC={id:a.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},e.BDC={id:a.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},e.EMC={id:a.OPS.endMarkedContent,numArgs:0,variableArgs:!1},e.BX={id:a.OPS.beginCompat,numArgs:0,variableArgs:!1},e.EX={id:a.OPS.endCompat,numArgs:0,variableArgs:!1},e.BM=null,e.BD=null,e["true"]=null,e.fa=null,e.fal=null,e.fals=null,e["false"]=null,e.nu=null,e.nul=null,e["null"]=null}));return(0,a.shadow)(this,"opMap",e())}},{key:"MAX_INVALID_PATH_OPS",get:function(){return(0,a.shadow)(this,"MAX_INVALID_PATH_OPS",10)}}]),e}();t.EvaluatorPreprocessor=z},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IdentityCMap=t.CMapFactory=t.CMap=void 0;var a=r(2),n=r(130),i=r(132),o=r(142),s=r(131),l=r(135),c=["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"],u=Math.pow(2,24)-1,h=function(){function e(){_(this,e);var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=t}return S(e,[{key:"addCodespaceRange",value:function(e,t,r){this.codespaceRanges[e-1].push(t,r),this.numCodespaceRanges++}},{key:"mapCidRange",value:function(e,t,r){if(t-e>u)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");while(e<=t)this._map[e++]=r++}},{key:"mapBfRange",value:function(e,t,r){if(t-e>u)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");var a=r.length-1;while(e<=t){this._map[e++]=r;var n=r.charCodeAt(a)+1;n>255?r=r.substring(0,a-1)+String.fromCharCode(r.charCodeAt(a-1)+1)+"\0":r=r.substring(0,a)+String.fromCharCode(n)}}},{key:"mapBfRangeToArray",value:function(e,t,r){if(t-e>u)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");var a=r.length,n=0;while(e<=t&&n<a)this._map[e]=r[n++],++e}},{key:"mapOne",value:function(e,t){this._map[e]=t}},{key:"lookup",value:function(e){return this._map[e]}},{key:"contains",value:function(e){return void 0!==this._map[e]}},{key:"forEach",value:function(e){var t=this._map,r=t.length;if(r<=65536)for(var a=0;a<r;a++)void 0!==t[a]&&e(a,t[a]);else for(var n in t)e(n,t[n])}},{key:"charCodeOf",value:function(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(var r in t)if(t[r]===e)return 0|r;return-1}},{key:"getMap",value:function(){return this._map}},{key:"readCharCode",value:function(e,t,r){for(var a=0,n=this.codespaceRanges,i=0,o=n.length;i<o;i++){a=(a<<8|e.charCodeAt(t+i))>>>0;for(var s=n[i],l=0,c=s.length;l<c;){var u=s[l++],h=s[l++];if(a>=u&&a<=h)return r.charcode=a,void(r.length=i+1)}}r.charcode=0,r.length=1}},{key:"getCharCodeLength",value:function(e){for(var t=this.codespaceRanges,r=0,a=t.length;r<a;r++)for(var n=t[r],i=0,o=n.length;i<o;){var s=n[i++],l=n[i++];if(e>=s&&e<=l)return r+1}return 1}},{key:"length",get:function(){return this._map.length}},{key:"isIdentityCMap",get:function(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(var e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}}]),e}();t.CMap=h;var d=function(e){v(r,e);var t=g(r);function r(e,a){var n;return _(this,r),n=t.call(this),n.vertical=e,n.addCodespaceRange(a,0,65535),n}return S(r,[{key:"mapCidRange",value:function(e,t,r){(0,a.unreachable)("should not call mapCidRange")}},{key:"mapBfRange",value:function(e,t,r){(0,a.unreachable)("should not call mapBfRange")}},{key:"mapBfRangeToArray",value:function(e,t,r){(0,a.unreachable)("should not call mapBfRangeToArray")}},{key:"mapOne",value:function(e,t){(0,a.unreachable)("should not call mapCidOne")}},{key:"lookup",value:function(e){return Number.isInteger(e)&&e<=65535?e:void 0}},{key:"contains",value:function(e){return Number.isInteger(e)&&e<=65535}},{key:"forEach",value:function(e){for(var t=0;t<=65535;t++)e(t,t)}},{key:"charCodeOf",value:function(e){return Number.isInteger(e)&&e<=65535?e:-1}},{key:"getMap",value:function(){for(var e=new Array(65536),t=0;t<=65535;t++)e[t]=t;return e}},{key:"length",get:function(){return 65536}},{key:"isIdentityCMap",get:function(){(0,a.unreachable)("should not access .isIdentityCMap")}}]),r}(h);t.IdentityCMap=d;var f=function(){function e(e,t){for(var r=0,a=0;a<=t;a++)r=r<<8|e[a];return r>>>0}function t(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode.apply(null,e.subarray(0,t+1))}function r(e,t,r){for(var a=0,n=r;n>=0;n--)a+=e[n]+t[n],e[n]=255&a,a>>=8}function n(e,t){for(var r=1,a=t;a>=0&&r>0;a--)r+=e[a],e[a]=255&r,r>>=8}var i=16,o=19,s=function(){function e(t){_(this,e),this.buffer=t,this.pos=0,this.end=t.length,this.tmpBuf=new Uint8Array(o)}return S(e,[{key:"readByte",value:function(){return this.pos>=this.end?-1:this.buffer[this.pos++]}},{key:"readNumber",value:function(){var e,t=0;do{var r=this.readByte();if(r<0)throw new a.FormatError("unexpected EOF in bcmap");e=!(128&r),t=t<<7|127&r}while(!e);return t}},{key:"readSigned",value:function(){var e=this.readNumber();return 1&e?~(e>>>1):e>>>1}},{key:"readHex",value:function(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1}},{key:"readHexNumber",value:function(e,t){var r,n=this.tmpBuf,i=0;do{var o=this.readByte();if(o<0)throw new a.FormatError("unexpected EOF in bcmap");r=!(128&o),n[i++]=127&o}while(!r);var s=t,l=0,c=0;while(s>=0){while(c<8&&n.length>0)l|=n[--i]<<c,c+=7;e[s]=255&l,s--,l>>=8,c-=8}}},{key:"readHexSigned",value:function(e,t){this.readHexNumber(e,t);for(var r=1&e[t]?255:0,a=0,n=0;n<=t;n++)a=(1&a)<<8|e[n],e[n]=a>>1^r}},{key:"readString",value:function(){for(var e=this.readNumber(),t="",r=0;r<e;r++)t+=String.fromCharCode(this.readNumber());return t}}]),e}(),l=function(){function a(){_(this,a)}return S(a,[{key:"process",value:function(){var a=w(m().mark((function a(o,l,c){var u,h,d,f,p,v,g,y,b,k,w,_,S,x,A,C,F,P,T,O,I;return m().wrap((function(a){while(1)switch(a.prev=a.next){case 0:u=new s(o),h=u.readByte(),l.vertical=!!(1&h),d=null,f=new Uint8Array(i),p=new Uint8Array(i),v=new Uint8Array(i),g=new Uint8Array(i),y=new Uint8Array(i);case 9:if(!((k=u.readByte())>=0)){a.next=68;break}if(w=k>>5,7!==w){a.next=20;break}a.t0=31&k,a.next=0===a.t0?15:1===a.t0?17:19;break;case 15:return u.readString(),a.abrupt("break",19);case 17:return d=u.readString(),a.abrupt("break",19);case 19:return a.abrupt("continue",9);case 20:if(_=!!(16&k),S=15&k,!(S+1>i)){a.next=24;break}throw new Error("BinaryCMapReader.process: Invalid dataSize.");case 24:x=1,A=u.readNumber(),a.t1=w,a.next=0===a.t1?29:1===a.t1?35:2===a.t1?41:3===a.t1?46:4===a.t1?53:5===a.t1?58:65;break;case 29:for(u.readHex(f,S),u.readHexNumber(p,S),r(p,f,S),l.addCodespaceRange(S+1,e(f,S),e(p,S)),C=1;C<A;C++)n(p,S),u.readHexNumber(f,S),r(f,p,S),u.readHexNumber(p,S),r(p,f,S),l.addCodespaceRange(S+1,e(f,S),e(p,S));return a.abrupt("break",66);case 35:for(u.readHex(f,S),u.readHexNumber(p,S),r(p,f,S),u.readNumber(),F=1;F<A;F++)n(p,S),u.readHexNumber(f,S),r(f,p,S),u.readHexNumber(p,S),r(p,f,S),u.readNumber();return a.abrupt("break",66);case 41:for(u.readHex(v,S),b=u.readNumber(),l.mapOne(e(v,S),b),P=1;P<A;P++)n(v,S),_||(u.readHexNumber(y,S),r(v,y,S)),b=u.readSigned()+(b+1),l.mapOne(e(v,S),b);return a.abrupt("break",66);case 46:for(u.readHex(f,S),u.readHexNumber(p,S),r(p,f,S),b=u.readNumber(),l.mapCidRange(e(f,S),e(p,S),b),T=1;T<A;T++)n(p,S),_?f.set(p):(u.readHexNumber(f,S),r(f,p,S)),u.readHexNumber(p,S),r(p,f,S),b=u.readNumber(),l.mapCidRange(e(f,S),e(p,S),b);return a.abrupt("break",66);case 53:for(u.readHex(v,x),u.readHex(g,S),l.mapOne(e(v,x),t(g,S)),O=1;O<A;O++)n(v,x),_||(u.readHexNumber(y,x),r(v,y,x)),n(g,S),u.readHexSigned(y,S),r(g,y,S),l.mapOne(e(v,x),t(g,S));return a.abrupt("break",66);case 58:for(u.readHex(f,x),u.readHexNumber(p,x),r(p,f,x),u.readHex(g,S),l.mapBfRange(e(f,x),e(p,x),t(g,S)),I=1;I<A;I++)n(p,x),_?f.set(p):(u.readHexNumber(f,x),r(f,p,x)),u.readHexNumber(p,x),r(p,f,x),u.readHex(g,S),l.mapBfRange(e(f,x),e(p,x),t(g,S));return a.abrupt("break",66);case 65:throw new Error("BinaryCMapReader.process - unknown type: ".concat(w));case 66:a.next=9;break;case 68:if(!d){a.next=70;break}return a.abrupt("return",c(d));case 70:return a.abrupt("return",l);case 71:case"end":return a.stop()}}),a)})));function o(e,t,r){return a.apply(this,arguments)}return o}()}]),a}();return l}(),p=function(){function e(e){for(var t=0,r=0;r<e.length;r++)t=t<<8|e.charCodeAt(r);return t>>>0}function t(e){if("string"!==typeof e)throw new a.FormatError("Malformed CMap: expected string.")}function r(e){if(!Number.isInteger(e))throw new a.FormatError("Malformed CMap: expected int.")}function u(r,a){while(1){var i=a.getObj();if(i===n.EOF)break;if((0,n.isCmd)(i,"endbfchar"))return;t(i);var o=e(i);i=a.getObj(),t(i);var s=i;r.mapOne(o,s)}}function p(r,i){while(1){var o=i.getObj();if(o===n.EOF)break;if((0,n.isCmd)(o,"endbfrange"))return;t(o);var s=e(o);o=i.getObj(),t(o);var l=e(o);if(o=i.getObj(),Number.isInteger(o)||"string"===typeof o){var c=Number.isInteger(o)?String.fromCharCode(o):o;r.mapBfRange(s,l,c)}else{if(!(0,n.isCmd)(o,"["))break;o=i.getObj();var u=[];while(!(0,n.isCmd)(o,"]")&&o!==n.EOF)u.push(o),o=i.getObj();r.mapBfRangeToArray(s,l,u)}}throw new a.FormatError("Invalid bf range.")}function v(a,i){while(1){var o=i.getObj();if(o===n.EOF)break;if((0,n.isCmd)(o,"endcidchar"))return;t(o);var s=e(o);o=i.getObj(),r(o);var l=o;a.mapOne(s,l)}}function g(a,i){while(1){var o=i.getObj();if(o===n.EOF)break;if((0,n.isCmd)(o,"endcidrange"))return;t(o);var s=e(o);o=i.getObj(),t(o);var l=e(o);o=i.getObj(),r(o);var c=o;a.mapCidRange(s,l,c)}}function y(t,r){while(1){var i=r.getObj();if(i===n.EOF)break;if((0,n.isCmd)(i,"endcodespacerange"))return;if("string"!==typeof i)break;var o=e(i);if(i=r.getObj(),"string"!==typeof i)break;var s=e(i);t.addCodespaceRange(i.length,o,s)}throw new a.FormatError("Invalid codespace range.")}function b(e,t){var r=t.getObj();Number.isInteger(r)&&(e.vertical=!!r)}function k(e,t){var r=t.getObj();r instanceof n.Name&&(e.name=r.name)}function _(e,t,r,a){return S.apply(this,arguments)}function S(){return S=w(m().mark((function e(t,r,i,o){var l,c,h;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=1,h=r.getObj(),h!==n.EOF){e.next=7;break}return e.abrupt("break",39);case 7:if(!(h instanceof n.Name)){e.next=12;break}"WMode"===h.name?b(t,r):"CMapName"===h.name&&k(t,r),l=h,e.next=29;break;case 12:if(!(h instanceof n.Cmd)){e.next=29;break}e.t0=h.cmd,e.next="endcmap"===e.t0?16:"usecmap"===e.t0?17:"begincodespacerange"===e.t0?19:"beginbfchar"===e.t0?21:"begincidchar"===e.t0?23:"beginbfrange"===e.t0?25:"begincidrange"===e.t0?27:29;break;case 16:return e.abrupt("break",39);case 17:return l instanceof n.Name&&(c=l.name),e.abrupt("break",29);case 19:return y(t,r),e.abrupt("break",29);case 21:return u(t,r),e.abrupt("break",29);case 23:return v(t,r),e.abrupt("break",29);case 25:return p(t,r),e.abrupt("break",29);case 27:return g(t,r),e.abrupt("break",29);case 29:e.next=37;break;case 31:if(e.prev=31,e.t1=e["catch"](1),!(e.t1 instanceof s.MissingDataException)){e.next=35;break}throw e.t1;case 35:return(0,a.warn)("Invalid cMap data: "+e.t1),e.abrupt("continue",0);case 37:e.next=0;break;case 39:if(!o&&c&&(o=c),!o){e.next=42;break}return e.abrupt("return",x(t,i,o));case 42:return e.abrupt("return",t);case 43:case"end":return e.stop()}}),e,null,[[1,31]])}))),S.apply(this,arguments)}function x(e,t,r){return A.apply(this,arguments)}function A(){return A=w(m().mark((function e(t,r,a){var n,i;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,C(a,r);case 2:if(t.useCMap=e.sent,0===t.numCodespaceRanges){for(n=t.useCMap.codespaceRanges,i=0;i<n.length;i++)t.codespaceRanges[i]=n[i].slice();t.numCodespaceRanges=t.useCMap.numCodespaceRanges}return t.useCMap.forEach((function(e,r){t.contains(e)||t.mapOne(e,t.useCMap.lookup(e))})),e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))),A.apply(this,arguments)}function C(e,t){return F.apply(this,arguments)}function F(){return F=w(m().mark((function e(t,r){var n,i,s,u,p;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("Identity-H"!==t){e.next=4;break}return e.abrupt("return",new d(!1,2));case 4:if("Identity-V"!==t){e.next=6;break}return e.abrupt("return",new d(!0,2));case 6:if(c.includes(t)){e.next=8;break}throw new Error("Unknown CMap name: "+t);case 8:if(r){e.next=10;break}throw new Error("Built-in CMap parameters are not provided.");case 10:return e.next=12,r(t);case 12:if(n=e.sent,i=n.cMapData,s=n.compressionType,u=new h(!0),s!==a.CMapCompressionType.BINARY){e.next=18;break}return e.abrupt("return",(new f).process(i,u,(function(e){return x(u,r,e)})));case 18:if(s!==a.CMapCompressionType.NONE){e.next=21;break}return p=new o.Lexer(new l.Stream(i)),e.abrupt("return",_(u,p,r,null));case 21:throw new Error("TODO: Only BINARY/NONE CMap compression is currently supported.");case 22:case"end":return e.stop()}}),e)}))),F.apply(this,arguments)}return{create:function(e){return w(m().mark((function t(){var r,a,s,l;return m().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=e.encoding,a=e.fetchBuiltInCMap,s=e.useCMap,!(r instanceof n.Name)){t.next=7;break}return t.abrupt("return",C(r.name,a));case 7:if(!(r instanceof i.BaseStream)){t.next=14;break}return t.next=10,_(new h,new o.Lexer(r),a,s);case 10:if(l=t.sent,!l.isIdentityCMap){t.next=13;break}return t.abrupt("return",C(l.name,a));case 13:return t.abrupt("return",l);case 14:throw new Error("Encoding required.");case 15:case"end":return t.stop()}}),t)})))()}}}();t.CMapFactory=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.Linearization=t.Lexer=void 0;var a=r(2),n=r(130),i=r(131),o=r(143),s=r(145),l=r(146),c=r(148),u=r(149),h=r(152),d=r(154),f=r(156),p=r(135),v=r(157),g=r(158),m=1e3,y=5552;function b(e){for(var t=e.length,r=1,a=0,n=0;n<t;++n)r+=255&e[n],a+=r;return a%65521<<16|r%65521}var k=function(){function e(t){_(this,e);var r=t.lexer,a=t.xref,n=t.allowStreams,i=void 0!==n&&n,o=t.recoveryMode,s=void 0!==o&&o;this.lexer=r,this.xref=a,this.allowStreams=i,this.recoveryMode=s,this.imageCache=Object.create(null),this.refill()}return S(e,[{key:"refill",value:function(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}},{key:"shift",value:function(){this.buf2 instanceof n.Cmd&&"ID"===this.buf2.cmd?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}},{key:"tryShift",value:function(){try{return this.shift(),!0}catch(e){if(e instanceof i.MissingDataException)throw e;return!1}}},{key:"getObj",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.buf1;if(this.shift(),t instanceof n.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":var r=[];while(!(0,n.isCmd)(this.buf1,"]")&&this.buf1!==n.EOF)r.push(this.getObj(e));if(this.buf1===n.EOF){if(this.recoveryMode)return r;throw new i.ParserEOFException("End of file inside array.")}return this.shift(),r;case"<<":var o=new n.Dict(this.xref);while(!(0,n.isCmd)(this.buf1,">>")&&this.buf1!==n.EOF)if(this.buf1 instanceof n.Name){var s=this.buf1.name;if(this.shift(),this.buf1===n.EOF)break;o.set(s,this.getObj(e))}else(0,a.info)("Malformed dictionary: key must be a name object"),this.shift();if(this.buf1===n.EOF){if(this.recoveryMode)return o;throw new i.ParserEOFException("End of file inside dictionary.")}return(0,n.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(o,e):o:(this.shift(),o);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&(0,n.isCmd)(this.buf2,"R")){var l=n.Ref.get(t,this.buf1);return this.shift(),this.shift(),l}return t}return"string"===typeof t&&e?e.decryptString(t):t}},{key:"findDefaultInlineStreamEnd",value:function(e){var t,r,o=69,s=73,l=32,c=10,u=13,h=0,d=this.lexer,f=e.pos,p=10,v=0;while(-1!==(t=e.getByte()))if(0===v)v=t===o?1:0;else if(1===v)v=t===s?2:0;else if((0,a.assert)(2===v,"findDefaultInlineStreamEnd - invalid state."),t===l||t===c||t===u){r=e.pos;for(var g=e.peekBytes(p),m=0,y=g.length;m<y;m++)if(t=g[m],(t!==h||g[m+1]===h)&&t!==c&&t!==u&&(t<l||t>127)){v=0;break}if(2!==v)continue;if(d.knownCommands){var b=d.peekObj();b instanceof n.Cmd&&!d.knownCommands[b.cmd]&&(v=0)}else(0,a.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");if(2===v)break}else v=0;-1===t&&((0,a.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),r&&((0,a.warn)('... trying to recover by using the last "EI" occurrence.'),e.skip(-(e.pos-r))));var k=4;return e.skip(-k),t=e.peekByte(),e.skip(k),(0,i.isWhiteSpace)(t)||k--,e.pos-k-f}},{key:"findDCTDecodeInlineStreamEnd",value:function(e){var t,r,n=e.pos,i=!1;while(-1!==(t=e.getByte()))if(255===t){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:i=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:r=e.getUint16(),r>2?e.skip(r-2):e.skip(-2);break}if(i)break}var o=e.pos-n;return-1===t?((0,a.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),e.skip(-o),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),o)}},{key:"findASCII85DecodeInlineStreamEnd",value:function(e){var t,r=126,n=62,o=e.pos;while(-1!==(t=e.getByte()))if(t===r){var s=e.pos;t=e.peekByte();while((0,i.isWhiteSpace)(t))e.skip(),t=e.peekByte();if(t===n){e.skip();break}if(e.pos>s){var l=e.peekBytes(2);if(69===l[0]&&73===l[1])break}}var c=e.pos-o;return-1===t?((0,a.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-c),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),c)}},{key:"findASCIIHexDecodeInlineStreamEnd",value:function(e){var t,r=62,n=e.pos;while(-1!==(t=e.getByte()))if(t===r)break;var i=e.pos-n;return-1===t?((0,a.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-i),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),i)}},{key:"inlineStreamSkipEI",value:function(e){var t,r=69,a=73,n=0;while(-1!==(t=e.getByte()))if(0===n)n=t===r?1:0;else if(1===n)n=t===a?2:0;else if(2===n)break}},{key:"makeInlineImage",value:function(e){var t,r=this.lexer,i=r.stream,o=new n.Dict(this.xref);while(!(0,n.isCmd)(this.buf1,"ID")&&this.buf1!==n.EOF){if(!(this.buf1 instanceof n.Name))throw new a.FormatError("Dictionary key must be a name object");var s=this.buf1.name;if(this.shift(),this.buf1===n.EOF)break;o.set(s,this.getObj(e))}-1!==r.beginInlineImagePos&&(t=i.pos-r.beginInlineImagePos);var l,c=o.get("F","Filter");if(c instanceof n.Name)l=c.name;else if(Array.isArray(c)){var u=this.xref.fetchIfRef(c[0]);u instanceof n.Name&&(l=u.name)}var h,d=i.pos;switch(l){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)}var f,p=i.makeSubStream(d,h,o);if(h<m&&t<y){var v=p.getBytes();p.reset();var g=i.pos;i.pos=r.beginInlineImagePos;var k=i.getBytes(t);i.pos=g,f=b(v)+"_"+b(k);var w=this.imageCache[f];if(void 0!==w)return this.buf2=n.Cmd.get("EI"),this.shift(),w.reset(),w}return e&&(p=e.createStream(p,h)),p=this.filter(p,o,h),p.dict=o,void 0!==f&&(p.cacheKey="inline_".concat(h,"_").concat(f),this.imageCache[f]=p),this.buf2=n.Cmd.get("EI"),this.shift(),p}},{key:"_findStreamLength",value:function(e,t){var r=this.lexer.stream;r.pos=e;var a=2048,n=t.length;while(r.pos<r.end){var i=r.peekBytes(a),o=i.length-n;if(o<=0)break;var s=0;while(s<o){var l=0;while(l<n&&i[s+l]===t[l])l++;if(l>=n)return r.pos+=s,r.pos-e;s++}r.pos+=o}return-1}},{key:"makeStream",value:function(e,t){var r=this.lexer,o=r.stream;r.skipToNextLine();var s=o.pos-1,l=e.get("Length");if(Number.isInteger(l)||((0,a.info)('Bad length "'.concat(l&&l.toString(),'" in stream.')),l=0),o.pos=s+l,r.nextChar(),this.tryShift()&&(0,n.isCmd)(this.buf2,"endstream"))this.shift();else{var c=new Uint8Array([101,110,100,115,116,114,101,97,109]),u=this._findStreamLength(s,c);if(u<0){for(var h=1,d=1;d<=h;d++){var f=c.length-d,p=c.slice(0,f),v=this._findStreamLength(s,p);if(v>=0){var g=o.peekBytes(f+1)[f];if(!(0,i.isWhiteSpace)(g))break;(0,a.info)('Found "'.concat((0,a.bytesToString)(p),'" when ')+"searching for endstream command."),u=v;break}}if(u<0)throw new a.FormatError("Missing endstream command.")}l=u,r.nextChar(),this.shift(),this.shift()}return this.shift(),o=o.makeSubStream(s,l,e),t&&(o=t.createStream(o,l)),o=this.filter(o,e,l),o.dict=e,o}},{key:"filter",value:function(e,t,r){var i=t.get("F","Filter"),o=t.get("DP","DecodeParms");if(i instanceof n.Name)return Array.isArray(o)&&(0,a.warn)("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(e,i.name,r,o);var s=r;if(Array.isArray(i))for(var l=i,c=o,u=0,h=l.length;u<h;++u){if(i=this.xref.fetchIfRef(l[u]),!(i instanceof n.Name))throw new a.FormatError('Bad filter name "'.concat(i,'"'));o=null,Array.isArray(c)&&u in c&&(o=this.xref.fetchIfRef(c[u])),e=this.makeFilter(e,i.name,s,o),s=null}return e}},{key:"makeFilter",value:function(e,t,r,n){if(0===r)return(0,a.warn)('Empty "'.concat(t,'" stream.')),new p.NullStream;var m=this.xref.stats;try{switch(t){case"Fl":case"FlateDecode":return m.addStreamType(a.StreamType.FLATE),n?new v.PredictorStream(new c.FlateStream(e,r),r,n):new c.FlateStream(e,r);case"LZW":case"LZWDecode":m.addStreamType(a.StreamType.LZW);var y=1;return n?(n.has("EarlyChange")&&(y=n.get("EarlyChange")),new v.PredictorStream(new f.LZWStream(e,r,y),r,n)):new f.LZWStream(e,r,y);case"DCT":case"DCTDecode":return m.addStreamType(a.StreamType.DCT),new h.JpegStream(e,r,n);case"JPX":case"JPXDecode":return m.addStreamType(a.StreamType.JPX),new d.JpxStream(e,r,n);case"A85":case"ASCII85Decode":return m.addStreamType(a.StreamType.A85),new o.Ascii85Stream(e,r);case"AHx":case"ASCIIHexDecode":return m.addStreamType(a.StreamType.AHX),new s.AsciiHexStream(e,r);case"CCF":case"CCITTFaxDecode":return m.addStreamType(a.StreamType.CCF),new l.CCITTFaxStream(e,r,n);case"RL":case"RunLengthDecode":return m.addStreamType(a.StreamType.RLX),new g.RunLengthStream(e,r);case"JBIG2Decode":return m.addStreamType(a.StreamType.JBIG),new u.Jbig2Stream(e,r,n)}return(0,a.warn)('Filter "'.concat(t,'" is not supported.')),e}catch(b){if(b instanceof i.MissingDataException)throw b;return(0,a.warn)('Invalid stream: "'.concat(b,'"')),new p.NullStream}}}]),e}();t.Parser=k;var w=[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 x(e){return e>=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}var A=function(){function e(t){_(this,e);var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.stream=t,this.nextChar(),this.strBuf=[],this.knownCommands=r,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}return S(e,[{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"peekChar",value:function(){return this.stream.peekByte()}},{key:"getNumber",value:function(){var e=this.currentChar,t=!1,r=0,n=0;if(45===e?(n=-1,e=this.nextChar(),45===e&&(e=this.nextChar())):43===e&&(n=1,e=this.nextChar()),10===e||13===e)do{e=this.nextChar()}while(10===e||13===e);if(46===e&&(r=10,e=this.nextChar()),e<48||e>57){if((0,i.isWhiteSpace)(e)||-1===e){if(10===r&&0===n)return(0,a.warn)("Lexer.getNumber - treating a single decimal point as zero."),0;if(0===r&&-1===n)return(0,a.warn)("Lexer.getNumber - treating a single minus sign as zero."),0}throw new a.FormatError("Invalid number: ".concat(String.fromCharCode(e)," (charCode ").concat(e,")"))}n=n||1;var o=e-48,s=0,l=1;while((e=this.nextChar())>=0)if(e>=48&&e<=57){var c=e-48;t?s=10*s+c:(0!==r&&(r*=10),o=10*o+c)}else if(46===e){if(0!==r)break;r=1}else if(45===e)(0,a.warn)("Badly formatted number: minus sign in the middle");else{if(69!==e&&101!==e)break;if(e=this.peekChar(),43===e||45===e)l=45===e?-1:1,this.nextChar();else if(e<48||e>57)break;t=!0}return 0!==r&&(o/=r),t&&(o*=Math.pow(10,l*s)),n*o}},{key:"getString",value:function(){var e=1,t=!1,r=this.strBuf;r.length=0;var n=this.nextChar();while(1){var i=!1;switch(0|n){case-1:(0,a.warn)("Unterminated string"),t=!0;break;case 40:++e,r.push("(");break;case 41:0===--e?(this.nextChar(),t=!0):r.push(")");break;case 92:switch(n=this.nextChar(),n){case-1:(0,a.warn)("Unterminated string"),t=!0;break;case 110:r.push("\n");break;case 114:r.push("\r");break;case 116:r.push("\t");break;case 98:r.push("\b");break;case 102:r.push("\f");break;case 92:case 40:case 41:r.push(String.fromCharCode(n));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var o=15&n;n=this.nextChar(),i=!0,n>=48&&n<=55&&(o=(o<<3)+(15&n),n=this.nextChar(),n>=48&&n<=55&&(i=!1,o=(o<<3)+(15&n))),r.push(String.fromCharCode(o));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:r.push(String.fromCharCode(n));break}break;default:r.push(String.fromCharCode(n));break}if(t)break;i||(n=this.nextChar())}return r.join("")}},{key:"getName",value:function(){var e,t,r=this.strBuf;r.length=0;while((e=this.nextChar())>=0&&!w[e])if(35===e){if(e=this.nextChar(),w[e]){(0,a.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),r.push("#");break}var i=x(e);if(-1!==i){t=e,e=this.nextChar();var o=x(e);if(-1===o){if((0,a.warn)("Lexer_getName: Illegal digit (".concat(String.fromCharCode(e),") ")+"in hexadecimal number."),r.push("#",String.fromCharCode(t)),w[e])break;r.push(String.fromCharCode(e));continue}r.push(String.fromCharCode(i<<4|o))}else r.push("#",String.fromCharCode(e))}else r.push(String.fromCharCode(e));return r.length>127&&(0,a.warn)("Name token is longer than allowed by the spec: ".concat(r.length)),n.Name.get(r.join(""))}},{key:"_hexStringWarn",value:function(e){var t=5;this._hexStringNumWarn++!==t?this._hexStringNumWarn>t||(0,a.warn)("getHexString - ignoring invalid character: ".concat(e)):(0,a.warn)("getHexString - ignoring additional invalid characters.")}},{key:"getHexString",value:function(){var e=this.strBuf;e.length=0;var t,r,n=this.currentChar,i=!0;this._hexStringNumWarn=0;while(1){if(n<0){(0,a.warn)("Unterminated hex string");break}if(62===n){this.nextChar();break}if(1!==w[n]){if(i){if(t=x(n),-1===t){this._hexStringWarn(n),n=this.nextChar();continue}}else{if(r=x(n),-1===r){this._hexStringWarn(n),n=this.nextChar();continue}e.push(String.fromCharCode(t<<4|r))}i=!i,n=this.nextChar()}else n=this.nextChar()}return e.join("")}},{key:"getObj",value:function(){var e=!1,t=this.currentChar;while(1){if(t<0)return n.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==w[t])break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),n.Cmd.get("[");case 93:return this.nextChar(),n.Cmd.get("]");case 60:return t=this.nextChar(),60===t?(this.nextChar(),n.Cmd.get("<<")):this.getHexString();case 62:return t=this.nextChar(),62===t?(this.nextChar(),n.Cmd.get(">>")):n.Cmd.get(">");case 123:return this.nextChar(),n.Cmd.get("{");case 125:return this.nextChar(),n.Cmd.get("}");case 41:throw this.nextChar(),new a.FormatError("Illegal character: ".concat(t))}var r=String.fromCharCode(t);if(t<32||t>127){var i=this.peekChar();if(i>=32&&i<=127)return this.nextChar(),n.Cmd.get(r)}var o=this.knownCommands,s=o&&void 0!==o[r];while((t=this.nextChar())>=0&&!w[t]){var l=r+String.fromCharCode(t);if(s&&void 0===o[l])break;if(128===r.length)throw new a.FormatError("Command token too long: ".concat(r.length));r=l,s=o&&void 0!==o[r]}return"true"===r||"false"!==r&&("null"===r?null:("BI"===r&&(this.beginInlineImagePos=this.stream.pos),n.Cmd.get(r)))}},{key:"peekObj",value:function(){var e,t=this.stream.pos,r=this.currentChar,n=this.beginInlineImagePos;try{e=this.getObj()}catch(o){if(o instanceof i.MissingDataException)throw o;(0,a.warn)("peekObj: ".concat(o))}return this.stream.pos=t,this.currentChar=r,this.beginInlineImagePos=n,e}},{key:"skipToNextLine",value:function(){var e=this.currentChar;while(e>=0){if(13===e){e=this.nextChar(),10===e&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}]),e}();t.Lexer=A;var C=function(){function e(){_(this,e)}return S(e,null,[{key:"create",value:function(e){function t(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.get(t);if(Number.isInteger(a)&&(r?a>=0:a>0))return a;throw new Error('The "'.concat(t,'" parameter in the linearization ')+"dictionary is invalid.")}function r(e){var t,r=e.get("H");if(Array.isArray(r)&&(2===(t=r.length)||4===t)){for(var a=0;a<t;a++){var n=r[a];if(!(Number.isInteger(n)&&n>0))throw new Error("Hint (".concat(a,") in the linearization dictionary is invalid."))}return r}throw new Error("Hint array in the linearization dictionary is invalid.")}var a,i,o=new k({lexer:new A(e),xref:null}),s=o.getObj(),l=o.getObj(),c=o.getObj(),u=o.getObj();if(!(Number.isInteger(s)&&Number.isInteger(l)&&(0,n.isCmd)(c,"obj")&&u instanceof n.Dict&&"number"===typeof(a=u.get("Linearized"))&&a>0))return null;if((i=t(u,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:i,hints:r(u),objectNumberFirst:t(u,"O"),endFirst:t(u,"E"),numPages:t(u,"N"),mainXRefEntriesOffset:t(u,"T"),pageFirst:u.has("P")?t(u,"P",!0):0}}}]),e}();t.Linearization=C},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ascii85Stream=void 0;var a=r(144),n=r(131),i=function(e){v(r,e);var t=g(r);function r(e,a){var n;return _(this,r),a&&(a*=.8),n=t.call(this,a),n.str=e,n.dict=e.dict,n.input=new Uint8Array(5),n}return S(r,[{key:"readBlock",value:function(){var e=126,t=122,r=-1,a=this.str,i=a.getByte();while((0,n.isWhiteSpace)(i))i=a.getByte();if(i!==r&&i!==e){var o,s,l=this.bufferLength;if(i===t){for(o=this.ensureBuffer(l+4),s=0;s<4;++s)o[l+s]=0;this.bufferLength+=4}else{var c=this.input;for(c[0]=i,s=1;s<5;++s){i=a.getByte();while((0,n.isWhiteSpace)(i))i=a.getByte();if(c[s]=i,i===r||i===e)break}if(o=this.ensureBuffer(l+s-1),this.bufferLength+=s-1,s<5){for(;s<5;++s)c[s]=117;this.eof=!0}var u=0;for(s=0;s<5;++s)u=85*u+(c[s]-33);for(s=3;s>=0;--s)o[l+s]=255&u,u>>=8}}else this.eof=!0}}]),r}(a.DecodeStream);t.Ascii85Stream=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamsSequenceStream=t.DecodeStream=void 0;var a=r(132),n=r(135),i=new Uint8Array(0),o=function(e){v(r,e);var t=g(r);function r(e){var a;if(_(this,r),a=t.call(this),a._rawMinBufferLength=e||0,a.pos=0,a.bufferLength=0,a.eof=!1,a.buffer=i,a.minBufferLength=512,e)while(a.minBufferLength<e)a.minBufferLength*=2;return a}return S(r,[{key:"isEmpty",get:function(){while(!this.eof&&0===this.bufferLength)this.readBlock();return 0===this.bufferLength}},{key:"ensureBuffer",value:function(e){var t=this.buffer;if(e<=t.byteLength)return t;var r=this.minBufferLength;while(r<e)r*=2;var a=new Uint8Array(r);return a.set(t),this.buffer=a}},{key:"getByte",value:function(){var e=this.pos;while(this.bufferLength<=e){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}},{key:"getBytes",value:function(e){var t,r=this.pos;if(e){this.ensureBuffer(r+e),t=r+e;while(!this.eof&&this.bufferLength<t)this.readBlock();var a=this.bufferLength;t>a&&(t=a)}else{while(!this.eof)this.readBlock();t=this.bufferLength}return this.pos=t,this.buffer.subarray(r,t)}},{key:"reset",value:function(){this.pos=0}},{key:"makeSubStream",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(void 0===t)while(!this.eof)this.readBlock();else{var a=e+t;while(this.bufferLength<=a&&!this.eof)this.readBlock()}return new n.Stream(this.buffer,e,t,r)}},{key:"getBaseStreams",value:function(){return this.str?this.str.getBaseStreams():null}}]),r}(a.BaseStream);t.DecodeStream=o;var s=function(e){v(r,e);var t=g(r);function r(e){var a;_(this,r);var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=0,l=b(e);try{for(l.s();!(n=l.n()).done;){var c=n.value;s+=c instanceof o?c._rawMinBufferLength:c.length}}catch(u){l.e(u)}finally{l.f()}return a=t.call(this,s),a.streams=e,a._onError=i,a}return S(r,[{key:"readBlock",value:function(){var e=this.streams;if(0!==e.length){var t,r=e.shift();try{t=r.getBytes()}catch(o){if(this._onError)return void this._onError(o,r.dict&&r.dict.objId);throw o}var a=this.bufferLength,n=a+t.length,i=this.ensureBuffer(n);i.set(t,a),this.bufferLength=n}else this.eof=!0}},{key:"getBaseStreams",value:function(){var e,t=[],r=b(this.streams);try{for(r.s();!(e=r.n()).done;){var a=e.value,n=a.getBaseStreams();n&&t.push.apply(t,p(n))}}catch(i){r.e(i)}finally{r.f()}return t.length>0?t:null}}]),r}(o);t.StreamsSequenceStream=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsciiHexStream=void 0;var a=r(144),n=function(e){v(r,e);var t=g(r);function r(e,a){var n;return _(this,r),a&&(a*=.5),n=t.call(this,a),n.str=e,n.dict=e.dict,n.firstDigit=-1,n}return S(r,[{key:"readBlock",value:function(){var e=8e3,t=this.str.getBytes(e);if(t.length){var r,a=t.length+1>>1,n=this.ensureBuffer(this.bufferLength+a),i=this.bufferLength,o=this.firstDigit,s=b(t);try{for(s.s();!(r=s.n()).done;){var l=r.value,c=void 0;if(l>=48&&l<=57)c=15&l;else{if(!(l>=65&&l<=70||l>=97&&l<=102)){if(62===l){this.eof=!0;break}continue}c=9+(15&l)}o<0?o=c:(n[i++]=o<<4|c,o=-1)}}catch(u){s.e(u)}finally{s.f()}o>=0&&this.eof&&(n[i++]=o<<4,o=-1),this.firstDigit=o,this.bufferLength=i}else this.eof=!0}}]),r}(a.DecodeStream);t.AsciiHexStream=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxStream=void 0;var a=r(147),n=r(144),i=r(130),o=function(e){v(r,e);var t=g(r);function r(e,n,o){var s;_(this,r),s=t.call(this,n),s.str=e,s.dict=e.dict,o instanceof i.Dict||(o=i.Dict.empty);var l={next:function(){return e.getByte()}};return s.ccittFaxDecoder=new a.CCITTFaxDecoder(l,{K:o.get("K"),EndOfLine:o.get("EndOfLine"),EncodedByteAlign:o.get("EncodedByteAlign"),Columns:o.get("Columns"),Rows:o.get("Rows"),EndOfBlock:o.get("EndOfBlock"),BlackIs1:o.get("BlackIs1")}),s}return S(r,[{key:"readBlock",value:function(){while(!this.eof){var e=this.ccittFaxDecoder.readNextChar();if(-1===e)return void(this.eof=!0);this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=e}}}]),r}(n.DecodeStream);t.CCITTFaxStream=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxDecoder=void 0;var a=r(2),n=-2,i=-1,o=0,s=1,l=2,c=3,u=4,h=5,d=6,f=7,p=8,v=[[-1,-1],[-1,-1],[7,p],[7,f],[6,d],[6,d],[6,h],[6,h],[4,o],[4,o],[4,o],[4,o],[4,o],[4,o],[4,o],[4,o],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,u],[3,u],[3,u],[3,u],[3,u],[3,u],[3,u],[3,u],[3,u],[3,u],[3,u],[3,u],[3,u],[3,u],[3,u],[3,u],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l],[1,l]],g=[[-1,-1],[12,n],[-1,-1],[-1,-1],[-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]],m=[[-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]],y=[[-1,-1],[-1,-1],[12,n],[12,n],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-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]],b=[[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]],k=[[-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]],w=function(){function e(t){_(this,e);var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||"function"!==typeof t.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=t,this.eof=!1,this.encoding=r.K||0,this.eoline=r.EndOfLine||!1,this.byteAlign=r.EncodedByteAlign||!1,this.columns=r.Columns||1728,this.rows=r.Rows||0;var a,n=r.EndOfBlock;null!==n&&void 0!==n||(n=!0),this.eoblock=n,this.black=r.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;while(0===(a=this._lookBits(12)))this._eatBits(1);1===a&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}return S(e,[{key:"readNextChar",value:function(){if(this.eof)return-1;var e,t,r,n,v,g=this.refLine,m=this.codingLine,y=this.columns;if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;var b,k,w;if(this.err=!1,this.nextLine2D){for(n=0;m[n]<y;++n)g[n]=m[n];g[n++]=y,g[n]=y,m[0]=0,this.codingPos=0,e=0,t=0;while(m[this.codingPos]<y)switch(b=this._getTwoDimCode(),b){case o:this._addPixels(g[e+1],t),g[e+1]<y&&(e+=2);break;case s:if(b=k=0,t){do{b+=w=this._getBlackCode()}while(w>=64);do{k+=w=this._getWhiteCode()}while(w>=64)}else{do{b+=w=this._getWhiteCode()}while(w>=64);do{k+=w=this._getBlackCode()}while(w>=64)}this._addPixels(m[this.codingPos]+b,t),m[this.codingPos]<y&&this._addPixels(m[this.codingPos]+k,1^t);while(g[e]<=m[this.codingPos]&&g[e]<y)e+=2;break;case f:if(this._addPixels(g[e]+3,t),t^=1,m[this.codingPos]<y){++e;while(g[e]<=m[this.codingPos]&&g[e]<y)e+=2}break;case h:if(this._addPixels(g[e]+2,t),t^=1,m[this.codingPos]<y){++e;while(g[e]<=m[this.codingPos]&&g[e]<y)e+=2}break;case c:if(this._addPixels(g[e]+1,t),t^=1,m[this.codingPos]<y){++e;while(g[e]<=m[this.codingPos]&&g[e]<y)e+=2}break;case l:if(this._addPixels(g[e],t),t^=1,m[this.codingPos]<y){++e;while(g[e]<=m[this.codingPos]&&g[e]<y)e+=2}break;case p:if(this._addPixelsNeg(g[e]-3,t),t^=1,m[this.codingPos]<y){e>0?--e:++e;while(g[e]<=m[this.codingPos]&&g[e]<y)e+=2}break;case d:if(this._addPixelsNeg(g[e]-2,t),t^=1,m[this.codingPos]<y){e>0?--e:++e;while(g[e]<=m[this.codingPos]&&g[e]<y)e+=2}break;case u:if(this._addPixelsNeg(g[e]-1,t),t^=1,m[this.codingPos]<y){e>0?--e:++e;while(g[e]<=m[this.codingPos]&&g[e]<y)e+=2}break;case i:this._addPixels(y,0),this.eof=!0;break;default:(0,a.info)("bad 2d code"),this._addPixels(y,0),this.err=!0}}else{m[0]=0,this.codingPos=0,t=0;while(m[this.codingPos]<y){if(b=0,t)do{b+=w=this._getBlackCode()}while(w>=64);else do{b+=w=this._getWhiteCode()}while(w>=64);this._addPixels(m[this.codingPos]+b,t),t^=1}}var _=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(b=this._lookBits(12),this.eoline)while(b!==i&&1!==b)this._eatBits(1),b=this._lookBits(12);else while(0===b)this._eatBits(1),b=this._lookBits(12);1===b?(this._eatBits(12),_=!0):b===i&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&_&&this.byteAlign){if(b=this._lookBits(12),1===b){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(n=0;n<4;++n)b=this._lookBits(12),1!==b&&(0,a.info)("bad rtc code: "+b),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){while(1){if(b=this._lookBits(13),b===i)return this.eof=!0,-1;if(b>>1===1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&b))}m[0]>0?this.outputBits=m[this.codingPos=0]:this.outputBits=m[this.codingPos=1],this.row++}if(this.outputBits>=8)v=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&m[this.codingPos]<y&&(this.codingPos++,this.outputBits=m[this.codingPos]-m[this.codingPos-1]);else{r=8,v=0;do{if("number"!==typeof this.outputBits)throw new a.FormatError('Invalid /CCITTFaxDecode data, "outputBits" must be a number.');this.outputBits>r?(v<<=r,1&this.codingPos||(v|=255>>8-r),this.outputBits-=r,r=0):(v<<=this.outputBits,1&this.codingPos||(v|=255>>8-this.outputBits),r-=this.outputBits,this.outputBits=0,m[this.codingPos]<y?(this.codingPos++,this.outputBits=m[this.codingPos]-m[this.codingPos-1]):r>0&&(v<<=r,r=0))}while(r)}return this.black&&(v^=255),v}},{key:"_addPixels",value:function(e,t){var r=this.codingLine,n=this.codingPos;e>r[n]&&(e>this.columns&&((0,a.info)("row is wrong length"),this.err=!0,e=this.columns),1&n^t&&++n,r[n]=e),this.codingPos=n}},{key:"_addPixelsNeg",value:function(e,t){var r=this.codingLine,n=this.codingPos;if(e>r[n])e>this.columns&&((0,a.info)("row is wrong length"),this.err=!0,e=this.columns),1&n^t&&++n,r[n]=e;else if(e<r[n]){e<0&&((0,a.info)("invalid code"),this.err=!0,e=0);while(n>0&&e<r[n-1])--n;r[n]=e}this.codingPos=n}},{key:"_findTableCode",value:function(e,t,r,a){for(var n=a||0,o=e;o<=t;++o){var s=this._lookBits(o);if(s===i)return[!0,1,!1];if(o<t&&(s<<=t-o),!n||s>=n){var l=r[s-n];if(l[0]===o)return this._eatBits(o),[!0,l[1],!0]}}return[!1,0,!1]}},{key:"_getTwoDimCode",value:function(){var e,t=0;if(this.eoblock){if(t=this._lookBits(7),e=v[t],e&&e[0]>0)return this._eatBits(e[0]),e[1]}else{var r=this._findTableCode(1,7,v);if(r[0]&&r[2])return r[1]}return(0,a.info)("Bad two dim code"),i}},{key:"_getWhiteCode",value:function(){var e,t=0;if(this.eoblock){if(t=this._lookBits(12),t===i)return 1;if(e=t>>5===0?g[t]:m[t>>3],e[0]>0)return this._eatBits(e[0]),e[1]}else{var r=this._findTableCode(1,9,m);if(r[0])return r[1];if(r=this._findTableCode(11,12,g),r[0])return r[1]}return(0,a.info)("bad white code"),this._eatBits(1),1}},{key:"_getBlackCode",value:function(){var e,t;if(this.eoblock){if(e=this._lookBits(13),e===i)return 1;if(t=e>>7===0?y[e]:e>>9===0&&e>>7!==0?b[(e>>1)-64]:k[e>>7],t[0]>0)return this._eatBits(t[0]),t[1]}else{var r=this._findTableCode(2,6,k);if(r[0])return r[1];if(r=this._findTableCode(7,12,b,64),r[0])return r[1];if(r=this._findTableCode(10,13,y),r[0])return r[1]}return(0,a.info)("bad black code"),this._eatBits(1),1}},{key:"_lookBits",value:function(e){var t;while(this.inputBits<e){if(-1===(t=this.source.next()))return 0===this.inputBits?i:this.inputBuf<<e-this.inputBits&65535>>16-e;this.inputBuf=this.inputBuf<<8|t,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e}},{key:"_eatBits",value:function(e){(this.inputBits-=e)<0&&(this.inputBits=0)}}]),e}();t.CCITTFaxDecoder=w},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FlateStream=void 0;var a=r(144),n=r(2),i=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=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]),s=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]),l=[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],c=[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],u=function(e){v(r,e);var t=g(r);function r(e,a){var i;_(this,r),i=t.call(this,a),i.str=e,i.dict=e.dict;var o=e.getByte(),s=e.getByte();if(-1===o||-1===s)throw new n.FormatError("Invalid header in flate stream: ".concat(o,", ").concat(s));if(8!==(15&o))throw new n.FormatError("Unknown compression method in flate stream: ".concat(o,", ").concat(s));if(((o<<8)+s)%31!==0)throw new n.FormatError("Bad FCHECK in flate stream: ".concat(o,", ").concat(s));if(32&s)throw new n.FormatError("FDICT bit set in flate stream: ".concat(o,", ").concat(s));return i.codeSize=0,i.codeBuf=0,i}return S(r,[{key:"getBits",value:function(e){var t,r=this.str,a=this.codeSize,i=this.codeBuf;while(a<e){if(-1===(t=r.getByte()))throw new n.FormatError("Bad encoding in flate stream");i|=t<<a,a+=8}return t=i&(1<<e)-1,this.codeBuf=i>>e,this.codeSize=a-=e,t}},{key:"getCode",value:function(e){var t,r=this.str,a=e[0],i=e[1],o=this.codeSize,s=this.codeBuf;while(o<i){if(-1===(t=r.getByte()))break;s|=t<<o,o+=8}var l=a[s&(1<<i)-1],c=l>>16,u=65535&l;if(c<1||o<c)throw new n.FormatError("Bad encoding in flate stream");return this.codeBuf=s>>c,this.codeSize=o-c,u}},{key:"generateHuffmanTable",value:function(e){var t,r=e.length,a=0;for(t=0;t<r;++t)e[t]>a&&(a=e[t]);for(var n=1<<a,i=new Int32Array(n),o=1,s=0,l=2;o<=a;++o,s<<=1,l<<=1)for(var c=0;c<r;++c)if(e[c]===o){var u=0,h=s;for(t=0;t<o;++t)u=u<<1|1&h,h>>=1;for(t=u;t<n;t+=l)i[t]=o<<16|c;++s}return[i,a]}},{key:"readBlock",value:function(){var e,t,r=this.str,a=this.getBits(3);if(1&a&&(this.eof=!0),a>>=1,0!==a){var u,h;if(1===a)u=l,h=c;else{if(2!==a)throw new n.FormatError("Unknown block type in flate stream");var d,f=this.getBits(5)+257,p=this.getBits(5)+1,v=this.getBits(4)+4,g=new Uint8Array(i.length);for(d=0;d<v;++d)g[i[d]]=this.getBits(3);var m=this.generateHuffmanTable(g);t=0,d=0;var y,b,k,w=f+p,_=new Uint8Array(w);while(d<w){var S=this.getCode(m);if(16===S)y=2,b=3,k=t;else if(17===S)y=3,b=3,k=t=0;else{if(18!==S){_[d++]=t=S;continue}y=7,b=11,k=t=0}var x=this.getBits(y)+b;while(x-- >0)_[d++]=k}u=this.generateHuffmanTable(_.subarray(0,f)),h=this.generateHuffmanTable(_.subarray(f,w))}e=this.buffer;var A=e?e.length:0,C=this.bufferLength;while(1){var F=this.getCode(u);if(F<256)C+1>=A&&(e=this.ensureBuffer(C+1),A=e.length),e[C++]=F;else{if(256===F)return void(this.bufferLength=C);F-=257,F=o[F];var P=F>>16;P>0&&(P=this.getBits(P)),t=(65535&F)+P,F=this.getCode(h),F=s[F],P=F>>16,P>0&&(P=this.getBits(P));var T=(65535&F)+P;C+t>=A&&(e=this.ensureBuffer(C+t),A=e.length);for(var O=0;O<t;++O,++C)e[C]=e[C-T]}}}else{var I;if(-1===(I=r.getByte()))throw new n.FormatError("Bad block header in flate stream");var E=I;if(-1===(I=r.getByte()))throw new n.FormatError("Bad block header in flate stream");if(E|=I<<8,-1===(I=r.getByte()))throw new n.FormatError("Bad block header in flate stream");var M=I;if(-1===(I=r.getByte()))throw new n.FormatError("Bad block header in flate stream");if(M|=I<<8,M!==(65535&~E)&&(0!==E||0!==M))throw new n.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;var R=this.bufferLength,D=R+E;if(e=this.ensureBuffer(D),this.bufferLength=D,0===E)-1===r.peekByte()&&(this.eof=!0);else{var N=r.getBytes(E);e.set(N,R),N.length<E&&(this.eof=!0)}}}}]),r}(a.DecodeStream);t.FlateStream=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Stream=void 0;var a=r(132),n=r(144),i=r(130),o=r(150),s=r(2),l=function(e){v(r,e);var t=g(r);function r(e,a,n){var i;return _(this,r),i=t.call(this,a),i.stream=e,i.dict=e.dict,i.maybeLength=a,i.params=n,i}return S(r,[{key:"bytes",get:function(){return(0,s.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}},{key:"ensureBuffer",value:function(e){}},{key:"readBlock",value:function(){if(!this.eof){var e=new o.Jbig2Image,t=[];if(this.params instanceof i.Dict){var r=this.params.get("JBIG2Globals");if(r instanceof a.BaseStream){var n=r.getBytes();t.push({data:n,start:0,end:n.length})}}t.push({data:this.bytes,start:0,end:this.bytes.length});for(var s=e.parseChunks(t),l=s.length,c=0;c<l;c++)s[c]^=255;this.buffer=s,this.bufferLength=l,this.eof=!0}}}]),r}(n.DecodeStream);t.Jbig2Stream=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Image=void 0;var a=r(2),n=r(131),i=r(151),o=r(147),s=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,"JBIG2 error: ".concat(e),"Jbig2Error")}return S(r)}(a.BaseException),l=function(){function e(){_(this,e)}return S(e,[{key:"getContexts",value:function(e){return e in this?this[e]:this[e]=new Int8Array(65536)}}]),e}(),c=function(){function e(t,r,a){_(this,e),this.data=t,this.start=r,this.end=a}return S(e,[{key:"decoder",get:function(){var e=new i.ArithmeticDecoder(this.data,this.start,this.end);return(0,a.shadow)(this,"decoder",e)}},{key:"contextCache",get:function(){var e=new l;return(0,a.shadow)(this,"contextCache",e)}}]),e}();function u(e,t,r){var a=e.getContexts(t),n=1;function i(e){for(var t=0,i=0;i<e;i++){var o=r.readBit(a,n);n=n<256?n<<1|o:511&(n<<1|o)|256,t=t<<1|o}return t>>>0}var o=i(1),s=i(1)?i(1)?i(1)?i(1)?i(1)?i(32)+4436:i(12)+340:i(8)+84:i(6)+20:i(4)+4:i(2);return 0===o?s:s>0?-s:null}function h(e,t,r){for(var a=e.getContexts("IAID"),n=1,i=0;i<r;i++){var o=t.readBit(a,n);n=n<<1|o}return r<31?n&(1<<r)-1:2147483647&n}var d=["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"],f=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],m=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],y=[39717,1941,229,405],k=[32,8];function w(e,t,r){var a,n,i,o,s,l,c,u=r.decoder,h=r.contextCache.getContexts("GB"),d=[],f=31735;for(n=0;n<t;n++)for(s=d[n]=new Uint8Array(e),l=n<1?s:d[n-1],c=n<2?s:d[n-2],a=c[0]<<13|c[1]<<12|c[2]<<11|l[0]<<7|l[1]<<6|l[2]<<5|l[3]<<4,i=0;i<e;i++)s[i]=o=u.readBit(h,a),a=(a&f)<<1|(i+3<e?c[i+3]<<11:0)|(i+4<e?l[i+4]<<4:0)|o;return d}function x(e,t,r,a,n,i,o,s){if(e){var l=new X(s.data,s.start,s.end);return Y(l,t,r,!1)}if(0===a&&!i&&!n&&4===o.length&&3===o[0].x&&-1===o[0].y&&-3===o[1].x&&-1===o[1].y&&2===o[2].x&&-2===o[2].y&&-2===o[3].x&&-2===o[3].y)return w(t,r,s);var c=!!i,u=f[a].concat(o);u.sort((function(e,t){return e.y-t.y||e.x-t.x}));var h,d,p=u.length,v=new Int8Array(p),g=new Int8Array(p),m=[],b=0,k=0,_=0,S=0;for(d=0;d<p;d++)v[d]=u[d].x,g[d]=u[d].y,k=Math.min(k,u[d].x),_=Math.max(_,u[d].x),S=Math.min(S,u[d].y),d<p-1&&u[d].y===u[d+1].y&&u[d].x===u[d+1].x-1?b|=1<<p-1-d:m.push(d);var x=m.length,A=new Int8Array(x),C=new Int8Array(x),F=new Uint16Array(x);for(h=0;h<x;h++)d=m[h],A[h]=u[d].x,C[h]=u[d].y,F[h]=1<<p-1-d;for(var P,T,O,I,E,M=-k,R=-S,D=t-_,N=y[a],L=new Uint8Array(t),B=[],j=s.decoder,U=s.contextCache.getContexts("GB"),q=0,G=0,H=0;H<r;H++){if(n){var $=j.readBit(U,N);if(q^=$,q){B.push(L);continue}}for(L=new Uint8Array(L),B.push(L),P=0;P<t;P++)if(c&&i[H][P])L[P]=0;else{if(P>=M&&P<D&&H>=R)for(G=G<<1&b,d=0;d<x;d++)T=H+C[d],O=P+A[d],I=B[T][O],I&&(I=F[d],G|=I);else for(G=0,E=p-1,d=0;d<p;d++,E--)O=P+v[d],O>=0&&O<t&&(T=H+g[d],T>=0&&(I=B[T][O],I&&(G|=I<<E)));var z=j.readBit(U,G);L[P]=z}}return B}function A(e,t,r,a,n,i,o,l,c){var u=m[r].coding;0===r&&(u=u.concat([l[0]]));var h,d=u.length,f=new Int32Array(d),p=new Int32Array(d);for(h=0;h<d;h++)f[h]=u[h].x,p[h]=u[h].y;var v=m[r].reference;0===r&&(v=v.concat([l[1]]));var g=v.length,y=new Int32Array(g),b=new Int32Array(g);for(h=0;h<g;h++)y[h]=v[h].x,b[h]=v[h].y;for(var w=a[0].length,_=a.length,S=k[r],x=[],A=c.decoder,C=c.contextCache.getContexts("GR"),F=0,P=0;P<t;P++){if(o){var T=A.readBit(C,S);if(F^=T,F)throw new s("prediction is not supported")}var O=new Uint8Array(e);x.push(O);for(var I=0;I<e;I++){var E=void 0,M=void 0,R=0;for(h=0;h<d;h++)E=P+p[h],M=I+f[h],E<0||M<0||M>=e?R<<=1:R=R<<1|x[E][M];for(h=0;h<g;h++)E=P+b[h]-i,M=I+y[h]-n,E<0||E>=_||M<0||M>=w?R<<=1:R=R<<1|a[E][M];var D=A.readBit(C,R);O[I]=D}}return x}function C(e,t,r,a,i,o,l,c,d,f,p,v){if(e&&t)throw new s("symbol refinement with Huffman is not supported");var g,m,y=[],b=0,k=(0,n.log2)(r.length+a),w=p.decoder,_=p.contextCache;e&&(g=H(1),m=[],k=Math.max(k,1));while(y.length<a){var S=e?o.tableDeltaHeight.decode(v):u(_,"IADH",w);b+=S;var C=0,P=0,T=e?m.length:0;while(1){var O=e?o.tableDeltaWidth.decode(v):u(_,"IADW",w);if(null===O)break;C+=O,P+=C;var I=void 0;if(t){var E=u(_,"IAAI",w);if(E>1)I=F(e,t,C,b,0,E,1,r.concat(y),k,0,0,1,0,o,d,f,p,0,v);else{var M=h(_,w,k),R=u(_,"IARDX",w),D=u(_,"IARDY",w),N=M<r.length?r[M]:y[M-r.length];I=A(C,b,d,N,R,D,!1,f,p)}y.push(I)}else e?m.push(C):(I=x(!1,C,b,l,!1,null,c,p),y.push(I))}if(e&&!t){var L=o.tableBitmapSize.decode(v);v.byteAlign();var B=void 0;if(0===L)B=V(v,P,b);else{var j=v.end,U=v.position+L;v.end=U,B=Y(v,P,b,!1),v.end=j,v.position=U}var q=m.length;if(T===q-1)y.push(B);else{var G=void 0,X=void 0,$=0,z=void 0,W=void 0,K=void 0;for(G=T;G<q;G++){for(W=m[G],z=$+W,K=[],X=0;X<b;X++)K.push(B[X].subarray($,z));y.push(K),$=z}}}}var J,Z,Q=[],ee=[],te=!1,re=r.length+a;while(ee.length<re){var ae=e?g.decode(v):u(_,"IAEX",w);while(ae--)ee.push(te);te=!te}for(J=0,Z=r.length;J<Z;J++)ee[J]&&Q.push(r[J]);for(var ne=0;ne<a;J++,ne++)ee[J]&&Q.push(y[ne]);return Q}function F(e,t,r,a,n,i,o,l,c,d,f,p,v,g,m,y,b,k,w){if(e&&t)throw new s("refinement with Huffman is not supported");var _,S,x=[];for(_=0;_<a;_++){if(S=new Uint8Array(r),n)for(var C=0;C<r;C++)S[C]=n;x.push(S)}var F=b.decoder,P=b.contextCache,T=e?-g.tableDeltaT.decode(w):-u(P,"IADT",F),O=0;_=0;while(_<i){var I=e?g.tableDeltaT.decode(w):u(P,"IADT",F);T+=I;var E=e?g.tableFirstS.decode(w):u(P,"IAFS",F);O+=E;var M=O;do{var R=0;o>1&&(R=e?w.readBits(k):u(P,"IAIT",F));var D=o*T+R,N=e?g.symbolIDTable.decode(w):h(P,F,c),L=t&&(e?w.readBit():u(P,"IARI",F)),B=l[N],j=B[0].length,U=B.length;if(L){var q=u(P,"IARDW",F),G=u(P,"IARDH",F),H=u(P,"IARDX",F),X=u(P,"IARDY",F);j+=q,U+=G,B=A(j,U,m,B,(q>>1)+H,(G>>1)+X,!1,y,b)}var $=D-(1&p?0:U-1),z=M-(2&p?j-1:0),W=void 0,V=void 0,Y=void 0;if(d){for(W=0;W<U;W++)if(S=x[z+W],S){Y=B[W];var K=Math.min(r-$,j);switch(v){case 0:for(V=0;V<K;V++)S[$+V]|=Y[V];break;case 2:for(V=0;V<K;V++)S[$+V]^=Y[V];break;default:throw new s("operator ".concat(v," is not supported"))}}M+=U-1}else{for(V=0;V<U;V++)if(S=x[$+V],S)switch(Y=B[V],v){case 0:for(W=0;W<j;W++)S[z+W]|=Y[W];break;case 2:for(W=0;W<j;W++)S[z+W]^=Y[W];break;default:throw new s("operator ".concat(v," is not supported"))}M+=j-1}_++;var J=e?g.tableDeltaS.decode(w):u(P,"IADS",F);if(null===J)break;M+=J+f}while(1)}return x}function P(e,t,r,a,n,i){var o=[];e||(o.push({x:-t,y:0}),0===n&&o.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));for(var s=(a+1)*t,l=x(e,s,r,n,!1,null,o,i),c=[],u=0;u<=a;u++){for(var h=[],d=t*u,f=d+t,p=0;p<r;p++)h.push(l[p].subarray(d,f));c.push(h)}return c}function T(e,t,r,a,i,o,l,c,u,h,d,f,p,v,g){var m=null;if(l)throw new s("skip is not supported");if(0!==c)throw new s('operator "'.concat(c,'" is not supported in halftone region'));var y,b,k,w=[];for(y=0;y<i;y++){if(k=new Uint8Array(a),o)for(b=0;b<a;b++)k[b]=o;w.push(k)}var _=t.length,S=t[0],A=S[0].length,C=S.length,F=(0,n.log2)(_),P=[];e||(P.push({x:r<=1?3:2,y:-1}),0===r&&P.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));var T,O,I,E,M,R,D,N,L,B,j,U=[];for(e&&(T=new X(g.data,g.start,g.end)),y=F-1;y>=0;y--)O=e?Y(T,u,h,!0):x(!1,u,h,r,!1,m,P,g),U[y]=O;for(I=0;I<h;I++)for(E=0;E<u;E++){for(M=0,R=0,b=F-1;b>=0;b--)M^=U[b][I][E],R|=M<<b;if(D=t[R],N=d+I*v+E*p>>8,L=f+I*p-E*v>>8,N>=0&&N+A<=a&&L>=0&&L+C<=i)for(y=0;y<C;y++)for(j=w[L+y],B=D[y],b=0;b<A;b++)j[N+b]|=B[b];else{var q=void 0,G=void 0;for(y=0;y<C;y++)if(G=L+y,!(G<0||G>=i))for(j=w[G],B=D[y],b=0;b<A;b++)q=N+b,q>=0&&q<a&&(j[q]|=B[b])}}return w}function O(e,t){var r={};r.number=(0,n.readUint32)(e,t);var a=e[t+4],i=63&a;if(!d[i])throw new s("invalid segment type: "+i);r.type=i,r.typeName=d[i],r.deferredNonRetain=!!(128&a);var o=!!(64&a),l=e[t+5],c=l>>5&7,u=[31&l],h=t+6;if(7===l){c=536870911&(0,n.readUint32)(e,h-1),h+=3;var f=c+7>>3;u[0]=e[h++];while(--f>0)u.push(e[h++])}else if(5===l||6===l)throw new s("invalid referred-to flags");r.retainBits=u;var p=4;r.number<=256?p=1:r.number<=65536&&(p=2);var v,g,m=[];for(v=0;v<c;v++){var y=void 0;y=1===p?e[h]:2===p?(0,n.readUint16)(e,h):(0,n.readUint32)(e,h),m.push(y),h+=p}if(r.referredTo=m,o?(r.pageAssociation=(0,n.readUint32)(e,h),h+=4):r.pageAssociation=e[h++],r.length=(0,n.readUint32)(e,h),h+=4,4294967295===r.length){if(38!==i)throw new s("invalid unknown segment length");var b=E(e,h),k=e[h+M],w=!!(1&k),_=6,S=new Uint8Array(_);for(w||(S[0]=255,S[1]=172),S[2]=b.height>>>24&255,S[3]=b.height>>16&255,S[4]=b.height>>8&255,S[5]=255&b.height,v=h,g=e.length;v<g;v++){var x=0;while(x<_&&S[x]===e[v+x])x++;if(x===_){r.length=v+_;break}}if(4294967295===r.length)throw new s("segment end was not found")}return r.headerEnd=h,r}function I(e,t,r,a){var n=[],i=r;while(i<a){var o=O(t,i);i=o.headerEnd;var s={header:o,data:t};if(e.randomAccess||(s.start=i,i+=o.length,s.end=i),n.push(s),51===o.type)break}if(e.randomAccess)for(var l=0,c=n.length;l<c;l++)n[l].start=i,i+=n[l].header.length,n[l].end=i;return n}function E(e,t){return{width:(0,n.readUint32)(e,t),height:(0,n.readUint32)(e,t+4),x:(0,n.readUint32)(e,t+8),y:(0,n.readUint32)(e,t+12),combinationOperator:7&e[t+16]}}var M=17;function R(e,t){var r,a,i,o,l=e.header,c=e.data,u=e.end,h=e.start;switch(l.type){case 0:var d={},f=(0,n.readUint16)(c,h);if(d.huffman=!!(1&f),d.refinement=!!(2&f),d.huffmanDHSelector=f>>2&3,d.huffmanDWSelector=f>>4&3,d.bitmapSizeSelector=f>>6&1,d.aggregationInstancesSelector=f>>7&1,d.bitmapCodingContextUsed=!!(256&f),d.bitmapCodingContextRetained=!!(512&f),d.template=f>>10&3,d.refinementTemplate=f>>12&1,h+=2,!d.huffman){for(o=0===d.template?4:1,a=[],i=0;i<o;i++)a.push({x:(0,n.readInt8)(c,h),y:(0,n.readInt8)(c,h+1)}),h+=2;d.at=a}if(d.refinement&&!d.refinementTemplate){for(a=[],i=0;i<2;i++)a.push({x:(0,n.readInt8)(c,h),y:(0,n.readInt8)(c,h+1)}),h+=2;d.refinementAt=a}d.numberOfExportedSymbols=(0,n.readUint32)(c,h),h+=4,d.numberOfNewSymbols=(0,n.readUint32)(c,h),h+=4,r=[d,l.number,l.referredTo,c,h,u];break;case 6:case 7:var p={};p.info=E(c,h),h+=M;var v=(0,n.readUint16)(c,h);if(h+=2,p.huffman=!!(1&v),p.refinement=!!(2&v),p.logStripSize=v>>2&3,p.stripSize=1<<p.logStripSize,p.referenceCorner=v>>4&3,p.transposed=!!(64&v),p.combinationOperator=v>>7&3,p.defaultPixelValue=v>>9&1,p.dsOffset=v<<17>>27,p.refinementTemplate=v>>15&1,p.huffman){var g=(0,n.readUint16)(c,h);h+=2,p.huffmanFS=3&g,p.huffmanDS=g>>2&3,p.huffmanDT=g>>4&3,p.huffmanRefinementDW=g>>6&3,p.huffmanRefinementDH=g>>8&3,p.huffmanRefinementDX=g>>10&3,p.huffmanRefinementDY=g>>12&3,p.huffmanRefinementSizeSelector=!!(16384&g)}if(p.refinement&&!p.refinementTemplate){for(a=[],i=0;i<2;i++)a.push({x:(0,n.readInt8)(c,h),y:(0,n.readInt8)(c,h+1)}),h+=2;p.refinementAt=a}p.numberOfSymbolInstances=(0,n.readUint32)(c,h),h+=4,r=[p,l.referredTo,c,h,u];break;case 16:var m={},y=c[h++];m.mmr=!!(1&y),m.template=y>>1&3,m.patternWidth=c[h++],m.patternHeight=c[h++],m.maxPatternIndex=(0,n.readUint32)(c,h),h+=4,r=[m,l.number,c,h,u];break;case 22:case 23:var b={};b.info=E(c,h),h+=M;var k=c[h++];b.mmr=!!(1&k),b.template=k>>1&3,b.enableSkip=!!(8&k),b.combinationOperator=k>>4&7,b.defaultPixelValue=k>>7&1,b.gridWidth=(0,n.readUint32)(c,h),h+=4,b.gridHeight=(0,n.readUint32)(c,h),h+=4,b.gridOffsetX=4294967295&(0,n.readUint32)(c,h),h+=4,b.gridOffsetY=4294967295&(0,n.readUint32)(c,h),h+=4,b.gridVectorX=(0,n.readUint16)(c,h),h+=2,b.gridVectorY=(0,n.readUint16)(c,h),h+=2,r=[b,l.referredTo,c,h,u];break;case 38:case 39:var w={};w.info=E(c,h),h+=M;var _=c[h++];if(w.mmr=!!(1&_),w.template=_>>1&3,w.prediction=!!(8&_),!w.mmr){for(o=0===w.template?4:1,a=[],i=0;i<o;i++)a.push({x:(0,n.readInt8)(c,h),y:(0,n.readInt8)(c,h+1)}),h+=2;w.at=a}r=[w,c,h,u];break;case 48:var S={width:(0,n.readUint32)(c,h),height:(0,n.readUint32)(c,h+4),resolutionX:(0,n.readUint32)(c,h+8),resolutionY:(0,n.readUint32)(c,h+12)};4294967295===S.height&&delete S.height;var x=c[h+16];(0,n.readUint16)(c,h+17),S.lossless=!!(1&x),S.refinement=!!(2&x),S.defaultPixelValue=x>>2&1,S.combinationOperator=x>>3&3,S.requiresBuffer=!!(32&x),S.combinationOperatorOverride=!!(64&x),r=[S];break;case 49:break;case 50:break;case 51:break;case 53:r=[l.number,c,h,u];break;case 62:break;default:throw new s("segment type ".concat(l.typeName,"(").concat(l.type,") is not implemented"))}var A="on"+l.typeName;A in t&&t[A].apply(t,r)}function D(e,t){for(var r=0,a=e.length;r<a;r++)R(e[r],t)}function N(e){for(var t=new L,r=0,a=e.length;r<a;r++){var n=e[r],i=I({},n.data,n.start,n.end);D(i,t)}return t.buffer}var L=function(){function e(){_(this,e)}return S(e,[{key:"onPageInformation",value:function(e){this.currentPageInfo=e;var t=e.width+7>>3,r=new Uint8ClampedArray(t*e.height);e.defaultPixelValue&&r.fill(255),this.buffer=r}},{key:"drawBitmap",value:function(e,t){var r,a,n,i,o=this.currentPageInfo,l=e.width,c=e.height,u=o.width+7>>3,h=o.combinationOperatorOverride?e.combinationOperator:o.combinationOperator,d=this.buffer,f=128>>(7&e.x),p=e.y*u+(e.x>>3);switch(h){case 0:for(r=0;r<c;r++){for(n=f,i=p,a=0;a<l;a++)t[r][a]&&(d[i]|=n),n>>=1,n||(n=128,i++);p+=u}break;case 2:for(r=0;r<c;r++){for(n=f,i=p,a=0;a<l;a++)t[r][a]&&(d[i]^=n),n>>=1,n||(n=128,i++);p+=u}break;default:throw new s("operator ".concat(h," is not supported"))}}},{key:"onImmediateGenericRegion",value:function(e,t,r,a){var n=e.info,i=new c(t,r,a),o=x(e.mmr,n.width,n.height,e.template,e.prediction,null,e.at,i);this.drawBitmap(n,o)}},{key:"onImmediateLosslessGenericRegion",value:function(){this.onImmediateGenericRegion.apply(this,arguments)}},{key:"onSymbolDictionary",value:function(e,t,r,a,n,i){var o,s;e.huffman&&(o=W(e,r,this.customTables),s=new X(a,n,i));var l=this.symbols;l||(this.symbols=l={});var u,h=[],d=b(r);try{for(d.s();!(u=d.n()).done;){var f=u.value,v=l[f];v&&h.push.apply(h,p(v))}}catch(m){d.e(m)}finally{d.f()}var g=new c(a,n,i);l[t]=C(e.huffman,e.refinement,h,e.numberOfNewSymbols,e.numberOfExportedSymbols,o,e.template,e.at,e.refinementTemplate,e.refinementAt,g,s)}},{key:"onImmediateTextRegion",value:function(e,t,r,a,i){var o,s,l,u=e.info,h=this.symbols,d=[],f=b(t);try{for(f.s();!(l=f.n()).done;){var v=l.value,g=h[v];g&&d.push.apply(d,p(g))}}catch(w){f.e(w)}finally{f.f()}var m=(0,n.log2)(d.length);e.huffman&&(s=new X(r,a,i),o=z(e,t,this.customTables,d.length,s));var y=new c(r,a,i),k=F(e.huffman,e.refinement,u.width,u.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,d,m,e.transposed,e.dsOffset,e.referenceCorner,e.combinationOperator,o,e.refinementTemplate,e.refinementAt,y,e.logStripSize,s);this.drawBitmap(u,k)}},{key:"onImmediateLosslessTextRegion",value:function(){this.onImmediateTextRegion.apply(this,arguments)}},{key:"onPatternDictionary",value:function(e,t,r,a,n){var i=this.patterns;i||(this.patterns=i={});var o=new c(r,a,n);i[t]=P(e.mmr,e.patternWidth,e.patternHeight,e.maxPatternIndex,e.template,o)}},{key:"onImmediateHalftoneRegion",value:function(e,t,r,a,n){var i=this.patterns[t[0]],o=e.info,s=new c(r,a,n),l=T(e.mmr,i,e.template,o.width,o.height,e.defaultPixelValue,e.enableSkip,e.combinationOperator,e.gridWidth,e.gridHeight,e.gridOffsetX,e.gridOffsetY,e.gridVectorX,e.gridVectorY,s);this.drawBitmap(o,l)}},{key:"onImmediateLosslessHalftoneRegion",value:function(){this.onImmediateHalftoneRegion.apply(this,arguments)}},{key:"onTables",value:function(e,t,r,a){var n=this.customTables;n||(this.customTables=n={}),n[e]=q(t,r,a)}}]),e}(),B=S((function e(t){_(this,e),2===t.length?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=t[0],this.rangeLength=0,this.prefixCode=t[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=t[0],this.prefixLength=t[1],this.rangeLength=t[2],this.prefixCode=t[3],this.isLowerRange="lower"===t[4])})),j=function(){function e(t){_(this,e),this.children=[],t?(this.isLeaf=!0,this.rangeLength=t.rangeLength,this.rangeLow=t.rangeLow,this.isLowerRange=t.isLowerRange,this.isOOB=t.isOOB):this.isLeaf=!1}return S(e,[{key:"buildTree",value:function(t,r){var a=t.prefixCode>>r&1;if(r<=0)this.children[a]=new e(t);else{var n=this.children[a];n||(this.children[a]=n=new e(null)),n.buildTree(t,r-1)}}},{key:"decodeNode",value:function(e){if(this.isLeaf){if(this.isOOB)return null;var t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}var r=this.children[e.readBit()];if(!r)throw new s("invalid Huffman data");return r.decodeNode(e)}}]),e}(),U=function(){function e(t,r){_(this,e),r||this.assignPrefixCodes(t),this.rootNode=new j(null);for(var a=0,n=t.length;a<n;a++){var i=t[a];i.prefixLength>0&&this.rootNode.buildTree(i,i.prefixLength-1)}}return S(e,[{key:"decode",value:function(e){return this.rootNode.decodeNode(e)}},{key:"assignPrefixCodes",value:function(e){for(var t=e.length,r=0,a=0;a<t;a++)r=Math.max(r,e[a].prefixLength);for(var n=new Uint32Array(r+1),i=0;i<t;i++)n[e[i].prefixLength]++;var o,s,l,c=1,u=0;n[0]=0;while(c<=r){u=u+n[c-1]<<1,o=u,s=0;while(s<t)l=e[s],l.prefixLength===c&&(l.prefixCode=o,o++),s++;c++}}}]),e}();function q(e,t,r){var a,i,o=e[t],s=4294967295&(0,n.readUint32)(e,t+1),l=4294967295&(0,n.readUint32)(e,t+5),c=new X(e,t+9,r),u=1+(o>>1&7),h=1+(o>>4&7),d=[],f=s;do{a=c.readBits(u),i=c.readBits(h),d.push(new B([f,a,i,0])),f+=1<<i}while(f<l);return a=c.readBits(u),d.push(new B([s-1,a,32,0,"lower"])),a=c.readBits(u),d.push(new B([l,a,32,0])),1&o&&(a=c.readBits(u),d.push(new B([a,0]))),new U(d,!1)}var G={};function H(e){var t,r=G[e];if(r)return r;switch(e){case 1:t=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:t=[[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:t=[[-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:t=[[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:t=[[-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:t=[[-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:t=[[-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:t=[[-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:t=[[-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:t=[[-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:t=[[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:t=[[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:t=[[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:t=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:t=[[-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 s("standard table B.".concat(e," does not exist"))}for(var a=0,n=t.length;a<n;a++)t[a]=new B(t[a]);return r=new U(t,!0),G[e]=r,r}var X=function(){function e(t,r,a){_(this,e),this.data=t,this.start=r,this.end=a,this.position=r,this.shift=-1,this.currentByte=0}return S(e,[{key:"readBit",value:function(){if(this.shift<0){if(this.position>=this.end)throw new s("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}var e=this.currentByte>>this.shift&1;return this.shift--,e}},{key:"readBits",value:function(e){var t,r=0;for(t=e-1;t>=0;t--)r|=this.readBit()<<t;return r}},{key:"byteAlign",value:function(){this.shift=-1}},{key:"next",value:function(){return this.position>=this.end?-1:this.data[this.position++]}}]),e}();function $(e,t,r){for(var a=0,n=0,i=t.length;n<i;n++){var o=r[t[n]];if(o){if(e===a)return o;a++}}throw new s("can't find custom Huffman table")}function z(e,t,r,a,n){for(var i=[],o=0;o<=34;o++){var l=n.readBits(4);i.push(new B([o,l,0,0]))}var c=new U(i,!1);i.length=0;for(var u=0;u<a;){var h=c.decode(n);if(h>=32){var d=void 0,f=void 0,p=void 0;switch(h){case 32:if(0===u)throw new s("no previous value in symbol ID table");f=n.readBits(2)+3,d=i[u-1].prefixLength;break;case 33:f=n.readBits(3)+3,d=0;break;case 34:f=n.readBits(7)+11,d=0;break;default:throw new s("invalid code length in symbol ID table")}for(p=0;p<f;p++)i.push(new B([u,d,0,0])),u++}else i.push(new B([u,h,0,0])),u++}n.byteAlign();var v,g,m,y=new U(i,!1),b=0;switch(e.huffmanFS){case 0:case 1:v=H(e.huffmanFS+6);break;case 3:v=$(b,t,r),b++;break;default:throw new s("invalid Huffman FS selector")}switch(e.huffmanDS){case 0:case 1:case 2:g=H(e.huffmanDS+8);break;case 3:g=$(b,t,r),b++;break;default:throw new s("invalid Huffman DS selector")}switch(e.huffmanDT){case 0:case 1:case 2:m=H(e.huffmanDT+11);break;case 3:m=$(b,t,r),b++;break;default:throw new s("invalid Huffman DT selector")}if(e.refinement)throw new s("refinement with Huffman is not supported");return{symbolIDTable:y,tableFirstS:v,tableDeltaS:g,tableDeltaT:m}}function W(e,t,r){var a,n,i,o,l=0;switch(e.huffmanDHSelector){case 0:case 1:a=H(e.huffmanDHSelector+4);break;case 3:a=$(l,t,r),l++;break;default:throw new s("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:n=H(e.huffmanDWSelector+2);break;case 3:n=$(l,t,r),l++;break;default:throw new s("invalid Huffman DW selector")}return e.bitmapSizeSelector?(i=$(l,t,r),l++):i=H(1),o=e.aggregationInstancesSelector?$(l,t,r):H(1),{tableDeltaHeight:a,tableDeltaWidth:n,tableBitmapSize:i,tableAggregateInstances:o}}function V(e,t,r){for(var a=[],n=0;n<r;n++){var i=new Uint8Array(t);a.push(i);for(var o=0;o<t;o++)i[o]=e.readBit();e.byteAlign()}return a}function Y(e,t,r,a){for(var n,i={K:-1,Columns:t,Rows:r,BlackIs1:!0,EndOfBlock:a},s=new o.CCITTFaxDecoder(e,i),l=[],c=!1,u=0;u<r;u++){var h=new Uint8Array(t);l.push(h);for(var d=-1,f=0;f<t;f++)d<0&&(n=s.readNextChar(),-1===n&&(n=0,c=!0),d=7),h[f]=n>>d&1,d--}if(a&&!c)for(var p=5,v=0;v<p;v++)if(-1===s.readNextChar())break;return l}var K=function(){function e(){_(this,e)}return S(e,[{key:"parseChunks",value:function(e){return N(e)}},{key:"parse",value:function(e){throw new Error("Not implemented: Jbig2Image.parse")}}]),e}();t.Jbig2Image=K},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArithmeticDecoder=void 0;var r=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}],a=function(){function e(t,r,a){_(this,e),this.data=t,this.bp=r,this.dataEnd=a,this.chigh=t[r],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}return S(e,[{key:"byteIn",value:function(){var e=this.data,t=this.bp;255===e[t]?e[t+1]>143?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t):(t++,this.clow+=t<this.dataEnd?e[t]<<8:65280,this.ct=8,this.bp=t),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}},{key:"readBit",value:function(e,t){var a,n=e[t]>>1,i=1&e[t],o=r[n],s=o.qe,l=this.a-s;if(this.chigh<s)l<s?(l=s,a=i,n=o.nmps):(l=s,a=1^i,1===o.switchFlag&&(i=a),n=o.nlps);else{if(this.chigh-=s,0!==(32768&l))return this.a=l,i;l<s?(a=1^i,1===o.switchFlag&&(i=a),n=o.nlps):(a=i,n=o.nmps)}do{0===this.ct&&this.byteIn(),l<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--}while(0===(32768&l));return this.a=l,e[t]=n<<1|i,a}}]),e}();t.ArithmeticDecoder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegStream=void 0;var a=r(144),n=r(130),i=r(153),o=r(2),s=function(e){v(r,e);var t=g(r);function r(e,a,n){var i,o;_(this,r);while(-1!==(o=e.getByte()))if(255===o){e.skip(-1);break}return i=t.call(this,a),i.stream=e,i.dict=e.dict,i.maybeLength=a,i.params=n,i}return S(r,[{key:"bytes",get:function(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}},{key:"ensureBuffer",value:function(e){}},{key:"readBlock",value:function(){if(!this.eof){var e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray("D","Decode");if(this.forceRGB&&Array.isArray(t)){for(var r=this.dict.get("BPC","BitsPerComponent")||8,a=t.length,o=new Int32Array(a),s=!1,l=(1<<r)-1,c=0;c<a;c+=2)o[c]=256*(t[c+1]-t[c])|0,o[c+1]=t[c]*l|0,256===o[c]&&0===o[c+1]||(s=!0);s&&(e.decodeTransform=o)}if(this.params instanceof n.Dict){var u=this.params.get("ColorTransform");Number.isInteger(u)&&(e.colorTransform=u)}var h=new i.JpegImage(e);h.parse(this.bytes);var d=h.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=d,this.bufferLength=d.length,this.eof=!0}}}]),r}(a.DecodeStream);t.JpegStream=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegImage=void 0;var a=r(2),n=r(131),i=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,"JPEG error: ".concat(e),"JpegError")}return S(r)}(a.BaseException),o=function(e){v(r,e);var t=g(r);function r(e,a){var n;return _(this,r),n=t.call(this,e,"DNLMarkerError"),n.scanLines=a,n}return S(r)}(a.BaseException),s=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,e,"EOIMarkerError")}return S(r)}(a.BaseException),l=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]),c=4017,u=799,h=3406,d=2276,f=1567,p=3784,m=5793,y=2896;function b(e,t){var r,a,n=0,i=16;while(i>0&&!e[i-1])i--;var o,s=[{children:[],index:0}],l=s[0];for(r=0;r<i;r++){for(a=0;a<e[r];a++){l=s.pop(),l.children[l.index]=t[n];while(l.index>0)l=s.pop();l.index++,s.push(l);while(s.length<=r)s.push(o={children:[],index:0}),l.children[l.index]=o.children,l=o;n++}r+1<i&&(s.push(o={children:[],index:0}),l.children[l.index]=o.children,l=o)}return s[0].children}function k(e,t,r){return 64*((e.blocksPerLine+1)*t+r)}function w(e,t,r,c,u,h,d,f,p){var v=arguments.length>9&&void 0!==arguments[9]&&arguments[9],g=r.mcusPerLine,m=r.progressive,y=t,b=0,w=0;function _(){if(w>0)return w--,b>>w&1;if(b=e[t++],255===b){var a=e[t++];if(a){if(220===a&&v){t+=2;var l=(0,n.readUint16)(e,t);if(t+=2,l>0&&l!==r.scanLines)throw new o("Found DNL marker (0xFFDC) while parsing scan data",l)}else if(217===a){if(v){var c=N*(8===r.precision?8:0);if(c>0&&Math.round(r.scanLines/c)>=10)throw new o("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",c)}throw new s("Found EOI marker (0xFFD9) while parsing scan data")}throw new i("unexpected marker ".concat((b<<8|a).toString(16)))}}return w=7,b>>>7}function S(e){var t=e;while(1){switch(t=t[_()],x(t)){case"number":return t;case"object":continue}throw new i("invalid huffman sequence")}}function A(e){var t=0;while(e>0)t=t<<1|_(),e--;return t}function C(e){if(1===e)return 1===_()?1:-1;var t=A(e);return t>=1<<e-1?t:t+(-1<<e)+1}function P(e,t){var r=S(e.huffmanTableDC),a=0===r?0:C(r);e.blockData[t]=e.pred+=a;var n=1;while(n<64){var i=S(e.huffmanTableAC),o=15&i,s=i>>4;if(0!==o){n+=s;var c=l[n];e.blockData[t+c]=C(o),n++}else{if(s<15)break;n+=16}}}function T(e,t){var r=S(e.huffmanTableDC),a=0===r?0:C(r)<<p;e.blockData[t]=e.pred+=a}function O(e,t){e.blockData[t]|=_()<<p}var I=0;function E(e,t){if(I>0)I--;else{var r=h,a=d;while(r<=a){var n=S(e.huffmanTableAC),i=15&n,o=n>>4;if(0!==i){r+=o;var s=l[r];e.blockData[t+s]=C(i)*(1<<p),r++}else{if(o<15){I=A(o)+(1<<o)-1;break}r+=16}}}}var M,R=0;function D(e,t){var r,a,n=h,o=d,s=0;while(n<=o){var c=t+l[n],u=e.blockData[c]<0?-1:1;switch(R){case 0:if(a=S(e.huffmanTableAC),r=15&a,s=a>>4,0===r)s<15?(I=A(s)+(1<<s),R=4):(s=16,R=1);else{if(1!==r)throw new i("invalid ACn encoding");M=C(r),R=s?2:3}continue;case 1:case 2:e.blockData[c]?e.blockData[c]+=u*(_()<<p):(s--,0===s&&(R=2===R?3:0));break;case 3:e.blockData[c]?e.blockData[c]+=u*(_()<<p):(e.blockData[c]=M<<p,R=0);break;case 4:e.blockData[c]&&(e.blockData[c]+=u*(_()<<p));break}n++}4===R&&(I--,0===I&&(R=0))}var N=0;function L(e,t,r,a,n){var i=r/g|0,o=r%g;N=i*e.v+a;var s=o*e.h+n,l=k(e,N,s);t(e,l)}function B(e,t,r){N=r/e.blocksPerLine|0;var a=r%e.blocksPerLine,n=k(e,N,a);t(e,n)}var j,U,q,G,H,X,$=c.length;X=m?0===h?0===f?T:O:0===f?E:D:P;var z,W,V,Y,K=0;W=1===$?c[0].blocksPerLine*c[0].blocksPerColumn:g*r.mcusPerColumn;while(K<=W){var J=u?Math.min(W-K,u):W;if(J>0){for(U=0;U<$;U++)c[U].pred=0;if(I=0,1===$)for(j=c[0],H=0;H<J;H++)B(j,X,K),K++;else for(H=0;H<J;H++){for(U=0;U<$;U++)for(j=c[U],V=j.h,Y=j.v,q=0;q<Y;q++)for(G=0;G<V;G++)L(j,X,K,q,G);K++}}if(w=0,z=F(e,t),!z)break;if(z.invalid){var Z=J>0?"unexpected":"excessive";(0,a.warn)("decodeScan - ".concat(Z," MCU data, current marker is: ").concat(z.invalid)),t=z.offset}if(!(z.marker>=65488&&z.marker<=65495))break;t+=2}return t-y}function A(e,t,r){var a,n,o,s,l,v,g,b,k,w,_,S,x,A,C,F,P,T=e.quantizationTable,O=e.blockData;if(!T)throw new i("missing required Quantization Table.");for(var I=0;I<64;I+=8)k=O[t+I],w=O[t+I+1],_=O[t+I+2],S=O[t+I+3],x=O[t+I+4],A=O[t+I+5],C=O[t+I+6],F=O[t+I+7],k*=T[I],0!==(w|_|S|x|A|C|F)?(w*=T[I+1],_*=T[I+2],S*=T[I+3],x*=T[I+4],A*=T[I+5],C*=T[I+6],F*=T[I+7],a=m*k+128>>8,n=m*x+128>>8,o=_,s=C,l=y*(w-F)+128>>8,b=y*(w+F)+128>>8,v=S<<4,g=A<<4,a=a+n+1>>1,n=a-n,P=o*p+s*f+128>>8,o=o*f-s*p+128>>8,s=P,l=l+g+1>>1,g=l-g,b=b+v+1>>1,v=b-v,a=a+s+1>>1,s=a-s,n=n+o+1>>1,o=n-o,P=l*d+b*h+2048>>12,l=l*h-b*d+2048>>12,b=P,P=v*u+g*c+2048>>12,v=v*c-g*u+2048>>12,g=P,r[I]=a+b,r[I+7]=a-b,r[I+1]=n+g,r[I+6]=n-g,r[I+2]=o+v,r[I+5]=o-v,r[I+3]=s+l,r[I+4]=s-l):(P=m*k+512>>10,r[I]=P,r[I+1]=P,r[I+2]=P,r[I+3]=P,r[I+4]=P,r[I+5]=P,r[I+6]=P,r[I+7]=P);for(var E=0;E<8;++E)k=r[E],w=r[E+8],_=r[E+16],S=r[E+24],x=r[E+32],A=r[E+40],C=r[E+48],F=r[E+56],0!==(w|_|S|x|A|C|F)?(a=m*k+2048>>12,n=m*x+2048>>12,o=_,s=C,l=y*(w-F)+2048>>12,b=y*(w+F)+2048>>12,v=S,g=A,a=4112+(a+n+1>>1),n=a-n,P=o*p+s*f+2048>>12,o=o*f-s*p+2048>>12,s=P,l=l+g+1>>1,g=l-g,b=b+v+1>>1,v=b-v,a=a+s+1>>1,s=a-s,n=n+o+1>>1,o=n-o,P=l*d+b*h+2048>>12,l=l*h-b*d+2048>>12,b=P,P=v*u+g*c+2048>>12,v=v*c-g*u+2048>>12,g=P,k=a+b,F=a-b,w=n+g,C=n-g,_=o+v,A=o-v,S=s+l,x=s-l,k<16?k=0:k>=4080?k=255:k>>=4,w<16?w=0:w>=4080?w=255:w>>=4,_<16?_=0:_>=4080?_=255:_>>=4,S<16?S=0:S>=4080?S=255:S>>=4,x<16?x=0:x>=4080?x=255:x>>=4,A<16?A=0:A>=4080?A=255:A>>=4,C<16?C=0:C>=4080?C=255:C>>=4,F<16?F=0:F>=4080?F=255:F>>=4,O[t+E]=k,O[t+E+8]=w,O[t+E+16]=_,O[t+E+24]=S,O[t+E+32]=x,O[t+E+40]=A,O[t+E+48]=C,O[t+E+56]=F):(P=m*k+8192>>14,P=P<-2040?0:P>=2024?255:P+2056>>4,O[t+E]=P,O[t+E+8]=P,O[t+E+16]=P,O[t+E+24]=P,O[t+E+32]=P,O[t+E+40]=P,O[t+E+48]=P,O[t+E+56]=P)}function C(e,t){for(var r=t.blocksPerLine,a=t.blocksPerColumn,n=new Int16Array(64),i=0;i<a;i++)for(var o=0;o<r;o++){var s=k(t,i,o);A(t,s,n)}return t.blockData}function F(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,a=e.length-1,i=r<t?r:t;if(t>=a)return null;var o=(0,n.readUint16)(e,t);if(o>=65472&&o<=65534)return{invalid:null,marker:o,offset:t};var s=(0,n.readUint16)(e,i);while(!(s>=65472&&s<=65534)){if(++i>=a)return null;s=(0,n.readUint16)(e,i)}return{invalid:o.toString(16),marker:s,offset:i}}var P=function(){function e(){_(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.decodeTransform,a=void 0===r?null:r,n=t.colorTransform,i=void 0===n?-1:n;this._decodeTransform=a,this._colorTransform=i}return S(e,[{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.dnlScanLines,c=void 0===r?null:r;function u(){var t=(0,n.readUint16)(e,p);p+=2;var r=p+t-2,i=F(e,r,p);i&&i.invalid&&((0,a.warn)("readDataBlock - incorrect length, current marker is: "+i.invalid),r=i.offset);var o=e.subarray(p,r);return p+=o.length,o}function h(e){for(var t=Math.ceil(e.samplesPerLine/8/e.maxH),r=Math.ceil(e.scanLines/8/e.maxV),a=0,n=e.components.length;a<n;a++){var i=e.components[a],o=Math.ceil(Math.ceil(e.samplesPerLine/8)*i.h/e.maxH),s=Math.ceil(Math.ceil(e.scanLines/8)*i.v/e.maxV),l=t*i.h,c=r*i.v,u=64*c*(l+1);i.blockData=new Int16Array(u),i.blocksPerLine=o,i.blocksPerColumn=s}e.mcusPerLine=t,e.mcusPerColumn=r}var d,f,p=0,v=null,g=null,m=0,y=[],k=[],_=[],S=(0,n.readUint16)(e,p);if(p+=2,65496!==S)throw new i("SOI not found");S=(0,n.readUint16)(e,p),p+=2;e:while(65497!==S){var x=void 0,A=void 0,P=void 0;switch(S){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var T=u();65504===S&&74===T[0]&&70===T[1]&&73===T[2]&&70===T[3]&&0===T[4]&&(v={version:{major:T[5],minor:T[6]},densityUnits:T[7],xDensity:T[8]<<8|T[9],yDensity:T[10]<<8|T[11],thumbWidth:T[12],thumbHeight:T[13],thumbData:T.subarray(14,14+3*T[12]*T[13])}),65518===S&&65===T[0]&&100===T[1]&&111===T[2]&&98===T[3]&&101===T[4]&&(g={version:T[5]<<8|T[6],flags0:T[7]<<8|T[8],flags1:T[9]<<8|T[10],transformCode:T[11]});break;case 65499:var O=(0,n.readUint16)(e,p);p+=2;var I=O+p-2,E=void 0;while(p<I){var M=e[p++],R=new Uint16Array(64);if(M>>4===0)for(A=0;A<64;A++)E=l[A],R[E]=e[p++];else{if(M>>4!==1)throw new i("DQT - invalid table spec");for(A=0;A<64;A++)E=l[A],R[E]=(0,n.readUint16)(e,p),p+=2}y[15&M]=R}break;case 65472:case 65473:case 65474:if(d)throw new i("Only single frame JPEGs supported");p+=2,d={},d.extended=65473===S,d.progressive=65474===S,d.precision=e[p++];var D=(0,n.readUint16)(e,p);p+=2,d.scanLines=c||D,d.samplesPerLine=(0,n.readUint16)(e,p),p+=2,d.components=[],d.componentIds={};var N=e[p++],L=0,B=0;for(x=0;x<N;x++){var j=e[p],U=e[p+1]>>4,q=15&e[p+1];L<U&&(L=U),B<q&&(B=q);var G=e[p+2];P=d.components.push({h:U,v:q,quantizationId:G,quantizationTable:null}),d.componentIds[j]=P-1,p+=3}d.maxH=L,d.maxV=B,h(d);break;case 65476:var H=(0,n.readUint16)(e,p);for(p+=2,x=2;x<H;){var X=e[p++],$=new Uint8Array(16),z=0;for(A=0;A<16;A++,p++)z+=$[A]=e[p];var W=new Uint8Array(z);for(A=0;A<z;A++,p++)W[A]=e[p];x+=17+z,(X>>4===0?_:k)[15&X]=b($,W)}break;case 65501:p+=2,f=(0,n.readUint16)(e,p),p+=2;break;case 65498:var V=1===++m&&!c;p+=2;var Y=e[p++],K=[];for(x=0;x<Y;x++){var J=e[p++],Z=d.componentIds[J],Q=d.components[Z];Q.index=J;var ee=e[p++];Q.huffmanTableDC=_[ee>>4],Q.huffmanTableAC=k[15&ee],K.push(Q)}var te=e[p++],re=e[p++],ae=e[p++];try{var ne=w(e,p,d,K,f,te,re,ae>>4,15&ae,V);p+=ne}catch(ue){if(ue instanceof o)return(0,a.warn)("".concat(ue.message," -- attempting to re-parse the JPEG image.")),this.parse(e,{dnlScanLines:ue.scanLines});if(ue instanceof s){(0,a.warn)("".concat(ue.message," -- ignoring the rest of the image data."));break e}throw ue}break;case 65500:p+=4;break;case 65535:255!==e[p]&&p--;break;default:var ie=F(e,p-2,p-3);if(ie&&ie.invalid){(0,a.warn)("JpegImage.parse - unexpected data, current marker is: "+ie.invalid),p=ie.offset;break}if(!ie||p>=e.length-1){(0,a.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new i("JpegImage.parse - unknown marker: "+S.toString(16))}S=(0,n.readUint16)(e,p),p+=2}this.width=d.samplesPerLine,this.height=d.scanLines,this.jfif=v,this.adobe=g,this.components=[];for(var oe=0,se=d.components.length;oe<se;oe++){var le=d.components[oe],ce=y[le.quantizationId];ce&&(le.quantizationTable=ce),this.components.push({index:le.index,output:C(d,le),scaleX:le.h/d.maxH,scaleY:le.v/d.maxV,blocksPerLine:le.blocksPerLine,blocksPerColumn:le.blocksPerColumn})}this.numComponents=this.components.length}},{key:"_getLinearizedBlockData",value:function(e,t){var r,a,n,i,o,s,l,c,u,h,d,f,p=arguments.length>2&&void 0!==arguments[2]&&arguments[2],v=this.width/e,g=this.height/t,m=0,y=this.components.length,b=e*t*y,k=new Uint8ClampedArray(b),w=new Uint32Array(e),_=4294967288;for(l=0;l<y;l++){if(r=this.components[l],a=r.scaleX*v,n=r.scaleY*g,m=l,d=r.output,i=r.blocksPerLine+1<<3,a!==f){for(o=0;o<e;o++)c=0|o*a,w[o]=(c&_)<<3|7&c;f=a}for(s=0;s<t;s++)for(c=0|s*n,h=i*(c&_)|(7&c)<<3,o=0;o<e;o++)k[m]=d[h+w[o]],m+=y}var S=this._decodeTransform;if(p||4!==y||S||(S=new Int32Array([-256,255,-256,255,-256,255,-256,255])),S)for(l=0;l<b;)for(c=0,u=0;c<y;c++,l++,u+=2)k[l]=(k[l]*S[u]>>8)+S[u+1];return k}},{key:"_isColorConversionNeeded",get:function(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform&&(82!==this.components[0].index||71!==this.components[1].index||66!==this.components[2].index):1===this._colorTransform}},{key:"_convertYccToRgb",value:function(e){for(var t,r,a,n=0,i=e.length;n<i;n+=3)t=e[n],r=e[n+1],a=e[n+2],e[n]=t-179.456+1.402*a,e[n+1]=t+135.459-.344*r-.714*a,e[n+2]=t-226.816+1.772*r;return e}},{key:"_convertYcckToRgb",value:function(e){for(var t,r,a,n,i=0,o=0,s=e.length;o<s;o+=4)t=e[o],r=e[o+1],a=e[o+2],n=e[o+3],e[i++]=r*(-660635669420364e-19*r+.000437130475926232*a-54080610064599e-18*t+.00048449797120281*n-.154362151871126)-122.67195406894+a*(-.000957964378445773*a+.000817076911346625*t-.00477271405408747*n+1.53380253221734)+t*(.000961250184130688*t-.00266257332283933*n+.48357088451265)+n*(-.000336197177618394*n+.484791561490776),e[i++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*a+.000659397001245577*t+.000426105652938837*n-.176491792462875)+a*(-.000778269941513683*a+.00130872261408275*t+.000770482631801132*n-.151051492775562)+t*(.00126935368114843*t-.00265090189010898*n+.25802910206845)+n*(-.000318913117588328*n-.213742400323665),e[i++]=r*(-.000570115196973677*r-263409051004589e-19*a+.0020741088115012*t-.00288260236853442*n+.814272968359295)-20.810012546947+a*(-153496057440975e-19*a-.000132689043961446*t+.000560833691242812*n-.195152027534049)+t*(.00174418132927582*t-.00255243321439347*n+.116935020465145)+n*(-.000343531996510555*n+.24165260232407);return e.subarray(0,i)}},{key:"_convertYcckToCmyk",value:function(e){for(var t,r,a,n=0,i=e.length;n<i;n+=4)t=e[n],r=e[n+1],a=e[n+2],e[n]=434.456-t-1.402*a,e[n+1]=119.541-t+.344*r+.714*a,e[n+2]=481.816-t-1.772*r;return e}},{key:"_convertCmykToRgb",value:function(e){for(var t,r,a,n,i=0,o=0,s=e.length;o<s;o+=4)t=e[o],r=e[o+1],a=e[o+2],n=e[o+3],e[i++]=255+t*(-6747147073602441e-20*t+.0008379262121013727*r+.0002894718188643294*a+.003264231057537806*n-1.1185611867203937)+r*(26374107616089405e-21*r-8626949158638572e-20*a-.0002748769067499491*n-.02155688794978967)+a*(-3878099212869363e-20*a-.0003267808279485286*n+.0686742238595345)-n*(.0003361971776183937*n+.7430659151342254),e[i++]=255+t*(.00013596372813588848*t+.000924537132573585*r+.00010567359618683593*a+.0004791864687436512*n-.3109689587515875)+r*(-.00023545346108370344*r+.0002702845253534714*a+.0020200308977307156*n-.7488052167015494)+a*(6834815998235662e-20*a+.00015168452363460973*n-.09751927774728933)-n*(.0003189131175883281*n+.7364883807733168),e[i++]=255+t*(13598650411385307e-21*t+.00012423956175490851*r+.0004751985097583589*a-36729317476630422e-22*n-.05562186980264034)+r*(.00016141380598724676*r+.0009692239130725186*a+.0007782692450036253*n-.44015232367526463)+a*(5.068882914068769e-7*a+.0017778369011375071*n-.7591454649749609)-n*(.0003435319965105553*n+.7063770186160144);return e.subarray(0,i)}},{key:"getData",value:function(e){var t=e.width,r=e.height,a=e.forceRGB,n=void 0!==a&&a,o=e.isSourcePDF,s=void 0!==o&&o;if(this.numComponents>4)throw new i("Unsupported color mode");var l=this._getLinearizedBlockData(t,r,s);if(1===this.numComponents&&n){for(var c=l.length,u=new Uint8ClampedArray(3*c),h=0,d=0;d<c;d++){var f=l[d];u[h++]=f,u[h++]=f,u[h++]=f}return u}if(3===this.numComponents&&this._isColorConversionNeeded)return this._convertYccToRgb(l);if(4===this.numComponents){if(this._isColorConversionNeeded)return n?this._convertYcckToRgb(l):this._convertYcckToCmyk(l);if(n)return this._convertCmykToRgb(l)}return l}}]),e}();t.JpegImage=P},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpxStream=void 0;var a=r(144),n=r(155),i=r(2),o=function(e){v(r,e);var t=g(r);function r(e,a,n){var i;return _(this,r),i=t.call(this,a),i.stream=e,i.dict=e.dict,i.maybeLength=a,i.params=n,i}return S(r,[{key:"bytes",get:function(){return(0,i.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}},{key:"ensureBuffer",value:function(e){}},{key:"readBlock",value:function(){if(!this.eof){var e=new n.JpxImage;e.parse(this.bytes);var t=e.width,r=e.height,a=e.componentsCount,i=e.tiles.length;if(1===i)this.buffer=e.tiles[0].items;else{for(var o=new Uint8ClampedArray(t*r*a),s=0;s<i;s++)for(var l=e.tiles[s],c=l.width,u=l.height,h=l.left,d=l.top,f=l.items,p=0,v=(t*d+h)*a,g=t*a,m=c*a,y=0;y<u;y++){var b=f.subarray(p,p+m);o.set(b,v),p+=m,v+=g}this.buffer=o}this.bufferLength=this.buffer.length,this.eof=!0}}}]),r}(a.DecodeStream);t.JpxStream=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpxImage=void 0;var a=r(2),n=r(131),i=r(151),o=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,"JPX error: ".concat(e),"JpxError")}return S(r)}(a.BaseException),s={LL:0,LH:1,HL:1,HH:2},l=function(){function e(){_(this,e),this.failOnCorruptedImage=!1}return S(e,[{key:"parse",value:function(e){var t=(0,n.readUint16)(e,0);if(65359!==t){var r=e.length,i=0;while(i<r){var s=8,l=(0,n.readUint32)(e,i),c=(0,n.readUint32)(e,i+4);if(i+=s,1===l&&(l=4294967296*(0,n.readUint32)(e,i)+(0,n.readUint32)(e,i+4),i+=8,s+=8),0===l&&(l=r-i+s),l<s)throw new o("Invalid box field size");var u=l-s,h=!0;switch(c){case 1785737832:h=!1;break;case 1668246642:var d=e[i];if(1===d){var f=(0,n.readUint32)(e,i+3);switch(f){case 16:case 17:case 18:break;default:(0,a.warn)("Unknown colorspace "+f);break}}else 2===d&&(0,a.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(e,i,i+u);break;case 1783636e3:218793738!==(0,n.readUint32)(e,i)&&(0,a.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:var p=String.fromCharCode(c>>24&255,c>>16&255,c>>8&255,255&c);(0,a.warn)("Unsupported header type ".concat(c," (").concat(p,")."));break}h&&(i+=u)}}else this.parseCodestream(e,0,e.length)}},{key:"parseImageProperties",value:function(e){var t=e.getByte();while(t>=0){var r=t;t=e.getByte();var a=r<<8|t;if(65361===a){e.skip(4);var n=e.getInt32()>>>0,i=e.getInt32()>>>0,s=e.getInt32()>>>0,l=e.getInt32()>>>0;e.skip(16);var c=e.getUint16();return this.width=n-s,this.height=i-l,this.componentsCount=c,void(this.bitsPerComponent=8)}}throw new o("No size marker found in JPX stream")}},{key:"parseCodestream",value:function(e,t,r){var i={},s=!1;try{var l=t;while(l+1<r){var h=(0,n.readUint16)(e,l);l+=2;var d=0,f=void 0,p=void 0,v=void 0,g=void 0,m=void 0,y=void 0;switch(h){case 65359:i.mainHeader=!0;break;case 65497:break;case 65361:d=(0,n.readUint16)(e,l);var b={};b.Xsiz=(0,n.readUint32)(e,l+4),b.Ysiz=(0,n.readUint32)(e,l+8),b.XOsiz=(0,n.readUint32)(e,l+12),b.YOsiz=(0,n.readUint32)(e,l+16),b.XTsiz=(0,n.readUint32)(e,l+20),b.YTsiz=(0,n.readUint32)(e,l+24),b.XTOsiz=(0,n.readUint32)(e,l+28),b.YTOsiz=(0,n.readUint32)(e,l+32);var k=(0,n.readUint16)(e,l+36);b.Csiz=k;var w=[];f=l+38;for(var _=0;_<k;_++){var S={precision:1+(127&e[f]),isSigned:!!(128&e[f]),XRsiz:e[f+1],YRsiz:e[f+2]};f+=3,c(S,b),w.push(S)}i.SIZ=b,i.components=w,u(i,w),i.QCC=[],i.COC=[];break;case 65372:d=(0,n.readUint16)(e,l);var x={};switch(f=l+2,p=e[f++],31&p){case 0:g=8,m=!0;break;case 1:g=16,m=!1;break;case 2:g=16,m=!0;break;default:throw new Error("Invalid SQcd value "+p)}x.noQuantization=8===g,x.scalarExpounded=m,x.guardBits=p>>5,v=[];while(f<d+l){var A={};8===g?(A.epsilon=e[f++]>>3,A.mu=0):(A.epsilon=e[f]>>3,A.mu=(7&e[f])<<8|e[f+1],f+=2),v.push(A)}x.SPqcds=v,i.mainHeader?i.QCD=x:(i.currentTile.QCD=x,i.currentTile.QCC=[]);break;case 65373:d=(0,n.readUint16)(e,l);var P={};f=l+2;var T=void 0;switch(i.SIZ.Csiz<257?T=e[f++]:(T=(0,n.readUint16)(e,f),f+=2),p=e[f++],31&p){case 0:g=8,m=!0;break;case 1:g=16,m=!1;break;case 2:g=16,m=!0;break;default:throw new Error("Invalid SQcd value "+p)}P.noQuantization=8===g,P.scalarExpounded=m,P.guardBits=p>>5,v=[];while(f<d+l){var E={};8===g?(E.epsilon=e[f++]>>3,E.mu=0):(E.epsilon=e[f]>>3,E.mu=(7&e[f])<<8|e[f+1],f+=2),v.push(E)}P.SPqcds=v,i.mainHeader?i.QCC[T]=P:i.currentTile.QCC[T]=P;break;case 65362:d=(0,n.readUint16)(e,l);var M={};f=l+2;var R=e[f++];M.entropyCoderWithCustomPrecincts=!!(1&R),M.sopMarkerUsed=!!(2&R),M.ephMarkerUsed=!!(4&R),M.progressionOrder=e[f++],M.layersCount=(0,n.readUint16)(e,f),f+=2,M.multipleComponentTransform=e[f++],M.decompositionLevelsCount=e[f++],M.xcb=2+(15&e[f++]),M.ycb=2+(15&e[f++]);var D=e[f++];if(M.selectiveArithmeticCodingBypass=!!(1&D),M.resetContextProbabilities=!!(2&D),M.terminationOnEachCodingPass=!!(4&D),M.verticallyStripe=!!(8&D),M.predictableTermination=!!(16&D),M.segmentationSymbolUsed=!!(32&D),M.reversibleTransformation=e[f++],M.entropyCoderWithCustomPrecincts){var N=[];while(f<d+l){var L=e[f++];N.push({PPx:15&L,PPy:L>>4})}M.precinctsSizes=N}var B=[];M.selectiveArithmeticCodingBypass&&B.push("selectiveArithmeticCodingBypass"),M.terminationOnEachCodingPass&&B.push("terminationOnEachCodingPass"),M.verticallyStripe&&B.push("verticallyStripe"),M.predictableTermination&&B.push("predictableTermination"),B.length>0&&(s=!0,(0,a.warn)("JPX: Unsupported COD options (".concat(B.join(", "),")."))),i.mainHeader?i.COD=M:(i.currentTile.COD=M,i.currentTile.COC=[]);break;case 65424:d=(0,n.readUint16)(e,l),y={},y.index=(0,n.readUint16)(e,l+2),y.length=(0,n.readUint32)(e,l+4),y.dataEnd=y.length+l-2,y.partIndex=e[l+8],y.partsCount=e[l+9],i.mainHeader=!1,0===y.partIndex&&(y.COD=i.COD,y.COC=i.COC.slice(0),y.QCD=i.QCD,y.QCC=i.QCC.slice(0)),i.currentTile=y;break;case 65427:y=i.currentTile,0===y.partIndex&&(I(i,y.index),C(i)),d=y.dataEnd-l,F(i,e,l,d);break;case 65363:(0,a.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:d=(0,n.readUint16)(e,l);break;default:throw new Error("Unknown codestream code: "+h.toString(16))}l+=d}}catch(j){if(s||this.failOnCorruptedImage)throw new o(j.message);(0,a.warn)('JPX: Trying to recover from: "'.concat(j.message,'".'))}this.tiles=O(i),this.width=i.SIZ.Xsiz-i.SIZ.XOsiz,this.height=i.SIZ.Ysiz-i.SIZ.YOsiz,this.componentsCount=i.SIZ.Csiz}}]),e}();function c(e,t){e.x0=Math.ceil(t.XOsiz/e.XRsiz),e.x1=Math.ceil(t.Xsiz/e.XRsiz),e.y0=Math.ceil(t.YOsiz/e.YRsiz),e.y1=Math.ceil(t.Ysiz/e.YRsiz),e.width=e.x1-e.x0,e.height=e.y1-e.y0}function u(e,t){for(var r,a=e.SIZ,n=[],i=Math.ceil((a.Xsiz-a.XTOsiz)/a.XTsiz),o=Math.ceil((a.Ysiz-a.YTOsiz)/a.YTsiz),s=0;s<o;s++)for(var l=0;l<i;l++)r={},r.tx0=Math.max(a.XTOsiz+l*a.XTsiz,a.XOsiz),r.ty0=Math.max(a.YTOsiz+s*a.YTsiz,a.YOsiz),r.tx1=Math.min(a.XTOsiz+(l+1)*a.XTsiz,a.Xsiz),r.ty1=Math.min(a.YTOsiz+(s+1)*a.YTsiz,a.Ysiz),r.width=r.tx1-r.tx0,r.height=r.ty1-r.ty0,r.components=[],n.push(r);e.tiles=n;for(var c=a.Csiz,u=0,h=c;u<h;u++)for(var d=t[u],f=0,p=n.length;f<p;f++){var v={};r=n[f],v.tcx0=Math.ceil(r.tx0/d.XRsiz),v.tcy0=Math.ceil(r.ty0/d.YRsiz),v.tcx1=Math.ceil(r.tx1/d.XRsiz),v.tcy1=Math.ceil(r.ty1/d.YRsiz),v.width=v.tcx1-v.tcx0,v.height=v.tcy1-v.tcy0,r.components[u]=v}}function h(e,t,r){var a=t.codingStyleParameters,n={};return a.entropyCoderWithCustomPrecincts?(n.PPx=a.precinctsSizes[r].PPx,n.PPy=a.precinctsSizes[r].PPy):(n.PPx=15,n.PPy=15),n.xcb_=r>0?Math.min(a.xcb,n.PPx-1):Math.min(a.xcb,n.PPx),n.ycb_=r>0?Math.min(a.ycb,n.PPy-1):Math.min(a.ycb,n.PPy),n}function d(e,t,r){var a=1<<r.PPx,n=1<<r.PPy,i=0===t.resLevel,o=1<<r.PPx+(i?0:-1),s=1<<r.PPy+(i?0:-1),l=t.trx1>t.trx0?Math.ceil(t.trx1/a)-Math.floor(t.trx0/a):0,c=t.try1>t.try0?Math.ceil(t.try1/n)-Math.floor(t.try0/n):0,u=l*c;t.precinctParameters={precinctWidth:a,precinctHeight:n,numprecinctswide:l,numprecinctshigh:c,numprecincts:u,precinctWidthInSubband:o,precinctHeightInSubband:s}}function f(e,t,r){var a,n,i,o,s=r.xcb_,l=r.ycb_,c=1<<s,u=1<<l,h=t.tbx0>>s,d=t.tby0>>l,f=t.tbx1+c-1>>s,p=t.tby1+u-1>>l,v=t.resolution.precinctParameters,g=[],m=[];for(n=d;n<p;n++)for(a=h;a<f;a++){i={cbx:a,cby:n,tbx0:c*a,tby0:u*n,tbx1:c*(a+1),tby1:u*(n+1)},i.tbx0_=Math.max(t.tbx0,i.tbx0),i.tby0_=Math.max(t.tby0,i.tby0),i.tbx1_=Math.min(t.tbx1,i.tbx1),i.tby1_=Math.min(t.tby1,i.tby1);var y=Math.floor((i.tbx0_-t.tbx0)/v.precinctWidthInSubband),b=Math.floor((i.tby0_-t.tby0)/v.precinctHeightInSubband);if(o=y+b*v.numprecinctswide,i.precinctNumber=o,i.subbandType=t.type,i.Lblock=3,!(i.tbx1_<=i.tbx0_||i.tby1_<=i.tby0_)){g.push(i);var k=m[o];void 0!==k?(a<k.cbxMin?k.cbxMin=a:a>k.cbxMax&&(k.cbxMax=a),n<k.cbyMin?k.cbxMin=n:n>k.cbyMax&&(k.cbyMax=n)):m[o]=k={cbxMin:a,cbyMin:n,cbxMax:a,cbyMax:n},i.precinct=k}}t.codeblockParameters={codeblockWidth:s,codeblockHeight:l,numcodeblockwide:f-h+1,numcodeblockhigh:p-d+1},t.codeblocks=g,t.precincts=m}function p(e,t,r){for(var a=[],n=e.subbands,i=0,o=n.length;i<o;i++)for(var s=n[i],l=s.codeblocks,c=0,u=l.length;c<u;c++){var h=l[c];h.precinctNumber===t&&a.push(h)}return{layerNumber:r,codeblocks:a}}function m(e){for(var t=e.SIZ,r=e.currentTile.index,a=e.tiles[r],n=a.codingStyleDefaultParameters.layersCount,i=t.Csiz,s=0,l=0;l<i;l++)s=Math.max(s,a.components[l].codingStyleParameters.decompositionLevelsCount);var c=0,u=0,h=0,d=0;this.nextPacket=function(){for(;c<n;c++){for(;u<=s;u++){for(;h<i;h++){var e=a.components[h];if(!(u>e.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[u],r=t.precinctParameters.numprecincts;d<r;){var l=p(t,d,c);return d++,l}d=0}}h=0}u=0}throw new o("Out of packets")}}function y(e){for(var t=e.SIZ,r=e.currentTile.index,a=e.tiles[r],n=a.codingStyleDefaultParameters.layersCount,i=t.Csiz,s=0,l=0;l<i;l++)s=Math.max(s,a.components[l].codingStyleParameters.decompositionLevelsCount);var c=0,u=0,h=0,d=0;this.nextPacket=function(){for(;c<=s;c++){for(;u<n;u++){for(;h<i;h++){var e=a.components[h];if(!(c>e.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[c],r=t.precinctParameters.numprecincts;d<r;){var l=p(t,d,u);return d++,l}d=0}}h=0}u=0}throw new o("Out of packets")}}function b(e){var t,r,a,n,i=e.SIZ,s=e.currentTile.index,l=e.tiles[s],c=l.codingStyleDefaultParameters.layersCount,u=i.Csiz,h=0;for(a=0;a<u;a++){var d=l.components[a];h=Math.max(h,d.codingStyleParameters.decompositionLevelsCount)}var f=new Int32Array(h+1);for(r=0;r<=h;++r){var v=0;for(a=0;a<u;++a){var g=l.components[a].resolutions;r<g.length&&(v=Math.max(v,g[r].precinctParameters.numprecincts))}f[r]=v}t=0,r=0,a=0,n=0,this.nextPacket=function(){for(;r<=h;r++){for(;n<f[r];n++){for(;a<u;a++){var e=l.components[a];if(!(r>e.codingStyleParameters.decompositionLevelsCount)){var i=e.resolutions[r],s=i.precinctParameters.numprecincts;if(!(n>=s)){for(;t<c;){var d=p(i,n,t);return t++,d}t=0}}}a=0}n=0}throw new o("Out of packets")}}function k(e){var t=e.SIZ,r=e.currentTile.index,a=e.tiles[r],n=a.codingStyleDefaultParameters.layersCount,i=t.Csiz,s=A(a),l=s,c=0,u=0,h=0,d=0,f=0;this.nextPacket=function(){for(;f<l.maxNumHigh;f++){for(;d<l.maxNumWide;d++){for(;h<i;h++){for(var e=a.components[h],t=e.codingStyleParameters.decompositionLevelsCount;u<=t;u++){var r=e.resolutions[u],v=s.components[h].resolutions[u],g=x(d,f,v,l,r);if(null!==g){for(;c<n;){var m=p(r,g,c);return c++,m}c=0}}u=0}h=0}d=0}throw new o("Out of packets")}}function w(e){var t=e.SIZ,r=e.currentTile.index,a=e.tiles[r],n=a.codingStyleDefaultParameters.layersCount,i=t.Csiz,s=A(a),l=0,c=0,u=0,h=0,d=0;this.nextPacket=function(){for(;u<i;++u){for(var e=a.components[u],t=s.components[u],r=e.codingStyleParameters.decompositionLevelsCount;d<t.maxNumHigh;d++){for(;h<t.maxNumWide;h++){for(;c<=r;c++){var f=e.resolutions[c],v=t.resolutions[c],g=x(h,d,v,t,f);if(null!==g){for(;l<n;){var m=p(f,g,l);return l++,m}l=0}}c=0}h=0}d=0}throw new o("Out of packets")}}function x(e,t,r,a,n){var i=e*a.minWidth,o=t*a.minHeight;if(i%r.width!==0||o%r.height!==0)return null;var s=o/r.width*n.precinctParameters.numprecinctswide;return i/r.height+s}function A(e){for(var t=e.components.length,r=Number.MAX_VALUE,a=Number.MAX_VALUE,n=0,i=0,o=new Array(t),s=0;s<t;s++){for(var l=e.components[s],c=l.codingStyleParameters.decompositionLevelsCount,u=new Array(c+1),h=Number.MAX_VALUE,d=Number.MAX_VALUE,f=0,p=0,v=1,g=c;g>=0;--g){var m=l.resolutions[g],y=v*m.precinctParameters.precinctWidth,b=v*m.precinctParameters.precinctHeight;h=Math.min(h,y),d=Math.min(d,b),f=Math.max(f,m.precinctParameters.numprecinctswide),p=Math.max(p,m.precinctParameters.numprecinctshigh),u[g]={width:y,height:b},v<<=1}r=Math.min(r,h),a=Math.min(a,d),n=Math.max(n,f),i=Math.max(i,p),o[s]={resolutions:u,minWidth:h,minHeight:d,maxNumWide:f,maxNumHigh:p}}return{components:o,minWidth:r,minHeight:a,maxNumWide:n,maxNumHigh:i}}function C(e){for(var t=e.SIZ,r=e.currentTile.index,a=e.tiles[r],n=t.Csiz,i=0;i<n;i++){for(var s=a.components[i],l=s.codingStyleParameters.decompositionLevelsCount,c=[],u=[],p=0;p<=l;p++){var v=h(e,s,p),g={},_=1<<l-p;g.trx0=Math.ceil(s.tcx0/_),g.try0=Math.ceil(s.tcy0/_),g.trx1=Math.ceil(s.tcx1/_),g.try1=Math.ceil(s.tcy1/_),g.resLevel=p,d(e,g,v),c.push(g);var S=void 0;if(0===p)S={},S.type="LL",S.tbx0=Math.ceil(s.tcx0/_),S.tby0=Math.ceil(s.tcy0/_),S.tbx1=Math.ceil(s.tcx1/_),S.tby1=Math.ceil(s.tcy1/_),S.resolution=g,f(e,S,v),u.push(S),g.subbands=[S];else{var x=1<<l-p+1,A=[];S={},S.type="HL",S.tbx0=Math.ceil(s.tcx0/x-.5),S.tby0=Math.ceil(s.tcy0/x),S.tbx1=Math.ceil(s.tcx1/x-.5),S.tby1=Math.ceil(s.tcy1/x),S.resolution=g,f(e,S,v),u.push(S),A.push(S),S={},S.type="LH",S.tbx0=Math.ceil(s.tcx0/x),S.tby0=Math.ceil(s.tcy0/x-.5),S.tbx1=Math.ceil(s.tcx1/x),S.tby1=Math.ceil(s.tcy1/x-.5),S.resolution=g,f(e,S,v),u.push(S),A.push(S),S={},S.type="HH",S.tbx0=Math.ceil(s.tcx0/x-.5),S.tby0=Math.ceil(s.tcy0/x-.5),S.tbx1=Math.ceil(s.tcx1/x-.5),S.tby1=Math.ceil(s.tcy1/x-.5),S.resolution=g,f(e,S,v),u.push(S),A.push(S),g.subbands=A}}s.resolutions=c,s.subbands=u}var C=a.codingStyleDefaultParameters.progressionOrder;switch(C){case 0:a.packetsIterator=new m(e);break;case 1:a.packetsIterator=new y(e);break;case 2:a.packetsIterator=new b(e);break;case 3:a.packetsIterator=new k(e);break;case 4:a.packetsIterator=new w(e);break;default:throw new o("Unsupported progression order ".concat(C))}}function F(e,t,r,a){var i,s=0,l=0,c=!1;function u(e){while(l<e){var a=t[r+s];s++,c?(i=i<<7|a,l+=7,c=!1):(i=i<<8|a,l+=8),255===a&&(c=!0)}return l-=e,i>>>l&(1<<e)-1}function h(e){return 255===t[r+s-1]&&t[r+s]===e?(d(1),!0):255===t[r+s]&&t[r+s+1]===e&&(d(2),!0)}function d(e){s+=e}function f(){l=0,c&&(s++,c=!1)}function p(){if(0===u(1))return 1;if(0===u(1))return 2;var e=u(2);return e<3?e+3:(e=u(5),e<31?e+6:(e=u(7),e+37))}var v=e.currentTile.index,g=e.tiles[v],m=e.COD.sopMarkerUsed,y=e.COD.ephMarkerUsed,b=g.packetsIterator;while(s<a){f(),m&&h(145)&&d(4);var k=b.nextPacket();if(u(1)){for(var w=k.layerNumber,_=[],S=void 0,x=0,A=k.codeblocks.length;x<A;x++){S=k.codeblocks[x];var C=S.precinct,F=S.cbx-C.cbxMin,P=S.cby-C.cbyMin,T=!1,O=!1,I=void 0,R=void 0;if(void 0!==S.included)T=!!u(1);else{C=S.precinct;var D=void 0;if(void 0!==C.inclusionTree)D=C.inclusionTree;else{var N=C.cbxMax-C.cbxMin+1,L=C.cbyMax-C.cbyMin+1;D=new M(N,L,w),R=new E(N,L),C.inclusionTree=D,C.zeroBitPlanesTree=R;for(var B=0;B<w;B++)if(0!==u(1))throw new o("Invalid tag tree")}if(D.reset(F,P,w))while(1){if(!u(1)){D.incrementValue(w);break}if(I=!D.nextLevel(),I){S.included=!0,T=O=!0;break}}}if(T){if(O){R=C.zeroBitPlanesTree,R.reset(F,P);while(1)if(u(1)){if(I=!R.nextLevel(),I)break}else R.incrementValue();S.zeroBitPlanes=R.value}var j=p();while(u(1))S.Lblock++;var U=(0,n.log2)(j),q=(j<1<<U?U-1:U)+S.Lblock,G=u(q);_.push({codeblock:S,codingpasses:j,dataLength:G})}}f(),y&&h(146);while(_.length>0){var H=_.shift();S=H.codeblock,void 0===S.data&&(S.data=[]),S.data.push({data:t,start:r+s,end:r+s+H.dataLength,codingpasses:H.codingpasses}),s+=H.dataLength}}}return s}function P(e,t,r,a,n,o,s,l,c){for(var u=a.tbx0,h=a.tby0,d=a.tbx1-a.tbx0,f=a.codeblocks,p="H"===a.type.charAt(0)?1:0,v="H"===a.type.charAt(1)?t:0,g=0,m=f.length;g<m;++g){var y=f[g],b=y.tbx1_-y.tbx0_,k=y.tby1_-y.tby0_;if(0!==b&&0!==k&&void 0!==y.data){var w=new R(b,k,y.subbandType,y.zeroBitPlanes,o),_=2,S=y.data,x=0,A=0,C=void 0,F=void 0,P=void 0;for(C=0,F=S.length;C<F;C++)P=S[C],x+=P.end-P.start,A+=P.codingpasses;var T=new Uint8Array(x),O=0;for(C=0,F=S.length;C<F;C++){P=S[C];var I=P.data.subarray(P.start,P.end);T.set(I,O),O+=I.length}var E=new i.ArithmeticDecoder(T,0,x);for(w.setDecoder(E),C=0;C<A;C++){switch(_){case 0:w.runSignificancePropagationPass();break;case 1:w.runMagnitudeRefinementPass();break;case 2:w.runCleanupPass(),l&&w.checkSegmentationSymbol();break}c&&w.reset(),_=(_+1)%3}var M=y.tbx0_-u+(y.tby0_-h)*d,D=w.coefficentsSign,N=w.coefficentsMagnitude,L=w.bitsDecoded,B=s?0:.5,j=void 0,U=void 0,q=void 0;O=0;var G="LL"!==a.type;for(C=0;C<k;C++){var H=M/d|0,X=2*H*(t-d)+p+v;for(j=0;j<b;j++){if(U=N[O],0!==U){U=(U+B)*n,0!==D[O]&&(U=-U),q=L[O];var $=G?X+(M<<1):M;e[$]=s&&q>=o?U:U*(1<<o-q)}M++,O++}M+=d-b}}}}function T(e,t,r){for(var a=t.components[r],n=a.codingStyleParameters,i=a.quantizationParameters,o=n.decompositionLevelsCount,l=i.SPqcds,c=i.scalarExpounded,u=i.guardBits,h=n.segmentationSymbolUsed,d=n.resetContextProbabilities,f=e.components[r].precision,p=n.reversibleTransformation,v=p?new L:new N,g=[],m=0,y=0;y<=o;y++){for(var b=a.resolutions[y],k=b.trx1-b.trx0,w=b.try1-b.try0,_=new Float32Array(k*w),S=0,x=b.subbands.length;S<x;S++){var A=void 0,C=void 0;c?(A=l[m].mu,C=l[m].epsilon,m++):(A=l[0].mu,C=l[0].epsilon+(y>0?1-y:0));var F=b.subbands[S],T=s[F.type],O=p?1:Math.pow(2,f+T-C)*(1+A/2048),I=u+C-1;P(_,k,w,F,O,I,p,h,d)}g.push({width:k,height:w,items:_})}var E=v.calculate(g,a.tcx0,a.tcy0);return{left:a.tcx0,top:a.tcy0,width:E.width,height:E.height,items:E.items}}function O(e){for(var t=e.SIZ,r=e.components,a=t.Csiz,n=[],i=0,o=e.tiles.length;i<o;i++){for(var s=e.tiles[i],l=[],c=0;c<a;c++)l[c]=T(e,s,c);var u=l[0],h=new Uint8ClampedArray(u.items.length*a),d={left:u.left,top:u.top,width:u.width,height:u.height,items:h},f=void 0,p=void 0,v=0,g=void 0,m=void 0,y=void 0,b=void 0,k=void 0;if(s.codingStyleDefaultParameters.multipleComponentTransform){var w=4===a,_=l[0].items,S=l[1].items,x=l[2].items,A=w?l[3].items:null;f=r[0].precision-8,p=.5+(128<<f);var C=s.components[0],F=a-3;if(m=_.length,C.codingStyleParameters.reversibleTransformation)for(g=0;g<m;g++,v+=F){y=_[g]+p,b=S[g],k=x[g];var P=y-(k+b>>2);h[v++]=P+k>>f,h[v++]=P>>f,h[v++]=P+b>>f}else for(g=0;g<m;g++,v+=F)y=_[g]+p,b=S[g],k=x[g],h[v++]=y+1.402*k>>f,h[v++]=y-.34413*b-.71414*k>>f,h[v++]=y+1.772*b>>f;if(w)for(g=0,v=3;g<m;g++,v+=4)h[v]=A[g]+p>>f}else for(var O=0;O<a;O++){var I=l[O].items;for(f=r[O].precision-8,p=.5+(128<<f),v=O,g=0,m=I.length;g<m;g++)h[v]=I[g]+p>>f,v+=a}n.push(d)}return n}function I(e,t){for(var r=e.SIZ,a=r.Csiz,n=e.tiles[t],i=0;i<a;i++){var o=n.components[i],s=void 0!==e.currentTile.QCC[i]?e.currentTile.QCC[i]:e.currentTile.QCD;o.quantizationParameters=s;var l=void 0!==e.currentTile.COC[i]?e.currentTile.COC[i]:e.currentTile.COD;o.codingStyleParameters=l}n.codingStyleDefaultParameters=e.currentTile.COD}t.JpxImage=l;var E=function(){function e(t,r){_(this,e);var a=(0,n.log2)(Math.max(t,r))+1;this.levels=[];for(var i=0;i<a;i++){var o={width:t,height:r,items:[]};this.levels.push(o),t=Math.ceil(t/2),r=Math.ceil(r/2)}}return S(e,[{key:"reset",value:function(e,t){var r,a=0,n=0;while(a<this.levels.length){r=this.levels[a];var i=e+t*r.width;if(void 0!==r.items[i]){n=r.items[i];break}r.index=i,e>>=1,t>>=1,a++}a--,r=this.levels[a],r.items[r.index]=n,this.currentLevel=a,delete this.value}},{key:"incrementValue",value:function(){var e=this.levels[this.currentLevel];e.items[e.index]++}},{key:"nextLevel",value:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return e--,e<0?(this.value=r,!1):(this.currentLevel=e,t=this.levels[e],t.items[t.index]=r,!0)}}]),e}(),M=function(){function e(t,r,a){_(this,e);var i=(0,n.log2)(Math.max(t,r))+1;this.levels=[];for(var o=0;o<i;o++){for(var s=new Uint8Array(t*r),l=0,c=s.length;l<c;l++)s[l]=a;var u={width:t,height:r,items:s};this.levels.push(u),t=Math.ceil(t/2),r=Math.ceil(r/2)}}return S(e,[{key:"reset",value:function(e,t,r){var a=0;while(a<this.levels.length){var n=this.levels[a],i=e+t*n.width;n.index=i;var o=n.items[i];if(255===o)break;if(o>r)return this.currentLevel=a,this.propagateValues(),!1;e>>=1,t>>=1,a++}return this.currentLevel=a-1,!0}},{key:"incrementValue",value:function(e){var t=this.levels[this.currentLevel];t.items[t.index]=e+1,this.propagateValues()}},{key:"propagateValues",value:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];while(--e>=0)t=this.levels[e],t.items[t.index]=r}},{key:"nextLevel",value:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return t.items[t.index]=255,e--,!(e<0)&&(this.currentLevel=e,t=this.levels[e],t.items[t.index]=r,!0)}}]),e}(),R=function(){var e=17,t=18,r=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]),a=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]),n=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]),i=function(){function i(e,t,o,s,l){var c;_(this,i),this.width=e,this.height=t,c="HH"===o?n:"HL"===o?a:r,this.contextLabelTable=c;var u,h=e*t;this.neighborsSignificance=new Uint8Array(h),this.coefficentsSign=new Uint8Array(h),u=l>14?new Uint32Array(h):l>6?new Uint16Array(h):new Uint8Array(h),this.coefficentsMagnitude=u,this.processingFlags=new Uint8Array(h);var d=new Uint8Array(h);if(0!==s)for(var f=0;f<h;f++)d[f]=s;this.bitsDecoded=d,this.reset()}return S(i,[{key:"setDecoder",value:function(e){this.decoder=e}},{key:"reset",value:function(){this.contexts=new Int8Array(19),this.contexts[0]=8,this.contexts[e]=92,this.contexts[t]=6}},{key:"setNeighborsSignificance",value:function(e,t,r){var a,n=this.neighborsSignificance,i=this.width,o=this.height,s=t>0,l=t+1<i;e>0&&(a=r-i,s&&(n[a-1]+=16),l&&(n[a+1]+=16),n[a]+=4),e+1<o&&(a=r+i,s&&(n[a-1]+=16),l&&(n[a+1]+=16),n[a]+=4),s&&(n[r-1]+=1),l&&(n[r+1]+=1),n[r]|=128}},{key:"runSignificancePropagationPass",value:function(){for(var e=this.decoder,t=this.width,r=this.height,a=this.coefficentsMagnitude,n=this.coefficentsSign,i=this.neighborsSignificance,o=this.processingFlags,s=this.contexts,l=this.contextLabelTable,c=this.bitsDecoded,u=-2,h=1,d=2,f=0;f<r;f+=4)for(var p=0;p<t;p++)for(var v=f*t+p,g=0;g<4;g++,v+=t){var m=f+g;if(m>=r)break;if(o[v]&=u,!a[v]&&i[v]){var y=l[i[v]],b=e.readBit(s,y);if(b){var k=this.decodeSignBit(m,p,v);n[v]=k,a[v]=1,this.setNeighborsSignificance(m,p,v),o[v]|=d}c[v]++,o[v]|=h}}}},{key:"decodeSignBit",value:function(e,t,r){var a,n,i,o,s,l,c=this.width,u=this.height,h=this.coefficentsMagnitude,d=this.coefficentsSign;o=t>0&&0!==h[r-1],t+1<c&&0!==h[r+1]?(i=d[r+1],o?(n=d[r-1],a=1-i-n):a=1-i-i):o?(n=d[r-1],a=1-n-n):a=0;var f=3*a;return o=e>0&&0!==h[r-c],e+1<u&&0!==h[r+c]?(i=d[r+c],o?(n=d[r-c],a=1-i-n+f):a=1-i-i+f):o?(n=d[r-c],a=1-n-n+f):a=f,a>=0?(s=9+a,l=this.decoder.readBit(this.contexts,s)):(s=9-a,l=1^this.decoder.readBit(this.contexts,s)),l}},{key:"runMagnitudeRefinementPass",value:function(){for(var e,t=this.decoder,r=this.width,a=this.height,n=this.coefficentsMagnitude,i=this.neighborsSignificance,o=this.contexts,s=this.bitsDecoded,l=this.processingFlags,c=1,u=2,h=r*a,d=4*r,f=0;f<h;f=e){e=Math.min(h,f+d);for(var p=0;p<r;p++)for(var v=f+p;v<e;v+=r)if(n[v]&&0===(l[v]&c)){var g=16;if(0!==(l[v]&u)){l[v]^=u;var m=127&i[v];g=0===m?15:14}var y=t.readBit(o,g);n[v]=n[v]<<1|y,s[v]++,l[v]|=c}}}},{key:"runCleanupPass",value:function(){for(var r,a=this.decoder,n=this.width,i=this.height,o=this.neighborsSignificance,s=this.coefficentsMagnitude,l=this.coefficentsSign,c=this.contexts,u=this.contextLabelTable,h=this.bitsDecoded,d=this.processingFlags,f=1,p=2,v=n,g=2*n,m=3*n,y=0;y<i;y=r){r=Math.min(y+4,i);for(var b=y*n,k=y+3<i,w=0;w<n;w++){var _=b+w,S=k&&0===d[_]&&0===d[_+v]&&0===d[_+g]&&0===d[_+m]&&0===o[_]&&0===o[_+v]&&0===o[_+g]&&0===o[_+m],x=0,A=_,C=y,F=void 0;if(S){var P=a.readBit(c,t);if(!P){h[_]++,h[_+v]++,h[_+g]++,h[_+m]++;continue}x=a.readBit(c,e)<<1|a.readBit(c,e),0!==x&&(C=y+x,A+=x*n),F=this.decodeSignBit(C,w,A),l[A]=F,s[A]=1,this.setNeighborsSignificance(C,w,A),d[A]|=p,A=_;for(var T=y;T<=C;T++,A+=n)h[A]++;x++}for(C=y+x;C<r;C++,A+=n)if(!s[A]&&0===(d[A]&f)){var O=u[o[A]],I=a.readBit(c,O);1===I&&(F=this.decodeSignBit(C,w,A),l[A]=F,s[A]=1,this.setNeighborsSignificance(C,w,A),d[A]|=p),h[A]++}}}}},{key:"checkSegmentationSymbol",value:function(){var t=this.decoder,r=this.contexts,a=t.readBit(r,e)<<3|t.readBit(r,e)<<2|t.readBit(r,e)<<1|t.readBit(r,e);if(10!==a)throw new o("Invalid segmentation symbol")}}]),i}();return i}(),D=function(){function e(){_(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize Transform.")}return S(e,[{key:"calculate",value:function(e,t,r){for(var a=e[0],n=1,i=e.length;n<i;n++)a=this.iterate(a,e[n],t,r);return a}},{key:"extend",value:function(e,t,r){var a=t-1,n=t+1,i=t+r-2,o=t+r;e[a--]=e[n++],e[o++]=e[i--],e[a--]=e[n++],e[o++]=e[i--],e[a--]=e[n++],e[o++]=e[i--],e[a]=e[n],e[o]=e[i]}},{key:"filter",value:function(e,t,r){(0,a.unreachable)("Abstract method `filter` called")}},{key:"iterate",value:function(e,t,r,a){var n,i,o,s,l,c,u=e.width,h=e.height,d=e.items,f=t.width,p=t.height,v=t.items;for(o=0,n=0;n<h;n++)for(s=2*n*f,i=0;i<u;i++,o++,s+=2)v[s]=d[o];d=e.items=null;var g=4,m=new Float32Array(f+2*g);if(1===f){if(0!==(1&r))for(c=0,o=0;c<p;c++,o+=f)v[o]*=.5}else for(c=0,o=0;c<p;c++,o+=f)m.set(v.subarray(o,o+f),g),this.extend(m,g,f),this.filter(m,g,f),v.set(m.subarray(g,g+f),o);var y=16,b=[];for(n=0;n<y;n++)b.push(new Float32Array(p+2*g));var k,w=0;if(e=g+p,1===p){if(0!==(1&a))for(l=0;l<f;l++)v[l]*=.5}else for(l=0;l<f;l++){if(0===w){for(y=Math.min(f-l,y),o=l,s=g;s<e;o+=f,s++)for(k=0;k<y;k++)b[k][s]=v[o+k];w=y}w--;var _=b[w];if(this.extend(_,g,p),this.filter(_,g,p),0===w)for(o=l-y+1,s=g;s<e;o+=f,s++)for(k=0;k<y;k++)v[o+k]=b[k][s]}return{width:f,height:p,items:v}}}]),e}(),N=function(e){v(r,e);var t=g(r);function r(){return _(this,r),t.apply(this,arguments)}return S(r,[{key:"filter",value:function(e,t,r){var a,n,i,o,s=r>>1;t|=0;var l=-1.586134342059924,c=-.052980118572961,u=.882911075530934,h=.443506852043971,d=1.230174104914001,f=1/d;for(a=t-3,n=s+4;n--;a+=2)e[a]*=f;for(a=t-2,i=h*e[a-1],n=s+3;n--;a+=2){if(o=h*e[a+1],e[a]=d*e[a]-i-o,!n--)break;a+=2,i=h*e[a+1],e[a]=d*e[a]-i-o}for(a=t-1,i=u*e[a-1],n=s+2;n--;a+=2){if(o=u*e[a+1],e[a]-=i+o,!n--)break;a+=2,i=u*e[a+1],e[a]-=i+o}for(a=t,i=c*e[a-1],n=s+1;n--;a+=2){if(o=c*e[a+1],e[a]-=i+o,!n--)break;a+=2,i=c*e[a+1],e[a]-=i+o}if(0!==s)for(a=t+1,i=l*e[a-1],n=s;n--;a+=2){if(o=l*e[a+1],e[a]-=i+o,!n--)break;a+=2,i=l*e[a+1],e[a]-=i+o}}}]),r}(D),L=function(e){v(r,e);var t=g(r);function r(){return _(this,r),t.apply(this,arguments)}return S(r,[{key:"filter",value:function(e,t,r){var a,n,i=r>>1;for(t|=0,a=t,n=i+1;n--;a+=2)e[a]-=e[a-1]+e[a+1]+2>>2;for(a=t+1,n=i;n--;a+=2)e[a]+=e[a-1]+e[a+1]>>1}}]),r}(D)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LZWStream=void 0;var a=r(144),n=function(e){v(r,e);var t=g(r);function r(e,a,n){var i;_(this,r),i=t.call(this,a),i.str=e,i.dict=e.dict,i.cachedData=0,i.bitsCached=0;for(var o=4096,s={earlyChange:n,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(o),dictionaryLengths:new Uint16Array(o),dictionaryPrevCodes:new Uint16Array(o),currentSequence:new Uint8Array(o),currentSequenceLength:0},l=0;l<256;++l)s.dictionaryValues[l]=l,s.dictionaryLengths[l]=1;return i.lzwState=s,i}return S(r,[{key:"readBits",value:function(e){var t=this.bitsCached,r=this.cachedData;while(t<e){var a=this.str.getByte();if(-1===a)return this.eof=!0,null;r=r<<8|a,t+=8}return this.bitsCached=t-=e,this.cachedData=r,this.lastCode=null,r>>>t&(1<<e)-1}},{key:"readBlock",value:function(){var e,t,r,a=512,n=a,i=2*a,o=this.lzwState;if(o){var s=o.earlyChange,l=o.nextCode,c=o.dictionaryValues,u=o.dictionaryLengths,h=o.dictionaryPrevCodes,d=o.codeLength,f=o.prevCode,p=o.currentSequence,v=o.currentSequenceLength,g=0,m=this.bufferLength,y=this.ensureBuffer(this.bufferLength+i);for(e=0;e<a;e++){var b=this.readBits(d),k=v>0;if(b<256)p[0]=b,v=1;else{if(!(b>=258)){if(256===b){d=9,l=258,v=0;continue}this.eof=!0,delete this.lzwState;break}if(b<l)for(v=u[b],t=v-1,r=b;t>=0;t--)p[t]=c[r],r=h[r];else p[v++]=p[0]}if(k&&(h[l]=f,u[l]=u[f]+1,c[l]=p[0],l++,d=l+s&l+s-1?d:0|Math.min(Math.log(l+s)/.6931471805599453+1,12)),f=b,g+=v,i<g){do{i+=n}while(i<g);y=this.ensureBuffer(this.bufferLength+i)}for(t=0;t<v;t++)y[m++]=p[t]}o.nextCode=l,o.codeLength=d,o.prevCode=f,o.currentSequenceLength=v,this.bufferLength=m}}}]),r}(a.DecodeStream);t.LZWStream=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PredictorStream=void 0;var a=r(144),n=r(130),i=r(2),o=function(e){v(r,e);var t=g(r);function r(e,a,o){var s;if(_(this,r),s=t.call(this,a),!(o instanceof n.Dict))return c(s,e);var l=s.predictor=o.get("Predictor")||1;if(l<=1)return c(s,e);if(2!==l&&(l<10||l>15))throw new i.FormatError("Unsupported predictor: ".concat(l));s.readBlock=2===l?s.readBlockTiff:s.readBlockPng,s.str=e,s.dict=e.dict;var u=s.colors=o.get("Colors")||1,h=s.bits=o.get("BPC","BitsPerComponent")||8,d=s.columns=o.get("Columns")||1;return s.pixBytes=u*h+7>>3,s.rowBytes=d*u*h+7>>3,c(s,f(s))}return S(r,[{key:"readBlockTiff",value:function(){var e=this.rowBytes,t=this.bufferLength,r=this.ensureBuffer(t+e),a=this.bits,n=this.colors,i=this.str.getBytes(e);if(this.eof=!i.length,!this.eof){var o,s=0,l=0,c=0,u=0,h=t;if(1===a&&1===n)for(o=0;o<e;++o){var d=i[o]^s;d^=d>>1,d^=d>>2,d^=d>>4,s=(1&d)<<7,r[h++]=d}else if(8===a){for(o=0;o<n;++o)r[h++]=i[o];for(;o<e;++o)r[h]=r[h-n]+i[o],h++}else if(16===a){var f=2*n;for(o=0;o<f;++o)r[h++]=i[o];for(;o<e;o+=2){var p=((255&i[o])<<8)+(255&i[o+1])+((255&r[h-f])<<8)+(255&r[h-f+1]);r[h++]=p>>8&255,r[h++]=255&p}}else{var v=new Uint8Array(n+1),g=(1<<a)-1,m=0,y=t,b=this.columns;for(o=0;o<b;++o)for(var k=0;k<n;++k)c<a&&(s=s<<8|255&i[m++],c+=8),v[k]=v[k]+(s>>c-a)&g,c-=a,l=l<<a|v[k],u+=a,u>=8&&(r[y++]=l>>u-8&255,u-=8);u>0&&(r[y++]=(l<<8-u)+(s&(1<<8-u)-1))}this.bufferLength+=e}}},{key:"readBlockPng",value:function(){var e=this.rowBytes,t=this.pixBytes,r=this.str.getByte(),a=this.str.getBytes(e);if(this.eof=!a.length,!this.eof){var n=this.bufferLength,o=this.ensureBuffer(n+e),s=o.subarray(n-e,n);0===s.length&&(s=new Uint8Array(e));var l,c,u,h=n;switch(r){case 0:for(l=0;l<e;++l)o[h++]=a[l];break;case 1:for(l=0;l<t;++l)o[h++]=a[l];for(;l<e;++l)o[h]=o[h-t]+a[l]&255,h++;break;case 2:for(l=0;l<e;++l)o[h++]=s[l]+a[l]&255;break;case 3:for(l=0;l<t;++l)o[h++]=(s[l]>>1)+a[l];for(;l<e;++l)o[h]=(s[l]+o[h-t]>>1)+a[l]&255,h++;break;case 4:for(l=0;l<t;++l)c=s[l],u=a[l],o[h++]=c+u;for(;l<e;++l){c=s[l];var d=s[l-t],f=o[h-t],p=f+c-d,v=p-f;v<0&&(v=-v);var g=p-c;g<0&&(g=-g);var m=p-d;m<0&&(m=-m),u=a[l],o[h++]=v<=g&&v<=m?f+u:g<=m?c+u:d+u}break;default:throw new i.FormatError("Unsupported predictor: ".concat(r))}this.bufferLength+=e}}}]),r}(a.DecodeStream);t.PredictorStream=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RunLengthStream=void 0;var a=r(144),n=function(e){v(r,e);var t=g(r);function r(e,a){var n;return _(this,r),n=t.call(this,a),n.str=e,n.dict=e.dict,n}return S(r,[{key:"readBlock",value:function(){var e=this.str.getBytes(2);if(!e||e.length<2||128===e[0])this.eof=!0;else{var t,r=this.bufferLength,a=e[0];if(a<128){if(t=this.ensureBuffer(r+a+1),t[r++]=e[1],a>0){var n=this.str.getBytes(a);t.set(n,r),r+=a}}else{a=257-a;var i=e[1];t=this.ensureBuffer(r+a+1);for(var o=0;o<a;o++)t[r++]=i}this.bufferLength=r}}}]),r}(a.DecodeStream);t.RunLengthStream=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Font=t.ErrorFont=void 0;var a=r(2),n=r(160),i=r(163),o=r(165),s=r(164),l=r(162),c=r(166),u=r(167),h=r(168),d=r(169),f=r(170),p=r(171),v=r(141),g=r(172),m=r(131),y=r(135),w=r(173),x=[[57344,63743],[1048576,1114109]],A=1e3,C=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","fontType","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"],F=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function P(e){if(e.fontMatrix&&e.fontMatrix[0]!==a.FONT_IDENTITY_MATRIX[0]){var t=.001/e.fontMatrix[0],r=e.widths;for(var n in r)r[n]*=t;e.defaultWidth*=t}}function T(e,t){if(!e.isInternalFont&&t!==e.defaultEncoding&&!(e.toUnicode instanceof u.IdentityToUnicodeMap)){var r=[],a=(0,s.getGlyphsUnicode)();for(var n in t){if(e.hasIncludedToUnicodeMap){if(e.toUnicode.has(n))continue}else if(e.hasEncoding&&(0===e.differences.length||void 0!==e.differences[n]))continue;var i=t[n],l=(0,o.getUnicodeForGlyph)(i,a);-1!==l&&(r[n]=String.fromCharCode(l))}r.length>0&&e.toUnicode.amend(r)}}function O(e){if(e.fallbackToUnicode&&!(e.toUnicode instanceof u.IdentityToUnicodeMap)){var t=[];for(var r in e.fallbackToUnicode)e.toUnicode.has(r)||(t[r]=e.fallbackToUnicode[r]);t.length>0&&e.toUnicode.amend(t)}}var I=function(){function e(t,r,a,n,i,s,l,c,u){_(this,e),this.originalCharCode=t,this.fontChar=r,this.unicode=a,this.accent=n,this.width=i,this.vmetric=s,this.operatorListId=l,this.isSpace=c,this.isInFont=u;var h=(0,o.getCharUnicodeCategory)(a);this.isWhitespace=h.isWhitespace,this.isZeroWidthDiacritic=h.isZeroWidthDiacritic,this.isInvisibleFormatMark=h.isInvisibleFormatMark}return S(e,[{key:"matchesForCache",value:function(e,t,r,a,n,i,o,s,l){return this.originalCharCode===e&&this.fontChar===t&&this.unicode===r&&this.accent===a&&this.width===n&&this.vmetric===i&&this.operatorListId===o&&this.isSpace===s&&this.isInFont===l}}]),e}();function E(e,t){return(e<<8)+t}function M(e,t,r){e[t+1]=r,e[t]=r>>>8}function R(e,t){var r=(e<<8)+t;return 32768&r?r-65536:r}function D(e,t,r,a){return(e<<24)+(t<<16)+(r<<8)+a}function N(e){return String.fromCharCode(e>>8&255,255&e)}function L(e){return e>32767?e=32767:e<-32768&&(e=-32768),String.fromCharCode(e>>8&255,255&e)}function B(e){var t=e.peekBytes(4);return 65536===(0,m.readUint32)(t,0)||"true"===(0,a.bytesToString)(t)}function j(e){var t=e.peekBytes(4);return"ttcf"===(0,a.bytesToString)(t)}function U(e){var t=e.peekBytes(4);return"OTTO"===(0,a.bytesToString)(t)}function q(e){var t=e.peekBytes(2);return 37===t[0]&&33===t[1]||128===t[0]&&1===t[1]}function G(e){var t=e.peekBytes(4);return t[0]>=1&&t[3]>=1&&t[3]<=4}function H(e,t){var r,n,i=t.type,o=t.subtype,s=t.composite;return B(e)||j(e)?r=s?"CIDFontType2":"TrueType":U(e)?r=s?"CIDFontType2":"OpenType":q(e)?r=s?"CIDFontType0":"MMType1"===i?"MMType1":"Type1":G(e)?s?(r="CIDFontType0",n="CIDFontType0C"):(r="MMType1"===i?"MMType1":"Type1",n="Type1C"):((0,a.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),r=i,n=o),[r,n]}function X(e,t){for(var r in t)e[+r]=t[r]}function $(e,t,r){for(var a,n=[],i=0,s=e.length;i<s;i++)a=(0,o.getUnicodeForGlyph)(e[i],t),-1!==a&&(n[i]=a);for(var l in r)a=(0,o.getUnicodeForGlyph)(r[l],t),-1!==a&&(n[+l]=a);return n}function z(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];switch(t.length){case 1:return t.charCodeAt(0);case 2:return t.charCodeAt(0)<<8|t.charCodeAt(1)}var n="Unsupported CID string (charCode ".concat(e,'): "').concat(t,'".');if(r)throw new a.FormatError(n);return(0,a.warn)(n),t}function W(e,t,r,n){var i=Object.create(null),o=new Map,s=[],l=new Set,c=0,u=x[c][0],h=u,d=x[c][1];for(var f in e){f|=0;var p=e[f];if(t(p)){if(h>d){if(c++,c>=x.length){(0,a.warn)("Ran out of space in font private use area.");break}h=x[c][0],d=x[c][1]}var v=h++;0===p&&(p=r);var g=n.get(f);"string"===typeof g&&(g=g.codePointAt(0)),g&&g<u&&!l.has(p)&&(o.set(g,p),l.add(p)),i[v]=p,s[f]=v}}return{toFontChar:s,charCodeToGlyphId:i,toUnicodeExtraMap:o,nextAvailableFontCharCode:h}}function V(e,t,r){var a=[];for(var n in e)e[n]>=r||a.push({fontCharCode:0|n,glyphId:e[n]});if(t){var i,o=b(t);try{for(o.s();!(i=o.n()).done;){var s=k(i.value,2),l=s[0],c=s[1];c>=r||a.push({fontCharCode:l,glyphId:c})}}catch(g){o.e(g)}finally{o.f()}}0===a.length&&a.push({fontCharCode:0,glyphId:0}),a.sort((function(e,t){return e.fontCharCode-t.fontCharCode}));for(var u=[],h=a.length,d=0;d<h;){var f=a[d].fontCharCode,p=[a[d].glyphId];++d;var v=f;while(d<h&&v+1===a[d].fontCharCode)if(p.push(a[d].glyphId),++v,++d,65535===v)break;u.push([f,v,p])}return u}function Y(e,t,r){var n,i,o,s,l=V(e,t,r),c=l.at(-1)[1]>65535?2:1,u="\0\0"+N(c)+"\0\0"+(0,a.string32)(4+8*c);for(n=l.length-1;n>=0;--n)if(l[n][0]<=65535)break;var h=n+1;l[n][0]<65535&&65535===l[n][1]&&(l[n][1]=65534);var d,f,p,v,m=l[n][1]<65535?1:0,y=h+m,b=g.OpenTypeFileBuilder.getSearchParams(y,2),k="",w="",_="",S="",x="",A=0;for(n=0,i=h;n<i;n++){d=l[n],f=d[0],p=d[1],k+=N(f),w+=N(p),v=d[2];var C=!0;for(o=1,s=v.length;o<s;++o)if(v[o]!==v[o-1]+1){C=!1;break}if(C){var F=v[0];_+=N(F-f&65535),S+=N(0)}else{var P=2*(y-n)+2*A;for(A+=p-f+1,_+=N(0),S+=N(P),o=0,s=v.length;o<s;++o)x+=N(v[o])}}m>0&&(w+="ÿÿ",k+="ÿÿ",_+="\0",S+="\0\0");var T="\0\0"+N(2*y)+N(b.range)+N(b.entry)+N(b.rangeShift)+w+"\0\0"+k+_+S+x,O="",I="";if(c>1){for(u+="\0\0\n"+(0,a.string32)(4+8*c+4+T.length),O="",n=0,i=l.length;n<i;n++){d=l[n],f=d[0],v=d[2];var E=v[0];for(o=1,s=v.length;o<s;++o)v[o]!==v[o-1]+1&&(p=d[0]+o-1,O+=(0,a.string32)(f)+(0,a.string32)(p)+(0,a.string32)(E),f=p+1,E=v[o]);O+=(0,a.string32)(f)+(0,a.string32)(d[1])+(0,a.string32)(E)}I="\0\f\0\0"+(0,a.string32)(O.length+16)+"\0\0\0\0"+(0,a.string32)(O.length/12)}return u+"\0"+N(T.length+4)+T+I+O}function K(e,t){t.pos=(t.start||0)+e.offset;var r=t.getUint16();t.skip(60);var a=t.getUint16();if(r<4&&768&a)return!1;var n=t.getUint16(),i=t.getUint16();if(n>i)return!1;t.skip(6);var o=t.getUint16();return 0!==o&&(e.data[8]=e.data[9]=0,!0)}function J(e,t,r){r=r||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};var n=0,i=0,s=0,l=0,c=null,u=0;if(t){for(var h in t){h|=0,(c>h||!c)&&(c=h),u<h&&(u=h);var d=(0,o.getUnicodeRangeFor)(h);if(d<32)n|=1<<d;else if(d<64)i|=1<<d-32;else if(d<96)s|=1<<d-64;else{if(!(d<123))throw new a.FormatError("Unicode ranges Bits > 123 are reserved for internal usage");l|=1<<d-96}}u>65535&&(u=65535)}else c=0,u=255;var f=e.bbox||[0,0,0,0],p=r.unitsPerEm||1/(e.fontMatrix||a.FONT_IDENTITY_MATRIX)[0],v=e.ascentScaled?1:p/A,g=r.ascent||Math.round(v*(e.ascent||f[3])),m=r.descent||Math.round(v*(e.descent||f[1]));m>0&&e.descent>0&&f[1]<0&&(m=-m);var y=r.yMax||g,b=-r.yMin||-m;return"\0$ô\0\0\0»\0\0\0»\0\0ß\x001\0\0\0\0"+String.fromCharCode(e.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,a.string32)(n)+(0,a.string32)(i)+(0,a.string32)(s)+(0,a.string32)(l)+"*21*"+N(e.italicAngle?1:0)+N(c||e.firstChar)+N(u||e.lastChar)+N(g)+N(m)+"\0d"+N(y)+N(b)+"\0\0\0\0\0\0\0\0"+N(e.xHeight)+N(e.capHeight)+N(0)+N(c||e.firstChar)+"\0"}function Z(e){var t=Math.floor(e.italicAngle*Math.pow(2,16));return"\0\0\0"+(0,a.string32)(t)+"\0\0\0\0"+(0,a.string32)(e.fixedPitch?1:0)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function Q(e){return e.replace(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function ee(e,t){t||(t=[[],[]]);var r,a,n,i,o,s=[t[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||Q(e),t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],l=[];for(r=0,a=s.length;r<a;r++){o=t[1][r]||s[r];var c=[];for(n=0,i=o.length;n<i;n++)c.push(N(o.charCodeAt(n)));l.push(c.join(""))}var u=[s,l],h=["\0","\0"],d=["\0\0","\0"],f=["\0\0","\t"],p=s.length*h.length,v="\0\0"+N(p)+N(12*p+6),g=0;for(r=0,a=h.length;r<a;r++){var m=u[r];for(n=0,i=m.length;n<i;n++){o=m[n];var y=h[r]+d[r]+f[r]+N(n)+N(o.length)+N(g);v+=y,g+=o.length}}return v+=s.join("")+l.join(""),v}var te=function(){function e(t,r,n){_(this,e),this.name=t,this.psName=null,this.mimetype=null,this.disableFontFace=!1,this.loadedName=n.loadedName,this.isType3Font=n.isType3Font,this.missingFile=!1,this.cssFontInfo=n.cssFontInfo,this._charsCache=Object.create(null),this._glyphCache=Object.create(null);var o=!!(n.flags&i.FontFlags.Serif);if(!o&&!n.isSimulatedFlags){var s,l=t.replace(/[,_]/g,"-").split("-")[0],u=(0,c.getSerifFonts)(),d=b(l.split("+"));try{for(d.s();!(s=d.n()).done;){var f=s.value;if(u[f]){o=!0;break}}}catch(F){d.e(F)}finally{d.f()}}this.isSerifFont=o,this.isSymbolicFont=!!(n.flags&i.FontFlags.Symbolic),this.isMonospace=!!(n.flags&i.FontFlags.FixedPitch);var p=n.type,v=n.subtype;this.type=p,this.subtype=v;var g="sans-serif";if(this.isMonospace?g="monospace":this.isSerifFont&&(g="serif"),this.fallbackName=g,this.differences=n.differences,this.widths=n.widths,this.defaultWidth=n.defaultWidth,this.composite=n.composite,this.cMap=n.cMap,this.capHeight=n.capHeight/A,this.ascent=n.ascent/A,this.descent=n.descent/A,this.lineHeight=this.ascent-this.descent,this.fontMatrix=n.fontMatrix,this.bbox=n.bbox,this.defaultEncoding=n.defaultEncoding,this.toUnicode=n.toUnicode,this.toFontChar=[],"Type3"!==n.type){if(this.cidEncoding=n.cidEncoding||"",this.vertical=!!n.vertical,this.vertical&&(this.vmetrics=n.vmetrics,this.defaultVMetrics=n.defaultVMetrics),!r||r.isEmpty)return r&&(0,a.warn)('Font file is empty in "'+t+'" ('+this.loadedName+")"),void this.fallbackToSystemFont(n);var m,y=H(r,n),S=k(y,2);p=S[0],v=S[1],p===this.type&&v===this.subtype||(0,a.info)("Inconsistent font file Type/SubType, expected: "+"".concat(this.type,"/").concat(this.subtype," but found: ").concat(p,"/").concat(v,"."));try{switch(p){case"MMType1":(0,a.info)("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var x="Type1C"===v||"CIDFontType0C"===v?new h.CFFFont(r,n):new w.Type1Font(t,r,n);P(n),m=this.convert(t,x,n);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",m=this.checkAndRepair(t,r,n),this.isOpenType&&(P(n),p="OpenType");break;default:throw new a.FormatError("Font ".concat(p," is not supported"))}}catch(T){return(0,a.warn)(T),void this.fallbackToSystemFont(n)}O(n),this.data=m,this.fontType=(0,i.getFontType)(p,v,n.isStandardFont),this.fontMatrix=n.fontMatrix,this.widths=n.widths,this.defaultWidth=n.defaultWidth,this.toUnicode=n.toUnicode,this.seacMap=n.seacMap}else{for(var C=0;C<256;C++)this.toFontChar[C]=this.differences[C]||n.defaultEncoding[C];this.fontType=a.FontType.TYPE3}}return S(e,[{key:"renderer",get:function(){var e=d.FontRendererFactory.create(this,i.SEAC_ANALYSIS_ENABLED);return(0,a.shadow)(this,"renderer",e)}},{key:"exportData",value:function(){var e,t,r,a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=a?[].concat(C,F):C,i=Object.create(null),o=b(n);try{for(o.s();!(r=o.n()).done;)e=r.value,t=this[e],void 0!==t&&(i[e]=t)}catch(s){o.e(s)}finally{o.f()}return i}},{key:"fallbackToSystemFont",value:function(e){var t=this;this.missingFile=!0;var r=this.name,n=this.type,h=this.subtype,d=(0,i.normalizeFontName)(r),p=(0,c.getStdFontMap)(),v=(0,c.getNonStdFontMap)(),g=!!p[d],m=!(!v[d]||!p[v[d]]);d=p[d]||v[d]||d;var y=(0,f.getFontBasicMetrics)(),b=y[d];b&&(isNaN(this.ascent)&&(this.ascent=b.ascent/A),isNaN(this.descent)&&(this.descent=b.descent/A),isNaN(this.capHeight)&&(this.capHeight=b.capHeight/A)),this.bold=-1!==d.search(/bold/gi),this.italic=-1!==d.search(/oblique/gi)||-1!==d.search(/italic/gi),this.black=-1!==r.search(/Black/g);var k=-1!==r.search(/Narrow/g);if(this.remeasure=(!g||k)&&Object.keys(this.widths).length>0,(g||m)&&"CIDFontType2"===n&&this.cidEncoding.startsWith("Identity-")){var w=e.cidToGidMap,_=[];if(X(_,(0,c.getGlyphMapForStandardFonts)()),/Arial-?Black/i.test(r)?X(_,(0,c.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(r)&&X(_,(0,c.getSupplementalGlyphMapForCalibri)()),w){for(var S in _){var x=_[S];void 0!==w[x]&&(_[+S]=w[x])}w.length!==this.toUnicode.length&&e.hasIncludedToUnicodeMap&&this.toUnicode instanceof u.IdentityToUnicodeMap&&this.toUnicode.forEach((function(e,t){var r=_[e];void 0===w[r]&&(_[+e]=t)}))}this.toUnicode instanceof u.IdentityToUnicodeMap||this.toUnicode.forEach((function(e,t){_[+e]=t})),this.toFontChar=_,this.toUnicode=new u.ToUnicodeMap(_)}else if(/Symbol/i.test(d))this.toFontChar=$(l.SymbolSetEncoding,(0,s.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(d))/Wingdings/i.test(r)&&(0,a.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=$(l.ZapfDingbatsEncoding,(0,s.getDingbatsGlyphsUnicode)(),this.differences);else if(g){var C=$(this.defaultEncoding,(0,s.getGlyphsUnicode)(),this.differences);"CIDFontType2"!==n||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof u.IdentityToUnicodeMap||this.toUnicode.forEach((function(e,t){C[+e]=t})),this.toFontChar=C}else{var F=(0,s.getGlyphsUnicode)(),P=[];this.toUnicode.forEach((function(e,r){if(!t.composite){var a=t.differences[e]||t.defaultEncoding[e],n=(0,o.getUnicodeForGlyph)(a,F);-1!==n&&(r=n)}P[+e]=r})),this.composite&&this.toUnicode instanceof u.IdentityToUnicodeMap&&/Verdana/i.test(r)&&X(P,(0,c.getGlyphMapForStandardFonts)()),this.toFontChar=P}O(e),this.loadedName=d.split("-")[0],this.fontType=(0,i.getFontType)(n,h,e.isStandardFont)}},{key:"checkAndRepair",value:function(e,t,r){var o=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function c(e,t){var r=Object.create(null);r["OS/2"]=null,r.cmap=null,r.head=null,r.hhea=null,r.hmtx=null,r.maxp=null,r.name=null,r.post=null;for(var a=0;a<t;a++){var n=d(e);o.includes(n.tag)&&(0!==n.length&&(r[n.tag]=n))}return r}function d(e){var t=e.getString(4),r=e.getInt32()>>>0,a=e.getInt32()>>>0,n=e.getInt32()>>>0,i=e.pos;e.pos=e.start||0,e.skip(a);var o=e.getBytes(n);return e.pos=i,"head"===t&&(o[8]=o[9]=o[10]=o[11]=0,o[17]|=32),{tag:t,checksum:r,length:n,offset:a,data:o}}function f(e){return{version:e.getString(4),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function m(e){var t=e.getString(4);(0,a.assert)("ttcf"===t,"Must be a TrueType Collection font.");for(var r=e.getUint16(),n=e.getUint16(),i=e.getInt32()>>>0,o=[],s=0;s<i;s++)o.push(e.getInt32()>>>0);var l={ttcTag:t,majorVersion:r,minorVersion:n,numFonts:i,offsetTable:o};switch(r){case 1:return l;case 2:return l.dsigTag=e.getInt32()>>>0,l.dsigLength=e.getInt32()>>>0,l.dsigOffset=e.getInt32()>>>0,l}throw new a.FormatError("Invalid TrueType Collection majorVersion: ".concat(r,"."))}function k(e,t){for(var r,n=m(e),i=n.numFonts,o=n.offsetTable,s=t.split("+"),l=0;l<i;l++){e.pos=(e.start||0)+o[l];var u=f(e),h=c(e,u.numTables);if(!h.name)throw new a.FormatError('TrueType Collection font must contain a "name" table.');for(var d=F(h.name),p=0,v=d.length;p<v;p++)for(var g=0,y=d[p].length;g<y;g++){var k=d[p][g]&&d[p][g].replace(/\s/g,"");if(k){if(k===t)return{header:u,tables:h};if(!(s.length<2)){var w,_=b(s);try{for(_.s();!(w=_.n()).done;){var S=w.value;k===S&&(r={name:S,header:u,tables:h})}}catch(x){_.e(x)}finally{_.f()}}}}}if(r)return(0,a.warn)('TrueType Collection does not contain "'.concat(t,'" font, ')+'falling back to "'.concat(r.name,'" font instead.')),{header:r.header,tables:r.tables};throw new a.FormatError('TrueType Collection does not contain "'.concat(t,'" font.'))}function w(e,t,r,n){if(!e)return(0,a.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var i,o=(t.start||0)+e.offset;t.pos=o,t.skip(2);for(var s,l=t.getUint16(),c=!1,u=0;u<l;u++){var h=t.getUint16(),d=t.getUint16(),f=t.getInt32()>>>0,p=!1;if(!s||s.platformId!==h||s.encodingId!==d){if(0!==h||0!==d&&1!==d&&3!==d)if(1===h&&0===d)p=!0;else if(3!==h||1!==d||!n&&s){if(r&&3===h&&0===d){p=!0;var v=!0;if(u<l-1){var g=t.peekBytes(2),m=E(g[0],g[1]);m<h&&(v=!1)}v&&(c=!0)}}else p=!0,r||(c=!0);else p=!0;if(p&&(s={platformId:h,encodingId:d,offset:f}),c)break}}if(s&&(t.pos=o+s.offset),!s||-1===t.peekByte())return(0,a.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var y,b,k=t.getUint16(),w=!1,_=[];if(0===k){for(t.skip(4),y=0;y<256;y++){var S=t.getByte();S&&_.push({charCode:y,glyphId:S})}w=!0}else if(2===k){t.skip(4);for(var x=[],A=0,C=0;C<256;C++){var F=t.getUint16()>>3;x.push(F),A=Math.max(F,A)}for(var P=[],T=0;T<=A;T++)P.push({firstCode:t.getUint16(),entryCount:t.getUint16(),idDelta:R(t.getByte(),t.getByte()),idRangePos:t.pos+t.getUint16()});for(var O=0;O<256;O++)if(0===x[O])t.pos=P[0].idRangePos+2*O,b=t.getUint16(),_.push({charCode:O,glyphId:b});else{var I=P[x[O]];for(y=0;y<I.entryCount;y++){var M=(O<<8)+y+I.firstCode;t.pos=I.idRangePos+2*y,b=t.getUint16(),0!==b&&(b=(b+I.idDelta)%65536),_.push({charCode:M,glyphId:b})}}}else if(4===k){t.skip(4);var D=t.getUint16()>>1;t.skip(6);var N,L=[];for(N=0;N<D;N++)L.push({end:t.getUint16()});for(t.skip(2),N=0;N<D;N++)L[N].start=t.getUint16();for(N=0;N<D;N++)L[N].delta=t.getUint16();var B,j=0;for(N=0;N<D;N++){i=L[N];var U=t.getUint16();U?(B=(U>>1)-(D-N),i.offsetIndex=B,j=Math.max(j,B+i.end-i.start+1)):i.offsetIndex=-1}var q=[];for(y=0;y<j;y++)q.push(t.getUint16());for(N=0;N<D;N++){i=L[N],o=i.start;var G=i.end,H=i.delta;for(B=i.offsetIndex,y=o;y<=G;y++)65535!==y&&(b=B<0?y:q[B+y-o],b=b+H&65535,_.push({charCode:y,glyphId:b}))}}else if(6===k){t.skip(4);var X=t.getUint16(),$=t.getUint16();for(y=0;y<$;y++){b=t.getUint16();var z=X+y;_.push({charCode:z,glyphId:b})}}else{if(12!==k)return(0,a.warn)("cmap table has unsupported format: "+k),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};t.skip(10);var W=t.getInt32()>>>0;for(y=0;y<W;y++)for(var V=t.getInt32()>>>0,Y=t.getInt32()>>>0,K=t.getInt32()>>>0,J=V;J<=Y;J++)_.push({charCode:J,glyphId:K++})}_.sort((function(e,t){return e.charCode-t.charCode}));for(var Z=1;Z<_.length;Z++)_[Z-1].charCode===_[Z].charCode&&(_.splice(Z,1),Z--);return{platformId:s.platformId,encodingId:s.encodingId,mappings:_,hasShortCmap:w}}function _(e,t,r,n,i,o){if(t){e.pos=(e.start||0)+t.offset,e.pos+=4,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2;var s=e.getUint16();e.pos+=8,e.pos+=2;var l=e.getUint16();if(0!==s){var c=E(n.data[44],n.data[45]);2&c||(t.data[22]=0,t.data[23]=0)}l>i&&((0,a.info)("The numOfMetrics (".concat(l,") should not be ")+"greater than the numGlyphs (".concat(i,").")),l=i,t.data[34]=(65280&l)>>8,t.data[35]=255&l);var u=i-l,h=u-(r.length-4*l>>1);if(h>0){var d=new Uint8Array(r.length+2*h);d.set(r.data),o&&(d[r.length]=r.data[2],d[r.length+1]=r.data[3]),r.data=d}}else r&&(r.data=null)}function S(e,t,r,a,n,i){var o={length:0,sizeOfInstructions:0};if(r-t<=12)return o;var s=e.subarray(t,r),l=R(s[0],s[1]);if(l<0)return l=-1,M(s,0,l),a.set(s,n),o.length=s.length,o;var c,u=10,h=0;for(c=0;c<l;c++){var d=s[u]<<8|s[u+1];h=d+1,u+=2}var f=u,p=s[u]<<8|s[u+1];o.sizeOfInstructions=p,u+=2+p;var v=u,g=0;for(c=0;c<h;c++){var m=s[u++];192&m&&(s[u-1]=63&m);var y=2;2&m?y=1:16&m&&(y=0);var b=2;4&m?b=1:32&m&&(b=0);var k=y+b;if(g+=k,8&m){var w=s[u++];c+=w,g+=w*k}}if(0===g)return o;var _=u+g;return _>s.length?o:!i&&p>0?(a.set(s.subarray(0,f),n),a.set([0,0],n+f),a.set(s.subarray(v,_),n+f+2),_-=p,s.length-_>3&&(_=_+3&-4),o.length=_,o):s.length-_>3?(_=_+3&-4,a.set(s.subarray(0,_),n),o.length=_,o):(a.set(s,n),o.length=s.length,o)}function x(e,t,r){var n=e.data,i=D(n[0],n[1],n[2],n[3]);i>>16!==1&&((0,a.info)("Attempting to fix invalid version in head table: "+i),n[0]=0,n[1]=1,n[2]=0,n[3]=0);var o=E(n[50],n[51]);if(o<0||o>1){(0,a.info)("Attempting to fix invalid indexToLocFormat in head table: "+o);var s=t+1;if(r===s<<1)n[50]=0,n[51]=0;else{if(r!==s<<2)throw new a.FormatError("Could not fix indexToLocFormat: "+o);n[50]=0,n[51]=1}}}function A(e,t,r,a,n,i,o){var s,l,c;a?(s=4,l=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},c=function(e,t,r){e[t]=r>>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}):(s=2,l=function(e,t){return e[t]<<9|e[t+1]<<1},c=function(e,t,r){e[t]=r>>9&255,e[t+1]=r>>1&255});var u=i?r+1:r,h=s*(1+u),d=new Uint8Array(h);d.set(e.data.subarray(0,h)),e.data=d;var f,p,v=t.data,g=v.length,m=new Uint8Array(g),y=[];for(f=0,p=0;f<r+1;f++,p+=s){var b=l(d,p);b>g&&(b=g),y.push({index:f,offset:b,endOffset:0})}for(y.sort((function(e,t){return e.offset-t.offset})),f=0;f<r;f++)y[f].endOffset=y[f+1].offset;for(y.sort((function(e,t){return e.index-t.index})),f=0;f<r;f++){var k=y[f],w=k.offset,_=k.endOffset;if(0!==w||0!==_)break;var x=y[f+1].offset;if(0!==x){y[f].endOffset=x;break}}var A=Object.create(null),C=0;for(c(d,0,C),f=0,p=s;f<r;f++,p+=s){var F=S(v,y[f].offset,y[f].endOffset,m,C,n),P=F.length;0===P&&(A[f]=!0),F.sizeOfInstructions>o&&(o=F.sizeOfInstructions),C+=P,c(d,p,C)}if(0===C){var T=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(f=0,p=s;f<u;f++,p+=s)c(d,p,T.length);t.data=T}else if(i){var O=l(d,s);m.length>O+C?t.data=m.subarray(0,O+C):(t.data=new Uint8Array(O+C),t.data.set(m.subarray(0,C))),t.data.set(m.subarray(0,O),C),c(e.data,d.length-s,C+O)}else t.data=m.subarray(0,C);return{missingGlyphs:A,maxSizeOfInstructions:o}}function C(e,r,n){var o=(t.start||0)+e.offset;t.pos=o;var s,l=e.length,c=o+l,u=t.getInt32();t.skip(28);var h,d=!0;switch(u){case 65536:s=i.MacStandardGlyphOrdering;break;case 131072:var f=t.getUint16();if(f!==n){d=!1;break}var p=[];for(h=0;h<f;++h){var v=t.getUint16();if(v>=32768){d=!1;break}p.push(v)}if(!d)break;var g=[],m=[];while(t.pos<c){var y=t.getByte();for(m.length=y,h=0;h<y;++h)m[h]=String.fromCharCode(t.getByte());g.push(m.join(""))}for(s=[],h=0;h<f;++h){var b=p[h];b<258?s.push(i.MacStandardGlyphOrdering[b]):s.push(g[b-258])}break;case 196608:break;default:(0,a.warn)("Unknown/unsupported post table version "+u),d=!1,r.defaultEncoding&&(s=r.defaultEncoding);break}return r.glyphNames=s,d}function F(e){var r=(t.start||0)+e.offset;t.pos=r;var a=[[],[]],n=e.length,i=r+n,o=t.getUint16(),s=6;if(0!==o||n<s)return a;var l,c,u=t.getUint16(),h=t.getUint16(),d=[],f=12;for(l=0;l<u&&t.pos+f<=i;l++){var p={platform:t.getUint16(),encoding:t.getUint16(),language:t.getUint16(),name:t.getUint16(),length:t.getUint16(),offset:t.getUint16()};(1===p.platform&&0===p.encoding&&0===p.language||3===p.platform&&1===p.encoding&&1033===p.language)&&d.push(p)}for(l=0,c=d.length;l<c;l++){var v=d[l];if(!(v.length<=0)){var g=r+h+v.offset;if(!(g+v.length>i)){t.pos=g;var m=v.name;if(v.encoding){for(var y="",b=0,k=v.length;b<k;b+=2)y+=String.fromCharCode(t.getUint16());a[1][m]=y}else a[0][m]=t.getString(v.length)}}}return a}var T,O,I,N,L=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function B(e,t){for(var r,n,i,o,s,l=e.data,c=0,u=0,h=0,d=[],f=[],p=[],v=t.tooComplexToFollowFunctions,g=!1,m=0,y=0,b=l.length;c<b;){var k=l[c++];if(64===k)if(n=l[c++],g||y)c+=n;else for(r=0;r<n;r++)d.push(l[c++]);else if(65===k)if(n=l[c++],g||y)c+=2*n;else for(r=0;r<n;r++)i=l[c++],d.push(i<<8|l[c++]);else if(176===(248&k))if(n=k-176+1,g||y)c+=n;else for(r=0;r<n;r++)d.push(l[c++]);else if(184===(248&k))if(n=k-184+1,g||y)c+=2*n;else for(r=0;r<n;r++)i=l[c++],d.push(i<<8|l[c++]);else if(43!==k||v)if(44!==k||v){if(45===k)if(g)g=!1,u=c;else{if(s=f.pop(),!s)return(0,a.warn)("TT: ENDF bad stack"),void(t.hintsValid=!1);o=p.pop(),l=s.data,c=s.i,t.functionsStackDeltas[o]=d.length-s.stackTop}else if(137===k)(g||y)&&((0,a.warn)("TT: nested IDEFs not allowed"),v=!0),g=!0,h=c;else if(88===k)++m;else if(27===k)y=m;else if(89===k)y===m&&(y=0),--m;else if(28===k&&!g&&!y){var w=d.at(-1);w>0&&(c+=w-1)}}else(g||y)&&((0,a.warn)("TT: nested FDEFs not allowed"),v=!0),g=!0,h=c,o=d.pop(),t.functionsDefined[o]={data:l,i:c};else if(!g&&!y)if(o=d.at(-1),isNaN(o))(0,a.info)("TT: CALL empty stack (or invalid entry).");else if(t.functionsUsed[o]=!0,o in t.functionsStackDeltas){var _=d.length+t.functionsStackDeltas[o];if(_<0)return(0,a.warn)("TT: CALL invalid functions stack delta."),void(t.hintsValid=!1);d.length=_}else if(o in t.functionsDefined&&!p.includes(o)){if(f.push({data:l,i:c,stackTop:d.length-1}),p.push(o),s=t.functionsDefined[o],!s)return(0,a.warn)("TT: CALL non-existent function"),void(t.hintsValid=!1);l=s.data,c=s.i}if(!g&&!y){var S=0;k<=142?S=L[k]:k>=192&&k<=223?S=-1:k>=224&&(S=-2),k>=113&&k<=117&&(n=d.pop(),isNaN(n)||(S=2*-n));while(S<0&&d.length>0)d.pop(),S++;while(S>0)d.push(NaN),S--}}t.tooComplexToFollowFunctions=v;var x=[l];c>l.length&&x.push(new Uint8Array(c-l.length)),h>u&&((0,a.warn)("TT: complementing a missing function tail"),x.push(new Uint8Array([34,45]))),q(e,x)}function U(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t)return(0,a.warn)("TT: more functions defined than expected"),void(e.hintsValid=!1);for(var r=0,n=e.functionsUsed.length;r<n;r++){if(r>t)return(0,a.warn)("TT: invalid function id: "+r),void(e.hintsValid=!1);if(e.functionsUsed[r]&&!e.functionsDefined[r])return(0,a.warn)("TT: undefined function: "+r),void(e.hintsValid=!1)}}}function q(e,t){if(t.length>1){var r,a,n=0;for(r=0,a=t.length;r<a;r++)n+=t[r].length;n=n+3&-4;var i=new Uint8Array(n),o=0;for(r=0,a=t.length;r<a;r++)i.set(t[r],o),o+=t[r].length;e.data=i,e.length=n}}function G(e,t,r,a){var n={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(e&&B(e,n),t&&B(t,n),e&&U(n,a),r&&1&r.length){var i=new Uint8Array(r.length+1);i.set(r.data),r.data=i}return n.hintsValid}if(t=new y.Stream(new Uint8Array(t.getBytes())),j(t)){var H=k(t,this.name);T=H.header,O=H.tables}else T=f(t),O=c(t,T.numTables);var X=!O["CFF "];if(X){if(!O.loca)throw new a.FormatError('Required "loca" table is not found');O.glyf||((0,a.warn)('Required "glyf" table is not found -- trying to recover.'),O.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{var $=r.composite&&((r.cidToGidMap||[]).length>0||!(r.cMap instanceof v.IdentityCMap));if("OTTO"===T.version&&!$||!O.head||!O.hhea||!O.maxp||!O.post)return N=new y.Stream(O["CFF "].data),I=new h.CFFFont(N,r),P(r),this.convert(e,I,r);delete O.glyf,delete O.loca,delete O.fpgm,delete O.prep,delete O["cvt "],this.isOpenType=!0}if(!O.maxp)throw new a.FormatError('Required "maxp" table is not found');t.pos=(t.start||0)+O.maxp.offset;var V=t.getInt32(),Q=t.getUint16();if(r.scaleFactors&&r.scaleFactors.length===Q&&X){var te=r.scaleFactors,re=E(O.head.data[50],O.head.data[51]),ae=new p.GlyfTable({glyfTable:O.glyf.data,isGlyphLocationsLong:re,locaTable:O.loca.data,numGlyphs:Q});ae.scale(te);var ne=ae.write(),ie=ne.glyf,oe=ne.loca,se=ne.isLocationLong;O.glyf.data=ie,O.loca.data=oe,se!==!!re&&(O.head.data[50]=0,O.head.data[51]=se?1:0);for(var le=O.hmtx.data,ce=0;ce<Q;ce++){var ue=4*ce,he=Math.round(te[ce]*E(le[ue],le[ue+1]));le[ue]=he>>8&255,le[ue+1]=255&he;var de=Math.round(te[ce]*R(le[ue+2],le[ue+3]));M(le,ue+2,de)}}var fe=Q+1,pe=!0;fe>65535&&(pe=!1,fe=Q,(0,a.warn)("Not enough space in glyfs to duplicate first glyph."));var ve=0,ge=0;if(V>=65536&&O.maxp.length>=22){t.pos+=8;var me=t.getUint16();me>2&&(O.maxp.data[14]=0,O.maxp.data[15]=2),t.pos+=4,ve=t.getUint16(),t.pos+=4,ge=t.getUint16()}O.maxp.data[4]=fe>>8,O.maxp.data[5]=255&fe;var ye=G(O.fpgm,O.prep,O["cvt "],ve);if(ye||(delete O.fpgm,delete O.prep,delete O["cvt "]),_(t,O.hhea,O.hmtx,O.head,fe,pe),!O.head)throw new a.FormatError('Required "head" table is not found');x(O.head,Q,X?O.loca.length:0);var be=Object.create(null);if(X){var ke=E(O.head.data[50],O.head.data[51]),we=A(O.loca,O.glyf,Q,ke,ye,pe,ge);be=we.missingGlyphs,V>=65536&&O.maxp.length>=22&&(O.maxp.data[26]=we.maxSizeOfInstructions>>8,O.maxp.data[27]=255&we.maxSizeOfInstructions)}if(!O.hhea)throw new a.FormatError('Required "hhea" table is not found');0===O.hhea.data[10]&&0===O.hhea.data[11]&&(O.hhea.data[10]=255,O.hhea.data[11]=255);var _e={unitsPerEm:E(O.head.data[18],O.head.data[19]),yMax:E(O.head.data[42],O.head.data[43]),yMin:R(O.head.data[38],O.head.data[39]),ascent:R(O.hhea.data[4],O.hhea.data[5]),descent:R(O.hhea.data[6],O.hhea.data[7]),lineGap:R(O.hhea.data[8],O.hhea.data[9])};this.ascent=_e.ascent/_e.unitsPerEm,this.descent=_e.descent/_e.unitsPerEm,this.lineGap=_e.lineGap/_e.unitsPerEm,this.cssFontInfo&&this.cssFontInfo.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,O.post&&C(O.post,r,Q),O.post={tag:"post",data:Z(r)};var Se=[];function xe(e){return!be[e]}if(r.composite){var Ae=r.cidToGidMap||[],Ce=0===Ae.length;r.cMap.forEach((function(e,t){if("string"===typeof t&&(t=z(e,t,!0)),t>65535)throw new a.FormatError("Max size of CID is 65,535");var r=-1;Ce?r=t:void 0!==Ae[t]&&(r=Ae[t]),r>=0&&r<Q&&xe(r)&&(Se[e]=r)}))}else{var Fe=w(O.cmap,t,this.isSymbolicFont,r.hasEncoding),Pe=Fe.platformId,Te=Fe.encodingId,Oe=Fe.mappings,Ie=Oe.length,Ee=[],Me=!1;if(!r.hasEncoding||"MacRomanEncoding"!==r.baseEncodingName&&"WinAnsiEncoding"!==r.baseEncodingName||(Ee=(0,l.getEncoding)(r.baseEncodingName)),r.hasEncoding&&!this.isSymbolicFont&&(3===Pe&&1===Te||1===Pe&&0===Te))for(var Re=(0,s.getGlyphsUnicode)(),De=0;De<256;De++){var Ne=void 0;if(Ne=void 0!==this.differences[De]?this.differences[De]:Ee.length&&""!==Ee[De]?Ee[De]:l.StandardEncoding[De],Ne){var Le=(0,i.recoverGlyphName)(Ne,Re),Be=void 0;if(3===Pe&&1===Te?Be=Re[Le]:1===Pe&&0===Te&&(Be=l.MacRomanEncoding.indexOf(Le)),void 0===Be){if(!r.glyphNames&&r.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof u.IdentityToUnicodeMap)){var je=this.toUnicode.get(De);je&&(Be=je.codePointAt(0))}if(void 0===Be)continue}for(var Ue=0;Ue<Ie;++Ue)if(Oe[Ue].charCode===Be){Se[De]=Oe[Ue].glyphId;break}}}else if(0===Pe){for(var qe=0;qe<Ie;++qe)Se[Oe[qe].charCode]=Oe[qe].glyphId;Me=!0}else for(var Ge=0;Ge<Ie;++Ge){var He=Oe[Ge].charCode;3===Pe&&He>=61440&&He<=61695&&(He&=255),Se[He]=Oe[Ge].glyphId}if(r.glyphNames&&(Ee.length||this.differences.length))for(var Xe=0;Xe<256;++Xe)if(Me||void 0===Se[Xe]){var $e=this.differences[Xe]||Ee[Xe];if($e){var ze=r.glyphNames.indexOf($e);ze>0&&xe(ze)&&(Se[Xe]=ze)}}}0===Se.length&&(Se[0]=0);var We=fe-1;if(pe||(We=0),!r.cssFontInfo){var Ve=W(Se,xe,We,this.toUnicode);this.toFontChar=Ve.toFontChar,O.cmap={tag:"cmap",data:Y(Ve.charCodeToGlyphId,Ve.toUnicodeExtraMap,fe)},O["OS/2"]&&K(O["OS/2"],t)||(O["OS/2"]={tag:"OS/2",data:J(r,Ve.charCodeToGlyphId,_e)})}if(!X)try{N=new y.Stream(O["CFF "].data);var Ye=new n.CFFParser(N,r,i.SEAC_ANALYSIS_ENABLED);I=Ye.parse(),I.duplicateFirstGlyph();var Ke=new n.CFFCompiler(I);O["CFF "].data=Ke.compile()}catch(et){(0,a.warn)("Failed to compile font "+r.loadedName)}if(O.name){var Je=F(O.name);O.name.data=ee(e,Je),this.psName=Je[0][6]||null}else O.name={tag:"name",data:ee(this.name)};var Ze=new g.OpenTypeFileBuilder(T.version);for(var Qe in O)Ze.addTable(Qe,O[Qe].data);return Ze.toArray()}},{key:"convert",value:function(e,t,r){r.fixedPitch=!1,r.builtInEncoding&&T(r,r.builtInEncoding);var n=1;t instanceof h.CFFFont&&(n=t.numGlyphs-1);var o=t.getGlyphMapping(r),s=null,c=o,u=null;r.cssFontInfo||(s=W(o,t.hasGlyphId.bind(t),n,this.toUnicode),this.toFontChar=s.toFontChar,c=s.charCodeToGlyphId,u=s.toUnicodeExtraMap);var d=t.numGlyphs;function f(e,t){var r=null;for(var a in e)t===e[a]&&(r||(r=[]),r.push(0|a));return r}function p(e,t){for(var r in e)if(t===e[r])return 0|r;return s.charCodeToGlyphId[s.nextAvailableFontCharCode]=t,s.nextAvailableFontCharCode++}var v=t.seacs;if(s&&i.SEAC_ANALYSIS_ENABLED&&v&&v.length){var m=r.fontMatrix||a.FONT_IDENTITY_MATRIX,y=t.getCharset(),b=Object.create(null);for(var k in v){k|=0;var w=v[k],_=l.StandardEncoding[w[2]],S=l.StandardEncoding[w[3]],x=y.indexOf(_),A=y.indexOf(S);if(!(x<0||A<0)){var C={x:w[0]*m[0]+w[1]*m[2]+m[4],y:w[0]*m[1]+w[1]*m[3]+m[5]},F=f(o,k);if(F)for(var P=0,O=F.length;P<O;P++){var I=F[P],E=s.charCodeToGlyphId,M=p(E,x),R=p(E,A);b[I]={baseFontCharCode:M,accentFontCharCode:R,accentOffset:C}}}}r.seacMap=b}var D=1/(r.fontMatrix||a.FONT_IDENTITY_MATRIX)[0],B=new g.OpenTypeFileBuilder("OTTO");return B.addTable("CFF ",t.data),B.addTable("OS/2",J(r,c)),B.addTable("cmap",Y(c,u,d)),B.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+L(D)+"\0\0\0\0\v~'\0\0\0\0\v~'\0\0"+L(r.descent)+"ÿ"+L(r.ascent)+N(r.italicAngle?2:0)+"\0\0\0\0\0\0\0"),B.addTable("hhea","\0\0\0"+L(r.ascent)+L(r.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+L(r.capHeight)+L(Math.tan(r.italicAngle)*r.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+N(d)),B.addTable("hmtx",function(){for(var e=t.charstrings,r=t.cff?t.cff.widths:null,a="\0\0\0\0",n=1,i=d;n<i;n++){var o=0;if(e){var s=e[n-1];o="width"in s?s.width:0}else r&&(o=Math.ceil(r[n]||0));a+=N(o)+N(0)}return a}()),B.addTable("maxp","\0\0P\0"+N(d)),B.addTable("name",ee(e)),B.addTable("post",Z(r)),B.toArray()}},{key:"spaceWidth",get:function(){for(var e,t=["space","minus","one","i","I"],r=0,n=t.length;r<n;r++){var i=t[r];if(i in this.widths){e=this.widths[i];break}var o=(0,s.getGlyphsUnicode)(),l=o[i],c=0;if(this.composite&&this.cMap.contains(l)&&(c=this.cMap.lookup(l),"string"===typeof c&&(c=z(l,c))),!c&&this.toUnicode&&(c=this.toUnicode.charCodeOf(l)),c<=0&&(c=l),e=this.widths[c],e)break}return e=e||this.defaultWidth,(0,a.shadow)(this,"spaceWidth",e)}},{key:"_charToGlyph",value:function(e){var t,r,n,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=e;this.cMap&&this.cMap.contains(e)&&(s=this.cMap.lookup(e),"string"===typeof s&&(s=z(e,s))),r=this.widths[s],"number"!==typeof r&&(r=this.defaultWidth);var l=this.vmetrics&&this.vmetrics[s],c=this.toUnicode.get(e)||e;"number"===typeof c&&(c=String.fromCharCode(c));var u=void 0!==this.toFontChar[e];if(t=this.toFontChar[e]||e,this.missingFile){var h=this.differences[e]||this.defaultEncoding[e];".notdef"!==h&&""!==h||"Type1"!==this.type||(t=32),t=(0,o.mapSpecialUnicodeValues)(t)}this.isType3Font&&(n=t);var d=null;if(this.seacMap&&this.seacMap[e]){u=!0;var f=this.seacMap[e];t=f.baseFontCharCode,d={fontChar:String.fromCodePoint(f.accentFontCharCode),offset:f.accentOffset}}var p="";"number"===typeof t&&(t<=1114111?p=String.fromCodePoint(t):(0,a.warn)("charToGlyph - invalid fontCharCode: ".concat(t)));var v=this._glyphCache[e];return v&&v.matchesForCache(e,p,c,d,r,l,n,i,u)||(v=new I(e,p,c,d,r,l,n,i,u),this._glyphCache[e]=v),v}},{key:"charsToGlyphs",value:function(e){var t=this._charsCache[e];if(t)return t;if(t=[],this.cMap){var r=Object.create(null),a=e.length,n=0;while(n<a){this.cMap.readCharCode(e,n,r);var i=r.charcode,o=r.length;n+=o;var s=this._charToGlyph(i,1===o&&32===e.charCodeAt(n-1));t.push(s)}}else for(var l=0,c=e.length;l<c;++l){var u=e.charCodeAt(l),h=this._charToGlyph(u,32===u);t.push(h)}return this._charsCache[e]=t}},{key:"getCharPositions",value:function(e){var t=[];if(this.cMap){var r=Object.create(null),a=0;while(a<e.length){this.cMap.readCharCode(e,a,r);var n=r.length;t.push([a,a+n]),a+=n}}else for(var i=0,o=e.length;i<o;++i)t.push([i,i+1]);return t}},{key:"glyphCacheValues",get:function(){return Object.values(this._glyphCache)}},{key:"encodeString",value:function(e){for(var t=this,r=[],a=[],n=function(){return r.length%2===1},i=this.toUnicode instanceof u.IdentityToUnicodeMap?function(e){return t.toUnicode.charCodeOf(e)}:function(e){return t.toUnicode.charCodeOf(String.fromCodePoint(e))},o=0,s=e.length;o<s;o++){var l=e.codePointAt(o);if(l>55295&&(l<57344||l>65533)&&o++,this.toUnicode){var c=i(l);if(-1!==c){n()&&(r.push(a.join("")),a.length=0);for(var h=this.cMap?this.cMap.getCharCodeLength(c):1,d=h-1;d>=0;d--)a.push(String.fromCharCode(c>>8*d&255));continue}}n()||(r.push(a.join("")),a.length=0),a.push(String.fromCodePoint(l))}return r.push(a.join("")),r}}]),e}();t.Font=te;var re=function(){function e(t){_(this,e),this.error=t,this.loadedName="g_font_error",this.missingFile=!0}return S(e,[{key:"charsToGlyphs",value:function(){return[]}},{key:"encodeString",value:function(e){return[e]}},{key:"exportData",value:function(){return{error:this.error}}}]),e}();t.ErrorFont=re},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CFFTopDict=t.CFFStrings=t.CFFStandardStrings=t.CFFPrivateDict=t.CFFParser=t.CFFIndex=t.CFFHeader=t.CFFFDSelect=t.CFFCompiler=t.CFFCharset=t.CFF=void 0;var a=r(2),n=r(161),i=r(162),o=10,s=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"];t.CFFStandardStrings=s;var l=391,c=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],u=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:"sub",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:"div",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn:function(e,t){e[t-1]=-e[t-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]*e[t-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}],h=function(){function e(t,r,a){_(this,e),this.bytes=t.getBytes(),this.properties=r,this.seacAnalysisEnabled=!!a}return S(e,[{key:"parse",value:function(){var e=this.properties,t=new d;this.cff=t;var r=this.parseHeader(),a=this.parseIndex(r.endPos),n=this.parseIndex(a.endPos),i=this.parseIndex(n.endPos),o=this.parseIndex(i.endPos),s=this.parseDict(n.obj.get(0)),l=this.createDict(x,s,t.strings);t.header=r.obj,t.names=this.parseNameIndex(a.obj),t.strings=this.parseStringIndex(i.obj),t.topDict=l,t.globalSubrIndex=o.obj,this.parsePrivateDict(t.topDict),t.isCIDFont=l.hasName("ROS");var c=l.getByName("CharStrings"),u=this.parseIndex(c).obj,h=l.getByName("FontMatrix");h&&(e.fontMatrix=h);var f,p,v=l.getByName("FontBBox");if(v&&(e.ascent=Math.max(v[3],v[1]),e.descent=Math.min(v[1],v[3]),e.ascentScaled=!0),t.isCIDFont){for(var g=this.parseIndex(l.getByName("FDArray")).obj,m=0,y=g.count;m<y;++m){var b=g.get(m),k=this.createDict(x,this.parseDict(b),t.strings);this.parsePrivateDict(k),t.fdArray.push(k)}p=null,f=this.parseCharsets(l.getByName("charset"),u.count,t.strings,!0),t.fdSelect=this.parseFDSelect(l.getByName("FDSelect"),u.count)}else f=this.parseCharsets(l.getByName("charset"),u.count,t.strings,!1),p=this.parseEncoding(l.getByName("Encoding"),e,t.strings,f.charset);t.charset=f,t.encoding=p;var w=this.parseCharStrings({charStrings:u,localSubrIndex:l.privateDict.subrsIndex,globalSubrIndex:o.obj,fdSelect:t.fdSelect,fdArray:t.fdArray,privateDict:l.privateDict});return t.charStrings=w.charStrings,t.seacs=w.seacs,t.widths=w.widths,t}},{key:"parseHeader",value:function(){var e=this.bytes,t=e.length,r=0;while(r<t&&1!==e[r])++r;if(r>=t)throw new a.FormatError("Invalid CFF header");0!==r&&((0,a.info)("cff data is shifted"),e=e.subarray(r),this.bytes=e);var n=e[0],i=e[1],o=e[2],s=e[3],l=new f(n,i,o,s);return{obj:l,endPos:o}}},{key:"parseDict",value:function(e){var t=0;function r(){var r=e[t++];return 30===r?n():28===r?(r=e[t++],r=(r<<24|e[t++]<<16)>>16,r):29===r?(r=e[t++],r=r<<8|e[t++],r=r<<8|e[t++],r=r<<8|e[t++],r):r>=32&&r<=246?r-139:r>=247&&r<=250?256*(r-247)+e[t++]+108:r>=251&&r<=254?-256*(r-251)-e[t++]-108:((0,a.warn)('CFFParser_parseDict: "'+r+'" is a reserved command.'),NaN)}function n(){var r="",a=15,n=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],i=e.length;while(t<i){var o=e[t++],s=o>>4,l=15&o;if(s===a)break;if(r+=n[s],l===a)break;r+=n[l]}return parseFloat(r)}var i=[],o=[];t=0;var s=e.length;while(t<s){var l=e[t];l<=21?(12===l&&(l=l<<8|e[++t]),o.push([l,i]),i=[],++t):i.push(r())}return o}},{key:"parseIndex",value:function(e){var t,r,a=new y,n=this.bytes,i=n[e++]<<8|n[e++],o=[],s=e;if(0!==i){var l=n[e++],c=e+(i+1)*l-1;for(t=0,r=i+1;t<r;++t){for(var u=0,h=0;h<l;++h)u<<=8,u+=n[e++];o.push(c+u)}s=o[i]}for(t=0,r=o.length-1;t<r;++t){var d=o[t],f=o[t+1];a.add(n.subarray(d,f))}return{obj:a,endPos:s}}},{key:"parseNameIndex",value:function(e){for(var t=[],r=0,n=e.count;r<n;++r){var i=e.get(r);t.push((0,a.bytesToString)(i))}return t}},{key:"parseStringIndex",value:function(e){for(var t=new m,r=0,n=e.count;r<n;++r){var i=e.get(r);t.add((0,a.bytesToString)(i))}return t}},{key:"createDict",value:function(e,t,r){for(var a=new e(r),n=0,i=t.length;n<i;++n){var o=t[n],s=o[0],l=o[1];a.setByKey(s,l)}return a}},{key:"parseCharString",value:function(e,t,r,n){if(!t||e.callDepth>o)return!1;for(var i=e.stackSize,s=e.stack,l=t.length,h=0;h<l;){var d=t[h++],f=null;if(12===d){var p=t[h++];0===p?(t[h-2]=139,t[h-1]=22,i=0):f=u[p]}else if(28===d)s[i]=(t[h]<<24|t[h+1]<<16)>>16,h+=2,i++;else if(14===d){if(i>=4&&(i-=4,this.seacAnalysisEnabled))return e.seac=s.slice(i,i+4),!1;f=c[d]}else if(d>=32&&d<=246)s[i]=d-139,i++;else if(d>=247&&d<=254)s[i]=d<251?(d-247<<8)+t[h]+108:-(d-251<<8)-t[h]-108,h++,i++;else if(255===d)s[i]=(t[h]<<24|t[h+1]<<16|t[h+2]<<8|t[h+3])/65536,h+=4,i++;else if(19===d||20===d)e.hints+=i>>1,h+=e.hints+7>>3,i%=2,f=c[d];else{if(10===d||29===d){var v=void 0;if(v=10===d?r:n,!v)return f=c[d],(0,a.warn)("Missing subrsIndex for "+f.id),!1;var g=32768;v.count<1240?g=107:v.count<33900&&(g=1131);var m=s[--i]+g;if(m<0||m>=v.count||isNaN(m))return f=c[d],(0,a.warn)("Out of bounds subrIndex for "+f.id),!1;e.stackSize=i,e.callDepth++;var y=this.parseCharString(e,v.get(m),r,n);if(!y)return!1;e.callDepth--,i=e.stackSize;continue}if(11===d)return e.stackSize=i,!0;0===d&&h===t.length?(t[h-1]=14,f=c[14]):f=c[d]}if(f){if(f.stem&&(e.hints+=i>>1,3===d||23===d?e.hasVStems=!0:!e.hasVStems||1!==d&&18!==d||((0,a.warn)("CFF stem hints are in wrong order"),t[h-1]=1===d?3:23)),"min"in f&&!e.undefStack&&i<f.min)return(0,a.warn)("Not enough parameters for "+f.id+"; actual: "+i+", expected: "+f.min),0===i&&(t[h-1]=14,!0);e.firstStackClearing&&f.stackClearing&&(e.firstStackClearing=!1,i-=f.min,i>=2&&f.stem?i%=2:i>1&&(0,a.warn)("Found too many parameters for stack-clearing command"),i>0&&(e.width=s[i-1])),"stackDelta"in f?("stackFn"in f&&f.stackFn(s,i),i+=f.stackDelta):f.stackClearing?i=0:f.resetStack?(i=0,e.undefStack=!1):f.undefStack&&(i=0,e.undefStack=!0,e.firstStackClearing=!1)}}return e.stackSize=i,!0}},{key:"parseCharStrings",value:function(e){for(var t=e.charStrings,r=e.localSubrIndex,n=e.globalSubrIndex,i=e.fdSelect,o=e.fdArray,s=e.privateDict,l=[],c=[],u=t.count,h=0;h<u;h++){var d=t.get(h),f={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},p=!0,v=null,g=s;if(i&&o.length){var m=i.getFDIndex(h);-1===m&&((0,a.warn)("Glyph index is not in fd select."),p=!1),m>=o.length&&((0,a.warn)("Invalid fd index for glyph index."),p=!1),p&&(g=o[m].privateDict,v=g.subrsIndex)}else r&&(v=r);if(p&&(p=this.parseCharString(f,d,v,n)),null!==f.width){var y=g.getByName("nominalWidthX");c[h]=y+f.width}else{var b=g.getByName("defaultWidthX");c[h]=b}null!==f.seac&&(l[h]=f.seac),p||t.set(h,new Uint8Array([14]))}return{charStrings:t,seacs:l,widths:c}}},{key:"emptyPrivateDictionary",value:function(e){var t=this.createDict(C,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t}},{key:"parsePrivateDict",value:function(e){if(e.hasName("Private")){var t=e.getByName("Private");if(Array.isArray(t)&&2===t.length){var r=t[0],a=t[1];if(0===r||a>=this.bytes.length)this.emptyPrivateDictionary(e);else{var n=a+r,i=this.bytes.subarray(a,n),o=this.parseDict(i),s=this.createDict(C,o,e.strings);if(e.privateDict=s,s.getByName("Subrs")){var l=s.getByName("Subrs"),c=a+l;if(0===l||c>=this.bytes.length)this.emptyPrivateDictionary(e);else{var u=this.parseIndex(c);s.subrsIndex=u.obj}}}}else e.removeByName("Private")}else this.emptyPrivateDictionary(e)}},{key:"parseCharsets",value:function(e,t,r,i){if(0===e)return new P(!0,F.ISO_ADOBE,n.ISOAdobeCharset);if(1===e)return new P(!0,F.EXPERT,n.ExpertCharset);if(2===e)return new P(!0,F.EXPERT_SUBSET,n.ExpertSubsetCharset);var o,s,l,c=this.bytes,u=e,h=c[e++],d=[i?0:".notdef"];switch(t-=1,h){case 0:for(l=0;l<t;l++)o=c[e++]<<8|c[e++],d.push(i?o:r.get(o));break;case 1:while(d.length<=t)for(o=c[e++]<<8|c[e++],s=c[e++],l=0;l<=s;l++)d.push(i?o++:r.get(o++));break;case 2:while(d.length<=t)for(o=c[e++]<<8|c[e++],s=c[e++]<<8|c[e++],l=0;l<=s;l++)d.push(i?o++:r.get(o++));break;default:throw new a.FormatError("Unknown charset format")}var f=e,p=c.subarray(u,f);return new P(!1,h,d,p)}},{key:"parseEncoding",value:function(e,t,r,n){var o,s,l,c=Object.create(null),u=this.bytes,h=!1,d=null;function f(){var t=u[e++];for(s=0;s<t;s++){var a=u[e++],i=(u[e++]<<8)+(255&u[e++]);c[a]=n.indexOf(r.get(i))}}if(0===e||1===e){h=!0,o=e;var p=e?i.ExpertEncoding:i.StandardEncoding;for(s=0,l=n.length;s<l;s++){var v=p.indexOf(n[s]);-1!==v&&(c[v]=s)}}else{var g=e;switch(o=u[e++],127&o){case 0:var m=u[e++];for(s=1;s<=m;s++)c[u[e++]]=s;break;case 1:var y=u[e++],b=1;for(s=0;s<y;s++)for(var k=u[e++],w=u[e++],_=k;_<=k+w;_++)c[_]=b++;break;default:throw new a.FormatError("Unknown encoding format: ".concat(o," in CFF"))}var S=e;128&o&&(u[g]&=127,f()),d=u.subarray(g,S)}return o&=127,new T(h,o,c,d)}},{key:"parseFDSelect",value:function(e,t){var r,n=this.bytes,i=n[e++],o=[];switch(i){case 0:for(r=0;r<t;++r){var s=n[e++];o.push(s)}break;case 3:var l=n[e++]<<8|n[e++];for(r=0;r<l;++r){var c=n[e++]<<8|n[e++];0===r&&0!==c&&((0,a.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),c=0);for(var u=n[e++],h=n[e]<<8|n[e+1],d=c;d<h;++d)o.push(u)}e+=2;break;default:throw new a.FormatError('parseFDSelect: Unknown format "'.concat(i,'".'))}if(o.length!==t)throw new a.FormatError("parseFDSelect: Invalid font data.");return new O(i,o)}}]),e}();t.CFFParser=h;var d=function(){function e(){_(this,e),this.header=null,this.names=[],this.topDict=null,this.strings=new m,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}return S(e,[{key:"duplicateFirstGlyph",value:function(){if(this.charStrings.count>=65535)(0,a.warn)("Not enough space in charstrings to duplicate first glyph.");else{var e=this.charStrings.get(0);this.charStrings.add(e),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}}},{key:"hasGlyphId",value:function(e){if(e<0||e>=this.charStrings.count)return!1;var t=this.charStrings.get(e);return t.length>0}}]),e}();t.CFF=d;var f=S((function e(t,r,a,n){_(this,e),this.major=t,this.minor=r,this.hdrSize=a,this.offSize=n}));t.CFFHeader=f;var m=function(){function e(){_(this,e),this.strings=[]}return S(e,[{key:"get",value:function(e){return e>=0&&e<=l-1?s[e]:e-l<=this.strings.length?this.strings[e-l]:s[0]}},{key:"getSID",value:function(e){var t=s.indexOf(e);return-1!==t?t:(t=this.strings.indexOf(e),-1!==t?t+l:-1)}},{key:"add",value:function(e){this.strings.push(e)}},{key:"count",get:function(){return this.strings.length}}]),e}();t.CFFStrings=m;var y=function(){function e(){_(this,e),this.objects=[],this.length=0}return S(e,[{key:"add",value:function(e){this.length+=e.length,this.objects.push(e)}},{key:"set",value:function(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t}},{key:"get",value:function(e){return this.objects[e]}},{key:"count",get:function(){return this.objects.length}}]),e}();t.CFFIndex=y;var k=function(){function e(t,r){_(this,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=r,this.values=Object.create(null)}return S(e,[{key:"setByKey",value:function(e,t){if(!(e in this.keyToNameMap))return!1;var r=t.length;if(0===r)return!0;for(var n=0;n<r;n++)if(isNaN(t[n]))return(0,a.warn)('Invalid CFFDict value: "'+t+'" for key "'+e+'".'),!0;var i=this.types[e];return"num"!==i&&"sid"!==i&&"offset"!==i||(t=t[0]),this.values[e]=t,!0}},{key:"setByName",value:function(e,t){if(!(e in this.nameToKeyMap))throw new a.FormatError('Invalid dictionary name "'.concat(e,'"'));this.values[this.nameToKeyMap[e]]=t}},{key:"hasName",value:function(e){return this.nameToKeyMap[e]in this.values}},{key:"getByName",value:function(e){if(!(e in this.nameToKeyMap))throw new a.FormatError("Invalid dictionary name ".concat(e,'"'));var t=this.nameToKeyMap[e];return t in this.values?this.values[t]:this.defaults[t]}},{key:"removeByName",value:function(e){delete this.values[this.nameToKeyMap[e]]}}],[{key:"createTables",value:function(e){for(var t={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},r=0,a=e.length;r<a;++r){var n=e[r],i=Array.isArray(n[0])?(n[0][0]<<8)+n[0][1]:n[0];t.keyToNameMap[i]=n[1],t.nameToKeyMap[n[1]]=i,t.types[i]=n[2],t.defaults[i]=n[3],t.opcodes[i]=Array.isArray(n[0])?n[0]:[n[0]],t.order.push(i)}return t}}]),e}(),w=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]],x=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,r.tables,e),a.privateDict=null,a}return S(r,null,[{key:"tables",get:function(){return(0,a.shadow)(this,"tables",this.createTables(w))}}]),r}(k);t.CFFTopDict=x;var A=[[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]],C=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,r.tables,e),a.subrsIndex=null,a}return S(r,null,[{key:"tables",get:function(){return(0,a.shadow)(this,"tables",this.createTables(A))}}]),r}(k);t.CFFPrivateDict=C;var F={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},P=S((function e(t,r,a,n){_(this,e),this.predefined=t,this.format=r,this.charset=a,this.raw=n}));t.CFFCharset=P;var T=S((function e(t,r,a,n){_(this,e),this.predefined=t,this.format=r,this.encoding=a,this.raw=n})),O=function(){function e(t,r){_(this,e),this.format=t,this.fdSelect=r}return S(e,[{key:"getFDIndex",value:function(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}}]),e}();t.CFFFDSelect=O;var I=function(){function e(){_(this,e),this.offsets=Object.create(null)}return S(e,[{key:"isTracking",value:function(e){return e in this.offsets}},{key:"track",value:function(e,t){if(e in this.offsets)throw new a.FormatError("Already tracking location of ".concat(e));this.offsets[e]=t}},{key:"offset",value:function(e){for(var t in this.offsets)this.offsets[t]+=e}},{key:"setEntryLocation",value:function(e,t,r){if(!(e in this.offsets))throw new a.FormatError("Not tracking location of ".concat(e));for(var n=r.data,i=this.offsets[e],o=5,s=0,l=t.length;s<l;++s){var c=s*o+i,u=c+1,h=c+2,d=c+3,f=c+4;if(29!==n[c]||0!==n[u]||0!==n[h]||0!==n[d]||0!==n[f])throw new a.FormatError("writing to an offset that is not empty");var p=t[s];n[c]=29,n[u]=p>>24&255,n[h]=p>>16&255,n[d]=p>>8&255,n[f]=255&p}}}]),e}(),E=function(){function e(t){_(this,e),this.cff=t}return S(e,[{key:"compile",value:function(){var e=this.cff,t={data:[],length:0,add:function(e){this.data=this.data.concat(e),this.length=this.data.length}},r=this.compileHeader(e.header);t.add(r);var n=this.compileNameIndex(e.names);if(t.add(n),e.isCIDFont&&e.topDict.hasName("FontMatrix")){var i=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(var o=0,s=e.fdArray.length;o<s;o++){var l=e.fdArray[o],c=i.slice(0);l.hasName("FontMatrix")&&(c=a.Util.transform(c,l.getByName("FontMatrix"))),l.setByName("FontMatrix",c)}}var u=e.topDict.getByName("XUID");u&&u.length>16&&e.topDict.removeByName("XUID"),e.topDict.setByName("charset",0);var h=this.compileTopDicts([e.topDict],t.length,e.isCIDFont);t.add(h.output);var d=h.trackers[0],f=this.compileStringIndex(e.strings.strings);t.add(f);var p=this.compileIndex(e.globalSubrIndex);if(t.add(p),e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)d.setEntryLocation("Encoding",[e.encoding.format],t);else{var v=this.compileEncoding(e.encoding);d.setEntryLocation("Encoding",[t.length],t),t.add(v)}var g=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);d.setEntryLocation("charset",[t.length],t),t.add(g);var m=this.compileCharStrings(e.charStrings);if(d.setEntryLocation("CharStrings",[t.length],t),t.add(m),e.isCIDFont){d.setEntryLocation("FDSelect",[t.length],t);var y=this.compileFDSelect(e.fdSelect);t.add(y),h=this.compileTopDicts(e.fdArray,t.length,!0),d.setEntryLocation("FDArray",[t.length],t),t.add(h.output);var b=h.trackers;this.compilePrivateDicts(e.fdArray,b,t)}return this.compilePrivateDicts([e.topDict],[d],t),t.add([0]),t.data}},{key:"encodeNumber",value:function(e){return Number.isInteger(e)?this.encodeInteger(e):this.encodeFloat(e)}},{key:"encodeFloat",value:function(t){var r=t.toString(),a=e.EncodeFloatRegExp.exec(r);if(a){var n=parseFloat("1e"+((a[2]?+a[2]:0)+a[1].length));r=(Math.round(t*n)/n).toString()}var i,o,s="";for(i=0,o=r.length;i<o;++i){var l=r[i];s+="e"===l?"-"===r[++i]?"c":"b":"."===l?"a":"-"===l?"e":l}s+=1&s.length?"f":"ff";var c=[30];for(i=0,o=s.length;i<o;i+=2)c.push(parseInt(s.substring(i,i+2),16));return c}},{key:"encodeInteger",value:function(e){var t;return e>=-107&&e<=107?t=[e+139]:e>=108&&e<=1131?(e-=108,t=[247+(e>>8),255&e]):e>=-1131&&e<=-108?(e=-e-108,t=[251+(e>>8),255&e]):t=e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e],t}},{key:"compileHeader",value:function(e){return[e.major,e.minor,4,e.offSize]}},{key:"compileNameIndex",value:function(e){for(var t=new y,r=0,n=e.length;r<n;++r){for(var i=e[r],o=Math.min(i.length,127),s=new Array(o),l=0;l<o;l++){var c=i[l];(c<"!"||c>"~"||"["===c||"]"===c||"("===c||")"===c||"{"===c||"}"===c||"<"===c||">"===c||"/"===c||"%"===c)&&(c="_"),s[l]=c}s=s.join(""),""===s&&(s="Bad_Font_Name"),t.add((0,a.stringToBytes)(s))}return this.compileIndex(t)}},{key:"compileTopDicts",value:function(e,t,r){for(var a=[],n=new y,i=0,o=e.length;i<o;++i){var s=e[i];r&&(s.removeByName("CIDFontVersion"),s.removeByName("CIDFontRevision"),s.removeByName("CIDFontType"),s.removeByName("CIDCount"),s.removeByName("UIDBase"));var l=new I,c=this.compileDict(s,l);a.push(l),n.add(c),l.offset(t)}return n=this.compileIndex(n,a),{trackers:a,output:n}}},{key:"compilePrivateDicts",value:function(e,t,r){for(var n=0,i=e.length;n<i;++n){var o=e[n],s=o.privateDict;if(!s||!o.hasName("Private"))throw new a.FormatError("There must be a private dictionary.");var l=new I,c=this.compileDict(s,l),u=r.length;if(l.offset(u),c.length||(u=0),t[n].setEntryLocation("Private",[c.length,u],r),r.add(c),s.subrsIndex&&s.hasName("Subrs")){var h=this.compileIndex(s.subrsIndex);l.setEntryLocation("Subrs",[c.length],r),r.add(h)}}}},{key:"compileDict",value:function(e,t){var r,n=[],i=b(e.order);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(o in e.values){var s=e.values[o],l=e.types[o];if(Array.isArray(l)||(l=[l]),Array.isArray(s)||(s=[s]),0!==s.length){for(var c=0,u=l.length;c<u;++c){var h=l[c],d=s[c];switch(h){case"num":case"sid":n.push.apply(n,p(this.encodeNumber(d)));break;case"offset":var f=e.keyToNameMap[o];t.isTracking(f)||t.track(f,n.length),n.push(29,0,0,0,0);break;case"array":case"delta":n.push.apply(n,p(this.encodeNumber(d)));for(var v=1,g=s.length;v<g;++v)n.push.apply(n,p(this.encodeNumber(s[v])));break;default:throw new a.FormatError("Unknown data type of ".concat(h))}}n.push.apply(n,p(e.opcodes[o]))}}}}catch(m){i.e(m)}finally{i.f()}return n}},{key:"compileStringIndex",value:function(e){for(var t=new y,r=0,n=e.length;r<n;++r)t.add((0,a.stringToBytes)(e[r]));return this.compileIndex(t)}},{key:"compileGlobalSubrIndex",value:function(){var e=this.cff.globalSubrIndex;this.out.writeByteArray(this.compileIndex(e))}},{key:"compileCharStrings",value:function(e){for(var t=new y,r=0;r<e.count;r++){var a=e.get(r);0!==a.length?t.add(a):t.add(new Uint8Array([139,14]))}return this.compileIndex(t)}},{key:"compileCharset",value:function(e,t,r,n){var i,o=t-1;if(n)i=new Uint8Array([2,0,0,o>>8&255,255&o]);else{var s=1+2*o;i=new Uint8Array(s),i[0]=0;for(var l=0,c=e.charset.length,u=!1,h=1;h<i.length;h+=2){var d=0;if(l<c){var f=e.charset[l++];d=r.getSID(f),-1===d&&(d=0,u||(u=!0,(0,a.warn)("Couldn't find ".concat(f," in CFF strings"))))}i[h]=d>>8&255,i[h+1]=255&d}}return this.compileTypedArray(i)}},{key:"compileEncoding",value:function(e){return this.compileTypedArray(e.raw)}},{key:"compileFDSelect",value:function(e){var t,r,a=e.format;switch(a){case 0:for(t=new Uint8Array(1+e.fdSelect.length),t[0]=a,r=0;r<e.fdSelect.length;r++)t[r+1]=e.fdSelect[r];break;case 3:var n=0,i=e.fdSelect[0],o=[a,0,0,n>>8&255,255&n,i];for(r=1;r<e.fdSelect.length;r++){var s=e.fdSelect[r];s!==i&&(o.push(r>>8&255,255&r,s),i=s)}var l=(o.length-3)/3;o[1]=l>>8&255,o[2]=255&l,o.push(r>>8&255,255&r),t=new Uint8Array(o);break}return this.compileTypedArray(t)}},{key:"compileTypedArray",value:function(e){for(var t=[],r=0,a=e.length;r<a;++r)t[r]=e[r];return t}},{key:"compileIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=e.objects,a=r.length;if(0===a)return[0,0];var n,i,o=[a>>8&255,255&a],s=1;for(n=0;n<a;++n)s+=r[n].length;i=s<256?1:s<65536?2:s<16777216?3:4,o.push(i);var l=1;for(n=0;n<a+1;n++)1===i?o.push(255&l):2===i?o.push(l>>8&255,255&l):3===i?o.push(l>>16&255,l>>8&255,255&l):o.push(l>>>24&255,l>>16&255,l>>8&255,255&l),r[n]&&(l+=r[n].length);for(n=0;n<a;n++){t[n]&&t[n].offset(o.length);for(var c=0,u=r[n].length;c<u;c++)o.push(r[n][c])}return o}}],[{key:"EncodeFloatRegExp",get:function(){return(0,a.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}}]),e}();t.CFFCompiler=E},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ISOAdobeCharset=t.ExpertSubsetCharset=t.ExpertCharset=void 0;var r=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"];t.ISOAdobeCharset=r;var a=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];t.ExpertCharset=a;var n=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"];t.ExpertSubsetCharset=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZapfDingbatsEncoding=t.WinAnsiEncoding=t.SymbolSetEncoding=t.StandardEncoding=t.MacRomanEncoding=t.ExpertEncoding=void 0,t.getEncoding=c;var r=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];t.ExpertEncoding=r;var a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""],n=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"];t.MacRomanEncoding=n;var i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls","","","",""];t.StandardEncoding=i;var o=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"];t.WinAnsiEncoding=o;var s=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""];t.SymbolSetEncoding=s;var l=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];function c(e){switch(e){case"WinAnsiEncoding":return o;case"StandardEncoding":return i;case"MacRomanEncoding":return n;case"SymbolSetEncoding":return s;case"ZapfDingbatsEncoding":return l;case"ExpertEncoding":return r;case"MacExpertEncoding":return a;default:return null}}t.ZapfDingbatsEncoding=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SEAC_ANALYSIS_ENABLED=t.MacStandardGlyphOrdering=t.FontFlags=void 0,t.getFontType=u,t.normalizeFontName=f,t.recoverGlyphName=h,t.type1FontGlyphMapping=d;var a=r(2),n=r(162),i=r(164),o=r(165),s=!0;t.SEAC_ANALYSIS_ENABLED=s;var l={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};t.FontFlags=l;var c=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function u(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];switch(e){case"Type1":return r?a.FontType.TYPE1STANDARD:"Type1C"===t?a.FontType.TYPE1C:a.FontType.TYPE1;case"CIDFontType0":return"CIDFontType0C"===t?a.FontType.CIDFONTTYPE0C:a.FontType.CIDFONTTYPE0;case"OpenType":return a.FontType.OPENTYPE;case"TrueType":return a.FontType.TRUETYPE;case"CIDFontType2":return a.FontType.CIDFONTTYPE2;case"MMType1":return a.FontType.MMTYPE1;case"Type0":return a.FontType.TYPE0;default:return a.FontType.UNKNOWN}}function h(e,t){if(void 0!==t[e])return e;var r=(0,o.getUnicodeForGlyph)(e,t);if(-1!==r)for(var n in t)if(t[n]===r)return n;return(0,a.info)("Unable to recover a standard glyph name for: "+e),e}function d(e,t,r){var a,o,s,c=Object.create(null),u=!!(e.flags&l.Symbolic);if(e.isInternalFont)for(s=t,o=0;o<s.length;o++)a=r.indexOf(s[o]),c[o]=a>=0?a:0;else if(e.baseEncodingName)for(s=(0,n.getEncoding)(e.baseEncodingName),o=0;o<s.length;o++)a=r.indexOf(s[o]),c[o]=a>=0?a:0;else if(u)for(o in t)c[o]=t[o];else for(s=n.StandardEncoding,o=0;o<s.length;o++)a=r.indexOf(s[o]),c[o]=a>=0?a:0;var d,f=e.differences;if(f)for(o in f){var p=f[o];if(a=r.indexOf(p),-1===a){d||(d=(0,i.getGlyphsUnicode)());var v=h(p,d);v!==p&&(a=r.indexOf(v))}c[o]=a>=0?a:0}return c}function f(e){return e.replace(/[,_]/g,"-").replace(/\s/g,"")}t.MacStandardGlyphOrdering=c},function(e,t,r){"use strict";r.r(t),r.d(t,{getDingbatsGlyphsUnicode:function(){return i},getGlyphsUnicode:function(){return n}});var a=r(131),n=(0,a.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,"ffl",64260,"fi",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,"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]})),i=(0,a.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]}))},function(e,t,r){"use strict";r.r(t),r.d(t,{clearUnicodeCaches:function(){return v},getCharUnicodeCategory:function(){return p},getNormalizedUnicodes:function(){return u},getUnicodeForGlyph:function(){return o},getUnicodeRangeFor:function(){return l},mapSpecialUnicodeValues:function(){return i},reverseIfRtl:function(){return h}});var a=r(131),n=(0,a.getLookupTableFactory)((function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120}));function i(e){return e>=65520&&e<=65535?0:e>=62976&&e<=63743?n()[e]||e:173===e?45:e}function o(e,t){var r=t[e];if(void 0!==r)return r;if(!e)return-1;if("u"===e[0]){var a,n=e.length;if(7===n&&"n"===e[1]&&"i"===e[2])a=e.substring(3);else{if(!(n>=5&&n<=7))return-1;a=e.substring(1)}if(a===a.toUpperCase()&&(r=parseInt(a,16),r>=0))return r}return-1}var s=[{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 l(e){for(var t=0,r=s.length;t<r;t++){var a=s[t];if(e>=a.begin&&e<a.end)return t}return-1}function c(e){var t=s[13];return e>=t.begin&&e<t.end||(t=s[11],e>=t.begin&&e<t.end)}var u=(0,a.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 h(e){var t=e.length;if(t<=1||!c(e.charCodeAt(0)))return e;for(var r=[],a=t-1;a>=0;a--)r.push(e[a]);return r.join("")}var d=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),f=new Map;function p(e){var t=f.get(e);if(t)return t;var r=e.match(d),a={isWhitespace:!(!r||!r[1]),isZeroWidthDiacritic:!(!r||!r[2]),isInvisibleFormatMark:!(!r||!r[3])};return f.set(e,a),a}function v(){f.clear()}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSerifFonts=t.getNonStdFontMap=t.getGlyphMapForStandardFonts=t.getFontNameToFileMap=void 0,t.getStandardFontName=f,t.getSymbolsFonts=t.getSupplementalGlyphMapForCalibri=t.getSupplementalGlyphMapForArialBlack=t.getStdFontMap=void 0;var a=r(131),n=r(163),i=(0,a.getLookupTableFactory)((function(e){e["Times-Roman"]="Times-Roman",e.Helvetica="Helvetica",e.Courier="Courier",e.Symbol="Symbol",e["Times-Bold"]="Times-Bold",e["Helvetica-Bold"]="Helvetica-Bold",e["Courier-Bold"]="Courier-Bold",e.ZapfDingbats="ZapfDingbats",e["Times-Italic"]="Times-Italic",e["Helvetica-Oblique"]="Helvetica-Oblique",e["Courier-Oblique"]="Courier-Oblique",e["Times-BoldItalic"]="Times-BoldItalic",e["Helvetica-BoldOblique"]="Helvetica-BoldOblique",e["Courier-BoldOblique"]="Courier-BoldOblique",e.ArialNarrow="Helvetica",e["ArialNarrow-Bold"]="Helvetica-Bold",e["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",e["ArialNarrow-Italic"]="Helvetica-Oblique",e.ArialBlack="Helvetica",e["ArialBlack-Bold"]="Helvetica-Bold",e["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",e["ArialBlack-Italic"]="Helvetica-Oblique",e["Arial-Black"]="Helvetica",e["Arial-Black-Bold"]="Helvetica-Bold",e["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Black-Italic"]="Helvetica-Oblique",e.Arial="Helvetica",e["Arial-Bold"]="Helvetica-Bold",e["Arial-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Italic"]="Helvetica-Oblique",e.ArialMT="Helvetica",e["Arial-BoldItalicMT"]="Helvetica-BoldOblique",e["Arial-BoldMT"]="Helvetica-Bold",e["Arial-ItalicMT"]="Helvetica-Oblique",e.ArialUnicodeMS="Helvetica",e["ArialUnicodeMS-Bold"]="Helvetica-Bold",e["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",e["ArialUnicodeMS-Italic"]="Helvetica-Oblique",e["Courier-BoldItalic"]="Courier-BoldOblique",e["Courier-Italic"]="Courier-Oblique",e.CourierNew="Courier",e["CourierNew-Bold"]="Courier-Bold",e["CourierNew-BoldItalic"]="Courier-BoldOblique",e["CourierNew-Italic"]="Courier-Oblique",e["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",e["CourierNewPS-BoldMT"]="Courier-Bold",e["CourierNewPS-ItalicMT"]="Courier-Oblique",e.CourierNewPSMT="Courier",e["Helvetica-BoldItalic"]="Helvetica-BoldOblique",e["Helvetica-Italic"]="Helvetica-Oblique",e["Symbol-Bold"]="Symbol",e["Symbol-BoldItalic"]="Symbol",e["Symbol-Italic"]="Symbol",e.TimesNewRoman="Times-Roman",e["TimesNewRoman-Bold"]="Times-Bold",e["TimesNewRoman-BoldItalic"]="Times-BoldItalic",e["TimesNewRoman-Italic"]="Times-Italic",e.TimesNewRomanPS="Times-Roman",e["TimesNewRomanPS-Bold"]="Times-Bold",e["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",e["TimesNewRomanPS-BoldMT"]="Times-Bold",e["TimesNewRomanPS-Italic"]="Times-Italic",e["TimesNewRomanPS-ItalicMT"]="Times-Italic",e.TimesNewRomanPSMT="Times-Roman",e["TimesNewRomanPSMT-Bold"]="Times-Bold",e["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPSMT-Italic"]="Times-Italic"}));t.getStdFontMap=i;var o=(0,a.getLookupTableFactory)((function(e){e.Courier="FoxitFixed.pfb",e["Courier-Bold"]="FoxitFixedBold.pfb",e["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",e["Courier-Oblique"]="FoxitFixedItalic.pfb",e.Helvetica="FoxitSans.pfb",e["Helvetica-Bold"]="FoxitSansBold.pfb",e["Helvetica-BoldOblique"]="FoxitSansBoldItalic.pfb",e["Helvetica-Oblique"]="FoxitSansItalic.pfb",e["Times-Roman"]="FoxitSerif.pfb",e["Times-Bold"]="FoxitSerifBold.pfb",e["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",e["Times-Italic"]="FoxitSerifItalic.pfb",e.Symbol="FoxitSymbol.pfb",e.ZapfDingbats="FoxitDingbats.pfb",e["LiberationSans-Regular"]="LiberationSans-Regular.ttf",e["LiberationSans-Bold"]="LiberationSans-Bold.ttf",e["LiberationSans-Italic"]="LiberationSans-Italic.ttf",e["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"}));t.getFontNameToFileMap=o;var s=(0,a.getLookupTableFactory)((function(e){e.Calibri="Helvetica",e["Calibri-Bold"]="Helvetica-Bold",e["Calibri-BoldItalic"]="Helvetica-BoldOblique",e["Calibri-Italic"]="Helvetica-Oblique",e.CenturyGothic="Helvetica",e["CenturyGothic-Bold"]="Helvetica-Bold",e["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",e["CenturyGothic-Italic"]="Helvetica-Oblique",e.ComicSansMS="Comic Sans MS",e["ComicSansMS-Bold"]="Comic Sans MS-Bold",e["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",e["ComicSansMS-Italic"]="Comic Sans MS-Italic",e["ItcSymbol-Bold"]="Helvetica-Bold",e["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",e["ItcSymbol-Book"]="Helvetica",e["ItcSymbol-BookItalic"]="Helvetica-Oblique",e["ItcSymbol-Medium"]="Helvetica",e["ItcSymbol-MediumItalic"]="Helvetica-Oblique",e.LucidaConsole="Courier",e["LucidaConsole-Bold"]="Courier-Bold",e["LucidaConsole-BoldItalic"]="Courier-BoldOblique",e["LucidaConsole-Italic"]="Courier-Oblique",e["LucidaSans-Demi"]="Helvetica-Bold",e["MS-Gothic"]="MS Gothic",e["MS-Gothic-Bold"]="MS Gothic-Bold",e["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",e["MS-Gothic-Italic"]="MS Gothic-Italic",e["MS-Mincho"]="MS Mincho",e["MS-Mincho-Bold"]="MS Mincho-Bold",e["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",e["MS-Mincho-Italic"]="MS Mincho-Italic",e["MS-PGothic"]="MS PGothic",e["MS-PGothic-Bold"]="MS PGothic-Bold",e["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",e["MS-PGothic-Italic"]="MS PGothic-Italic",e["MS-PMincho"]="MS PMincho",e["MS-PMincho-Bold"]="MS PMincho-Bold",e["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",e["MS-PMincho-Italic"]="MS PMincho-Italic",e.NuptialScript="Times-Italic",e.SegoeUISymbol="Helvetica",e.Wingdings="ZapfDingbats",e["Wingdings-Regular"]="ZapfDingbats"}));t.getNonStdFontMap=s;var l=(0,a.getLookupTableFactory)((function(e){e["Adobe Jenson"]=!0,e["Adobe Text"]=!0,e.Albertus=!0,e.Aldus=!0,e.Alexandria=!0,e.Algerian=!0,e["American Typewriter"]=!0,e.Antiqua=!0,e.Apex=!0,e.Arno=!0,e.Aster=!0,e.Aurora=!0,e.Baskerville=!0,e.Bell=!0,e.Bembo=!0,e["Bembo Schoolbook"]=!0,e.Benguiat=!0,e["Berkeley Old Style"]=!0,e["Bernhard Modern"]=!0,e["Berthold City"]=!0,e.Bodoni=!0,e["Bauer Bodoni"]=!0,e["Book Antiqua"]=!0,e.Bookman=!0,e["Bordeaux Roman"]=!0,e["Californian FB"]=!0,e.Calisto=!0,e.Calvert=!0,e.Capitals=!0,e.Cambria=!0,e.Cartier=!0,e.Caslon=!0,e.Catull=!0,e.Centaur=!0,e["Century Old Style"]=!0,e["Century Schoolbook"]=!0,e.Chaparral=!0,e["Charis SIL"]=!0,e.Cheltenham=!0,e["Cholla Slab"]=!0,e.Clarendon=!0,e.Clearface=!0,e.Cochin=!0,e.Colonna=!0,e["Computer Modern"]=!0,e["Concrete Roman"]=!0,e.Constantia=!0,e["Cooper Black"]=!0,e.Corona=!0,e.Ecotype=!0,e.Egyptienne=!0,e.Elephant=!0,e.Excelsior=!0,e.Fairfield=!0,e["FF Scala"]=!0,e.Folkard=!0,e.Footlight=!0,e.FreeSerif=!0,e["Friz Quadrata"]=!0,e.Garamond=!0,e.Gentium=!0,e.Georgia=!0,e.Gloucester=!0,e["Goudy Old Style"]=!0,e["Goudy Schoolbook"]=!0,e["Goudy Pro Font"]=!0,e.Granjon=!0,e["Guardian Egyptian"]=!0,e.Heather=!0,e.Hercules=!0,e["High Tower Text"]=!0,e.Hiroshige=!0,e["Hoefler Text"]=!0,e["Humana Serif"]=!0,e.Imprint=!0,e["Ionic No. 5"]=!0,e.Janson=!0,e.Joanna=!0,e.Korinna=!0,e.Lexicon=!0,e.LiberationSerif=!0,e["Liberation Serif"]=!0,e["Linux Libertine"]=!0,e.Literaturnaya=!0,e.Lucida=!0,e["Lucida Bright"]=!0,e.Melior=!0,e.Memphis=!0,e.Miller=!0,e.Minion=!0,e.Modern=!0,e["Mona Lisa"]=!0,e["Mrs Eaves"]=!0,e["MS Serif"]=!0,e["Museo Slab"]=!0,e["New York"]=!0,e["Nimbus Roman"]=!0,e["NPS Rawlinson Roadway"]=!0,e.NuptialScript=!0,e.Palatino=!0,e.Perpetua=!0,e.Plantin=!0,e["Plantin Schoolbook"]=!0,e.Playbill=!0,e["Poor Richard"]=!0,e["Rawlinson Roadway"]=!0,e.Renault=!0,e.Requiem=!0,e.Rockwell=!0,e.Roman=!0,e["Rotis Serif"]=!0,e.Sabon=!0,e.Scala=!0,e.Seagull=!0,e.Sistina=!0,e.Souvenir=!0,e.STIX=!0,e["Stone Informal"]=!0,e["Stone Serif"]=!0,e.Sylfaen=!0,e.Times=!0,e.Trajan=!0,e["Trinité"]=!0,e["Trump Mediaeval"]=!0,e.Utopia=!0,e["Vale Type"]=!0,e["Bitstream Vera"]=!0,e["Vera Serif"]=!0,e.Versailles=!0,e.Wanted=!0,e.Weiss=!0,e["Wide Latin"]=!0,e.Windsor=!0,e.XITS=!0}));t.getSerifFonts=l;var c=(0,a.getLookupTableFactory)((function(e){e.Dingbats=!0,e.Symbol=!0,e.ZapfDingbats=!0}));t.getSymbolsFonts=c;var u=(0,a.getLookupTableFactory)((function(e){e[2]=10,e[3]=32,e[4]=33,e[5]=34,e[6]=35,e[7]=36,e[8]=37,e[9]=38,e[10]=39,e[11]=40,e[12]=41,e[13]=42,e[14]=43,e[15]=44,e[16]=45,e[17]=46,e[18]=47,e[19]=48,e[20]=49,e[21]=50,e[22]=51,e[23]=52,e[24]=53,e[25]=54,e[26]=55,e[27]=56,e[28]=57,e[29]=58,e[30]=894,e[31]=60,e[32]=61,e[33]=62,e[34]=63,e[35]=64,e[36]=65,e[37]=66,e[38]=67,e[39]=68,e[40]=69,e[41]=70,e[42]=71,e[43]=72,e[44]=73,e[45]=74,e[46]=75,e[47]=76,e[48]=77,e[49]=78,e[50]=79,e[51]=80,e[52]=81,e[53]=82,e[54]=83,e[55]=84,e[56]=85,e[57]=86,e[58]=87,e[59]=88,e[60]=89,e[61]=90,e[62]=91,e[63]=92,e[64]=93,e[65]=94,e[66]=95,e[67]=96,e[68]=97,e[69]=98,e[70]=99,e[71]=100,e[72]=101,e[73]=102,e[74]=103,e[75]=104,e[76]=105,e[77]=106,e[78]=107,e[79]=108,e[80]=109,e[81]=110,e[82]=111,e[83]=112,e[84]=113,e[85]=114,e[86]=115,e[87]=116,e[88]=117,e[89]=118,e[90]=119,e[91]=120,e[92]=121,e[93]=122,e[94]=123,e[95]=124,e[96]=125,e[97]=126,e[98]=196,e[99]=197,e[100]=199,e[101]=201,e[102]=209,e[103]=214,e[104]=220,e[105]=225,e[106]=224,e[107]=226,e[108]=228,e[109]=227,e[110]=229,e[111]=231,e[112]=233,e[113]=232,e[114]=234,e[115]=235,e[116]=237,e[117]=236,e[118]=238,e[119]=239,e[120]=241,e[121]=243,e[122]=242,e[123]=244,e[124]=246,e[125]=245,e[126]=250,e[127]=249,e[128]=251,e[129]=252,e[130]=8224,e[131]=176,e[132]=162,e[133]=163,e[134]=167,e[135]=8226,e[136]=182,e[137]=223,e[138]=174,e[139]=169,e[140]=8482,e[141]=180,e[142]=168,e[143]=8800,e[144]=198,e[145]=216,e[146]=8734,e[147]=177,e[148]=8804,e[149]=8805,e[150]=165,e[151]=181,e[152]=8706,e[153]=8721,e[154]=8719,e[156]=8747,e[157]=170,e[158]=186,e[159]=8486,e[160]=230,e[161]=248,e[162]=191,e[163]=161,e[164]=172,e[165]=8730,e[166]=402,e[167]=8776,e[168]=8710,e[169]=171,e[170]=187,e[171]=8230,e[200]=193,e[203]=205,e[210]=218,e[223]=711,e[224]=321,e[225]=322,e[226]=352,e[227]=353,e[228]=381,e[229]=382,e[233]=221,e[234]=253,e[252]=263,e[253]=268,e[254]=269,e[258]=258,e[260]=260,e[261]=261,e[265]=280,e[266]=281,e[267]=282,e[268]=283,e[269]=313,e[275]=323,e[276]=324,e[278]=328,e[283]=344,e[284]=345,e[285]=346,e[286]=347,e[292]=367,e[295]=377,e[296]=378,e[298]=380,e[305]=963,e[306]=964,e[307]=966,e[308]=8215,e[309]=8252,e[310]=8319,e[311]=8359,e[312]=8592,e[313]=8593,e[337]=9552,e[493]=1039,e[494]=1040,e[672]=1488,e[673]=1489,e[674]=1490,e[675]=1491,e[676]=1492,e[677]=1493,e[678]=1494,e[679]=1495,e[680]=1496,e[681]=1497,e[682]=1498,e[683]=1499,e[684]=1500,e[685]=1501,e[686]=1502,e[687]=1503,e[688]=1504,e[689]=1505,e[690]=1506,e[691]=1507,e[692]=1508,e[693]=1509,e[694]=1510,e[695]=1511,e[696]=1512,e[697]=1513,e[698]=1514,e[705]=1524,e[706]=8362,e[710]=64288,e[711]=64298,e[759]=1617,e[761]=1776,e[763]=1778,e[775]=1652,e[777]=1764,e[778]=1780,e[779]=1781,e[780]=1782,e[782]=771,e[783]=64726,e[786]=8363,e[788]=8532,e[790]=768,e[791]=769,e[792]=768,e[795]=803,e[797]=64336,e[798]=64337,e[799]=64342,e[800]=64343,e[801]=64344,e[802]=64345,e[803]=64362,e[804]=64363,e[805]=64364,e[2424]=7821,e[2425]=7822,e[2426]=7823,e[2427]=7824,e[2428]=7825,e[2429]=7826,e[2430]=7827,e[2433]=7682,e[2678]=8045,e[2679]=8046,e[2830]=1552,e[2838]=686,e[2840]=751,e[2842]=753,e[2843]=754,e[2844]=755,e[2846]=757,e[2856]=767,e[2857]=848,e[2858]=849,e[2862]=853,e[2863]=854,e[2864]=855,e[2865]=861,e[2866]=862,e[2906]=7460,e[2908]=7462,e[2909]=7463,e[2910]=7464,e[2912]=7466,e[2913]=7467,e[2914]=7468,e[2916]=7470,e[2917]=7471,e[2918]=7472,e[2920]=7474,e[2921]=7475,e[2922]=7476,e[2924]=7478,e[2925]=7479,e[2926]=7480,e[2928]=7482,e[2929]=7483,e[2930]=7484,e[2932]=7486,e[2933]=7487,e[2934]=7488,e[2936]=7490,e[2937]=7491,e[2938]=7492,e[2940]=7494,e[2941]=7495,e[2942]=7496,e[2944]=7498,e[2946]=7500,e[2948]=7502,e[2950]=7504,e[2951]=7505,e[2952]=7506,e[2954]=7508,e[2955]=7509,e[2956]=7510,e[2958]=7512,e[2959]=7513,e[2960]=7514,e[2962]=7516,e[2963]=7517,e[2964]=7518,e[2966]=7520,e[2967]=7521,e[2968]=7522,e[2970]=7524,e[2971]=7525,e[2972]=7526,e[2974]=7528,e[2975]=7529,e[2976]=7530,e[2978]=1537,e[2979]=1538,e[2980]=1539,e[2982]=1549,e[2983]=1551,e[2984]=1552,e[2986]=1554,e[2987]=1555,e[2988]=1556,e[2990]=1623,e[2991]=1624,e[2995]=1775,e[2999]=1791,e[3002]=64290,e[3003]=64291,e[3004]=64292,e[3006]=64294,e[3007]=64295,e[3008]=64296,e[3011]=1900,e[3014]=8223,e[3015]=8244,e[3017]=7532,e[3018]=7533,e[3019]=7534,e[3075]=7590,e[3076]=7591,e[3079]=7594,e[3080]=7595,e[3083]=7598,e[3084]=7599,e[3087]=7602,e[3088]=7603,e[3091]=7606,e[3092]=7607,e[3095]=7610,e[3096]=7611,e[3099]=7614,e[3100]=7615,e[3103]=7618,e[3104]=7619,e[3107]=8337,e[3108]=8338,e[3116]=1884,e[3119]=1885,e[3120]=1885,e[3123]=1886,e[3124]=1886,e[3127]=1887,e[3128]=1887,e[3131]=1888,e[3132]=1888,e[3135]=1889,e[3136]=1889,e[3139]=1890,e[3140]=1890,e[3143]=1891,e[3144]=1891,e[3147]=1892,e[3148]=1892,e[3153]=580,e[3154]=581,e[3157]=584,e[3158]=585,e[3161]=588,e[3162]=589,e[3165]=891,e[3166]=892,e[3169]=1274,e[3170]=1275,e[3173]=1278,e[3174]=1279,e[3181]=7622,e[3182]=7623,e[3282]=11799,e[3316]=578,e[3379]=42785,e[3393]=1159,e[3416]=8377}));t.getGlyphMapForStandardFonts=u;var h=(0,a.getLookupTableFactory)((function(e){e[227]=322,e[264]=261,e[291]=346}));t.getSupplementalGlyphMapForArialBlack=h;var d=(0,a.getLookupTableFactory)((function(e){e[1]=32,e[4]=65,e[6]=193,e[17]=66,e[18]=67,e[21]=268,e[24]=68,e[28]=69,e[30]=201,e[32]=282,e[38]=70,e[39]=71,e[44]=72,e[47]=73,e[49]=205,e[58]=74,e[60]=75,e[62]=76,e[68]=77,e[69]=78,e[75]=79,e[87]=80,e[89]=81,e[90]=82,e[92]=344,e[94]=83,e[97]=352,e[100]=84,e[104]=85,e[115]=86,e[116]=87,e[121]=88,e[122]=89,e[124]=221,e[127]=90,e[129]=381,e[258]=97,e[260]=225,e[268]=261,e[271]=98,e[272]=99,e[273]=263,e[275]=269,e[282]=100,e[286]=101,e[288]=233,e[290]=283,e[295]=281,e[296]=102,e[336]=103,e[346]=104,e[349]=105,e[351]=237,e[361]=106,e[364]=107,e[367]=108,e[371]=322,e[373]=109,e[374]=110,e[381]=111,e[383]=243,e[393]=112,e[395]=113,e[396]=114,e[398]=345,e[400]=115,e[401]=347,e[403]=353,e[410]=116,e[437]=117,e[448]=118,e[449]=119,e[454]=120,e[455]=121,e[457]=253,e[460]=122,e[462]=382,e[463]=380,e[853]=44,e[855]=58,e[856]=46,e[876]=47,e[878]=45,e[882]=45,e[894]=40,e[895]=41,e[896]=91,e[897]=93,e[923]=64,e[1004]=48,e[1005]=49,e[1006]=50,e[1007]=51,e[1008]=52,e[1009]=53,e[1010]=54,e[1011]=55,e[1012]=56,e[1013]=57,e[1081]=37,e[1085]=43,e[1086]=45}));function f(e){var t=(0,n.normalizeFontName)(e),r=i();return r[t]}t.getSupplementalGlyphMapForCalibri=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToUnicodeMap=t.IdentityToUnicodeMap=void 0;var a=r(2),n=function(){function e(){_(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._map=t}return S(e,[{key:"length",get:function(){return this._map.length}},{key:"forEach",value:function(e){for(var t in this._map)e(t,this._map[t].charCodeAt(0))}},{key:"has",value:function(e){return void 0!==this._map[e]}},{key:"get",value:function(e){return this._map[e]}},{key:"charCodeOf",value:function(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(var r in t)if(t[r]===e)return 0|r;return-1}},{key:"amend",value:function(e){for(var t in e)this._map[t]=e[t]}}]),e}();t.ToUnicodeMap=n;var i=function(){function e(t,r){_(this,e),this.firstChar=t,this.lastChar=r}return S(e,[{key:"length",get:function(){return this.lastChar+1-this.firstChar}},{key:"forEach",value:function(e){for(var t=this.firstChar,r=this.lastChar;t<=r;t++)e(t,t)}},{key:"has",value:function(e){return this.firstChar<=e&&e<=this.lastChar}},{key:"get",value:function(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)}},{key:"charCodeOf",value:function(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1}},{key:"amend",value:function(e){(0,a.unreachable)("Should not call amend()")}}]),e}();t.IdentityToUnicodeMap=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CFFFont=void 0;var a=r(160),n=r(163),i=r(2),o=function(){function e(t,r){_(this,e),this.properties=r;var o=new a.CFFParser(t,r,n.SEAC_ANALYSIS_ENABLED);this.cff=o.parse(),this.cff.duplicateFirstGlyph();var s=new a.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=s.compile()}catch(l){(0,i.warn)("Failed to compile font "+r.loadedName),this.data=t}this._createBuiltInEncoding()}return S(e,[{key:"numGlyphs",get:function(){return this.cff.charStrings.count}},{key:"getCharset",value:function(){return this.cff.charset.charset}},{key:"getGlyphMapping",value:function(){var e,t,r=this.cff,a=this.properties,i=r.charset.charset;if(a.composite){var o;if(e=Object.create(null),r.isCIDFont)for(t=0;t<i.length;t++){var s=i[t];o=a.cMap.charCodeOf(s),e[o]=t}else for(t=0;t<r.charStrings.count;t++)o=a.cMap.charCodeOf(t),e[o]=t;return e}var l=r.encoding?r.encoding.encoding:null;return a.isInternalFont&&(l=a.defaultEncoding),e=(0,n.type1FontGlyphMapping)(a,l,i),e}},{key:"hasGlyphId",value:function(e){return this.cff.hasGlyphId(e)}},{key:"_createBuiltInEncoding",value:function(){var e=this.cff,t=e.charset,r=e.encoding;if(t&&r){var a=t.charset,n=r.encoding,i=[];for(var o in n){var s=n[o];if(s>=0){var l=a[s];l&&(i[o]=l)}}i.length>0&&(this.properties.builtInEncoding=i)}}}]),e}();t.CFFFont=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontRendererFactory=void 0;var a=r(2),n=r(160),i=r(164),o=r(162),s=r(135);function l(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function c(e,t){return e[t]<<8|e[t+1]}function u(e,t){return(e[t]<<24|e[t+1]<<16)>>16}function h(e,t){return e[t]<<24>>24}function d(e,t){return u(e,t)/16384}function f(e){var t=e.length,r=32768;return t<1240?r=107:t<33900&&(r=1131),r}function p(e,t,r){var n,i,o,s=1===c(e,t+2)?l(e,t+8):l(e,t+16),u=c(e,t+s);if(4===u){c(e,t+s+2);var h=c(e,t+s+6)>>1;for(i=t+s+14,n=[],o=0;o<h;o++,i+=2)n[o]={end:c(e,i)};for(i+=2,o=0;o<h;o++,i+=2)n[o].start=c(e,i);for(o=0;o<h;o++,i+=2)n[o].idDelta=c(e,i);for(o=0;o<h;o++,i+=2){var d=c(e,i);if(0!==d){n[o].ids=[];for(var f=0,p=n[o].end-n[o].start+1;f<p;f++)n[o].ids[f]=c(e,i+d),d+=2}}return n}if(12===u){var v=l(e,t+s+12);for(i=t+s+16,n=[],o=0;o<v;o++)t=l(e,i),n.push({start:t,end:l(e,i+4),idDelta:l(e,i+8)-t}),i+=12;return n}throw new a.FormatError("unsupported cmap: ".concat(u))}function m(e,t,r,a){var i={},o=new n.CFFParser(new s.Stream(e,t,r-t),i,a),l=o.parse();return{glyphs:l.charStrings.objects,subrs:l.topDict.privateDict&&l.topDict.privateDict.subrsIndex&&l.topDict.privateDict.subrsIndex.objects,gsubrs:l.globalSubrIndex&&l.globalSubrIndex.objects,isCFFCIDFont:l.isCIDFont,fdSelect:l.fdSelect,fdArray:l.fdArray}}function y(e,t,r){var a,n;r?(a=4,n=l):(a=2,n=function(e,t){return 2*c(e,t)});for(var i=[],o=n(t,0),s=a;s<t.length;s+=a){var u=n(t,s);i.push(e.subarray(o,u)),o=u}return i}function b(e,t){var r=t.codePointAt(0),a=0,n=0,i=e.length-1;while(n<i){var o=n+i+1>>1;r<e[o].start?i=o-1:n=o}return e[n].start<=r&&r<=e[n].end&&(a=e[n].idDelta+(e[n].ids?e[n].ids[r-e[n].start]:r)&65535),{charCode:r,glyphId:a}}function k(e,t,r){function a(e,r){t.push({cmd:"moveTo",args:[e,r]})}function n(e,r){t.push({cmd:"lineTo",args:[e,r]})}function i(e,r,a,n){t.push({cmd:"quadraticCurveTo",args:[e,r,a,n]})}var o,s=0,l=u(e,s),f=0,p=0;if(s+=10,l<0)do{o=c(e,s);var v=c(e,s+2);s+=4;var g=void 0,m=void 0;1&o?(2&o?(g=u(e,s),m=u(e,s+2)):(g=c(e,s),m=c(e,s+2)),s+=4):2&o?(g=h(e,s++),m=h(e,s++)):(g=e[s++],m=e[s++]),2&o?(f=g,p=m):(f=0,p=0);var y=1,b=1,w=0,_=0;8&o?(y=b=d(e,s),s+=2):64&o?(y=d(e,s),b=d(e,s+2),s+=4):128&o&&(y=d(e,s),w=d(e,s+2),_=d(e,s+4),b=d(e,s+6),s+=8);var S=r.glyphs[v];S&&(t.push({cmd:"save"},{cmd:"transform",args:[y,w,_,b,f,p]}),k(S,t,r),t.push({cmd:"restore"}))}while(32&o);else{var x,A,C=[];for(x=0;x<l;x++)C.push(c(e,s)),s+=2;var F=c(e,s);s+=2+F;var P=C.at(-1)+1,T=[];while(T.length<P){o=e[s++];var O=1;8&o&&(O+=e[s++]);while(O-- >0)T.push({flags:o})}for(x=0;x<P;x++){switch(18&T[x].flags){case 0:f+=u(e,s),s+=2;break;case 2:f-=e[s++];break;case 18:f+=e[s++];break}T[x].x=f}for(x=0;x<P;x++){switch(36&T[x].flags){case 0:p+=u(e,s),s+=2;break;case 4:p-=e[s++];break;case 36:p+=e[s++];break}T[x].y=p}var I=0;for(s=0;s<l;s++){var E=C[s],M=T.slice(I,E+1);if(1&M[0].flags)M.push(M[0]);else if(1&M.at(-1).flags)M.unshift(M.at(-1));else{var R={flags:1,x:(M[0].x+M.at(-1).x)/2,y:(M[0].y+M.at(-1).y)/2};M.unshift(R),M.push(R)}for(a(M[0].x,M[0].y),x=1,A=M.length;x<A;x++)1&M[x].flags?n(M[x].x,M[x].y):1&M[x+1].flags?(i(M[x].x,M[x].y,M[x+1].x,M[x+1].y),x++):i(M[x].x,M[x].y,(M[x].x+M[x+1].x)/2,(M[x].y+M[x+1].y)/2);I=E+1}}}function w(e,t,r,n){function i(e,r){t.push({cmd:"moveTo",args:[e,r]})}function s(e,r){t.push({cmd:"lineTo",args:[e,r]})}function l(e,r,a,n,i,o){t.push({cmd:"bezierCurveTo",args:[e,r,a,n,i,o]})}var c=[],u=0,h=0,d=0;function p(e){var v=0;while(v<e.length){var g=!1,m=e[v++],y=void 0,k=void 0,_=void 0,S=void 0,x=void 0,A=void 0,C=void 0,F=void 0,P=void 0;switch(m){case 1:d+=c.length>>1,g=!0;break;case 3:d+=c.length>>1,g=!0;break;case 4:h+=c.pop(),i(u,h),g=!0;break;case 5:while(c.length>0)u+=c.shift(),h+=c.shift(),s(u,h);break;case 6:while(c.length>0){if(u+=c.shift(),s(u,h),0===c.length)break;h+=c.shift(),s(u,h)}break;case 7:while(c.length>0){if(h+=c.shift(),s(u,h),0===c.length)break;u+=c.shift(),s(u,h)}break;case 8:while(c.length>0)y=u+c.shift(),_=h+c.shift(),k=y+c.shift(),S=_+c.shift(),u=k+c.shift(),h=S+c.shift(),l(y,_,k,S,u,h);break;case 10:if(F=c.pop(),P=null,r.isCFFCIDFont){var T=r.fdSelect.getFDIndex(n);if(T>=0&&T<r.fdArray.length){var O=r.fdArray[T],I=void 0;O.privateDict&&O.privateDict.subrsIndex&&(I=O.privateDict.subrsIndex.objects),I&&(F+=f(I),P=I[F])}else(0,a.warn)("Invalid fd index for glyph index.")}else P=r.subrs[F+r.subrsBias];P&&p(P);break;case 11:return;case 12:switch(m=e[v++],m){case 34:y=u+c.shift(),k=y+c.shift(),x=h+c.shift(),u=k+c.shift(),l(y,h,k,x,u,x),y=u+c.shift(),k=y+c.shift(),u=k+c.shift(),l(y,x,k,h,u,h);break;case 35:y=u+c.shift(),_=h+c.shift(),k=y+c.shift(),S=_+c.shift(),u=k+c.shift(),h=S+c.shift(),l(y,_,k,S,u,h),y=u+c.shift(),_=h+c.shift(),k=y+c.shift(),S=_+c.shift(),u=k+c.shift(),h=S+c.shift(),l(y,_,k,S,u,h),c.pop();break;case 36:y=u+c.shift(),x=h+c.shift(),k=y+c.shift(),A=x+c.shift(),u=k+c.shift(),l(y,x,k,A,u,A),y=u+c.shift(),k=y+c.shift(),C=A+c.shift(),u=k+c.shift(),l(y,A,k,C,u,h);break;case 37:var E=u,M=h;y=u+c.shift(),_=h+c.shift(),k=y+c.shift(),S=_+c.shift(),u=k+c.shift(),h=S+c.shift(),l(y,_,k,S,u,h),y=u+c.shift(),_=h+c.shift(),k=y+c.shift(),S=_+c.shift(),u=k,h=S,Math.abs(u-E)>Math.abs(h-M)?u+=c.shift():h+=c.shift(),l(y,_,k,S,u,h);break;default:throw new a.FormatError("unknown operator: 12 ".concat(m))}break;case 14:if(c.length>=4){var R=c.pop(),D=c.pop();h=c.pop(),u=c.pop(),t.push({cmd:"save"},{cmd:"translate",args:[u,h]});var N=b(r.cmap,String.fromCharCode(r.glyphNameMap[o.StandardEncoding[R]]));w(r.glyphs[N.glyphId],t,r,N.glyphId),t.push({cmd:"restore"}),N=b(r.cmap,String.fromCharCode(r.glyphNameMap[o.StandardEncoding[D]])),w(r.glyphs[N.glyphId],t,r,N.glyphId)}return;case 18:d+=c.length>>1,g=!0;break;case 19:d+=c.length>>1,v+=d+7>>3,g=!0;break;case 20:d+=c.length>>1,v+=d+7>>3,g=!0;break;case 21:h+=c.pop(),u+=c.pop(),i(u,h),g=!0;break;case 22:u+=c.pop(),i(u,h),g=!0;break;case 23:d+=c.length>>1,g=!0;break;case 24:while(c.length>2)y=u+c.shift(),_=h+c.shift(),k=y+c.shift(),S=_+c.shift(),u=k+c.shift(),h=S+c.shift(),l(y,_,k,S,u,h);u+=c.shift(),h+=c.shift(),s(u,h);break;case 25:while(c.length>6)u+=c.shift(),h+=c.shift(),s(u,h);y=u+c.shift(),_=h+c.shift(),k=y+c.shift(),S=_+c.shift(),u=k+c.shift(),h=S+c.shift(),l(y,_,k,S,u,h);break;case 26:c.length%2&&(u+=c.shift());while(c.length>0)y=u,_=h+c.shift(),k=y+c.shift(),S=_+c.shift(),u=k,h=S+c.shift(),l(y,_,k,S,u,h);break;case 27:c.length%2&&(h+=c.shift());while(c.length>0)y=u+c.shift(),_=h,k=y+c.shift(),S=_+c.shift(),u=k+c.shift(),h=S,l(y,_,k,S,u,h);break;case 28:c.push((e[v]<<24|e[v+1]<<16)>>16),v+=2;break;case 29:F=c.pop()+r.gsubrsBias,P=r.gsubrs[F],P&&p(P);break;case 30:while(c.length>0){if(y=u,_=h+c.shift(),k=y+c.shift(),S=_+c.shift(),u=k+c.shift(),h=S+(1===c.length?c.shift():0),l(y,_,k,S,u,h),0===c.length)break;y=u+c.shift(),_=h,k=y+c.shift(),S=_+c.shift(),h=S+c.shift(),u=k+(1===c.length?c.shift():0),l(y,_,k,S,u,h)}break;case 31:while(c.length>0){if(y=u+c.shift(),_=h,k=y+c.shift(),S=_+c.shift(),h=S+c.shift(),u=k+(1===c.length?c.shift():0),l(y,_,k,S,u,h),0===c.length)break;y=u,_=h+c.shift(),k=y+c.shift(),S=_+c.shift(),u=k+c.shift(),h=S+(1===c.length?c.shift():0),l(y,_,k,S,u,h)}break;default:if(m<32)throw new a.FormatError("unknown operator: ".concat(m));m<247?c.push(m-139):m<251?c.push(256*(m-247)+e[v++]+108):m<255?c.push(256*-(m-251)-e[v++]-108):(c.push((e[v]<<24|e[v+1]<<16|e[v+2]<<8|e[v+3])/65536),v+=4);break}g&&(c.length=0)}}p(e)}var x=[],A=function(){function e(t){_(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=t,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}return S(e,[{key:"getPathJs",value:function(e){var t=b(this.cmap,e),r=t.charCode,a=t.glyphId,n=this.compiledGlyphs[a];if(!n)try{n=this.compileGlyph(this.glyphs[a],a),this.compiledGlyphs[a]=n}catch(i){throw this.compiledGlyphs[a]=x,void 0===this.compiledCharCodeToGlyphId[r]&&(this.compiledCharCodeToGlyphId[r]=a),i}return void 0===this.compiledCharCodeToGlyphId[r]&&(this.compiledCharCodeToGlyphId[r]=a),n}},{key:"compileGlyph",value:function(e,t){if(!e||0===e.length||14===e[0])return x;var r=this.fontMatrix;if(this.isCFFCIDFont){var n=this.fdSelect.getFDIndex(t);if(n>=0&&n<this.fdArray.length){var i=this.fdArray[n];r=i.getByName("FontMatrix")||a.FONT_IDENTITY_MATRIX}else(0,a.warn)("Invalid fd index for glyph index.")}var o=[{cmd:"save"},{cmd:"transform",args:r.slice()},{cmd:"scale",args:["size","-size"]}];return this.compileGlyphImpl(e,o,t),o.push({cmd:"restore"}),o}},{key:"compileGlyphImpl",value:function(){(0,a.unreachable)("Children classes should implement this.")}},{key:"hasBuiltPath",value:function(e){var t=b(this.cmap,e),r=t.charCode,a=t.glyphId;return void 0!==this.compiledGlyphs[a]&&void 0!==this.compiledCharCodeToGlyphId[r]}}]),e}(),C=function(e){v(r,e);var t=g(r);function r(e,a,n){var i;return _(this,r),i=t.call(this,n||[488e-6,0,0,488e-6,0,0]),i.glyphs=e,i.cmap=a,i}return S(r,[{key:"compileGlyphImpl",value:function(e,t){k(e,t,this)}}]),r}(A),F=function(e){v(r,e);var t=g(r);function r(e,a,n,o){var s;return _(this,r),s=t.call(this,n||[.001,0,0,.001,0,0]),s.glyphs=e.glyphs,s.gsubrs=e.gsubrs||[],s.subrs=e.subrs||[],s.cmap=a,s.glyphNameMap=o||(0,i.getGlyphsUnicode)(),s.gsubrsBias=f(s.gsubrs),s.subrsBias=f(s.subrs),s.isCFFCIDFont=e.isCFFCIDFont,s.fdSelect=e.fdSelect,s.fdArray=e.fdArray,s}return S(r,[{key:"compileGlyphImpl",value:function(e,t,r){w(e,t,this,r)}}]),r}(A),P=function(){function e(){_(this,e)}return S(e,null,[{key:"create",value:function(e,t){for(var r,n,i,o,s,u,h=new Uint8Array(e.data),d=c(h,4),f=0,v=12;f<d;f++,v+=16){var g=(0,a.bytesToString)(h.subarray(v,v+4)),b=l(h,v+8),k=l(h,v+12);switch(g){case"cmap":r=p(h,b,b+k);break;case"glyf":n=h.subarray(b,b+k);break;case"loca":i=h.subarray(b,b+k);break;case"head":u=c(h,b+18),s=c(h,b+50);break;case"CFF ":o=m(h,b,b+k,t);break}}if(n){var w=u?[1/u,0,0,1/u,0,0]:e.fontMatrix;return new C(y(n,i,s),r,w)}return new F(o,r,e.fontMatrix,e.glyphNameMap)}}]),e}();t.FontRendererFactory=P},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMetrics=t.getFontBasicMetrics=void 0;var a=r(131),n=(0,a.getLookupTableFactory)((function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.Helvetica=(0,a.getLookupTableFactory)((function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-Bold"]=(0,a.getLookupTableFactory)((function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-BoldOblique"]=(0,a.getLookupTableFactory)((function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-Oblique"]=(0,a.getLookupTableFactory)((function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556})),e.Symbol=(0,a.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790})),e["Times-Roman"]=(0,a.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-Bold"]=(0,a.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-BoldItalic"]=(0,a.getLookupTableFactory)((function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-Italic"]=(0,a.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500})),e.ZapfDingbats=(0,a.getLookupTableFactory)((function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918}))}));t.getMetrics=n;var i=(0,a.getLookupTableFactory)((function(e){e.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426},e["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439},e["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},e["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},e.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523},e["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532},e["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523},e["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532},e["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450},e["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461},e["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441},e["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462},e.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN},e.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}}));t.getFontBasicMetrics=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlyfTable=void 0;var r=1,a=2,n=4,i=8,o=16,s=32,l=64,c=1,u=2,h=8,d=32,f=64,p=128,v=256,g=function(){function e(t){_(this,e);var r=t.glyfTable,a=t.isGlyphLocationsLong,n=t.locaTable,i=t.numGlyphs;this.glyphs=[];for(var o=new DataView(n.buffer,n.byteOffset,n.byteLength),s=new DataView(r.buffer,r.byteOffset,r.byteLength),l=a?4:2,c=a?o.getUint32(0):2*o.getUint16(0),u=0,h=0;h<i;h++){u+=l;var d=a?o.getUint32(u):2*o.getUint16(u);if(d!==c){var f=m.parse(c,s);this.glyphs.push(f),c=d}else this.glyphs.push(new m({}))}}return S(e,[{key:"getSize",value:function(){return this.glyphs.reduce((function(e,t){var r=t.getSize();return e+(r+3&-4)}),0)}},{key:"write",value:function(){var e=this.getSize(),t=new DataView(new ArrayBuffer(e)),r=e>131070,a=r?4:2,n=new DataView(new ArrayBuffer((this.glyphs.length+1)*a));r?n.setUint32(0,0):n.setUint16(0,0);var i,o=0,s=0,l=b(this.glyphs);try{for(l.s();!(i=l.n()).done;){var c=i.value;o+=c.write(o,t),o=o+3&-4,s+=a,r?n.setUint32(s,o):n.setUint16(s,o>>1)}}catch(u){l.e(u)}finally{l.f()}return{isLocationLong:r,loca:new Uint8Array(n.buffer),glyf:new Uint8Array(t.buffer)}}},{key:"scale",value:function(e){for(var t=0,r=this.glyphs.length;t<r;t++)this.glyphs[t].scale(e[t])}}]),e}();t.GlyfTable=g;var m=function(){function e(t){_(this,e);var r=t.header,a=void 0===r?null:r,n=t.simple,i=void 0===n?null:n,o=t.composites,s=void 0===o?null:o;this.header=a,this.simple=i,this.composites=s}return S(e,[{key:"getSize",value:function(){if(!this.header)return 0;var e=this.simple?this.simple.getSize():this.composites.reduce((function(e,t){return e+t.getSize()}),0);return this.header.getSize()+e}},{key:"write",value:function(e,t){if(!this.header)return 0;var r=e;if(e+=this.header.write(e,t),this.simple)e+=this.simple.write(e,t);else{var a,n=b(this.composites);try{for(n.s();!(a=n.n()).done;){var i=a.value;e+=i.write(e,t)}}catch(o){n.e(o)}finally{n.f()}}return e-r}},{key:"scale",value:function(e){if(this.header){var t=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(t,e),this.simple)this.simple.scale(t,e);else{var r,a=b(this.composites);try{for(a.s();!(r=a.n()).done;){var n=r.value;n.scale(t,e)}}catch(i){a.e(i)}finally{a.f()}}}}}],[{key:"parse",value:function(t,r){var a=y.parse(t,r),n=k(a,2),i=n[0],o=n[1];if(t+=i,o.numberOfContours<0){var s=[];while(1){var l=A.parse(t,r),c=k(l,2),u=c[0],h=c[1];if(t+=u,s.push(h),!(h.flags&d))break}return new e({header:o,composites:s})}var f=x.parse(t,r,o.numberOfContours);return new e({header:o,simple:f})}}]),e}(),y=function(){function e(t){_(this,e);var r=t.numberOfContours,a=t.xMin,n=t.yMin,i=t.xMax,o=t.yMax;this.numberOfContours=r,this.xMin=a,this.yMin=n,this.xMax=i,this.yMax=o}return S(e,[{key:"getSize",value:function(){return 10}},{key:"write",value:function(e,t){return t.setInt16(e,this.numberOfContours),t.setInt16(e+2,this.xMin),t.setInt16(e+4,this.yMin),t.setInt16(e+6,this.xMax),t.setInt16(e+8,this.yMax),10}},{key:"scale",value:function(e,t){this.xMin=Math.round(e+(this.xMin-e)*t),this.xMax=Math.round(e+(this.xMax-e)*t)}}],[{key:"parse",value:function(t,r){return[10,new e({numberOfContours:r.getInt16(t),xMin:r.getInt16(t+2),yMin:r.getInt16(t+4),xMax:r.getInt16(t+6),yMax:r.getInt16(t+8)})]}}]),e}(),w=S((function e(t){_(this,e);var r=t.flags,a=t.xCoordinates,n=t.yCoordinates;this.xCoordinates=a,this.yCoordinates=n,this.flags=r})),x=function(){function e(t){_(this,e);var r=t.contours,a=t.instructions;this.contours=r,this.instructions=a}return S(e,[{key:"getSize",value:function(){var e,t=2*this.contours.length+2+this.instructions.length,r=0,a=0,n=b(this.contours);try{for(n.s();!(e=n.n()).done;){var i=e.value;t+=i.flags.length;for(var o=0,s=i.xCoordinates.length;o<s;o++){var l=i.xCoordinates[o],c=i.yCoordinates[o],u=Math.abs(l-r);u>255?t+=2:u>0&&(t+=1),r=l,u=Math.abs(c-a),u>255?t+=2:u>0&&(t+=1),a=c}}}catch(h){n.e(h)}finally{n.f()}return t}},{key:"write",value:function(e,t){var r,i=e,l=[],c=[],u=[],h=0,d=0,f=b(this.contours);try{for(f.s();!(r=f.n()).done;){for(var p=r.value,v=0,g=p.xCoordinates.length;v<g;v++){var m=p.flags[v],y=p.xCoordinates[v],k=y-h;if(0===k)m|=o,l.push(0);else{var w=Math.abs(k);w<=255?(m|=k>=0?a|o:a,l.push(w)):l.push(k)}h=y;var _=p.yCoordinates[v];if(k=_-d,0===k)m|=s,c.push(0);else{var S=Math.abs(k);S<=255?(m|=k>=0?n|s:n,c.push(S)):c.push(k)}d=_,u.push(m)}t.setUint16(e,l.length-1),e+=2}}catch(D){f.e(D)}finally{f.f()}t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length);for(var x=0,A=u;x<A.length;x++){var C=A[x];t.setUint8(e++,C)}for(var F=0,P=l.length;F<P;F++){var T=l[F],O=u[F];O&a?t.setUint8(e++,T):O&o||(t.setInt16(e,T),e+=2)}for(var I=0,E=c.length;I<E;I++){var M=c[I],R=u[I];R&n?t.setUint8(e++,M):R&s||(t.setInt16(e,M),e+=2)}return e-i}},{key:"scale",value:function(e,t){var r,a=b(this.contours);try{for(a.s();!(r=a.n()).done;){var n=r.value;if(0!==n.xCoordinates.length)for(var i=0,o=n.xCoordinates.length;i<o;i++)n.xCoordinates[i]=Math.round(e+(n.xCoordinates[i]-e)*t)}}catch(s){a.e(s)}finally{a.f()}}}],[{key:"parse",value:function(t,c,u){for(var h=[],d=0;d<u;d++){var f=c.getUint16(t);t+=2,h.push(f)}var p=h[u-1]+1,v=c.getUint16(t);t+=2;var g=new Uint8Array(c).slice(t,t+v);t+=v;for(var m=[],y=0;y<p;t++,y++){var b=c.getUint8(t);if(m.push(b),b&i){var k=c.getUint8(++t);b^=i;for(var _=0;_<k;_++)m.push(b);y+=k}}for(var S=[],x=[],A=[],C=[],F=[],P=0,T=0,O=0;O<p;O++){var I=m[O];if(I&a){var E=c.getUint8(t++);T+=I&o?E:-E,x.push(T)}else I&o||(T+=c.getInt16(t),t+=2),x.push(T);h[P]===O&&(P++,S.push(x),x=[])}T=0,P=0;for(var M=0;M<p;M++){var R=m[M];if(R&n){var D=c.getUint8(t++);T+=R&s?D:-D,A.push(T)}else R&s||(T+=c.getInt16(t),t+=2),A.push(T);C.push(R&r|R&l),h[P]===M&&(x=S[P],P++,F.push(new w({flags:C,xCoordinates:x,yCoordinates:A})),A=[],C=[])}return new e({contours:F,instructions:g})}}]),e}(),A=function(){function e(t){_(this,e);var r=t.flags,a=t.glyphIndex,n=t.argument1,i=t.argument2,o=t.transf,s=t.instructions;this.flags=r,this.glyphIndex=a,this.argument1=n,this.argument2=i,this.transf=o,this.instructions=s}return S(e,[{key:"getSize",value:function(){var e=4+2*this.transf.length;return this.flags&v&&(e+=2+this.instructions.length),e+=2,2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(e+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(e+=2),e}},{key:"write",value:function(e,t){var r=e;return this.flags&u?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=c):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=c),t.setUint16(e,this.flags),t.setUint16(e+2,this.glyphIndex),e+=4,this.flags&c?(this.flags&u?(t.setInt16(e,this.argument1),t.setInt16(e+2,this.argument2)):(t.setUint16(e,this.argument1),t.setUint16(e+2,this.argument2)),e+=4):(t.setUint8(e,this.argument1),t.setUint8(e+1,this.argument2),e+=2),this.flags&v&&(t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length)),e-r}},{key:"scale",value:function(e,t){}}],[{key:"parse",value:function(t,r){var a,n,i=t,o=[],s=r.getUint16(t),l=r.getUint16(t+2);t+=4,s&c?(s&u?(a=r.getInt16(t),n=r.getInt16(t+2)):(a=r.getUint16(t),n=r.getUint16(t+2)),t+=4,s^=c):(s&u?(a=r.getInt8(t),n=r.getInt8(t+1)):(a=r.getUint8(t),n=r.getUint8(t+1)),t+=2),s&h?(o.push(r.getUint16(t)),t+=2):s&f?(o.push(r.getUint16(t),r.getUint16(t+2)),t+=4):s&p&&(o.push(r.getUint16(t),r.getUint16(t+2),r.getUint16(t+4),r.getUint16(t+6)),t+=8);var d=null;if(s&v){var g=r.getUint16(t);t+=2,d=new Uint8Array(r).slice(t,t+g),t+=g}return[t-i,new e({flags:s,glyphIndex:l,argument1:a,argument2:n,transf:o,instructions:d})]}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OpenTypeFileBuilder=void 0;var a=r(131),n=r(2);function i(e,t,r){e[t]=r>>8&255,e[t+1]=255&r}function o(e,t,r){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}function s(e,t,r){if(r instanceof Uint8Array)e.set(r,t);else if("string"===typeof r)for(var a=0,n=r.length;a<n;a++)e[t++]=255&r.charCodeAt(a);else for(var i=0,o=r.length;i<o;i++)e[t++]=255&r[i]}var l=12,c=16,u=function(){function e(t){_(this,e),this.sfnt=t,this.tables=Object.create(null)}return S(e,[{key:"toArray",value:function(){var t=this.sfnt,r=this.tables,u=Object.keys(r);u.sort();var h,d,f,p,v,g=u.length,m=l+g*c,y=[m];for(h=0;h<g;h++){p=r[u[h]];var b=(p.length+3&-4)>>>0;m+=b,y.push(m)}var k=new Uint8Array(m);for(h=0;h<g;h++)p=r[u[h]],s(k,y[h],p);"true"===t&&(t=(0,n.string32)(65536)),k[0]=255&t.charCodeAt(0),k[1]=255&t.charCodeAt(1),k[2]=255&t.charCodeAt(2),k[3]=255&t.charCodeAt(3),i(k,4,g);var w=e.getSearchParams(g,16);for(i(k,6,w.range),i(k,8,w.entry),i(k,10,w.rangeShift),m=l,h=0;h<g;h++){v=u[h],k[m]=255&v.charCodeAt(0),k[m+1]=255&v.charCodeAt(1),k[m+2]=255&v.charCodeAt(2),k[m+3]=255&v.charCodeAt(3);var _=0;for(d=y[h],f=y[h+1];d<f;d+=4){var S=(0,a.readUint32)(k,d);_=_+S>>>0}o(k,m+4,_),o(k,m+8,y[h]),o(k,m+12,r[v].length),m+=c}return k}},{key:"addTable",value:function(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}}],[{key:"getSearchParams",value:function(e,t){var r=1,a=0;while((r^e)>r)r<<=1,a++;var n=r*t;return{range:n,entry:a,rangeShift:t*e-n}}}]),e}();t.OpenTypeFileBuilder=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Font=void 0;var a=r(160),n=r(163),i=r(131),o=r(135),s=r(174),l=r(2);function c(e,t,r){var a=e.length,n=t.length,o=a-n,s=r,l=!1;while(s<o){var c=0;while(c<n&&e[s+c]===t[c])c++;if(c>=n){s+=c;while(s<a&&(0,i.isWhiteSpace)(e[s]))s++;l=!0;break}s++}return{found:l,length:s}}function u(e,t){var r,a,n,i=[101,101,120,101,99],s=e.pos;try{r=e.getBytes(t),a=r.length}catch(f){}if(a===t&&(n=c(r,i,t-2*i.length),n.found&&n.length===t))return{stream:new o.Stream(r),length:t};(0,l.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'),e.pos=s;var u,h=2048;while(1){var d=e.peekBytes(h);if(n=c(d,i,0),0===n.length)break;if(e.pos+=n.length,n.found){u=e.pos-s;break}}return e.pos=s,u?{stream:new o.Stream(e.getBytes(u)),length:u}:((0,l.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new o.Stream(e.getBytes(t)),length:t})}function h(e,t){var r=e.getBytes();return{stream:new o.Stream(r),length:r.length}}var d=function(){function e(t,r,a){_(this,e);var i=6,o=a.length1,l=a.length2,c=r.peekBytes(i),d=128===c[0]&&1===c[1];d&&(r.skip(i),o=c[5]<<24|c[4]<<16|c[3]<<8|c[2]);var f=u(r,o),p=new s.Type1Parser(f.stream,!1,n.SEAC_ANALYSIS_ENABLED);p.extractFontHeader(a),d&&(c=r.getBytes(i),l=c[5]<<24|c[4]<<16|c[3]<<8|c[2]);var v=h(r,l),g=new s.Type1Parser(v.stream,!0,n.SEAC_ANALYSIS_ENABLED),m=g.extractFontProgram(a);for(var y in m.properties)a[y]=m.properties[y];var b=m.charstrings,k=this.getType2Charstrings(b),w=this.getType2Subrs(m.subrs);this.charstrings=b,this.data=this.wrap(t,k,this.charstrings,w,a),this.seacs=this.getSeacs(m.charstrings)}return S(e,[{key:"numGlyphs",get:function(){return this.charstrings.length+1}},{key:"getCharset",value:function(){var e,t=[".notdef"],r=b(this.charstrings);try{for(r.s();!(e=r.n()).done;){var a=e.value.glyphName;t.push(a)}}catch(n){r.e(n)}finally{r.f()}return t}},{key:"getGlyphMapping",value:function(e){var t=this.charstrings;if(e.composite){for(var r=Object.create(null),a=0,i=t.length;a<i;a++){var o=e.cMap.charCodeOf(a);r[o]=a+1}return r}var s,l,c=[".notdef"];for(l=0;l<t.length;l++)c.push(t[l].glyphName);var u=e.builtInEncoding;if(u)for(var h in s=Object.create(null),u)l=c.indexOf(u[h]),l>=0&&(s[h]=l);return(0,n.type1FontGlyphMapping)(e,s,c)}},{key:"hasGlyphId",value:function(e){if(e<0||e>=this.numGlyphs)return!1;if(0===e)return!0;var t=this.charstrings[e-1];return t.charstring.length>0}},{key:"getSeacs",value:function(e){for(var t=[],r=0,a=e.length;r<a;r++){var n=e[r];n.seac&&(t[r+1]=n.seac)}return t}},{key:"getType2Charstrings",value:function(e){for(var t=[],r=0,a=e.length;r<a;r++)t.push(e[r].charstring);return t}},{key:"getType2Subrs",value:function(e){var t=0,r=e.length;t=r<1133?107:r<33769?1131:32768;var a,n=[];for(a=0;a<t;a++)n.push([11]);for(a=0;a<r;a++)n.push(e[a]);return n}},{key:"wrap",value:function(e,t,r,n,i){var o=new a.CFF;o.header=new a.CFFHeader(1,0,4,4),o.names=[e];var s=new a.CFFTopDict;s.setByName("version",391),s.setByName("Notice",392),s.setByName("FullName",393),s.setByName("FamilyName",394),s.setByName("Weight",395),s.setByName("Encoding",null),s.setByName("FontMatrix",i.fontMatrix),s.setByName("FontBBox",i.bbox),s.setByName("charset",null),s.setByName("CharStrings",null),s.setByName("Private",null),o.topDict=s;var l=new a.CFFStrings;l.add("Version 0.11"),l.add("See original notice"),l.add(e),l.add(e),l.add("Medium"),o.strings=l,o.globalSubrIndex=new a.CFFIndex;var c,u,h=t.length,d=[".notdef"];for(c=0;c<h;c++){var f=r[c].glyphName,p=a.CFFStandardStrings.indexOf(f);-1===p&&l.add(f),d.push(f)}o.charset=new a.CFFCharset(!1,0,d);var v=new a.CFFIndex;for(v.add([139,14]),c=0;c<h;c++)v.add(t[c]);o.charStrings=v;var g=new a.CFFPrivateDict;g.setByName("Subrs",null);var m=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(c=0,u=m.length;c<u;c++){var y=m[c];if(y in i.privateData){var b=i.privateData[y];if(Array.isArray(b))for(var k=b.length-1;k>0;k--)b[k]-=b[k-1];g.setByName(y,b)}}o.topDict.privateDict=g;var w=new a.CFFIndex;for(c=0,u=n.length;c<u;c++)w.add(n[c]);g.subrsIndex=w;var _=new a.CFFCompiler(o);return _.compile()}}]),e}();t.Type1Font=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Parser=void 0;var a=r(162),n=r(131),i=r(135),o=r(2),s=!1,l={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]},c=function(){function e(){_(this,e),this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}return S(e,[{key:"convert",value:function(e,t,r){for(var a,n,i,c=e.length,u=!1,h=0;h<c;h++){var d=e[h];if(d<32){switch(12===d&&(d=(d<<8)+e[++h]),d){case 1:if(!s){this.stack=[];break}u=this.executeCommand(2,l.hstem);break;case 3:if(!s){this.stack=[];break}u=this.executeCommand(2,l.vstem);break;case 4:if(this.flexing){if(this.stack.length<1){u=!0;break}var f=this.stack.pop();this.stack.push(0,f);break}u=this.executeCommand(1,l.vmoveto);break;case 5:u=this.executeCommand(2,l.rlineto);break;case 6:u=this.executeCommand(1,l.hlineto);break;case 7:u=this.executeCommand(1,l.vlineto);break;case 8:u=this.executeCommand(6,l.rrcurveto);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){u=!0;break}if(i=this.stack.pop(),!t[i]){u=!0;break}u=this.convert(t[i],t,r);break;case 11:return u;case 13:if(this.stack.length<2){u=!0;break}a=this.stack.pop(),n=this.stack.pop(),this.lsb=n,this.width=a,this.stack.push(a,n),u=this.executeCommand(2,l.hmoveto);break;case 14:this.output.push(l.endchar[0]);break;case 21:if(this.flexing)break;u=this.executeCommand(2,l.rmoveto);break;case 22:if(this.flexing){this.stack.push(0);break}u=this.executeCommand(1,l.hmoveto);break;case 30:u=this.executeCommand(4,l.vhcurveto);break;case 31:u=this.executeCommand(4,l.hvcurveto);break;case 3072:this.stack=[];break;case 3073:if(!s){this.stack=[];break}u=this.executeCommand(2,l.vstem);break;case 3074:if(!s){this.stack=[];break}u=this.executeCommand(2,l.hstem);break;case 3078:if(r){var p=this.stack.at(-5);this.seac=this.stack.splice(-4,4),this.seac[0]+=this.lsb-p,u=this.executeCommand(0,l.endchar)}else u=this.executeCommand(4,l.endchar);break;case 3079:if(this.stack.length<4){u=!0;break}this.stack.pop(),a=this.stack.pop();var v=this.stack.pop();n=this.stack.pop(),this.lsb=n,this.width=a,this.stack.push(a,n,v),u=this.executeCommand(3,l.rmoveto);break;case 3084:if(this.stack.length<2){u=!0;break}var g=this.stack.pop(),m=this.stack.pop();this.stack.push(m/g);break;case 3088:if(this.stack.length<2){u=!0;break}i=this.stack.pop();var y=this.stack.pop();if(0===i&&3===y){var b=this.stack.splice(this.stack.length-17,17);this.stack.push(b[2]+b[0],b[3]+b[1],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14]),u=this.executeCommand(13,l.flex,!0),this.flexing=!1,this.stack.push(b[15],b[16])}else 1===i&&0===y&&(this.flexing=!0);break;case 3089:break;case 3105:this.stack=[];break;default:(0,o.warn)('Unknown type 1 charstring command of "'+d+'"');break}if(u)break}else d<=246?d-=139:d=d<=250?256*(d-247)+e[++h]+108:d<=254?-256*(d-251)-e[++h]-108:(255&e[++h])<<24|(255&e[++h])<<16|(255&e[++h])<<8|(255&e[++h])<<0,this.stack.push(d)}return u}},{key:"executeCommand",value:function(e,t,r){var a,n=this.stack.length;if(e>n)return!0;for(var i=n-e,o=i;o<n;o++){var s=this.stack[o];Number.isInteger(s)?this.output.push(28,s>>8&255,255&s):(s=65536*s|0,this.output.push(255,s>>24&255,s>>16&255,s>>8&255,255&s))}return(a=this.output).push.apply(a,p(t)),r?this.stack.splice(i,e):this.stack.length=0,!1}}]),e}(),u=55665,h=4330;function d(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function f(e,t,r){if(r>=e.length)return new Uint8Array(0);var a,n,i=52845,o=22719,s=0|t;for(a=0;a<r;a++)s=(e[a]+s)*i+o&65535;var l=e.length-r,c=new Uint8Array(l);for(a=r,n=0;n<l;a++,n++){var u=e[a];c[n]=u^s>>8,s=(u+s)*i+o&65535}return c}function v(e,t,r){var a,n,i=52845,o=22719,s=0|t,l=e.length,c=l>>>1,u=new Uint8Array(c);for(a=0,n=0;a<l;a++){var h=e[a];if(d(h)){a++;var f=void 0;while(a<l&&!d(f=e[a]))a++;if(a<l){var p=parseInt(String.fromCharCode(h,f),16);u[n++]=p^s>>8,s=(p+s)*i+o&65535}}}return u.slice(r,n)}function g(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}var m=function(){function e(t,r,a){if(_(this,e),r){var o=t.getBytes(),s=!((d(o[0])||(0,n.isWhiteSpace)(o[0]))&&d(o[1])&&d(o[2])&&d(o[3])&&d(o[4])&&d(o[5])&&d(o[6])&&d(o[7]));t=new i.Stream(s?f(o,u,4):v(o,u,4))}this.seacAnalysisEnabled=!!a,this.stream=t,this.nextChar()}return S(e,[{key:"readNumberArray",value:function(){this.getToken();var e=[];while(1){var t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e}},{key:"readNumber",value:function(){var e=this.getToken();return parseFloat(e||0)}},{key:"readInt",value:function(){var e=this.getToken();return 0|parseInt(e||0,10)}},{key:"readBoolean",value:function(){var e=this.getToken();return"true"===e?1:0}},{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"prevChar",value:function(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}},{key:"getToken",value:function(){var e=!1,t=this.currentChar;while(1){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,n.isWhiteSpace)(t))break;t=this.nextChar()}if(g(t))return this.nextChar(),String.fromCharCode(t);var r="";do{r+=String.fromCharCode(t),t=this.nextChar()}while(t>=0&&!(0,n.isWhiteSpace)(t)&&!g(t));return r}},{key:"readCharStrings",value:function(e,t){return-1===t?e:f(e,h,t)}},{key:"extractFontProgram",value:function(e){var t=this.stream,r=[],a=[],n=Object.create(null);n.lenIV=4;var i,o,l,u,h={subrs:[],charstrings:[],properties:{privateData:n}};while(null!==(i=this.getToken()))if("/"===i)switch(i=this.getToken(),i){case"CharStrings":this.getToken(),this.getToken(),this.getToken(),this.getToken();while(1){if(i=this.getToken(),null===i||"end"===i)break;if("/"===i){var d=this.getToken();o=this.readInt(),this.getToken(),l=o>0?t.getBytes(o):new Uint8Array(0),u=h.properties.privateData.lenIV;var f=this.readCharStrings(l,u);this.nextChar(),i=this.getToken(),"noaccess"===i?this.getToken():"/"===i&&this.prevChar(),a.push({glyph:d,encoded:f})}}break;case"Subrs":this.readInt(),this.getToken();while("dup"===this.getToken()){var p=this.readInt();o=this.readInt(),this.getToken(),l=o>0?t.getBytes(o):new Uint8Array(0),u=h.properties.privateData.lenIV;var v=this.readCharStrings(l,u);this.nextChar(),i=this.getToken(),"noaccess"===i&&this.getToken(),r[p]=v}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var g=this.readNumberArray();g.length>0&&g.length%2===0&&s&&(h.properties.privateData[i]=g);break;case"StemSnapH":case"StemSnapV":h.properties.privateData[i]=this.readNumberArray();break;case"StdHW":case"StdVW":h.properties.privateData[i]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":h.properties.privateData[i]=this.readNumber();break;case"ForceBold":h.properties.privateData[i]=this.readBoolean();break}for(var m=0,y=a;m<y.length;m++){var b=y[m],k=b.encoded,w=b.glyph,_=new c,S=_.convert(k,r,this.seacAnalysisEnabled),x=_.output;S&&(x=[14]);var A={glyphName:w,charstring:x,width:_.width,lsb:_.lsb,seac:_.seac};if(".notdef"===w?h.charstrings.unshift(A):h.charstrings.push(A),e.builtInEncoding){var C=e.builtInEncoding.indexOf(w);C>-1&&void 0===e.widths[C]&&C>=e.firstChar&&C<=e.lastChar&&(e.widths[C]=_.width)}}return h}},{key:"extractFontHeader",value:function(e){var t;while(null!==(t=this.getToken()))if("/"===t)switch(t=this.getToken(),t){case"FontMatrix":var r=this.readNumberArray();e.fontMatrix=r;break;case"Encoding":var n=this.getToken(),i=void 0;if(/^\d+$/.test(n)){i=[];var o=0|parseInt(n,10);this.getToken();for(var s=0;s<o;s++){t=this.getToken();while("dup"!==t&&"def"!==t)if(t=this.getToken(),null===t)return;if("def"===t)break;var l=this.readInt();this.getToken();var c=this.getToken();i[l]=c,this.getToken()}}else i=(0,a.getEncoding)(n);e.builtInEncoding=i;break;case"FontBBox":var u=this.readNumberArray();e.ascent=Math.max(u[3],u[1]),e.descent=Math.min(u[1],u[3]),e.ascentScaled=!0;break}}}]),e}();t.Type1Parser=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pattern=void 0,t.getTilingPatternIR=y;var a=r(2),n=r(132),i=r(139),o=r(131),s={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7},l=function(){function e(){_(this,e),(0,a.unreachable)("Cannot initialize Pattern.")}return S(e,null,[{key:"parseShading",value:function(e,t,r,i,l,c){var u=e instanceof n.BaseStream?e.dict:e,d=u.get("ShadingType");try{switch(d){case s.AXIAL:case s.RADIAL:return new h(u,t,r,l,c);case s.FREE_FORM_MESH:case s.LATTICE_FORM_MESH:case s.COONS_PATCH_MESH:case s.TENSOR_PATCH_MESH:return new p(e,t,r,l,c);default:throw new a.FormatError("Unsupported ShadingType: "+d)}}catch(f){if(f instanceof o.MissingDataException)throw f;return i.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.shadingPattern}),(0,a.warn)(f),new m}}}]),e}();t.Pattern=l;var u=function(){function e(){_(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize BaseShading.")}return S(e,[{key:"getIR",value:function(){(0,a.unreachable)("Abstract method `getIR` called.")}}],[{key:"SMALL_NUMBER",get:function(){return(0,a.shadow)(this,"SMALL_NUMBER",1e-6)}}]),e}(),h=function(e){v(r,e);var t=g(r);function r(e,n,o,l,h){var d;_(this,r),d=t.call(this),d.coordsArr=e.getArray("Coords"),d.shadingType=e.get("ShadingType");var f=i.ColorSpace.parse({cs:e.getRaw("CS")||e.getRaw("ColorSpace"),xref:n,resources:o,pdfFunctionFactory:l,localColorSpaceCache:h}),p=e.getArray("BBox");Array.isArray(p)&&4===p.length?d.bbox=a.Util.normalizeRect(p):d.bbox=null;var v=0,g=1;if(e.has("Domain")){var m=e.getArray("Domain");v=m[0],g=m[1]}var y=!1,b=!1;if(e.has("Extend")){var w=e.getArray("Extend");y=w[0],b=w[1]}if(d.shadingType===s.RADIAL&&(!y||!b)){var S=k(d.coordsArr,6),x=S[0],A=S[1],C=S[2],F=S[3],P=S[4],T=S[5],O=Math.hypot(x-F,A-P);C<=T+O&&T<=C+O&&(0,a.warn)("Unsupported radial gradient.")}d.extendStart=y,d.extendEnd=b;var I=e.getRaw("Function"),E=l.createFromArray(I),M=10,R=(g-v)/M,D=d.colorStops=[];if(v>=g||R<=0)return(0,a.info)("Bad shading domain."),c(d);for(var N,L=new Float32Array(f.numComps),B=new Float32Array(1),j=0;j<=M;j++){B[0]=v+j*R,E(B,0,L,0),N=f.getRgb(L,0);var U=a.Util.makeHexColor(N[0],N[1],N[2]);D.push([j/M,U])}var q="transparent";return e.has("Background")&&(N=f.getRgb(e.get("Background"),0),q=a.Util.makeHexColor(N[0],N[1],N[2])),y||(D.unshift([0,q]),D[1][0]+=u.SMALL_NUMBER),b||(D.at(-1)[0]-=u.SMALL_NUMBER,D.push([1,q])),d.colorStops=D,d}return S(r,[{key:"getIR",value:function(){var e,t,r,n,i,o=this.coordsArr,l=this.shadingType;return l===s.AXIAL?(t=[o[0],o[1]],r=[o[2],o[3]],n=null,i=null,e="axial"):l===s.RADIAL?(t=[o[0],o[1]],r=[o[3],o[4]],n=o[2],i=o[5],e="radial"):(0,a.unreachable)("getPattern type unknown: ".concat(l)),["RadialAxial",e,this.bbox,this.colorStops,t,r,n,i]}}]),r}(u),d=function(){function e(t,r){_(this,e),this.stream=t,this.context=r,this.buffer=0,this.bufferLength=0;var a=r.numComps;this.tmpCompsBuf=new Float32Array(a);var n=r.colorSpace.numComps;this.tmpCsCompsBuf=r.colorFn?new Float32Array(n):this.tmpCompsBuf}return S(e,[{key:"hasData",get:function(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;var e=this.stream.getByte();return!(e<0)&&(this.buffer=e,this.bufferLength=8,!0)}},{key:"readBits",value:function(e){var t=this.buffer,r=this.bufferLength;if(32===e){if(0===r)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var a=this.stream.getByte();return this.buffer=a&(1<<r)-1,(t<<8-r|(255&a)>>r)>>>0}if(8===e&&0===r)return this.stream.getByte();while(r<e)t=t<<8|this.stream.getByte(),r+=8;return r-=e,this.bufferLength=r,this.buffer=t&(1<<r)-1,t>>r}},{key:"align",value:function(){this.buffer=0,this.bufferLength=0}},{key:"readFlag",value:function(){return this.readBits(this.context.bitsPerFlag)}},{key:"readCoordinate",value:function(){var e=this.context.bitsPerCoordinate,t=this.readBits(e),r=this.readBits(e),a=this.context.decode,n=e<32?1/((1<<e)-1):2.3283064365386963e-10;return[t*n*(a[1]-a[0])+a[0],r*n*(a[3]-a[2])+a[2]]}},{key:"readComponents",value:function(){for(var e=this.context.numComps,t=this.context.bitsPerComponent,r=t<32?1/((1<<t)-1):2.3283064365386963e-10,a=this.context.decode,n=this.tmpCompsBuf,i=0,o=4;i<e;i++,o+=2){var s=this.readBits(t);n[i]=s*r*(a[o+1]-a[o])+a[o]}var l=this.tmpCsCompsBuf;return this.context.colorFn&&this.context.colorFn(n,0,l,0),this.context.colorSpace.getRgb(l,0)}}]),e}(),f=function(){function e(e){for(var t=[],r=0;r<=e;r++){var a=r/e,n=1-a;t.push(new Float32Array([n*n*n,3*a*n*n,3*a*a*n,a*a*a]))}return t}var t=[];return function(r){return t[r]||(t[r]=e(r)),t[r]}}(),p=function(e){v(r,e);var t=g(r);function r(e,o,l,c,u){var h;if(_(this,r),h=t.call(this),!(e instanceof n.BaseStream))throw new a.FormatError("Mesh data is not a stream");var f=e.dict;h.shadingType=f.get("ShadingType");var p=f.getArray("BBox");Array.isArray(p)&&4===p.length?h.bbox=a.Util.normalizeRect(p):h.bbox=null;var v=i.ColorSpace.parse({cs:f.getRaw("CS")||f.getRaw("ColorSpace"),xref:o,resources:l,pdfFunctionFactory:c,localColorSpaceCache:u});h.background=f.has("Background")?v.getRgb(f.get("Background"),0):null;var g=f.getRaw("Function"),m=g?c.createFromArray(g):null;h.coords=[],h.colors=[],h.figures=[];var y={bitsPerCoordinate:f.get("BitsPerCoordinate"),bitsPerComponent:f.get("BitsPerComponent"),bitsPerFlag:f.get("BitsPerFlag"),decode:f.getArray("Decode"),colorFn:m,colorSpace:v,numComps:m?1:v.numComps},b=new d(e,y),k=!1;switch(h.shadingType){case s.FREE_FORM_MESH:h._decodeType4Shading(b);break;case s.LATTICE_FORM_MESH:var w=0|f.get("VerticesPerRow");if(w<2)throw new a.FormatError("Invalid VerticesPerRow");h._decodeType5Shading(b,w);break;case s.COONS_PATCH_MESH:h._decodeType6Shading(b),k=!0;break;case s.TENSOR_PATCH_MESH:h._decodeType7Shading(b),k=!0;break;default:(0,a.unreachable)("Unsupported mesh type.");break}if(k){h._updateBounds();for(var S=0,x=h.figures.length;S<x;S++)h._buildFigureFromPatch(S)}return h._updateBounds(),h._packData(),h}return S(r,[{key:"_decodeType4Shading",value:function(e){var t=this.coords,r=this.colors,n=[],i=[],o=0;while(e.hasData){var s=e.readFlag(),l=e.readCoordinate(),c=e.readComponents();if(0===o){if(!(0<=s&&s<=2))throw new a.FormatError("Unknown type4 flag");switch(s){case 0:o=3;break;case 1:i.push(i.at(-2),i.at(-1)),o=1;break;case 2:i.push(i.at(-3),i.at(-1)),o=1;break}n.push(s)}i.push(t.length),t.push(l),r.push(c),o--,e.align()}this.figures.push({type:"triangles",coords:new Int32Array(i),colors:new Int32Array(i)})}},{key:"_decodeType5Shading",value:function(e,t){var r=this.coords,a=this.colors,n=[];while(e.hasData){var i=e.readCoordinate(),o=e.readComponents();n.push(r.length),r.push(i),a.push(o)}this.figures.push({type:"lattice",coords:new Int32Array(n),colors:new Int32Array(n),verticesPerRow:t})}},{key:"_decodeType6Shading",value:function(e){var t=this.coords,r=this.colors,n=new Int32Array(16),i=new Int32Array(4);while(e.hasData){var o=e.readFlag();if(!(0<=o&&o<=3))throw new a.FormatError("Unknown type6 flag");for(var s=t.length,l=0,c=0!==o?8:12;l<c;l++)t.push(e.readCoordinate());for(var u=r.length,h=0,d=0!==o?2:4;h<d;h++)r.push(e.readComponents());var f=void 0,p=void 0,v=void 0,g=void 0;switch(o){case 0:n[12]=s+3,n[13]=s+4,n[14]=s+5,n[15]=s+6,n[8]=s+2,n[11]=s+7,n[4]=s+1,n[7]=s+8,n[0]=s,n[1]=s+11,n[2]=s+10,n[3]=s+9,i[2]=u+1,i[3]=u+2,i[0]=u,i[1]=u+3;break;case 1:f=n[12],p=n[13],v=n[14],g=n[15],n[12]=g,n[13]=s+0,n[14]=s+1,n[15]=s+2,n[8]=v,n[11]=s+3,n[4]=p,n[7]=s+4,n[0]=f,n[1]=s+7,n[2]=s+6,n[3]=s+5,f=i[2],p=i[3],i[2]=p,i[3]=u,i[0]=f,i[1]=u+1;break;case 2:f=n[15],p=n[11],n[12]=n[3],n[13]=s+0,n[14]=s+1,n[15]=s+2,n[8]=n[7],n[11]=s+3,n[4]=p,n[7]=s+4,n[0]=f,n[1]=s+7,n[2]=s+6,n[3]=s+5,f=i[3],i[2]=i[1],i[3]=u,i[0]=f,i[1]=u+1;break;case 3:n[12]=n[0],n[13]=s+0,n[14]=s+1,n[15]=s+2,n[8]=n[1],n[11]=s+3,n[4]=n[2],n[7]=s+4,n[0]=n[3],n[1]=s+7,n[2]=s+6,n[3]=s+5,i[2]=i[0],i[3]=u,i[0]=i[1],i[1]=u+1;break}n[5]=t.length,t.push([(-4*t[n[0]][0]-t[n[15]][0]+6*(t[n[4]][0]+t[n[1]][0])-2*(t[n[12]][0]+t[n[3]][0])+3*(t[n[13]][0]+t[n[7]][0]))/9,(-4*t[n[0]][1]-t[n[15]][1]+6*(t[n[4]][1]+t[n[1]][1])-2*(t[n[12]][1]+t[n[3]][1])+3*(t[n[13]][1]+t[n[7]][1]))/9]),n[6]=t.length,t.push([(-4*t[n[3]][0]-t[n[12]][0]+6*(t[n[2]][0]+t[n[7]][0])-2*(t[n[0]][0]+t[n[15]][0])+3*(t[n[4]][0]+t[n[14]][0]))/9,(-4*t[n[3]][1]-t[n[12]][1]+6*(t[n[2]][1]+t[n[7]][1])-2*(t[n[0]][1]+t[n[15]][1])+3*(t[n[4]][1]+t[n[14]][1]))/9]),n[9]=t.length,t.push([(-4*t[n[12]][0]-t[n[3]][0]+6*(t[n[8]][0]+t[n[13]][0])-2*(t[n[0]][0]+t[n[15]][0])+3*(t[n[11]][0]+t[n[1]][0]))/9,(-4*t[n[12]][1]-t[n[3]][1]+6*(t[n[8]][1]+t[n[13]][1])-2*(t[n[0]][1]+t[n[15]][1])+3*(t[n[11]][1]+t[n[1]][1]))/9]),n[10]=t.length,t.push([(-4*t[n[15]][0]-t[n[0]][0]+6*(t[n[11]][0]+t[n[14]][0])-2*(t[n[12]][0]+t[n[3]][0])+3*(t[n[2]][0]+t[n[8]][0]))/9,(-4*t[n[15]][1]-t[n[0]][1]+6*(t[n[11]][1]+t[n[14]][1])-2*(t[n[12]][1]+t[n[3]][1])+3*(t[n[2]][1]+t[n[8]][1]))/9]),this.figures.push({type:"patch",coords:new Int32Array(n),colors:new Int32Array(i)})}}},{key:"_decodeType7Shading",value:function(e){var t=this.coords,r=this.colors,n=new Int32Array(16),i=new Int32Array(4);while(e.hasData){var o=e.readFlag();if(!(0<=o&&o<=3))throw new a.FormatError("Unknown type7 flag");for(var s=t.length,l=0,c=0!==o?12:16;l<c;l++)t.push(e.readCoordinate());for(var u=r.length,h=0,d=0!==o?2:4;h<d;h++)r.push(e.readComponents());var f=void 0,p=void 0,v=void 0,g=void 0;switch(o){case 0:n[12]=s+3,n[13]=s+4,n[14]=s+5,n[15]=s+6,n[8]=s+2,n[9]=s+13,n[10]=s+14,n[11]=s+7,n[4]=s+1,n[5]=s+12,n[6]=s+15,n[7]=s+8,n[0]=s,n[1]=s+11,n[2]=s+10,n[3]=s+9,i[2]=u+1,i[3]=u+2,i[0]=u,i[1]=u+3;break;case 1:f=n[12],p=n[13],v=n[14],g=n[15],n[12]=g,n[13]=s+0,n[14]=s+1,n[15]=s+2,n[8]=v,n[9]=s+9,n[10]=s+10,n[11]=s+3,n[4]=p,n[5]=s+8,n[6]=s+11,n[7]=s+4,n[0]=f,n[1]=s+7,n[2]=s+6,n[3]=s+5,f=i[2],p=i[3],i[2]=p,i[3]=u,i[0]=f,i[1]=u+1;break;case 2:f=n[15],p=n[11],n[12]=n[3],n[13]=s+0,n[14]=s+1,n[15]=s+2,n[8]=n[7],n[9]=s+9,n[10]=s+10,n[11]=s+3,n[4]=p,n[5]=s+8,n[6]=s+11,n[7]=s+4,n[0]=f,n[1]=s+7,n[2]=s+6,n[3]=s+5,f=i[3],i[2]=i[1],i[3]=u,i[0]=f,i[1]=u+1;break;case 3:n[12]=n[0],n[13]=s+0,n[14]=s+1,n[15]=s+2,n[8]=n[1],n[9]=s+9,n[10]=s+10,n[11]=s+3,n[4]=n[2],n[5]=s+8,n[6]=s+11,n[7]=s+4,n[0]=n[3],n[1]=s+7,n[2]=s+6,n[3]=s+5,i[2]=i[0],i[3]=u,i[0]=i[1],i[1]=u+1;break}this.figures.push({type:"patch",coords:new Int32Array(n),colors:new Int32Array(i)})}}},{key:"_buildFigureFromPatch",value:function(e){var t=this.figures[e];(0,a.assert)("patch"===t.type,"Unexpected patch mesh figure");var n=this.coords,i=this.colors,o=t.coords,s=t.colors,l=Math.min(n[o[0]][0],n[o[3]][0],n[o[12]][0],n[o[15]][0]),c=Math.min(n[o[0]][1],n[o[3]][1],n[o[12]][1],n[o[15]][1]),u=Math.max(n[o[0]][0],n[o[3]][0],n[o[12]][0],n[o[15]][0]),h=Math.max(n[o[0]][1],n[o[3]][1],n[o[12]][1],n[o[15]][1]),d=Math.ceil((u-l)*r.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));d=Math.max(r.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(r.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,d));var p=Math.ceil((h-c)*r.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));p=Math.max(r.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(r.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,p));for(var v=d+1,g=new Int32Array((p+1)*v),m=new Int32Array((p+1)*v),y=0,b=new Uint8Array(3),k=new Uint8Array(3),w=i[s[0]],_=i[s[1]],S=i[s[2]],x=i[s[3]],A=f(p),C=f(d),F=0;F<=p;F++){b[0]=(w[0]*(p-F)+S[0]*F)/p|0,b[1]=(w[1]*(p-F)+S[1]*F)/p|0,b[2]=(w[2]*(p-F)+S[2]*F)/p|0,k[0]=(_[0]*(p-F)+x[0]*F)/p|0,k[1]=(_[1]*(p-F)+x[1]*F)/p|0,k[2]=(_[2]*(p-F)+x[2]*F)/p|0;for(var P=0;P<=d;P++,y++)if(0!==F&&F!==p||0!==P&&P!==d){for(var T=0,O=0,I=0,E=0;E<=3;E++)for(var M=0;M<=3;M++,I++){var R=A[F][E]*C[P][M];T+=n[o[I]][0]*R,O+=n[o[I]][1]*R}g[y]=n.length,n.push([T,O]),m[y]=i.length;var D=new Uint8Array(3);D[0]=(b[0]*(d-P)+k[0]*P)/d|0,D[1]=(b[1]*(d-P)+k[1]*P)/d|0,D[2]=(b[2]*(d-P)+k[2]*P)/d|0,i.push(D)}}g[0]=o[0],m[0]=s[0],g[d]=o[3],m[d]=s[1],g[v*p]=o[12],m[v*p]=s[2],g[v*p+d]=o[15],m[v*p+d]=s[3],this.figures[e]={type:"lattice",coords:g,colors:m,verticesPerRow:v}}},{key:"_updateBounds",value:function(){for(var e=this.coords[0][0],t=this.coords[0][1],r=e,a=t,n=1,i=this.coords.length;n<i;n++){var o=this.coords[n][0],s=this.coords[n][1];e=e>o?o:e,t=t>s?s:t,r=r<o?o:r,a=a<s?s:a}this.bounds=[e,t,r,a]}},{key:"_packData",value:function(){var e,t,r,a,n=this.coords,i=new Float32Array(2*n.length);for(e=0,r=0,t=n.length;e<t;e++){var o=n[e];i[r++]=o[0],i[r++]=o[1]}this.coords=i;var s=this.colors,l=new Uint8Array(3*s.length);for(e=0,r=0,t=s.length;e<t;e++){var c=s[e];l[r++]=c[0],l[r++]=c[1],l[r++]=c[2]}this.colors=l;var u=this.figures;for(e=0,t=u.length;e<t;e++){var h=u[e],d=h.coords,f=h.colors;for(r=0,a=d.length;r<a;r++)d[r]*=2,f[r]*=3}}},{key:"getIR",value:function(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.bbox,this.background]}}],[{key:"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",get:function(){return(0,a.shadow)(this,"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",3)}},{key:"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",get:function(){return(0,a.shadow)(this,"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",20)}},{key:"TRIANGLE_DENSITY",get:function(){return(0,a.shadow)(this,"TRIANGLE_DENSITY",20)}}]),r}(u),m=function(e){v(r,e);var t=g(r);function r(){return _(this,r),t.apply(this,arguments)}return S(r,[{key:"getIR",value:function(){return["Dummy"]}}]),r}(u);function y(e,t,r){var n=t.getArray("Matrix"),i=a.Util.normalizeRect(t.getArray("BBox")),o=t.get("XStep"),s=t.get("YStep"),l=t.get("PaintType"),c=t.get("TilingType");if(i[2]-i[0]===0||i[3]-i[1]===0)throw new a.FormatError("Invalid getTilingPatternIR /BBox array: [".concat(i,"]."));return["TilingPattern",r,e,n,i,o,s,l,c]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getXfaFontDict=p,t.getXfaFontName=d;var a=r(177),n=r(130),i=r(178),o=r(179),s=r(180),l=r(181),c=r(131),u=r(163),h=(0,c.getLookupTableFactory)((function(e){e["MyriadPro-Regular"]=e["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:s.MyriadProRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:s.MyriadProRegularMetrics},e["MyriadPro-Bold"]=e["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:s.MyriadProBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:s.MyriadProBoldMetrics},e["MyriadPro-It"]=e["MyriadPro-Italic"]=e["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:s.MyriadProItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:s.MyriadProItalicMetrics},e["MyriadPro-BoldIt"]=e["MyriadPro-BoldItalic"]=e["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:s.MyriadProBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:s.MyriadProBoldItalicMetrics},e.ArialMT=e.Arial=e["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping},e["Arial-BoldMT"]=e["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping},e["Arial-ItalicMT"]=e["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping},e["Arial-BoldItalicMT"]=e["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping},e["Calibri-Regular"]={name:"LiberationSans-Regular",factors:a.CalibriRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:a.CalibriRegularMetrics},e["Calibri-Bold"]={name:"LiberationSans-Bold",factors:a.CalibriBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:a.CalibriBoldMetrics},e["Calibri-Italic"]={name:"LiberationSans-Italic",factors:a.CalibriItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:a.CalibriItalicMetrics},e["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:a.CalibriBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:a.CalibriBoldItalicMetrics},e["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:l.SegoeuiRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:l.SegoeuiRegularMetrics},e["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:l.SegoeuiBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:l.SegoeuiBoldMetrics},e["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:l.SegoeuiItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:l.SegoeuiItalicMetrics},e["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:l.SegoeuiBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:l.SegoeuiBoldItalicMetrics},e["Helvetica-Regular"]=e.Helvetica={name:"LiberationSans-Regular",factors:i.HelveticaRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:i.HelveticaRegularMetrics},e["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:i.HelveticaBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:i.HelveticaBoldMetrics},e["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:i.HelveticaItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:i.HelveticaItalicMetrics},e["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:i.HelveticaBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:i.HelveticaBoldItalicMetrics}}));function d(e){var t=(0,u.normalizeFontName)(e),r=h();return r[t]}function f(e){var t=d(e);if(!t)return null;var r,a=t.baseWidths,n=t.baseMapping,i=t.factors;r=i?a.map((function(e,t){return e*i[t]})):a;var o,s,l=-2,c=[],u=b(n.map((function(e,t){return[e,t]})).sort((function(e,t){var r=k(e,1),a=r[0],n=k(t,1),i=n[0];return a-i})));try{for(u.s();!(s=u.n()).done;){var h=k(s.value,2),f=h[0],p=h[1];-1!==f&&(f===l+1?(o.push(r[p]),l+=1):(l=f,o=[r[p]],c.push(f,o)))}}catch(v){u.e(v)}finally{u.f()}return c}function p(e){var t=f(e),r=new n.Dict(null);r.set("BaseFont",n.Name.get(e)),r.set("Type",n.Name.get("Font")),r.set("Subtype",n.Name.get("CIDFontType2")),r.set("Encoding",n.Name.get("Identity-H")),r.set("CIDToGIDMap",n.Name.get("Identity")),r.set("W",t),r.set("FirstChar",t[0]),r.set("LastChar",t.at(-2)+t.at(-1).length-1);var a=new n.Dict(null);r.set("FontDescriptor",a);var i=new n.Dict(null);return i.set("Ordering","Identity"),i.set("Registry","Adobe"),i.set("Supplement",0),r.set("CIDSystemInfo",i),r}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CalibriRegularMetrics=t.CalibriRegularFactors=t.CalibriItalicMetrics=t.CalibriItalicFactors=t.CalibriBoldMetrics=t.CalibriBoldItalicMetrics=t.CalibriBoldItalicFactors=t.CalibriBoldFactors=void 0;var r=[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];t.CalibriBoldFactors=r;var a={lineHeight:1.2207,lineGap:.2207};t.CalibriBoldMetrics=a;var n=[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];t.CalibriBoldItalicFactors=n;var i={lineHeight:1.2207,lineGap:.2207};t.CalibriBoldItalicMetrics=i;var o=[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];t.CalibriItalicFactors=o;var s={lineHeight:1.2207,lineGap:.2207};t.CalibriItalicMetrics=s;var l=[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];t.CalibriRegularFactors=l;var c={lineHeight:1.2207,lineGap:.2207};t.CalibriRegularMetrics=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HelveticaRegularMetrics=t.HelveticaRegularFactors=t.HelveticaItalicMetrics=t.HelveticaItalicFactors=t.HelveticaBoldMetrics=t.HelveticaBoldItalicMetrics=t.HelveticaBoldItalicFactors=t.HelveticaBoldFactors=void 0;var r=[.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];t.HelveticaBoldFactors=r;var a={lineHeight:1.2,lineGap:.2};t.HelveticaBoldMetrics=a;var n=[.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];t.HelveticaBoldItalicFactors=n;var i={lineHeight:1.35,lineGap:.2};t.HelveticaBoldItalicMetrics=i;var o=[.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];t.HelveticaItalicFactors=o;var s={lineHeight:1.35,lineGap:.2};t.HelveticaItalicMetrics=s;var l=[.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];t.HelveticaRegularFactors=l;var c={lineHeight:1.2,lineGap:.2};t.HelveticaRegularMetrics=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LiberationSansRegularWidths=t.LiberationSansRegularMapping=t.LiberationSansItalicWidths=t.LiberationSansItalicMapping=t.LiberationSansBoldWidths=t.LiberationSansBoldMapping=t.LiberationSansBoldItalicWidths=t.LiberationSansBoldItalicMapping=void 0;var r=[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];t.LiberationSansBoldWidths=r;var a=[-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];t.LiberationSansBoldMapping=a;var n=[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];t.LiberationSansBoldItalicWidths=n;var i=[-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];t.LiberationSansBoldItalicMapping=i;var o=[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];t.LiberationSansItalicWidths=o;var s=[-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];t.LiberationSansItalicMapping=s;var l=[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];t.LiberationSansRegularWidths=l;var c=[-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];t.LiberationSansRegularMapping=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MyriadProRegularMetrics=t.MyriadProRegularFactors=t.MyriadProItalicMetrics=t.MyriadProItalicFactors=t.MyriadProBoldMetrics=t.MyriadProBoldItalicMetrics=t.MyriadProBoldItalicFactors=t.MyriadProBoldFactors=void 0;var r=[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];t.MyriadProBoldFactors=r;var a={lineHeight:1.2,lineGap:.2};t.MyriadProBoldMetrics=a;var n=[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];t.MyriadProBoldItalicFactors=n;var i={lineHeight:1.2,lineGap:.2};t.MyriadProBoldItalicMetrics=i;var o=[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];t.MyriadProItalicFactors=o;var s={lineHeight:1.2,lineGap:.2};t.MyriadProItalicMetrics=s;var l=[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];t.MyriadProRegularFactors=l;var c={lineHeight:1.2,lineGap:.2};t.MyriadProRegularMetrics=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SegoeuiRegularMetrics=t.SegoeuiRegularFactors=t.SegoeuiItalicMetrics=t.SegoeuiItalicFactors=t.SegoeuiBoldMetrics=t.SegoeuiBoldItalicMetrics=t.SegoeuiBoldItalicFactors=t.SegoeuiBoldFactors=void 0;var r=[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];t.SegoeuiBoldFactors=r;var a={lineHeight:1.33008,lineGap:0};t.SegoeuiBoldMetrics=a;var n=[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];t.SegoeuiBoldItalicFactors=n;var i={lineHeight:1.33008,lineGap:0};t.SegoeuiBoldItalicMetrics=i;var o=[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];t.SegoeuiItalicFactors=o;var s={lineHeight:1.33008,lineGap:0};t.SegoeuiItalicMetrics=s;var l=[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];t.SegoeuiRegularFactors=l;var c={lineHeight:1.33008,lineGap:0};t.SegoeuiRegularMetrics=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptEvaluator=t.PostScriptCompiler=t.PDFFunctionFactory=void 0,t.isPDFFunction=h;var a=r(130),n=r(2),i=r(183),o=r(132),s=r(184),l=function(){function e(t){_(this,e);var r=t.xref,a=t.isEvalSupported,n=void 0===a||a;this.xref=r,this.isEvalSupported=!1!==n}return S(e,[{key:"create",value:function(e){var t=this.getCached(e);if(t)return t;var r=u.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:e instanceof a.Ref?this.xref.fetch(e):e});return this._cache(e,r),r}},{key:"createFromArray",value:function(e){var t=this.getCached(e);if(t)return t;var r=u.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:e instanceof a.Ref?this.xref.fetch(e):e});return this._cache(e,r),r}},{key:"getCached",value:function(e){var t;if(e instanceof a.Ref?t=e:e instanceof a.Dict?t=e.objId:e instanceof o.BaseStream&&(t=e.dict&&e.dict.objId),t){var r=this._localFunctionCache.getByRef(t);if(r)return r}return null}},{key:"_cache",value:function(e,t){if(!t)throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.');var r;e instanceof a.Ref?r=e:e instanceof a.Dict?r=e.objId:e instanceof o.BaseStream&&(r=e.dict&&e.dict.objId),r&&this._localFunctionCache.set(null,r,t)}},{key:"_localFunctionCache",get:function(){return(0,n.shadow)(this,"_localFunctionCache",new s.LocalFunctionCache)}}]),e}();function c(e){if(!Array.isArray(e))return null;for(var t=e.length,r=0;r<t;r++)if("number"!==typeof e[r]){for(var a=new Array(t),n=0;n<t;n++)a[n]=+e[n];return a}return e}t.PDFFunctionFactory=l;var u=function(){function e(){_(this,e)}return S(e,null,[{key:"getSampleArray",value:function(e,t,r,a){var n,i,o=1;for(n=0,i=e.length;n<i;n++)o*=e[n];o*=t;var s=new Array(o),l=0,c=0,u=1/(Math.pow(2,r)-1),h=a.getBytes((o*r+7)/8),d=0;for(n=0;n<o;n++){while(l<r)c<<=8,c|=h[d++],l+=8;l-=r,s[n]=(c>>l)*u,c&=(1<<l)-1}return s}},{key:"parse",value:function(e){var t=e.xref,r=e.isEvalSupported,a=e.fn,i=a.dict||a,o=i.get("FunctionType");switch(o){case 0:return this.constructSampled({xref:t,isEvalSupported:r,fn:a,dict:i});case 1:break;case 2:return this.constructInterpolated({xref:t,isEvalSupported:r,dict:i});case 3:return this.constructStiched({xref:t,isEvalSupported:r,dict:i});case 4:return this.constructPostScript({xref:t,isEvalSupported:r,fn:a,dict:i})}throw new n.FormatError("Unknown type of function")}},{key:"parseArray",value:function(e){var t=e.xref,r=e.isEvalSupported,a=e.fnObj;if(!Array.isArray(a))return this.parse({xref:t,isEvalSupported:r,fn:a});for(var n=[],i=0,o=a.length;i<o;i++)n.push(this.parse({xref:t,isEvalSupported:r,fn:t.fetchIfRef(a[i])}));return function(e,t,r,a){for(var i=0,o=n.length;i<o;i++)n[i](e,t,r,a+i)}}},{key:"constructSampled",value:function(e){e.xref,e.isEvalSupported;var t=e.fn,r=e.dict;function a(e){for(var t=e.length,r=[],a=0,n=0;n<t;n+=2)r[a++]=[e[n],e[n+1]];return r}function i(e,t,r,a,n){return a+(n-a)/(r-t)*(e-t)}var o=c(r.getArray("Domain")),s=c(r.getArray("Range"));if(!o||!s)throw new n.FormatError("No domain or range");var l=o.length/2,u=s.length/2;o=a(o),s=a(s);var h=c(r.getArray("Size")),d=r.get("BitsPerSample"),f=r.get("Order")||1;1!==f&&(0,n.info)("No support for cubic spline interpolation: "+f);var p=c(r.getArray("Encode"));if(p)p=a(p);else{p=[];for(var v=0;v<l;++v)p.push([0,h[v]-1])}var g=c(r.getArray("Decode"));g=g?a(g):s;var m=this.getSampleArray(h,u,d,t);return function(e,t,r,a){var n,c,d=1<<l,f=new Float64Array(d),v=new Uint32Array(d);for(c=0;c<d;c++)f[c]=1;var y=u,b=1;for(n=0;n<l;++n){var k=o[n][0],w=o[n][1],_=Math.min(Math.max(e[t+n],k),w),S=i(_,k,w,p[n][0],p[n][1]),x=h[n];S=Math.min(Math.max(S,0),x-1);var A=S<x-1?Math.floor(S):S-1,C=A+1-S,F=S-A,P=A*y,T=P+y;for(c=0;c<d;c++)c&b?(f[c]*=F,v[c]+=T):(f[c]*=C,v[c]+=P);y*=x,b<<=1}for(c=0;c<u;++c){var O=0;for(n=0;n<d;n++)O+=m[v[n]+c]*f[n];O=i(O,0,1,g[c][0],g[c][1]),r[a+c]=Math.min(Math.max(O,s[c][0]),s[c][1])}}}},{key:"constructInterpolated",value:function(e){e.xref,e.isEvalSupported;for(var t=e.dict,r=c(t.getArray("C0"))||[0],a=c(t.getArray("C1"))||[1],n=t.get("N"),i=[],o=0,s=r.length;o<s;++o)i.push(a[o]-r[o]);var l=i.length;return function(e,t,a,o){for(var s=1===n?e[t]:Math.pow(e[t],n),c=0;c<l;++c)a[o+c]=r[c]+s*i[c]}}},{key:"constructStiched",value:function(e){var t=e.xref,r=e.isEvalSupported,a=e.dict,i=c(a.getArray("Domain"));if(!i)throw new n.FormatError("No domain");var o=i.length/2;if(1!==o)throw new n.FormatError("Bad domain for stiched function");for(var s=a.get("Functions"),l=[],u=0,h=s.length;u<h;++u)l.push(this.parse({xref:t,isEvalSupported:r,fn:t.fetchIfRef(s[u])}));var d=c(a.getArray("Bounds")),f=c(a.getArray("Encode")),p=new Float32Array(1);return function(e,t,r,a){var n,o=function(e,t,r){return e>r?e=r:e<t&&(e=t),e},s=o(e[t],i[0],i[1]),c=d.length;for(n=0;n<c;++n)if(s<d[n])break;var u=i[0];n>0&&(u=d[n-1]);var h=i[1];n<d.length&&(h=d[n]);var v=f[2*n],g=f[2*n+1];p[0]=u===h?v:v+(s-u)*(g-v)/(h-u),l[n](p,0,r,a)}}},{key:"constructPostScript",value:function(e){e.xref;var t=e.isEvalSupported,r=e.fn,a=e.dict,o=c(a.getArray("Domain")),s=c(a.getArray("Range"));if(!o)throw new n.FormatError("No domain.");if(!s)throw new n.FormatError("No range.");var l=new i.PostScriptLexer(r),u=new i.PostScriptParser(l),h=u.parse();if(t&&n.FeatureTest.isEvalSupported){var d=(new I).compile(h,o,s);if(d)return new Function("src","srcOffset","dest","destOffset",d)}(0,n.info)("Unable to compile PS function");var p=s.length>>1,v=o.length>>1,g=new f(h),m=Object.create(null),y=8192,b=y,k=new Float32Array(v);return function(e,t,r,a){var n,i,o="",l=k;for(n=0;n<v;n++)i=e[t+n],l[n]=i,o+=i+"_";var c=m[o];if(void 0===c){var u=new Float32Array(p),h=g.execute(l),d=h.length-p;for(n=0;n<p;n++){i=h[d+n];var f=s[2*n];i<f?i=f:(f=s[2*n+1],i>f&&(i=f)),u[n]=i}b>0&&(b--,m[o]=u),r.set(u,a)}else r.set(c,a)}}}]),e}();function h(e){var t;if("object"!==x(e))return!1;if(e instanceof a.Dict)t=e;else{if(!(e instanceof o.BaseStream))return!1;t=e.dict}return t.has("FunctionType")}var d=function(){function e(t){_(this,e),this.stack=t?Array.prototype.slice.call(t,0):[]}return S(e,[{key:"push",value:function(t){if(this.stack.length>=e.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(t)}},{key:"pop",value:function(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}},{key:"copy",value:function(t){if(this.stack.length+t>=e.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");for(var r=this.stack,a=r.length-t,n=t-1;n>=0;n--,a++)r.push(r[a])}},{key:"index",value:function(e){this.push(this.stack[this.stack.length-e-1])}},{key:"roll",value:function(e,t){for(var r=this.stack,a=r.length-e,n=r.length-1,i=a+(t-Math.floor(t/e)*e),o=a,s=n;o<s;o++,s--){var l=r[o];r[o]=r[s],r[s]=l}for(var c=a,u=i-1;c<u;c++,u--){var h=r[c];r[c]=r[u],r[u]=h}for(var d=i,f=n;d<f;d++,f--){var p=r[d];r[d]=r[f],r[f]=p}}}],[{key:"MAX_STACK_SIZE",get:function(){return(0,n.shadow)(this,"MAX_STACK_SIZE",100)}}]),e}(),f=function(){function e(t){_(this,e),this.operators=t}return S(e,[{key:"execute",value:function(e){var t,r,a,i=new d(e),o=0,s=this.operators,l=s.length;while(o<l)if(t=s[o++],"number"!==typeof t)switch(t){case"jz":a=i.pop(),r=i.pop(),r||(o=a);break;case"j":r=i.pop(),o=r;break;case"abs":r=i.pop(),i.push(Math.abs(r));break;case"add":a=i.pop(),r=i.pop(),i.push(r+a);break;case"and":a=i.pop(),r=i.pop(),"boolean"===typeof r&&"boolean"===typeof a?i.push(r&&a):i.push(r&a);break;case"atan":r=i.pop(),i.push(Math.atan(r));break;case"bitshift":a=i.pop(),r=i.pop(),r>0?i.push(r<<a):i.push(r>>a);break;case"ceiling":r=i.pop(),i.push(Math.ceil(r));break;case"copy":r=i.pop(),i.copy(r);break;case"cos":r=i.pop(),i.push(Math.cos(r));break;case"cvi":r=0|i.pop(),i.push(r);break;case"cvr":break;case"div":a=i.pop(),r=i.pop(),i.push(r/a);break;case"dup":i.copy(1);break;case"eq":a=i.pop(),r=i.pop(),i.push(r===a);break;case"exch":i.roll(2,1);break;case"exp":a=i.pop(),r=i.pop(),i.push(Math.pow(r,a));break;case"false":i.push(!1);break;case"floor":r=i.pop(),i.push(Math.floor(r));break;case"ge":a=i.pop(),r=i.pop(),i.push(r>=a);break;case"gt":a=i.pop(),r=i.pop(),i.push(r>a);break;case"idiv":a=i.pop(),r=i.pop(),i.push(r/a|0);break;case"index":r=i.pop(),i.index(r);break;case"le":a=i.pop(),r=i.pop(),i.push(r<=a);break;case"ln":r=i.pop(),i.push(Math.log(r));break;case"log":r=i.pop(),i.push(Math.log(r)/Math.LN10);break;case"lt":a=i.pop(),r=i.pop(),i.push(r<a);break;case"mod":a=i.pop(),r=i.pop(),i.push(r%a);break;case"mul":a=i.pop(),r=i.pop(),i.push(r*a);break;case"ne":a=i.pop(),r=i.pop(),i.push(r!==a);break;case"neg":r=i.pop(),i.push(-r);break;case"not":r=i.pop(),"boolean"===typeof r?i.push(!r):i.push(~r);break;case"or":a=i.pop(),r=i.pop(),"boolean"===typeof r&&"boolean"===typeof a?i.push(r||a):i.push(r|a);break;case"pop":i.pop();break;case"roll":a=i.pop(),r=i.pop(),i.roll(r,a);break;case"round":r=i.pop(),i.push(Math.round(r));break;case"sin":r=i.pop(),i.push(Math.sin(r));break;case"sqrt":r=i.pop(),i.push(Math.sqrt(r));break;case"sub":a=i.pop(),r=i.pop(),i.push(r-a);break;case"true":i.push(!0);break;case"truncate":r=i.pop(),r=r<0?Math.ceil(r):Math.floor(r),i.push(r);break;case"xor":a=i.pop(),r=i.pop(),"boolean"===typeof r&&"boolean"===typeof a?i.push(r!==a):i.push(r^a);break;default:throw new n.FormatError("Unknown operator ".concat(t))}else i.push(t);return i.stack}}]),e}();t.PostScriptEvaluator=f;var p=function(){function e(t){_(this,e),this.type=t}return S(e,[{key:"visit",value:function(e){(0,n.unreachable)("abstract method")}}]),e}(),m=function(e){v(r,e);var t=g(r);function r(e,a,n){var i;return _(this,r),i=t.call(this,"args"),i.index=e,i.min=a,i.max=n,i}return S(r,[{key:"visit",value:function(e){e.visitArgument(this)}}]),r}(p),y=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,"literal"),a.number=e,a.min=e,a.max=e,a}return S(r,[{key:"visit",value:function(e){e.visitLiteral(this)}}]),r}(p),b=function(e){v(r,e);var t=g(r);function r(e,a,n,i,o){var s;return _(this,r),s=t.call(this,"binary"),s.op=e,s.arg1=a,s.arg2=n,s.min=i,s.max=o,s}return S(r,[{key:"visit",value:function(e){e.visitBinaryOperation(this)}}]),r}(p),k=function(e){v(r,e);var t=g(r);function r(e,a){var n;return _(this,r),n=t.call(this,"max"),n.arg=e,n.min=e.min,n.max=a,n}return S(r,[{key:"visit",value:function(e){e.visitMin(this)}}]),r}(p),w=function(e){v(r,e);var t=g(r);function r(e,a,n){var i;return _(this,r),i=t.call(this,"var"),i.index=e,i.min=a,i.max=n,i}return S(r,[{key:"visit",value:function(e){e.visitVariable(this)}}]),r}(p),A=function(e){v(r,e);var t=g(r);function r(e,a){var n;return _(this,r),n=t.call(this,"definition"),n.variable=e,n.arg=a,n}return S(r,[{key:"visit",value:function(e){e.visitVariableDefinition(this)}}]),r}(p),C=function(){function e(){_(this,e),this.parts=[]}return S(e,[{key:"visitArgument",value:function(e){this.parts.push("Math.max(",e.min,", Math.min(",e.max,", src[srcOffset + ",e.index,"]))")}},{key:"visitVariable",value:function(e){this.parts.push("v",e.index)}},{key:"visitLiteral",value:function(e){this.parts.push(e.number)}},{key:"visitBinaryOperation",value:function(e){this.parts.push("("),e.arg1.visit(this),this.parts.push(" ",e.op," "),e.arg2.visit(this),this.parts.push(")")}},{key:"visitVariableDefinition",value:function(e){this.parts.push("var "),e.variable.visit(this),this.parts.push(" = "),e.arg.visit(this),this.parts.push(";")}},{key:"visitMin",value:function(e){this.parts.push("Math.min("),e.arg.visit(this),this.parts.push(", ",e.max,")")}},{key:"toString",value:function(){return this.parts.join("")}}]),e}();function F(e,t){return"literal"===t.type&&0===t.number?e:"literal"===e.type&&0===e.number?t:"literal"===t.type&&"literal"===e.type?new y(e.number+t.number):new b("+",e,t,e.min+t.min,e.max+t.max)}function P(e,t){if("literal"===t.type){if(0===t.number)return new y(0);if(1===t.number)return e;if("literal"===e.type)return new y(e.number*t.number)}if("literal"===e.type){if(0===e.number)return new y(0);if(1===e.number)return t}var r=Math.min(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max),a=Math.max(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max);return new b("*",e,t,r,a)}function T(e,t){if("literal"===t.type){if(0===t.number)return e;if("literal"===e.type)return new y(e.number-t.number)}return"binary"===t.type&&"-"===t.op&&"literal"===e.type&&1===e.number&&"literal"===t.arg1.type&&1===t.arg1.number?t.arg2:new b("-",e,t,e.min-t.max,e.max-t.min)}function O(e,t){return e.min>=t?new y(t):e.max<=t?e:new k(e,t)}var I=function(){function e(){_(this,e)}return S(e,[{key:"compile",value:function(e,t,r){for(var a,n,i,o,s,l,c,u,h=[],d=[],f=t.length>>1,p=r.length>>1,v=0,g=0;g<f;g++)h.push(new m(g,t[2*g],t[2*g+1]));for(var b=0,k=e.length;b<k;b++)if(u=e[b],"number"!==typeof u)switch(u){case"add":if(h.length<2)return null;o=h.pop(),i=h.pop(),h.push(F(i,o));break;case"cvr":if(h.length<1)return null;break;case"mul":if(h.length<2)return null;o=h.pop(),i=h.pop(),h.push(P(i,o));break;case"sub":if(h.length<2)return null;o=h.pop(),i=h.pop(),h.push(T(i,o));break;case"exch":if(h.length<2)return null;s=h.pop(),l=h.pop(),h.push(s,l);break;case"pop":if(h.length<1)return null;h.pop();break;case"index":if(h.length<1)return null;if(i=h.pop(),"literal"!==i.type)return null;if(a=i.number,a<0||!Number.isInteger(a)||h.length<a)return null;if(s=h[h.length-a-1],"literal"===s.type||"var"===s.type){h.push(s);break}c=new w(v++,s.min,s.max),h[h.length-a-1]=c,h.push(c),d.push(new A(c,s));break;case"dup":if(h.length<1)return null;if("number"===typeof e[b+1]&&"gt"===e[b+2]&&e[b+3]===b+7&&"jz"===e[b+4]&&"pop"===e[b+5]&&e[b+6]===e[b+1]){i=h.pop(),h.push(O(i,e[b+1])),b+=6;break}if(s=h.at(-1),"literal"===s.type||"var"===s.type){h.push(s);break}c=new w(v++,s.min,s.max),h[h.length-1]=c,h.push(c),d.push(new A(c,s));break;case"roll":if(h.length<2)return null;if(o=h.pop(),i=h.pop(),"literal"!==o.type||"literal"!==i.type)return null;if(n=o.number,a=i.number,a<=0||!Number.isInteger(a)||!Number.isInteger(n)||h.length<a)return null;if(n=(n%a+a)%a,0===n)break;Array.prototype.push.apply(h,h.splice(h.length-a,a-n));break;default:return null}else h.push(new y(u));if(h.length!==p)return null;for(var _=[],S=0,x=d;S<x.length;S++){var I=x[S],E=new C;I.visit(E),_.push(E.toString())}for(var M=0,R=h.length;M<R;M++){var D=h[M],N=new C;D.visit(N);var L=r[2*M],B=r[2*M+1],j=[N.toString()];L>D.min&&(j.unshift("Math.max(",L,", "),j.push(")")),B<D.max&&(j.unshift("Math.min(",B,", "),j.push(")")),j.unshift("dest[destOffset + ",M,"] = "),j.push(";"),_.push(j.join(""))}return _.join("\n")}}]),e}();t.PostScriptCompiler=I},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptParser=t.PostScriptLexer=void 0;var a=r(2),n=r(130),i=r(131),o=function(){function e(t){_(this,e),this.lexer=t,this.operators=[],this.token=null,this.prev=null}return S(e,[{key:"nextToken",value:function(){this.prev=this.token,this.token=this.lexer.getToken()}},{key:"accept",value:function(e){return this.token.type===e&&(this.nextToken(),!0)}},{key:"expect",value:function(e){if(this.accept(e))return!0;throw new a.FormatError("Unexpected symbol: found ".concat(this.token.type," expected ").concat(e,"."))}},{key:"parse",value:function(){return this.nextToken(),this.expect(s.LBRACE),this.parseBlock(),this.expect(s.RBRACE),this.operators}},{key:"parseBlock",value:function(){while(1)if(this.accept(s.NUMBER))this.operators.push(this.prev.value);else if(this.accept(s.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(s.LBRACE))return;this.parseCondition()}}},{key:"parseCondition",value:function(){var e=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(s.RBRACE),this.accept(s.IF))this.operators[e]=this.operators.length,this.operators[e+1]="jz";else{if(!this.accept(s.LBRACE))throw new a.FormatError("PS Function: error parsing conditional.");var t=this.operators.length;this.operators.push(null,null);var r=this.operators.length;this.parseBlock(),this.expect(s.RBRACE),this.expect(s.IFELSE),this.operators[t]=this.operators.length,this.operators[t+1]="j",this.operators[e]=r,this.operators[e+1]="jz"}}}]),e}();t.PostScriptParser=o;var s={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5},l=function(){function e(t,r){_(this,e),this.type=t,this.value=r}return S(e,null,[{key:"opCache",get:function(){return(0,a.shadow)(this,"opCache",Object.create(null))}},{key:"getOperator",value:function(t){var r=e.opCache[t];return r||(e.opCache[t]=new e(s.OPERATOR,t))}},{key:"LBRACE",get:function(){return(0,a.shadow)(this,"LBRACE",new e(s.LBRACE,"{"))}},{key:"RBRACE",get:function(){return(0,a.shadow)(this,"RBRACE",new e(s.RBRACE,"}"))}},{key:"IF",get:function(){return(0,a.shadow)(this,"IF",new e(s.IF,"IF"))}},{key:"IFELSE",get:function(){return(0,a.shadow)(this,"IFELSE",new e(s.IFELSE,"IFELSE"))}}]),e}(),c=function(){function e(t){_(this,e),this.stream=t,this.nextChar(),this.strBuf=[]}return S(e,[{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"getToken",value:function(){var e=!1,t=this.currentChar;while(1){if(t<0)return n.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,i.isWhiteSpace)(t))break;t=this.nextChar()}switch(0|t){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 l(s.NUMBER,this.getNumber());case 123:return this.nextChar(),l.LBRACE;case 125:return this.nextChar(),l.RBRACE}var r=this.strBuf;r.length=0,r[0]=String.fromCharCode(t);while((t=this.nextChar())>=0&&(t>=65&&t<=90||t>=97&&t<=122))r.push(String.fromCharCode(t));var a=r.join("");switch(a.toLowerCase()){case"if":return l.IF;case"ifelse":return l.IFELSE;default:return l.getOperator(a)}}},{key:"getNumber",value:function(){var e=this.currentChar,t=this.strBuf;t.length=0,t[0]=String.fromCharCode(e);while((e=this.nextChar())>=0){if(!(e>=48&&e<=57||45===e||46===e))break;t.push(String.fromCharCode(e))}var r=parseFloat(t.join(""));if(isNaN(r))throw new a.FormatError("Invalid floating point number: ".concat(r));return r}}]),e}();t.PostScriptLexer=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalTilingPatternCache=t.LocalImageCache=t.LocalGStateCache=t.LocalFunctionCache=t.LocalColorSpaceCache=t.GlobalImageCache=void 0;var a=r(2),n=r(130),i=function(){function e(t){_(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize BaseLocalCache."),this._onlyRefs=!0===(t&&t.onlyRefs),this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new n.RefSetCache}return S(e,[{key:"getByName",value:function(e){this._onlyRefs&&(0,a.unreachable)("Should not call `getByName` method.");var t=this._nameRefMap.get(e);return t?this.getByRef(t):this._imageMap.get(e)||null}},{key:"getByRef",value:function(e){return this._imageCache.get(e)||null}},{key:"set",value:function(e,t,r){(0,a.unreachable)("Abstract method `set` called.")}}]),e}(),o=function(e){v(r,e);var t=g(r);function r(){return _(this,r),t.apply(this,arguments)}return S(r,[{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if("string"!==typeof e)throw new Error('LocalImageCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;return this._nameRefMap.set(e,t),void this._imageCache.put(t,r)}this._imageMap.has(e)||this._imageMap.set(e,r)}}]),r}(i);t.LocalImageCache=o;var s=function(e){v(r,e);var t=g(r);function r(){return _(this,r),t.apply(this,arguments)}return S(r,[{key:"set",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if("string"!==typeof e&&!t)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(t){if(this._imageCache.has(t))return;return null!==e&&this._nameRefMap.set(e,t),void this._imageCache.put(t,r)}this._imageMap.has(e)||this._imageMap.set(e,r)}}]),r}(i);t.LocalColorSpaceCache=s;var l=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,{onlyRefs:!0})}return S(r,[{key:"set",value:function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}}]),r}(i);t.LocalFunctionCache=l;var c=function(e){v(r,e);var t=g(r);function r(){return _(this,r),t.apply(this,arguments)}return S(r,[{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if("string"!==typeof e)throw new Error('LocalGStateCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;return this._nameRefMap.set(e,t),void this._imageCache.put(t,r)}this._imageMap.has(e)||this._imageMap.set(e,r)}}]),r}(i);t.LocalGStateCache=c;var u=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,{onlyRefs:!0})}return S(r,[{key:"set",value:function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}}]),r}(i);t.LocalTilingPatternCache=u;var h=function(){function e(){_(this,e),this._refCache=new n.RefSetCache,this._imageCache=new n.RefSetCache}return S(e,[{key:"_byteSize",get:function(){var e,t=0,r=b(this._imageCache);try{for(r.s();!(e=r.n()).done;){var a=e.value;t+=a.byteSize}}catch(n){r.e(n)}finally{r.f()}return t}},{key:"_cacheLimitReached",get:function(){return!(this._imageCache.size<e.MIN_IMAGES_TO_CACHE)&&!(this._byteSize<e.MAX_BYTE_SIZE)}},{key:"shouldCache",value:function(t,r){var a=this._refCache.get(t),n=a?a.size+(a.has(r)?0:1):1;return!(n<e.NUM_PAGES_THRESHOLD)&&!(!this._imageCache.has(t)&&this._cacheLimitReached)}},{key:"addPageIndex",value:function(e,t){var r=this._refCache.get(e);r||(r=new Set,this._refCache.put(e,r)),r.add(t)}},{key:"addByteSize",value:function(e,t){var r=this._imageCache.get(e);r&&(r.byteSize||(r.byteSize=t))}},{key:"getData",value:function(t,r){var a=this._refCache.get(t);if(!a)return null;if(a.size<e.NUM_PAGES_THRESHOLD)return null;var n=this._imageCache.get(t);return n?(a.add(r),n):null}},{key:"setData",value:function(e,t){if(!this._refCache.has(e))throw new Error('GlobalImageCache.setData - expected "addPageIndex" to have been called.');this._imageCache.has(e)||(this._cacheLimitReached?(0,a.warn)("GlobalImageCache.setData - cache limit reached."):this._imageCache.put(e,t))}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e||this._refCache.clear(),this._imageCache.clear()}}],[{key:"NUM_PAGES_THRESHOLD",get:function(){return(0,a.shadow)(this,"NUM_PAGES_THRESHOLD",2)}},{key:"MIN_IMAGES_TO_CACHE",get:function(){return(0,a.shadow)(this,"MIN_IMAGES_TO_CACHE",10)}},{key:"MAX_BYTE_SIZE",get:function(){return(0,a.shadow)(this,"MAX_BYTE_SIZE",4e7)}}]),e}();t.GlobalImageCache=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bidi=p;var a=r(2),n=["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"],i=["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 o(e){return 0!==(1&e)}function s(e){return 0===(1&e)}function l(e,t,r){var a,n;for(a=t,n=e.length;a<n;++a)if(e[a]!==r)return a;return a}function c(e,t,r,a){for(var n=t;n<r;++n)e[n]=a}function u(e,t,r){for(var a=t,n=r-1;a<n;++a,--n){var i=e[a];e[a]=e[n],e[n]=i}}function h(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a="ltr";return r?a="ttb":t||(a="rtl"),{str:e,dir:a}}var d=[],f=[];function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],p=!0,v=e.length;if(0===v||r)return h(e,p,r);d.length=v,f.length=v;var g,m,y=0;for(g=0;g<v;++g){d[g]=e.charAt(g);var b=e.charCodeAt(g),k="L";b<=255?k=n[b]:1424<=b&&b<=1524?k="R":1536<=b&&b<=1791?(k=i[255&b],k||(0,a.warn)("Bidi: invalid Unicode character "+b.toString(16))):1792<=b&&b<=2220&&(k="AL"),"R"!==k&&"AL"!==k&&"AN"!==k||y++,f[g]=k}if(0===y)return p=!0,h(e,p);-1===t&&(y/v<.3&&v>4?(p=!0,t=0):(p=!1,t=1));var w=[];for(g=0;g<v;++g)w[g]=t;var _,S=o(t)?"R":"L",x=S,A=x,C=x;for(g=0;g<v;++g)"NSM"===f[g]?f[g]=C:C=f[g];for(C=x,g=0;g<v;++g)_=f[g],"EN"===_?f[g]="AL"===C?"AN":"EN":"R"!==_&&"L"!==_&&"AL"!==_||(C=_);for(g=0;g<v;++g)_=f[g],"AL"===_&&(f[g]="R");for(g=1;g<v-1;++g)"ES"===f[g]&&"EN"===f[g-1]&&"EN"===f[g+1]&&(f[g]="EN"),"CS"!==f[g]||"EN"!==f[g-1]&&"AN"!==f[g-1]||f[g+1]!==f[g-1]||(f[g]=f[g-1]);for(g=0;g<v;++g)if("EN"===f[g]){for(var F=g-1;F>=0;--F){if("ET"!==f[F])break;f[F]="EN"}for(var P=g+1;P<v;++P){if("ET"!==f[P])break;f[P]="EN"}}for(g=0;g<v;++g)_=f[g],"WS"!==_&&"ES"!==_&&"ET"!==_&&"CS"!==_||(f[g]="ON");for(C=x,g=0;g<v;++g)_=f[g],"EN"===_?f[g]="L"===C?"L":"EN":"R"!==_&&"L"!==_||(C=_);for(g=0;g<v;++g)if("ON"===f[g]){var T=l(f,g+1,"ON"),O=x;g>0&&(O=f[g-1]);var I=A;T+1<v&&(I=f[T+1]),"L"!==O&&(O="R"),"L"!==I&&(I="R"),O===I&&c(f,g,T,O),g=T-1}for(g=0;g<v;++g)"ON"===f[g]&&(f[g]=S);for(g=0;g<v;++g)_=f[g],s(w[g])?"R"===_?w[g]+=1:"AN"!==_&&"EN"!==_||(w[g]+=2):"L"!==_&&"AN"!==_&&"EN"!==_||(w[g]+=1);var E,M=-1,R=99;for(g=0,m=w.length;g<m;++g)E=w[g],M<E&&(M=E),R>E&&o(E)&&(R=E);for(E=M;E>=R;--E){var D=-1;for(g=0,m=w.length;g<m;++g)w[g]<E?D>=0&&(u(d,D,g),D=-1):D<0&&(D=g);D>=0&&u(d,D,w.length)}for(g=0,m=d.length;g<m;++g){var N=d[g];"<"!==N&&">"!==N||(d[g]="")}return h(d.join(""),p)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var a=r(2),n=3285377520,i=4294901760,o=65535,s=function(){function e(t){_(this,e),this.h1=t?4294967295&t:n,this.h2=t?4294967295&t:n}return S(e,[{key:"update",value:function(e){var t,r;if("string"===typeof e){t=new Uint8Array(2*e.length),r=0;for(var n=0,s=e.length;n<s;n++){var l=e.charCodeAt(n);l<=255?t[r++]=l:(t[r++]=l>>>8,t[r++]=255&l)}}else{if(!(0,a.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e.slice(),r=t.byteLength}for(var c=r>>2,u=r-4*c,h=new Uint32Array(t.buffer,0,c),d=0,f=0,p=this.h1,v=this.h2,g=3432918353,m=461845907,y=g&o,b=m&o,k=0;k<c;k++)1&k?(d=h[k],d=d*g&i|d*y&o,d=d<<15|d>>>17,d=d*m&i|d*b&o,p^=d,p=p<<13|p>>>19,p=5*p+3864292196):(f=h[k],f=f*g&i|f*y&o,f=f<<15|f>>>17,f=f*m&i|f*b&o,v^=f,v=v<<13|v>>>19,v=5*v+3864292196);switch(d=0,u){case 3:d^=t[4*c+2]<<16;case 2:d^=t[4*c+1]<<8;case 1:d^=t[4*c],d=d*g&i|d*y&o,d=d<<15|d>>>17,d=d*m&i|d*b&o,1&c?p^=d:v^=d}this.h1=p,this.h2=v}},{key:"hexdigest",value:function(){var e=this.h1,t=this.h2;e^=t>>>1,e=3981806797*e&i|36045*e&o,t=4283543511*t&i|(2950163797*(t<<16|e>>>16)&i)>>>16,e^=t>>>1,e=444984403*e&i|60499*e&o,t=3301882366*t&i|(3120437893*(t<<16|e>>>16)&i)>>>16,e^=t>>>1;var r=(e>>>0).toString(16),a=(t>>>0).toString(16);return r.padStart(8,"0")+a.padStart(8,"0")}}]),e}();t.MurmurHash3_64=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorList=void 0;var a=r(2);function n(e,t,r,a,n){for(var i=e,o=0,s=t.length-1;o<s;o++){var l=t[o];i=i[l]||(i[l]=[])}i[t.at(-1)]={checkFn:r,iterateFn:a,processFn:n}}var i=[];n(i,[a.OPS.save,a.OPS.transform,a.OPS.paintInlineImageXObject,a.OPS.restore],null,(function(e,t){var r=e.fnArray,n=e.iCurr-3,i=(t-n)%4;switch(i){case 0:return r[t]===a.OPS.save;case 1:return r[t]===a.OPS.transform;case 2:return r[t]===a.OPS.paintInlineImageXObject;case 3:return r[t]===a.OPS.restore}throw new Error("iterateInlineImageGroup - invalid pos: ".concat(i))}),(function(e,t){var r=10,n=200,i=1e3,o=1,s=e.fnArray,l=e.argsArray,c=e.iCurr,u=c-3,h=c-2,d=c-1,f=Math.min(Math.floor((t-u)/4),n);if(f<r)return t-(t-u)%4;for(var p=0,v=[],g=0,m=o,y=o,b=0;b<f;b++){var k=l[h+(b<<2)],w=l[d+(b<<2)][0];m+w.width>i&&(p=Math.max(p,m),y+=g+2*o,m=0,g=0),v.push({transform:k,x:m,y:y,w:w.width,h:w.height}),m+=w.width+2*o,g=Math.max(g,w.height)}for(var _=Math.max(p,m)+o,S=y+g+o,x=new Uint8Array(_*S*4),A=_<<2,C=0;C<f;C++){var F=l[d+(C<<2)][0].data,P=v[C].w<<2,T=0,O=v[C].x+v[C].y*_<<2;x.set(F.subarray(0,P),O-A);for(var I=0,E=v[C].h;I<E;I++)x.set(F.subarray(T,T+P),O),T+=P,O+=A;x.set(F.subarray(T-P,T),O);while(O>=0)F[O-4]=F[O],F[O-3]=F[O+1],F[O-2]=F[O+2],F[O-1]=F[O+3],F[O+P]=F[O+P-4],F[O+P+1]=F[O+P-3],F[O+P+2]=F[O+P-2],F[O+P+3]=F[O+P-1],O-=A}return s.splice(u,4*f,a.OPS.paintInlineImageXObjectGroup),l.splice(u,4*f,[{width:_,height:S,kind:a.ImageKind.RGBA_32BPP,data:x},v]),u+1})),n(i,[a.OPS.save,a.OPS.transform,a.OPS.paintImageMaskXObject,a.OPS.restore],null,(function(e,t){var r=e.fnArray,n=e.iCurr-3,i=(t-n)%4;switch(i){case 0:return r[t]===a.OPS.save;case 1:return r[t]===a.OPS.transform;case 2:return r[t]===a.OPS.paintImageMaskXObject;case 3:return r[t]===a.OPS.restore}throw new Error("iterateImageMaskGroup - invalid pos: ".concat(i))}),(function(e,t){var r=10,n=100,i=1e3,o=e.fnArray,s=e.argsArray,l=e.iCurr,c=l-3,u=l-2,h=l-1,d=Math.floor((t-c)/4);if(d<r)return t-(t-c)%4;var f,p,v=!1,g=s[h][0],m=s[u][0],y=s[u][1],b=s[u][2],k=s[u][3];if(y===b){v=!0,f=u+4;for(var w=h+4,_=1;_<d;_++,f+=4,w+=4)if(p=s[f],s[w][0]!==g||p[0]!==m||p[1]!==y||p[2]!==b||p[3]!==k){_<r?v=!1:d=_;break}}if(v){d=Math.min(d,i);var S=new Float32Array(2*d);f=u;for(var x=0;x<d;x++,f+=4)p=s[f],S[x<<1]=p[4],S[1+(x<<1)]=p[5];o.splice(c,4*d,a.OPS.paintImageMaskXObjectRepeat),s.splice(c,4*d,[g,m,y,b,k,S])}else{d=Math.min(d,n);for(var A=[],C=0;C<d;C++){p=s[u+(C<<2)];var F=s[h+(C<<2)][0];A.push({data:F.data,width:F.width,height:F.height,interpolate:F.interpolate,count:F.count,transform:p})}o.splice(c,4*d,a.OPS.paintImageMaskXObjectGroup),s.splice(c,4*d,[A])}return c+1})),n(i,[a.OPS.save,a.OPS.transform,a.OPS.paintImageXObject,a.OPS.restore],(function(e){var t=e.argsArray,r=e.iCurr-2;return 0===t[r][1]&&0===t[r][2]}),(function(e,t){var r=e.fnArray,n=e.argsArray,i=e.iCurr-3,o=(t-i)%4;switch(o){case 0:return r[t]===a.OPS.save;case 1:if(r[t]!==a.OPS.transform)return!1;var s=e.iCurr-2,l=n[s][0],c=n[s][3];return n[t][0]===l&&0===n[t][1]&&0===n[t][2]&&n[t][3]===c;case 2:if(r[t]!==a.OPS.paintImageXObject)return!1;var u=e.iCurr-1,h=n[u][0];return n[t][0]===h;case 3:return r[t]===a.OPS.restore}throw new Error("iterateImageGroup - invalid pos: ".concat(o))}),(function(e,t){var r=3,n=1e3,i=e.fnArray,o=e.argsArray,s=e.iCurr,l=s-3,c=s-2,u=s-1,h=o[u][0],d=o[c][0],f=o[c][3],p=Math.min(Math.floor((t-l)/4),n);if(p<r)return t-(t-l)%4;for(var v=new Float32Array(2*p),g=c,m=0;m<p;m++,g+=4){var y=o[g];v[m<<1]=y[4],v[1+(m<<1)]=y[5]}var b=[h,d,f,v];return i.splice(l,4*p,a.OPS.paintImageXObjectRepeat),o.splice(l,4*p,b),l+1})),n(i,[a.OPS.beginText,a.OPS.setFont,a.OPS.setTextMatrix,a.OPS.showText,a.OPS.endText],null,(function(e,t){var r=e.fnArray,n=e.argsArray,i=e.iCurr-4,o=(t-i)%5;switch(o){case 0:return r[t]===a.OPS.beginText;case 1:return r[t]===a.OPS.setFont;case 2:return r[t]===a.OPS.setTextMatrix;case 3:if(r[t]!==a.OPS.showText)return!1;var s=e.iCurr-3,l=n[s][0],c=n[s][1];return n[t][0]===l&&n[t][1]===c;case 4:return r[t]===a.OPS.endText}throw new Error("iterateShowTextGroup - invalid pos: ".concat(o))}),(function(e,t){var r=3,a=1e3,n=e.fnArray,i=e.argsArray,o=e.iCurr,s=o-4,l=o-3,c=o-2,u=o-1,h=o,d=i[l][0],f=i[l][1],p=Math.min(Math.floor((t-s)/5),a);if(p<r)return t-(t-s)%5;var v=s;s>=4&&n[s-4]===n[l]&&n[s-3]===n[c]&&n[s-2]===n[u]&&n[s-1]===n[h]&&i[s-4][0]===d&&i[s-4][1]===f&&(p++,v-=5);for(var g=v+4,m=1;m<p;m++)n.splice(g,3),i.splice(g,3),g+=2;return g+1}));var o=function(){function e(t){_(this,e),this.queue=t}return S(e,[{key:"_optimize",value:function(){}},{key:"push",value:function(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t),this._optimize()}},{key:"flush",value:function(){}},{key:"reset",value:function(){}}]),e}(),s=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,e),a.state=null,a.context={iCurr:0,fnArray:e.fnArray,argsArray:e.argsArray},a.match=null,a.lastProcessed=0,a}return S(r,[{key:"_optimize",value:function(){var e=this.queue.fnArray,t=this.lastProcessed,r=e.length,a=this.state,n=this.match;if(a||n||t+1!==r||i[e[t]]){var o=this.context;while(t<r){if(n){var s=(0,n.iterateFn)(o,t);if(s){t++;continue}if(t=(0,n.processFn)(o,t+1),r=e.length,n=null,a=null,t>=r)break}a=(a||i)[e[t]],a&&!Array.isArray(a)?(o.iCurr=t,t++,!a.checkFn||(0,a.checkFn)(o)?(n=a,a=null):a=null):t++}this.state=a,this.match=n,this.lastProcessed=t}else this.lastProcessed=r}},{key:"flush",value:function(){while(this.match){var e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}}},{key:"reset",value:function(){this.state=null,this.match=null,this.lastProcessed=0}}]),r}(o),l=function(){function e(){_(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0;this._streamSink=r,this.fnArray=[],this.argsArray=[],!r||t&a.RenderingIntentFlag.OPLIST?this.optimizer=new o(this):this.optimizer=new s(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=r?null:Promise.resolve()}return S(e,[{key:"length",get:function(){return this.argsArray.length}},{key:"ready",get:function(){return this._resolved||this._streamSink.ready}},{key:"totalLength",get:function(){return this._totalLength+this.length}},{key:"addOp",value:function(t,r){this.optimizer.push(t,r),this.weight++,this._streamSink&&(this.weight>=e.CHUNK_SIZE||this.weight>=e.CHUNK_SIZE_ABOUT&&(t===a.OPS.restore||t===a.OPS.endText))&&this.flush()}},{key:"addImageOps",value:function(e,t,r){void 0!==r&&this.addOp(a.OPS.beginMarkedContentProps,["OC",r]),this.addOp(e,t),void 0!==r&&this.addOp(a.OPS.endMarkedContent,[])}},{key:"addDependency",value:function(e){this.dependencies.has(e)||(this.dependencies.add(e),this.addOp(a.OPS.dependency,[e]))}},{key:"addDependencies",value:function(e){var t,r=b(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;this.addDependency(a)}}catch(n){r.e(n)}finally{r.f()}}},{key:"addOpList",value:function(t){if(t instanceof e){var r,n=b(t.dependencies);try{for(n.s();!(r=n.n()).done;){var i=r.value;this.dependencies.add(i)}}catch(l){n.e(l)}finally{n.f()}for(var o=0,s=t.length;o<s;o++)this.addOp(t.fnArray[o],t.argsArray[o])}else(0,a.warn)('addOpList - ignoring invalid "opList" parameter.')}},{key:"getIR",value:function(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}},{key:"_transfers",get:function(){for(var e=[],t=this.fnArray,r=this.argsArray,n=this.length,i=0;i<n;i++)switch(t[i]){case a.OPS.paintInlineImageXObject:case a.OPS.paintInlineImageXObjectGroup:case a.OPS.paintImageMaskXObject:var o=r[i][0];!o.cached&&o.data&&o.data.buffer instanceof ArrayBuffer&&e.push(o.data.buffer);break}return e}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.optimizer.flush();var r=this.length;this._totalLength+=r,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,separateAnnots:t,length:r},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}}],[{key:"CHUNK_SIZE",get:function(){return(0,a.shadow)(this,"CHUNK_SIZE",1e3)}},{key:"CHUNK_SIZE_ABOUT",get:function(){return(0,a.shadow)(this,"CHUNK_SIZE_ABOUT",this.CHUNK_SIZE-5)}}]),e}();t.OperatorList=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFImage=void 0;var a=r(2),n=r(189),i=r(132),o=r(139),s=r(144),l=r(152),c=r(155),u=r(130);function h(e,t,r,a){return e=t+e*r,e<0?e=0:e>a&&(e=a),e}function d(e,t,r,a,n,i){var o,s=n*i;o=t<=8?new Uint8Array(s):t<=16?new Uint16Array(s):new Uint32Array(s);var l,c,u,h,d=r/n,f=a/i,p=0,v=new Uint16Array(n),g=r;for(l=0;l<n;l++)v[l]=Math.floor(l*d);for(l=0;l<i;l++)for(u=Math.floor(l*f)*g,c=0;c<n;c++)h=u+v[c],o[p++]=e[h];return o}var f=function(){function e(t){_(this,e);var r=t.xref,n=t.res,s=t.image,l=t.isInline,h=void 0!==l&&l,d=t.smask,f=void 0===d?null:d,p=t.mask,v=void 0===p?null:p,g=t.isMask,m=void 0!==g&&g,y=t.pdfFunctionFactory,b=t.localColorSpaceCache;this.image=s;var k,w=s.dict,S=w.get("F","Filter");if(S instanceof u.Name)k=S.name;else if(Array.isArray(S)){var x=r.fetchIfRef(S[0]);x instanceof u.Name&&(k=x.name)}switch(k){case"JPXDecode":var A=new c.JpxImage;A.parseImageProperties(s.stream),s.stream.reset(),s.width=A.width,s.height=A.height,s.bitsPerComponent=A.bitsPerComponent,s.numComps=A.componentsCount;break;case"JBIG2Decode":s.bitsPerComponent=1,s.numComps=1;break}var C=w.get("W","Width"),F=w.get("H","Height");if(Number.isInteger(s.width)&&s.width>0&&Number.isInteger(s.height)&&s.height>0&&(s.width!==C||s.height!==F)&&((0,a.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),C=s.width,F=s.height),C<1||F<1)throw new a.FormatError("Invalid image width: ".concat(C," or height: ").concat(F));this.width=C,this.height=F,this.interpolate=w.get("I","Interpolate"),this.imageMask=w.get("IM","ImageMask")||!1,this.matte=w.get("Matte")||!1;var P=s.bitsPerComponent;if(!P&&(P=w.get("BPC","BitsPerComponent"),!P)){if(!this.imageMask)throw new a.FormatError("Bits per component missing in image: ".concat(this.imageMask));P=1}if(this.bpc=P,!this.imageMask){var T=w.getRaw("CS")||w.getRaw("ColorSpace");if(!T)switch((0,a.info)("JPX images (which do not require color spaces)"),s.numComps){case 1:T=u.Name.get("DeviceGray");break;case 3:T=u.Name.get("DeviceRGB");break;case 4:T=u.Name.get("DeviceCMYK");break;default:throw new Error("JPX images with ".concat(s.numComps," color components not supported."))}this.colorSpace=o.ColorSpace.parse({cs:T,xref:r,resources:h?n:null,pdfFunctionFactory:y,localColorSpaceCache:b}),this.numComps=this.colorSpace.numComps}if(this.decode=w.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,P)||m&&!o.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;var O=(1<<P)-1;this.decodeCoefficients=[],this.decodeAddends=[];for(var I=this.colorSpace&&"Indexed"===this.colorSpace.name,E=0,M=0;E<this.decode.length;E+=2,++M){var R=this.decode[E],D=this.decode[E+1];this.decodeCoefficients[M]=I?(D-R)/O:D-R,this.decodeAddends[M]=I?R:O*R}}if(f)this.smask=new e({xref:r,res:n,image:f,isInline:h,pdfFunctionFactory:y,localColorSpaceCache:b});else if(v)if(v instanceof i.BaseStream){var N=v.dict,L=N.get("IM","ImageMask");L?this.mask=new e({xref:r,res:n,image:v,isInline:h,isMask:!0,pdfFunctionFactory:y,localColorSpaceCache:b}):(0,a.warn)("Ignoring /Mask in image without /ImageMask.")}else this.mask=v}return S(e,[{key:"drawWidth",get:function(){return Math.max(this.width,this.smask&&this.smask.width||0,this.mask&&this.mask.width||0)}},{key:"drawHeight",get:function(){return Math.max(this.height,this.smask&&this.smask.height||0,this.mask&&this.mask.height||0)}},{key:"decodeBuffer",value:function(e){var t,r,a=this.bpc,n=this.numComps,i=this.decodeAddends,o=this.decodeCoefficients,s=(1<<a)-1;if(1!==a){var l=0;for(t=0,r=this.width*this.height;t<r;t++)for(var c=0;c<n;c++)e[l]=h(e[l],i[c],o[c],s),l++}else for(t=0,r=e.length;t<r;t++)e[t]=+!e[t]}},{key:"getComponents",value:function(e){var t=this.bpc;if(8===t)return e;var r,a=this.width,n=this.height,i=this.numComps,o=a*n*i,s=0;r=t<=8?new Uint8Array(o):t<=16?new Uint16Array(o):new Uint32Array(o);var l,c,u=a*i,h=(1<<t)-1,d=0;if(1===t)for(var f,p,v,g=0;g<n;g++){p=d+(-8&u),v=d+u;while(d<p)c=e[s++],r[d]=c>>7&1,r[d+1]=c>>6&1,r[d+2]=c>>5&1,r[d+3]=c>>4&1,r[d+4]=c>>3&1,r[d+5]=c>>2&1,r[d+6]=c>>1&1,r[d+7]=1&c,d+=8;if(d<v){c=e[s++],f=128;while(d<v)r[d++]=+!!(c&f),f>>=1}}else{var m=0;for(c=0,d=0,l=o;d<l;++d){d%u===0&&(c=0,m=0);while(m<t)c=c<<8|e[s++],m+=8;var y=m-t,b=c>>y;b<0?b=0:b>h&&(b=h),r[d]=b,c&=(1<<y)-1,m=y}}return r}},{key:"fillOpacity",value:function(t,r,n,i,o){var s,l,c,u,h,f,p=this.smask,v=this.mask;if(p)l=p.width,c=p.height,s=new Uint8ClampedArray(l*c),p.fillGrayBuffer(s),l===r&&c===n||(s=d(s,p.bpc,l,c,r,n));else if(v)if(v instanceof e){for(l=v.width,c=v.height,s=new Uint8ClampedArray(l*c),v.numComps=1,v.fillGrayBuffer(s),u=0,h=l*c;u<h;++u)s[u]=255-s[u];l===r&&c===n||(s=d(s,v.bpc,l,c,r,n))}else{if(!Array.isArray(v))throw new a.FormatError("Unknown mask format.");s=new Uint8ClampedArray(r*n);var g=this.numComps;for(u=0,h=r*n;u<h;++u){var m=0,y=u*g;for(f=0;f<g;++f){var b=o[y+f],k=2*f;if(b<v[k]||b>v[k+1]){m=255;break}}s[u]=m}}if(s)for(u=0,f=3,h=r*i;u<h;++u,f+=4)t[f]=s[u];else for(u=0,f=3,h=r*i;u<h;++u,f+=4)t[f]=255}},{key:"undoPreblend",value:function(e,t,r){var a=this.smask&&this.smask.matte;if(a)for(var n=this.colorSpace.getRgb(a,0),i=n[0],o=n[1],s=n[2],l=t*r*4,c=0;c<l;c+=4){var u=e[c+3];if(0!==u){var h=255/u;e[c]=(e[c]-i)*h+i,e[c+1]=(e[c+1]-o)*h+o,e[c+2]=(e[c+2]-s)*h+s}else e[c]=255,e[c+1]=255,e[c+2]=255}}},{key:"createImageData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.drawWidth,r=this.drawHeight,n={width:t,height:r,interpolate:this.interpolate,kind:0,data:null},i=this.numComps,o=this.width,s=this.height,c=this.bpc,u=o*i*c+7>>3;if(!e){var h;if("DeviceGray"===this.colorSpace.name&&1===c?h=a.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==c||this.needsDecode||(h=a.ImageKind.RGB_24BPP),h&&!this.smask&&!this.mask&&t===o&&r===s){if(n.kind=h,n.data=this.getImageBytes(s*u,{}),this.needsDecode){(0,a.assert)(h===a.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");for(var d=n.data,f=0,p=d.length;f<p;f++)d[f]^=255}return n}if(this.image instanceof l.JpegStream&&!this.smask&&!this.mask){var v=s*u;switch(this.colorSpace.name){case"DeviceGray":v*=3;case"DeviceRGB":case"DeviceCMYK":return n.kind=a.ImageKind.RGB_24BPP,n.data=this.getImageBytes(v,{drawWidth:t,drawHeight:r,forceRGB:!0}),n}}}var g,m,y=this.getImageBytes(s*u,{internal:!0}),b=0|y.length/u*r/s,k=this.getComponents(y);return e||this.smask||this.mask?(n.kind=a.ImageKind.RGBA_32BPP,n.data=new Uint8ClampedArray(t*r*4),g=1,m=!0,this.fillOpacity(n.data,t,r,b,k)):(n.kind=a.ImageKind.RGB_24BPP,n.data=new Uint8ClampedArray(t*r*3),g=0,m=!1),this.needsDecode&&this.decodeBuffer(k),this.colorSpace.fillRgb(n.data,o,s,t,r,b,c,k,g),m&&this.undoPreblend(n.data,t,b),n}},{key:"fillGrayBuffer",value:function(e){var t=this.numComps;if(1!==t)throw new a.FormatError("Reading gray scale from a color image: ".concat(t));var r,n,i=this.width,o=this.height,s=this.bpc,l=i*t*s+7>>3,c=this.getImageBytes(o*l,{internal:!0}),u=this.getComponents(c);if(1!==s){this.needsDecode&&this.decodeBuffer(u),n=i*o;var h=255/((1<<s)-1);for(r=0;r<n;++r)e[r]=h*u[r]}else if(n=i*o,this.needsDecode)for(r=0;r<n;++r)e[r]=u[r]-1&255;else for(r=0;r<n;++r)e[r]=255&-u[r]}},{key:"getImageBytes",value:function(e,t){var r=t.drawWidth,n=t.drawHeight,i=t.forceRGB,o=void 0!==i&&i,l=t.internal,c=void 0!==l&&l;this.image.reset(),this.image.drawWidth=r||this.width,this.image.drawHeight=n||this.height,this.image.forceRGB=!!o;var u=this.image.getBytes(e);return c||this.image instanceof s.DecodeStream?u:((0,a.assert)(u instanceof Uint8Array,'PDFImage.getImageBytes: Unsupported "imageBytes" type.'),new Uint8Array(u))}}],[{key:"buildImage",value:function(){var t=w(m().mark((function t(r){var n,o,s,l,c,u,h,d,f,p,v,g;return m().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=r.xref,o=r.res,s=r.image,l=r.isInline,c=void 0!==l&&l,u=r.pdfFunctionFactory,h=r.localColorSpaceCache,d=s,f=null,p=null,v=s.dict.get("SMask"),g=s.dict.get("Mask"),v?v instanceof i.BaseStream?f=v:(0,a.warn)("Unsupported /SMask format."):g&&(g instanceof i.BaseStream||Array.isArray(g)?p=g:(0,a.warn)("Unsupported /Mask format.")),t.abrupt("return",new e({xref:n,res:o,image:d,isInline:c,smask:f,mask:p,pdfFunctionFactory:u,localColorSpaceCache:h}));case 8:case"end":return t.stop()}}),t)})));function r(e){return t.apply(this,arguments)}return r}()},{key:"createRawMask",value:function(e){var t,r,a=e.imgArray,n=e.width,i=e.height,o=e.imageIsFromDecodeStream,s=e.inverseDecode,l=e.interpolate,c=(n+7>>3)*i,u=a.byteLength,h=c===u;if(!o||s&&!h?s?(t=new Uint8Array(c),t.set(a),t.fill(255,u)):t=new Uint8Array(a):t=a,s)for(r=0;r<u;r++)t[r]^=255;return{data:t,width:n,height:i,interpolate:l}}},{key:"createMask",value:function(e){var t=e.imgArray,r=e.width,i=e.height,o=e.imageIsFromDecodeStream,s=e.inverseDecode,l=e.interpolate,c=1===r&&1===i&&s===(0===t.length||!!(128&t[0]));if(c)return{isSingleOpaquePixel:c};if(a.FeatureTest.isOffscreenCanvasSupported){var u=new OffscreenCanvas(r,i),h=u.getContext("2d"),d=h.createImageData(r,i);(0,n.applyMaskImageData)({src:t,dest:d.data,width:r,height:i,inverseDecode:s}),h.putImageData(d,0,0);var f=u.transferToImageBitmap();return{data:null,width:r,height:i,interpolate:l,bitmap:f}}return this.createRawMask({imgArray:t,width:r,height:i,inverseDecode:s,imageIsFromDecodeStream:o,interpolate:l})}}]),e}();t.PDFImage=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyMaskImageData=n;var a=r(2);function n(e){var t=e.src,r=e.srcPos,n=void 0===r?0:r,i=e.dest,o=e.destPos,s=void 0===o?0:o,l=e.width,c=e.height,u=e.inverseDecode,h=void 0!==u&&u,d=a.FeatureTest.isLittleEndian?4278190080:255,f=h?[0,d]:[d,0],p=k(f,2),v=p[0],g=p[1],m=l>>3,y=7&l,b=t.length;i=new Uint32Array(i.buffer);for(var w=0;w<c;w++){for(var _=n+m;n<_;n++){var S=n<b?t[n]:255;i[s++]=128&S?g:v,i[s++]=64&S?g:v,i[s++]=32&S?g:v,i[s++]=16&S?g:v,i[s++]=8&S?g:v,i[s++]=4&S?g:v,i[s++]=2&S?g:v,i[s++]=1&S?g:v}if(0!==y)for(var x=n<b?t[n++]:255,A=0;A<y;A++)i[s++]=x&1<<7-A?g:v}return{srcPos:n,destPos:s}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.incrementalUpdate=w,t.writeDict=u,t.writeObject=c;var a=r(2),n=r(130),i=r(131),o=r(191),s=r(132),l=r(192);function c(e,t,r,a){r.push("".concat(e.num," ").concat(e.gen," obj\n")),t instanceof n.Dict?u(t,r,a):t instanceof s.BaseStream&&h(t,r,a),r.push("\nendobj\n")}function u(e,t,r){t.push("<<");var a,n=b(e.getKeys());try{for(n.s();!(a=n.n()).done;){var o=a.value;t.push(" /".concat((0,i.escapePDFName)(o)," ")),f(e.getRaw(o),t,r)}}catch(s){n.e(s)}finally{n.f()}t.push(">>")}function h(e,t,r){u(e.dict,t,r),t.push(" stream\n");var a=e.getString();null!==r&&(a=r.encryptString(a)),t.push(a,"\nendstream\n")}function d(e,t,r){t.push("[");var a,n=!0,i=b(e);try{for(i.s();!(a=i.n()).done;){var o=a.value;n?n=!1:t.push(" "),f(o,t,r)}}catch(s){i.e(s)}finally{i.f()}t.push("]")}function f(e,t,r){e instanceof n.Name?t.push("/".concat((0,i.escapePDFName)(e.name))):e instanceof n.Ref?t.push("".concat(e.num," ").concat(e.gen," R")):Array.isArray(e)?d(e,t,r):"string"===typeof e?(null!==r&&(e=r.encryptString(e)),t.push("(".concat((0,a.escapeString)(e),")"))):"number"===typeof e?t.push((0,i.numberToString)(e)):"boolean"===typeof e?t.push(e.toString()):e instanceof n.Dict?u(e,t,r):e instanceof s.BaseStream?h(e,t,r):null===e?t.push("null"):(0,a.warn)("Unhandled value in writer: ".concat(x(e),", please file a bug."))}function p(e,t,r,a){for(var n=t+r-1;n>r-1;n--)a[n]=255&e,e>>=8;return r+t}function v(e,t,r){for(var a=0,n=e.length;a<n;a++)r[t+a]=255&e.charCodeAt(a)}function g(e,t){for(var r=Math.floor(Date.now()/1e3),n=t.filename||"",i=[r.toString(),n,e.toString()],o=i.reduce((function(e,t){return e+t.length}),0),s=0,c=Object.values(t.info);s<c.length;s++){var u=c[s];i.push(u),o+=u.length}for(var h=new Uint8Array(o),d=0,f=0,p=i;f<p.length;f++){var g=p[f];v(g,d,h),d+=g.length}return(0,a.bytesToString)((0,l.calculateMD5)(h))}function m(e,t){var r,n=new o.SimpleXMLParser({hasAttributes:!0}).parseFromString(e),s=b(t);try{for(s.s();!(r=s.n()).done;){var l=r.value.xfa;if(l){var c=l.path,u=l.value;if(c){var h=n.documentElement.searchNode((0,i.parseXFAPath)(c),0);h?Array.isArray(u)?h.childNodes=u.map((function(e){return new o.SimpleDOMNode("value",e)})):h.childNodes=[new o.SimpleDOMNode("#text",u)]:(0,a.warn)("Node not found for path: ".concat(c))}}}}catch(f){s.e(f)}finally{s.f()}var d=[];return n.documentElement.dump(d),d.join("")}function y(e){var t=e.xfaData,r=e.xfaDatasetsRef,n=e.hasXfaDatasetsEntry,i=e.acroFormRef,o=e.acroForm,s=e.newRefs,l=e.xref;e.xrefInfo;if(null!==l){if(!n){if(!i)return void(0,a.warn)("XFA - Cannot save it");var c=o.get("XFA"),h=c.slice();h.splice(2,0,"datasets"),h.splice(3,0,r),o.set("XFA",h);var d=l.encrypt,f=null;d&&(f=d.createCipherTransform(i.num,i.gen));var p=["".concat(i.num," ").concat(i.gen," obj\n")];u(o,p,f),p.push("\n"),o.set("XFA",c),s.push({ref:i,data:p.join("")})}if(null===t){var v=l.fetchIfRef(r);t=m(v.getString(),s)}var g=l.encrypt;if(g){var y=g.createCipherTransform(r.num,r.gen);t=y.encryptString(t)}var b="".concat(r.num," ").concat(r.gen," obj\n")+"<< /Type /EmbeddedFile /Length ".concat(t.length,">>\nstream\n")+t+"\nendstream\nendobj\n";s.push({ref:r,data:b})}}function w(e){var t=e.originalData,r=e.xrefInfo,a=e.newRefs,i=e.xref,o=void 0===i?null:i,s=e.hasXfa,l=void 0!==s&&s,c=e.xfaDatasetsRef,h=void 0===c?null:c,d=e.hasXfaDatasetsEntry,f=void 0!==d&&d,m=e.acroFormRef,w=void 0===m?null:m,_=e.acroForm,S=void 0===_?null:_,x=e.xfaData,A=void 0===x?null:x;l&&y({xfaData:A,xfaDatasetsRef:h,hasXfaDatasetsEntry:f,acroFormRef:w,acroForm:S,newRefs:a,xref:o,xrefInfo:r});var C,F,P=new n.Dict(null),T=r.newRef,O=t.at(-1);10===O||13===O?(C=[],F=t.length):(C=["\n"],F=t.length+1),P.set("Size",T.num+1),P.set("Prev",r.startXRef),P.set("Type",n.Name.get("XRef")),null!==r.rootRef&&P.set("Root",r.rootRef),null!==r.infoRef&&P.set("Info",r.infoRef),null!==r.encryptRef&&P.set("Encrypt",r.encryptRef),a.push({ref:T,data:""}),a=a.sort((function(e,t){return e.ref.num-t.ref.num}));var I,E=[[0,1,65535]],M=[0,1],R=0,D=b(a);try{for(D.s();!(I=D.n()).done;){var N=I.value,L=N.ref,B=N.data;R=Math.max(R,F),E.push([1,F,Math.min(L.gen,65535)]),F+=B.length,M.push(L.num,1),C.push(B)}}catch(ae){D.e(ae)}finally{D.f()}if(P.set("Index",M),Array.isArray(r.fileIds)&&r.fileIds.length>0){var j=g(F,r);P.set("ID",[r.fileIds[0],j])}var U=Math.ceil(Math.log2(R)/8),q=[1,U,2],G=q[0]+q[1]+q[2],H=G*E.length;P.set("W",q),P.set("Length",H),C.push("".concat(T.num," ").concat(T.gen," obj\n")),u(P,C,null),C.push(" stream\n");var X=C.reduce((function(e,t){return e+t.length}),0),$="\nendstream\nendobj\nstartxref\n".concat(F,"\n%%EOF\n"),z=new Uint8Array(t.length+X+H+$.length);z.set(t);var W,V=t.length,Y=b(C);try{for(Y.s();!(W=Y.n()).done;){var K=W.value;v(K,V,z),V+=K.length}}catch(ae){Y.e(ae)}finally{Y.f()}for(var J=0,Z=E;J<Z.length;J++){var Q=k(Z[J],3),ee=Q[0],te=Q[1],re=Q[2];V=p(ee,q[0],V,z),V=p(te,q[1],V,z),V=p(re,q[2],V,z)}return v($,V,z),z}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XMLParserErrorCode=t.XMLParserBase=t.SimpleXMLParser=t.SimpleDOMNode=void 0;var a=r(131),n={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function i(e,t){var r=e[t];return" "===r||"\n"===r||"\r"===r||"\t"===r}function o(e){for(var t=0,r=e.length;t<r;t++)if(!i(e,t))return!1;return!0}t.XMLParserErrorCode=n;var s=function(){function e(){_(this,e)}return S(e,[{key:"_resolveEntities",value:function(e){var t=this;return e.replace(/&([^;]+);/g,(function(e,r){if("#x"===r.substring(0,2))return String.fromCodePoint(parseInt(r.substring(2),16));if("#"===r.substring(0,1))return String.fromCodePoint(parseInt(r.substring(1),10));switch(r){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return t.onResolveEntity(r)}))}},{key:"_parseContent",value:function(e,t){var r=[],a=t;function n(){while(a<e.length&&i(e,a))++a}while(a<e.length&&!i(e,a)&&">"!==e[a]&&"/"!==e[a])++a;var o=e.substring(t,a);n();while(a<e.length&&">"!==e[a]&&"/"!==e[a]&&"?"!==e[a]){n();var s="",l="";while(a<e.length&&!i(e,a)&&"="!==e[a])s+=e[a],++a;if(n(),"="!==e[a])return null;++a,n();var c=e[a];if('"'!==c&&"'"!==c)return null;var u=e.indexOf(c,++a);if(u<0)return null;l=e.substring(a,u),r.push({name:s,value:this._resolveEntities(l)}),a=u+1,n()}return{name:o,attributes:r,parsed:a-t}}},{key:"_parseProcessingInstruction",value:function(e,t){var r=t;function a(){while(r<e.length&&i(e,r))++r}while(r<e.length&&!i(e,r)&&">"!==e[r]&&"?"!==e[r]&&"/"!==e[r])++r;var n=e.substring(t,r);a();var o=r;while(r<e.length&&("?"!==e[r]||">"!==e[r+1]))++r;var s=e.substring(o,r);return{name:n,value:s,parsed:r-t}}},{key:"parseXml",value:function(e){var t=0;while(t<e.length){var r=e[t],a=t;if("<"===r){++a;var i=e[a],o=void 0;switch(i){case"/":if(++a,o=e.indexOf(">",a),o<0)return void this.onError(n.UnterminatedElement);this.onEndElement(e.substring(a,o)),a=o+1;break;case"?":++a;var s=this._parseProcessingInstruction(e,a);if("?>"!==e.substring(a+s.parsed,a+s.parsed+2))return void this.onError(n.UnterminatedXmlDeclaration);this.onPi(s.name,s.value),a+=s.parsed+2;break;case"!":if("--"===e.substring(a+1,a+3)){if(o=e.indexOf("--\x3e",a+3),o<0)return void this.onError(n.UnterminatedComment);this.onComment(e.substring(a+3,o)),a=o+3}else if("[CDATA["===e.substring(a+1,a+8)){if(o=e.indexOf("]]>",a+8),o<0)return void this.onError(n.UnterminatedCdat);this.onCdata(e.substring(a+8,o)),a=o+3}else{if("DOCTYPE"!==e.substring(a+1,a+8))return void this.onError(n.MalformedElement);var l=e.indexOf("[",a+8),c=!1;if(o=e.indexOf(">",a+8),o<0)return void this.onError(n.UnterminatedDoctypeDeclaration);if(l>0&&o>l){if(o=e.indexOf("]>",a+8),o<0)return void this.onError(n.UnterminatedDoctypeDeclaration);c=!0}var u=e.substring(a+8,o+(c?1:0));this.onDoctype(u),a=o+(c?2:1)}break;default:var h=this._parseContent(e,a);if(null===h)return void this.onError(n.MalformedElement);var d=!1;if("/>"===e.substring(a+h.parsed,a+h.parsed+2))d=!0;else if(">"!==e.substring(a+h.parsed,a+h.parsed+1))return void this.onError(n.UnterminatedElement);this.onBeginElement(h.name,h.attributes,d),a+=h.parsed+(d?2:1);break}}else{while(a<e.length&&"<"!==e[a])a++;var f=e.substring(t,a);this.onText(this._resolveEntities(f))}t=a}}},{key:"onResolveEntity",value:function(e){return"&".concat(e,";")}},{key:"onPi",value:function(e,t){}},{key:"onComment",value:function(e){}},{key:"onCdata",value:function(e){}},{key:"onDoctype",value:function(e){}},{key:"onText",value:function(e){}},{key:"onBeginElement",value:function(e,t,r){}},{key:"onEndElement",value:function(e){}},{key:"onError",value:function(e){}}]),e}();t.XMLParserBase=s;var l=function(){function e(t,r){_(this,e),this.nodeName=t,this.nodeValue=r,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}return S(e,[{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var e=this.parentNode.childNodes;if(e){var t=e.indexOf(this);if(-1!==t)return e[t+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map((function(e){return e.textContent})).join(""):this.nodeValue||""}},{key:"children",get:function(){return this.childNodes||[]}},{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}},{key:"searchNode",value:function(e,t){if(t>=e.length)return this;var r=e[t],a=[],n=this;while(1){if(r.name===n.nodeName){if(0!==r.pos){if(0===a.length)return null;var i,o=a.pop(),s=k(o,1),l=s[0],c=0,u=b(l.childNodes);try{for(u.s();!(i=u.n()).done;){var h=i.value;if(r.name===h.nodeName){if(c===r.pos)return h.searchNode(e,t+1);c++}}}catch(y){u.e(y)}finally{u.f()}return n.searchNode(e,t+1)}var d=n.searchNode(e,t+1);if(null!==d)return d}if(n.childNodes&&0!==n.childNodes.length)a.push([n,0]),n=n.childNodes[0];else{if(0===a.length)return null;while(0!==a.length){var f=a.pop(),p=k(f,2),v=p[0],g=p[1],m=g+1;if(m<v.childNodes.length){a.push([v,m]),n=v.childNodes[m];break}}if(0===a.length)return null}}}},{key:"dump",value:function(e){if("#text"!==this.nodeName){if(e.push("<".concat(this.nodeName)),this.attributes){var t,r=b(this.attributes);try{for(r.s();!(t=r.n()).done;){var n=t.value;e.push(" ".concat(n.name,'="').concat((0,a.encodeToXmlString)(n.value),'"'))}}catch(l){r.e(l)}finally{r.f()}}if(this.hasChildNodes()){e.push(">");var i,o=b(this.childNodes);try{for(o.s();!(i=o.n()).done;){var s=i.value;s.dump(e)}}catch(l){o.e(l)}finally{o.f()}e.push("</".concat(this.nodeName,">"))}else this.nodeValue?e.push(">".concat((0,a.encodeToXmlString)(this.nodeValue),"</").concat(this.nodeName,">")):e.push("/>")}else e.push((0,a.encodeToXmlString)(this.nodeValue))}}]),e}();t.SimpleDOMNode=l;var c=function(e){v(r,e);var t=g(r);function r(e){var a;_(this,r);var i=e.hasAttributes,o=void 0!==i&&i,s=e.lowerCaseName,l=void 0!==s&&s;return a=t.call(this),a._currentFragment=null,a._stack=null,a._errorCode=n.NoError,a._hasAttributes=o,a._lowerCaseName=l,a}return S(r,[{key:"parseFromString",value:function(e){if(this._currentFragment=[],this._stack=[],this._errorCode=n.NoError,this.parseXml(e),this._errorCode===n.NoError){var t=k(this._currentFragment,1),r=t[0];if(r)return{documentElement:r}}}},{key:"onText",value:function(e){if(!o(e)){var t=new l("#text",e);this._currentFragment.push(t)}}},{key:"onCdata",value:function(e){var t=new l("#text",e);this._currentFragment.push(t)}},{key:"onBeginElement",value:function(e,t,r){this._lowerCaseName&&(e=e.toLowerCase());var a=new l(e);a.childNodes=[],this._hasAttributes&&(a.attributes=t),this._currentFragment.push(a),r||(this._stack.push(this._currentFragment),this._currentFragment=a.childNodes)}},{key:"onEndElement",value:function(e){this._currentFragment=this._stack.pop()||[];var t=this._currentFragment.at(-1);if(!t)return null;for(var r=0,a=t.childNodes.length;r<a;r++)t.childNodes[r].parentNode=t;return t}},{key:"onError",value:function(e){this._errorCode=e}}]),r}(s);t.SimpleXMLParser=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSHA256=t.calculateMD5=t.PDF20=t.PDF17=t.CipherTransformFactory=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0,t.calculateSHA384=h,t.calculateSHA512=void 0;var a=r(2),n=r(130),i=r(193),o=function(){function e(t){_(this,e),this.a=0,this.b=0;for(var r=new Uint8Array(256),a=t.length,n=0;n<256;++n)r[n]=n;for(var i=0,o=0;i<256;++i){var s=r[i];o=o+s+t[i%a]&255,r[i]=r[o],r[o]=s}this.s=r}return S(e,[{key:"encryptBlock",value:function(e){for(var t=this.a,r=this.b,a=this.s,n=e.length,i=new Uint8Array(n),o=0;o<n;++o){t=t+1&255;var s=a[t];r=r+s&255;var l=a[r];a[t]=l,a[r]=s,i[o]=e[o]^a[s+l&255]}return this.a=t,this.b=r,i}},{key:"decryptBlock",value:function(e){return this.encryptBlock(e)}},{key:"encrypt",value:function(e){return this.encryptBlock(e)}}]),e}();t.ARCFourCipher=o;var s=function(){var 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]),t=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 r(r,a,n){var i,o,s=1732584193,l=-271733879,c=-1732584194,u=271733878,h=n+72&-64,d=new Uint8Array(h);for(i=0;i<n;++i)d[i]=r[a++];d[i++]=128;var f=h-8;while(i<f)d[i++]=0;d[i++]=n<<3&255,d[i++]=n>>5&255,d[i++]=n>>13&255,d[i++]=n>>21&255,d[i++]=n>>>29&255,d[i++]=0,d[i++]=0,d[i++]=0;var p=new Int32Array(16);for(i=0;i<h;){for(o=0;o<16;++o,i+=4)p[o]=d[i]|d[i+1]<<8|d[i+2]<<16|d[i+3]<<24;var v=s,g=l,m=c,y=u,b=void 0,k=void 0;for(o=0;o<64;++o){o<16?(b=g&m|~g&y,k=o):o<32?(b=y&g|~y&m,k=5*o+1&15):o<48?(b=g^m^y,k=3*o+5&15):(b=m^(g|~y),k=7*o&15);var w=y,_=v+b+t[o]+p[k]|0,S=e[o];y=m,m=g,g=g+(_<<S|_>>>32-S)|0,v=w}s=s+v|0,l=l+g|0,c=c+m|0,u=u+y|0}return new Uint8Array([255&s,s>>8&255,s>>16&255,s>>>24&255,255&l,l>>8&255,l>>16&255,l>>>24&255,255&c,c>>8&255,c>>16&255,c>>>24&255,255&u,u>>8&255,u>>16&255,u>>>24&255])}return r}();t.calculateMD5=s;var l=function(){function e(t,r){_(this,e),this.high=0|t,this.low=0|r}return S(e,[{key:"and",value:function(e){this.high&=e.high,this.low&=e.low}},{key:"xor",value:function(e){this.high^=e.high,this.low^=e.low}},{key:"or",value:function(e){this.high|=e.high,this.low|=e.low}},{key:"shiftRight",value:function(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)}},{key:"shiftLeft",value:function(e){e>=32?(this.high=this.low<<e-32,this.low=0):(this.high=this.high<<e|this.low>>>32-e,this.low<<=e)}},{key:"rotateRight",value:function(e){var t,r;32&e?(r=this.low,t=this.high):(t=this.low,r=this.high),e&=31,this.low=t>>>e|r<<32-e,this.high=r>>>e|t<<32-e}},{key:"not",value:function(){this.high=~this.high,this.low=~this.low}},{key:"add",value:function(e){var t=(this.low>>>0)+(e.low>>>0),r=(this.high>>>0)+(e.high>>>0);t>4294967295&&(r+=1),this.low=0|t,this.high=0|r}},{key:"copyTo",value:function(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low}},{key:"assign",value:function(e){this.high=e.high,this.low=e.low}}]),e}(),c=function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,r){return e&t^~e&r}function r(e,t,r){return e&t^e&r^t&r}function a(t){return e(t,2)^e(t,13)^e(t,22)}function n(t){return e(t,6)^e(t,11)^e(t,25)}function i(t){return e(t,7)^e(t,18)^t>>>3}function o(t){return e(t,17)^e(t,19)^t>>>10}var s=[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(e,l,c){var u,h,d=1779033703,f=3144134277,p=1013904242,v=2773480762,g=1359893119,m=2600822924,y=528734635,b=1541459225,k=64*Math.ceil((c+9)/64),w=new Uint8Array(k);for(u=0;u<c;++u)w[u]=e[l++];w[u++]=128;var _=k-8;while(u<_)w[u++]=0;w[u++]=0,w[u++]=0,w[u++]=0,w[u++]=c>>>29&255,w[u++]=c>>21&255,w[u++]=c>>13&255,w[u++]=c>>5&255,w[u++]=c<<3&255;var S=new Uint32Array(64);for(u=0;u<k;){for(h=0;h<16;++h)S[h]=w[u]<<24|w[u+1]<<16|w[u+2]<<8|w[u+3],u+=4;for(h=16;h<64;++h)S[h]=o(S[h-2])+S[h-7]+i(S[h-15])+S[h-16]|0;var x=d,A=f,C=p,F=v,P=g,T=m,O=y,I=b,E=void 0,M=void 0;for(h=0;h<64;++h)E=I+n(P)+t(P,T,O)+s[h]+S[h],M=a(x)+r(x,A,C),I=O,O=T,T=P,P=F+E|0,F=C,C=A,A=x,x=E+M|0;d=d+x|0,f=f+A|0,p=p+C|0,v=v+F|0,g=g+P|0,m=m+T|0,y=y+O|0,b=b+I|0}return new Uint8Array([d>>24&255,d>>16&255,d>>8&255,255&d,f>>24&255,f>>16&255,f>>8&255,255&f,p>>24&255,p>>16&255,p>>8&255,255&p,v>>24&255,v>>16&255,v>>8&255,255&v,g>>24&255,g>>16&255,g>>8&255,255&g,m>>24&255,m>>16&255,m>>8&255,255&m,y>>24&255,y>>16&255,y>>8&255,255&y,b>>24&255,b>>16&255,b>>8&255,255&b])}return l}();t.calculateSHA256=c;var u=function(){function e(e,t,r,a,n){e.assign(t),e.and(r),n.assign(t),n.not(),n.and(a),e.xor(n)}function t(e,t,r,a,n){e.assign(t),e.and(r),n.assign(t),n.and(a),e.xor(n),n.assign(r),n.and(a),e.xor(n)}function r(e,t,r){e.assign(t),e.rotateRight(28),r.assign(t),r.rotateRight(34),e.xor(r),r.assign(t),r.rotateRight(39),e.xor(r)}function a(e,t,r){e.assign(t),e.rotateRight(14),r.assign(t),r.rotateRight(18),e.xor(r),r.assign(t),r.rotateRight(41),e.xor(r)}function n(e,t,r){e.assign(t),e.rotateRight(1),r.assign(t),r.rotateRight(8),e.xor(r),r.assign(t),r.shiftRight(7),e.xor(r)}function i(e,t,r){e.assign(t),e.rotateRight(19),r.assign(t),r.rotateRight(61),e.xor(r),r.assign(t),r.shiftRight(6),e.xor(r)}var o=[new l(1116352408,3609767458),new l(1899447441,602891725),new l(3049323471,3964484399),new l(3921009573,2173295548),new l(961987163,4081628472),new l(1508970993,3053834265),new l(2453635748,2937671579),new l(2870763221,3664609560),new l(3624381080,2734883394),new l(310598401,1164996542),new l(607225278,1323610764),new l(1426881987,3590304994),new l(1925078388,4068182383),new l(2162078206,991336113),new l(2614888103,633803317),new l(3248222580,3479774868),new l(3835390401,2666613458),new l(4022224774,944711139),new l(264347078,2341262773),new l(604807628,2007800933),new l(770255983,1495990901),new l(1249150122,1856431235),new l(1555081692,3175218132),new l(1996064986,2198950837),new l(2554220882,3999719339),new l(2821834349,766784016),new l(2952996808,2566594879),new l(3210313671,3203337956),new l(3336571891,1034457026),new l(3584528711,2466948901),new l(113926993,3758326383),new l(338241895,168717936),new l(666307205,1188179964),new l(773529912,1546045734),new l(1294757372,1522805485),new l(1396182291,2643833823),new l(1695183700,2343527390),new l(1986661051,1014477480),new l(2177026350,1206759142),new l(2456956037,344077627),new l(2730485921,1290863460),new l(2820302411,3158454273),new l(3259730800,3505952657),new l(3345764771,106217008),new l(3516065817,3606008344),new l(3600352804,1432725776),new l(4094571909,1467031594),new l(275423344,851169720),new l(430227734,3100823752),new l(506948616,1363258195),new l(659060556,3750685593),new l(883997877,3785050280),new l(958139571,3318307427),new l(1322822218,3812723403),new l(1537002063,2003034995),new l(1747873779,3602036899),new l(1955562222,1575990012),new l(2024104815,1125592928),new l(2227730452,2716904306),new l(2361852424,442776044),new l(2428436474,593698344),new l(2756734187,3733110249),new l(3204031479,2999351573),new l(3329325298,3815920427),new l(3391569614,3928383900),new l(3515267271,566280711),new l(3940187606,3454069534),new l(4118630271,4000239992),new l(116418474,1914138554),new l(174292421,2731055270),new l(289380356,3203993006),new l(460393269,320620315),new l(685471733,587496836),new l(852142971,1086792851),new l(1017036298,365543100),new l(1126000580,2618297676),new l(1288033470,3409855158),new l(1501505948,4234509866),new l(1607167915,987167468),new l(1816402316,1246189591)];function s(s,c,u){var h,d,f,p,v,g,m,y,b=arguments.length>3&&void 0!==arguments[3]&&arguments[3];b?(h=new l(3418070365,3238371032),d=new l(1654270250,914150663),f=new l(2438529370,812702999),p=new l(355462360,4144912697),v=new l(1731405415,4290775857),g=new l(2394180231,1750603025),m=new l(3675008525,1694076839),y=new l(1203062813,3204075428)):(h=new l(1779033703,4089235720),d=new l(3144134277,2227873595),f=new l(1013904242,4271175723),p=new l(2773480762,1595750129),v=new l(1359893119,2917565137),g=new l(2600822924,725511199),m=new l(528734635,4215389547),y=new l(1541459225,327033209));var k,w,_=128*Math.ceil((u+17)/128),S=new Uint8Array(_);for(k=0;k<u;++k)S[k]=s[c++];S[k++]=128;var x=_-16;while(k<x)S[k++]=0;S[k++]=0,S[k++]=0,S[k++]=0,S[k++]=0,S[k++]=0,S[k++]=0,S[k++]=0,S[k++]=0,S[k++]=0,S[k++]=0,S[k++]=0,S[k++]=u>>>29&255,S[k++]=u>>21&255,S[k++]=u>>13&255,S[k++]=u>>5&255,S[k++]=u<<3&255;var A=new Array(80);for(k=0;k<80;k++)A[k]=new l(0,0);var C,F,P=new l(0,0),T=new l(0,0),O=new l(0,0),I=new l(0,0),E=new l(0,0),M=new l(0,0),R=new l(0,0),D=new l(0,0),N=new l(0,0),L=new l(0,0),B=new l(0,0),j=new l(0,0);for(k=0;k<_;){for(w=0;w<16;++w)A[w].high=S[k]<<24|S[k+1]<<16|S[k+2]<<8|S[k+3],A[w].low=S[k+4]<<24|S[k+5]<<16|S[k+6]<<8|S[k+7],k+=8;for(w=16;w<80;++w)C=A[w],i(C,A[w-2],j),C.add(A[w-7]),n(B,A[w-15],j),C.add(B),C.add(A[w-16]);for(P.assign(h),T.assign(d),O.assign(f),I.assign(p),E.assign(v),M.assign(g),R.assign(m),D.assign(y),w=0;w<80;++w)N.assign(D),a(B,E,j),N.add(B),e(B,E,M,R,j),N.add(B),N.add(o[w]),N.add(A[w]),r(L,P,j),t(B,P,T,O,j),L.add(B),C=D,D=R,R=M,M=E,I.add(N),E=I,I=O,O=T,T=P,C.assign(N),C.add(L),P=C;h.add(P),d.add(T),f.add(O),p.add(I),v.add(E),g.add(M),m.add(R),y.add(D)}return b?(F=new Uint8Array(48),h.copyTo(F,0),d.copyTo(F,8),f.copyTo(F,16),p.copyTo(F,24),v.copyTo(F,32),g.copyTo(F,40)):(F=new Uint8Array(64),h.copyTo(F,0),d.copyTo(F,8),f.copyTo(F,16),p.copyTo(F,24),v.copyTo(F,32),g.copyTo(F,40),m.copyTo(F,48),y.copyTo(F,56)),F}return s}();function h(e,t,r){return u(e,t,r,!0)}t.calculateSHA512=u;var d=function(){function e(){_(this,e)}return S(e,[{key:"decryptBlock",value:function(e){return e}},{key:"encrypt",value:function(e){return e}}]),e}(),f=function(){function e(){_(this,e),this.constructor===e&&(0,a.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(var t=0;t<256;t++)this._mixCol[t]=t<128?t<<1:t<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}return S(e,[{key:"_expandKey",value:function(e){(0,a.unreachable)("Cannot call `_expandKey` on the base class")}},{key:"_decrypt",value:function(e,t){var r,a,n,i=new Uint8Array(16);i.set(e);for(var o=0,s=this._keySize;o<16;++o,++s)i[o]^=t[s];for(var l=this._cyclesOfRepetition-1;l>=1;--l){r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],a=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=a,r=i[15],a=i[11],n=i[7],i[15]=i[3],i[11]=r,i[7]=a,i[3]=n;for(var c=0;c<16;++c)i[c]=this._inv_s[i[c]];for(var u=0,h=16*l;u<16;++u,++h)i[u]^=t[h];for(var d=0;d<16;d+=4){var f=this._mix[i[d]],p=this._mix[i[d+1]],v=this._mix[i[d+2]],g=this._mix[i[d+3]];r=f^p>>>8^p<<24^v>>>16^v<<16^g>>>24^g<<8,i[d]=r>>>24&255,i[d+1]=r>>16&255,i[d+2]=r>>8&255,i[d+3]=255&r}}r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],a=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=a,r=i[15],a=i[11],n=i[7],i[15]=i[3],i[11]=r,i[7]=a,i[3]=n;for(var m=0;m<16;++m)i[m]=this._inv_s[i[m]],i[m]^=t[m];return i}},{key:"_encrypt",value:function(e,t){var r,a,n,i=this._s,o=new Uint8Array(16);o.set(e);for(var s=0;s<16;++s)o[s]^=t[s];for(var l=1;l<this._cyclesOfRepetition;l++){for(var c=0;c<16;++c)o[c]=i[o[c]];n=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=n,n=o[2],a=o[6],o[2]=o[10],o[6]=o[14],o[10]=n,o[14]=a,n=o[3],a=o[7],r=o[11],o[3]=o[15],o[7]=n,o[11]=a,o[15]=r;for(var u=0;u<16;u+=4){var h=o[u+0],d=o[u+1],f=o[u+2],p=o[u+3];r=h^d^f^p,o[u+0]^=r^this._mixCol[h^d],o[u+1]^=r^this._mixCol[d^f],o[u+2]^=r^this._mixCol[f^p],o[u+3]^=r^this._mixCol[p^h]}for(var v=0,g=16*l;v<16;++v,++g)o[v]^=t[g]}for(var m=0;m<16;++m)o[m]=i[o[m]];n=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=n,n=o[2],a=o[6],o[2]=o[10],o[6]=o[14],o[10]=n,o[14]=a,n=o[3],a=o[7],r=o[11],o[3]=o[15],o[7]=n,o[11]=a,o[15]=r;for(var y=0,b=this._keySize;y<16;++y,++b)o[y]^=t[b];return o}},{key:"_decryptBlock2",value:function(e,t){for(var r=e.length,a=this.buffer,n=this.bufferPosition,i=[],o=this.iv,s=0;s<r;++s)if(a[n]=e[s],++n,!(n<16)){for(var l=this._decrypt(a,this._key),c=0;c<16;++c)l[c]^=o[c];o=a,i.push(l),a=new Uint8Array(16),n=0}if(this.buffer=a,this.bufferLength=n,this.iv=o,0===i.length)return new Uint8Array(0);var u=16*i.length;if(t){var h=i.at(-1),d=h[15];if(d<=16){for(var f=15,p=16-d;f>=p;--f)if(h[f]!==d){d=0;break}u-=d,i[i.length-1]=h.subarray(0,16-d)}}for(var v=new Uint8Array(u),g=0,m=0,y=i.length;g<y;++g,m+=16)v.set(i[g],m);return v}},{key:"decryptBlock",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=e.length,n=this.buffer,i=this.bufferPosition;if(r)this.iv=r;else{for(var o=0;i<16&&o<a;++o,++i)n[i]=e[o];if(i<16)return this.bufferLength=i,new Uint8Array(0);this.iv=n,e=e.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(e,t)}},{key:"encrypt",value:function(e,t){var r=e.length,a=this.buffer,n=this.bufferPosition,i=[];t||(t=new Uint8Array(16));for(var o=0;o<r;++o)if(a[n]=e[o],++n,!(n<16)){for(var s=0;s<16;++s)a[s]^=t[s];var l=this._encrypt(a,this._key);t=l,i.push(l),a=new Uint8Array(16),n=0}if(this.buffer=a,this.bufferLength=n,this.iv=t,0===i.length)return new Uint8Array(0);for(var c=16*i.length,u=new Uint8Array(c),h=0,d=0,f=i.length;h<f;++h,d+=16)u.set(i[h],d);return u}}]),e}(),p=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this),a._cyclesOfRepetition=10,a._keySize=160,a._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]),a._key=a._expandKey(e),a}return S(r,[{key:"_expandKey",value:function(e){var t=176,r=this._s,a=this._rcon,n=new Uint8Array(t);n.set(e);for(var i=16,o=1;i<t;++o){var s=n[i-3],l=n[i-2],c=n[i-1],u=n[i-4];s=r[s],l=r[l],c=r[c],u=r[u],s^=a[o];for(var h=0;h<4;++h)n[i]=s^=n[i-16],i++,n[i]=l^=n[i-16],i++,n[i]=c^=n[i-16],i++,n[i]=u^=n[i-16],i++}return n}}]),r}(f);t.AES128Cipher=p;var m=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this),a._cyclesOfRepetition=14,a._keySize=224,a._key=a._expandKey(e),a}return S(r,[{key:"_expandKey",value:function(e){var t=240,r=this._s,a=new Uint8Array(t);a.set(e);for(var n,i,o,s,l=1,c=32,u=1;c<t;++u){c%32===16?(n=r[n],i=r[i],o=r[o],s=r[s]):c%32===0&&(n=a[c-3],i=a[c-2],o=a[c-1],s=a[c-4],n=r[n],i=r[i],o=r[o],s=r[s],n^=l,(l<<=1)>=256&&(l=255&(27^l)));for(var h=0;h<4;++h)a[c]=n^=a[c-32],c++,a[c]=i^=a[c-32],c++,a[c]=o^=a[c-32],c++,a[c]=s^=a[c-32],c++}return a}}]),r}(f);t.AES256Cipher=m;var y=function(){function e(){_(this,e)}return S(e,[{key:"checkOwnerPassword",value:function(e,t,r,n){var i=new Uint8Array(e.length+56);i.set(e,0),i.set(t,e.length),i.set(r,e.length+t.length);var o=c(i,0,i.length);return(0,a.isArrayEqual)(o,n)}},{key:"checkUserPassword",value:function(e,t,r){var n=new Uint8Array(e.length+8);n.set(e,0),n.set(t,e.length);var i=c(n,0,n.length);return(0,a.isArrayEqual)(i,r)}},{key:"getOwnerKey",value:function(e,t,r,a){var n=new Uint8Array(e.length+56);n.set(e,0),n.set(t,e.length),n.set(r,e.length+t.length);var i=c(n,0,n.length),o=new m(i);return o.decryptBlock(a,!1,new Uint8Array(16))}},{key:"getUserKey",value:function(e,t,r){var a=new Uint8Array(e.length+8);a.set(e,0),a.set(t,e.length);var n=c(a,0,a.length),i=new m(n);return i.decryptBlock(r,!1,new Uint8Array(16))}}]),e}();t.PDF17=y;var b=function(){function e(e,t,r){var a=c(t,0,t.length).subarray(0,32),n=[0],i=0;while(i<64||n.at(-1)>i-32){var o=e.length+a.length+r.length,s=new Uint8Array(o),l=0;s.set(e,l),l+=e.length,s.set(a,l),l+=a.length,s.set(r,l);for(var d=new Uint8Array(64*o),f=0,v=0;f<64;f++,v+=o)d.set(s,v);var g=new p(a.subarray(0,16));n=g.encrypt(d,a.subarray(16,32));for(var m=0,y=0;y<16;y++)m*=1,m%=3,m+=(n[y]>>>0)%3,m%=3;0===m?a=c(n,0,n.length):1===m?a=h(n,0,n.length):2===m&&(a=u(n,0,n.length)),i++}return a.subarray(0,32)}var t=function(){function t(){_(this,t)}return S(t,[{key:"hash",value:function(t,r,a){return e(t,r,a)}},{key:"checkOwnerPassword",value:function(t,r,n,i){var o=new Uint8Array(t.length+56);o.set(t,0),o.set(r,t.length),o.set(n,t.length+r.length);var s=e(t,o,n);return(0,a.isArrayEqual)(s,i)}},{key:"checkUserPassword",value:function(t,r,n){var i=new Uint8Array(t.length+8);i.set(t,0),i.set(r,t.length);var o=e(t,i,[]);return(0,a.isArrayEqual)(o,n)}},{key:"getOwnerKey",value:function(t,r,a,n){var i=new Uint8Array(t.length+56);i.set(t,0),i.set(r,t.length),i.set(a,t.length+r.length);var o=e(t,i,a),s=new m(o);return s.decryptBlock(n,!1,new Uint8Array(16))}},{key:"getUserKey",value:function(t,r,a){var n=new Uint8Array(t.length+8);n.set(t,0),n.set(r,t.length);var i=e(t,n,[]),o=new m(i);return o.decryptBlock(a,!1,new Uint8Array(16))}}]),t}();return t}();t.PDF20=b;var k=function(){function e(t,r){_(this,e),this.StringCipherConstructor=t,this.StreamCipherConstructor=r}return S(e,[{key:"createStream",value:function(e,t){var r=new this.StreamCipherConstructor;return new i.DecryptStream(e,t,(function(e,t){return r.decryptBlock(e,t)}))}},{key:"decryptString",value:function(e){var t=new this.StringCipherConstructor,r=(0,a.stringToBytes)(e);return r=t.decryptBlock(r,!0),(0,a.bytesToString)(r)}},{key:"encryptString",value:function(e){var t=new this.StringCipherConstructor;if(t instanceof f){var r=e.length,n=16-r%16;e+=String.fromCharCode(n).repeat(n);var i=new Uint8Array(16);if("undefined"!==typeof crypto)crypto.getRandomValues(i);else for(var o=0;o<16;o++)i[o]=Math.floor(256*Math.random());var s=(0,a.stringToBytes)(e);s=t.encrypt(s,i);var l=new Uint8Array(16+s.length);return l.set(i),l.set(s,16),(0,a.bytesToString)(l)}var c=(0,a.stringToBytes)(e);return c=t.encrypt(c),(0,a.bytesToString)(c)}}]),e}(),w=function(){var 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 t(e,t,r,a,n,i,o,s,l,c,u,h){if(t){var d=Math.min(127,t.length);t=t.subarray(0,d)}else t=[];var f;return f=6===e?new b:new y,f.checkUserPassword(t,s,o)?f.getUserKey(t,l,u):t.length&&f.checkOwnerPassword(t,a,i,r)?f.getOwnerKey(t,n,i,c):null}function r(t,r,a,n,i,l,c,u){var h,d,f=40+a.length+t.length,p=new Uint8Array(f),v=0;if(r)for(d=Math.min(32,r.length);v<d;++v)p[v]=r[v];h=0;while(v<32)p[v++]=e[h++];for(h=0,d=a.length;h<d;++h)p[v++]=a[h];for(p[v++]=255&i,p[v++]=i>>8&255,p[v++]=i>>16&255,p[v++]=i>>>24&255,h=0,d=t.length;h<d;++h)p[v++]=t[h];l>=4&&!u&&(p[v++]=255,p[v++]=255,p[v++]=255,p[v++]=255);var g=s(p,0,v),m=c>>3;if(l>=3)for(h=0;h<50;++h)g=s(g,0,m);var y,b,k=g.subarray(0,m);if(l>=3){for(v=0;v<32;++v)p[v]=e[v];for(h=0,d=t.length;h<d;++h)p[v++]=t[h];y=new o(k),b=y.encryptBlock(s(p,0,v)),d=k.length;var w=new Uint8Array(d);for(h=1;h<=19;++h){for(var _=0;_<d;++_)w[_]=k[_]^h;y=new o(w),b=y.encryptBlock(b)}for(h=0,d=b.length;h<d;++h)if(n[h]!==b[h])return null}else for(y=new o(k),b=y.encryptBlock(e),h=0,d=b.length;h<d;++h)if(n[h]!==b[h])return null;return k}function i(t,r,a,n){for(var i=new Uint8Array(32),l=0,c=Math.min(32,t.length);l<c;++l)i[l]=t[l];var u=0;while(l<32)i[l++]=e[u++];var h,d,f=s(i,0,l),p=n>>3;if(a>=3)for(u=0;u<50;++u)f=s(f,0,f.length);if(a>=3){d=r;var v=new Uint8Array(p);for(u=19;u>=0;u--){for(var g=0;g<p;++g)v[g]=f[g]^u;h=new o(v),d=h.encryptBlock(d)}}else h=new o(f.subarray(0,p)),d=h.encryptBlock(r);return d}var l=n.Name.get("Identity");function c(e,t,r){var a,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=new Uint8Array(r.length+9),o=r.length;for(a=0;a<o;++a)i[a]=r[a];i[a++]=255&e,i[a++]=e>>8&255,i[a++]=e>>16&255,i[a++]=255&t,i[a++]=t>>8&255,n&&(i[a++]=115,i[a++]=65,i[a++]=108,i[a++]=84);var l=s(i,0,a);return l.subarray(0,Math.min(r.length+5,16))}function u(e,t,r,i,s){if(!(t instanceof n.Name))throw new a.FormatError("Invalid crypt filter name.");var l,u=e.get(t.name);if(null!==u&&void 0!==u&&(l=u.get("CFM")),!l||"None"===l.name)return function(){return new d};if("V2"===l.name)return function(){return new o(c(r,i,s,!1))};if("AESV2"===l.name)return function(){return new p(c(r,i,s,!0))};if("AESV3"===l.name)return function(){return new m(s)};throw new a.FormatError("Unknown crypto method")}var h=function(){function e(o,s,c){_(this,e);var u=o.get("Filter");if(!(0,n.isName)(u,"Standard"))throw new a.FormatError("unknown encryption method");this.filterName=u.name,this.dict=o;var h=o.get("V");if(!Number.isInteger(h)||1!==h&&2!==h&&4!==h&&5!==h)throw new a.FormatError("unsupported encryption algorithm");this.algorithm=h;var d=o.get("Length");if(!d)if(h<=3)d=40;else{var f=o.get("CF"),p=o.get("StmF");if(f instanceof n.Dict&&p instanceof n.Name){f.suppressEncryption=!0;var v=f.get(p.name);d=v&&v.get("Length")||128,d<40&&(d<<=3)}}if(!Number.isInteger(d)||d<40||d%8!==0)throw new a.FormatError("invalid key length");var g=(0,a.stringToBytes)(o.get("O")).subarray(0,32),m=(0,a.stringToBytes)(o.get("U")).subarray(0,32),y=o.get("P"),b=o.get("R"),k=(4===h||5===h)&&!1!==o.get("EncryptMetadata");this.encryptMetadata=k;var w,S,x=(0,a.stringToBytes)(s);if(c){if(6===b)try{c=(0,a.utf8StringToString)(c)}catch(D){(0,a.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}w=(0,a.stringToBytes)(c)}if(5!==h)S=r(x,w,g,m,y,b,d,k);else{var A=(0,a.stringToBytes)(o.get("O")).subarray(32,40),C=(0,a.stringToBytes)(o.get("O")).subarray(40,48),F=(0,a.stringToBytes)(o.get("U")).subarray(0,48),P=(0,a.stringToBytes)(o.get("U")).subarray(32,40),T=(0,a.stringToBytes)(o.get("U")).subarray(40,48),O=(0,a.stringToBytes)(o.get("OE")),I=(0,a.stringToBytes)(o.get("UE")),E=(0,a.stringToBytes)(o.get("Perms"));S=t(b,w,g,A,C,F,m,P,T,O,I,E)}if(!S&&!c)throw new a.PasswordException("No password given",a.PasswordResponses.NEED_PASSWORD);if(!S&&c){var M=i(w,g,b,d);S=r(x,M,g,m,y,b,d,k)}if(!S)throw new a.PasswordException("Incorrect Password",a.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=S,h>=4){var R=o.get("CF");R instanceof n.Dict&&(R.suppressEncryption=!0),this.cf=R,this.stmf=o.get("StmF")||l,this.strf=o.get("StrF")||l,this.eff=o.get("EFF")||this.stmf}}return S(e,[{key:"createCipherTransform",value:function(e,t){if(4===this.algorithm||5===this.algorithm)return new k(u(this.cf,this.strf,e,t,this.encryptionKey),u(this.cf,this.stmf,e,t,this.encryptionKey));var r=c(e,t,this.encryptionKey,!1),a=function(){return new o(r)};return new k(a,a)}}]),e}();return h}();t.CipherTransformFactory=w},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecryptStream=void 0;var a=r(144),n=512,i=function(e){v(r,e);var t=g(r);function r(e,a,n){var i;return _(this,r),i=t.call(this,a),i.str=e,i.dict=e.dict,i.decrypt=n,i.nextChunk=null,i.initialized=!1,i}return S(r,[{key:"readBlock",value:function(){var e;if(this.initialized?e=this.nextChunk:(e=this.str.getBytes(n),this.initialized=!0),e&&0!==e.length){this.nextChunk=this.str.getBytes(n);var t=this.nextChunk&&this.nextChunk.length>0,r=this.decrypt;e=r(e,!t);for(var a=this.bufferLength,i=e.length,o=this.ensureBuffer(a+i),s=0;s<i;s++)o[a++]=e[s];this.bufferLength=a}else this.eof=!0}}]),r}(a.DecodeStream);t.DecryptStream=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Catalog=void 0;var a=r(131),n=r(2),i=r(130),o=r(195),s=r(132),l=r(196),c=r(139),u=r(197),h=r(184),d=r(198),f=r(199);function v(e){return e instanceof i.Dict&&(e=e.get("D")),Array.isArray(e)?e:null}var g=function(){function e(t,r){if(_(this,e),this.pdfManager=t,this.xref=r,this._catDict=r.getCatalogObj(),!(this._catDict instanceof i.Dict))throw new n.FormatError("Catalog object is not a dictionary.");this.toplevelPagesDict,this._actualNumPages=null,this.fontCache=new i.RefSetCache,this.builtInCMapCache=new Map,this.standardFontDataCache=new Map,this.globalImageCache=new h.GlobalImageCache,this.pageKidsCountCache=new i.RefSetCache,this.pageIndexCache=new i.RefSetCache,this.nonBlendModesSet=new i.RefSet}return S(e,[{key:"version",get:function(){var e=this._catDict.get("Version");return(0,n.shadow)(this,"version",e instanceof i.Name?e.name:null)}},{key:"lang",get:function(){var e=this._catDict.get("Lang");return(0,n.shadow)(this,"lang","string"===typeof e?(0,n.stringToPDFString)(e):null)}},{key:"needsRendering",get:function(){var e=this._catDict.get("NeedsRendering");return(0,n.shadow)(this,"needsRendering","boolean"===typeof e&&e)}},{key:"collection",get:function(){var e=null;try{var t=this._catDict.get("Collection");t instanceof i.Dict&&t.size>0&&(e=t)}catch(r){if(r instanceof a.MissingDataException)throw r;(0,n.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,n.shadow)(this,"collection",e)}},{key:"acroForm",get:function(){var e=null;try{var t=this._catDict.get("AcroForm");t instanceof i.Dict&&t.size>0&&(e=t)}catch(r){if(r instanceof a.MissingDataException)throw r;(0,n.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,n.shadow)(this,"acroForm",e)}},{key:"acroFormRef",get:function(){var e=this._catDict.getRaw("AcroForm");return(0,n.shadow)(this,"acroFormRef",e instanceof i.Ref?e:null)}},{key:"metadata",get:function(){var e=this._catDict.getRaw("Metadata");if(!(e instanceof i.Ref))return(0,n.shadow)(this,"metadata",null);var t=null;try{var r=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),o=this.xref.fetch(e,r);if(o instanceof s.BaseStream&&o.dict instanceof i.Dict){var l=o.dict.get("Type"),c=o.dict.get("Subtype");if((0,i.isName)(l,"Metadata")&&(0,i.isName)(c,"XML")){var u=(0,n.stringToUTF8String)(o.getString());u&&(t=new d.MetadataParser(u).serializable)}}}catch(h){if(h instanceof a.MissingDataException)throw h;(0,n.info)('Skipping invalid Metadata: "'.concat(h,'".'))}return(0,n.shadow)(this,"metadata",t)}},{key:"markInfo",get:function(){var e=null;try{e=this._readMarkInfo()}catch(t){if(t instanceof a.MissingDataException)throw t;(0,n.warn)("Unable to read mark info.")}return(0,n.shadow)(this,"markInfo",e)}},{key:"_readMarkInfo",value:function(){var e=this._catDict.get("MarkInfo");if(!(e instanceof i.Dict))return null;var t={Marked:!1,UserProperties:!1,Suspects:!1};for(var r in t){var a=e.get(r);"boolean"===typeof a&&(t[r]=a)}return t}},{key:"structTreeRoot",get:function(){var e=null;try{e=this._readStructTreeRoot()}catch(t){if(t instanceof a.MissingDataException)throw t;(0,n.warn)("Unable read to structTreeRoot info.")}return(0,n.shadow)(this,"structTreeRoot",e)}},{key:"_readStructTreeRoot",value:function(){var e=this._catDict.get("StructTreeRoot");if(!(e instanceof i.Dict))return null;var t=new f.StructTreeRoot(e);return t.init(),t}},{key:"toplevelPagesDict",get:function(){var e=this._catDict.get("Pages");if(!(e instanceof i.Dict))throw new n.FormatError("Invalid top-level pages dictionary.");return(0,n.shadow)(this,"toplevelPagesDict",e)}},{key:"documentOutline",get:function(){var e=null;try{e=this._readDocumentOutline()}catch(t){if(t instanceof a.MissingDataException)throw t;(0,n.warn)("Unable to read document outline.")}return(0,n.shadow)(this,"documentOutline",e)}},{key:"_readDocumentOutline",value:function(){var t=this._catDict.get("Outlines");if(!(t instanceof i.Dict))return null;if(t=t.getRaw("First"),!(t instanceof i.Ref))return null;var r={items:[]},a=[{obj:t,parent:r}],o=new i.RefSet;o.put(t);var s=this.xref,l=new Uint8ClampedArray(3);while(a.length>0){var u=a.shift(),h=s.fetchIfRef(u.obj);if(null!==h){if(!h.has("Title"))throw new n.FormatError("Invalid outline item encountered.");var d={url:null,dest:null};e.parseDestDictionary({destDict:h,resultObj:d,docBaseUrl:this.pdfManager.docBaseUrl});var f=h.get("Title"),p=h.get("F")||0,v=h.getArray("C"),g=h.get("Count"),m=l;!Array.isArray(v)||3!==v.length||0===v[0]&&0===v[1]&&0===v[2]||(m=c.ColorSpace.singletons.rgb.getRgb(v,0));var y={dest:d.dest,url:d.url,unsafeUrl:d.unsafeUrl,newWindow:d.newWindow,title:(0,n.stringToPDFString)(f),color:m,count:Number.isInteger(g)?g:void 0,bold:!!(2&p),italic:!!(1&p),items:[]};u.parent.items.push(y),t=h.getRaw("First"),t instanceof i.Ref&&!o.has(t)&&(a.push({obj:t,parent:y}),o.put(t)),t=h.getRaw("Next"),t instanceof i.Ref&&!o.has(t)&&(a.push({obj:t,parent:u.parent}),o.put(t))}}return r.items.length>0?r.items:null}},{key:"permissions",get:function(){var e=null;try{e=this._readPermissions()}catch(t){if(t instanceof a.MissingDataException)throw t;(0,n.warn)("Unable to read permissions.")}return(0,n.shadow)(this,"permissions",e)}},{key:"_readPermissions",value:function(){var e=this.xref.trailer.get("Encrypt");if(!(e instanceof i.Dict))return null;var t=e.get("P");if("number"!==typeof t)return null;t+=Math.pow(2,32);var r=[];for(var a in n.PermissionFlag){var o=n.PermissionFlag[a];t&o&&r.push(o)}return r}},{key:"optionalContentConfig",get:function(){var e=null;try{var t=this._catDict.get("OCProperties");if(!t)return(0,n.shadow)(this,"optionalContentConfig",null);var r=t.get("D");if(!r)return(0,n.shadow)(this,"optionalContentConfig",null);var o=t.get("OCGs");if(!Array.isArray(o))return(0,n.shadow)(this,"optionalContentConfig",null);var s,l=[],c=[],u=b(o);try{for(u.s();!(s=u.n()).done;){var h=s.value;if(h instanceof i.Ref){c.push(h);var d=this.xref.fetchIfRef(h);l.push({id:h.toString(),name:"string"===typeof d.get("Name")?(0,n.stringToPDFString)(d.get("Name")):null,intent:"string"===typeof d.get("Intent")?(0,n.stringToPDFString)(d.get("Intent")):null})}}}catch(f){u.e(f)}finally{u.f()}e=this._readOptionalContentConfig(r,c),e.groups=l}catch(p){if(p instanceof a.MissingDataException)throw p;(0,n.warn)("Unable to read optional content config: ".concat(p))}return(0,n.shadow)(this,"optionalContentConfig",e)}},{key:"_readOptionalContentConfig",value:function(e,t){function r(e){var r=[];if(Array.isArray(e)){var a,n=b(e);try{for(n.s();!(a=n.n()).done;){var o=a.value;o instanceof i.Ref&&(t.includes(o)&&r.push(o.toString()))}}catch(s){n.e(s)}finally{n.f()}}return r}function a(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Array.isArray(e))return null;var a,n=[],s=b(e);try{for(s.s();!(a=s.n()).done;){var c=a.value;if(c instanceof i.Ref&&t.includes(c))l.put(c),n.push(c.toString());else{var u=o(c,r);u&&n.push(u)}}}catch(v){s.e(v)}finally{s.f()}if(r>0)return n;var h,d=[],f=b(t);try{for(f.s();!(h=f.n()).done;){var p=h.value;l.has(p)||d.push(p.toString())}}catch(v){f.e(v)}finally{f.f()}return d.length&&n.push({name:null,order:d}),n}function o(e,t){if(++t>c)return(0,n.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;var r=s.fetchIfRef(e);if(!Array.isArray(r))return null;var i=s.fetchIfRef(r[0]);if("string"!==typeof i)return null;var o=a(r.slice(1),t);return o&&o.length?{name:(0,n.stringToPDFString)(i),order:o}:null}var s=this.xref,l=new i.RefSet,c=10;return{name:"string"===typeof e.get("Name")?(0,n.stringToPDFString)(e.get("Name")):null,creator:"string"===typeof e.get("Creator")?(0,n.stringToPDFString)(e.get("Creator")):null,baseState:e.get("BaseState")instanceof i.Name?e.get("BaseState").name:null,on:r(e.get("ON")),off:r(e.get("OFF")),order:a(e.get("Order")),groups:null}}},{key:"setActualNumPages",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._actualNumPages=e}},{key:"hasActualNumPages",get:function(){return null!==this._actualNumPages}},{key:"_pagesCount",get:function(){var e=this.toplevelPagesDict.get("Count");if(!Number.isInteger(e))throw new n.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,n.shadow)(this,"_pagesCount",e)}},{key:"numPages",get:function(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}},{key:"destinations",get:function(){var e=this._readDests(),t=Object.create(null);if(e instanceof o.NameTree){var r,a=b(e.getAll());try{for(a.s();!(r=a.n()).done;){var s=k(r.value,2),l=s[0],c=s[1],u=v(c);u&&(t[(0,n.stringToPDFString)(l)]=u)}}catch(h){a.e(h)}finally{a.f()}}else e instanceof i.Dict&&e.forEach((function(e,r){var a=v(r);a&&(t[e]=a)}));return(0,n.shadow)(this,"destinations",t)}},{key:"getDestination",value:function(e){var t=this._readDests();if(t instanceof o.NameTree){var r=v(t.get(e));if(r)return r;var a=this.destinations[e];if(a)return(0,n.warn)('Found "'.concat(e,'" at an incorrect position in the NameTree.')),a}else if(t instanceof i.Dict){var s=v(t.get(e));if(s)return s}return null}},{key:"_readDests",value:function(){var e=this._catDict.get("Names");return e&&e.has("Dests")?new o.NameTree(e.getRaw("Dests"),this.xref):this._catDict.has("Dests")?this._catDict.get("Dests"):void 0}},{key:"pageLabels",get:function(){var e=null;try{e=this._readPageLabels()}catch(t){if(t instanceof a.MissingDataException)throw t;(0,n.warn)("Unable to read page labels.")}return(0,n.shadow)(this,"pageLabels",e)}},{key:"_readPageLabels",value:function(){var e=this._catDict.getRaw("PageLabels");if(!e)return null;for(var t=new Array(this.numPages),r=null,s="",l=new o.NumberTree(e,this.xref),c=l.getAll(),u="",h=1,d=0,f=this.numPages;d<f;d++){var p=c.get(d);if(void 0!==p){if(!(p instanceof i.Dict))throw new n.FormatError("PageLabel is not a dictionary.");if(p.has("Type")&&!(0,i.isName)(p.get("Type"),"PageLabel"))throw new n.FormatError("Invalid type in PageLabel dictionary.");if(p.has("S")){var v=p.get("S");if(!(v instanceof i.Name))throw new n.FormatError("Invalid style in PageLabel dictionary.");r=v.name}else r=null;if(p.has("P")){var g=p.get("P");if("string"!==typeof g)throw new n.FormatError("Invalid prefix in PageLabel dictionary.");s=(0,n.stringToPDFString)(g)}else s="";if(p.has("St")){var m=p.get("St");if(!(Number.isInteger(m)&&m>=1))throw new n.FormatError("Invalid start in PageLabel dictionary.");h=m}else h=1}switch(r){case"D":u=h;break;case"R":case"r":u=(0,a.toRomanNumerals)(h,"r"===r);break;case"A":case"a":var y=26,b=65,k=97,w="a"===r?k:b,_=h-1,S=String.fromCharCode(w+_%y);u=S.repeat(Math.floor(_/y)+1);break;default:if(r)throw new n.FormatError('Invalid style "'.concat(r,'" in PageLabel dictionary.'));u=""}t[d]=s+u,h++}return t}},{key:"pageLayout",get:function(){var e=this._catDict.get("PageLayout"),t="";if(e instanceof i.Name)switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return(0,n.shadow)(this,"pageLayout",t)}},{key:"pageMode",get:function(){var e=this._catDict.get("PageMode"),t="UseNone";if(e instanceof i.Name)switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return(0,n.shadow)(this,"pageMode",t)}},{key:"viewerPreferences",get:function(){var e=this,t=this._catDict.get("ViewerPreferences");if(!(t instanceof i.Dict))return(0,n.shadow)(this,"viewerPreferences",null);var r,a=null,o=b(t.getKeys());try{for(o.s();!(r=o.n()).done;){var s=r.value,l=t.get(s),c=void 0;switch(s){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":"boolean"===typeof l&&(c=l);break;case"NonFullScreenPageMode":if(l instanceof i.Name)switch(l.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":c=l.name;break;default:c="UseNone"}break;case"Direction":if(l instanceof i.Name)switch(l.name){case"L2R":case"R2L":c=l.name;break;default:c="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(l instanceof i.Name)switch(l.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":c=l.name;break;default:c="CropBox"}break;case"PrintScaling":if(l instanceof i.Name)switch(l.name){case"None":case"AppDefault":c=l.name;break;default:c="AppDefault"}break;case"Duplex":if(l instanceof i.Name)switch(l.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":c=l.name;break;default:c="None"}break;case"PrintPageRange":if(Array.isArray(l)&&l.length%2===0){var u=l.every((function(t,r,a){return Number.isInteger(t)&&t>0&&(0===r||t>=a[r-1])&&t<=e.numPages}));u&&(c=l)}break;case"NumCopies":Number.isInteger(l)&&l>0&&(c=l);break;default:(0,n.warn)("Ignoring non-standard key in ViewerPreferences: ".concat(s,"."));continue}void 0!==c?(a||(a=Object.create(null)),a[s]=c):(0,n.warn)('Bad value, for key "'.concat(s,'", in ViewerPreferences: ').concat(l,"."))}}catch(h){o.e(h)}finally{o.f()}return(0,n.shadow)(this,"viewerPreferences",a)}},{key:"openAction",get:function(){var t=this._catDict.get("OpenAction"),r=Object.create(null);if(t instanceof i.Dict){var a=new i.Dict(this.xref);a.set("A",t);var o={url:null,dest:null,action:null};e.parseDestDictionary({destDict:a,resultObj:o}),Array.isArray(o.dest)?r.dest=o.dest:o.action&&(r.action=o.action)}else Array.isArray(t)&&(r.dest=t);return(0,n.shadow)(this,"openAction",(0,n.objectSize)(r)>0?r:null)}},{key:"attachments",get:function(){var e=this._catDict.get("Names"),t=null;if(e instanceof i.Dict&&e.has("EmbeddedFiles")){var r,a=new o.NameTree(e.getRaw("EmbeddedFiles"),this.xref),s=b(a.getAll());try{for(s.s();!(r=s.n()).done;){var l=k(r.value,2),c=l[0],h=l[1],d=new u.FileSpec(h,this.xref);t||(t=Object.create(null)),t[(0,n.stringToPDFString)(c)]=d.serializable}}catch(f){s.e(f)}finally{s.f()}}return(0,n.shadow)(this,"attachments",t)}},{key:"xfaImages",get:function(){var e=this._catDict.get("Names"),t=null;if(e instanceof i.Dict&&e.has("XFAImages")){var r,a=new o.NameTree(e.getRaw("XFAImages"),this.xref),s=b(a.getAll());try{for(s.s();!(r=s.n()).done;){var l=k(r.value,2),c=l[0],u=l[1];t||(t=new i.Dict(this.xref)),t.set((0,n.stringToPDFString)(c),u)}}catch(h){s.e(h)}finally{s.f()}}return(0,n.shadow)(this,"xfaImages",t)}},{key:"_collectJavaScript",value:function(){var e=this._catDict.get("Names"),t=null;function r(e,r){if(r instanceof i.Dict&&(0,i.isName)(r.get("S"),"JavaScript")){var a=r.get("JS");if(a instanceof s.BaseStream)a=a.getString();else if("string"!==typeof a)return;null===t&&(t=new Map),a=(0,n.stringToPDFString)(a).replace(/\u0000/g,""),t.set(e,a)}}if(e instanceof i.Dict&&e.has("JavaScript")){var a,l=new o.NameTree(e.getRaw("JavaScript"),this.xref),c=b(l.getAll());try{for(c.s();!(a=c.n()).done;){var u=k(a.value,2),h=u[0],d=u[1];r((0,n.stringToPDFString)(h),d)}}catch(p){c.e(p)}finally{c.f()}}var f=this._catDict.get("OpenAction");return f&&r("OpenAction",f),t}},{key:"javaScript",get:function(){var e=this._collectJavaScript();return(0,n.shadow)(this,"javaScript",e?p(e.values()):null)}},{key:"jsActions",get:function(){var e=this._collectJavaScript(),t=(0,a.collectActions)(this.xref,this._catDict,n.DocumentActionEventType);if(e){t||(t=Object.create(null));var r,i=b(e);try{for(i.s();!(r=i.n()).done;){var o=k(r.value,2),s=o[0],l=o[1];s in t?t[s].push(l):t[s]=[l]}}catch(c){i.e(c)}finally{i.f()}}return(0,n.shadow)(this,"jsActions",t)}},{key:"fontFallback",value:function(){var e=w(m().mark((function e(t,r){var a,n,i,o;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(this.fontCache);case 2:a=e.sent,n=b(a),e.prev=4,n.s();case 6:if((i=n.n()).done){e.next=13;break}if(o=i.value,o.loadedName!==t){e.next=11;break}return o.fallback(r),e.abrupt("return");case 11:e.next=6;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](4),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[4,15,18,21]])})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"cleanup",value:function(){var e=w(m().mark((function e(){var t,r,a,n,i,o=arguments;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]&&o[0],(0,l.clearGlobalCaches)(),this.globalImageCache.clear(t),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.nonBlendModesSet.clear(),e.next=8,Promise.all(this.fontCache);case 8:r=e.sent,a=b(r);try{for(a.s();!(n=a.n()).done;)i=n.value.dict,delete i.cacheKey}catch(s){a.e(s)}finally{a.f()}this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear();case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getPageDict",value:function(){var e=w(m().mark((function e(t){var r,a,o,s,l,c,u,h,d,f,p,v,g,y,b,k;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=[this.toplevelPagesDict],a=new i.RefSet,o=this._catDict.getRaw("Pages"),o instanceof i.Ref&&a.put(o),s=this.xref,l=this.pageKidsCountCache,c=this.pageIndexCache,u=0;case 6:if(!r.length){e.next=67;break}if(h=r.pop(),!(h instanceof i.Ref)){e.next=34;break}if(d=l.get(h),!(d>=0&&u+d<=t)){e.next=13;break}return u+=d,e.abrupt("continue",6);case 13:if(!a.has(h)){e.next=15;break}throw new n.FormatError("Pages tree contains circular reference.");case 15:return a.put(h),e.next=18,s.fetchAsync(h);case 18:if(f=e.sent,!(f instanceof i.Dict)){e.next=32;break}if(p=f.getRaw("Type"),!(p instanceof i.Ref)){e.next=25;break}return e.next=24,s.fetchAsync(p);case 24:p=e.sent;case 25:if(!(0,i.isName)(p,"Page")&&f.has("Kids")){e.next=32;break}if(l.has(h)||l.put(h,1),c.has(h)||c.put(h,u),u!==t){e.next=30;break}return e.abrupt("return",[f,h]);case 30:return u++,e.abrupt("continue",6);case 32:return r.push(f),e.abrupt("continue",6);case 34:if(h instanceof i.Dict){e.next=36;break}throw new n.FormatError("Page dictionary kid reference points to wrong type of object.");case 36:if(v=h.objId,g=h.getRaw("Count"),!(g instanceof i.Ref)){e.next=42;break}return e.next=41,s.fetchAsync(g);case 41:g=e.sent;case 42:if(!(Number.isInteger(g)&&g>=0)){e.next=47;break}if(v&&!l.has(v)&&l.put(v,g),!(u+g<=t)){e.next=47;break}return u+=g,e.abrupt("continue",6);case 47:if(y=h.getRaw("Kids"),!(y instanceof i.Ref)){e.next=52;break}return e.next=51,s.fetchAsync(y);case 51:y=e.sent;case 52:if(Array.isArray(y)){e.next=64;break}if(b=h.getRaw("Type"),!(b instanceof i.Ref)){e.next=58;break}return e.next=57,s.fetchAsync(b);case 57:b=e.sent;case 58:if(!(0,i.isName)(b,"Page")&&h.has("Kids")){e.next=63;break}if(u!==t){e.next=61;break}return e.abrupt("return",[h,null]);case 61:return u++,e.abrupt("continue",6);case 63:throw new n.FormatError("Page dictionary kids object is not an array.");case 64:for(k=y.length-1;k>=0;k--)r.push(y[k]);e.next=6;break;case 67:throw new Error("Page index ".concat(t," not found."));case 68:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getAllPageDicts",value:function(){var e=w(m().mark((function e(){var t,r,o,s,l,c,u,h,d,f,p,v,g,y,b,k,w,_=arguments;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:f=function(e){if(e instanceof a.XRefEntryException&&!t)throw e;l.set(h++,[e,null])},d=function(e,t){t&&!u.has(t)&&u.put(t,h),l.set(h++,[e,t])},t=_.length>0&&void 0!==_[0]&&_[0],r=[{currentNode:this.toplevelPagesDict,posInKids:0}],o=new i.RefSet,s=this._catDict.getRaw("Pages"),s instanceof i.Ref&&o.put(s),l=new Map,c=this.xref,u=this.pageIndexCache,h=0;case 9:if(!(r.length>0)){e.next=69;break}if(p=r.at(-1),v=p.currentNode,g=p.posInKids,y=v.getRaw("Kids"),!(y instanceof i.Ref)){e.next=24;break}return e.prev=14,e.next=17,c.fetchAsync(y);case 17:y=e.sent,e.next=24;break;case 20:return e.prev=20,e.t0=e["catch"](14),f(e.t0),e.abrupt("break",69);case 24:if(Array.isArray(y)){e.next=27;break}return f(new n.FormatError("Page dictionary kids object is not an array.")),e.abrupt("break",69);case 27:if(!(g>=y.length)){e.next=30;break}return r.pop(),e.abrupt("continue",9);case 30:if(b=y[g],k=void 0,!(b instanceof i.Ref)){e.next=49;break}if(!o.has(b)){e.next=36;break}return f(new n.FormatError("Pages tree contains circular reference.")),e.abrupt("break",69);case 36:return o.put(b),e.prev=37,e.next=40,c.fetchAsync(b);case 40:k=e.sent,e.next=47;break;case 43:return e.prev=43,e.t1=e["catch"](37),f(e.t1),e.abrupt("break",69);case 47:e.next=50;break;case 49:k=b;case 50:if(k instanceof i.Dict){e.next=53;break}return f(new n.FormatError("Page dictionary kid reference points to wrong type of object.")),e.abrupt("break",69);case 53:if(w=k.getRaw("Type"),!(w instanceof i.Ref)){e.next=65;break}return e.prev=55,e.next=58,c.fetchAsync(w);case 58:w=e.sent,e.next=65;break;case 61:return e.prev=61,e.t2=e["catch"](55),f(e.t2),e.abrupt("break",69);case 65:(0,i.isName)(w,"Page")||!k.has("Kids")?d(k,b instanceof i.Ref?b:null):r.push({currentNode:k,posInKids:0}),p.posInKids++,e.next=9;break;case 69:return e.abrupt("return",l);case 70:case"end":return e.stop()}}),e,this,[[14,20],[37,43],[55,61]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"getPageIndex",value:function(e){var t=this,r=this.pageIndexCache.get(e);if(void 0!==r)return Promise.resolve(r);var a=this.xref;function o(t){var r,o=0;return a.fetchAsync(t).then((function(a){if((0,i.isRefsEqual)(t,e)&&!(0,i.isDict)(a,"Page")&&!(a instanceof i.Dict&&!a.has("Type")&&a.has("Contents")))throw new n.FormatError("The reference does not point to a /Page dictionary.");if(!a)return null;if(!(a instanceof i.Dict))throw new n.FormatError("Node must be a dictionary.");return r=a.getRaw("Parent"),a.getAsync("Parent")})).then((function(e){if(!e)return null;if(!(e instanceof i.Dict))throw new n.FormatError("Parent must be a dictionary.");return e.getAsync("Kids")})).then((function(e){if(!e)return null;for(var s=[],l=!1,c=0,u=e.length;c<u;c++){var h=e[c];if(!(h instanceof i.Ref))throw new n.FormatError("Kid must be a reference.");if((0,i.isRefsEqual)(h,t)){l=!0;break}s.push(a.fetchAsync(h).then((function(e){if(!(e instanceof i.Dict))throw new n.FormatError("Kid node must be a dictionary.");e.has("Count")?o+=e.get("Count"):o++})))}if(!l)throw new n.FormatError("Kid reference not found in parent's kids.");return Promise.all(s).then((function(){return[o,r]}))}))}var s=0,l=function r(a){return o(a).then((function(a){if(!a)return t.pageIndexCache.put(e,s),s;var n=k(a,2),i=n[0],o=n[1];return s+=i,r(o)}))};return l(e)}},{key:"baseUrl",get:function(){var e=this._catDict.get("URI");if(e instanceof i.Dict){var t=e.get("Base");if("string"===typeof t){var r=(0,n.createValidAbsoluteUrl)(t,null,{tryConvertEncoding:!0});if(r)return(0,n.shadow)(this,"baseUrl",r.href)}}return(0,n.shadow)(this,"baseUrl",null)}}],[{key:"parseDestDictionary",value:function(e){var t=e.destDict;if(t instanceof i.Dict){var r=e.resultObj;if("object"===x(r)){var o,l,c=e.docBaseUrl||null,u=t.get("A");if(u instanceof i.Dict||(t.has("Dest")?u=t.get("Dest"):(u=t.get("AA"),u instanceof i.Dict&&(u.has("D")?u=u.get("D"):u.has("U")&&(u=u.get("U"))))),u instanceof i.Dict){var h=u.get("S");if(!(h instanceof i.Name))return void(0,n.warn)("parseDestDictionary: Invalid type in Action dictionary.");var d=h.name;switch(d){case"ResetForm":var f,p=u.get("Flags"),v=0===(1&("number"===typeof p?p:0)),g=[],m=[],y=b(u.get("Fields")||[]);try{for(y.s();!(f=y.n()).done;){var k=f.value;k instanceof i.Ref?m.push(k.toString()):"string"===typeof k&&g.push((0,n.stringToPDFString)(k))}}catch(I){y.e(I)}finally{y.f()}r.resetForm={fields:g,refs:m,include:v};break;case"URI":o=u.get("URI"),o instanceof i.Name&&(o="/"+o.name);break;case"GoTo":l=u.get("D");break;case"Launch":case"GoToR":var w=u.get("F");w instanceof i.Dict?o=w.get("F")||null:"string"===typeof w&&(o=w);var _=u.get("D");if(_&&(_ instanceof i.Name&&(_=_.name),"string"===typeof o)){var S=o.split("#")[0];"string"===typeof _?o=S+"#"+_:Array.isArray(_)&&(o=S+"#"+JSON.stringify(_))}var A=u.get("NewWindow");"boolean"===typeof A&&(r.newWindow=A);break;case"Named":var C=u.get("N");C instanceof i.Name&&(r.action=C.name);break;case"JavaScript":var F,P=u.get("JS");P instanceof s.BaseStream?F=P.getString():"string"===typeof P&&(F=P);var T=F&&(0,a.recoverJsURL)((0,n.stringToPDFString)(F));if(T){o=T.url,r.newWindow=T.newWindow;break}default:if("JavaScript"===d||"SubmitForm"===d)break;(0,n.warn)('parseDestDictionary - unsupported action: "'.concat(d,'".'));break}}else t.has("Dest")&&(l=t.get("Dest"));if("string"===typeof o){var O=(0,n.createValidAbsoluteUrl)(o,c,{addDefaultProtocol:!0,tryConvertEncoding:!0});O&&(r.url=O.href),r.unsafeUrl=o}l&&(l instanceof i.Name&&(l=l.name),"string"===typeof l?r.dest=(0,n.stringToPDFString)(l):Array.isArray(l)&&(r.dest=l))}else(0,n.warn)("parseDestDictionary: `resultObj` must be an object.")}else(0,n.warn)("parseDestDictionary: `destDict` must be a dictionary.")}}]),e}();t.Catalog=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberTree=t.NameTree=void 0;var a=r(130),n=r(2),i=function(){function e(t,r,a){_(this,e),this.constructor===e&&(0,n.unreachable)("Cannot initialize NameOrNumberTree."),this.root=t,this.xref=r,this._type=a}return S(e,[{key:"getAll",value:function(){var e=new Map;if(!this.root)return e;var t=this.xref,r=new a.RefSet;r.put(this.root);var i=[this.root];while(i.length>0){var o=t.fetchIfRef(i.shift());if(o instanceof a.Dict)if(o.has("Kids")){var s=o.get("Kids");if(!Array.isArray(s))continue;var l,c=b(s);try{for(c.s();!(l=c.n()).done;){var u=l.value;if(r.has(u))throw new n.FormatError('Duplicate entry in "'.concat(this._type,'" tree.'));i.push(u),r.put(u)}}catch(p){c.e(p)}finally{c.f()}}else{var h=o.get(this._type);if(Array.isArray(h))for(var d=0,f=h.length;d<f;d+=2)e.set(t.fetchIfRef(h[d]),t.fetchIfRef(h[d+1]))}}return e}},{key:"get",value:function(e){if(!this.root)return null;var t=this.xref,r=t.fetchIfRef(this.root),a=0,i=10;while(r.has("Kids")){if(++a>i)return(0,n.warn)('Search depth limit reached for "'.concat(this._type,'" tree.')),null;var o=r.get("Kids");if(!Array.isArray(o))return null;var s=0,l=o.length-1;while(s<=l){var c=s+l>>1,u=t.fetchIfRef(o[c]),h=u.get("Limits");if(e<t.fetchIfRef(h[0]))l=c-1;else{if(!(e>t.fetchIfRef(h[1]))){r=u;break}s=c+1}}if(s>l)return null}var d=r.get(this._type);if(Array.isArray(d)){var f=0,p=d.length-2;while(f<=p){var v=f+p>>1,g=v+(1&v),m=t.fetchIfRef(d[g]);if(e<m)p=g-2;else{if(!(e>m))return t.fetchIfRef(d[g+1]);f=g+2}}}return null}}]),e}(),o=function(e){v(r,e);var t=g(r);function r(e,a){return _(this,r),t.call(this,e,a,"Names")}return S(r)}(i);t.NameTree=o;var s=function(e){v(r,e);var t=g(r);function r(e,a){return _(this,r),t.call(this,e,a,"Nums")}return S(r)}(i);t.NumberTree=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearGlobalCaches=i;var a=r(130),n=r(165);function i(){(0,a.clearPrimitiveCaches)(),(0,n.clearUnicodeCaches)()}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileSpec=void 0;var a=r(2),n=r(132),i=r(130);function o(e){return e.has("UF")?e.get("UF"):e.has("F")?e.get("F"):e.has("Unix")?e.get("Unix"):e.has("Mac")?e.get("Mac"):e.has("DOS")?e.get("DOS"):null}var s=function(){function e(t,r){_(this,e),t instanceof i.Dict&&(this.xref=r,this.root=t,t.has("FS")&&(this.fs=t.get("FS")),this.description=t.has("Desc")?(0,a.stringToPDFString)(t.get("Desc")):"",t.has("RF")&&(0,a.warn)("Related file specifications are not supported"),this.contentAvailable=!0,t.has("EF")||(this.contentAvailable=!1,(0,a.warn)("Non-embedded file specifications are not supported")))}return S(e,[{key:"filename",get:function(){if(!this._filename&&this.root){var e=o(this.root)||"unnamed";this._filename=(0,a.stringToPDFString)(e).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename}},{key:"content",get:function(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=o(this.root.get("EF")));var e=null;if(this.contentRef){var t=this.xref.fetchIfRef(this.contentRef);t instanceof n.BaseStream?e=t.getBytes():(0,a.warn)("Embedded file specification points to non-existing/invalid content")}else(0,a.warn)("Embedded file specification does not have a content");return e}},{key:"serializable",get:function(){return{filename:this.filename,content:this.content}}}]),e}();t.FileSpec=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataParser=void 0;var a=r(191),n=function(){function e(t){_(this,e),t=this._repair(t);var r=new a.SimpleXMLParser({lowerCaseName:!0}),n=r.parseFromString(t);this._metadataMap=new Map,this._data=t,n&&this._parse(n)}return S(e,[{key:"_repair",value:function(e){return e.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,(function(e,t){for(var r=t.replace(/\\([0-3])([0-7])([0-7])/g,(function(e,t,r,a){return String.fromCharCode(64*t+8*r+1*a)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(t," isn't defined."))})),a=[],n=0,i=r.length;n<i;n+=2){var o=256*r.charCodeAt(n)+r.charCodeAt(n+1);o>=32&&o<127&&60!==o&&62!==o&&38!==o?a.push(String.fromCharCode(o)):a.push("&#x"+(65536+o).toString(16).substring(1)+";")}return">"+a.join("")}))}},{key:"_getSequence",value:function(e){var t=e.nodeName;return"rdf:bag"!==t&&"rdf:seq"!==t&&"rdf:alt"!==t?null:e.childNodes.filter((function(e){return"rdf:li"===e.nodeName}))}},{key:"_parseArray",value:function(e){if(e.hasChildNodes()){var t=k(e.childNodes,1),r=t[0],a=this._getSequence(r)||[];this._metadataMap.set(e.nodeName,a.map((function(e){return e.textContent.trim()})))}}},{key:"_parse",value:function(e){var t=e.documentElement;if("rdf:rdf"!==t.nodeName){t=t.firstChild;while(t&&"rdf:rdf"!==t.nodeName)t=t.nextSibling}if(t&&"rdf:rdf"===t.nodeName&&t.hasChildNodes()){var r,a=b(t.childNodes);try{for(a.s();!(r=a.n()).done;){var n=r.value;if("rdf:description"===n.nodeName){var i,o=b(n.childNodes);try{for(o.s();!(i=o.n()).done;){var s=i.value,l=s.nodeName;switch(l){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(s);continue}this._metadataMap.set(l,s.textContent.trim())}}catch(c){o.e(c)}finally{o.f()}}}}catch(c){a.e(c)}finally{a.f()}}}},{key:"serializable",get:function(){return{parsedData:this._metadataMap,rawData:this._data}}}]),e}();t.MetadataParser=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StructTreeRoot=t.StructTreePage=void 0;var a=r(130),n=r(2),i=r(195),o=40,s={PAGE_CONTENT:"PAGE_CONTENT",STREAM_CONTENT:"STREAM_CONTENT",OBJECT:"OBJECT",ELEMENT:"ELEMENT"},l=function(){function e(t){_(this,e),this.dict=t,this.roleMap=new Map}return S(e,[{key:"init",value:function(){this.readRoleMap()}},{key:"readRoleMap",value:function(){var e=this,t=this.dict.get("RoleMap");t instanceof a.Dict&&t.forEach((function(t,r){r instanceof a.Name&&e.roleMap.set(t,r.name)}))}}]),e}();t.StructTreeRoot=l;var c=function(){function e(t,r){_(this,e),this.tree=t,this.dict=r,this.kids=[],this.parseKids()}return S(e,[{key:"role",get:function(){var e=this.dict.get("S"),t=e instanceof a.Name?e.name:"",r=this.tree.root;return r.roleMap.has(t)?r.roleMap.get(t):t}},{key:"parseKids",value:function(){var e=null,t=this.dict.getRaw("Pg");t instanceof a.Ref&&(e=t.toString());var r=this.dict.get("K");if(Array.isArray(r)){var n,i=b(r);try{for(i.s();!(n=i.n()).done;){var o=n.value,s=this.parseKid(e,o);s&&this.kids.push(s)}}catch(c){i.e(c)}finally{i.f()}}else{var l=this.parseKid(e,r);l&&this.kids.push(l)}}},{key:"parseKid",value:function(e,t){if(Number.isInteger(t))return this.tree.pageDict.objId!==e?null:new u({type:s.PAGE_CONTENT,mcid:t,pageObjId:e});var r=null;if(t instanceof a.Ref?r=this.dict.xref.fetch(t):t instanceof a.Dict&&(r=t),!r)return null;var n=r.getRaw("Pg");n instanceof a.Ref&&(e=n.toString());var i=r.get("Type")instanceof a.Name?r.get("Type").name:null;return"MCR"===i?this.tree.pageDict.objId!==e?null:new u({type:s.STREAM_CONTENT,refObjId:r.getRaw("Stm")instanceof a.Ref?r.getRaw("Stm").toString():null,pageObjId:e,mcid:r.get("MCID")}):"OBJR"===i?this.tree.pageDict.objId!==e?null:new u({type:s.OBJECT,refObjId:r.getRaw("Obj")instanceof a.Ref?r.getRaw("Obj").toString():null,pageObjId:e}):new u({type:s.ELEMENT,dict:r})}}]),e}(),u=S((function e(t){_(this,e);var r=t.type,a=t.dict,n=void 0===a?null:a,i=t.mcid,o=void 0===i?null:i,s=t.pageObjId,l=void 0===s?null:s,c=t.refObjId,u=void 0===c?null:c;this.type=r,this.dict=n,this.mcid=o,this.pageObjId=l,this.refObjId=u,this.parentNode=null})),h=function(){function e(t,r){_(this,e),this.root=t,this.rootDict=t?t.dict:null,this.pageDict=r,this.nodes=[]}return S(e,[{key:"parse",value:function(){if(this.root&&this.rootDict){var e=this.rootDict.get("ParentTree");if(e){var t=this.pageDict.get("StructParents");if(Number.isInteger(t)){var r=new i.NumberTree(e,this.rootDict.xref),n=r.get(t);if(Array.isArray(n)){var o,s=new Map,l=b(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;c instanceof a.Ref&&this.addNode(this.rootDict.xref.fetch(c),s)}}catch(u){l.e(u)}finally{l.f()}}}}}}},{key:"addNode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r>o)return(0,n.warn)("StructTree MAX_DEPTH reached."),null;if(t.has(e))return t.get(e);var i=new c(this,e);t.set(e,i);var l=e.get("P");if(!l||(0,a.isName)(l.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(e,i)||t["delete"](e),i;var u=this.addNode(l,t,r+1);if(!u)return i;var h,d=!1,f=b(u.kids);try{for(f.s();!(h=f.n()).done;){var p=h.value;p.type===s.ELEMENT&&p.dict===e&&(p.parentNode=i,d=!0)}}catch(v){f.e(v)}finally{f.f()}return d||t["delete"](e),i}},{key:"addTopLevelNode",value:function(e,t){var r=this.rootDict.get("K");if(!r)return!1;if(r instanceof a.Dict)return r.objId===e.objId&&(this.nodes[0]=t,!0);if(!Array.isArray(r))return!0;for(var n=!1,i=0;i<r.length;i++){var o=r[i];o&&o.toString()===e.objId&&(this.nodes[i]=t,n=!0)}return n}},{key:"serializable",get:function(){function e(t,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(a>o)(0,n.warn)("StructTree too deep to be fully serialized.");else{var i=Object.create(null);i.role=t.role,i.children=[],r.children.push(i);var l=t.dict.get("Alt");"string"===typeof l&&(i.alt=(0,n.stringToPDFString)(l));var c=t.dict.get("Lang");"string"===typeof c&&(i.lang=(0,n.stringToPDFString)(c));var u,h=b(t.kids);try{for(h.s();!(u=h.n()).done;){var d=u.value,f=d.type===s.ELEMENT?d.parentNode:null;f?e(f,i,a+1):d.type===s.PAGE_CONTENT||d.type===s.STREAM_CONTENT?i.children.push({type:"content",id:"page".concat(d.pageObjId,"_mcid").concat(d.mcid)}):d.type===s.OBJECT&&i.children.push({type:"object",id:d.refObjId})}}catch(p){h.e(p)}finally{h.f()}}}var t=Object.create(null);t.children=[],t.role="Root";var r,a=b(this.nodes);try{for(a.s();!(r=a.n()).done;){var i=r.value;i&&e(i,t)}}catch(l){a.e(l)}finally{a.f()}return t}}]),e}();t.StructTreePage=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectLoader=void 0;var a=r(130),n=r(132),i=r(131),o=r(2);function s(e){return e instanceof a.Ref||e instanceof a.Dict||e instanceof n.BaseStream||Array.isArray(e)}function l(e,t){if(e instanceof a.Dict)e=e.getRawValues();else if(e instanceof n.BaseStream)e=e.dict.getRawValues();else if(!Array.isArray(e))return;var r,i=b(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;s(o)&&t.push(o)}}catch(l){i.e(l)}finally{i.f()}}var c=function(){function e(t,r,a){_(this,e),this.dict=t,this.keys=r,this.xref=a,this.refSet=null}return S(e,[{key:"load",value:function(){var e=w(m().mark((function e(){var t,r,n,i,o,s;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.xref.stream.isDataLoaded){e.next=2;break}return e.abrupt("return",void 0);case 2:for(t=this.keys,r=this.dict,this.refSet=new a.RefSet,n=[],i=0,o=t.length;i<o;i++)s=r.getRaw(t[i]),void 0!==s&&n.push(s);return e.abrupt("return",this._walk(n));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"_walk",value:function(){var e=w(m().mark((function e(t){var r,s,c,u,h,d,f,p,v,g,y,k;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=[],s=[];case 2:if(!t.length){e.next=48;break}if(c=t.pop(),!(c instanceof a.Ref)){e.next=21;break}if(!this.refSet.has(c)){e.next=7;break}return e.abrupt("continue",2);case 7:e.prev=7,this.refSet.put(c),c=this.xref.fetch(c),e.next=21;break;case 12:if(e.prev=12,e.t0=e["catch"](7),e.t0 instanceof i.MissingDataException){e.next=19;break}return(0,o.warn)('ObjectLoader._walk - requesting all data: "'.concat(e.t0,'".')),this.refSet=null,u=this.xref.stream.manager,e.abrupt("return",u.requestAllChunks());case 19:r.push(c),s.push({begin:e.t0.begin,end:e.t0.end});case 21:if(!(c instanceof n.BaseStream)){e.next=45;break}if(h=c.getBaseStreams(),!h){e.next=45;break}d=!1,f=b(h),e.prev=26,f.s();case 28:if((p=f.n()).done){e.next=36;break}if(v=p.value,!v.isDataLoaded){e.next=32;break}return e.abrupt("continue",34);case 32:d=!0,s.push({begin:v.start,end:v.end});case 34:e.next=28;break;case 36:e.next=41;break;case 38:e.prev=38,e.t1=e["catch"](26),f.e(e.t1);case 41:return e.prev=41,f.f(),e.finish(41);case 44:d&&r.push(c);case 45:l(c,t),e.next=2;break;case 48:if(!s.length){e.next=54;break}return e.next=51,this.xref.stream.manager.requestRanges(s);case 51:g=b(r);try{for(g.s();!(y=g.n()).done;)k=y.value,k instanceof a.Ref&&this.refSet.remove(k)}catch(m){g.e(m)}finally{g.f()}return e.abrupt("return",this._walk(r));case 54:return this.refSet=null,e.abrupt("return",void 0);case 56:case"end":return e.stop()}}),e,this,[[7,12],[26,38,41,44]])})));function t(t){return e.apply(this,arguments)}return t}()}]),e}();t.ObjectLoader=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XFAFactory=void 0;var a=r(202),n=r(206),i=r(212),o=r(210),s=r(203),l=r(2),c=r(213),u=r(223),h=function(){function e(t){_(this,e);try{this.root=(new c.XFAParser).parse(e._createDocument(t));var r=new n.Binder(this.root);this.form=r.bind(),this.dataHandler=new i.DataHandler(this.root,r.getData()),this.form[a.$globalData].template=this.form}catch(o){(0,l.warn)("XFA - an error occurred during parsing and binding: ".concat(o))}}return S(e,[{key:"isValid",value:function(){return this.root&&this.form}},{key:"_createPagesHelper",value:function(){var e=this.form[a.$toPages]();return new Promise((function(t,r){var a=function a(){try{var n=e.next();n.done?t(n.value):setTimeout(a,0)}catch(i){r(i)}};setTimeout(a,0)}))}},{key:"_createPages",value:function(){var e=w(m().mark((function e(){return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._createPagesHelper();case 3:this.pages=e.sent,this.dims=this.pages.children.map((function(e){var t=e.attributes.style,r=t.width,a=t.height;return[0,0,parseInt(r),parseInt(a)]})),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),(0,l.warn)("XFA - an error occurred during layout: ".concat(e.t0));case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"getBoundingBox",value:function(e){return this.dims[e]}},{key:"getNumPages",value:function(){var e=w(m().mark((function e(){return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.pages){e.next=3;break}return e.next=3,this._createPages();case 3:return e.abrupt("return",this.dims.length);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setImages",value:function(e){this.form[a.$globalData].images=e}},{key:"setFonts",value:function(e){this.form[a.$globalData].fontFinder=new o.FontFinder(e);var t,r=[],n=b(this.form[a.$globalData].usedTypefaces);try{for(n.s();!(t=n.n()).done;){var i=t.value;i=(0,s.stripQuotes)(i);var l=this.form[a.$globalData].fontFinder.find(i);l||r.push(i)}}catch(c){n.e(c)}finally{n.f()}return r.length>0?r:null}},{key:"appendFonts",value:function(e,t){this.form[a.$globalData].fontFinder.add(e,t)}},{key:"getPages",value:function(){var e=w(m().mark((function e(){var t;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.pages){e.next=3;break}return e.next=3,this._createPages();case 3:return t=this.pages,this.pages=null,e.abrupt("return",t);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"serializeData",value:function(e){return this.dataHandler.serialize(e)}}],[{key:"_createDocument",value:function(e){return e["/xdp:xdp"]?Object.values(e).join(""):e["xdp:xdp"]}},{key:"getRichTextAsHtml",value:function(e){if(!e||"string"!==typeof e)return null;try{var t=new c.XFAParser(u.XhtmlNamespace,!0).parse(e);if(!["body","xhtml"].includes(t[a.$nodeName])){var r=u.XhtmlNamespace.body({});r[a.$appendChild](t),t=r}var n=t[a.$toHTML]();if(!n.success)return null;var i=n.html,o=i.attributes;return o&&(o["class"]&&(o["class"]=o["class"].filter((function(e){return!e.startsWith("xfa")}))),o.dir="auto"),{html:i,str:t[a.$text]()}}catch(s){(0,l.warn)("XFA - an error occurred during parsing of rich text: ".concat(s))}return null}}]),e}();t.XFAFactory=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XmlObject=t.XFAObjectArray=t.XFAObject=t.XFAAttribute=t.StringObject=t.OptionObject=t.Option10=t.Option01=t.IntegerObject=t.ContentObject=t.$uid=t.$toStyle=t.$toString=t.$toPages=t.$toHTML=t.$text=t.$tabIndex=t.$setValue=t.$setSetAttributes=t.$setId=t.$searchNode=t.$root=t.$resolvePrototypes=t.$removeChild=t.$pushPara=t.$pushGlyphs=t.$popPara=t.$onText=t.$onChildCheck=t.$onChild=t.$nsAttributes=t.$nodeName=t.$namespaceId=t.$isUsable=t.$isTransparent=t.$isThereMoreWidth=t.$isSplittable=t.$isNsAgnostic=t.$isDescendent=t.$isDataValue=t.$isCDATAXml=t.$isBindable=t.$insertAt=t.$indexOf=t.$ids=t.$hasSettableValue=t.$globalData=t.$getTemplateRoot=t.$getSubformParent=t.$getRealChildrenByNameIt=t.$getParent=t.$getNextPage=t.$getExtra=t.$getDataValue=t.$getContainedChildren=t.$getChildrenByNameIt=t.$getChildrenByName=t.$getChildrenByClass=t.$getChildren=t.$getAvailableSpace=t.$getAttributes=t.$getAttributeIt=t.$flushHTML=t.$finalize=t.$extra=t.$dump=t.$data=t.$content=t.$consumed=t.$clone=t.$cleanup=t.$cleanPage=t.$clean=t.$childrenToHTML=t.$appendChild=t.$addHTML=t.$acceptWhitespace=void 0;var a=r(203),n=r(2),i=r(131),o=r(204),s=r(205),l=Symbol();t.$acceptWhitespace=l;var c=Symbol();t.$addHTML=c;var d=Symbol();t.$appendChild=d;var y=Symbol();t.$childrenToHTML=y;var w=Symbol();t.$clean=w;var A=Symbol();t.$cleanPage=A;var C=Symbol();t.$cleanup=C;var F=Symbol();t.$clone=F;var P=Symbol();t.$consumed=P;var T=Symbol("content");t.$content=T;var O=Symbol("data");t.$data=O;var I=Symbol();t.$dump=I;var E=Symbol("extra");t.$extra=E;var M=Symbol();t.$finalize=M;var R=Symbol();t.$flushHTML=R;var D=Symbol();t.$getAttributeIt=D;var N=Symbol();t.$getAttributes=N;var L=Symbol();t.$getAvailableSpace=L;var B=Symbol();t.$getChildrenByClass=B;var j=Symbol();t.$getChildrenByName=j;var U=Symbol();t.$getChildrenByNameIt=U;var q=Symbol();t.$getDataValue=q;var G=Symbol();t.$getExtra=G;var H=Symbol();t.$getRealChildrenByNameIt=H;var X=Symbol();t.$getChildren=X;var $=Symbol();t.$getContainedChildren=$;var z=Symbol();t.$getNextPage=z;var W=Symbol();t.$getSubformParent=W;var V=Symbol();t.$getParent=V;var Y=Symbol();t.$getTemplateRoot=Y;var K=Symbol();t.$globalData=K;var J=Symbol();t.$hasSettableValue=J;var Z=Symbol();t.$ids=Z;var Q=Symbol();t.$indexOf=Q;var ee=Symbol();t.$insertAt=ee;var te=Symbol();t.$isCDATAXml=te;var re=Symbol();t.$isBindable=re;var ae=Symbol();t.$isDataValue=ae;var ne=Symbol();t.$isDescendent=ne;var ie=Symbol();t.$isNsAgnostic=ie;var oe=Symbol();t.$isSplittable=oe;var se=Symbol();t.$isThereMoreWidth=se;var le=Symbol();t.$isTransparent=le;var ce=Symbol();t.$isUsable=ce;var ue=Symbol(),he=Symbol("namespaceId");t.$namespaceId=he;var de=Symbol("nodeName");t.$nodeName=de;var fe=Symbol();t.$nsAttributes=fe;var pe=Symbol();t.$onChild=pe;var ve=Symbol();t.$onChildCheck=ve;var ge=Symbol();t.$onText=ge;var me=Symbol();t.$pushGlyphs=me;var ye=Symbol();t.$popPara=ye;var be=Symbol();t.$pushPara=be;var ke=Symbol();t.$removeChild=ke;var we=Symbol("root");t.$root=we;var _e=Symbol();t.$resolvePrototypes=_e;var Se=Symbol();t.$searchNode=Se;var xe=Symbol();t.$setId=xe;var Ae=Symbol();t.$setSetAttributes=Ae;var Ce=Symbol();t.$setValue=Ce;var Fe=Symbol();t.$tabIndex=Fe;var Pe=Symbol();t.$text=Pe;var Te=Symbol();t.$toPages=Te;var Oe=Symbol();t.$toHTML=Oe;var Ie=Symbol();t.$toString=Ie;var Ee=Symbol();t.$toStyle=Ee;var Me=Symbol("uid");t.$uid=Me;var Re=Symbol(),De=Symbol(),Ne=Symbol(),Le=Symbol("_children"),Be=Symbol(),je=Symbol(),Ue=Symbol(),qe=Symbol(),Ge=Symbol(),He=Symbol(),Xe=Symbol(),$e=Symbol(),ze=Symbol(),We=Symbol("parent"),Ve=Symbol(),Ye=Symbol(),Ke=Symbol(),Je=0,Ze=o.NamespaceIds.datasets.id,Qe=function(){function e(t,r){_(this,e);var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this[he]=t,this[de]=r,this[Xe]=a,this[We]=null,this[Le]=[],this[Me]="".concat(r).concat(Je++),this[K]=null}return S(e,[{key:pe,value:function(e){if(!this[Xe]||!this[ve](e))return!1;var t=e[de],r=this[t];if(!(r instanceof et))return null!==r&&this[ke](r),this[t]=e,this[d](e),!0;if(r.push(e))return this[d](e),!0;var a="";return this.id?a=" (id: ".concat(this.id,")"):this.name&&(a=" (name: ".concat(this.name," ").concat(this.h.value,")")),(0,n.warn)('XFA - node "'.concat(this[de],'"').concat(a,' has already enough "').concat(t,'"!')),!1}},{key:ve,value:function(e){return this.hasOwnProperty(e[de])&&e[he]===this[he]}},{key:ie,value:function(){return!1}},{key:l,value:function(){return!1}},{key:te,value:function(){return!1}},{key:re,value:function(){return!1}},{key:ye,value:function(){this.para&&this[Y]()[E].paraStack.pop()}},{key:be,value:function(){this[Y]()[E].paraStack.push(this.para)}},{key:xe,value:function(e){this.id&&this[he]===o.NamespaceIds.template.id&&e.set(this.id,this)}},{key:Y,value:function(){return this[K].template}},{key:oe,value:function(){return!1}},{key:se,value:function(){return!1}},{key:d,value:function(e){e[We]=this,this[Le].push(e),!e[K]&&this[K]&&(e[K]=this[K])}},{key:ke,value:function(e){var t=this[Le].indexOf(e);this[Le].splice(t,1)}},{key:J,value:function(){return this.hasOwnProperty("value")}},{key:Ce,value:function(e){}},{key:ge,value:function(e){}},{key:M,value:function(){}},{key:w,value:function(e){delete this[Xe],this[C]&&(e.clean(this[C]),delete this[C])}},{key:Q,value:function(e){return this[Le].indexOf(e)}},{key:ee,value:function(e,t){t[We]=this,this[Le].splice(e,0,t),!t[K]&&this[K]&&(t[K]=this[K])}},{key:le,value:function(){return!this.name}},{key:ue,value:function(){return""}},{key:Pe,value:function(){return 0===this[Le].length?this[T]:this[Le].map((function(e){return e[Pe]()})).join("")}},{key:Ne,get:function(){var t=Object.getPrototypeOf(this);if(!t._attributes){var r,a=t._attributes=new Set,i=b(Object.getOwnPropertyNames(this));try{for(i.s();!(r=i.n()).done;){var o=r.value;if(null===this[o]||this[o]instanceof e||this[o]instanceof et)break;a.add(o)}}catch(s){i.e(s)}finally{i.f()}}return(0,n.shadow)(this,Ne,t._attributes)}},{key:ne,value:function(e){var t=this;while(t){if(t===e)return!0;t=t[V]()}return!1}},{key:V,value:function(){return this[We]}},{key:W,value:function(){return this[V]()}},{key:X,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[e]:this[Le]}},{key:I,value:function(){var t=Object.create(null);this[T]&&(t.$content=this[T]);var r,a=b(Object.getOwnPropertyNames(this));try{for(a.s();!(r=a.n()).done;){var n=r.value,i=this[n];null!==i&&(i instanceof e?t[n]=i[I]():i instanceof et?i.isEmpty()||(t[n]=i.dump()):t[n]=i)}}catch(o){a.e(o)}finally{a.f()}return t}},{key:Ee,value:function(){return null}},{key:Oe,value:function(){return a.HTMLResult.EMPTY}},{key:$,value:m().mark((function e(){var t,r,a;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=b(this[X]()),e.prev=1,t.s();case 3:if((r=t.n()).done){e.next=9;break}return a=r.value,e.next=7,a;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:qe,value:m().mark((function e(t,r){var a,n,i,o,s;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=b(this[$]()),e.prev=1,a.s();case 3:if((n=a.n()).done){e.next=13;break}if(i=n.value,t&&r!==t.has(i[de])){e.next=11;break}return o=this[L](),s=i[Oe](o),s.success||(this[E].failingNode=i),e.next=11,s;case 11:e.next=3;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](1),a.e(e.t0);case 18:return e.prev=18,a.f(),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[1,15,18,21]])}))},{key:R,value:function(){return null}},{key:c,value:function(e,t){this[E].children.push(e)}},{key:L,value:function(){}},{key:y,value:function(e){var t=e.filter,r=void 0===t?null:t,n=e.include,i=void 0===n||n;if(this[E].generator){var o=this[L](),s=this[E].failingNode[Oe](o);if(!s.success)return s;s.html&&this[c](s.html,s.bbox),delete this[E].failingNode}else this[E].generator=this[qe](r,i);while(1){var l=this[E].generator.next();if(l.done)break;var u=l.value;if(!u.success)return u;u.html&&this[c](u.html,u.bbox)}return this[E].generator=null,a.HTMLResult.EMPTY}},{key:Ae,value:function(e){this[Ye]=new Set(Object.keys(e))}},{key:He,value:function(e){var t=this[Ne],r=this[Ye];return p(e).filter((function(e){return t.has(e)&&!r.has(e)}))}},{key:_e,value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,a=b(this[Le]);try{for(a.s();!(t=a.n()).done;){var n=t.value;n[Ve](e,r)}}catch(i){a.e(i)}finally{a.f()}}},{key:Ve,value:function(e,t){var r=this[Ge](e,t);r?this[Re](r,e,t):this[_e](e,t)}},{key:Ge,value:function(e,t){var r=this.use,a=this.usehref;if(!r&&!a)return null;var i=null,o=null,l=null,c=r;if(a?(c=a,a.startsWith("#som(")&&a.endsWith(")")?o=a.slice("#som(".length,a.length-1):a.startsWith(".#som(")&&a.endsWith(")")?o=a.slice(".#som(".length,a.length-1):a.startsWith("#")?l=a.slice(1):a.startsWith(".#")&&(l=a.slice(2))):r.startsWith("#")?l=r.slice(1):o=r,this.use=this.usehref="",l?i=e.get(l):(i=(0,s.searchNode)(e.get(we),this,o,!0,!1),i&&(i=i[0])),!i)return(0,n.warn)("XFA - Invalid prototype reference: ".concat(c,".")),null;if(i[de]!==this[de])return(0,n.warn)("XFA - Incompatible prototype: ".concat(i[de]," !== ").concat(this[de],".")),null;if(t.has(i))return(0,n.warn)("XFA - Cycle detected in prototypes use."),null;t.add(i);var u=i[Ge](e,t);return u&&i[Re](u,e,t),i[_e](e,t),t["delete"](i),i}},{key:Re,value:function(e,t,r){if(r.has(e))(0,n.warn)("XFA - Cycle detected in prototypes use.");else{!this[T]&&e[T]&&(this[T]=e[T]);var a=new Set(r);a.add(e);var i,o=b(this[He](e[Ye]));try{for(o.s();!(i=o.n()).done;){var s=i.value;this[s]=e[s],this[Ye]&&this[Ye].add(s)}}catch(w){o.e(w)}finally{o.f()}var l,c=b(Object.getOwnPropertyNames(this));try{for(c.s();!(l=c.n()).done;){var u=l.value;if(!this[Ne].has(u)){var h=this[u],d=e[u];if(h instanceof et){var f,p=b(h[Le]);try{for(p.s();!(f=p.n()).done;){var v=f.value;v[Ve](t,r)}}catch(w){p.e(w)}finally{p.f()}for(var g=h[Le].length,m=d[Le].length;g<m;g++){var y=e[Le][g][F]();if(!h.push(y))break;y[We]=this,this[Le].push(y),y[Ve](t,r)}}else if(null===h){if(null!==d){var k=d[F]();k[We]=this,this[u]=k,this[Le].push(k),k[Ve](t,r)}}else h[_e](t,r),d&&h[Re](d,t,r)}}}catch(w){c.e(w)}finally{c.f()}}}},{key:F,value:function(){var t,r=Object.create(Object.getPrototypeOf(this)),a=b(Object.getOwnPropertySymbols(this));try{for(a.s();!(t=a.n()).done;){var i=t.value;try{r[i]=this[i]}catch(v){(0,n.shadow)(r,i,this[i])}}}catch(g){a.e(g)}finally{a.f()}r[Me]="".concat(r[de]).concat(Je++),r[Le]=[];var o,s=b(Object.getOwnPropertyNames(this));try{for(s.s();!(o=s.n()).done;){var l=o.value;if(this[Ne].has(l))r[l]=e[Be](this[l]);else{var c=this[l];r[l]=c instanceof et?new et(c[$e]):null}}}catch(g){s.e(g)}finally{s.f()}var u,h=b(this[Le]);try{for(h.s();!(u=h.n()).done;){var d=u.value,f=d[de],p=d[F]();r[Le].push(p),p[We]=r,null===r[f]?r[f]=p:r[f][Le].push(p)}}catch(g){h.e(g)}finally{h.f()}return r}},{key:X,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[Le].filter((function(t){return t[de]===e})):this[Le]}},{key:B,value:function(e){return this[e]}},{key:j,value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Array.from(this[U](e,t,r))}},{key:U,value:m().mark((function e(t,r){var a,n,i,o,s=arguments;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=!(s.length>2&&void 0!==s[2])||s[2],"parent"!==t){e.next=5;break}return e.next=4,this[We];case 4:return e.abrupt("return");case 5:n=b(this[Le]),e.prev=6,n.s();case 8:if((i=n.n()).done){e.next=20;break}if(o=i.value,o[de]!==t){e.next=13;break}return e.next=13,o;case 13:if(o.name!==t){e.next=16;break}return e.next=16,o;case 16:if(!r&&!o[le]()){e.next=18;break}return e.delegateYield(o[U](t,r,!1),"t0",18);case 18:e.next=8;break;case 20:e.next=25;break;case 22:e.prev=22,e.t1=e["catch"](6),n.e(e.t1);case 25:return e.prev=25,n.f(),e.finish(25);case 28:if(!a||!this[Ne].has(t)){e.next=31;break}return e.next=31,new tt(this,t,this[t]);case 31:case"end":return e.stop()}}),e,this,[[6,22,25,28]])}))}],[{key:Be,value:function(t){return Array.isArray(t)?t.map((function(t){return e[Be](t)})):"object"===x(t)&&null!==t?Object.assign({},t):t}}]),e}();t.XFAObject=Qe;var et=function(){function e(){_(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;this[$e]=t,this[Le]=[]}return S(e,[{key:"push",value:function(e){var t=this[Le].length;return t<=this[$e]?(this[Le].push(e),!0):((0,n.warn)('XFA - node "'.concat(e[de],'" accepts no more than ').concat(this[$e]," children")),!1)}},{key:"isEmpty",value:function(){return 0===this[Le].length}},{key:"dump",value:function(){return 1===this[Le].length?this[Le][0][I]():this[Le].map((function(e){return e[I]()}))}},{key:F,value:function(){var t=new e(this[$e]);return t[Le]=this[Le].map((function(e){return e[F]()})),t}},{key:"children",get:function(){return this[Le]}},{key:"clear",value:function(){this[Le].length=0}}]),e}();t.XFAObjectArray=et;var tt=function(){function e(t,r,a){_(this,e),this[We]=t,this[de]=r,this[T]=a,this[P]=!1,this[Me]="attribute".concat(Je++)}return S(e,[{key:V,value:function(){return this[We]}},{key:ae,value:function(){return!0}},{key:q,value:function(){return this[T].trim()}},{key:Ce,value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){e=e.value||"",this[T]=e.toString()}))},{key:Pe,value:function(){return this[T]}},{key:ne,value:function(e){return this[We]===e||this[We][ne](e)}}]),e}();t.XFAAttribute=tt;var rt=function(e){v(r,e);var t=g(r);function r(e,a){var n;_(this,r);var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n=t.call(this,e,a),n[T]="",n[je]=null,"#text"!==a){var o=new Map;n[De]=o;for(var s=0,l=Object.entries(i);s<l.length;s++){var c=k(l[s],2),u=c[0],h=c[1];o.set(u,new tt(f(n),u,h))}if(i.hasOwnProperty(fe)){var d=i[fe].xfa.dataNode;void 0!==d&&("dataGroup"===d?n[je]=!1:"dataValue"===d&&(n[je]=!0))}}return n[P]=!1,n}return S(r,[{key:Ie,value:function(e){var t=this[de];if("#text"!==t){var r=(0,n.utf8StringToString)(t),a=this[he]===Ze?"xfa:":"";e.push("<".concat(a).concat(r));var o,s=b(this[De].entries());try{for(s.s();!(o=s.n()).done;){var l=k(o.value,2),c=l[0],u=l[1],h=(0,n.utf8StringToString)(c);e.push(" ".concat(h,'="').concat((0,i.encodeToXmlString)(u[T]),'"'))}}catch(v){s.e(v)}finally{s.f()}if(null!==this[je]&&(this[je]?e.push(' xfa:dataNode="dataValue"'):e.push(' xfa:dataNode="dataGroup"')),this[T]||0!==this[Le].length){if(e.push(">"),this[T])"string"===typeof this[T]?e.push((0,i.encodeToXmlString)(this[T])):this[T][Ie](e);else{var d,f=b(this[Le]);try{for(f.s();!(d=f.n()).done;){var p=d.value;p[Ie](e)}}catch(v){f.e(v)}finally{f.f()}}e.push("</".concat(a).concat(r,">"))}else e.push("/>")}else e.push((0,i.encodeToXmlString)(this[T]))}},{key:pe,value:function(e){if(this[T]){var t=new r(this[he],"#text");this[d](t),t[T]=this[T],this[T]=""}return this[d](e),!0}},{key:ge,value:function(e){this[T]+=e}},{key:M,value:function(){if(this[T]&&this[Le].length>0){var e=new r(this[he],"#text");this[d](e),e[T]=this[T],delete this[T]}}},{key:Oe,value:function(){return"#text"===this[de]?a.HTMLResult.success({name:"#text",value:this[T]}):a.HTMLResult.EMPTY}},{key:X,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[Le].filter((function(t){return t[de]===e})):this[Le]}},{key:N,value:function(){return this[De]}},{key:B,value:function(e){var t=this[De].get(e);return void 0!==t?t:this[X](e)}},{key:U,value:m().mark((function(e,t){var r,a,n,i;return m().wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(r=this[De].get(e),!r){o.next=4;break}return o.next=4,r;case 4:a=b(this[Le]),o.prev=5,a.s();case 7:if((n=a.n()).done){o.next=16;break}if(i=n.value,i[de]!==e){o.next=12;break}return o.next=12,i;case 12:if(!t){o.next=14;break}return o.delegateYield(i[U](e,t),"t0",14);case 14:o.next=7;break;case 16:o.next=21;break;case 18:o.prev=18,o.t1=o["catch"](5),a.e(o.t1);case 21:return o.prev=21,a.f(),o.finish(21);case 24:case"end":return o.stop()}}),r,this,[[5,18,21,24]])}))},{key:D,value:m().mark((function(e,t){var r,a,n,i;return m().wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(r=this[De].get(e),!r||t&&r[P]){o.next=4;break}return o.next=4,r;case 4:a=b(this[Le]),o.prev=5,a.s();case 7:if((n=a.n()).done){o.next=12;break}return i=n.value,o.delegateYield(i[D](e,t),"t0",10);case 10:o.next=7;break;case 12:o.next=17;break;case 14:o.prev=14,o.t1=o["catch"](5),a.e(o.t1);case 17:return o.prev=17,a.f(),o.finish(17);case 20:case"end":return o.stop()}}),r,this,[[5,14,17,20]])}))},{key:H,value:m().mark((function e(t,r,a){var n,i,o;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=b(this[Le]),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=12;break}if(o=i.value,o[de]!==t||a&&o[P]){e.next=8;break}return e.next=8,o;case 8:if(!r){e.next=10;break}return e.delegateYield(o[H](t,r,a),"t0",10);case 10:e.next=3;break;case 12:e.next=17;break;case 14:e.prev=14,e.t1=e["catch"](1),n.e(e.t1);case 17:return e.prev=17,n.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[1,14,17,20]])}))},{key:ae,value:function(){return null===this[je]?0===this[Le].length||this[Le][0][he]===o.NamespaceIds.xhtml.id:this[je]}},{key:q,value:function(){return null===this[je]?0===this[Le].length?this[T].trim():this[Le][0][he]===o.NamespaceIds.xhtml.id?this[Le][0][Pe]().trim():null:this[T].trim()}},{key:Ce,value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){e=e.value||"",this[T]=e.toString()}))},{key:I,value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Object.create(null);e&&(t.$ns=this[he]),this[T]&&(t.$content=this[T]),t.$name=this[de],t.children=[];var r,a=b(this[Le]);try{for(a.s();!(r=a.n()).done;){var n=r.value;t.children.push(n[I](e))}}catch(u){a.e(u)}finally{a.f()}t.attributes=Object.create(null);var i,o=b(this[De]);try{for(o.s();!(i=o.n()).done;){var s=k(i.value,2),l=s[0],c=s[1];t.attributes[l]=c[T]}}catch(u){o.e(u)}finally{o.f()}return t}}]),r}(Qe);t.XmlObject=rt;var at=function(e){v(r,e);var t=g(r);function r(e,a){var n;return _(this,r),n=t.call(this,e,a),n[T]="",n}return S(r,[{key:ge,value:function(e){this[T]+=e}},{key:M,value:function(){}}]),r}(Qe);t.ContentObject=at;var nt=function(e){v(r,e);var t=g(r);function r(e,a,n){var i;return _(this,r),i=t.call(this,e,a),i[ze]=n,i}return S(r,[{key:M,value:function(){var e=this;this[T]=(0,a.getKeyword)({data:this[T],defaultValue:this[ze][0],validate:function(t){return e[ze].includes(t)}})}},{key:w,value:function(e){u(h(r.prototype),w,this).call(this,e),delete this[ze]}}]),r}(at);t.OptionObject=nt;var it=function(e){v(r,e);var t=g(r);function r(){return _(this,r),t.apply(this,arguments)}return S(r,[{key:M,value:function(){this[T]=this[T].trim()}}]),r}(at);t.StringObject=it;var ot=function(e){v(r,e);var t=g(r);function r(e,a,n,i){var o;return _(this,r),o=t.call(this,e,a),o[Ue]=n,o[Ke]=i,o}return S(r,[{key:M,value:function(){this[T]=(0,a.getInteger)({data:this[T],defaultValue:this[Ue],validate:this[Ke]})}},{key:w,value:function(e){u(h(r.prototype),w,this).call(this,e),delete this[Ue],delete this[Ke]}}]),r}(at);t.IntegerObject=ot;var st=function(e){v(r,e);var t=g(r);function r(e,a){return _(this,r),t.call(this,e,a,0,(function(e){return 1===e}))}return S(r)}(ot);t.Option01=st;var lt=function(e){v(r,e);var t=g(r);function r(e,a){return _(this,r),t.call(this,e,a,1,(function(e){return 0===e}))}return S(r)}(ot);t.Option10=lt},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLResult=void 0,t.getBBox=v,t.getColor=p,t.getFloat=l,t.getInteger=s,t.getKeyword=c,t.getMeasurement=h,t.getRatio=d,t.getRelevant=f,t.getStringOption=u,t.stripQuotes=o;var a=r(2),n={pt:function(e){return e},cm:function(e){return e/2.54*72},mm:function(e){return e/25.4*72},in:function(e){return 72*e},px:function(e){return e}},i=/([+-]?\d+\.?\d*)(.*)/;function o(e){return e.startsWith("'")||e.startsWith('"')?e.slice(1,e.length-1):e}function s(e){var t=e.data,r=e.defaultValue,a=e.validate;if(!t)return r;t=t.trim();var n=parseInt(t,10);return!isNaN(n)&&a(n)?n:r}function l(e){var t=e.data,r=e.defaultValue,a=e.validate;if(!t)return r;t=t.trim();var n=parseFloat(t);return!isNaN(n)&&a(n)?n:r}function c(e){var t=e.data,r=e.defaultValue,a=e.validate;return t?(t=t.trim(),a(t)?t:r):r}function u(e,t){return c({data:e,defaultValue:t[0],validate:function(e){return t.includes(e)}})}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";if(t=t||"0",!e)return h(t);var r=e.trim().match(i);if(!r)return h(t);var a=k(r,3),o=a[1],s=a[2],l=parseFloat(o);if(isNaN(l))return h(t);if(0===l)return 0;var c=n[s];return c?c(l):l}function d(e){if(!e)return{num:1,den:1};var t=e.trim().split(/\s*:\s*/).map((function(e){return parseFloat(e)})).filter((function(e){return!isNaN(e)}));if(1===t.length&&t.push(1),0===t.length)return{num:1,den:1};var r=k(t,2),a=r[0],n=r[1];return{num:a,den:n}}function f(e){return e?e.trim().split(/\s+/).map((function(e){return{excluded:"-"===e[0],viewname:e.substring(1)}})):[]}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0],r=k(t,3),a=r[0],n=r[1],i=r[2];if(!e)return{r:a,g:n,b:i};var o=e.trim().split(/\s*,\s*/).map((function(e){return Math.min(Math.max(0,parseInt(e.trim(),10)),255)})).map((function(e){return isNaN(e)?0:e}));if(o.length<3)return{r:a,g:n,b:i};var s=k(o,3);return a=s[0],n=s[1],i=s[2],{r:a,g:n,b:i}}function v(e){var t=-1;if(!e)return{x:t,y:t,width:t,height:t};var r=e.trim().split(/\s*,\s*/).map((function(e){return h(e,"-1")}));if(r.length<4||r[2]<0||r[3]<0)return{x:t,y:t,width:t,height:t};var a=k(r,4),n=a[0],i=a[1],o=a[2],s=a[3];return{x:n,y:i,width:o,height:s}}var g=function(){function e(t,r,a,n){_(this,e),this.success=t,this.html=r,this.bbox=a,this.breakNode=n}return S(e,[{key:"isBreak",value:function(){return!!this.breakNode}}],[{key:"FAILURE",get:function(){return(0,a.shadow)(this,"FAILURE",new e(!1,null,null,null))}},{key:"EMPTY",get:function(){return(0,a.shadow)(this,"EMPTY",new e(!0,null,null,null))}},{key:"breakNode",value:function(t){return new e(!1,null,null,t)}},{key:"success",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new e(!0,t,r,null)}}]),e}();t.HTMLResult=g},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceIds=t.$buildXFAObject=void 0;var r=Symbol();t.$buildXFAObject=r;var a={config:{id:0,check:function(e){return e.startsWith("http://www.xfa.org/schema/xci/")}},connectionSet:{id:1,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-connection-set/")}},datasets:{id:2,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-data/")}},form:{id:3,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-form/")}},localeSet:{id:4,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-locale-set/")}},pdf:{id:5,check:function(e){return"http://ns.adobe.com/xdp/pdf/"===e}},signature:{id:6,check:function(e){return"http://www.w3.org/2000/09/xmldsig#"===e}},sourceSet:{id:7,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-source-set/")}},stylesheet:{id:8,check:function(e){return"http://www.w3.org/1999/XSL/Transform"===e}},template:{id:9,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-template/")}},xdc:{id:10,check:function(e){return e.startsWith("http://www.xfa.org/schema/xdc/")}},xdp:{id:11,check:function(e){return"http://ns.adobe.com/xdp/"===e}},xfdf:{id:12,check:function(e){return"http://ns.adobe.com/xfdf/"===e}},xhtml:{id:13,check:function(e){return"http://www.w3.org/1999/xhtml"===e}},xmpmeta:{id:14,check:function(e){return"http://ns.adobe.com/xmpmeta/"===e}}};t.NamespaceIds=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDataNode=g,t.searchNode=p;var a=r(202),n=r(204),i=r(2),o=/^[^.[]+/,s=/^[^\]]+/,l={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},c=new Map([["$data",function(e,t){return e.datasets?e.datasets.data:e}],["$record",function(e,t){return(e.datasets?e.datasets.data:e)[a.$getChildren]()[0]}],["$template",function(e,t){return e.template}],["$connectionSet",function(e,t){return e.connectionSet}],["$form",function(e,t){return e.form}],["$layout",function(e,t){return e.layout}],["$host",function(e,t){return e.host}],["$dataWindow",function(e,t){return e.dataWindow}],["$event",function(e,t){return e.event}],["!",function(e,t){return e.datasets}],["$xfa",function(e,t){return e}],["xfa",function(e,t){return e}],["$",function(e,t){return t}]]),u=new WeakMap,h=n.NamespaceIds.datasets.id;function d(e){return e=e.trim(),"*"===e?1/0:parseInt(e,10)||0}function f(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=e.match(o);if(!a)return null;var n=a,c=k(n,1),u=c[0],h=[{name:u,cacheName:"."+u,index:0,js:null,formCalc:null,operator:l.dot}],f=u.length;while(f<e.length){var p=f,v=e.charAt(f++);if("["!==v){var g=void 0;switch(e.charAt(f)){case".":if(!t)return null;f++,g=l.dotDot;break;case"#":f++,g=l.dotHash;break;case"[":if(r)return(0,i.warn)("XFA - SOM expression contains a FormCalc subexpression which is not supported for now."),null;g=l.dotBracket;break;case"(":if(r)return(0,i.warn)("XFA - SOM expression contains a JavaScript subexpression which is not supported for now."),null;g=l.dotParen;break;default:g=l.dot;break}if(a=e.slice(f).match(o),!a)break;var m=a,y=k(m,1);u=y[0],f+=u.length,h.push({name:u,cacheName:e.slice(p,f),operator:g,index:0,js:null,formCalc:null})}else{if(a=e.slice(f).match(s),!a)return(0,i.warn)("XFA - Invalid index in SOM expression"),null;h.at(-1).index=d(a[0]),f+=a[0].length+1}}return h}function p(e,t,r){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=f(r,n);if(!o)return null;var s,h=c.get(o[0].name),d=0;h?(s=!0,e=[h(e,t)],d=1):(s=null===t,e=[t||e]);for(var p=function(){var r,n=o[d],c=n.name,h=n.cacheName,f=n.operator,p=n.index,v=[],g=b(e);try{for(g.s();!(r=g.n()).done;){var m=r.value;if(m instanceof a.XFAObject){var y=void 0,k=void 0;if(i&&(k=u.get(m),k||(k=new Map,u.set(m,k)),y=k.get(h)),!y){switch(f){case l.dot:y=m[a.$getChildrenByName](c,!1);break;case l.dotDot:y=m[a.$getChildrenByName](c,!0);break;case l.dotHash:y=m[a.$getChildrenByClass](c),y=y instanceof a.XFAObjectArray?y.children:[y];break;default:break}i&&k.set(h,y)}y.length>0&&v.push(y)}}}catch(_){g.e(_)}finally{g.f()}if(0===v.length&&!s&&0===d){var w=t[a.$getParent]();return t=w,t?(d=-1,e=[t],"continue"):{v:null}}e=isFinite(p)?v.filter((function(e){return p<e.length})).map((function(e){return e[p]})):v.flat()},v=o.length;d<v;d++){var g=p();if("continue"!==g&&"object"===x(g))return g.v}return 0===e.length?null:e}function v(e,t){var r,n=null,i=b(t);try{for(i.s();!(r=i.n()).done;){for(var o=r.value,s=o.name,l=o.index,c=0,u=isFinite(l)?l:0;c<=u;c++){var d=e[a.$namespaceId]===h?-1:e[a.$namespaceId];n=new a.XmlObject(d,s),e[a.$appendChild](n)}e=n}}catch(f){i.e(f)}finally{i.f()}return n}function g(e,t,r){var n=f(r);if(!n)return null;if(n.some((function(e){return e.operator===l.dotDot})))return null;var o=c.get(n[0].name),s=0;o?(e=o(e,t),s=1):e=t||e;for(var u=n.length;s<u;s++){var h=n[s],d=h.name,p=h.operator,g=h.index;if(!isFinite(g))return n[s].index=0,v(e,n.slice(s));var m=void 0;switch(p){case l.dot:m=e[a.$getChildrenByName](d,!1);break;case l.dotDot:m=e[a.$getChildrenByName](d,!0);break;case l.dotHash:m=e[a.$getChildrenByClass](d),m=m instanceof a.XFAObjectArray?m.children:[m];break;default:break}if(0===m.length)return v(e,n.slice(s));if(!(g<m.length))return n[s].index=g-m.length,v(e,n.slice(s));var y=m[g];if(!(y instanceof a.XFAObject))return(0,i.warn)("XFA - Cannot create a node."),null;e=y}return null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Binder=void 0;var a=r(202),n=r(207),i=r(205),o=r(204),s=r(2),l=o.NamespaceIds.datasets.id;function c(e){var t=new n.Text({});return t[a.$content]=e,t}var u=function(){function e(t){_(this,e),this.root=t,this.datasets=t.datasets,t.datasets&&t.datasets.data?this.data=t.datasets.data:this.data=new a.XmlObject(o.NamespaceIds.datasets.id,"data"),this.emptyMerge=0===this.data[a.$getChildren]().length,this.root.form=this.form=t.template[a.$clone]()}return S(e,[{key:"_isConsumeData",value:function(){return!this.emptyMerge&&this._mergeMode}},{key:"_isMatchTemplate",value:function(){return!this._isConsumeData()}},{key:"bind",value:function(){return this._bindElement(this.form,this.data),this.form}},{key:"getData",value:function(){return this.data}},{key:"_bindValue",value:function(e,t,r){if(e[a.$data]=t,e[a.$hasSettableValue]())if(t[a.$isDataValue]()){var i=t[a.$getDataValue]();e[a.$setValue](c(i))}else if(e instanceof n.Field&&e.ui&&e.ui.choiceList&&"multiSelect"===e.ui.choiceList.open){var o=t[a.$getChildren]().map((function(e){return e[a.$content].trim()})).join("\n");e[a.$setValue](c(o))}else this._isConsumeData()&&(0,s.warn)("XFA - Nodes haven't the same type.");else!t[a.$isDataValue]()||this._isMatchTemplate()?this._bindElement(e,t):(0,s.warn)("XFA - Nodes haven't the same type.")}},{key:"_findDataByNameToConsume",value:function(e,t,r,n){if(!e)return null;for(var i,s,l=0;l<3;l++){i=r[a.$getRealChildrenByNameIt](e,!1,!0);while(1){if(s=i.next().value,!s)break;if(t===s[a.$isDataValue]())return s}if(r[a.$namespaceId]===o.NamespaceIds.datasets.id&&"data"===r[a.$nodeName])break;r=r[a.$getParent]()}return n?(i=this.data[a.$getRealChildrenByNameIt](e,!0,!1),s=i.next().value,s||(i=this.data[a.$getAttributeIt](e,!0),s=i.next().value,s&&s[a.$isDataValue]()?s:null)):null}},{key:"_setProperties",value:function(e,t){if(e.hasOwnProperty("setProperty")){var r,o=b(e.setProperty.children);try{for(o.s();!(r=o.n()).done;){var l=r.value,c=l.ref,u=l.target,h=l.connection;if(!h&&c){var d=(0,i.searchNode)(this.root,t,c,!1,!1);if(d){var f=k(d,1),p=f[0];if(p[a.$isDescendent](this.data)){var v=(0,i.searchNode)(this.root,e,u,!1,!1);if(v){var g=k(v,1),m=g[0];if(m[a.$isDescendent](e)){var y=m[a.$getParent]();if(m instanceof n.SetProperty||y instanceof n.SetProperty)(0,s.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");else if(m instanceof n.BindItems||y instanceof n.BindItems)(0,s.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");else{var w=p[a.$text](),_=m[a.$nodeName];if(m instanceof a.XFAAttribute){var S=Object.create(null);S[_]=w;var x=Reflect.construct(Object.getPrototypeOf(y).constructor,[S]);y[_]=x[_]}else m.hasOwnProperty(a.$content)?(m[a.$data]=p,m[a.$content]=w,m[a.$finalize]()):(0,s.warn)("XFA - Invalid node to use in setProperty")}}else(0,s.warn)("XFA - Invalid target: must be a property or subproperty.")}else(0,s.warn)("XFA - Invalid target: ".concat(u,"."))}else(0,s.warn)("XFA - Invalid node: must be a data node.")}else(0,s.warn)("XFA - Invalid reference: ".concat(c,"."))}}}catch(A){o.e(A)}finally{o.f()}}}},{key:"_bindItems",value:function(e,t){if(e.hasOwnProperty("items")&&e.hasOwnProperty("bindItems")&&!e.bindItems.isEmpty()){var r,o=b(e.items.children);try{for(o.s();!(r=o.n()).done;){var l=r.value;e[a.$removeChild](l)}}catch(M){o.e(M)}finally{o.f()}e.items.clear();var u=new n.Items({}),h=new n.Items({});e[a.$appendChild](u),e.items.push(u),e[a.$appendChild](h),e.items.push(h);var d,f=b(e.bindItems.children);try{for(f.s();!(d=f.n()).done;){var p=d.value,v=p.ref,g=p.labelRef,m=p.valueRef,y=p.connection;if(!y&&v){var w=(0,i.searchNode)(this.root,t,v,!1,!1);if(w){var _,S=b(w);try{for(S.s();!(_=S.n()).done;){var x=_.value;if(x[a.$isDescendent](this.datasets)){var A=(0,i.searchNode)(this.root,x,g,!0,!1);if(A){var C=k(A,1),F=C[0];if(F[a.$isDescendent](this.datasets)){var P=(0,i.searchNode)(this.root,x,m,!0,!1);if(P){var T=k(P,1),O=T[0];if(O[a.$isDescendent](this.datasets)){var I=c(F[a.$text]()),E=c(O[a.$text]());u[a.$appendChild](I),u.text.push(I),h[a.$appendChild](E),h.text.push(E)}else(0,s.warn)("XFA - Invalid value: must be a datasets child.")}else(0,s.warn)("XFA - Invalid value: ".concat(m,"."))}else(0,s.warn)("XFA - Invalid label: must be a datasets child.")}else(0,s.warn)("XFA - Invalid label: ".concat(g,"."))}else(0,s.warn)("XFA - Invalid ref (".concat(v,"): must be a datasets child."))}}catch(M){S.e(M)}finally{S.f()}}else(0,s.warn)("XFA - Invalid reference: ".concat(v,"."))}}}catch(M){f.e(M)}finally{f.f()}}}},{key:"_bindOccurrences",value:function(e,t,r){var n;if(t.length>1&&(n=e[a.$clone](),n[a.$removeChild](n.occur),n.occur=null),this._bindValue(e,t[0],r),this._setProperties(e,t[0]),this._bindItems(e,t[0]),1!==t.length)for(var i=e[a.$getParent](),o=e[a.$nodeName],s=i[a.$indexOf](e),l=1,c=t.length;l<c;l++){var u=t[l],h=n[a.$clone]();i[o].push(h),i[a.$insertAt](s+l,h),this._bindValue(h,u,r),this._setProperties(h,u),this._bindItems(h,u)}}},{key:"_createOccurrences",value:function(e){if(this.emptyMerge){var t=e.occur;if(t&&!(t.initial<=1)){var r=e[a.$getParent](),n=e[a.$nodeName];if(r[n]instanceof a.XFAObjectArray){var i;i=e.name?r[n].children.filter((function(t){return t.name===e.name})).length:r[n].children.length;var o=r[a.$indexOf](e)+1,s=t.initial-i;if(s){var l=e[a.$clone]();l[a.$removeChild](l.occur),l.occur=null,r[n].push(l),r[a.$insertAt](o,l);for(var c=1;c<s;c++){var u=l[a.$clone]();r[n].push(u),r[a.$insertAt](o+c,u)}}}}}}},{key:"_getOccurInfo",value:function(e){var t=e.name,r=e.occur;if(!r||!t)return[1,1];var a=-1===r.max?1/0:r.max;return[r.min,a]}},{key:"_setAndBind",value:function(e,t){this._setProperties(e,t),this._bindItems(e,t),this._bindElement(e,t)}},{key:"_bindElement",value:function(e,t){var r=[];this._createOccurrences(e);var n,o=b(e[a.$getChildren]());try{for(o.s();!(n=o.n()).done;){var c=n.value;if(!c[a.$data])if(void 0!==this._mergeMode||"subform"!==c[a.$nodeName]){if(c[a.$isBindable]()){var u=!1,h=null,d=null,f=null;if(c.bind){switch(c.bind.match){case"none":this._setAndBind(c,t);continue;case"global":u=!0;break;case"dataRef":if(!c.bind.ref){(0,s.warn)("XFA - ref is empty in node ".concat(c[a.$nodeName],".")),this._setAndBind(c,t);continue}d=c.bind.ref;break;default:break}c.bind.picture&&(h=c.bind.picture[a.$content])}var p=this._getOccurInfo(c),v=k(p,2),g=v[0],m=v[1];if(d){if(f=(0,i.searchNode)(this.root,t,d,!0,!1),null===f){if(f=(0,i.createDataNode)(this.data,t,d),!f)continue;this._isConsumeData()&&(f[a.$consumed]=!0),this._setAndBind(c,f);continue}this._isConsumeData()&&(f=f.filter((function(e){return!e[a.$consumed]}))),f.length>m?f=f.slice(0,m):0===f.length&&(f=null),f&&this._isConsumeData()&&f.forEach((function(e){e[a.$consumed]=!0}))}else{if(!c.name){this._setAndBind(c,t);continue}if(this._isConsumeData()){var y=[];while(y.length<m){var w=this._findDataByNameToConsume(c.name,c[a.$hasSettableValue](),t,u);if(!w)break;w[a.$consumed]=!0,y.push(w)}f=y.length>0?y:null}else{if(f=t[a.$getRealChildrenByNameIt](c.name,!1,this.emptyMerge).next().value,!f){if(0===g){r.push(c);continue}var _=t[a.$namespaceId]===l?-1:t[a.$namespaceId];f=c[a.$data]=new a.XmlObject(_,c.name),this.emptyMerge&&(f[a.$consumed]=!0),t[a.$appendChild](f),this._setAndBind(c,f);continue}this.emptyMerge&&(f[a.$consumed]=!0),f=[f]}}f?this._bindOccurrences(c,f,h):g>0?this._setAndBind(c,t):r.push(c)}}else{this._mergeMode="consumeData"===c.mergeMode;var S=t[a.$getChildren]();if(S.length>0)this._bindOccurrences(c,[S[0]],null);else if(this.emptyMerge){var x=t[a.$namespaceId]===l?-1:t[a.$namespaceId],A=c[a.$data]=new a.XmlObject(x,c.name||"root");t[a.$appendChild](A),this._bindElement(c,A)}}}}catch(C){o.e(C)}finally{o.f()}r.forEach((function(e){return e[a.$getParent]()[a.$removeChild](e)}))}}]),e}();t.Binder=u},function(e,t,r){"use strict";var a=m().mark(R);Object.defineProperty(t,"__esModule",{value:!0}),t.Value=t.Text=t.TemplateNamespace=t.Template=t.SetProperty=t.Items=t.Field=t.BindItems=void 0;var n=r(202),i=r(204),o=r(208),s=r(209),l=r(203),c=r(2),d=r(210),f=r(131),p=r(205),y=i.NamespaceIds.template.id,w="http://www.w3.org/2000/svg",A=2,C=3,F=5e3,P=/^H(\d+)$/,T=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"]),O=[[[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 I(e){if(!e||!e.border)return{w:0,h:0};var t=e.border[n.$getExtra]();return t?{w:t.widths[0]+t.widths[2]+t.insets[0]+t.insets[2],h:t.widths[1]+t.widths[3]+t.insets[1]+t.insets[3]}:{w:0,h:0}}function E(e){return e.margin&&(e.margin.topInset||e.margin.rightInset||e.margin.bottomInset||e.margin.leftInset)}function M(e,t){if(!e.value){var r=new Wt({});e[n.$appendChild](r),e.value=r}e.value[n.$setValue](t)}function R(e){var t,r,i;return m().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t=b(e[n.$getChildren]()),a.prev=1,t.s();case 3:if((r=t.n()).done){a.next=12;break}if(i=r.value,!(i instanceof Mt)){a.next=8;break}return a.delegateYield(i[n.$getContainedChildren](),"t0",7);case 7:return a.abrupt("continue",10);case 8:return a.next=10,i;case 10:a.next=3;break;case 12:a.next=17;break;case 14:a.prev=14,a.t1=a["catch"](1),t.e(a.t1);case 17:return a.prev=17,t.f(),a.finish(17);case 20:case"end":return a.stop()}}),a,null,[[1,14,17,20]])}function D(e){return e.validate&&"error"===e.validate.nullTest}function N(e){while(e){if(!e.traversal)return void(e[n.$tabIndex]=e[n.$getParent]()[n.$tabIndex]);if(e[n.$tabIndex])return;var t,r=null,a=b(e.traversal[n.$getChildren]());try{for(a.s();!(t=a.n()).done;){var i=t.value;if("next"===i.operation){r=i;break}}}catch(l){a.e(l)}finally{a.f()}if(!r||!r.ref)return void(e[n.$tabIndex]=e[n.$getParent]()[n.$tabIndex]);var o=e[n.$getTemplateRoot]();e[n.$tabIndex]=++o[n.$tabIndex];var s=o[n.$searchNode](r.ref,e);if(!s)return;e=s[0]}}function L(e,t){var r=e.assist;if(r){var a=r[n.$toHTML]();a&&(t.title=a);var i=r.role,o=i.match(P);if(o){var s="heading",l=o[1];t.role=s,t["aria-level"]=l}}if("table"===e.layout)t.role="table";else if("row"===e.layout)t.role="row";else{var c=e[n.$getParent]();"row"===c.layout&&(c.assist&&"TH"===c.assist.role?t.role="columnheader":t.role="cell")}}function B(e){if(!e.assist)return null;var t=e.assist;return t.speak&&""!==t.speak[n.$content]?t.speak[n.$content]:t.toolTip?t.toolTip[n.$content]:null}function j(e){return l.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:e}]})}function U(e){var t=e[n.$getTemplateRoot]();null===t[n.$extra].firstUnsplittable&&(t[n.$extra].firstUnsplittable=e,t[n.$extra].noLayoutFailure=!0)}function q(e){var t=e[n.$getTemplateRoot]();t[n.$extra].firstUnsplittable===e&&(t[n.$extra].noLayoutFailure=!1)}function G(e){if(e[n.$extra])return!1;if(e[n.$extra]=Object.create(null),"auto"===e.targetType)return!1;var t=e[n.$getTemplateRoot](),r=null;if(e.target){if(r=t[n.$searchNode](e.target,e[n.$getParent]()),!r)return!1;r=r[0]}var a=t[n.$extra],i=a.currentPageArea,o=a.currentContentArea;if("pageArea"===e.targetType)return r instanceof dt||(r=null),e.startNew?(e[n.$extra].target=r||i,!0):!(!r||r===i)&&(e[n.$extra].target=r,!0);r instanceof fe||(r=null);var s,l=r&&r[n.$getParent](),c=l;if(e.startNew)if(r){var u=l.contentArea.children,h=u.indexOf(o),d=u.indexOf(r);-1!==h&&h<d&&(c=null),s=d-1}else s=i.contentArea.children.indexOf(o);else{if(!r||r===o)return!1;var f=l.contentArea.children;s=f.indexOf(r)-1,c=l===i?null:l}return e[n.$extra].target=c,e[n.$extra].index=s,!0}function H(e,t,r){var a=e[n.$getTemplateRoot](),i=a[n.$extra].noLayoutFailure,o=t[n.$getSubformParent];t[n.$getSubformParent]=function(){return e},a[n.$extra].noLayoutFailure=!0;var s=t[n.$toHTML](r);e[n.$addHTML](s.html,s.bbox),a[n.$extra].noLayoutFailure=i,t[n.$getSubformParent]=o}var X=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"appearanceFilter"),a.id=e.id||"",a.type=(0,l.getStringOption)(e.type,["optional","required"]),a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.StringObject),$=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"arc",!0),t.circular=(0,l.getInteger)({data:e.circular,defaultValue:0,validate:function(e){return 1===e}}),t.hand=(0,l.getStringOption)(e.hand,["even","left","right"]),t.id=e.id||"",t.startAngle=(0,l.getFloat)({data:e.startAngle,defaultValue:0,validate:function(e){return!0}}),t.sweepAngle=(0,l.getFloat)({data:e.sweepAngle,defaultValue:360,validate:function(e){return!0}}),t.use=e.use||"",t.usehref=e.usehref||"",t.edge=null,t.fill=null,t}return S(a,[{key:t,value:function(){var e,t=this.edge||new xe({}),r=t[n.$toStyle](),a=Object.create(null);this.fill&&"visible"===this.fill.presence?Object.assign(a,this.fill[n.$toStyle]()):a.fill="transparent",a.strokeWidth=(0,s.measureToString)("visible"===t.presence?t.thickness:0),a.stroke=r.color;var i={xmlns:w,style:{width:"100%",height:"100%",overflow:"visible"}};if(360===this.sweepAngle)e={name:"ellipse",attributes:{xmlns:w,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:a}};else{var o=this.startAngle*Math.PI/180,c=this.sweepAngle*Math.PI/180,u=this.sweepAngle>180?1:0,h=50*(1+Math.cos(o)),d=50*(1-Math.sin(o)),f=50*(1+Math.cos(o+c)),p=50*(1-Math.sin(o+c));e={name:"path",attributes:{xmlns:w,d:"M ".concat(h," ").concat(d," A 50 50 0 ").concat(u," 0 ").concat(f," ").concat(p),vectorEffect:"non-scaling-stroke",style:a}},Object.assign(i,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}var v={name:"svg",children:[e],attributes:i},g=this[n.$getParent]()[n.$getParent]();return E(g)?l.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[v]}):(v.attributes.style.position="absolute",l.HTMLResult.success(v))}}]),a}(n.XFAObject,n.$toHTML),z=function(e,t,r,a,i,o,c){v(h,e);var u=g(h);function h(e){var t;return _(this,h),t=u.call(this,y,"area",!0),t.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),t.id=e.id||"",t.name=e.name||"",t.relevant=(0,l.getRelevant)(e.relevant),t.use=e.use||"",t.usehref=e.usehref||"",t.x=(0,l.getMeasurement)(e.x,"0pt"),t.y=(0,l.getMeasurement)(e.y,"0pt"),t.desc=null,t.extras=null,t.area=new n.XFAObjectArray,t.draw=new n.XFAObjectArray,t.exObject=new n.XFAObjectArray,t.exclGroup=new n.XFAObjectArray,t.field=new n.XFAObjectArray,t.subform=new n.XFAObjectArray,t.subformSet=new n.XFAObjectArray,t}return S(h,[{key:t,value:m().mark((function e(){return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.delegateYield(R(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:r,value:function(){return!0}},{key:a,value:function(){return!0}},{key:i,value:function(e,t){var r=k(t,4),a=r[0],i=r[1],o=r[2],s=r[3];this[n.$extra].width=Math.max(this[n.$extra].width,a+o),this[n.$extra].height=Math.max(this[n.$extra].height,i+s),this[n.$extra].children.push(e)}},{key:o,value:function(){return this[n.$extra].availableSpace}},{key:c,value:function(e){var t=(0,s.toStyle)(this,"position"),r={style:t,id:this[n.$uid],class:["xfaArea"]};(0,s.isPrintOnly)(this)&&r["class"].push("xfaPrintOnly"),this.name&&(r.xfaName=this.name);var a=[];this[n.$extra]={children:a,width:0,height:0,availableSpace:e};var i=this[n.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!i.success)return i.isBreak()?i:(delete this[n.$extra],l.HTMLResult.FAILURE);t.width=(0,s.measureToString)(this[n.$extra].width),t.height=(0,s.measureToString)(this[n.$extra].height);var o={name:"div",attributes:r,children:a},c=[this.x,this.y,this[n.$extra].width,this[n.$extra].height];return delete this[n.$extra],l.HTMLResult.success(o,c)}}]),h}(n.XFAObject,n.$getContainedChildren,n.$isTransparent,n.$isBindable,n.$addHTML,n.$getAvailableSpace,n.$toHTML),W=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"assist",!0),t.id=e.id||"",t.role=e.role||"",t.use=e.use||"",t.usehref=e.usehref||"",t.speak=null,t.toolTip=null,t}return S(a,[{key:t,value:function(){return this.toolTip&&this.toolTip[n.$content]?this.toolTip[n.$content]:null}}]),a}(n.XFAObject,n.$toHTML),V=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"barcode",!0),a.charEncoding=(0,l.getKeyword)({data:e.charEncoding?e.charEncoding.toLowerCase():"",defaultValue:"",validate:function(e){return["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/)}}),a.checksum=(0,l.getStringOption)(e.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),a.dataColumnCount=(0,l.getInteger)({data:e.dataColumnCount,defaultValue:-1,validate:function(e){return e>=0}}),a.dataLength=(0,l.getInteger)({data:e.dataLength,defaultValue:-1,validate:function(e){return e>=0}}),a.dataPrep=(0,l.getStringOption)(e.dataPrep,["none","flateCompress"]),a.dataRowCount=(0,l.getInteger)({data:e.dataRowCount,defaultValue:-1,validate:function(e){return e>=0}}),a.endChar=e.endChar||"",a.errorCorrectionLevel=(0,l.getInteger)({data:e.errorCorrectionLevel,defaultValue:-1,validate:function(e){return e>=0&&e<=8}}),a.id=e.id||"",a.moduleHeight=(0,l.getMeasurement)(e.moduleHeight,"5mm"),a.moduleWidth=(0,l.getMeasurement)(e.moduleWidth,"0.25mm"),a.printCheckDigit=(0,l.getInteger)({data:e.printCheckDigit,defaultValue:0,validate:function(e){return 1===e}}),a.rowColumnRatio=(0,l.getRatio)(e.rowColumnRatio),a.startChar=e.startChar||"",a.textLocation=(0,l.getStringOption)(e.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),a.truncate=(0,l.getInteger)({data:e.truncate,defaultValue:0,validate:function(e){return 1===e}}),a.type=(0,l.getStringOption)(e.type?e.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"]),a.upsMode=(0,l.getStringOption)(e.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),a.use=e.use||"",a.usehref=e.usehref||"",a.wideNarrowRatio=(0,l.getRatio)(e.wideNarrowRatio),a.encrypt=null,a.extras=null,a}return S(r)}(n.XFAObject),Y=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"bind",!0),a.match=(0,l.getStringOption)(e.match,["once","dataRef","global","none"]),a.ref=e.ref||"",a.picture=null,a}return S(r)}(n.XFAObject),K=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"bindItems"),a.connection=e.connection||"",a.labelRef=e.labelRef||"",a.ref=e.ref||"",a.valueRef=e.valueRef||"",a}return S(r)}(n.XFAObject);t.BindItems=K;var J=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"bookend"),a.id=e.id||"",a.leader=e.leader||"",a.trailer=e.trailer||"",a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.XFAObject),Z=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"boolean"),t.id=e.id||"",t.name=e.name||"",t.use=e.use||"",t.usehref=e.usehref||"",t}return S(a,[{key:t,value:function(e){return j(1===this[n.$content]?"1":"0")}}]),a}(n.Option01,n.$toHTML),Q=function(e,t,r){v(i,e);var a=g(i);function i(e){var t;return _(this,i),t=a.call(this,y,"border",!0),t["break"]=(0,l.getStringOption)(e["break"],["close","open"]),t.hand=(0,l.getStringOption)(e.hand,["even","left","right"]),t.id=e.id||"",t.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),t.relevant=(0,l.getRelevant)(e.relevant),t.use=e.use||"",t.usehref=e.usehref||"",t.corner=new n.XFAObjectArray(4),t.edge=new n.XFAObjectArray(4),t.extras=null,t.fill=null,t.margin=null,t}return S(i,[{key:t,value:function(){if(!this[n.$extra]){var e=this.edge.children.slice();if(e.length<4)for(var t=e.at(-1)||new xe({}),r=e.length;r<4;r++)e.push(t);var a=e.map((function(e){return e.thickness})),i=[0,0,0,0];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:a,insets:i,edges:e}}return this[n.$extra]}},{key:r,value:function(){var e=this[n.$getExtra](),t=e.edges,r=t.map((function(e){var t=e[n.$toStyle]();return t.color=t.color||"#000000",t})),a=Object.create(null);if(this.margin&&Object.assign(a,this.margin[n.$toStyle]()),this.fill&&"visible"===this.fill.presence&&Object.assign(a,this.fill[n.$toStyle]()),this.corner.children.some((function(e){return 0!==e.radius}))){var i=this.corner.children.map((function(e){return e[n.$toStyle]()}));if(2===i.length||3===i.length)for(var o=i.at(-1),s=i.length;s<4;s++)i.push(o);a.borderRadius=i.map((function(e){return e.radius})).join(" ")}switch(this.presence){case"invisible":case"hidden":a.borderStyle="";break;case"inactive":a.borderStyle="none";break;default:a.borderStyle=r.map((function(e){return e.style})).join(" ");break}return a.borderWidth=r.map((function(e){return e.width})).join(" "),a.borderColor=r.map((function(e){return e.color})).join(" "),a}}]),i}(n.XFAObject,n.$getExtra,n.$toStyle),ee=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"break",!0),a.after=(0,l.getStringOption)(e.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),a.afterTarget=e.afterTarget||"",a.before=(0,l.getStringOption)(e.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),a.beforeTarget=e.beforeTarget||"",a.bookendLeader=e.bookendLeader||"",a.bookendTrailer=e.bookendTrailer||"",a.id=e.id||"",a.overflowLeader=e.overflowLeader||"",a.overflowTarget=e.overflowTarget||"",a.overflowTrailer=e.overflowTrailer||"",a.startNew=(0,l.getInteger)({data:e.startNew,defaultValue:0,validate:function(e){return 1===e}}),a.use=e.use||"",a.usehref=e.usehref||"",a.extras=null,a}return S(r)}(n.XFAObject),te=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"breakAfter",!0),a.id=e.id||"",a.leader=e.leader||"",a.startNew=(0,l.getInteger)({data:e.startNew,defaultValue:0,validate:function(e){return 1===e}}),a.target=e.target||"",a.targetType=(0,l.getStringOption)(e.targetType,["auto","contentArea","pageArea"]),a.trailer=e.trailer||"",a.use=e.use||"",a.usehref=e.usehref||"",a.script=null,a}return S(r)}(n.XFAObject),re=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"breakBefore",!0),t.id=e.id||"",t.leader=e.leader||"",t.startNew=(0,l.getInteger)({data:e.startNew,defaultValue:0,validate:function(e){return 1===e}}),t.target=e.target||"",t.targetType=(0,l.getStringOption)(e.targetType,["auto","contentArea","pageArea"]),t.trailer=e.trailer||"",t.use=e.use||"",t.usehref=e.usehref||"",t.script=null,t}return S(a,[{key:t,value:function(e){return this[n.$extra]={},l.HTMLResult.FAILURE}}]),a}(n.XFAObject,n.$toHTML),ae=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"button",!0),t.highlight=(0,l.getStringOption)(e.highlight,["inverted","none","outline","push"]),t.id=e.id||"",t.use=e.use||"",t.usehref=e.usehref||"",t.extras=null,t}return S(a,[{key:t,value:function(e){var t,r=this[n.$getParent](),a=r[n.$getParent](),i={name:"button",attributes:{id:this[n.$uid],class:["xfaButton"],style:{}},children:[]},o=b(a.event.children);try{for(o.s();!(t=o.n()).done;){var c=t.value;if("click"===c.activity&&c.script){var u=(0,f.recoverJsURL)(c.script[n.$content]);if(u){var h=(0,s.fixURL)(u.url);h&&i.children.push({name:"a",attributes:{id:"link"+this[n.$uid],href:h,newWindow:u.newWindow,class:["xfaLink"],style:{}},children:[]})}}}}catch(d){o.e(d)}finally{o.f()}return l.HTMLResult.success(i)}}]),a}(n.XFAObject,n.$toHTML),ne=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"calculate",!0),a.id=e.id||"",a.override=(0,l.getStringOption)(e.override,["disabled","error","ignore","warning"]),a.use=e.use||"",a.usehref=e.usehref||"",a.extras=null,a.message=null,a.script=null,a}return S(r)}(n.XFAObject),ie=function(e,t,r,a){v(o,e);var i=g(o);function o(e){var t;return _(this,o),t=i.call(this,y,"caption",!0),t.id=e.id||"",t.placement=(0,l.getStringOption)(e.placement,["left","bottom","inline","right","top"]),t.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),t.reserve=Math.ceil((0,l.getMeasurement)(e.reserve)),t.use=e.use||"",t.usehref=e.usehref||"",t.extras=null,t.font=null,t.margin=null,t.para=null,t.value=null,t}return S(o,[{key:t,value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){M(this,e)}))},{key:r,value:function(e){if(!this[n.$extra]){var t=e.width,r=e.height;switch(this.placement){case"left":case"right":case"inline":t=this.reserve<=0?t:this.reserve;break;case"top":case"bottom":r=this.reserve<=0?r:this.reserve;break}this[n.$extra]=(0,s.layoutNode)(this,{width:t,height:r})}return this[n.$extra]}},{key:a,value:function(e){if(!this.value)return l.HTMLResult.EMPTY;this[n.$pushPara]();var t=this.value[n.$toHTML](e).html;if(!t)return this[n.$popPara](),l.HTMLResult.EMPTY;var r=this.reserve;if(this.reserve<=0){var a=this[n.$getExtra](e),i=a.w,o=a.h;switch(this.placement){case"left":case"right":case"inline":this.reserve=i;break;case"top":case"bottom":this.reserve=o;break}}var c=[];"string"===typeof t?c.push({name:"#text",value:t}):c.push(t);var u=(0,s.toStyle)(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(u.width=(0,s.measureToString)(this.reserve));break;case"top":case"bottom":this.reserve>0&&(u.height=(0,s.measureToString)(this.reserve));break}return(0,s.setPara)(this,null,t),this[n.$popPara](),this.reserve=r,l.HTMLResult.success({name:"div",attributes:{style:u,class:["xfaCaption"]},children:c})}}]),o}(n.XFAObject,n.$setValue,n.$getExtra,n.$toHTML),oe=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"certificate"),a.id=e.id||"",a.name=e.name||"",a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.StringObject),se=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"certificates",!0),a.credentialServerPolicy=(0,l.getStringOption)(e.credentialServerPolicy,["optional","required"]),a.id=e.id||"",a.url=e.url||"",a.urlPolicy=e.urlPolicy||"",a.use=e.use||"",a.usehref=e.usehref||"",a.encryption=null,a.issuers=null,a.keyUsage=null,a.oids=null,a.signing=null,a.subjectDNs=null,a}return S(r)}(n.XFAObject),le=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"checkButton",!0),t.id=e.id||"",t.mark=(0,l.getStringOption)(e.mark,["default","check","circle","cross","diamond","square","star"]),t.shape=(0,l.getStringOption)(e.shape,["square","round"]),t.size=(0,l.getMeasurement)(e.size,"10pt"),t.use=e.use||"",t.usehref=e.usehref||"",t.border=null,t.extras=null,t.margin=null,t}return S(a,[{key:t,value:function(e){var t,r,a,i=(0,s.toStyle)("margin"),o=(0,s.measureToString)(this.size);i.width=i.height=o;var c,u=this[n.$getParent]()[n.$getParent](),h=u.items.children.length&&u.items.children[0][n.$toHTML]().html||[],d={on:(void 0!==h[0]?h[0]:"on").toString(),off:(void 0!==h[1]?h[1]:"off").toString()},f=u.value&&u.value[n.$text]()||"off",p=f===d.on||void 0,v=u[n.$getSubformParent](),g=u[n.$uid];v instanceof De?(a=v[n.$uid],t="radio",r="xfaRadio",c=v[n.$data]&&v[n.$data][n.$uid]||v[n.$uid]):(t="checkbox",r="xfaCheckbox",c=u[n.$data]&&u[n.$data][n.$uid]||u[n.$uid]);var m={name:"input",attributes:{class:[r],style:i,fieldId:g,dataId:c,type:t,checked:p,xfaOn:d.on,xfaOff:d.off,"aria-label":B(u),"aria-required":!1}};return a&&(m.attributes.name=a),D(u)&&(m.attributes["aria-required"]=!0,m.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[m]})}}]),a}(n.XFAObject,n.$toHTML),ce=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"choiceList",!0),t.commitOn=(0,l.getStringOption)(e.commitOn,["select","exit"]),t.id=e.id||"",t.open=(0,l.getStringOption)(e.open,["userControl","always","multiSelect","onEntry"]),t.textEntry=(0,l.getInteger)({data:e.textEntry,defaultValue:0,validate:function(e){return 1===e}}),t.use=e.use||"",t.usehref=e.usehref||"",t.border=null,t.extras=null,t.margin=null,t}return S(a,[{key:t,value:function(e){var t=(0,s.toStyle)(this,"border","margin"),r=this[n.$getParent](),a=r[n.$getParent](),i=a.font&&a.font.size||10,o={fontSize:"calc(".concat(i,"px * var(--scale-factor))")},c=[];if(a.items.children.length>0){var u=a.items,h=0,d=0;2===u.children.length&&(h=u.children[0].save,d=1-h);for(var f=u.children[h][n.$toHTML]().html,p=u.children[d][n.$toHTML]().html,v=!1,g=a.value&&a.value[n.$text]()||"",m=0,y=f.length;m<y;m++){var b={name:"option",attributes:{value:p[m]||f[m],style:o},value:f[m]};p[m]===g&&(b.attributes.selected=v=!0),c.push(b)}v||c.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}var k={class:["xfaSelect"],fieldId:a[n.$uid],dataId:a[n.$data]&&a[n.$data][n.$uid]||a[n.$uid],style:t,"aria-label":B(a),"aria-required":!1};return D(a)&&(k["aria-required"]=!0,k.required=!0),"multiSelect"===this.open&&(k.multiple=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:c,attributes:k}]})}}]),a}(n.XFAObject,n.$toHTML),ue=function(e,t,r){v(n,e);var a=g(n);function n(e){var t;return _(this,n),t=a.call(this,y,"color",!0),t.cSpace=(0,l.getStringOption)(e.cSpace,["SRGB"]),t.id=e.id||"",t.use=e.use||"",t.usehref=e.usehref||"",t.value=e.value?(0,l.getColor)(e.value):"",t.extras=null,t}return S(n,[{key:t,value:function(){return!1}},{key:r,value:function(){return this.value?c.Util.makeHexColor(this.value.r,this.value.g,this.value.b):null}}]),n}(n.XFAObject,n.$hasSettableValue,n.$toStyle),he=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"comb"),a.id=e.id||"",a.numberOfCells=(0,l.getInteger)({data:e.numberOfCells,defaultValue:0,validate:function(e){return e>=0}}),a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.XFAObject),de=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"connect",!0),a.connection=e.connection||"",a.id=e.id||"",a.ref=e.ref||"",a.usage=(0,l.getStringOption)(e.usage,["exportAndImport","exportOnly","importOnly"]),a.use=e.use||"",a.usehref=e.usehref||"",a.picture=null,a}return S(r)}(n.XFAObject),fe=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"contentArea",!0),t.h=(0,l.getMeasurement)(e.h),t.id=e.id||"",t.name=e.name||"",t.relevant=(0,l.getRelevant)(e.relevant),t.use=e.use||"",t.usehref=e.usehref||"",t.w=(0,l.getMeasurement)(e.w),t.x=(0,l.getMeasurement)(e.x,"0pt"),t.y=(0,l.getMeasurement)(e.y,"0pt"),t.desc=null,t.extras=null,t}return S(a,[{key:t,value:function(e){var t=(0,s.measureToString)(this.x),r=(0,s.measureToString)(this.y),a={left:t,top:r,width:(0,s.measureToString)(this.w),height:(0,s.measureToString)(this.h)},i=["xfaContentarea"];return(0,s.isPrintOnly)(this)&&i.push("xfaPrintOnly"),l.HTMLResult.success({name:"div",children:[],attributes:{style:a,class:i,id:this[n.$uid]}})}}]),a}(n.XFAObject,n.$toHTML),pe=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"corner",!0),t.id=e.id||"",t.inverted=(0,l.getInteger)({data:e.inverted,defaultValue:0,validate:function(e){return 1===e}}),t.join=(0,l.getStringOption)(e.join,["square","round"]),t.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),t.radius=(0,l.getMeasurement)(e.radius),t.stroke=(0,l.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),t.thickness=(0,l.getMeasurement)(e.thickness,"0.5pt"),t.use=e.use||"",t.usehref=e.usehref||"",t.color=null,t.extras=null,t}return S(a,[{key:t,value:function(){var e=(0,s.toStyle)(this,"visibility");return e.radius=(0,s.measureToString)("square"===this.join?0:this.radius),e}}]),a}(n.XFAObject,n.$toStyle),ve=function(e,t,r){v(i,e);var a=g(i);function i(e){var t;return _(this,i),t=a.call(this,y,"date"),t.id=e.id||"",t.name=e.name||"",t.use=e.use||"",t.usehref=e.usehref||"",t}return S(i,[{key:t,value:function(){var e=this[n.$content].trim();this[n.$content]=e?new Date(e):null}},{key:r,value:function(e){return j(this[n.$content]?this[n.$content].toString():"")}}]),i}(n.ContentObject,n.$finalize,n.$toHTML),ge=function(e,t,r){v(i,e);var a=g(i);function i(e){var t;return _(this,i),t=a.call(this,y,"dateTime"),t.id=e.id||"",t.name=e.name||"",t.use=e.use||"",t.usehref=e.usehref||"",t}return S(i,[{key:t,value:function(){var e=this[n.$content].trim();this[n.$content]=e?new Date(e):null}},{key:r,value:function(e){return j(this[n.$content]?this[n.$content].toString():"")}}]),i}(n.ContentObject,n.$finalize,n.$toHTML),me=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"dateTimeEdit",!0),t.hScrollPolicy=(0,l.getStringOption)(e.hScrollPolicy,["auto","off","on"]),t.id=e.id||"",t.picker=(0,l.getStringOption)(e.picker,["host","none"]),t.use=e.use||"",t.usehref=e.usehref||"",t.border=null,t.comb=null,t.extras=null,t.margin=null,t}return S(a,[{key:t,value:function(e){var t=(0,s.toStyle)(this,"border","font","margin"),r=this[n.$getParent]()[n.$getParent](),a={name:"input",attributes:{type:"text",fieldId:r[n.$uid],dataId:r[n.$data]&&r[n.$data][n.$uid]||r[n.$uid],class:["xfaTextfield"],style:t,"aria-label":B(r),"aria-required":!1}};return D(r)&&(a.attributes["aria-required"]=!0,a.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[a]})}}]),a}(n.XFAObject,n.$toHTML),ye=function(e,t,r){v(i,e);var a=g(i);function i(e){var t;return _(this,i),t=a.call(this,y,"decimal"),t.fracDigits=(0,l.getInteger)({data:e.fracDigits,defaultValue:2,validate:function(e){return!0}}),t.id=e.id||"",t.leadDigits=(0,l.getInteger)({data:e.leadDigits,defaultValue:-1,validate:function(e){return!0}}),t.name=e.name||"",t.use=e.use||"",t.usehref=e.usehref||"",t}return S(i,[{key:t,value:function(){var e=parseFloat(this[n.$content].trim());this[n.$content]=isNaN(e)?null:e}},{key:r,value:function(e){return j(null!==this[n.$content]?this[n.$content].toString():"")}}]),i}(n.ContentObject,n.$finalize,n.$toHTML),be=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"defaultUi",!0),a.id=e.id||"",a.use=e.use||"",a.usehref=e.usehref||"",a.extras=null,a}return S(r)}(n.XFAObject),ke=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"desc",!0),a.id=e.id||"",a.use=e.use||"",a.usehref=e.usehref||"",a["boolean"]=new n.XFAObjectArray,a.date=new n.XFAObjectArray,a.dateTime=new n.XFAObjectArray,a.decimal=new n.XFAObjectArray,a.exData=new n.XFAObjectArray,a["float"]=new n.XFAObjectArray,a.image=new n.XFAObjectArray,a.integer=new n.XFAObjectArray,a.text=new n.XFAObjectArray,a.time=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),we=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]),a.id=e.id||"",a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.OptionObject),_e=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"digestMethods",!0),a.id=e.id||"",a.type=(0,l.getStringOption)(e.type,["optional","required"]),a.use=e.use||"",a.usehref=e.usehref||"",a.digestMethod=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),Se=function(e,t,r){v(i,e);var a=g(i);function i(e){var t;return _(this,i),t=a.call(this,y,"draw",!0),t.anchorType=(0,l.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),t.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),t.h=e.h?(0,l.getMeasurement)(e.h):"",t.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),t.id=e.id||"",t.locale=e.locale||"",t.maxH=(0,l.getMeasurement)(e.maxH,"0pt"),t.maxW=(0,l.getMeasurement)(e.maxW,"0pt"),t.minH=(0,l.getMeasurement)(e.minH,"0pt"),t.minW=(0,l.getMeasurement)(e.minW,"0pt"),t.name=e.name||"",t.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),t.relevant=(0,l.getRelevant)(e.relevant),t.rotate=(0,l.getInteger)({data:e.rotate,defaultValue:0,validate:function(e){return e%90===0}}),t.use=e.use||"",t.usehref=e.usehref||"",t.w=e.w?(0,l.getMeasurement)(e.w):"",t.x=(0,l.getMeasurement)(e.x,"0pt"),t.y=(0,l.getMeasurement)(e.y,"0pt"),t.assist=null,t.border=null,t.caption=null,t.desc=null,t.extras=null,t.font=null,t.keep=null,t.margin=null,t.para=null,t.traversal=null,t.ui=null,t.value=null,t.setProperty=new n.XFAObjectArray,t}return S(i,[{key:t,value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){M(this,e)}))},{key:r,value:function(e){if(N(this),"hidden"===this.presence||"inactive"===this.presence)return l.HTMLResult.EMPTY;(0,s.fixDimensions)(this),this[n.$pushPara]();var t=this.w,r=this.h,a=(0,s.layoutNode)(this,e),i=a.w,c=a.h,u=a.isBroken;if(i&&""===this.w){if(u&&this[n.$getSubformParent]()[n.$isThereMoreWidth]())return this[n.$popPara](),l.HTMLResult.FAILURE;this.w=i}if(c&&""===this.h&&(this.h=c),U(this),!(0,o.checkDimensions)(this,e))return this.w=t,this.h=r,this[n.$popPara](),l.HTMLResult.FAILURE;q(this);var h=(0,s.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,s.setMinMaxDimensions)(this,h),h.margin&&(h.padding=h.margin,delete h.margin);var d=["xfaDraw"];this.font&&d.push("xfaFont"),(0,s.isPrintOnly)(this)&&d.push("xfaPrintOnly");var f={style:h,id:this[n.$uid],class:d};this.name&&(f.xfaName=this.name);var p={name:"div",attributes:f,children:[]};L(this,f);var v=(0,s.computeBbox)(this,p,e),g=this.value?this.value[n.$toHTML](e).html:null;return null===g?(this.w=t,this.h=r,this[n.$popPara](),l.HTMLResult.success((0,s.createWrapper)(this,p),v)):(p.children.push(g),(0,s.setPara)(this,h,g),this.w=t,this.h=r,this[n.$popPara](),l.HTMLResult.success((0,s.createWrapper)(this,p),v))}}]),i}(n.XFAObject,n.$setValue,n.$toHTML),xe=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"edge",!0),t.cap=(0,l.getStringOption)(e.cap,["square","butt","round"]),t.id=e.id||"",t.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),t.stroke=(0,l.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),t.thickness=(0,l.getMeasurement)(e.thickness,"0.5pt"),t.use=e.use||"",t.usehref=e.usehref||"",t.color=null,t.extras=null,t}return S(a,[{key:t,value:function(){var e=(0,s.toStyle)(this,"visibility");if(Object.assign(e,{linecap:this.cap,width:(0,s.measureToString)(this.thickness),color:this.color?this.color[n.$toStyle]():"#000000",style:""}),"visible"!==this.presence)e.style="none";else switch(this.stroke){case"solid":e.style="solid";break;case"dashDot":e.style="dashed";break;case"dashDotDot":e.style="dashed";break;case"dashed":e.style="dashed";break;case"dotted":e.style="dotted";break;case"embossed":e.style="ridge";break;case"etched":e.style="groove";break;case"lowered":e.style="inset";break;case"raised":e.style="outset";break}return e}}]),a}(n.XFAObject,n.$toStyle),Ae=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]),a.id=e.id||"",a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.OptionObject),Ce=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"encodings",!0),a.id=e.id||"",a.type=(0,l.getStringOption)(e.type,["optional","required"]),a.use=e.use||"",a.usehref=e.usehref||"",a.encoding=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),Fe=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"encrypt",!0),a.id=e.id||"",a.use=e.use||"",a.usehref=e.usehref||"",a.certificate=null,a}return S(r)}(n.XFAObject),Pe=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"encryptData",!0),a.id=e.id||"",a.operation=(0,l.getStringOption)(e.operation,["encrypt","decrypt"]),a.target=e.target||"",a.use=e.use||"",a.usehref=e.usehref||"",a.filter=null,a.manifest=null,a}return S(r)}(n.XFAObject),Te=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"encryption",!0),a.id=e.id||"",a.type=(0,l.getStringOption)(e.type,["optional","required"]),a.use=e.use||"",a.usehref=e.usehref||"",a.certificate=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),Oe=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]),a.id=e.id||"",a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.OptionObject),Ie=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"encryptionMethods",!0),a.id=e.id||"",a.type=(0,l.getStringOption)(e.type,["optional","required"]),a.use=e.use||"",a.usehref=e.usehref||"",a.encryptionMethod=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),Ee=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"event",!0),a.activity=(0,l.getStringOption)(e.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"]),a.id=e.id||"",a.listen=(0,l.getStringOption)(e.listen,["refOnly","refAndDescendents"]),a.name=e.name||"",a.ref=e.ref||"",a.use=e.use||"",a.usehref=e.usehref||"",a.extras=null,a.encryptData=null,a.execute=null,a.script=null,a.signData=null,a.submit=null,a}return S(r)}(n.XFAObject),Me=function(e,t,r,a){v(s,e);var o=g(s);function s(e){var t;return _(this,s),t=o.call(this,y,"exData"),t.contentType=e.contentType||"",t.href=e.href||"",t.id=e.id||"",t.maxLength=(0,l.getInteger)({data:e.maxLength,defaultValue:-1,validate:function(e){return e>=-1}}),t.name=e.name||"",t.rid=e.rid||"",t.transferEncoding=(0,l.getStringOption)(e.transferEncoding,["none","base64","package"]),t.use=e.use||"",t.usehref=e.usehref||"",t}return S(s,[{key:t,value:function(){return"text/html"===this.contentType}},{key:r,value:function(e){return("text/html"===this.contentType&&e[n.$namespaceId]===i.NamespaceIds.xhtml.id||"text/xml"===this.contentType)&&(this[n.$content]=e,!0)}},{key:a,value:function(e){return"text/html"===this.contentType&&this[n.$content]?this[n.$content][n.$toHTML](e):l.HTMLResult.EMPTY}}]),s}(n.ContentObject,n.$isCDATAXml,n.$onChild,n.$toHTML),Re=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"exObject",!0),a.archive=e.archive||"",a.classId=e.classId||"",a.codeBase=e.codeBase||"",a.codeType=e.codeType||"",a.id=e.id||"",a.name=e.name||"",a.use=e.use||"",a.usehref=e.usehref||"",a.extras=null,a["boolean"]=new n.XFAObjectArray,a.date=new n.XFAObjectArray,a.dateTime=new n.XFAObjectArray,a.decimal=new n.XFAObjectArray,a.exData=new n.XFAObjectArray,a.exObject=new n.XFAObjectArray,a["float"]=new n.XFAObjectArray,a.image=new n.XFAObjectArray,a.integer=new n.XFAObjectArray,a.text=new n.XFAObjectArray,a.time=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),De=function(e,t,r,a,i,c,u,h,d,f){v(m,e);var p=g(m);function m(e){var t;return _(this,m),t=p.call(this,y,"exclGroup",!0),t.access=(0,l.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),t.accessKey=e.accessKey||"",t.anchorType=(0,l.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),t.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),t.h=e.h?(0,l.getMeasurement)(e.h):"",t.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),t.id=e.id||"",t.layout=(0,l.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),t.maxH=(0,l.getMeasurement)(e.maxH,"0pt"),t.maxW=(0,l.getMeasurement)(e.maxW,"0pt"),t.minH=(0,l.getMeasurement)(e.minH,"0pt"),t.minW=(0,l.getMeasurement)(e.minW,"0pt"),t.name=e.name||"",t.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),t.relevant=(0,l.getRelevant)(e.relevant),t.use=e.use||"",t.usehref=e.usehref||"",t.w=e.w?(0,l.getMeasurement)(e.w):"",t.x=(0,l.getMeasurement)(e.x,"0pt"),t.y=(0,l.getMeasurement)(e.y,"0pt"),t.assist=null,t.bind=null,t.border=null,t.calculate=null,t.caption=null,t.desc=null,t.extras=null,t.margin=null,t.para=null,t.traversal=null,t.validate=null,t.connect=new n.XFAObjectArray,t.event=new n.XFAObjectArray,t.field=new n.XFAObjectArray,t.setProperty=new n.XFAObjectArray,t}return S(m,[{key:t,value:function(){return!0}},{key:r,value:function(){return!0}},{key:a,value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){var t,r=b(this.field.children);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(!a.value){var i=new Wt({});a[n.$appendChild](i),a.value=i}a.value[n.$setValue](e)}}catch(o){r.e(o)}finally{r.f()}}))},{key:i,value:function(){return this.layout.endsWith("-tb")&&0===this[n.$extra].attempt&&this[n.$extra].numberInLine>0||this[n.$getParent]()[n.$isThereMoreWidth]()}},{key:c,value:function(){var e=this[n.$getSubformParent]();return!!e[n.$isSplittable]()&&(void 0!==this[n.$extra]._isSplittable?this[n.$extra]._isSplittable:"position"===this.layout||this.layout.includes("row")?(this[n.$extra]._isSplittable=!1,!1):(!e.layout||!e.layout.endsWith("-tb")||0===e[n.$extra].numberInLine)&&(this[n.$extra]._isSplittable=!0,!0))}},{key:u,value:function(){return(0,o.flushHTML)(this)}},{key:h,value:function(e,t){(0,o.addHTML)(this,e,t)}},{key:d,value:function(){return(0,o.getAvailableSpace)(this)}},{key:f,value:function(e){if(N(this),"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return l.HTMLResult.EMPTY;(0,s.fixDimensions)(this);var t=[],r={id:this[n.$uid],class:[]};(0,s.setAccess)(this,r["class"]),this[n.$extra]||(this[n.$extra]=Object.create(null)),Object.assign(this[n.$extra],{children:t,attributes:r,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});var a=this[n.$isSplittable]();if(a||U(this),!(0,o.checkDimensions)(this,e))return l.HTMLResult.FAILURE;var i=new Set(["field"]);if(this.layout.includes("row")){var c=this[n.$getSubformParent]().columnWidths;Array.isArray(c)&&c.length>0&&(this[n.$extra].columnWidths=c,this[n.$extra].currentColumn=0)}var u=(0,s.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),h=["xfaExclgroup"],d=(0,s.layoutClass)(this);d&&h.push(d),(0,s.isPrintOnly)(this)&&h.push("xfaPrintOnly"),r.style=u,r["class"]=h,this.name&&(r.xfaName=this.name),this[n.$pushPara]();for(var f="lr-tb"===this.layout||"rl-tb"===this.layout,p=f?A:1;this[n.$extra].attempt<p;this[n.$extra].attempt++){f&&this[n.$extra].attempt===A-1&&(this[n.$extra].numberInLine=0);var v=this[n.$childrenToHTML]({filter:i,include:!0});if(v.success)break;if(v.isBreak())return this[n.$popPara](),v;if(f&&0===this[n.$extra].attempt&&0===this[n.$extra].numberInLine&&!this[n.$getTemplateRoot]()[n.$extra].noLayoutFailure){this[n.$extra].attempt=p;break}}if(this[n.$popPara](),a||q(this),this[n.$extra].attempt===p)return a||delete this[n.$extra],l.HTMLResult.FAILURE;var g=0,m=0;this.margin&&(g=this.margin.leftInset+this.margin.rightInset,m=this.margin.topInset+this.margin.bottomInset);var y=Math.max(this[n.$extra].width+g,this.w||0),b=Math.max(this[n.$extra].height+m,this.h||0),k=[this.x,this.y,y,b];""===this.w&&(u.width=(0,s.measureToString)(y)),""===this.h&&(u.height=(0,s.measureToString)(b));var w={name:"div",attributes:r,children:t};return L(this,r),delete this[n.$extra],l.HTMLResult.success((0,s.createWrapper)(this,w),k)}}]),m}(n.XFAObject,n.$isBindable,n.$hasSettableValue,n.$setValue,n.$isThereMoreWidth,n.$isSplittable,n.$flushHTML,n.$addHTML,n.$getAvailableSpace,n.$toHTML),Ne=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"execute"),a.connection=e.connection||"",a.executeType=(0,l.getStringOption)(e.executeType,["import","remerge"]),a.id=e.id||"",a.runAt=(0,l.getStringOption)(e.runAt,["client","both","server"]),a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.XFAObject),Le=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"extras",!0),a.id=e.id||"",a.name=e.name||"",a.use=e.use||"",a.usehref=e.usehref||"",a["boolean"]=new n.XFAObjectArray,a.date=new n.XFAObjectArray,a.dateTime=new n.XFAObjectArray,a.decimal=new n.XFAObjectArray,a.exData=new n.XFAObjectArray,a.extras=new n.XFAObjectArray,a["float"]=new n.XFAObjectArray,a.image=new n.XFAObjectArray,a.integer=new n.XFAObjectArray,a.text=new n.XFAObjectArray,a.time=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),Be=function(e,t,r,a){v(c,e);var i=g(c);function c(e){var t;return _(this,c),t=i.call(this,y,"field",!0),t.access=(0,l.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),t.accessKey=e.accessKey||"",t.anchorType=(0,l.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),t.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),t.h=e.h?(0,l.getMeasurement)(e.h):"",t.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),t.id=e.id||"",t.locale=e.locale||"",t.maxH=(0,l.getMeasurement)(e.maxH,"0pt"),t.maxW=(0,l.getMeasurement)(e.maxW,"0pt"),t.minH=(0,l.getMeasurement)(e.minH,"0pt"),t.minW=(0,l.getMeasurement)(e.minW,"0pt"),t.name=e.name||"",t.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),t.relevant=(0,l.getRelevant)(e.relevant),t.rotate=(0,l.getInteger)({data:e.rotate,defaultValue:0,validate:function(e){return e%90===0}}),t.use=e.use||"",t.usehref=e.usehref||"",t.w=e.w?(0,l.getMeasurement)(e.w):"",t.x=(0,l.getMeasurement)(e.x,"0pt"),t.y=(0,l.getMeasurement)(e.y,"0pt"),t.assist=null,t.bind=null,t.border=null,t.calculate=null,t.caption=null,t.desc=null,t.extras=null,t.font=null,t.format=null,t.items=new n.XFAObjectArray(2),t.keep=null,t.margin=null,t.para=null,t.traversal=null,t.ui=null,t.validate=null,t.value=null,t.bindItems=new n.XFAObjectArray,t.connect=new n.XFAObjectArray,t.event=new n.XFAObjectArray,t.setProperty=new n.XFAObjectArray,t}return S(c,[{key:t,value:function(){return!0}},{key:r,value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){M(this,e)}))},{key:a,value:function(e){if(N(this),!this.ui){var t;switch(this.ui=new $t({}),this.ui[n.$globalData]=this[n.$globalData],this[n.$appendChild](this.ui),this.items.children.length){case 0:t=new jt({}),this.ui.textEdit=t;break;case 1:t=new le({}),this.ui.checkButton=t;break;case 2:t=new ce({}),this.ui.choiceList=t;break}this.ui[n.$appendChild](t)}if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return l.HTMLResult.EMPTY;this.caption&&delete this.caption[n.$extra],this[n.$pushPara]();var r=this.caption?this.caption[n.$toHTML](e).html:null,a=this.w,i=this.h,c=0,u=0;this.margin&&(c=this.margin.leftInset+this.margin.rightInset,u=this.margin.topInset+this.margin.bottomInset);var h=null;if(""===this.w||""===this.h){var f=null,p=null,v=0,g=0;if(this.ui.checkButton)v=g=this.ui.checkButton.size;else{var m=(0,s.layoutNode)(this,e),y=m.w,b=m.h;null!==y?(v=y,g=b):g=(0,d.getMetrics)(this.font,!0).lineNoGap}if(h=I(this.ui[n.$getExtra]()),v+=h.w,g+=h.h,this.caption){var w=this.caption[n.$getExtra](e),_=w.w,S=w.h,x=w.isBroken;if(x&&this[n.$getSubformParent]()[n.$isThereMoreWidth]())return this[n.$popPara](),l.HTMLResult.FAILURE;switch(f=_,p=S,this.caption.placement){case"left":case"right":case"inline":f+=v;break;case"top":case"bottom":p+=g;break}}else f=v,p=g;f&&""===this.w&&(f+=c,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<f?f:this.minW)),p&&""===this.h&&(p+=u,this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<p?p:this.minH))}if(this[n.$popPara](),(0,s.fixDimensions)(this),U(this),!(0,o.checkDimensions)(this,e))return this.w=a,this.h=i,this[n.$popPara](),l.HTMLResult.FAILURE;q(this);var A=(0,s.toStyle)(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");(0,s.setMinMaxDimensions)(this,A);var C=["xfaField"];this.font&&C.push("xfaFont"),(0,s.isPrintOnly)(this)&&C.push("xfaPrintOnly");var F={style:A,id:this[n.$uid],class:C};A.margin&&(A.padding=A.margin,delete A.margin),(0,s.setAccess)(this,C),this.name&&(F.xfaName=this.name);var P=[],T={name:"div",attributes:F,children:P};L(this,F);var O=this.border?this.border[n.$toStyle]():null,E=(0,s.computeBbox)(this,T,e),M=this.ui[n.$toHTML]().html;if(!M)return Object.assign(A,O),l.HTMLResult.success((0,s.createWrapper)(this,T),E);this[n.$tabIndex]&&(M.children&&M.children[0]?M.children[0].attributes.tabindex=this[n.$tabIndex]:M.attributes.tabindex=this[n.$tabIndex]),M.attributes.style||(M.attributes.style=Object.create(null));var R=null;if(this.ui.button){if(1===M.children.length){var D=M.children.splice(0,1),B=k(D,1);R=B[0]}Object.assign(M.attributes.style,O)}else Object.assign(A,O);if(P.push(M),this.value)if(this.ui.imageEdit)M.children.push(this.value[n.$toHTML]().html);else if(!this.ui.button){var j="";if(this.value.exData)j=this.value.exData[n.$text]();else if(this.value.text)j=this.value.text[n.$getExtra]();else{var G=this.value[n.$toHTML]().html;null!==G&&(j=G.children[0].value)}this.ui.textEdit&&this.value.text&&this.value.text.maxChars&&(M.children[0].attributes.maxLength=this.value.text.maxChars),j&&(this.ui.numericEdit&&(j=parseFloat(j),j=isNaN(j)?"":j.toString()),"textarea"===M.children[0].name?M.children[0].attributes.textContent=j:M.children[0].attributes.value=j)}if(!this.ui.imageEdit&&M.children&&M.children[0]&&this.h){h=h||I(this.ui[n.$getExtra]());var H=0;if(this.caption&&["top","bottom"].includes(this.caption.placement)){H=this.caption.reserve,H<=0&&(H=this.caption[n.$getExtra](e).h);var X=this.h-H-u-h.h;M.children[0].attributes.style.height=(0,s.measureToString)(X)}else M.children[0].attributes.style.height="100%"}if(R&&M.children.push(R),!r)return M.attributes["class"]&&M.attributes["class"].push("xfaLeft"),this.w=a,this.h=i,l.HTMLResult.success((0,s.createWrapper)(this,T),E);if(this.ui.button)return A.padding&&delete A.padding,"div"===r.name&&(r.name="span"),M.children.push(r),l.HTMLResult.success(T,E);switch(this.ui.checkButton&&(r.attributes["class"][0]="xfaCaptionForCheckButton"),M.attributes["class"]||(M.attributes["class"]=[]),M.children.splice(0,0,r),this.caption.placement){case"left":M.attributes["class"].push("xfaLeft");break;case"right":M.attributes["class"].push("xfaRight");break;case"top":M.attributes["class"].push("xfaTop");break;case"bottom":M.attributes["class"].push("xfaBottom");break;case"inline":M.attributes["class"].push("xfaLeft");break}return this.w=a,this.h=i,l.HTMLResult.success((0,s.createWrapper)(this,T),E)}}]),c}(n.XFAObject,n.$isBindable,n.$setValue,n.$toHTML);t.Field=Be;var je=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"fill",!0),t.id=e.id||"",t.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),t.use=e.use||"",t.usehref=e.usehref||"",t.color=null,t.extras=null,t.linear=null,t.pattern=null,t.radial=null,t.solid=null,t.stipple=null,t}return S(a,[{key:t,value:function(){var e=this[n.$getParent](),t=e[n.$getParent](),r=t[n.$getParent](),a=Object.create(null),i="color",o=i;e instanceof Q&&(i="background-color",o="background",r instanceof $t&&(a.backgroundColor="white")),(e instanceof _t||e instanceof $)&&(i=o="fill",a.fill="white");var s,l=b(Object.getOwnPropertyNames(this));try{for(l.s();!(s=l.n()).done;){var c=s.value;if("extras"!==c&&"color"!==c){var u=this[c];if(u instanceof n.XFAObject){var h=u[n.$toStyle](this.color);return h&&(a[h.startsWith("#")?i:o]=h),a}}}}catch(f){l.e(f)}finally{l.f()}if(this.color&&this.color.value){var d=this.color[n.$toStyle]();a[d.startsWith("#")?i:o]=d}return a}}]),a}(n.XFAObject,n.$toStyle),Ue=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"filter",!0),a.addRevocationInfo=(0,l.getStringOption)(e.addRevocationInfo,["","required","optional","none"]),a.id=e.id||"",a.name=e.name||"",a.use=e.use||"",a.usehref=e.usehref||"",a.version=(0,l.getInteger)({data:a.version,defaultValue:5,validate:function(e){return e>=1&&e<=5}}),a.appearanceFilter=null,a.certificates=null,a.digestMethods=null,a.encodings=null,a.encryptionMethods=null,a.handler=null,a.lockDocument=null,a.mdp=null,a.reasons=null,a.timeStamp=null,a}return S(r)}(n.XFAObject),qe=function(e,t,r){v(i,e);var a=g(i);function i(e){var t;return _(this,i),t=a.call(this,y,"float"),t.id=e.id||"",t.name=e.name||"",t.use=e.use||"",t.usehref=e.usehref||"",t}return S(i,[{key:t,value:function(){var e=parseFloat(this[n.$content].trim());this[n.$content]=isNaN(e)?null:e}},{key:r,value:function(e){return j(null!==this[n.$content]?this[n.$content].toString():"")}}]),i}(n.ContentObject,n.$finalize,n.$toHTML),Ge=function(e,t,r){v(i,e);var a=g(i);function i(e){var t;return _(this,i),t=a.call(this,y,"font",!0),t.baselineShift=(0,l.getMeasurement)(e.baselineShift),t.fontHorizontalScale=(0,l.getFloat)({data:e.fontHorizontalScale,defaultValue:100,validate:function(e){return e>=0}}),t.fontVerticalScale=(0,l.getFloat)({data:e.fontVerticalScale,defaultValue:100,validate:function(e){return e>=0}}),t.id=e.id||"",t.kerningMode=(0,l.getStringOption)(e.kerningMode,["none","pair"]),t.letterSpacing=(0,l.getMeasurement)(e.letterSpacing,"0"),t.lineThrough=(0,l.getInteger)({data:e.lineThrough,defaultValue:0,validate:function(e){return 1===e||2===e}}),t.lineThroughPeriod=(0,l.getStringOption)(e.lineThroughPeriod,["all","word"]),t.overline=(0,l.getInteger)({data:e.overline,defaultValue:0,validate:function(e){return 1===e||2===e}}),t.overlinePeriod=(0,l.getStringOption)(e.overlinePeriod,["all","word"]),t.posture=(0,l.getStringOption)(e.posture,["normal","italic"]),t.size=(0,l.getMeasurement)(e.size,"10pt"),t.typeface=e.typeface||"Courier",t.underline=(0,l.getInteger)({data:e.underline,defaultValue:0,validate:function(e){return 1===e||2===e}}),t.underlinePeriod=(0,l.getStringOption)(e.underlinePeriod,["all","word"]),t.use=e.use||"",t.usehref=e.usehref||"",t.weight=(0,l.getStringOption)(e.weight,["normal","bold"]),t.extras=null,t.fill=null,t}return S(i,[{key:t,value:function(e){u(h(i.prototype),n.$clean,this).call(this,e),this[n.$globalData].usedTypefaces.add(this.typeface)}},{key:r,value:function(){var e=(0,s.toStyle)(this,"fill"),t=e.color;return t&&("#000000"===t?delete e.color:t.startsWith("#")||(e.background=t,e.backgroundClip="text",e.color="transparent")),this.baselineShift&&(e.verticalAlign=(0,s.measureToString)(this.baselineShift)),e.fontKerning="none"===this.kerningMode?"none":"normal",e.letterSpacing=(0,s.measureToString)(this.letterSpacing),0!==this.lineThrough&&(e.textDecoration="line-through",2===this.lineThrough&&(e.textDecorationStyle="double")),0!==this.overline&&(e.textDecoration="overline",2===this.overline&&(e.textDecorationStyle="double")),e.fontStyle=this.posture,e.fontSize=(0,s.measureToString)(.99*this.size),(0,s.setFontFamily)(this,this,this[n.$globalData].fontFinder,e),0!==this.underline&&(e.textDecoration="underline",2===this.underline&&(e.textDecorationStyle="double")),e.fontWeight=this.weight,e}}]),i}(n.XFAObject,n.$clean,n.$toStyle),He=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"format",!0),a.id=e.id||"",a.use=e.use||"",a.usehref=e.usehref||"",a.extras=null,a.picture=null,a}return S(r)}(n.XFAObject),Xe=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"handler"),a.id=e.id||"",a.type=(0,l.getStringOption)(e.type,["optional","required"]),a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.StringObject),$e=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"hyphenation"),a.excludeAllCaps=(0,l.getInteger)({data:e.excludeAllCaps,defaultValue:0,validate:function(e){return 1===e}}),a.excludeInitialCap=(0,l.getInteger)({data:e.excludeInitialCap,defaultValue:0,validate:function(e){return 1===e}}),a.hyphenate=(0,l.getInteger)({data:e.hyphenate,defaultValue:0,validate:function(e){return 1===e}}),a.id=e.id||"",a.pushCharacterCount=(0,l.getInteger)({data:e.pushCharacterCount,defaultValue:3,validate:function(e){return e>=0}}),a.remainCharacterCount=(0,l.getInteger)({data:e.remainCharacterCount,defaultValue:3,validate:function(e){return e>=0}}),a.use=e.use||"",a.usehref=e.usehref||"",a.wordCharacterCount=(0,l.getInteger)({data:e.wordCharacterCount,defaultValue:7,validate:function(e){return e>=0}}),a}return S(r)}(n.XFAObject),ze=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"image"),t.aspect=(0,l.getStringOption)(e.aspect,["fit","actual","height","none","width"]),t.contentType=e.contentType||"",t.href=e.href||"",t.id=e.id||"",t.name=e.name||"",t.transferEncoding=(0,l.getStringOption)(e.transferEncoding,["base64","none","package"]),t.use=e.use||"",t.usehref=e.usehref||"",t}return S(a,[{key:t,value:function(){if(this.contentType&&!T.has(this.contentType.toLowerCase()))return l.HTMLResult.EMPTY;var e=this[n.$globalData].images&&this[n.$globalData].images.get(this.href);if(!e&&(this.href||!this[n.$content]))return l.HTMLResult.EMPTY;if(e||"base64"!==this.transferEncoding||(e=(0,c.stringToBytes)(atob(this[n.$content]))),!e)return l.HTMLResult.EMPTY;if(!this.contentType){for(var t=0,r=O;t<r.length;t++){var a=k(r[t],2),i=a[0],o=a[1];if(e.length>i.length&&i.every((function(t,r){return t===e[r]}))){this.contentType=o;break}}if(!this.contentType)return l.HTMLResult.EMPTY}var s,u=new Blob([e],{type:this.contentType});switch(this.aspect){case"fit":case"actual":break;case"height":s={height:"100%",objectFit:"fill"};break;case"none":s={width:"100%",height:"100%",objectFit:"fill"};break;case"width":s={width:"100%",objectFit:"fill"};break}var h=this[n.$getParent]();return l.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:s,src:URL.createObjectURL(u),alt:h?B(h[n.$getParent]()):null}})}}]),a}(n.StringObject,n.$toHTML),We=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"imageEdit",!0),t.data=(0,l.getStringOption)(e.data,["link","embed"]),t.id=e.id||"",t.use=e.use||"",t.usehref=e.usehref||"",t.border=null,t.extras=null,t.margin=null,t}return S(a,[{key:t,value:function(e){return"embed"===this.data?l.HTMLResult.success({name:"div",children:[],attributes:{}}):l.HTMLResult.EMPTY}}]),a}(n.XFAObject,n.$toHTML),Ve=function(e,t,r){v(i,e);var a=g(i);function i(e){var t;return _(this,i),t=a.call(this,y,"integer"),t.id=e.id||"",t.name=e.name||"",t.use=e.use||"",t.usehref=e.usehref||"",t}return S(i,[{key:t,value:function(){var e=parseInt(this[n.$content].trim(),10);this[n.$content]=isNaN(e)?null:e}},{key:r,value:function(e){return j(null!==this[n.$content]?this[n.$content].toString():"")}}]),i}(n.ContentObject,n.$finalize,n.$toHTML),Ye=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"issuers",!0),a.id=e.id||"",a.type=(0,l.getStringOption)(e.type,["optional","required"]),a.use=e.use||"",a.usehref=e.usehref||"",a.certificate=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),Ke=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"items",!0),t.id=e.id||"",t.name=e.name||"",t.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),t.ref=e.ref||"",t.save=(0,l.getInteger)({data:e.save,defaultValue:0,validate:function(e){return 1===e}}),t.use=e.use||"",t.usehref=e.usehref||"",t["boolean"]=new n.XFAObjectArray,t.date=new n.XFAObjectArray,t.dateTime=new n.XFAObjectArray,t.decimal=new n.XFAObjectArray,t.exData=new n.XFAObjectArray,t["float"]=new n.XFAObjectArray,t.image=new n.XFAObjectArray,t.integer=new n.XFAObjectArray,t.text=new n.XFAObjectArray,t.time=new n.XFAObjectArray,t}return S(a,[{key:t,value:function(){var e,t=[],r=b(this[n.$getChildren]());try{for(r.s();!(e=r.n()).done;){var a=e.value;t.push(a[n.$text]())}}catch(i){r.e(i)}finally{r.f()}return l.HTMLResult.success(t)}}]),a}(n.XFAObject,n.$toHTML);t.Items=Ke;var Je=function(e){v(r,e);var t=g(r);function r(e){var a;_(this,r),a=t.call(this,y,"keep",!0),a.id=e.id||"";var n=["none","contentArea","pageArea"];return a.intact=(0,l.getStringOption)(e.intact,n),a.next=(0,l.getStringOption)(e.next,n),a.previous=(0,l.getStringOption)(e.previous,n),a.use=e.use||"",a.usehref=e.usehref||"",a.extras=null,a}return S(r)}(n.XFAObject),Ze=function(e){v(r,e);var t=g(r);function r(e){var a;_(this,r),a=t.call(this,y,"keyUsage");var n=["","yes","no"];return a.crlSign=(0,l.getStringOption)(e.crlSign,n),a.dataEncipherment=(0,l.getStringOption)(e.dataEncipherment,n),a.decipherOnly=(0,l.getStringOption)(e.decipherOnly,n),a.digitalSignature=(0,l.getStringOption)(e.digitalSignature,n),a.encipherOnly=(0,l.getStringOption)(e.encipherOnly,n),a.id=e.id||"",a.keyAgreement=(0,l.getStringOption)(e.keyAgreement,n),a.keyCertSign=(0,l.getStringOption)(e.keyCertSign,n),a.keyEncipherment=(0,l.getStringOption)(e.keyEncipherment,n),a.nonRepudiation=(0,l.getStringOption)(e.nonRepudiation,n),a.type=(0,l.getStringOption)(e.type,["optional","required"]),a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.XFAObject),Qe=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"line",!0),t.hand=(0,l.getStringOption)(e.hand,["even","left","right"]),t.id=e.id||"",t.slope=(0,l.getStringOption)(e.slope,["\\","/"]),t.use=e.use||"",t.usehref=e.usehref||"",t.edge=null,t}return S(a,[{key:t,value:function(){var e,t,r,a,i=this[n.$getParent]()[n.$getParent](),o=this.edge||new xe({}),c=o[n.$toStyle](),u=Object.create(null),h="visible"===o.presence?o.thickness:0;u.strokeWidth=(0,s.measureToString)(h),u.stroke=c.color;var d="100%",f="100%";i.w<=h?(e="50%",t=0,r="50%",a="100%",d=u.strokeWidth):i.h<=h?(e=0,t="50%",r="100%",a="50%",f=u.strokeWidth):"\\"===this.slope?(e=0,t=0,r="100%",a="100%"):(e=0,t="100%",r="100%",a=0);var p={name:"line",attributes:{xmlns:w,x1:e,y1:t,x2:r,y2:a,style:u}},v={name:"svg",children:[p],attributes:{xmlns:w,width:d,height:f,style:{overflow:"visible"}}};return E(i)?l.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[v]}):(v.attributes.style.position="absolute",l.HTMLResult.success(v))}}]),a}(n.XFAObject,n.$toHTML),et=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"linear",!0),t.id=e.id||"",t.type=(0,l.getStringOption)(e.type,["toRight","toBottom","toLeft","toTop"]),t.use=e.use||"",t.usehref=e.usehref||"",t.color=null,t.extras=null,t}return S(a,[{key:t,value:function(e){e=e?e[n.$toStyle]():"#FFFFFF";var t=this.type.replace(/([RBLT])/," $1").toLowerCase(),r=this.color?this.color[n.$toStyle]():"#000000";return"linear-gradient(".concat(t,", ").concat(e,", ").concat(r,")")}}]),a}(n.XFAObject,n.$toStyle),tt=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"lockDocument"),t.id=e.id||"",t.type=(0,l.getStringOption)(e.type,["optional","required"]),t.use=e.use||"",t.usehref=e.usehref||"",t}return S(a,[{key:t,value:function(){this[n.$content]=(0,l.getStringOption)(this[n.$content],["auto","0","1"])}}]),a}(n.ContentObject,n.$finalize),rt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"manifest",!0),a.action=(0,l.getStringOption)(e.action,["include","all","exclude"]),a.id=e.id||"",a.name=e.name||"",a.use=e.use||"",a.usehref=e.usehref||"",a.extras=null,a.ref=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),at=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"margin",!0),t.bottomInset=(0,l.getMeasurement)(e.bottomInset,"0"),t.id=e.id||"",t.leftInset=(0,l.getMeasurement)(e.leftInset,"0"),t.rightInset=(0,l.getMeasurement)(e.rightInset,"0"),t.topInset=(0,l.getMeasurement)(e.topInset,"0"),t.use=e.use||"",t.usehref=e.usehref||"",t.extras=null,t}return S(a,[{key:t,value:function(){return{margin:(0,s.measureToString)(this.topInset)+" "+(0,s.measureToString)(this.rightInset)+" "+(0,s.measureToString)(this.bottomInset)+" "+(0,s.measureToString)(this.leftInset)}}}]),a}(n.XFAObject,n.$toStyle),nt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"mdp"),a.id=e.id||"",a.permissions=(0,l.getInteger)({data:e.permissions,defaultValue:2,validate:function(e){return 1===e||3===e}}),a.signatureType=(0,l.getStringOption)(e.signatureType,["filler","author"]),a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.XFAObject),it=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"medium"),a.id=e.id||"",a.imagingBBox=(0,l.getBBox)(e.imagingBBox),a["long"]=(0,l.getMeasurement)(e["long"]),a.orientation=(0,l.getStringOption)(e.orientation,["portrait","landscape"]),a["short"]=(0,l.getMeasurement)(e["short"]),a.stock=e.stock||"",a.trayIn=(0,l.getStringOption)(e.trayIn,["auto","delegate","pageFront"]),a.trayOut=(0,l.getStringOption)(e.trayOut,["auto","delegate"]),a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.XFAObject),ot=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"message",!0),a.id=e.id||"",a.use=e.use||"",a.usehref=e.usehref||"",a.text=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),st=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"numericEdit",!0),t.hScrollPolicy=(0,l.getStringOption)(e.hScrollPolicy,["auto","off","on"]),t.id=e.id||"",t.use=e.use||"",t.usehref=e.usehref||"",t.border=null,t.comb=null,t.extras=null,t.margin=null,t}return S(a,[{key:t,value:function(e){var t=(0,s.toStyle)(this,"border","font","margin"),r=this[n.$getParent]()[n.$getParent](),a={name:"input",attributes:{type:"text",fieldId:r[n.$uid],dataId:r[n.$data]&&r[n.$data][n.$uid]||r[n.$uid],class:["xfaTextfield"],style:t,"aria-label":B(r),"aria-required":!1}};return D(r)&&(a.attributes["aria-required"]=!0,a.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[a]})}}]),a}(n.XFAObject,n.$toHTML),lt=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"occur",!0),t.id=e.id||"",t.initial=""!==e.initial?(0,l.getInteger)({data:e.initial,defaultValue:"",validate:function(e){return!0}}):"",t.max=""!==e.max?(0,l.getInteger)({data:e.max,defaultValue:1,validate:function(e){return!0}}):"",t.min=""!==e.min?(0,l.getInteger)({data:e.min,defaultValue:1,validate:function(e){return!0}}):"",t.use=e.use||"",t.usehref=e.usehref||"",t.extras=null,t}return S(a,[{key:t,value:function(){var e=this[n.$getParent](),t=this.min;""===this.min&&(this.min=e instanceof dt||e instanceof ft?0:1),""===this.max&&(this.max=""===t?e instanceof dt||e instanceof ft?-1:1:this.min),-1!==this.max&&this.max<this.min&&(this.max=this.min),""===this.initial&&(this.initial=e instanceof Lt?1:this.min)}}]),a}(n.XFAObject,n.$clean),ct=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"oid"),a.id=e.id||"",a.name=e.name||"",a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.StringObject),ut=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"oids",!0),a.id=e.id||"",a.type=(0,l.getStringOption)(e.type,["optional","required"]),a.use=e.use||"",a.usehref=e.usehref||"",a.oid=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),ht=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"overflow"),t.id=e.id||"",t.leader=e.leader||"",t.target=e.target||"",t.trailer=e.trailer||"",t.use=e.use||"",t.usehref=e.usehref||"",t}return S(a,[{key:t,value:function(){if(!this[n.$extra]){var e=this[n.$getParent](),t=this[n.$getTemplateRoot](),r=t[n.$searchNode](this.target,e),a=t[n.$searchNode](this.leader,e),i=t[n.$searchNode](this.trailer,e);this[n.$extra]={target:r&&r[0]||null,leader:a&&a[0]||null,trailer:i&&i[0]||null,addLeader:!1,addTrailer:!1}}return this[n.$extra]}}]),a}(n.XFAObject,n.$getExtra),dt=function(e,t,r,a,i,o){v(h,e);var u=g(h);function h(e){var t;return _(this,h),t=u.call(this,y,"pageArea",!0),t.blankOrNotBlank=(0,l.getStringOption)(e.blankOrNotBlank,["any","blank","notBlank"]),t.id=e.id||"",t.initialNumber=(0,l.getInteger)({data:e.initialNumber,defaultValue:1,validate:function(e){return!0}}),t.name=e.name||"",t.numbered=(0,l.getInteger)({data:e.numbered,defaultValue:1,validate:function(e){return!0}}),t.oddOrEven=(0,l.getStringOption)(e.oddOrEven,["any","even","odd"]),t.pagePosition=(0,l.getStringOption)(e.pagePosition,["any","first","last","only","rest"]),t.relevant=(0,l.getRelevant)(e.relevant),t.use=e.use||"",t.usehref=e.usehref||"",t.desc=null,t.extras=null,t.medium=null,t.occur=null,t.area=new n.XFAObjectArray,t.contentArea=new n.XFAObjectArray,t.draw=new n.XFAObjectArray,t.exclGroup=new n.XFAObjectArray,t.field=new n.XFAObjectArray,t.subform=new n.XFAObjectArray,t}return S(h,[{key:t,value:function(){return this[n.$extra]?!this.occur||-1===this.occur.max||this[n.$extra].numberOfUse<this.occur.max:(this[n.$extra]={numberOfUse:0},!0)}},{key:r,value:function(){delete this[n.$extra]}},{key:a,value:function(){this[n.$extra]||(this[n.$extra]={numberOfUse:0});var e=this[n.$getParent]();return"orderedOccurrence"===e.relation&&this[n.$isUsable]()?(this[n.$extra].numberOfUse+=1,this):e[n.$getNextPage]()}},{key:i,value:function(){return this[n.$extra].space||{width:0,height:0}}},{key:o,value:function(){this[n.$extra]||(this[n.$extra]={numberOfUse:1});var e=[];this[n.$extra].children=e;var t=Object.create(null);if(this.medium&&this.medium["short"]&&this.medium["long"]){if(t.width=(0,s.measureToString)(this.medium["short"]),t.height=(0,s.measureToString)(this.medium["long"]),this[n.$extra].space={width:this.medium["short"],height:this.medium["long"]},"landscape"===this.medium.orientation){var r=t.width;t.width=t.height,t.height=r,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.");return this[n.$childrenToHTML]({filter:new Set(["area","draw","field","subform"]),include:!0}),this[n.$childrenToHTML]({filter:new Set(["contentArea"]),include:!0}),l.HTMLResult.success({name:"div",children:e,attributes:{class:["xfaPage"],id:this[n.$uid],style:t,xfaName:this.name}})}}]),h}(n.XFAObject,n.$isUsable,n.$cleanPage,n.$getNextPage,n.$getAvailableSpace,n.$toHTML),ft=function(e,t,r,a){v(o,e);var i=g(o);function o(e){var t;return _(this,o),t=i.call(this,y,"pageSet",!0),t.duplexImposition=(0,l.getStringOption)(e.duplexImposition,["longEdge","shortEdge"]),t.id=e.id||"",t.name=e.name||"",t.relation=(0,l.getStringOption)(e.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]),t.relevant=(0,l.getRelevant)(e.relevant),t.use=e.use||"",t.usehref=e.usehref||"",t.extras=null,t.occur=null,t.pageArea=new n.XFAObjectArray,t.pageSet=new n.XFAObjectArray,t}return S(o,[{key:t,value:function(){var e,t=b(this.pageArea.children);try{for(t.s();!(e=t.n()).done;){var r=e.value;r[n.$cleanPage]()}}catch(s){t.e(s)}finally{t.f()}var a,i=b(this.pageSet.children);try{for(i.s();!(a=i.n()).done;){var o=a.value;o[n.$cleanPage]()}}catch(s){i.e(s)}finally{i.f()}}},{key:r,value:function(){return!this.occur||-1===this.occur.max||this[n.$extra].numberOfUse<this.occur.max}},{key:a,value:function(){if(this[n.$extra]||(this[n.$extra]={numberOfUse:1,pageIndex:-1,pageSetIndex:-1}),"orderedOccurrence"===this.relation){if(this[n.$extra].pageIndex+1<this.pageArea.children.length){this[n.$extra].pageIndex+=1;var e=this.pageArea.children[this[n.$extra].pageIndex];return e[n.$getNextPage]()}if(this[n.$extra].pageSetIndex+1<this.pageSet.children.length)return this[n.$extra].pageSetIndex+=1,this.pageSet.children[this[n.$extra].pageSetIndex][n.$getNextPage]();if(this[n.$isUsable]())return this[n.$extra].numberOfUse+=1,this[n.$extra].pageIndex=-1,this[n.$extra].pageSetIndex=-1,this[n.$getNextPage]();var t=this[n.$getParent]();return t instanceof o?t[n.$getNextPage]():(this[n.$cleanPage](),this[n.$getNextPage]())}var r=this[n.$getTemplateRoot]()[n.$extra].pageNumber,a=r%2===0?"even":"odd",i=0===r?"first":"rest",s=this.pageArea.children.find((function(e){return e.oddOrEven===a&&e.pagePosition===i}));return s||(s=this.pageArea.children.find((function(e){return"any"===e.oddOrEven&&e.pagePosition===i})),s||(s=this.pageArea.children.find((function(e){return"any"===e.oddOrEven&&"any"===e.pagePosition})),s||this.pageArea.children[0]))}}]),o}(n.XFAObject,n.$cleanPage,n.$isUsable,n.$getNextPage),pt=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"para",!0),t.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),t.id=e.id||"",t.lineHeight=e.lineHeight?(0,l.getMeasurement)(e.lineHeight,"0pt"):"",t.marginLeft=e.marginLeft?(0,l.getMeasurement)(e.marginLeft,"0pt"):"",t.marginRight=e.marginRight?(0,l.getMeasurement)(e.marginRight,"0pt"):"",t.orphans=(0,l.getInteger)({data:e.orphans,defaultValue:0,validate:function(e){return e>=0}}),t.preserve=e.preserve||"",t.radixOffset=e.radixOffset?(0,l.getMeasurement)(e.radixOffset,"0pt"):"",t.spaceAbove=e.spaceAbove?(0,l.getMeasurement)(e.spaceAbove,"0pt"):"",t.spaceBelow=e.spaceBelow?(0,l.getMeasurement)(e.spaceBelow,"0pt"):"",t.tabDefault=e.tabDefault?(0,l.getMeasurement)(t.tabDefault):"",t.tabStops=(e.tabStops||"").trim().split(/\s+/).map((function(e,t){return t%2===1?(0,l.getMeasurement)(e):e})),t.textIndent=e.textIndent?(0,l.getMeasurement)(e.textIndent,"0pt"):"",t.use=e.use||"",t.usehref=e.usehref||"",t.vAlign=(0,l.getStringOption)(e.vAlign,["top","bottom","middle"]),t.widows=(0,l.getInteger)({data:e.widows,defaultValue:0,validate:function(e){return e>=0}}),t.hyphenation=null,t}return S(a,[{key:t,value:function(){var e=(0,s.toStyle)(this,"hAlign");return""!==this.marginLeft&&(e.paddingLeft=(0,s.measureToString)(this.marginLeft)),""!==this.marginRight&&(e.paddingight=(0,s.measureToString)(this.marginRight)),""!==this.spaceAbove&&(e.paddingTop=(0,s.measureToString)(this.spaceAbove)),""!==this.spaceBelow&&(e.paddingBottom=(0,s.measureToString)(this.spaceBelow)),""!==this.textIndent&&(e.textIndent=(0,s.measureToString)(this.textIndent),(0,s.fixTextIndent)(e)),this.lineHeight>0&&(e.lineHeight=(0,s.measureToString)(this.lineHeight)),""!==this.tabDefault&&(e.tabSize=(0,s.measureToString)(this.tabDefault)),this.tabStops.length,this.hyphenatation&&Object.assign(e,this.hyphenatation[n.$toStyle]()),e}}]),a}(n.XFAObject,n.$toStyle),vt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"passwordEdit",!0),a.hScrollPolicy=(0,l.getStringOption)(e.hScrollPolicy,["auto","off","on"]),a.id=e.id||"",a.passwordChar=e.passwordChar||"*",a.use=e.use||"",a.usehref=e.usehref||"",a.border=null,a.extras=null,a.margin=null,a}return S(r)}(n.XFAObject),gt=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"pattern",!0),t.id=e.id||"",t.type=(0,l.getStringOption)(e.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),t.use=e.use||"",t.usehref=e.usehref||"",t.color=null,t.extras=null,t}return S(a,[{key:t,value:function(e){e=e?e[n.$toStyle]():"#FFFFFF";var t=this.color?this.color[n.$toStyle]():"#000000",r=5,a="repeating-linear-gradient",i="".concat(e,",").concat(e," ").concat(r,"px,").concat(t," ").concat(r,"px,").concat(t," ").concat(2*r,"px");switch(this.type){case"crossHatch":return"".concat(a,"(to top,").concat(i,") ").concat(a,"(to right,").concat(i,")");case"crossDiagonal":return"".concat(a,"(45deg,").concat(i,") ").concat(a,"(-45deg,").concat(i,")");case"diagonalLeft":return"".concat(a,"(45deg,").concat(i,")");case"diagonalRight":return"".concat(a,"(-45deg,").concat(i,")");case"horizontal":return"".concat(a,"(to top,").concat(i,")");case"vertical":return"".concat(a,"(to right,").concat(i,")")}return""}}]),a}(n.XFAObject,n.$toStyle),mt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"picture"),a.id=e.id||"",a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.StringObject),yt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"proto",!0),a.appearanceFilter=new n.XFAObjectArray,a.arc=new n.XFAObjectArray,a.area=new n.XFAObjectArray,a.assist=new n.XFAObjectArray,a.barcode=new n.XFAObjectArray,a.bindItems=new n.XFAObjectArray,a.bookend=new n.XFAObjectArray,a["boolean"]=new n.XFAObjectArray,a.border=new n.XFAObjectArray,a["break"]=new n.XFAObjectArray,a.breakAfter=new n.XFAObjectArray,a.breakBefore=new n.XFAObjectArray,a.button=new n.XFAObjectArray,a.calculate=new n.XFAObjectArray,a.caption=new n.XFAObjectArray,a.certificate=new n.XFAObjectArray,a.certificates=new n.XFAObjectArray,a.checkButton=new n.XFAObjectArray,a.choiceList=new n.XFAObjectArray,a.color=new n.XFAObjectArray,a.comb=new n.XFAObjectArray,a.connect=new n.XFAObjectArray,a.contentArea=new n.XFAObjectArray,a.corner=new n.XFAObjectArray,a.date=new n.XFAObjectArray,a.dateTime=new n.XFAObjectArray,a.dateTimeEdit=new n.XFAObjectArray,a.decimal=new n.XFAObjectArray,a.defaultUi=new n.XFAObjectArray,a.desc=new n.XFAObjectArray,a.digestMethod=new n.XFAObjectArray,a.digestMethods=new n.XFAObjectArray,a.draw=new n.XFAObjectArray,a.edge=new n.XFAObjectArray,a.encoding=new n.XFAObjectArray,a.encodings=new n.XFAObjectArray,a.encrypt=new n.XFAObjectArray,a.encryptData=new n.XFAObjectArray,a.encryption=new n.XFAObjectArray,a.encryptionMethod=new n.XFAObjectArray,a.encryptionMethods=new n.XFAObjectArray,a.event=new n.XFAObjectArray,a.exData=new n.XFAObjectArray,a.exObject=new n.XFAObjectArray,a.exclGroup=new n.XFAObjectArray,a.execute=new n.XFAObjectArray,a.extras=new n.XFAObjectArray,a.field=new n.XFAObjectArray,a.fill=new n.XFAObjectArray,a.filter=new n.XFAObjectArray,a["float"]=new n.XFAObjectArray,a.font=new n.XFAObjectArray,a.format=new n.XFAObjectArray,a.handler=new n.XFAObjectArray,a.hyphenation=new n.XFAObjectArray,a.image=new n.XFAObjectArray,a.imageEdit=new n.XFAObjectArray,a.integer=new n.XFAObjectArray,a.issuers=new n.XFAObjectArray,a.items=new n.XFAObjectArray,a.keep=new n.XFAObjectArray,a.keyUsage=new n.XFAObjectArray,a.line=new n.XFAObjectArray,a.linear=new n.XFAObjectArray,a.lockDocument=new n.XFAObjectArray,a.manifest=new n.XFAObjectArray,a.margin=new n.XFAObjectArray,a.mdp=new n.XFAObjectArray,a.medium=new n.XFAObjectArray,a.message=new n.XFAObjectArray,a.numericEdit=new n.XFAObjectArray,a.occur=new n.XFAObjectArray,a.oid=new n.XFAObjectArray,a.oids=new n.XFAObjectArray,a.overflow=new n.XFAObjectArray,a.pageArea=new n.XFAObjectArray,a.pageSet=new n.XFAObjectArray,a.para=new n.XFAObjectArray,a.passwordEdit=new n.XFAObjectArray,a.pattern=new n.XFAObjectArray,a.picture=new n.XFAObjectArray,a.radial=new n.XFAObjectArray,a.reason=new n.XFAObjectArray,a.reasons=new n.XFAObjectArray,a.rectangle=new n.XFAObjectArray,a.ref=new n.XFAObjectArray,a.script=new n.XFAObjectArray,a.setProperty=new n.XFAObjectArray,a.signData=new n.XFAObjectArray,a.signature=new n.XFAObjectArray,a.signing=new n.XFAObjectArray,a.solid=new n.XFAObjectArray,a.speak=new n.XFAObjectArray,a.stipple=new n.XFAObjectArray,a.subform=new n.XFAObjectArray,a.subformSet=new n.XFAObjectArray,a.subjectDN=new n.XFAObjectArray,a.subjectDNs=new n.XFAObjectArray,a.submit=new n.XFAObjectArray,a.text=new n.XFAObjectArray,a.textEdit=new n.XFAObjectArray,a.time=new n.XFAObjectArray,a.timeStamp=new n.XFAObjectArray,a.toolTip=new n.XFAObjectArray,a.traversal=new n.XFAObjectArray,a.traverse=new n.XFAObjectArray,a.ui=new n.XFAObjectArray,a.validate=new n.XFAObjectArray,a.value=new n.XFAObjectArray,a.variables=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),bt=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"radial",!0),t.id=e.id||"",t.type=(0,l.getStringOption)(e.type,["toEdge","toCenter"]),t.use=e.use||"",t.usehref=e.usehref||"",t.color=null,t.extras=null,t}return S(a,[{key:t,value:function(e){e=e?e[n.$toStyle]():"#FFFFFF";var t=this.color?this.color[n.$toStyle]():"#000000",r="toEdge"===this.type?"".concat(e,",").concat(t):"".concat(t,",").concat(e);return"radial-gradient(circle at center, ".concat(r,")")}}]),a}(n.XFAObject,n.$toStyle),kt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"reason"),a.id=e.id||"",a.name=e.name||"",a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.StringObject),wt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"reasons",!0),a.id=e.id||"",a.type=(0,l.getStringOption)(e.type,["optional","required"]),a.use=e.use||"",a.usehref=e.usehref||"",a.reason=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),_t=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"rectangle",!0),t.hand=(0,l.getStringOption)(e.hand,["even","left","right"]),t.id=e.id||"",t.use=e.use||"",t.usehref=e.usehref||"",t.corner=new n.XFAObjectArray(4),t.edge=new n.XFAObjectArray(4),t.fill=null,t}return S(a,[{key:t,value:function(){var e=this.edge.children.length?this.edge.children[0]:new xe({}),t=e[n.$toStyle](),r=Object.create(null);this.fill&&"visible"===this.fill.presence?Object.assign(r,this.fill[n.$toStyle]()):r.fill="transparent",r.strokeWidth=(0,s.measureToString)("visible"===e.presence?e.thickness:0),r.stroke=t.color;var a=this.corner.children.length?this.corner.children[0]:new pe({}),i=a[n.$toStyle](),o={name:"rect",attributes:{xmlns:w,width:"100%",height:"100%",x:0,y:0,rx:i.radius,ry:i.radius,style:r}},c={name:"svg",children:[o],attributes:{xmlns:w,style:{overflow:"visible"},width:"100%",height:"100%"}},u=this[n.$getParent]()[n.$getParent]();return E(u)?l.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[c]}):(c.attributes.style.position="absolute",l.HTMLResult.success(c))}}]),a}(n.XFAObject,n.$toHTML),St=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"ref"),a.id=e.id||"",a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.StringObject),xt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"script"),a.binding=e.binding||"",a.contentType=e.contentType||"",a.id=e.id||"",a.name=e.name||"",a.runAt=(0,l.getStringOption)(e.runAt,["client","both","server"]),a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.StringObject),At=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"setProperty"),a.connection=e.connection||"",a.ref=e.ref||"",a.target=e.target||"",a}return S(r)}(n.XFAObject);t.SetProperty=At;var Ct=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"signData",!0),a.id=e.id||"",a.operation=(0,l.getStringOption)(e.operation,["sign","clear","verify"]),a.ref=e.ref||"",a.target=e.target||"",a.use=e.use||"",a.usehref=e.usehref||"",a.filter=null,a.manifest=null,a}return S(r)}(n.XFAObject),Ft=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"signature",!0),a.id=e.id||"",a.type=(0,l.getStringOption)(e.type,["PDF1.3","PDF1.6"]),a.use=e.use||"",a.usehref=e.usehref||"",a.border=null,a.extras=null,a.filter=null,a.manifest=null,a.margin=null,a}return S(r)}(n.XFAObject),Pt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"signing",!0),a.id=e.id||"",a.type=(0,l.getStringOption)(e.type,["optional","required"]),a.use=e.use||"",a.usehref=e.usehref||"",a.certificate=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),Tt=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"solid",!0),t.id=e.id||"",t.use=e.use||"",t.usehref=e.usehref||"",t.extras=null,t}return S(a,[{key:t,value:function(e){return e?e[n.$toStyle]():"#FFFFFF"}}]),a}(n.XFAObject,n.$toStyle),Ot=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"speak"),a.disable=(0,l.getInteger)({data:e.disable,defaultValue:0,validate:function(e){return 1===e}}),a.id=e.id||"",a.priority=(0,l.getStringOption)(e.priority,["custom","caption","name","toolTip"]),a.rid=e.rid||"",a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.StringObject),It=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"stipple",!0),t.id=e.id||"",t.rate=(0,l.getInteger)({data:e.rate,defaultValue:50,validate:function(e){return e>=0&&e<=100}}),t.use=e.use||"",t.usehref=e.usehref||"",t.color=null,t.extras=null,t}return S(a,[{key:t,value:function(e){var t=this.rate/100;return c.Util.makeHexColor(Math.round(e.value.r*(1-t)+this.value.r*t),Math.round(e.value.g*(1-t)+this.value.g*t),Math.round(e.value.b*(1-t)+this.value.b*t))}}]),a}(n.XFAObject,n.$toStyle),Et=function(e,t,r,a,i,u,h,d,f,p){v(k,e);var b=g(k);function k(e){var t;return _(this,k),t=b.call(this,y,"subform",!0),t.access=(0,l.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),t.allowMacro=(0,l.getInteger)({data:e.allowMacro,defaultValue:0,validate:function(e){return 1===e}}),t.anchorType=(0,l.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),t.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),t.columnWidths=(e.columnWidths||"").trim().split(/\s+/).map((function(e){return"-1"===e?-1:(0,l.getMeasurement)(e)})),t.h=e.h?(0,l.getMeasurement)(e.h):"",t.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),t.id=e.id||"",t.layout=(0,l.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),t.locale=e.locale||"",t.maxH=(0,l.getMeasurement)(e.maxH,"0pt"),t.maxW=(0,l.getMeasurement)(e.maxW,"0pt"),t.mergeMode=(0,l.getStringOption)(e.mergeMode,["consumeData","matchTemplate"]),t.minH=(0,l.getMeasurement)(e.minH,"0pt"),t.minW=(0,l.getMeasurement)(e.minW,"0pt"),t.name=e.name||"",t.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),t.relevant=(0,l.getRelevant)(e.relevant),t.restoreState=(0,l.getStringOption)(e.restoreState,["manual","auto"]),t.scope=(0,l.getStringOption)(e.scope,["name","none"]),t.use=e.use||"",t.usehref=e.usehref||"",t.w=e.w?(0,l.getMeasurement)(e.w):"",t.x=(0,l.getMeasurement)(e.x,"0pt"),t.y=(0,l.getMeasurement)(e.y,"0pt"),t.assist=null,t.bind=null,t.bookend=null,t.border=null,t["break"]=null,t.calculate=null,t.desc=null,t.extras=null,t.keep=null,t.margin=null,t.occur=null,t.overflow=null,t.pageSet=null,t.para=null,t.traversal=null,t.validate=null,t.variables=null,t.area=new n.XFAObjectArray,t.breakAfter=new n.XFAObjectArray,t.breakBefore=new n.XFAObjectArray,t.connect=new n.XFAObjectArray,t.draw=new n.XFAObjectArray,t.event=new n.XFAObjectArray,t.exObject=new n.XFAObjectArray,t.exclGroup=new n.XFAObjectArray,t.field=new n.XFAObjectArray,t.proto=new n.XFAObjectArray,t.setProperty=new n.XFAObjectArray,t.subform=new n.XFAObjectArray,t.subformSet=new n.XFAObjectArray,t}return S(k,[{key:t,value:function(){var e=this[n.$getParent]();return e instanceof Mt?e[n.$getSubformParent]():e}},{key:r,value:function(){return!0}},{key:a,value:function(){return this.layout.endsWith("-tb")&&0===this[n.$extra].attempt&&this[n.$extra].numberInLine>0||this[n.$getParent]()[n.$isThereMoreWidth]()}},{key:i,value:m().mark((function e(){return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.delegateYield(R(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:u,value:function(){return(0,o.flushHTML)(this)}},{key:h,value:function(e,t){(0,o.addHTML)(this,e,t)}},{key:d,value:function(){return(0,o.getAvailableSpace)(this)}},{key:f,value:function(){var e=this[n.$getSubformParent]();return!!e[n.$isSplittable]()&&(void 0!==this[n.$extra]._isSplittable?this[n.$extra]._isSplittable:"position"===this.layout||this.layout.includes("row")||this.keep&&"none"!==this.keep.intact?(this[n.$extra]._isSplittable=!1,!1):(!e.layout||!e.layout.endsWith("-tb")||0===e[n.$extra].numberInLine)&&(this[n.$extra]._isSplittable=!0,!0))}},{key:p,value:function(e){if(N(this),this["break"]){if("auto"!==this["break"].after||""!==this["break"].afterTarget){var t=new te({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("auto"!==this["break"].before||""!==this["break"].beforeTarget){var r=new re({targetType:this["break"].before,target:this["break"].beforeTarget,startNew:this["break"].startNew.toString()});r[n.$globalData]=this[n.$globalData],this[n.$appendChild](r),this.breakBefore.push(r)}if(""!==this["break"].overflowTarget){var a=new ht({target:this["break"].overflowTarget,leader:this["break"].overflowLeader,trailer:this["break"].overflowTrailer});a[n.$globalData]=this[n.$globalData],this[n.$appendChild](a),this.overflow.push(a)}this[n.$removeChild](this["break"]),this["break"]=null}if("hidden"===this.presence||"inactive"===this.presence)return l.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."),this.breakBefore.children.length>=1){var i=this.breakBefore.children[0];if(G(i))return l.HTMLResult.breakNode(i)}if(this[n.$extra]&&this[n.$extra].afterBreakAfter)return l.HTMLResult.EMPTY;(0,s.fixDimensions)(this);var u=[],h={id:this[n.$uid],class:[]};(0,s.setAccess)(this,h["class"]),this[n.$extra]||(this[n.$extra]=Object.create(null)),Object.assign(this[n.$extra],{children:u,line:null,attributes:h,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});var d=this[n.$getTemplateRoot](),f=d[n.$extra].noLayoutFailure,p=this[n.$isSplittable]();if(p||U(this),!(0,o.checkDimensions)(this,e))return l.HTMLResult.FAILURE;var v=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){var g=this[n.$getSubformParent]().columnWidths;Array.isArray(g)&&g.length>0&&(this[n.$extra].columnWidths=g,this[n.$extra].currentColumn=0)}var m=(0,s.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),y=["xfaSubform"],b=(0,s.layoutClass)(this);if(b&&y.push(b),h.style=m,h["class"]=y,this.name&&(h.xfaName=this.name),this.overflow){var k=this.overflow[n.$getExtra]();k.addLeader&&(k.addLeader=!1,H(this,k.leader,e))}this[n.$pushPara]();for(var w="lr-tb"===this.layout||"rl-tb"===this.layout,_=w?A:1;this[n.$extra].attempt<_;this[n.$extra].attempt++){w&&this[n.$extra].attempt===A-1&&(this[n.$extra].numberInLine=0);var S=this[n.$childrenToHTML]({filter:v,include:!0});if(S.success)break;if(S.isBreak())return this[n.$popPara](),S;if(w&&0===this[n.$extra].attempt&&0===this[n.$extra].numberInLine&&!d[n.$extra].noLayoutFailure){this[n.$extra].attempt=_;break}}if(this[n.$popPara](),p||q(this),d[n.$extra].noLayoutFailure=f,this[n.$extra].attempt===_)return this.overflow&&(this[n.$getTemplateRoot]()[n.$extra].overflowNode=this.overflow),p||delete this[n.$extra],l.HTMLResult.FAILURE;if(this.overflow){var x=this.overflow[n.$getExtra]();x.addTrailer&&(x.addTrailer=!1,H(this,x.trailer,e))}var C=0,F=0;this.margin&&(C=this.margin.leftInset+this.margin.rightInset,F=this.margin.topInset+this.margin.bottomInset);var P=Math.max(this[n.$extra].width+C,this.w||0),T=Math.max(this[n.$extra].height+F,this.h||0),O=[this.x,this.y,P,T];if(""===this.w&&(m.width=(0,s.measureToString)(P)),""===this.h&&(m.height=(0,s.measureToString)(T)),("0px"===m.width||"0px"===m.height)&&0===u.length)return l.HTMLResult.EMPTY;var I={name:"div",attributes:h,children:u};L(this,h);var E=l.HTMLResult.success((0,s.createWrapper)(this,I),O);if(this.breakAfter.children.length>=1){var M=this.breakAfter.children[0];if(G(M))return this[n.$extra].afterBreakAfter=E,l.HTMLResult.breakNode(M)}return delete this[n.$extra],E}}]),k}(n.XFAObject,n.$getSubformParent,n.$isBindable,n.$isThereMoreWidth,n.$getContainedChildren,n.$flushHTML,n.$addHTML,n.$getAvailableSpace,n.$isSplittable,n.$toHTML),Mt=function(e,t,r,a){v(o,e);var i=g(o);function o(e){var t;return _(this,o),t=i.call(this,y,"subformSet",!0),t.id=e.id||"",t.name=e.name||"",t.relation=(0,l.getStringOption)(e.relation,["ordered","choice","unordered"]),t.relevant=(0,l.getRelevant)(e.relevant),t.use=e.use||"",t.usehref=e.usehref||"",t.bookend=null,t["break"]=null,t.desc=null,t.extras=null,t.occur=null,t.overflow=null,t.breakAfter=new n.XFAObjectArray,t.breakBefore=new n.XFAObjectArray,t.subform=new n.XFAObjectArray,t.subformSet=new n.XFAObjectArray,t}return S(o,[{key:t,value:m().mark((function e(){return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.delegateYield(R(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:r,value:function(){var e=this[n.$getParent]();while(!(e instanceof Et))e=e[n.$getParent]();return e}},{key:a,value:function(){return!0}}]),o}(n.XFAObject,n.$getContainedChildren,n.$getSubformParent,n.$isBindable),Rt=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"subjectDN"),t.delimiter=e.delimiter||",",t.id=e.id||"",t.name=e.name||"",t.use=e.use||"",t.usehref=e.usehref||"",t}return S(a,[{key:t,value:function(){this[n.$content]=new Map(this[n.$content].split(this.delimiter).map((function(e){return e=e.split("=",2),e[0]=e[0].trim(),e})))}}]),a}(n.ContentObject,n.$finalize),Dt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"subjectDNs",!0),a.id=e.id||"",a.type=(0,l.getStringOption)(e.type,["optional","required"]),a.use=e.use||"",a.usehref=e.usehref||"",a.subjectDN=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),Nt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"submit",!0),a.embedPDF=(0,l.getInteger)({data:e.embedPDF,defaultValue:0,validate:function(e){return 1===e}}),a.format=(0,l.getStringOption)(e.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),a.id=e.id||"",a.target=e.target||"",a.textEncoding=(0,l.getKeyword)({data:e.textEncoding?e.textEncoding.toLowerCase():"",defaultValue:"",validate:function(e){return["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/)}}),a.use=e.use||"",a.usehref=e.usehref||"",a.xdpContent=e.xdpContent||"",a.encrypt=null,a.encryptData=new n.XFAObjectArray,a.signData=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),Lt=function(e,t,r,a,i){v(s,e);var o=g(s);function s(e){var t;return _(this,s),t=o.call(this,y,"template",!0),t.baseProfile=(0,l.getStringOption)(e.baseProfile,["full","interactiveForms"]),t.extras=null,t.subform=new n.XFAObjectArray,t}return S(s,[{key:t,value:function(){0===this.subform.children.length&&(0,c.warn)("XFA - No subforms in template node."),this.subform.children.length>=2&&(0,c.warn)("XFA - Several subforms in template node: please file a bug."),this[n.$tabIndex]=F}},{key:r,value:function(){return!0}},{key:a,value:function(e,t){return e.startsWith("#")?[this[n.$ids].get(e.slice(1))]:(0,p.searchNode)(this,t,e,!0,!0)}},{key:i,value:m().mark((function e(){var t,r,a,i,o,s,u,h,d,f,p,v,g,y,b,k,w=this;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.subform.children.length){e.next=2;break}return e.abrupt("return",l.HTMLResult.success({name:"div",children:[]}));case 2:this[n.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]},t=this.subform.children[0],t.pageSet[n.$cleanPage](),r=t.pageSet.pageArea.children,a={name:"div",children:[]},i=null,o=null,s=null,t.breakBefore.children.length>=1?(o=t.breakBefore.children[0],s=o.target):t.subform.children.length>=1&&t.subform.children[0].breakBefore.children.length>=1?(o=t.subform.children[0].breakBefore.children[0],s=o.target):t["break"]&&t["break"].beforeTarget?(o=t["break"],s=o.beforeTarget):t.subform.children.length>=1&&t.subform.children[0]["break"]&&t.subform.children[0]["break"].beforeTarget&&(o=t.subform.children[0]["break"],s=o.beforeTarget),o&&(u=this[n.$searchNode](s,o[n.$getParent]()),u instanceof dt&&(i=u,o[n.$extra]={})),i||(i=r[0]),i[n.$extra]={numberOfUse:1},h=i[n.$getParent](),h[n.$extra]={numberOfUse:1,pageIndex:h.pageArea.children.indexOf(i),pageSetIndex:0},f=null,p=null,v=!0,g=0,y=0,b=m().mark((function e(){var r,o,s,l,u,h,b,k,_,S,x,A,F,P,T;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(v){e.next=7;break}if(a.children.pop(),++g!==C){e.next=5;break}return(0,c.warn)("XFA - Something goes wrong: please file a bug."),e.abrupt("return",{v:a});case 5:e.next=8;break;case 7:g=0;case 8:d=null,w[n.$extra].currentPageArea=i,r=i[n.$toHTML]().html,a.children.push(r),f&&(w[n.$extra].noLayoutFailure=!0,r.children.push(f[n.$toHTML](i[n.$extra].space).html),f=null),p&&(w[n.$extra].noLayoutFailure=!0,r.children.push(p[n.$toHTML](i[n.$extra].space).html),p=null),o=i.contentArea.children,s=r.children.filter((function(e){return e.attributes["class"].includes("xfaContentarea")})),v=!1,w[n.$extra].firstUnsplittable=null,w[n.$extra].noLayoutFailure=!1,l=function(e){var r=t[n.$flushHTML]();r&&(v=v||r.children&&0!==r.children.length,s[e].children.push(r))},u=y,h=o.length;case 21:if(!(u<h)){e.next=56;break}if(b=w[n.$extra].currentContentArea=o[u],k={width:b.w,height:b.h},y=0,f&&(s[u].children.push(f[n.$toHTML](k).html),f=null),p&&(s[u].children.push(p[n.$toHTML](k).html),p=null),_=t[n.$toHTML](k),!_.success){e.next=31;break}return _.html?(v=v||_.html.children&&0!==_.html.children.length,s[u].children.push(_.html)):!v&&a.children.length>1&&a.children.pop(),e.abrupt("return",{v:a});case 31:if(!_.isBreak()){e.next=40;break}if(S=_.breakNode,l(u),"auto"!==S.targetType){e.next=36;break}return e.abrupt("continue",53);case 36:return S.leader&&(f=w[n.$searchNode](S.leader,S[n.$getParent]()),f=f?f[0]:null),S.trailer&&(p=w[n.$searchNode](S.trailer,S[n.$getParent]()),p=p?p[0]:null),"pageArea"===S.targetType?(d=S[n.$extra].target,u=1/0):S[n.$extra].target?(d=S[n.$extra].target,y=S[n.$extra].index+1,u=1/0):u=S[n.$extra].index,e.abrupt("continue",53);case 40:if(!w[n.$extra].overflowNode){e.next=52;break}return x=w[n.$extra].overflowNode,w[n.$extra].overflowNode=null,A=x[n.$getExtra](),F=A.target,A.addLeader=null!==A.leader,A.addTrailer=null!==A.trailer,l(u),P=u,u=1/0,F instanceof dt?d=F:F instanceof fe&&(T=o.indexOf(F),-1!==T?T>P?u=T-1:y=T:(d=F[n.$getParent](),y=d.contentArea.children.indexOf(F))),e.abrupt("continue",53);case 52:l(u);case 53:u++,e.next=21;break;case 56:return w[n.$extra].pageNumber+=1,d&&(d[n.$isUsable]()?d[n.$extra].numberOfUse+=1:d=null),i=d||i[n.$getNextPage](),e.next=61,null;case 61:case"end":return e.stop()}}),e)}));case 22:return e.delegateYield(b(),"t0",24);case 24:if(k=e.t0,"object"!==x(k)){e.next=27;break}return e.abrupt("return",k.v);case 27:e.next=22;break;case 29:case"end":return e.stop()}}),e,this)}))}]),s}(n.XFAObject,n.$finalize,n.$isSplittable,n.$searchNode,n.$toPages);t.Template=Lt;var Bt=function(e,t,r,a,o,s,d){v(p,e);var f=g(p);function p(e){var t;return _(this,p),t=f.call(this,y,"text"),t.id=e.id||"",t.maxChars=(0,l.getInteger)({data:e.maxChars,defaultValue:0,validate:function(e){return e>=0}}),t.name=e.name||"",t.rid=e.rid||"",t.use=e.use||"",t.usehref=e.usehref||"",t}return S(p,[{key:t,value:function(){return!0}},{key:r,value:function(e){return e[n.$namespaceId]===i.NamespaceIds.xhtml.id?(this[n.$content]=e,!0):((0,c.warn)("XFA - Invalid content in Text: ".concat(e[n.$nodeName],".")),!1)}},{key:a,value:function(e){this[n.$content]instanceof n.XFAObject||u(h(p.prototype),n.$onText,this).call(this,e)}},{key:o,value:function(){"string"===typeof this[n.$content]&&(this[n.$content]=this[n.$content].replace(/\r\n/g,"\n"))}},{key:s,value:function(){return"string"===typeof this[n.$content]?this[n.$content].split(/[\u2029\u2028\n]/).reduce((function(e,t){return t&&e.push(t),e}),[]).join("\n"):this[n.$content][n.$text]()}},{key:d,value:function(e){if("string"===typeof this[n.$content]){var t=j(this[n.$content]).html;return this[n.$content].includes("\u2029")?(t.name="div",t.children=[],this[n.$content].split("\u2029").map((function(e){return e.split(/[\u2028\n]/).reduce((function(e,t){return e.push({name:"span",value:t},{name:"br"}),e}),[])})).forEach((function(e){t.children.push({name:"p",children:e})}))):/[\u2028\n]/.test(this[n.$content])&&(t.name="div",t.children=[],this[n.$content].split(/[\u2028\n]/).forEach((function(e){t.children.push({name:"span",value:e},{name:"br"})}))),l.HTMLResult.success(t)}return this[n.$content][n.$toHTML](e)}}]),p}(n.ContentObject,n.$acceptWhitespace,n.$onChild,n.$onText,n.$finalize,n.$getExtra,n.$toHTML);t.Text=Bt;var jt=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"textEdit",!0),t.allowRichText=(0,l.getInteger)({data:e.allowRichText,defaultValue:0,validate:function(e){return 1===e}}),t.hScrollPolicy=(0,l.getStringOption)(e.hScrollPolicy,["auto","off","on"]),t.id=e.id||"",t.multiLine=(0,l.getInteger)({data:e.multiLine,defaultValue:"",validate:function(e){return 0===e||1===e}}),t.use=e.use||"",t.usehref=e.usehref||"",t.vScrollPolicy=(0,l.getStringOption)(e.vScrollPolicy,["auto","off","on"]),t.border=null,t.comb=null,t.extras=null,t.margin=null,t}return S(a,[{key:t,value:function(e){var t,r=(0,s.toStyle)(this,"border","font","margin"),a=this[n.$getParent]()[n.$getParent]();return""===this.multiLine&&(this.multiLine=a instanceof Se?1:0),t=1===this.multiLine?{name:"textarea",attributes:{dataId:a[n.$data]&&a[n.$data][n.$uid]||a[n.$uid],fieldId:a[n.$uid],class:["xfaTextfield"],style:r,"aria-label":B(a),"aria-required":!1}}:{name:"input",attributes:{type:"text",dataId:a[n.$data]&&a[n.$data][n.$uid]||a[n.$uid],fieldId:a[n.$uid],class:["xfaTextfield"],style:r,"aria-label":B(a),"aria-required":!1}},D(a)&&(t.attributes["aria-required"]=!0,t.attributes.required=!0),l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[t]})}}]),a}(n.XFAObject,n.$toHTML),Ut=function(e,t,r){v(i,e);var a=g(i);function i(e){var t;return _(this,i),t=a.call(this,y,"time"),t.id=e.id||"",t.name=e.name||"",t.use=e.use||"",t.usehref=e.usehref||"",t}return S(i,[{key:t,value:function(){var e=this[n.$content].trim();this[n.$content]=e?new Date(e):null}},{key:r,value:function(e){return j(this[n.$content]?this[n.$content].toString():"")}}]),i}(n.StringObject,n.$finalize,n.$toHTML),qt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"timeStamp"),a.id=e.id||"",a.server=e.server||"",a.type=(0,l.getStringOption)(e.type,["optional","required"]),a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.XFAObject),Gt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"toolTip"),a.id=e.id||"",a.rid=e.rid||"",a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.StringObject),Ht=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"traversal",!0),a.id=e.id||"",a.use=e.use||"",a.usehref=e.usehref||"",a.extras=null,a.traverse=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),Xt=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"traverse",!0),t.id=e.id||"",t.operation=(0,l.getStringOption)(e.operation,["next","back","down","first","left","right","up"]),t.ref=e.ref||"",t.use=e.use||"",t.usehref=e.usehref||"",t.extras=null,t.script=null,t}return S(a,[{key:"name",get:function(){return this.operation}},{key:t,value:function(){return!1}}]),a}(n.XFAObject,n.$isTransparent),$t=function(e,t,r){v(i,e);var a=g(i);function i(e){var t;return _(this,i),t=a.call(this,y,"ui",!0),t.id=e.id||"",t.use=e.use||"",t.usehref=e.usehref||"",t.extras=null,t.picture=null,t.barcode=null,t.button=null,t.checkButton=null,t.choiceList=null,t.dateTimeEdit=null,t.defaultUi=null,t.imageEdit=null,t.numericEdit=null,t.passwordEdit=null,t.signature=null,t.textEdit=null,t}return S(i,[{key:t,value:function(){if(void 0===this[n.$extra]){var e,t=b(Object.getOwnPropertyNames(this));try{for(t.s();!(e=t.n()).done;){var r=e.value;if("extras"!==r&&"picture"!==r){var a=this[r];if(a instanceof n.XFAObject)return this[n.$extra]=a,a}}}catch(i){t.e(i)}finally{t.f()}this[n.$extra]=null}return this[n.$extra]}},{key:r,value:function(e){var t=this[n.$getExtra]();return t?t[n.$toHTML](e):l.HTMLResult.EMPTY}}]),i}(n.XFAObject,n.$getExtra,n.$toHTML),zt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,y,"validate",!0),a.formatTest=(0,l.getStringOption)(e.formatTest,["warning","disabled","error"]),a.id=e.id||"",a.nullTest=(0,l.getStringOption)(e.nullTest,["disabled","error","warning"]),a.scriptTest=(0,l.getStringOption)(e.scriptTest,["error","disabled","warning"]),a.use=e.use||"",a.usehref=e.usehref||"",a.extras=null,a.message=null,a.picture=null,a.script=null,a}return S(r)}(n.XFAObject),Wt=function(e,t,r,a){v(o,e);var i=g(o);function o(e){var t;return _(this,o),t=i.call(this,y,"value",!0),t.id=e.id||"",t.override=(0,l.getInteger)({data:e.override,defaultValue:0,validate:function(e){return 1===e}}),t.relevant=(0,l.getRelevant)(e.relevant),t.use=e.use||"",t.usehref=e.usehref||"",t.arc=null,t["boolean"]=null,t.date=null,t.dateTime=null,t.decimal=null,t.exData=null,t["float"]=null,t.image=null,t.integer=null,t.line=null,t.rectangle=null,t.text=null,t.time=null,t}return S(o,[{key:t,value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){var t=this[n.$getParent]();if(t instanceof Be&&t.ui&&t.ui.imageEdit)return this.image||(this.image=new ze({}),this[n.$appendChild](this.image)),void(this.image[n.$content]=e[n.$content]);var r=e[n.$nodeName];if(null===this[r]){var a,i=b(Object.getOwnPropertyNames(this));try{for(i.s();!(a=i.n()).done;){var o=a.value,s=this[o];s instanceof n.XFAObject&&(this[o]=null,this[n.$removeChild](s))}}catch(l){i.e(l)}finally{i.f()}this[e[n.$nodeName]]=e,this[n.$appendChild](e)}else this[r][n.$content]=e[n.$content]}))},{key:r,value:function(){if(this.exData)return"string"===typeof this.exData[n.$content]?this.exData[n.$content].trim():this.exData[n.$content][n.$text]().trim();var e,t=b(Object.getOwnPropertyNames(this));try{for(t.s();!(e=t.n()).done;){var r=e.value;if("image"!==r){var a=this[r];if(a instanceof n.XFAObject)return(a[n.$content]||"").toString().trim()}}}catch(i){t.e(i)}finally{t.f()}return null}},{key:a,value:function(e){var t,r=b(Object.getOwnPropertyNames(this));try{for(r.s();!(t=r.n()).done;){var a=t.value,i=this[a];if(i instanceof n.XFAObject)return i[n.$toHTML](e)}}catch(o){r.e(o)}finally{r.f()}return l.HTMLResult.EMPTY}}]),o}(n.XFAObject,n.$setValue,n.$text,n.$toHTML);t.Value=Wt;var Vt=function(e,t){v(a,e);var r=g(a);function a(e){var t;return _(this,a),t=r.call(this,y,"variables",!0),t.id=e.id||"",t.use=e.use||"",t.usehref=e.usehref||"",t["boolean"]=new n.XFAObjectArray,t.date=new n.XFAObjectArray,t.dateTime=new n.XFAObjectArray,t.decimal=new n.XFAObjectArray,t.exData=new n.XFAObjectArray,t["float"]=new n.XFAObjectArray,t.image=new n.XFAObjectArray,t.integer=new n.XFAObjectArray,t.manifest=new n.XFAObjectArray,t.script=new n.XFAObjectArray,t.text=new n.XFAObjectArray,t.time=new n.XFAObjectArray,t}return S(a,[{key:t,value:function(){return!0}}]),a}(n.XFAObject,n.$isTransparent),Yt=function(e){function t(){_(this,t)}return S(t,null,[{key:e,value:function(e,r){if(t.hasOwnProperty(e)){var a=t[e](r);return a[n.$setSetAttributes](r),a}}},{key:"appearanceFilter",value:function(e){return new X(e)}},{key:"arc",value:function(e){return new $(e)}},{key:"area",value:function(e){return new z(e)}},{key:"assist",value:function(e){return new W(e)}},{key:"barcode",value:function(e){return new V(e)}},{key:"bind",value:function(e){return new Y(e)}},{key:"bindItems",value:function(e){return new K(e)}},{key:"bookend",value:function(e){return new J(e)}},{key:"boolean",value:function(e){return new Z(e)}},{key:"border",value:function(e){return new Q(e)}},{key:"break",value:function(e){return new ee(e)}},{key:"breakAfter",value:function(e){return new te(e)}},{key:"breakBefore",value:function(e){return new re(e)}},{key:"button",value:function(e){return new ae(e)}},{key:"calculate",value:function(e){return new ne(e)}},{key:"caption",value:function(e){return new ie(e)}},{key:"certificate",value:function(e){return new oe(e)}},{key:"certificates",value:function(e){return new se(e)}},{key:"checkButton",value:function(e){return new le(e)}},{key:"choiceList",value:function(e){return new ce(e)}},{key:"color",value:function(e){return new ue(e)}},{key:"comb",value:function(e){return new he(e)}},{key:"connect",value:function(e){return new de(e)}},{key:"contentArea",value:function(e){return new fe(e)}},{key:"corner",value:function(e){return new pe(e)}},{key:"date",value:function(e){return new ve(e)}},{key:"dateTime",value:function(e){return new ge(e)}},{key:"dateTimeEdit",value:function(e){return new me(e)}},{key:"decimal",value:function(e){return new ye(e)}},{key:"defaultUi",value:function(e){return new be(e)}},{key:"desc",value:function(e){return new ke(e)}},{key:"digestMethod",value:function(e){return new we(e)}},{key:"digestMethods",value:function(e){return new _e(e)}},{key:"draw",value:function(e){return new Se(e)}},{key:"edge",value:function(e){return new xe(e)}},{key:"encoding",value:function(e){return new Ae(e)}},{key:"encodings",value:function(e){return new Ce(e)}},{key:"encrypt",value:function(e){return new Fe(e)}},{key:"encryptData",value:function(e){return new Pe(e)}},{key:"encryption",value:function(e){return new Te(e)}},{key:"encryptionMethod",value:function(e){return new Oe(e)}},{key:"encryptionMethods",value:function(e){return new Ie(e)}},{key:"event",value:function(e){return new Ee(e)}},{key:"exData",value:function(e){return new Me(e)}},{key:"exObject",value:function(e){return new Re(e)}},{key:"exclGroup",value:function(e){return new De(e)}},{key:"execute",value:function(e){return new Ne(e)}},{key:"extras",value:function(e){return new Le(e)}},{key:"field",value:function(e){return new Be(e)}},{key:"fill",value:function(e){return new je(e)}},{key:"filter",value:function(e){return new Ue(e)}},{key:"float",value:function(e){return new qe(e)}},{key:"font",value:function(e){return new Ge(e)}},{key:"format",value:function(e){return new He(e)}},{key:"handler",value:function(e){return new Xe(e)}},{key:"hyphenation",value:function(e){return new $e(e)}},{key:"image",value:function(e){return new ze(e)}},{key:"imageEdit",value:function(e){return new We(e)}},{key:"integer",value:function(e){return new Ve(e)}},{key:"issuers",value:function(e){return new Ye(e)}},{key:"items",value:function(e){return new Ke(e)}},{key:"keep",value:function(e){return new Je(e)}},{key:"keyUsage",value:function(e){return new Ze(e)}},{key:"line",value:function(e){return new Qe(e)}},{key:"linear",value:function(e){return new et(e)}},{key:"lockDocument",value:function(e){return new tt(e)}},{key:"manifest",value:function(e){return new rt(e)}},{key:"margin",value:function(e){return new at(e)}},{key:"mdp",value:function(e){return new nt(e)}},{key:"medium",value:function(e){return new it(e)}},{key:"message",value:function(e){return new ot(e)}},{key:"numericEdit",value:function(e){return new st(e)}},{key:"occur",value:function(e){return new lt(e)}},{key:"oid",value:function(e){return new ct(e)}},{key:"oids",value:function(e){return new ut(e)}},{key:"overflow",value:function(e){return new ht(e)}},{key:"pageArea",value:function(e){return new dt(e)}},{key:"pageSet",value:function(e){return new ft(e)}},{key:"para",value:function(e){return new pt(e)}},{key:"passwordEdit",value:function(e){return new vt(e)}},{key:"pattern",value:function(e){return new gt(e)}},{key:"picture",value:function(e){return new mt(e)}},{key:"proto",value:function(e){return new yt(e)}},{key:"radial",value:function(e){return new bt(e)}},{key:"reason",value:function(e){return new kt(e)}},{key:"reasons",value:function(e){return new wt(e)}},{key:"rectangle",value:function(e){return new _t(e)}},{key:"ref",value:function(e){return new St(e)}},{key:"script",value:function(e){return new xt(e)}},{key:"setProperty",value:function(e){return new At(e)}},{key:"signData",value:function(e){return new Ct(e)}},{key:"signature",value:function(e){return new Ft(e)}},{key:"signing",value:function(e){return new Pt(e)}},{key:"solid",value:function(e){return new Tt(e)}},{key:"speak",value:function(e){return new Ot(e)}},{key:"stipple",value:function(e){return new It(e)}},{key:"subform",value:function(e){return new Et(e)}},{key:"subformSet",value:function(e){return new Mt(e)}},{key:"subjectDN",value:function(e){return new Rt(e)}},{key:"subjectDNs",value:function(e){return new Dt(e)}},{key:"submit",value:function(e){return new Nt(e)}},{key:"template",value:function(e){return new Lt(e)}},{key:"text",value:function(e){return new Bt(e)}},{key:"textEdit",value:function(e){return new jt(e)}},{key:"time",value:function(e){return new Ut(e)}},{key:"timeStamp",value:function(e){return new qt(e)}},{key:"toolTip",value:function(e){return new Gt(e)}},{key:"traversal",value:function(e){return new Ht(e)}},{key:"traverse",value:function(e){return new Xt(e)}},{key:"ui",value:function(e){return new $t(e)}},{key:"validate",value:function(e){return new zt(e)}},{key:"value",value:function(e){return new Wt(e)}},{key:"variables",value:function(e){return new Vt(e)}}]),t}(i.$buildXFAObject);t.TemplateNamespace=Yt},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addHTML=s,t.checkDimensions=u,t.flushHTML=o,t.getAvailableSpace=l;var a=r(202),n=r(209);function i(e,t){return{name:"div",attributes:{class:["lr-tb"===e.layout?"xfaLr":"xfaRl"]},children:t}}function o(e){if(!e[a.$extra])return null;var t=e[a.$extra].attributes,r={name:"div",attributes:t,children:e[a.$extra].children};if(e[a.$extra].failingNode){var n=e[a.$extra].failingNode[a.$flushHTML]();n&&(e.layout.endsWith("-tb")?r.children.push(i(e,[n])):r.children.push(n))}return 0===r.children.length?null:r}function s(e,t,r){var o=e[a.$extra],s=o.availableSpace,l=k(r,4),c=l[0],u=l[1],h=l[2],d=l[3];switch(e.layout){case"position":o.width=Math.max(o.width,c+h),o.height=Math.max(o.height,u+d),o.children.push(t);break;case"lr-tb":case"rl-tb":o.line&&1!==o.attempt||(o.line=i(e,[]),o.children.push(o.line),o.numberInLine=0),o.numberInLine+=1,o.line.children.push(t),0===o.attempt?(o.currentWidth+=h,o.height=Math.max(o.height,o.prevHeight+d)):(o.currentWidth=h,o.prevHeight=o.height,o.height+=d,o.attempt=0),o.width=Math.max(o.width,o.currentWidth);break;case"rl-row":case"row":o.children.push(t),o.width+=h,o.height=Math.max(o.height,d);var f,p=(0,n.measureToString)(o.height),v=b(o.children);try{for(v.s();!(f=v.n()).done;){var g=f.value;g.attributes.style.height=p}}catch(m){v.e(m)}finally{v.f()}break;case"table":o.width=Math.min(s.width,Math.max(o.width,h)),o.height+=d,o.children.push(t);break;case"tb":o.width=Math.min(s.width,Math.max(o.width,h)),o.height+=d,o.children.push(t);break}}function l(e){var t=e[a.$extra].availableSpace,r=e.margin?e.margin.topInset+e.margin.bottomInset:0,n=e.margin?e.margin.leftInset+e.margin.rightInset:0;switch(e.layout){case"lr-tb":case"rl-tb":return 0===e[a.$extra].attempt?{width:t.width-n-e[a.$extra].currentWidth,height:t.height-r-e[a.$extra].prevHeight}:{width:t.width-n,height:t.height-r-e[a.$extra].height};case"rl-row":case"row":var i=e[a.$extra].columnWidths.slice(e[a.$extra].currentColumn).reduce((function(e,t){return e+t}));return{width:i,height:t.height-n};case"table":case"tb":return{width:t.width-n,height:t.height-r-e[a.$extra].height};case"position":default:return t}}function c(e){var t,r,a=""===e.w?NaN:e.w,n=""===e.h?NaN:e.h,i=0,o=0;switch(e.anchorType||""){case"bottomCenter":i=a/2,o=n;break;case"bottomLeft":i=0,o=n;break;case"bottomRight":i=a,o=n;break;case"middleCenter":i=a/2,o=n/2;break;case"middleLeft":i=0,o=n/2;break;case"middleRight":i=a,o=n/2;break;case"topCenter":i=a/2,o=0;break;case"topRight":i=a,o=0;break}switch(e.rotate||0){case 0:t=-i,r=-o;break;case 90:t=-o,r=i;var s=[n,-a];a=s[0],n=s[1];break;case 180:t=i,r=o;var l=[-a,-n];a=l[0],n=l[1];break;case 270:t=o,r=-i;var c=[-n,a];a=c[0],n=c[1];break}return[e.x+t+Math.min(0,a),e.y+r+Math.min(0,n),Math.abs(a),Math.abs(n)]}function u(e,t){if(null===e[a.$getTemplateRoot]()[a.$extra].firstUnsplittable)return!0;if(0===e.w||0===e.h)return!0;var r=2,n=e[a.$getSubformParent](),i=n[a.$extra]&&n[a.$extra].attempt||0,o=c(e),s=k(o,4),l=s[1],u=s[2],h=s[3];switch(n.layout){case"lr-tb":case"rl-tb":return 0===i?e[a.$getTemplateRoot]()[a.$extra].noLayoutFailure?""!==e.w?Math.round(u-t.width)<=r:t.width>r:!(""!==e.h&&Math.round(h-t.height)>r)&&(""!==e.w?Math.round(u-t.width)<=r||0===n[a.$extra].numberInLine&&t.height>r:t.width>r):!!e[a.$getTemplateRoot]()[a.$extra].noLayoutFailure||!(""!==e.h&&Math.round(h-t.height)>r)&&((""===e.w||Math.round(u-t.width)<=r||!n[a.$isThereMoreWidth]())&&t.height>r);case"table":case"tb":return!!e[a.$getTemplateRoot]()[a.$extra].noLayoutFailure||(""===e.h||e[a.$isSplittable]()?(""===e.w||Math.round(u-t.width)<=r||!n[a.$isThereMoreWidth]())&&t.height>r:Math.round(h-t.height)<=r);case"position":if(e[a.$getTemplateRoot]()[a.$extra].noLayoutFailure)return!0;if(""===e.h||Math.round(h+l-t.height)<=r)return!0;var d=e[a.$getTemplateRoot]()[a.$extra].currentContentArea;return h+l>d.h;case"rl-row":case"row":return!!e[a.$getTemplateRoot]()[a.$extra].noLayoutFailure||(""===e.h||Math.round(h-t.height)<=r);default:return!0}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.computeBbox=f,t.createWrapper=m,t.fixDimensions=p,t.fixTextIndent=y,t.fixURL=A,t.isPrintOnly=w,t.layoutClass=v,t.layoutNode=d,t.measureToString=l,t.setAccess=b,t.setFontFamily=x,t.setMinMaxDimensions=u,t.setPara=S,t.toStyle=g;var a=r(202),n=r(2),i=r(203),o=r(210),s=r(211);function l(e){return"string"===typeof e?"0px":Number.isInteger(e)?"".concat(e,"px"):"".concat(e.toFixed(2),"px")}var c={anchorType:function(e,t){var r=e[a.$getSubformParent]();if(r&&(!r.layout||"position"===r.layout))switch("transform"in t||(t.transform=""),e.anchorType){case"bottomCenter":t.transform+="translate(-50%, -100%)";break;case"bottomLeft":t.transform+="translate(0,-100%)";break;case"bottomRight":t.transform+="translate(-100%,-100%)";break;case"middleCenter":t.transform+="translate(-50%,-50%)";break;case"middleLeft":t.transform+="translate(0,-50%)";break;case"middleRight":t.transform+="translate(-100%,-50%)";break;case"topCenter":t.transform+="translate(-50%,0)";break;case"topRight":t.transform+="translate(-100%,0)";break}},dimensions:function(e,t){var r=e[a.$getSubformParent](),n=e.w,i=e.h;if(r.layout&&r.layout.includes("row")){var o,s=r[a.$extra],c=e.colSpan;-1===c?(o=s.columnWidths.slice(s.currentColumn).reduce((function(e,t){return e+t}),0),s.currentColumn=0):(o=s.columnWidths.slice(s.currentColumn,s.currentColumn+c).reduce((function(e,t){return e+t}),0),s.currentColumn=(s.currentColumn+e.colSpan)%s.columnWidths.length),isNaN(o)||(n=e.w=o)}t.width=""!==n?l(n):"auto",t.height=""!==i?l(i):"auto"},position:function(e,t){var r=e[a.$getSubformParent]();r&&r.layout&&"position"!==r.layout||(t.position="absolute",t.left=l(e.x),t.top=l(e.y))},rotate:function(e,t){e.rotate&&("transform"in t||(t.transform=""),t.transform+="rotate(-".concat(e.rotate,"deg)"),t.transformOrigin="top left")},presence:function(e,t){switch(e.presence){case"invisible":t.visibility="hidden";break;case"hidden":case"inactive":t.display="none";break}},hAlign:function(e,t){if("para"===e[a.$nodeName])switch(e.hAlign){case"justifyAll":t.textAlign="justify-all";break;case"radix":t.textAlign="left";break;default:t.textAlign=e.hAlign}else switch(e.hAlign){case"left":t.alignSelf="start";break;case"center":t.alignSelf="center";break;case"right":t.alignSelf="end";break}},margin:function(e,t){e.margin&&(t.margin=e.margin[a.$toStyle]().margin)}};function u(e,t){var r=e[a.$getSubformParent]();"position"===r.layout&&(e.minW>0&&(t.minWidth=l(e.minW)),e.maxW>0&&(t.maxWidth=l(e.maxW)),e.minH>0&&(t.minHeight=l(e.minH)),e.maxH>0&&(t.maxHeight=l(e.maxH)))}function h(e,t,r,n,i,o){var l=new s.TextMeasure(t,r,n,i);return"string"===typeof e?l.addString(e):e[a.$pushGlyphs](l),l.compute(o)}function d(e,t){var r=null,n=null,i=!1;if((!e.w||!e.h)&&e.value){var o=0,s=0;e.margin&&(o=e.margin.leftInset+e.margin.rightInset,s=e.margin.topInset+e.margin.bottomInset);var l=null,c=null;e.para&&(c=Object.create(null),l=""===e.para.lineHeight?null:e.para.lineHeight,c.top=""===e.para.spaceAbove?0:e.para.spaceAbove,c.bottom=""===e.para.spaceBelow?0:e.para.spaceBelow,c.left=""===e.para.marginLeft?0:e.para.marginLeft,c.right=""===e.para.marginRight?0:e.para.marginRight);var u=e.font;if(!u){var d=e[a.$getTemplateRoot](),f=e[a.$getParent]();while(f&&f!==d){if(f.font){u=f.font;break}f=f[a.$getParent]()}}var p=(e.w||t.width)-o,v=e[a.$globalData].fontFinder;if(e.value.exData&&e.value.exData[a.$content]&&"text/html"===e.value.exData.contentType){var g=h(e.value.exData[a.$content],u,c,l,v,p);n=g.width,r=g.height,i=g.isBroken}else{var m=e.value[a.$text]();if(m){var y=h(m,u,c,l,v,p);n=y.width,r=y.height,i=y.isBroken}}null===n||e.w||(n+=o),null===r||e.h||(r+=s)}return{w:n,h:r,isBroken:i}}function f(e,t,r){var n;if(""!==e.w&&""!==e.h)n=[e.x,e.y,e.w,e.h];else{if(!r)return null;var i=e.w;if(""===i){if(0===e.maxW){var o=e[a.$getSubformParent]();i="position"===o.layout&&""!==o.w?0:e.minW}else i=Math.min(e.maxW,r.width);t.attributes.style.width=l(i)}var s=e.h;if(""===s){if(0===e.maxH){var c=e[a.$getSubformParent]();s="position"===c.layout&&""!==c.h?0:e.minH}else s=Math.min(e.maxH,r.height);t.attributes.style.height=l(s)}n=[e.x,e.y,i,s]}return n}function p(e){var t=e[a.$getSubformParent]();if(t.layout&&t.layout.includes("row")){var r,n=t[a.$extra],i=e.colSpan;r=-1===i?n.columnWidths.slice(n.currentColumn).reduce((function(e,t){return e+t}),0):n.columnWidths.slice(n.currentColumn,n.currentColumn+i).reduce((function(e,t){return e+t}),0),isNaN(r)||(e.w=r)}t.layout&&"position"!==t.layout&&(e.x=e.y=0),"table"===e.layout&&""===e.w&&Array.isArray(e.columnWidths)&&(e.w=e.columnWidths.reduce((function(e,t){return e+t}),0))}function v(e){switch(e.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(e){for(var t=Object.create(null),r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];for(var s=0,l=i;s<l.length;s++){var u=l[s],h=e[u];if(null!==h)if(c.hasOwnProperty(u))c[u](e,t);else if(h instanceof a.XFAObject){var d=h[a.$toStyle]();d?Object.assign(t,d):(0,n.warn)("(DEBUG) - XFA - style for ".concat(u," not implemented yet"))}}return t}function m(e,t){var r=t.attributes,n=r.style,i={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};if(r["class"].push("xfaWrapped"),e.border){var o,s,l=e.border[a.$extra],c=l.widths,u=l.insets,h=u[0],d=u[3],f=u[0]+u[2],p=u[1]+u[3];switch(e.border.hand){case"even":h-=c[0]/2,d-=c[3]/2,o="calc(100% + ".concat((c[1]+c[3])/2-p,"px)"),s="calc(100% + ".concat((c[0]+c[2])/2-f,"px)");break;case"left":h-=c[0],d-=c[3],o="calc(100% + ".concat(c[1]+c[3]-p,"px)"),s="calc(100% + ".concat(c[0]+c[2]-f,"px)");break;case"right":o=p?"calc(100% - ".concat(p,"px)"):"100%",s=f?"calc(100% - ".concat(f,"px)"):"100%";break}var v=["xfaBorder"];w(e.border)&&v.push("xfaPrintOnly");for(var g={name:"div",attributes:{class:v,style:{top:"".concat(h,"px"),left:"".concat(d,"px"),width:o,height:s}},children:[]},m=0,y=["border","borderWidth","borderColor","borderRadius","borderStyle"];m<y.length;m++){var b=y[m];void 0!==n[b]&&(g.attributes.style[b]=n[b],delete n[b])}i.children.push(g,t)}else i.children.push(t);for(var k=0,_=["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"];k<_.length;k++){var S=_[k];void 0!==n[S]&&(i.attributes.style[S]=n[S],delete n[S])}return"absolute"===n.position?i.attributes.style.position="absolute":i.attributes.style.position="relative",delete n.position,n.alignSelf&&(i.attributes.style.alignSelf=n.alignSelf,delete n.alignSelf),i}function y(e){var t=(0,i.getMeasurement)(e.textIndent,"0px");if(!(t>=0)){var r="right"===e.textAlign?"right":"left",a="padding"+("left"===r?"Left":"Right"),n=(0,i.getMeasurement)(e[a],"0px");e[a]="".concat(n-t,"px")}}function b(e,t){switch(e.access){case"nonInteractive":t.push("xfaNonInteractive");break;case"readOnly":t.push("xfaReadOnly");break;case"protected":t.push("xfaDisabled");break}}function w(e){return e.relevant.length>0&&!e.relevant[0].excluded&&"print"===e.relevant[0].viewname}function _(e){var t=e[a.$getTemplateRoot]()[a.$extra].paraStack;return t.length?t.at(-1):null}function S(e,t,r){if(r.attributes["class"]&&r.attributes["class"].includes("xfaRich")){t&&(""===e.h&&(t.height="auto"),""===e.w&&(t.width="auto"));var n=_(e);if(n){var i=r.attributes.style;switch(i.display="flex",i.flexDirection="column",n.vAlign){case"top":i.justifyContent="start";break;case"bottom":i.justifyContent="end";break;case"middle":i.justifyContent="center";break}for(var o=n[a.$toStyle](),s=0,l=Object.entries(o);s<l.length;s++){var c=k(l[s],2),u=c[0],h=c[1];u in i||(i[u]=h)}}}}function x(e,t,r,a){if(r){var n=(0,i.stripQuotes)(e.typeface);a.fontFamily='"'.concat(n,'"');var s=r.find(n);if(s){var l=s.regular.cssFontInfo.fontFamily;l!==n&&(a.fontFamily='"'.concat(l,'"'));var c=_(t);if(c&&""!==c.lineHeight)return;if(a.lineHeight)return;var u=(0,o.selectFont)(e,s);u&&(a.lineHeight=Math.max(1.2,u.lineHeight))}}else delete a.fontFamily}function A(e){var t=(0,n.createValidAbsoluteUrl)(e,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return t?t.href:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontFinder=void 0,t.getMetrics=l,t.selectFont=s;var a=r(202),n=r(203),i=r(2),o=function(){function e(t){_(this,e),this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(t)}return S(e,[{key:"add",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=b(e);try{for(a.s();!(t=a.n()).done;){var n=t.value;this.addPdfFont(n)}}catch(d){a.e(d)}finally{a.f()}var i,o=b(this.fonts.values());try{for(o.s();!(i=o.n()).done;){var s=i.value;s.regular||(s.regular=s.italic||s.bold||s.bolditalic)}}catch(d){o.e(d)}finally{o.f()}if(r&&0!==r.size){var l,c=this.fonts.get("PdfJS-Fallback-PdfJS-XFA"),u=b(r);try{for(u.s();!(l=u.n()).done;){var h=l.value;this.fonts.set(h,c)}}catch(d){u.e(d)}finally{u.f()}}}},{key:"addPdfFont",value:function(e){var t=e.cssFontInfo,r=t.fontFamily,a=this.fonts.get(r);a||(a=Object.create(null),this.fonts.set(r,a),this.defaultFont||(this.defaultFont=a));var n="",i=parseFloat(t.fontWeight);0!==parseFloat(t.italicAngle)?n=i>=700?"bolditalic":"italic":i>=700&&(n="bold"),n||((e.name.includes("Bold")||e.psName&&e.psName.includes("Bold"))&&(n="bold"),(e.name.includes("Italic")||e.name.endsWith("It")||e.psName&&(e.psName.includes("Italic")||e.psName.endsWith("It")))&&(n+="italic")),n||(n="regular"),a[n]=e}},{key:"getDefault",value:function(){return this.defaultFont}},{key:"find",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.fonts.get(e)||this.cache.get(e);if(r)return r;var a=/,|-|_| |bolditalic|bold|italic|regular|it/gi,n=e.replace(a,"");if(r=this.fonts.get(n),r)return this.cache.set(e,r),r;n=n.toLowerCase();var o,s=[],l=b(this.fonts.entries());try{for(l.s();!(o=l.n()).done;){var c=k(o.value,2),u=c[0],h=c[1];u.replace(a,"").toLowerCase().startsWith(n)&&s.push(h)}}catch(C){l.e(C)}finally{l.f()}if(0===s.length){var d,f=b(this.fonts.entries());try{for(f.s();!(d=f.n()).done;){var p=k(d.value,2),v=p[1];v.regular.name&&v.regular.name.replace(a,"").toLowerCase().startsWith(n)&&s.push(v)}}catch(C){f.e(C)}finally{f.f()}}if(0===s.length){n=n.replace(/psmt|mt/gi,"");var g,m=b(this.fonts.entries());try{for(m.s();!(g=m.n()).done;){var y=k(g.value,2),w=y[0],_=y[1];w.replace(a,"").toLowerCase().startsWith(n)&&s.push(_)}}catch(C){m.e(C)}finally{m.f()}}if(0===s.length){var S,x=b(this.fonts.values());try{for(x.s();!(S=x.n()).done;){var A=S.value;A.regular.name&&A.regular.name.replace(a,"").toLowerCase().startsWith(n)&&s.push(A)}}catch(C){x.e(C)}finally{x.f()}}return s.length>=1?(1!==s.length&&t&&(0,i.warn)("XFA - Too many choices to guess the correct font: ".concat(e)),this.cache.set(e,s[0]),s[0]):(t&&!this.warned.has(e)&&(this.warned.add(e),(0,i.warn)("XFA - Cannot find the font: ".concat(e))),null)}}]),e}();function s(e,t){return"italic"===e.posture?"bold"===e.weight?t.bolditalic:t.italic:"bold"===e.weight?t.bold:t.regular}function l(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null;if(e){var i=(0,n.stripQuotes)(e.typeface),o=e[a.$globalData].fontFinder.find(i);r=s(e,o)}if(!r)return{lineHeight:12,lineGap:2,lineNoGap:10};var l=e.size||10,c=r.lineHeight?Math.max(t?0:1.2,r.lineHeight):1.2,u=void 0===r.lineGap?.2:r.lineGap;return{lineHeight:c*l,lineGap:u*l,lineNoGap:Math.max(1,c-u)*l}}t.FontFinder=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextMeasure=void 0;var a=r(210),n=1.02,i=function(){function e(t,r,n,i){if(_(this,e),this.lineHeight=n,this.paraMargin=r||{top:0,bottom:0,left:0,right:0},!t){var o=this.defaultFont(i),s=k(o,2);return this.pdfFont=s[0],void(this.xfaFont=s[1])}this.xfaFont={typeface:t.typeface,posture:t.posture,weight:t.weight,size:t.size,letterSpacing:t.letterSpacing};var l=i.find(t.typeface);if(!l){var c=this.defaultFont(i),u=k(c,2);return this.pdfFont=u[0],void(this.xfaFont=u[1])}if(this.pdfFont=(0,a.selectFont)(t,l),!this.pdfFont){var h=this.defaultFont(i),d=k(h,2);this.pdfFont=d[0],this.xfaFont=d[1]}}return S(e,[{key:"defaultFont",value:function(e){var t=e.find("Helvetica",!1)||e.find("Myriad Pro",!1)||e.find("Arial",!1)||e.getDefault();if(t&&t.regular){var r=t.regular,a=r.cssFontInfo,n={typeface:a.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0};return[r,n]}var i={typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0};return[null,i]}}]),e}(),o=function(){function e(t,r,a,n){_(this,e),this.fontFinder=n,this.stack=[new i(t,r,a,n)]}return S(e,[{key:"pushData",value:function(e,t,r){for(var a=this.stack.at(-1),n=0,o=["typeface","posture","weight","size","letterSpacing"];n<o.length;n++){var s=o[n];e[s]||(e[s]=a.xfaFont[s])}for(var l=0,c=["top","bottom","left","right"];l<c.length;l++){var u=c[l];isNaN(t[u])&&(t[u]=a.paraMargin[u])}var h=new i(e,t,r||a.lineHeight,this.fontFinder);h.pdfFont||(h.pdfFont=a.pdfFont),this.stack.push(h)}},{key:"popFont",value:function(){this.stack.pop()}},{key:"topFont",value:function(){return this.stack.at(-1)}}]),e}(),s=function(){function e(t,r,a,n){_(this,e),this.glyphs=[],this.fontSelector=new o(t,r,a,n),this.extraHeight=0}return S(e,[{key:"pushData",value:function(e,t,r){this.fontSelector.pushData(e,t,r)}},{key:"popFont",value:function(e){return this.fontSelector.popFont()}},{key:"addPara",value:function(){var e=this.fontSelector.topFont();this.extraHeight+=e.paraMargin.top+e.paraMargin.bottom}},{key:"addString",value:function(e){if(e){var t=this.fontSelector.topFont(),r=t.xfaFont.size;if(t.pdfFont){var a,n=t.xfaFont.letterSpacing,i=t.pdfFont,o=i.lineHeight||1.2,s=t.lineHeight||Math.max(1.2,o)*r,l=void 0===i.lineGap?.2:i.lineGap,c=o-l,u=Math.max(1,c)*r,h=r/1e3,d=i.defaultWidth||i.charsToGlyphs(" ")[0].width,f=b(e.split(/[\u2029\n]/));try{for(f.s();!(a=f.n()).done;){var p,v=a.value,g=i.encodeString(v).join(""),m=i.charsToGlyphs(g),y=b(m);try{for(y.s();!(p=y.n()).done;){var k=p.value,w=k.width||d;this.glyphs.push([w*h+n,s,u,k.unicode,!1])}}catch(P){y.e(P)}finally{y.f()}this.glyphs.push([0,0,0,"\n",!0])}}catch(P){f.e(P)}finally{f.f()}this.glyphs.pop()}else{var _,S=b(e.split(/[\u2029\n]/));try{for(S.s();!(_=S.n()).done;){var x,A=_.value,C=b(A.split(""));try{for(C.s();!(x=C.n()).done;){var F=x.value;this.glyphs.push([r,1.2*r,r,F,!1])}}catch(P){C.e(P)}finally{C.f()}this.glyphs.push([0,0,0,"\n",!0])}}catch(P){S.e(P)}finally{S.f()}this.glyphs.pop()}}}},{key:"compute",value:function(e){for(var t=-1,r=0,a=0,i=0,o=0,s=0,l=!1,c=!0,u=0,h=this.glyphs.length;u<h;u++){var d=k(this.glyphs[u],5),f=d[0],p=d[1],v=d[2],g=d[3],m=d[4],y=" "===g,b=c?v:p;m?(a=Math.max(a,o),o=0,i+=s,s=b,t=-1,r=0,c=!1):y?o+f>e?(a=Math.max(a,o),o=0,i+=s,s=b,t=-1,r=0,l=!0,c=!1):(s=Math.max(b,s),r=o,o+=f,t=u):o+f>e?(i+=s,s=b,-1!==t?(u=t,a=Math.max(a,r),o=0,t=-1,r=0):(a=Math.max(a,o),o=f),l=!0,c=!1):(o+=f,s=Math.max(b,s))}return a=Math.max(a,o),i+=s+this.extraHeight,{width:n*a,height:i,isBroken:l}}}]),e}();t.TextMeasure=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataHandler=void 0;var a=r(202),n=function(){function e(t,r){_(this,e),this.data=r,this.dataset=t.datasets||null}return S(e,[{key:"serialize",value:function(e){var t=[[-1,this.data[a.$getChildren]()]];while(t.length>0){var r=t.at(-1),n=k(r,2),i=n[0],o=n[1];if(i+1!==o.length){var s=o[++r[0]],l=e.get(s[a.$uid]);if(l)s[a.$setValue](l);else{var c,u=s[a.$getAttributes](),h=b(u.values());try{for(h.s();!(c=h.n()).done;){var d=c.value,f=e.get(d[a.$uid]);if(f){d[a.$setValue](f);break}}}catch(w){h.e(w)}finally{h.f()}}var p=s[a.$getChildren]();p.length>0&&t.push([-1,p])}else t.pop()}var v=['<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">'];if(this.dataset){var g,m=b(this.dataset[a.$getChildren]());try{for(m.s();!(g=m.n()).done;){var y=g.value;"data"!==y[a.$nodeName]&&y[a.$toString](v)}}catch(w){m.e(w)}finally{m.f()}}return this.data[a.$toString](v),v.push("</xfa:datasets>"),v.join("")}}]),e}();t.DataHandler=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XFAParser=void 0;var a=r(202),n=r(191),i=r(214),o=r(2),s=function(e){v(r,e);var t=g(r);function r(){var e;_(this,r);var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=t.call(this),e._builder=new i.Builder(a),e._stack=[],e._globalData={usedTypefaces:new Set},e._ids=new Map,e._current=e._builder.buildRoot(e._ids),e._errorCode=n.XMLParserErrorCode.NoError,e._whiteRegex=/^\s+$/,e._nbsps=/\xa0+/g,e._richText=o,e}return S(r,[{key:"parse",value:function(e){if(this.parseXml(e),this._errorCode===n.XMLParserErrorCode.NoError)return this._current[a.$finalize](),this._current.element}},{key:"onText",value:function(e){e=e.replace(this._nbsps,(function(e){return e.slice(1)+" "})),this._richText||this._current[a.$acceptWhitespace]()?this._current[a.$onText](e,this._richText):this._whiteRegex.test(e)||this._current[a.$onText](e.trim())}},{key:"onCdata",value:function(e){this._current[a.$onText](e)}},{key:"_mkAttributes",value:function(e,t){var r,n=null,i=null,s=Object.create({}),l=b(e);try{for(l.s();!(r=l.n()).done;){var c=r.value,u=c.name,h=c.value;if("xmlns"===u)n?(0,o.warn)("XFA - multiple namespace definition in <".concat(t,">")):n=h;else if(u.startsWith("xmlns:")){var d=u.substring("xmlns:".length);i||(i=[]),i.push({prefix:d,value:h})}else{var f=u.indexOf(":");if(-1===f)s[u]=h;else{var p=s[a.$nsAttributes];p||(p=s[a.$nsAttributes]=Object.create(null));var v=[u.slice(0,f),u.slice(f+1)],g=v[0],m=v[1],y=p[g];y||(y=p[g]=Object.create(null)),y[m]=h}}}}catch(k){l.e(k)}finally{l.f()}return[n,i,s]}},{key:"_getNameAndPrefix",value:function(e,t){var r=e.indexOf(":");return-1===r?[e,null]:[e.substring(r+1),t?"":e.substring(0,r)]}},{key:"onBeginElement",value:function(e,t,r){var n=this._mkAttributes(t,e),i=k(n,3),o=i[0],s=i[1],l=i[2],c=this._getNameAndPrefix(e,this._builder.isNsAgnostic()),u=k(c,2),h=u[0],d=u[1],f=this._builder.build({nsPrefix:d,name:h,attributes:l,namespace:o,prefixes:s});if(f[a.$globalData]=this._globalData,r)return f[a.$finalize](),this._current[a.$onChild](f)&&f[a.$setId](this._ids),void f[a.$clean](this._builder);this._stack.push(this._current),this._current=f}},{key:"onEndElement",value:function(e){var t=this._current;if(t[a.$isCDATAXml]()&&"string"===typeof t[a.$content]){var n=new r;n._globalData=this._globalData;var i=n.parse(t[a.$content]);t[a.$content]=null,t[a.$onChild](i)}t[a.$finalize](),this._current=this._stack.pop(),this._current[a.$onChild](t)&&t[a.$setId](this._ids),t[a.$clean](this._builder)}},{key:"onError",value:function(e){this._errorCode=e}}]),r}(n.XMLParserBase);t.XFAParser=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Builder=void 0;var a=r(204),n=r(202),i=r(215),o=r(207),s=r(224),l=r(2),c=function(e,t,r){v(i,e);var a=g(i);function i(e){var t;return _(this,i),t=a.call(this,-1,"root",Object.create(null)),t.element=null,t[n.$ids]=e,t}return S(i,[{key:t,value:function(e){return this.element=e,!0}},{key:r,value:function(){u(h(i.prototype),n.$finalize,this).call(this),this.element.template instanceof o.Template&&(this[n.$ids].set(n.$root,this.element),this.element.template[n.$resolvePrototypes](this[n.$ids]),this.element.template[n.$ids]=this[n.$ids])}}]),i}(n.XFAObject,n.$onChild,n.$finalize),d=function(e,t){v(a,e);var r=g(a);function a(){return _(this,a),r.call(this,-1,"",Object.create(null))}return S(a,[{key:t,value:function(e){return!1}}]),a}(n.XFAObject,n.$onChild),f=function(){function e(){_(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max.apply(Math,p(Object.values(a.NamespaceIds).map((function(e){var t=e.id;return t})))),this._currentNamespace=t||new s.UnknownNamespace(++this._nextNsId)}return S(e,[{key:"buildRoot",value:function(e){return new c(e)}},{key:"build",value:function(e){var t=e.nsPrefix,r=e.name,o=e.attributes,s=e.namespace,l=e.prefixes,c=null!==s;if(c&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(s)),l&&this._addNamespacePrefix(l),o.hasOwnProperty(n.$nsAttributes)){for(var u=i.NamespaceSetUp.datasets,h=o[n.$nsAttributes],f=null,p=0,v=Object.entries(h);p<v.length;p++){var g=k(v[p],2),m=g[0],y=g[1],b=this._getNamespaceToUse(m);if(b===u){f={xfa:y};break}}f?o[n.$nsAttributes]=f:delete o[n.$nsAttributes]}var w=this._getNamespaceToUse(t),_=w&&w[a.$buildXFAObject](r,o)||new d;return _[n.$isNsAgnostic]()&&this._nsAgnosticLevel++,(c||l||_[n.$isNsAgnostic]())&&(_[n.$cleanup]={hasNamespace:c,prefixes:l,nsAgnostic:_[n.$isNsAgnostic]()}),_}},{key:"isNsAgnostic",value:function(){return this._nsAgnosticLevel>0}},{key:"_searchNamespace",value:function(e){var t=this._namespaces.get(e);if(t)return t;for(var r=0,n=Object.entries(a.NamespaceIds);r<n.length;r++){var o=k(n[r],2),l=o[0],c=o[1].check;if(c(e)){if(t=i.NamespaceSetUp[l],t)return this._namespaces.set(e,t),t;break}}return t=new s.UnknownNamespace(++this._nextNsId),this._namespaces.set(e,t),t}},{key:"_addNamespacePrefix",value:function(e){var t,r=b(e);try{for(r.s();!(t=r.n()).done;){var a=t.value,n=a.prefix,i=a.value,o=this._searchNamespace(i),s=this._namespacePrefixes.get(n);s||(s=[],this._namespacePrefixes.set(n,s)),s.push(o)}}catch(l){r.e(l)}finally{r.f()}}},{key:"_getNamespaceToUse",value:function(e){if(!e)return this._currentNamespace;var t=this._namespacePrefixes.get(e);return t&&t.length>0?t.at(-1):((0,l.warn)("Unknown namespace prefix: ".concat(e,".")),null)}},{key:"clean",value:function(e){var t=this,r=e.hasNamespace,a=e.prefixes,n=e.nsAgnostic;r&&(this._currentNamespace=this._namespaceStack.pop()),a&&a.forEach((function(e){var r=e.prefix;t._namespacePrefixes.get(r).pop()})),n&&this._nsAgnosticLevel--}}]),e}();t.Builder=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceSetUp=void 0;var a=r(216),n=r(217),i=r(218),o=r(219),s=r(220),l=r(221),c=r(207),u=r(222),h=r(223),d={config:a.ConfigNamespace,connection:n.ConnectionSetNamespace,datasets:i.DatasetsNamespace,localeSet:o.LocaleSetNamespace,signature:s.SignatureNamespace,stylesheet:l.StylesheetNamespace,template:c.TemplateNamespace,xdp:u.XdpNamespace,xhtml:h.XhtmlNamespace};t.NamespaceSetUp=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigNamespace=void 0;var a=r(204),n=r(202),i=r(203),o=r(2),s=a.NamespaceIds.config.id,l=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"acrobat",!0),a.acrobat7=null,a.autoSave=null,a.common=null,a.validate=null,a.validateApprovalSignatures=null,a.submitUrl=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),c=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"acrobat7",!0),a.dynamicRender=null,a}return S(r)}(n.XFAObject),u=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"ADBE_JSConsole",["delegate","Enable","Disable"])}return S(r)}(n.OptionObject),h=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"ADBE_JSDebugger",["delegate","Enable","Disable"])}return S(r)}(n.OptionObject),d=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"addSilentPrint")}return S(r)}(n.Option01),f=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"addViewerPreferences")}return S(r)}(n.Option01),p=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"adjustData")}return S(r)}(n.Option10),m=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"adobeExtensionLevel",0,(function(e){return e>=1&&e<=8}))}return S(r)}(n.IntegerObject),y=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"agent",!0),a.name=e.name?e.name.trim():"",a.common=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),k=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"alwaysEmbed")}return S(r)}(n.ContentObject),w=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"amd")}return S(r)}(n.StringObject),x=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"area"),a.level=(0,i.getInteger)({data:e.level,defaultValue:0,validate:function(e){return e>=1&&e<=3}}),a.name=(0,i.getStringOption)(e.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"]),a}return S(r)}(n.XFAObject),A=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"attributes",["preserve","delegate","ignore"])}return S(r)}(n.OptionObject),C=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"autoSave",["disabled","enabled"])}return S(r)}(n.OptionObject),F=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"base")}return S(r)}(n.StringObject),P=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"batchOutput"),a.format=(0,i.getStringOption)(e.format,["none","concat","zip","zipCompress"]),a}return S(r)}(n.XFAObject),T=function(e,t){v(a,e);var r=g(a);function a(e){return _(this,a),r.call(this,s,"behaviorOverride")}return S(a,[{key:t,value:function(){this[n.$content]=new Map(this[n.$content].trim().split(/\s+/).filter((function(e){return e.includes(":")})).map((function(e){return e.split(":",2)})))}}]),a}(n.ContentObject,n.$finalize),O=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"cache",!0),a.templateCache=null,a}return S(r)}(n.XFAObject),I=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"change")}return S(r)}(n.Option01),E=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"common",!0),a.data=null,a.locale=null,a.localeSet=null,a.messaging=null,a.suppressBanner=null,a.template=null,a.validationMessaging=null,a.versionControl=null,a.log=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),M=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"compress"),a.scope=(0,i.getStringOption)(e.scope,["imageOnly","document"]),a}return S(r)}(n.XFAObject),R=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"compressLogicalStructure")}return S(r)}(n.Option01),D=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"compressObjectStream")}return S(r)}(n.Option10),N=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"compression",!0),a.compressLogicalStructure=null,a.compressObjectStream=null,a.level=null,a.type=null,a}return S(r)}(n.XFAObject),L=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"config",!0),a.acrobat=null,a.present=null,a.trace=null,a.agent=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),B=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"conformance",["A","B"])}return S(r)}(n.OptionObject),j=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"contentCopy")}return S(r)}(n.Option01),U=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"copies",1,(function(e){return e>=1}))}return S(r)}(n.IntegerObject),q=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"creator")}return S(r)}(n.StringObject),G=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"currentPage",0,(function(e){return e>=0}))}return S(r)}(n.IntegerObject),H=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"data",!0),a.adjustData=null,a.attributes=null,a.incrementalLoad=null,a.outputXSL=null,a.range=null,a.record=null,a.startNode=null,a.uri=null,a.window=null,a.xsl=null,a.excludeNS=new n.XFAObjectArray,a.transform=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),X=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"debug",!0),a.uri=null,a}return S(r)}(n.XFAObject),$=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"defaultTypeface"),a.writingScript=(0,i.getStringOption)(e.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"]),a}return S(r)}(n.ContentObject),z=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"destination",["pdf","pcl","ps","webClient","zpl"])}return S(r)}(n.OptionObject),W=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"documentAssembly")}return S(r)}(n.Option01),V=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"driver",!0),a.name=e.name?e.name.trim():"",a.fontInfo=null,a.xdc=null,a}return S(r)}(n.XFAObject),Y=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}return S(r)}(n.OptionObject),K=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"dynamicRender",["forbidden","required"])}return S(r)}(n.OptionObject),J=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"embed")}return S(r)}(n.Option01),Z=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"encrypt")}return S(r)}(n.Option01),Q=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"encryption",!0),a.encrypt=null,a.encryptionLevel=null,a.permissions=null,a}return S(r)}(n.XFAObject),ee=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"encryptionLevel",["40bit","128bit"])}return S(r)}(n.OptionObject),te=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"enforce")}return S(r)}(n.StringObject),re=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"equate"),a.force=(0,i.getInteger)({data:e.force,defaultValue:1,validate:function(e){return 0===e}}),a.from=e.from||"",a.to=e.to||"",a}return S(r)}(n.XFAObject),ae=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"equateRange"),a.from=e.from||"",a.to=e.to||"",a._unicodeRange=e.unicodeRange||"",a}return S(r,[{key:"unicodeRange",get:function(){var e,t=[],r=/U\+([0-9a-fA-F]+)/,a=this._unicodeRange,n=b(a.split(",").map((function(e){return e.trim()})).filter((function(e){return!!e})));try{for(n.s();!(e=n.n()).done;){var i=e.value;i=i.split("-",2).map((function(e){var t=e.match(r);return t?parseInt(t[1],16):0})),1===i.length&&i.push(i[0]),t.push(i)}}catch(s){n.e(s)}finally{n.f()}return(0,o.shadow)(this,"unicodeRange",t)}}]),r}(n.XFAObject),ne=function(e,t){v(a,e);var r=g(a);function a(e){return _(this,a),r.call(this,s,"exclude")}return S(a,[{key:t,value:function(){this[n.$content]=this[n.$content].trim().split(/\s+/).filter((function(e){return e&&["calculate","close","enter","exit","initialize","ready","validate"].includes(e)}))}}]),a}(n.ContentObject,n.$finalize),ie=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"excludeNS")}return S(r)}(n.StringObject),oe=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"flipLabel",["usePrinterSetting","on","off"])}return S(r)}(n.OptionObject),se=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"fontInfo",!0),a.embed=null,a.map=null,a.subsetBelow=null,a.alwaysEmbed=new n.XFAObjectArray,a.defaultTypeface=new n.XFAObjectArray,a.neverEmbed=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),le=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"formFieldFilling")}return S(r)}(n.Option01),ce=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"groupParent")}return S(r)}(n.StringObject),ue=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}return S(r)}(n.OptionObject),he=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"includeXDPContent")}return S(r)}(n.StringObject),de=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"incrementalLoad",["none","forwardOnly"])}return S(r)}(n.OptionObject),fe=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"incrementalMerge")}return S(r)}(n.Option01),pe=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"interactive")}return S(r)}(n.Option01),ve=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"jog",["usePrinterSetting","none","pageSet"])}return S(r)}(n.OptionObject),ge=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"labelPrinter",!0),a.name=(0,i.getStringOption)(e.name,["zpl","dpl","ipl","tcpl"]),a.batchOutput=null,a.flipLabel=null,a.fontInfo=null,a.xdc=null,a}return S(r)}(n.XFAObject),me=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"layout",["paginate","panel"])}return S(r)}(n.OptionObject),ye=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"level",0,(function(e){return e>0}))}return S(r)}(n.IntegerObject),be=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"linearized")}return S(r)}(n.Option01),ke=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"locale")}return S(r)}(n.StringObject),we=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"localeSet")}return S(r)}(n.StringObject),_e=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"log",!0),a.mode=null,a.threshold=null,a.to=null,a.uri=null,a}return S(r)}(n.XFAObject),Se=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"map",!0),a.equate=new n.XFAObjectArray,a.equateRange=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),xe=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"mediumInfo",!0),a.map=null,a}return S(r)}(n.XFAObject),Ae=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"message",!0),a.msgId=null,a.severity=null,a}return S(r)}(n.XFAObject),Ce=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"messaging",!0),a.message=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),Fe=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"mode",["append","overwrite"])}return S(r)}(n.OptionObject),Pe=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"modifyAnnots")}return S(r)}(n.Option01),Te=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"msgId",1,(function(e){return e>=1}))}return S(r)}(n.IntegerObject),Oe=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"nameAttr")}return S(r)}(n.StringObject),Ie=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"neverEmbed")}return S(r)}(n.ContentObject),Ee=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"numberOfCopies",null,(function(e){return e>=2&&e<=5}))}return S(r)}(n.IntegerObject),Me=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"openAction",!0),a.destination=null,a}return S(r)}(n.XFAObject),Re=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"output",!0),a.to=null,a.type=null,a.uri=null,a}return S(r)}(n.XFAObject),De=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"outputBin")}return S(r)}(n.StringObject),Ne=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"outputXSL",!0),a.uri=null,a}return S(r)}(n.XFAObject),Le=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"overprint",["none","both","draw","field"])}return S(r)}(n.OptionObject),Be=function(e,t){v(a,e);var r=g(a);function a(e){return _(this,a),r.call(this,s,"packets")}return S(a,[{key:t,value:function(){"*"!==this[n.$content]&&(this[n.$content]=this[n.$content].trim().split(/\s+/).filter((function(e){return["config","datasets","template","xfdf","xslt"].includes(e)})))}}]),a}(n.StringObject,n.$finalize),je=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"pageOffset"),a.x=(0,i.getInteger)({data:e.x,defaultValue:"useXDCSetting",validate:function(e){return!0}}),a.y=(0,i.getInteger)({data:e.y,defaultValue:"useXDCSetting",validate:function(e){return!0}}),a}return S(r)}(n.XFAObject),Ue=function(e,t){v(a,e);var r=g(a);function a(e){return _(this,a),r.call(this,s,"pageRange")}return S(a,[{key:t,value:function(){for(var e=this[n.$content].trim().split(/\s+/).map((function(e){return parseInt(e,10)})),t=[],r=0,a=e.length;r<a;r+=2)t.push(e.slice(r,r+2));this[n.$content]=t}}]),a}(n.StringObject,n.$finalize),qe=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}return S(r)}(n.OptionObject),Ge=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}return S(r)}(n.OptionObject),He=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"part",1,(function(e){return!1}))}return S(r)}(n.IntegerObject),Xe=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"pcl",!0),a.name=e.name||"",a.batchOutput=null,a.fontInfo=null,a.jog=null,a.mediumInfo=null,a.outputBin=null,a.pageOffset=null,a.staple=null,a.xdc=null,a}return S(r)}(n.XFAObject),$e=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"pdf",!0),a.name=e.name||"",a.adobeExtensionLevel=null,a.batchOutput=null,a.compression=null,a.creator=null,a.encryption=null,a.fontInfo=null,a.interactive=null,a.linearized=null,a.openAction=null,a.pdfa=null,a.producer=null,a.renderPolicy=null,a.scriptModel=null,a.silentPrint=null,a.submitFormat=null,a.tagged=null,a.version=null,a.viewerPreferences=null,a.xdc=null,a}return S(r)}(n.XFAObject),ze=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"pdfa",!0),a.amd=null,a.conformance=null,a.includeXDPContent=null,a.part=null,a}return S(r)}(n.XFAObject),We=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"permissions",!0),a.accessibleContent=null,a.change=null,a.contentCopy=null,a.documentAssembly=null,a.formFieldFilling=null,a.modifyAnnots=null,a.plaintextMetadata=null,a.print=null,a.printHighQuality=null,a}return S(r)}(n.XFAObject),Ve=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"pickTrayByPDFSize")}return S(r)}(n.Option01),Ye=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"picture")}return S(r)}(n.StringObject),Ke=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"plaintextMetadata")}return S(r)}(n.Option01),Je=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}return S(r)}(n.OptionObject),Ze=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"present",!0),a.behaviorOverride=null,a.cache=null,a.common=null,a.copies=null,a.destination=null,a.incrementalMerge=null,a.layout=null,a.output=null,a.overprint=null,a.pagination=null,a.paginationOverride=null,a.script=null,a.validate=null,a.xdp=null,a.driver=new n.XFAObjectArray,a.labelPrinter=new n.XFAObjectArray,a.pcl=new n.XFAObjectArray,a.pdf=new n.XFAObjectArray,a.ps=new n.XFAObjectArray,a.submitUrl=new n.XFAObjectArray,a.webClient=new n.XFAObjectArray,a.zpl=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),Qe=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"print")}return S(r)}(n.Option01),et=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"printHighQuality")}return S(r)}(n.Option01),tt=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"printScaling",["appdefault","noScaling"])}return S(r)}(n.OptionObject),rt=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"printerName")}return S(r)}(n.StringObject),at=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"producer")}return S(r)}(n.StringObject),nt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"ps",!0),a.name=e.name||"",a.batchOutput=null,a.fontInfo=null,a.jog=null,a.mediumInfo=null,a.outputBin=null,a.staple=null,a.xdc=null,a}return S(r)}(n.XFAObject),it=function(e,t){v(a,e);var r=g(a);function a(e){return _(this,a),r.call(this,s,"range")}return S(a,[{key:t,value:function(){this[n.$content]=this[n.$content].trim().split(/\s*,\s*/,2).map((function(e){return e.split("-").map((function(e){return parseInt(e.trim(),10)}))})).filter((function(e){return e.every((function(e){return!isNaN(e)}))})).map((function(e){return 1===e.length&&e.push(e[0]),e}))}}]),a}(n.ContentObject,n.$finalize),ot=function(e,t){v(a,e);var r=g(a);function a(e){return _(this,a),r.call(this,s,"record")}return S(a,[{key:t,value:function(){this[n.$content]=this[n.$content].trim();var e=parseInt(this[n.$content],10);!isNaN(e)&&e>=0&&(this[n.$content]=e)}}]),a}(n.ContentObject,n.$finalize),st=function(e,t){v(a,e);var r=g(a);function a(e){return _(this,a),r.call(this,s,"relevant")}return S(a,[{key:t,value:function(){this[n.$content]=this[n.$content].trim().split(/\s+/)}}]),a}(n.ContentObject,n.$finalize),lt=function(e,t){v(a,e);var r=g(a);function a(e){return _(this,a),r.call(this,s,"rename")}return S(a,[{key:t,value:function(){this[n.$content]=this[n.$content].trim(),(this[n.$content].toLowerCase().startsWith("xml")||this[n.$content].match(new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u")))&&(0,o.warn)("XFA - Rename: invalid XFA name")}}]),a}(n.ContentObject,n.$finalize),ct=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"renderPolicy",["server","client"])}return S(r)}(n.OptionObject),ut=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"runScripts",["both","client","none","server"])}return S(r)}(n.OptionObject),ht=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"script",!0),a.currentPage=null,a.exclude=null,a.runScripts=null,a}return S(r)}(n.XFAObject),dt=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"scriptModel",["XFA","none"])}return S(r)}(n.OptionObject),ft=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"severity",["ignore","error","information","trace","warning"])}return S(r)}(n.OptionObject),pt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"silentPrint",!0),a.addSilentPrint=null,a.printerName=null,a}return S(r)}(n.XFAObject),vt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"staple"),a.mode=(0,i.getStringOption)(e.mode,["usePrinterSetting","on","off"]),a}return S(r)}(n.XFAObject),gt=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"startNode")}return S(r)}(n.StringObject),mt=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"startPage",0,(function(e){return!0}))}return S(r)}(n.IntegerObject),yt=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"submitFormat",["html","delegate","fdf","xml","pdf"])}return S(r)}(n.OptionObject),bt=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"submitUrl")}return S(r)}(n.StringObject),kt=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"subsetBelow",100,(function(e){return e>=0&&e<=100}))}return S(r)}(n.IntegerObject),wt=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"suppressBanner")}return S(r)}(n.Option01),_t=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"tagged")}return S(r)}(n.Option01),St=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"template",!0),a.base=null,a.relevant=null,a.startPage=null,a.uri=null,a.xsl=null,a}return S(r)}(n.XFAObject),xt=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"threshold",["trace","error","information","warning"])}return S(r)}(n.OptionObject),At=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"to",["null","memory","stderr","stdout","system","uri"])}return S(r)}(n.OptionObject),Ct=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"templateCache"),a.maxEntries=(0,i.getInteger)({data:e.maxEntries,defaultValue:5,validate:function(e){return e>=0}}),a}return S(r)}(n.XFAObject),Ft=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"trace",!0),a.area=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),Pt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"transform",!0),a.groupParent=null,a.ifEmpty=null,a.nameAttr=null,a.picture=null,a.presence=null,a.rename=null,a.whitespace=null,a}return S(r)}(n.XFAObject),Tt=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}return S(r)}(n.OptionObject),Ot=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"uri")}return S(r)}(n.StringObject),It=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"validate",["preSubmit","prePrint","preExecute","preSave"])}return S(r)}(n.OptionObject),Et=function(e,t){v(a,e);var r=g(a);function a(e){return _(this,a),r.call(this,s,"validateApprovalSignatures")}return S(a,[{key:t,value:function(){this[n.$content]=this[n.$content].trim().split(/\s+/).filter((function(e){return["docReady","postSign"].includes(e)}))}}]),a}(n.ContentObject,n.$finalize),Mt=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}return S(r)}(n.OptionObject),Rt=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}return S(r)}(n.OptionObject),Dt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"VersionControl"),a.outputBelow=(0,i.getStringOption)(e.outputBelow,["warn","error","update"]),a.sourceAbove=(0,i.getStringOption)(e.sourceAbove,["warn","error"]),a.sourceBelow=(0,i.getStringOption)(e.sourceBelow,["update","maintain"]),a}return S(r)}(n.XFAObject),Nt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"viewerPreferences",!0),a.ADBE_JSConsole=null,a.ADBE_JSDebugger=null,a.addViewerPreferences=null,a.duplexOption=null,a.enforce=null,a.numberOfCopies=null,a.pageRange=null,a.pickTrayByPDFSize=null,a.printScaling=null,a}return S(r)}(n.XFAObject),Lt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"webClient",!0),a.name=e.name?e.name.trim():"",a.fontInfo=null,a.xdc=null,a}return S(r)}(n.XFAObject),Bt=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,s,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}return S(r)}(n.OptionObject),jt=function(e,t){v(a,e);var r=g(a);function a(e){return _(this,a),r.call(this,s,"window")}return S(a,[{key:t,value:function(){var e=this[n.$content].trim().split(/\s*,\s*/,2).map((function(e){return parseInt(e,10)}));e.some((function(e){return isNaN(e)}))?this[n.$content]=[0,0]:(1===e.length&&e.push(e[0]),this[n.$content]=e)}}]),a}(n.ContentObject,n.$finalize),Ut=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"xdc",!0),a.uri=new n.XFAObjectArray,a.xsl=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),qt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"xdp",!0),a.packets=null,a}return S(r)}(n.XFAObject),Gt=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"xsl",!0),a.debug=null,a.uri=null,a}return S(r)}(n.XFAObject),Ht=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,s,"zpl",!0),a.name=e.name?e.name.trim():"",a.batchOutput=null,a.flipLabel=null,a.fontInfo=null,a.xdc=null,a}return S(r)}(n.XFAObject),Xt=function(e){function t(){_(this,t)}return S(t,null,[{key:e,value:function(e,r){if(t.hasOwnProperty(e))return t[e](r)}},{key:"acrobat",value:function(e){return new l(e)}},{key:"acrobat7",value:function(e){return new c(e)}},{key:"ADBE_JSConsole",value:function(e){return new u(e)}},{key:"ADBE_JSDebugger",value:function(e){return new h(e)}},{key:"addSilentPrint",value:function(e){return new d(e)}},{key:"addViewerPreferences",value:function(e){return new f(e)}},{key:"adjustData",value:function(e){return new p(e)}},{key:"adobeExtensionLevel",value:function(e){return new m(e)}},{key:"agent",value:function(e){return new y(e)}},{key:"alwaysEmbed",value:function(e){return new k(e)}},{key:"amd",value:function(e){return new w(e)}},{key:"area",value:function(e){return new x(e)}},{key:"attributes",value:function(e){return new A(e)}},{key:"autoSave",value:function(e){return new C(e)}},{key:"base",value:function(e){return new F(e)}},{key:"batchOutput",value:function(e){return new P(e)}},{key:"behaviorOverride",value:function(e){return new T(e)}},{key:"cache",value:function(e){return new O(e)}},{key:"change",value:function(e){return new I(e)}},{key:"common",value:function(e){return new E(e)}},{key:"compress",value:function(e){return new M(e)}},{key:"compressLogicalStructure",value:function(e){return new R(e)}},{key:"compressObjectStream",value:function(e){return new D(e)}},{key:"compression",value:function(e){return new N(e)}},{key:"config",value:function(e){return new L(e)}},{key:"conformance",value:function(e){return new B(e)}},{key:"contentCopy",value:function(e){return new j(e)}},{key:"copies",value:function(e){return new U(e)}},{key:"creator",value:function(e){return new q(e)}},{key:"currentPage",value:function(e){return new G(e)}},{key:"data",value:function(e){return new H(e)}},{key:"debug",value:function(e){return new X(e)}},{key:"defaultTypeface",value:function(e){return new $(e)}},{key:"destination",value:function(e){return new z(e)}},{key:"documentAssembly",value:function(e){return new W(e)}},{key:"driver",value:function(e){return new V(e)}},{key:"duplexOption",value:function(e){return new Y(e)}},{key:"dynamicRender",value:function(e){return new K(e)}},{key:"embed",value:function(e){return new J(e)}},{key:"encrypt",value:function(e){return new Z(e)}},{key:"encryption",value:function(e){return new Q(e)}},{key:"encryptionLevel",value:function(e){return new ee(e)}},{key:"enforce",value:function(e){return new te(e)}},{key:"equate",value:function(e){return new re(e)}},{key:"equateRange",value:function(e){return new ae(e)}},{key:"exclude",value:function(e){return new ne(e)}},{key:"excludeNS",value:function(e){return new ie(e)}},{key:"flipLabel",value:function(e){return new oe(e)}},{key:"fontInfo",value:function(e){return new se(e)}},{key:"formFieldFilling",value:function(e){return new le(e)}},{key:"groupParent",value:function(e){return new ce(e)}},{key:"ifEmpty",value:function(e){return new ue(e)}},{key:"includeXDPContent",value:function(e){return new he(e)}},{key:"incrementalLoad",value:function(e){return new de(e)}},{key:"incrementalMerge",value:function(e){return new fe(e)}},{key:"interactive",value:function(e){return new pe(e)}},{key:"jog",value:function(e){return new ve(e)}},{key:"labelPrinter",value:function(e){return new ge(e)}},{key:"layout",value:function(e){return new me(e)}},{key:"level",value:function(e){return new ye(e)}},{key:"linearized",value:function(e){return new be(e)}},{key:"locale",value:function(e){return new ke(e)}},{key:"localeSet",value:function(e){return new we(e)}},{key:"log",value:function(e){return new _e(e)}},{key:"map",value:function(e){return new Se(e)}},{key:"mediumInfo",value:function(e){return new xe(e)}},{key:"message",value:function(e){return new Ae(e)}},{key:"messaging",value:function(e){return new Ce(e)}},{key:"mode",value:function(e){return new Fe(e)}},{key:"modifyAnnots",value:function(e){return new Pe(e)}},{key:"msgId",value:function(e){return new Te(e)}},{key:"nameAttr",value:function(e){return new Oe(e)}},{key:"neverEmbed",value:function(e){return new Ie(e)}},{key:"numberOfCopies",value:function(e){return new Ee(e)}},{key:"openAction",value:function(e){return new Me(e)}},{key:"output",value:function(e){return new Re(e)}},{key:"outputBin",value:function(e){return new De(e)}},{key:"outputXSL",value:function(e){return new Ne(e)}},{key:"overprint",value:function(e){return new Le(e)}},{key:"packets",value:function(e){return new Be(e)}},{key:"pageOffset",value:function(e){return new je(e)}},{key:"pageRange",value:function(e){return new Ue(e)}},{key:"pagination",value:function(e){return new qe(e)}},{key:"paginationOverride",value:function(e){return new Ge(e)}},{key:"part",value:function(e){return new He(e)}},{key:"pcl",value:function(e){return new Xe(e)}},{key:"pdf",value:function(e){return new $e(e)}},{key:"pdfa",value:function(e){return new ze(e)}},{key:"permissions",value:function(e){return new We(e)}},{key:"pickTrayByPDFSize",value:function(e){return new Ve(e)}},{key:"picture",value:function(e){return new Ye(e)}},{key:"plaintextMetadata",value:function(e){return new Ke(e)}},{key:"presence",value:function(e){return new Je(e)}},{key:"present",value:function(e){return new Ze(e)}},{key:"print",value:function(e){return new Qe(e)}},{key:"printHighQuality",value:function(e){return new et(e)}},{key:"printScaling",value:function(e){return new tt(e)}},{key:"printerName",value:function(e){return new rt(e)}},{key:"producer",value:function(e){return new at(e)}},{key:"ps",value:function(e){return new nt(e)}},{key:"range",value:function(e){return new it(e)}},{key:"record",value:function(e){return new ot(e)}},{key:"relevant",value:function(e){return new st(e)}},{key:"rename",value:function(e){return new lt(e)}},{key:"renderPolicy",value:function(e){return new ct(e)}},{key:"runScripts",value:function(e){return new ut(e)}},{key:"script",value:function(e){return new ht(e)}},{key:"scriptModel",value:function(e){return new dt(e)}},{key:"severity",value:function(e){return new ft(e)}},{key:"silentPrint",value:function(e){return new pt(e)}},{key:"staple",value:function(e){return new vt(e)}},{key:"startNode",value:function(e){return new gt(e)}},{key:"startPage",value:function(e){return new mt(e)}},{key:"submitFormat",value:function(e){return new yt(e)}},{key:"submitUrl",value:function(e){return new bt(e)}},{key:"subsetBelow",value:function(e){return new kt(e)}},{key:"suppressBanner",value:function(e){return new wt(e)}},{key:"tagged",value:function(e){return new _t(e)}},{key:"template",value:function(e){return new St(e)}},{key:"templateCache",value:function(e){return new Ct(e)}},{key:"threshold",value:function(e){return new xt(e)}},{key:"to",value:function(e){return new At(e)}},{key:"trace",value:function(e){return new Ft(e)}},{key:"transform",value:function(e){return new Pt(e)}},{key:"type",value:function(e){return new Tt(e)}},{key:"uri",value:function(e){return new Ot(e)}},{key:"validate",value:function(e){return new It(e)}},{key:"validateApprovalSignatures",value:function(e){return new Et(e)}},{key:"validationMessaging",value:function(e){return new Mt(e)}},{key:"version",value:function(e){return new Rt(e)}},{key:"versionControl",value:function(e){return new Dt(e)}},{key:"viewerPreferences",value:function(e){return new Nt(e)}},{key:"webClient",value:function(e){return new Lt(e)}},{key:"whitespace",value:function(e){return new Bt(e)}},{key:"window",value:function(e){return new jt(e)}},{key:"xdc",value:function(e){return new Ut(e)}},{key:"xdp",value:function(e){return new qt(e)}},{key:"xsl",value:function(e){return new Gt(e)}},{key:"zpl",value:function(e){return new Ht(e)}}]),t}(a.$buildXFAObject);t.ConfigNamespace=Xt},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionSetNamespace=void 0;var a=r(204),n=r(202),i=a.NamespaceIds.connectionSet.id,o=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,i,"connectionSet",!0),a.wsdlConnection=new n.XFAObjectArray,a.xmlConnection=new n.XFAObjectArray,a.xsdConnection=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),s=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,i,"effectiveInputPolicy"),a.id=e.id||"",a.name=e.name||"",a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.XFAObject),l=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,i,"effectiveOutputPolicy"),a.id=e.id||"",a.name=e.name||"",a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.XFAObject),c=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,i,"operation"),a.id=e.id||"",a.input=e.input||"",a.name=e.name||"",a.output=e.output||"",a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.StringObject),u=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,i,"rootElement"),a.id=e.id||"",a.name=e.name||"",a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.StringObject),h=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,i,"soapAction"),a.id=e.id||"",a.name=e.name||"",a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.StringObject),d=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,i,"soapAddress"),a.id=e.id||"",a.name=e.name||"",a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.StringObject),f=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,i,"uri"),a.id=e.id||"",a.name=e.name||"",a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.StringObject),p=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,i,"wsdlAddress"),a.id=e.id||"",a.name=e.name||"",a.use=e.use||"",a.usehref=e.usehref||"",a}return S(r)}(n.StringObject),m=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,i,"wsdlConnection",!0),a.dataDescription=e.dataDescription||"",a.name=e.name||"",a.effectiveInputPolicy=null,a.effectiveOutputPolicy=null,a.operation=null,a.soapAction=null,a.soapAddress=null,a.wsdlAddress=null,a}return S(r)}(n.XFAObject),y=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,i,"xmlConnection",!0),a.dataDescription=e.dataDescription||"",a.name=e.name||"",a.uri=null,a}return S(r)}(n.XFAObject),b=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,i,"xsdConnection",!0),a.dataDescription=e.dataDescription||"",a.name=e.name||"",a.rootElement=null,a.uri=null,a}return S(r)}(n.XFAObject),k=function(e){function t(){_(this,t)}return S(t,null,[{key:e,value:function(e,r){if(t.hasOwnProperty(e))return t[e](r)}},{key:"connectionSet",value:function(e){return new o(e)}},{key:"effectiveInputPolicy",value:function(e){return new s(e)}},{key:"effectiveOutputPolicy",value:function(e){return new l(e)}},{key:"operation",value:function(e){return new c(e)}},{key:"rootElement",value:function(e){return new u(e)}},{key:"soapAction",value:function(e){return new h(e)}},{key:"soapAddress",value:function(e){return new d(e)}},{key:"uri",value:function(e){return new f(e)}},{key:"wsdlAddress",value:function(e){return new p(e)}},{key:"wsdlConnection",value:function(e){return new m(e)}},{key:"xmlConnection",value:function(e){return new y(e)}},{key:"xsdConnection",value:function(e){return new b(e)}}]),t}(a.$buildXFAObject);t.ConnectionSetNamespace=k},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetsNamespace=void 0;var a=r(202),n=r(204),i=n.NamespaceIds.datasets.id,o=function(e,t){v(a,e);var r=g(a);function a(e){return _(this,a),r.call(this,i,"data",e)}return S(a,[{key:t,value:function(){return!0}}]),a}(a.XmlObject,a.$isNsAgnostic),s=function(e,t){v(o,e);var r=g(o);function o(e){var t;return _(this,o),t=r.call(this,i,"datasets",!0),t.data=null,t.Signature=null,t}return S(o,[{key:t,value:function(e){var t=e[a.$nodeName];("data"===t&&e[a.$namespaceId]===i||"Signature"===t&&e[a.$namespaceId]===n.NamespaceIds.signature.id)&&(this[t]=e),this[a.$appendChild](e)}}]),o}(a.XFAObject,a.$onChild),l=function(e){function t(){_(this,t)}return S(t,null,[{key:e,value:function(e,r){if(t.hasOwnProperty(e))return t[e](r)}},{key:"datasets",value:function(e){return new s(e)}},{key:"data",value:function(e){return new o(e)}}]),t}(n.$buildXFAObject);t.DatasetsNamespace=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocaleSetNamespace=void 0;var a=r(204),n=r(202),i=r(203),o=a.NamespaceIds.localeSet.id,s=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,o,"calendarSymbols",!0),a.name="gregorian",a.dayNames=new n.XFAObjectArray(2),a.eraNames=null,a.meridiemNames=null,a.monthNames=new n.XFAObjectArray(2),a}return S(r)}(n.XFAObject),l=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,o,"currencySymbol"),a.name=(0,i.getStringOption)(e.name,["symbol","isoname","decimal"]),a}return S(r)}(n.StringObject),c=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,o,"currencySymbols",!0),a.currencySymbol=new n.XFAObjectArray(3),a}return S(r)}(n.XFAObject),u=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,o,"datePattern"),a.name=(0,i.getStringOption)(e.name,["full","long","med","short"]),a}return S(r)}(n.StringObject),h=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,o,"datePatterns",!0),a.datePattern=new n.XFAObjectArray(4),a}return S(r)}(n.XFAObject),d=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,o,"dateTimeSymbols")}return S(r)}(n.ContentObject),f=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,o,"day")}return S(r)}(n.StringObject),p=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,o,"dayNames",!0),a.abbr=(0,i.getInteger)({data:e.abbr,defaultValue:0,validate:function(e){return 1===e}}),a.day=new n.XFAObjectArray(7),a}return S(r)}(n.XFAObject),m=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,o,"era")}return S(r)}(n.StringObject),y=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,o,"eraNames",!0),a.era=new n.XFAObjectArray(2),a}return S(r)}(n.XFAObject),b=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,o,"locale",!0),a.desc=e.desc||"",a.name="isoname",a.calendarSymbols=null,a.currencySymbols=null,a.datePatterns=null,a.dateTimeSymbols=null,a.numberPatterns=null,a.numberSymbols=null,a.timePatterns=null,a.typeFaces=null,a}return S(r)}(n.XFAObject),k=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,o,"localeSet",!0),a.locale=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),w=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,o,"meridiem")}return S(r)}(n.StringObject),x=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,o,"meridiemNames",!0),a.meridiem=new n.XFAObjectArray(2),a}return S(r)}(n.XFAObject),A=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,o,"month")}return S(r)}(n.StringObject),C=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,o,"monthNames",!0),a.abbr=(0,i.getInteger)({data:e.abbr,defaultValue:0,validate:function(e){return 1===e}}),a.month=new n.XFAObjectArray(12),a}return S(r)}(n.XFAObject),F=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,o,"numberPattern"),a.name=(0,i.getStringOption)(e.name,["full","long","med","short"]),a}return S(r)}(n.StringObject),P=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,o,"numberPatterns",!0),a.numberPattern=new n.XFAObjectArray(4),a}return S(r)}(n.XFAObject),T=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,o,"numberSymbol"),a.name=(0,i.getStringOption)(e.name,["decimal","grouping","percent","minus","zero"]),a}return S(r)}(n.StringObject),O=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,o,"numberSymbols",!0),a.numberSymbol=new n.XFAObjectArray(5),a}return S(r)}(n.XFAObject),I=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,o,"timePattern"),a.name=(0,i.getStringOption)(e.name,["full","long","med","short"]),a}return S(r)}(n.StringObject),E=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,o,"timePatterns",!0),a.timePattern=new n.XFAObjectArray(4),a}return S(r)}(n.XFAObject),M=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,o,"typeFace",!0),a.name=""|e.name,a}return S(r)}(n.XFAObject),R=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,o,"typeFaces",!0),a.typeFace=new n.XFAObjectArray,a}return S(r)}(n.XFAObject),D=function(e){function t(){_(this,t)}return S(t,null,[{key:e,value:function(e,r){if(t.hasOwnProperty(e))return t[e](r)}},{key:"calendarSymbols",value:function(e){return new s(e)}},{key:"currencySymbol",value:function(e){return new l(e)}},{key:"currencySymbols",value:function(e){return new c(e)}},{key:"datePattern",value:function(e){return new u(e)}},{key:"datePatterns",value:function(e){return new h(e)}},{key:"dateTimeSymbols",value:function(e){return new d(e)}},{key:"day",value:function(e){return new f(e)}},{key:"dayNames",value:function(e){return new p(e)}},{key:"era",value:function(e){return new m(e)}},{key:"eraNames",value:function(e){return new y(e)}},{key:"locale",value:function(e){return new b(e)}},{key:"localeSet",value:function(e){return new k(e)}},{key:"meridiem",value:function(e){return new w(e)}},{key:"meridiemNames",value:function(e){return new x(e)}},{key:"month",value:function(e){return new A(e)}},{key:"monthNames",value:function(e){return new C(e)}},{key:"numberPattern",value:function(e){return new F(e)}},{key:"numberPatterns",value:function(e){return new P(e)}},{key:"numberSymbol",value:function(e){return new T(e)}},{key:"numberSymbols",value:function(e){return new O(e)}},{key:"timePattern",value:function(e){return new I(e)}},{key:"timePatterns",value:function(e){return new E(e)}},{key:"typeFace",value:function(e){return new M(e)}},{key:"typeFaces",value:function(e){return new R(e)}}]),t}(a.$buildXFAObject);t.LocaleSetNamespace=D},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureNamespace=void 0;var a=r(204),n=r(202),i=a.NamespaceIds.signature.id,o=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,i,"signature",!0)}return S(r)}(n.XFAObject),s=function(e){function t(){_(this,t)}return S(t,null,[{key:e,value:function(e,r){if(t.hasOwnProperty(e))return t[e](r)}},{key:"signature",value:function(e){return new o(e)}}]),t}(a.$buildXFAObject);t.SignatureNamespace=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StylesheetNamespace=void 0;var a=r(204),n=r(202),i=a.NamespaceIds.stylesheet.id,o=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,i,"stylesheet",!0)}return S(r)}(n.XFAObject),s=function(e){function t(){_(this,t)}return S(t,null,[{key:e,value:function(e,r){if(t.hasOwnProperty(e))return t[e](r)}},{key:"stylesheet",value:function(e){return new o(e)}}]),t}(a.$buildXFAObject);t.StylesheetNamespace=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XdpNamespace=void 0;var a=r(204),n=r(202),i=a.NamespaceIds.xdp.id,o=function(e,t){v(o,e);var r=g(o);function o(e){var t;return _(this,o),t=r.call(this,i,"xdp",!0),t.uuid=e.uuid||"",t.timeStamp=e.timeStamp||"",t.config=null,t.connectionSet=null,t.datasets=null,t.localeSet=null,t.stylesheet=new n.XFAObjectArray,t.template=null,t}return S(o,[{key:t,value:function(e){var t=a.NamespaceIds[e[n.$nodeName]];return t&&e[n.$namespaceId]===t.id}}]),o}(n.XFAObject,n.$onChildCheck),s=function(e){function t(){_(this,t)}return S(t,null,[{key:e,value:function(e,r){if(t.hasOwnProperty(e))return t[e](r)}},{key:"xdp",value:function(e){return new o(e)}}]),t}(a.$buildXFAObject);t.XdpNamespace=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XhtmlNamespace=void 0;var a=r(202),n=r(204),i=r(209),o=r(203),s=n.NamespaceIds.xhtml.id,l=Symbol(),c=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"]),d=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",function(e){return"none"===e?"none":"normal"}],["xfa-font-horizontal-scale",function(e){return"scaleX(".concat(Math.max(0,Math.min(parseInt(e)/100)).toFixed(2),")")}],["xfa-font-vertical-scale",function(e){return"scaleY(".concat(Math.max(0,Math.min(parseInt(e)/100)).toFixed(2),")")}],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",function(e,t){return e=t.fontSize=(0,o.getMeasurement)(e),(0,i.measureToString)(.99*e)}],["letter-spacing",function(e){return(0,i.measureToString)((0,o.getMeasurement)(e))}],["line-height",function(e){return(0,i.measureToString)((0,o.getMeasurement)(e))}],["margin",function(e){return(0,i.measureToString)((0,o.getMeasurement)(e))}],["margin-bottom",function(e){return(0,i.measureToString)((0,o.getMeasurement)(e))}],["margin-left",function(e){return(0,i.measureToString)((0,o.getMeasurement)(e))}],["margin-right",function(e){return(0,i.measureToString)((0,o.getMeasurement)(e))}],["margin-top",function(e){return(0,i.measureToString)((0,o.getMeasurement)(e))}],["text-indent",function(e){return(0,i.measureToString)((0,o.getMeasurement)(e))}],["font-family",function(e){return e}],["vertical-align",function(e){return(0,i.measureToString)((0,o.getMeasurement)(e))}]]),f=/\s+/g,p=/[\r\n]+/g,m=/\r\n?/g;function y(e,t,r){var n=Object.create(null);if(!e)return n;var s,l=Object.create(null),c=b(e.split(";").map((function(e){return e.split(":",2)})));try{for(c.s();!(s=c.n()).done;){var u=k(s.value,2),h=u[0],f=u[1],p=d.get(h);if(""!==p){var v=f;p&&(v="string"===typeof p?p:p(f,l)),h.endsWith("scale")?n.transform?n.transform="".concat(n[h]," ").concat(v):n.transform=v:n[h.replaceAll(/-([a-zA-Z])/g,(function(e,t){return t.toUpperCase()}))]=v}}}catch(w){c.e(w)}finally{c.f()}if(n.fontFamily&&(0,i.setFontFamily)({typeface:n.fontFamily,weight:n.fontWeight||"normal",posture:n.fontStyle||"normal",size:l.fontSize||0},t,t[a.$globalData].fontFinder,n),r&&n.verticalAlign&&"0px"!==n.verticalAlign&&n.fontSize){var g=.583,m=.333,y=(0,o.getMeasurement)(n.fontSize);n.fontSize=(0,i.measureToString)(y*g),n.verticalAlign=(0,i.measureToString)(Math.sign((0,o.getMeasurement)(n.verticalAlign))*y*m)}return r&&n.fontSize&&(n.fontSize="calc(".concat(n.fontSize," * var(--scale-factor))")),(0,i.fixTextIndent)(n),n}function w(e){return e.style?e.style.trim().split(/\s*;\s*/).filter((function(e){return!!e})).map((function(e){return e.split(/\s*:\s*/,2)})).filter((function(t){var r=k(t,2),n=r[0],i=r[1];return"font-family"===n&&e[a.$globalData].usedTypefaces.add(i),c.has(n)})).map((function(e){return e.join(":")})).join(";"):""}var x=new Set(["body","html"]),A=function(e,t,r,n,i,c){v(A,e);var d=g(A);function A(e,t){var r;return _(this,A),r=d.call(this,s,t),r[l]=!1,r.style=e.style||"",r}return S(A,[{key:t,value:function(e){u(h(A.prototype),a.$clean,this).call(this,e),this.style=w(this)}},{key:r,value:function(){return!x.has(this[a.$nodeName])}},{key:n,value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t?this[l]=!0:(e=e.replace(p,""),this.style.includes("xfa-spacerun:yes")||(e=e.replace(f," "))),e&&(this[a.$content]+=e)}},{key:i,value:function(e){var t,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Object.create(null),i={top:NaN,bottom:NaN,left:NaN,right:NaN},s=null,l=b(this.style.split(";").map((function(e){return e.split(":",2)})));try{for(l.s();!(t=l.n()).done;){var c=k(t.value,2),u=c[0],h=c[1];switch(u){case"font-family":n.typeface=(0,o.stripQuotes)(h);break;case"font-size":n.size=(0,o.getMeasurement)(h);break;case"font-weight":n.weight=h;break;case"font-style":n.posture=h;break;case"letter-spacing":n.letterSpacing=(0,o.getMeasurement)(h);break;case"margin":var d=h.split(/ \t/).map((function(e){return(0,o.getMeasurement)(e)}));switch(d.length){case 1:i.top=i.bottom=i.left=i.right=d[0];break;case 2:i.top=i.bottom=d[0],i.left=i.right=d[1];break;case 3:i.top=d[0],i.bottom=d[2],i.left=i.right=d[1];break;case 4:i.top=d[0],i.left=d[1],i.bottom=d[2],i.right=d[3];break}break;case"margin-top":i.top=(0,o.getMeasurement)(h);break;case"margin-bottom":i.bottom=(0,o.getMeasurement)(h);break;case"margin-left":i.left=(0,o.getMeasurement)(h);break;case"margin-right":i.right=(0,o.getMeasurement)(h);break;case"line-height":s=(0,o.getMeasurement)(h);break}}}catch(g){l.e(g)}finally{l.f()}if(e.pushData(n,i,s),this[a.$content])e.addString(this[a.$content]);else{var f,p=b(this[a.$getChildren]());try{for(p.s();!(f=p.n()).done;){var v=f.value;"#text"!==v[a.$nodeName]?v[a.$pushGlyphs](e):e.addString(v[a.$content])}}catch(g){p.e(g)}finally{p.f()}}r&&e.popFont()}},{key:c,value:function(e){var t,r=[];return this[a.$extra]={children:r},this[a.$childrenToHTML]({}),0!==r.length||this[a.$content]?(t=this[l]?this[a.$content]?this[a.$content].replace(m,"\n"):void 0:this[a.$content]||void 0,o.HTMLResult.success({name:this[a.$nodeName],attributes:{href:this.href,style:y(this.style,this,this[l])},children:r,value:t})):o.HTMLResult.EMPTY}}]),A}(a.XmlObject,a.$clean,a.$acceptWhitespace,a.$onText,a.$pushGlyphs,a.$toHTML),C=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,e,"a"),a.href=(0,i.fixURL)(e.href)||"",a}return S(r)}(A),F=function(e,t){v(n,e);var r=g(n);function n(e){return _(this,n),r.call(this,e,"b")}return S(n,[{key:t,value:function(e){e.pushFont({weight:"bold"}),u(h(n.prototype),a.$pushGlyphs,this).call(this,e),e.popFont()}}]),n}(A,a.$pushGlyphs),P=function(e,t){v(n,e);var r=g(n);function n(e){return _(this,n),r.call(this,e,"body")}return S(n,[{key:t,value:function(e){var t=u(h(n.prototype),a.$toHTML,this).call(this,e),r=t.html;return r?(r.name="div",r.attributes["class"]=["xfaRich"],t):o.HTMLResult.EMPTY}}]),n}(A,a.$toHTML),T=function(e,t,r,a){v(i,e);var n=g(i);function i(e){return _(this,i),n.call(this,e,"br")}return S(i,[{key:t,value:function(){return"\n"}},{key:r,value:function(e){e.addString("\n")}},{key:a,value:function(e){return o.HTMLResult.success({name:"br"})}}]),i}(A,a.$text,a.$pushGlyphs,a.$toHTML),O=function(e,t){v(n,e);var r=g(n);function n(e){return _(this,n),r.call(this,e,"html")}return S(n,[{key:t,value:function(e){var t=[];if(this[a.$extra]={children:t},this[a.$childrenToHTML]({}),0===t.length)return o.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[a.$content]||""});if(1===t.length){var r=t[0];if(r.attributes&&r.attributes["class"].includes("xfaRich"))return o.HTMLResult.success(r)}return o.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:t})}}]),n}(A,a.$toHTML),I=function(e,t){v(n,e);var r=g(n);function n(e){return _(this,n),r.call(this,e,"i")}return S(n,[{key:t,value:function(e){e.pushFont({posture:"italic"}),u(h(n.prototype),a.$pushGlyphs,this).call(this,e),e.popFont()}}]),n}(A,a.$pushGlyphs),E=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,e,"li")}return S(r)}(A),M=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,e,"ol")}return S(r)}(A),R=function(e,t,r){v(i,e);var n=g(i);function i(e){return _(this,i),n.call(this,e,"p")}return S(i,[{key:t,value:function(e){u(h(i.prototype),a.$pushGlyphs,this).call(this,e,!1),e.addString("\n"),e.addPara(),e.popFont()}},{key:r,value:function(){var e=this[a.$getParent]()[a.$getChildren]();return e.at(-1)===this?u(h(i.prototype),a.$text,this).call(this):u(h(i.prototype),a.$text,this).call(this)+"\n"}}]),i}(A,a.$pushGlyphs,a.$text),D=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,e,"span")}return S(r)}(A),N=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,e,"sub")}return S(r)}(A),L=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,e,"sup")}return S(r)}(A),B=function(e){v(r,e);var t=g(r);function r(e){return _(this,r),t.call(this,e,"ul")}return S(r)}(A),j=function(e){function t(){_(this,t)}return S(t,null,[{key:e,value:function(e,r){if(t.hasOwnProperty(e))return t[e](r)}},{key:"a",value:function(e){return new C(e)}},{key:"b",value:function(e){return new F(e)}},{key:"body",value:function(e){return new P(e)}},{key:"br",value:function(e){return new T(e)}},{key:"html",value:function(e){return new O(e)}},{key:"i",value:function(e){return new I(e)}},{key:"li",value:function(e){return new E(e)}},{key:"ol",value:function(e){return new M(e)}},{key:"p",value:function(e){return new R(e)}},{key:"span",value:function(e){return new D(e)}},{key:"sub",value:function(e){return new N(e)}},{key:"sup",value:function(e){return new L(e)}},{key:"ul",value:function(e){return new B(e)}}]),t}(n.$buildXFAObject);t.XhtmlNamespace=j},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownNamespace=void 0;var a=r(204),n=r(202),i=function(e){function t(e){_(this,t),this.namespaceId=e}return S(t,[{key:e,value:function(e,t){return new n.XmlObject(this.namespaceId,e,t)}}]),t}(a.$buildXFAObject);t.UnknownNamespace=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetReader=void 0;var a=r(2),n=r(131),i=r(191);function o(e){try{return(0,a.stringToUTF8String)(e)}catch(t){return(0,a.warn)('UTF-8 decoding failed: "'.concat(t,'".')),e}}var s=function(e){v(r,e);var t=g(r);function r(e){var a;return _(this,r),a=t.call(this,e),a.node=null,a}return S(r,[{key:"onEndElement",value:function(e){var t=u(h(r.prototype),"onEndElement",this).call(this,e);if(t&&"xfa:datasets"===e)throw this.node=t,new Error("Aborting DatasetXMLParser.")}}]),r}(i.SimpleXMLParser),l=function(){function e(t){if(_(this,e),t.datasets)this.node=new i.SimpleXMLParser({hasAttributes:!0}).parseFromString(t.datasets).documentElement;else{var r=new s({hasAttributes:!0});try{r.parseFromString(t["xdp:xdp"])}catch(a){}this.node=r.node}}return S(e,[{key:"getValue",value:function(e){if(!this.node||!e)return"";var t=this.node.searchNode((0,n.parseXFAPath)(e),0);if(!t)return"";var r=t.firstChild;return r&&"value"===r.nodeName?t.children.map((function(e){return o(e.textContent)})):o(t.textContent)}}]),e}();t.DatasetReader=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XRef=void 0;var a=r(2),n=r(130),i=r(131),o=r(142),s=r(132),l=r(192),c=function(){function e(t,r){_(this,e),this.stream=t,this.pdfManager=r,this.entries=[],this.xrefstms=Object.create(null),this._cacheMap=new Map,this._pendingRefs=new n.RefSet,this.stats=new i.DocStats(r.msgHandler),this._newRefNum=null}return S(e,[{key:"getNewRef",value:function(){return null===this._newRefNum&&(this._newRefNum=this.entries.length||1),n.Ref.get(this._newRefNum++,0)}},{key:"resetNewRef",value:function(){this._newRefNum=null}},{key:"setStartXRef",value:function(e){this.startXRefQueue=[e]}},{key:"parse",value:function(){var e,t,r,o=arguments.length>0&&void 0!==arguments[0]&&arguments[0];o?((0,a.warn)("Indexing all PDF objects"),e=this.indexObjects()):e=this.readXRef(),e.assignXref(this),this.trailer=e;try{t=e.get("Encrypt")}catch(h){if(h instanceof i.MissingDataException)throw h;(0,a.warn)('XRef.parse - Invalid "Encrypt" reference: "'.concat(h,'".'))}if(t instanceof n.Dict){var s=e.get("ID"),c=s&&s.length?s[0]:"";t.suppressEncryption=!0,this.encrypt=new l.CipherTransformFactory(t,c,this.pdfManager.password)}try{r=e.get("Root")}catch(h){if(h instanceof i.MissingDataException)throw h;(0,a.warn)('XRef.parse - Invalid "Root" reference: "'.concat(h,'".'))}if(r instanceof n.Dict)try{var u=r.get("Pages");if(u instanceof n.Dict)return void(this.root=r)}catch(h){if(h instanceof i.MissingDataException)throw h;(0,a.warn)('XRef.parse - Invalid "Pages" reference: "'.concat(h,'".'))}if(!o)throw new i.XRefParseException;throw new a.InvalidPDFException("Invalid Root reference.")}},{key:"processXRefTable",value:function(e){"tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});var t=this.readXRefTable(e);if(!(0,n.isCmd)(t,"trailer"))throw new a.FormatError("Invalid XRef table: could not find trailer dictionary");var r=e.getObj();if(r instanceof n.Dict||!r.dict||(r=r.dict),!(r instanceof n.Dict))throw new a.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,r}},{key:"readXRefTable",value:function(e){var t,r=e.lexer.stream,i=this.tableState;r.pos=i.streamPos,e.buf1=i.parserBuf1,e.buf2=i.parserBuf2;while(1){if(!("firstEntryNum"in i)||!("entryCount"in i)){if((0,n.isCmd)(t=e.getObj(),"trailer"))break;i.firstEntryNum=t,i.entryCount=e.getObj()}var o=i.firstEntryNum,s=i.entryCount;if(!Number.isInteger(o)||!Number.isInteger(s))throw new a.FormatError("Invalid XRef table: wrong types in subsection header");for(var l=i.entryNum;l<s;l++){i.streamPos=r.pos,i.entryNum=l,i.parserBuf1=e.buf1,i.parserBuf2=e.buf2;var c={};c.offset=e.getObj(),c.gen=e.getObj();var u=e.getObj();if(u instanceof n.Cmd)switch(u.cmd){case"f":c.free=!0;break;case"n":c.uncompressed=!0;break}if(!Number.isInteger(c.offset)||!Number.isInteger(c.gen)||!c.free&&!c.uncompressed)throw new a.FormatError("Invalid entry in XRef subsection: ".concat(o,", ").concat(s));0===l&&c.free&&1===o&&(o=0),this.entries[l+o]||(this.entries[l+o]=c)}i.entryNum=0,i.streamPos=r.pos,i.parserBuf1=e.buf1,i.parserBuf2=e.buf2,delete i.firstEntryNum,delete i.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new a.FormatError("Invalid XRef table: unexpected first object");return t}},{key:"processXRefStream",value:function(e){if(!("streamState"in this)){var t=e.dict,r=t.get("W"),a=t.get("Index");a||(a=[0,t.get("Size")]),this.streamState={entryRanges:a,byteWidths:r,entryNum:0,streamPos:e.pos}}return this.readXRefStream(e),delete this.streamState,e.dict}},{key:"readXRefStream",value:function(e){var t=this.streamState;e.pos=t.streamPos;var r=k(t.byteWidths,3),n=r[0],i=r[1],o=r[2],s=t.entryRanges;while(s.length>0){var l=k(s,2),c=l[0],u=l[1];if(!Number.isInteger(c)||!Number.isInteger(u))throw new a.FormatError("Invalid XRef range fields: ".concat(c,", ").concat(u));if(!Number.isInteger(n)||!Number.isInteger(i)||!Number.isInteger(o))throw new a.FormatError("Invalid XRef entry fields length: ".concat(c,", ").concat(u));for(var h=t.entryNum;h<u;++h){t.entryNum=h,t.streamPos=e.pos;for(var d=0,f=0,p=0,v=0;v<n;++v){var g=e.getByte();if(-1===g)throw new a.FormatError("Invalid XRef byteWidths 'type'.");d=d<<8|g}0===n&&(d=1);for(var m=0;m<i;++m){var y=e.getByte();if(-1===y)throw new a.FormatError("Invalid XRef byteWidths 'offset'.");f=f<<8|y}for(var b=0;b<o;++b){var w=e.getByte();if(-1===w)throw new a.FormatError("Invalid XRef byteWidths 'generation'.");p=p<<8|w}var _={};switch(_.offset=f,_.gen=p,d){case 0:_.free=!0;break;case 1:_.uncompressed=!0;break;case 2:break;default:throw new a.FormatError("Invalid XRef entry type: ".concat(d))}this.entries[c+h]||(this.entries[c+h]=_)}t.entryNum=0,t.streamPos=e.pos,s.splice(0,2)}}},{key:"indexObjects",value:function(){var e=9,t=10,r=13,s=32,l=37,c=60;function u(e,a){var n="",i=e[a];while(i!==t&&i!==r&&i!==c){if(++a>=e.length)break;n+=String.fromCharCode(i),i=e[a]}return n}function h(e,t,r){var a=r.length,n=e.length,i=0;while(t<n){var o=0;while(o<a&&e[t+o]===r[o])++o;if(o>=a)break;t++,i++}return i}var d=/^(\d+)\s+(\d+)\s+obj\b/,f=/\bendobj[\b\s]$/,p=/\s+(\d+\s+\d+\s+obj[\b\s<])$/,v=25,g=new Uint8Array([116,114,97,105,108,101,114]),m=new Uint8Array([115,116,97,114,116,120,114,101,102]),y=new Uint8Array([111,98,106]),b=new Uint8Array([47,88,82,101,102]);this.entries.length=0,this._cacheMap.clear();var k=this.stream;k.pos=0;var w,_=k.getBytes(),S=_.length,x=k.start,A=[],C=[];while(x<S){var F=_[x];if(F!==e&&F!==t&&F!==r&&F!==s)if(F!==l){var P=u(_,x),T=void 0;if(P.startsWith("xref")&&(4===P.length||/\s/.test(P[4])))x+=h(_,x,g),A.push(x),x+=h(_,x,m);else if(T=d.exec(P)){var O=0|T[1],I=0|T[2],E=void 0,M=x+P.length,R=!1;if(this.entries[O]){if(this.entries[O].gen===I)try{var D=new o.Parser({lexer:new o.Lexer(k.makeSubStream(M))});D.getObj(),R=!0}catch(Z){Z instanceof i.ParserEOFException?(0,a.warn)("indexObjects -- checking object (".concat(P,'): "').concat(Z,'".')):R=!0}}else R=!0;R&&(this.entries[O]={offset:x-k.start,gen:I,uncompressed:!0});while(M<_.length){var N=M+h(_,M,y)+4;E=N-x;var L=Math.max(N-v,M),B=(0,a.bytesToString)(_.subarray(L,N));if(f.test(B))break;var j=p.exec(B);if(j&&j[1]){(0,a.warn)('indexObjects: Found new "obj" inside of another "obj", caused by missing "endobj" -- trying to recover.'),E-=j[1].length;break}M=N}var U=_.subarray(x,x+E),q=h(U,0,b);q<E&&U[q+5]<64&&(C.push(x-k.start),this.xrefstms[x-k.start]=1),x+=E}else P.startsWith("trailer")&&(7===P.length||/\s/.test(P[7]))?(A.push(x),x+=h(_,x,m)):x+=P.length+1}else do{if(++x,x>=S)break;F=_[x]}while(F!==t&&F!==r);else++x}for(var G=0,H=C.length;G<H;++G)this.startXRefQueue.push(C[G]),this.readXRef(!0);for(var X=0,$=A.length;X<$;++X){k.pos=A[X];var z=new o.Parser({lexer:new o.Lexer(k),xref:this,allowStreams:!0,recoveryMode:!0}),W=z.getObj();if((0,n.isCmd)(W,"trailer")){var V=z.getObj();if(V instanceof n.Dict){try{var Y=V.get("Root");if(!(Y instanceof n.Dict))continue;var K=Y.get("Pages");if(!(K instanceof n.Dict))continue;var J=K.get("Count");if(!Number.isInteger(J))continue}catch(Z){continue}if(V.has("ID"))return V;w=V}}}if(w)return w;if(this.topDict)return this.topDict;throw new a.InvalidPDFException("Invalid PDF structure.")}},{key:"readXRef",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.stream,r=new Set;try{while(this.startXRefQueue.length){var l=this.startXRefQueue[0];if(r.has(l))(0,a.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();else{r.add(l),t.pos=l+t.start;var c=new o.Parser({lexer:new o.Lexer(t),xref:this,allowStreams:!0}),u=c.getObj(),h=void 0;if((0,n.isCmd)(u,"xref")){if(h=this.processXRefTable(c),this.topDict||(this.topDict=h),u=h.get("XRefStm"),Number.isInteger(u)){var d=u;d in this.xrefstms||(this.xrefstms[d]=1,this.startXRefQueue.push(d))}}else{if(!Number.isInteger(u))throw new a.FormatError("Invalid XRef stream header");if(!Number.isInteger(c.getObj())||!(0,n.isCmd)(c.getObj(),"obj")||!((u=c.getObj())instanceof s.BaseStream))throw new a.FormatError("Invalid XRef stream");if(h=this.processXRefStream(u),this.topDict||(this.topDict=h),!h)throw new a.FormatError("Failed to read XRef stream")}u=h.get("Prev"),Number.isInteger(u)?this.startXRefQueue.push(u):u instanceof n.Ref&&this.startXRefQueue.push(u.num),this.startXRefQueue.shift()}}return this.topDict}catch(f){if(f instanceof i.MissingDataException)throw f;(0,a.info)("(while reading XRef): "+f),this.startXRefQueue.shift()}if(!e)throw new i.XRefParseException}},{key:"getEntry",value:function(e){var t=this.entries[e];return t&&!t.free&&t.offset?t:null}},{key:"fetchIfRef",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e instanceof n.Ref?this.fetch(e,t):e}},{key:"fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(e instanceof n.Ref))throw new Error("ref object is not a reference");var r=e.num,i=this._cacheMap.get(r);if(void 0!==i)return i instanceof n.Dict&&!i.objId&&(i.objId=e.toString()),i;var o=this.getEntry(r);if(null===o)return this._cacheMap.set(r,o),o;if(this._pendingRefs.has(e))return this._pendingRefs.remove(e),(0,a.warn)("Ignoring circular reference: ".concat(e,".")),n.CIRCULAR_REF;this._pendingRefs.put(e);try{o=o.uncompressed?this.fetchUncompressed(e,o,t):this.fetchCompressed(e,o,t),this._pendingRefs.remove(e)}catch(l){throw this._pendingRefs.remove(e),l}return o instanceof n.Dict?o.objId=e.toString():o instanceof s.BaseStream&&(o.dict.objId=e.toString()),o}},{key:"fetchUncompressed",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.gen,l=e.num;if(t.gen!==a)throw new i.XRefEntryException("Inconsistent generation in XRef: ".concat(e));var c=this.stream.makeSubStream(t.offset+this.stream.start),u=new o.Parser({lexer:new o.Lexer(c),xref:this,allowStreams:!0}),h=u.getObj(),d=u.getObj(),f=u.getObj();if(h!==l||d!==a||!(f instanceof n.Cmd))throw new i.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(e));if("obj"!==f.cmd){if(f.cmd.startsWith("obj")&&(l=parseInt(f.cmd.substring(3),10),!Number.isNaN(l)))return l;throw new i.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(e))}return t=this.encrypt&&!r?u.getObj(this.encrypt.createCipherTransform(l,a)):u.getObj(),t instanceof s.BaseStream||this._cacheMap.set(l,t),t}},{key:"fetchCompressed",value:function(e,t){var r=t.offset,l=this.fetch(n.Ref.get(r,0));if(!(l instanceof s.BaseStream))throw new a.FormatError("bad ObjStm stream");var c=l.dict.get("First"),u=l.dict.get("N");if(!Number.isInteger(c)||!Number.isInteger(u))throw new a.FormatError("invalid first and n parameters for ObjStm stream");for(var h=new o.Parser({lexer:new o.Lexer(l),xref:this,allowStreams:!0}),d=new Array(u),f=new Array(u),p=0;p<u;++p){var v=h.getObj();if(!Number.isInteger(v))throw new a.FormatError("invalid object number in the ObjStm stream: ".concat(v));var g=h.getObj();if(!Number.isInteger(g))throw new a.FormatError("invalid object offset in the ObjStm stream: ".concat(g));d[p]=v,f[p]=g}for(var m=(l.start||0)+c,y=new Array(u),b=0;b<u;++b){var k=b<u-1?f[b+1]-f[b]:void 0;if(k<0)throw new a.FormatError("Invalid offset in the ObjStm stream.");h=new o.Parser({lexer:new o.Lexer(l.makeSubStream(m+f[b],k,l.dict)),xref:this,allowStreams:!0});var w=h.getObj();if(y[b]=w,!(w instanceof s.BaseStream)){var _=d[b],S=this.entries[_];S&&S.offset===r&&S.gen===b&&this._cacheMap.set(_,w)}}if(t=y[t.gen],void 0===t)throw new i.XRefEntryException("Bad (compressed) XRef entry: ".concat(e));return t}},{key:"fetchIfRefAsync",value:function(){var e=w(m().mark((function e(t,r){return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t instanceof n.Ref)){e.next=2;break}return e.abrupt("return",this.fetchAsync(t,r));case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"fetchAsync",value:function(){var e=w(m().mark((function e(t,r){return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",this.fetch(t,r));case 4:if(e.prev=4,e.t0=e["catch"](0),e.t0 instanceof i.MissingDataException){e.next=8;break}throw e.t0;case 8:return e.next=10,this.pdfManager.requestRange(e.t0.begin,e.t0.end);case 10:return e.abrupt("return",this.fetchAsync(t,r));case 11:case"end":return e.stop()}}),e,this,[[0,4]])})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"getCatalogObj",value:function(){return this.root}}]),e}();t.XRef=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var a=r(2),n={UNKNOWN:0,DATA:1,ERROR:2},i={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function o(e){switch(e instanceof Error||"object"===x(e)&&null!==e||(0,a.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new a.AbortException(e.message);case"MissingPDFException":return new a.MissingPDFException(e.message);case"PasswordException":return new a.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new a.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new a.UnknownErrorException(e.message,e.details);default:return new a.UnknownErrorException(e.message,e.toString())}}var s=function(){function e(t,r,a){var i=this;_(this,e),this.sourceName=t,this.targetName=r,this.comObj=a,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=function(e){var t=e.data;if(t.targetName===i.sourceName)if(t.stream)i._processStreamMessage(t);else if(t.callback){var r=t.callbackId,s=i.callbackCapabilities[r];if(!s)throw new Error("Cannot resolve callback ".concat(r));if(delete i.callbackCapabilities[r],t.callback===n.DATA)s.resolve(t.data);else{if(t.callback!==n.ERROR)throw new Error("Unexpected callback case");s.reject(o(t.reason))}}else{var l=i.actionHandler[t.action];if(!l)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var c=i.sourceName,u=t.sourceName;new Promise((function(e){e(l(t.data))})).then((function(e){a.postMessage({sourceName:c,targetName:u,callback:n.DATA,callbackId:t.callbackId,data:e})}),(function(e){a.postMessage({sourceName:c,targetName:u,callback:n.ERROR,callbackId:t.callbackId,reason:o(e)})}))}else t.streamId?i._createStreamSink(t):l(t.data)}},a.addEventListener("message",this._onComObjOnMessage)}return S(e,[{key:"on",value:function(e,t){var r=this.actionHandler;if(r[e])throw new Error('There is already an actionName called "'.concat(e,'"'));r[e]=t}},{key:"send",value:function(e,t,r){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}},{key:"sendWithPromise",value:function(e,t,r){var n=this.callbackId++,i=(0,a.createPromiseCapability)();this.callbackCapabilities[n]=i;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:n,data:t},r)}catch(o){i.reject(o)}return i.promise}},{key:"sendWithStream",value:function(e,t,r,n){var s=this,l=this.streamId++,c=this.sourceName,u=this.targetName,h=this.comObj;return new ReadableStream({start:function(r){var i=(0,a.createPromiseCapability)();return s.streamControllers[l]={controller:r,startCall:i,pullCall:null,cancelCall:null,isClosed:!1},h.postMessage({sourceName:c,targetName:u,action:e,streamId:l,data:t,desiredSize:r.desiredSize},n),i.promise},pull:function(e){var t=(0,a.createPromiseCapability)();return s.streamControllers[l].pullCall=t,h.postMessage({sourceName:c,targetName:u,stream:i.PULL,streamId:l,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,a.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,a.createPromiseCapability)();return s.streamControllers[l].cancelCall=t,s.streamControllers[l].isClosed=!0,h.postMessage({sourceName:c,targetName:u,stream:i.CANCEL,streamId:l,reason:o(e)}),t.promise}},r)}},{key:"_createStreamSink",value:function(e){var t=e.streamId,r=this.sourceName,n=e.sourceName,s=this.comObj,l=this,c=this.actionHandler[e.action],u={enqueue:function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,l=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var c=this.desiredSize;this.desiredSize-=o,c>0&&this.desiredSize<=0&&(this.sinkCapability=(0,a.createPromiseCapability)(),this.ready=this.sinkCapability.promise),s.postMessage({sourceName:r,targetName:n,stream:i.ENQUEUE,streamId:t,chunk:e},l)}},close:function(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:r,targetName:n,stream:i.CLOSE,streamId:t}),delete l.streamSinks[t])},error:function(e){(0,a.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:r,targetName:n,stream:i.ERROR,streamId:t,reason:o(e)}))},sinkCapability:(0,a.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};u.sinkCapability.resolve(),u.ready=u.sinkCapability.promise,this.streamSinks[t]=u,new Promise((function(t){t(c(e.data,u))})).then((function(){s.postMessage({sourceName:r,targetName:n,stream:i.START_COMPLETE,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:r,targetName:n,stream:i.START_COMPLETE,streamId:t,reason:o(e)})}))}},{key:"_processStreamMessage",value:function(e){var t=e.streamId,r=this.sourceName,n=e.sourceName,s=this.comObj,l=this.streamControllers[t],c=this.streamSinks[t];switch(e.stream){case i.START_COMPLETE:e.success?l.startCall.resolve():l.startCall.reject(o(e.reason));break;case i.PULL_COMPLETE:e.success?l.pullCall.resolve():l.pullCall.reject(o(e.reason));break;case i.PULL:if(!c){s.postMessage({sourceName:r,targetName:n,stream:i.PULL_COMPLETE,streamId:t,success:!0});break}c.desiredSize<=0&&e.desiredSize>0&&c.sinkCapability.resolve(),c.desiredSize=e.desiredSize,new Promise((function(e){e(c.onPull&&c.onPull())})).then((function(){s.postMessage({sourceName:r,targetName:n,stream:i.PULL_COMPLETE,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:r,targetName:n,stream:i.PULL_COMPLETE,streamId:t,reason:o(e)})}));break;case i.ENQUEUE:if((0,a.assert)(l,"enqueue should have stream controller"),l.isClosed)break;l.controller.enqueue(e.chunk);break;case i.CLOSE:if((0,a.assert)(l,"close should have stream controller"),l.isClosed)break;l.isClosed=!0,l.controller.close(),this._deleteStreamController(l,t);break;case i.ERROR:(0,a.assert)(l,"error should have stream controller"),l.controller.error(o(e.reason)),this._deleteStreamController(l,t);break;case i.CANCEL_COMPLETE:e.success?l.cancelCall.resolve():l.cancelCall.reject(o(e.reason)),this._deleteStreamController(l,t);break;case i.CANCEL:if(!c)break;new Promise((function(t){t(c.onCancel&&c.onCancel(o(e.reason)))})).then((function(){s.postMessage({sourceName:r,targetName:n,stream:i.CANCEL_COMPLETE,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:r,targetName:n,stream:i.CANCEL_COMPLETE,streamId:t,reason:o(e)})})),c.sinkCapability.reject(o(e.reason)),c.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){var e=w(m().mark((function e(t,r){return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([t.startCall&&t.startCall.promise,t.pullCall&&t.pullCall.promise,t.cancelCall&&t.cancelCall.promise]);case 2:delete this.streamControllers[r];case 3:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),e}();t.MessageHandler=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFWorkerStream=void 0;var a=r(2),n=function(){function e(t){_(this,e),this._msgHandler=t,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}return S(e,[{key:"getFullReader",value:function(){return(0,a.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new i(this._msgHandler),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var r=new o(e,t,this._msgHandler);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t,r=b(this._rangeRequestReaders.slice(0));try{for(r.s();!(t=r.n()).done;){var a=t.value;a.cancel(e)}}catch(n){r.e(n)}finally{r.f()}}}]),e}();t.PDFWorkerStream=n;var i=function(){function e(t){var r=this;_(this,e),this._msgHandler=t,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;var a=this._msgHandler.sendWithStream("GetReader");this._reader=a.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((function(e){r._isStreamingSupported=e.isStreamingSupported,r._isRangeSupported=e.isRangeSupported,r._contentLength=e.contentLength}))}return S(e,[{key:"headersReady",get:function(){return this._headersReady}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"read",value:function(){var e=w(m().mark((function e(){var t,r,a;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:if(t=e.sent,r=t.value,a=t.done,!a){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return e.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._reader.cancel(e)}}]),e}(),o=function(){function e(t,r,a){_(this,e),this._msgHandler=a,this.onProgress=null;var n=this._msgHandler.sendWithStream("GetRangeReader",{begin:t,end:r});this._reader=n.getReader()}return S(e,[{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:function(){var e=w(m().mark((function e(){var t,r,a;return m().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:if(t=e.sent,r=t.value,a=t.done,!a){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return e.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._reader.cancel(e)}}]),e}()}],i={};function o(e){var r=i[e];if(void 0!==r)return r.exports;var a=i[e]={exports:{}};return t[e](a,a.exports,o),a.exports}(function(){o.d=function(e,t){for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),function(){o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}();var s={};return function(){"use strict";var e=s;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WorkerMessageHandler",{enumerable:!0,get:function(){return t.WorkerMessageHandler}});var t=o(1)}(),s}()}))}).call(this,r("b639").Buffer,r("4362"),r("c8ba"),r("62e4")(e))},d721:function(e,t,r){var a=r("c08c");function n(e,t,r){return a(e,t),r}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},da84:function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,r("c8ba"))},de5e:function(e,t,r){var a=r("31b3"),n=r("c08c"),i=r("9fa2");function o(e,t,r,o){return n(e,t),i(r,"set"),a(e,r,o),o}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},ded3:function(e,t,r){var a=r("9523");function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},df75:function(e,t,r){var a=r("ca84"),n=r("7839");e.exports=Object.keys||function(e){return a(e,n)}},df7c:function(e,t,r){(function(e){function r(e,t){for(var r=0,a=e.length-1;a>=0;a--){var n=e[a];"."===n?e.splice(a,1):".."===n?(e.splice(a,1),r++):r&&(e.splice(a,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function a(e){"string"!==typeof e&&(e+="");var t,r=0,a=-1,n=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===a&&(n=!1,a=t+1);return-1===a?"":e.slice(r,a)}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],a=0;a<e.length;a++)t(e[a],a,e)&&r.push(e[a]);return r}t.resolve=function(){for(var t="",a=!1,i=arguments.length-1;i>=-1&&!a;i--){var o=i>=0?arguments[i]:e.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,a="/"===o.charAt(0))}return t=r(n(t.split("/"),(function(e){return!!e})),!a).join("/"),(a?"/":"")+t||"."},t.normalize=function(e){var a=t.isAbsolute(e),o="/"===i(e,-1);return e=r(n(e.split("/"),(function(e){return!!e})),!a).join("/"),e||a||(e="."),e&&o&&(e+="/"),(a?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(n(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function a(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var r=e.length-1;r>=0;r--)if(""!==e[r])break;return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var n=a(e.split("/")),i=a(r.split("/")),o=Math.min(n.length,i.length),s=o,l=0;l<o;l++)if(n[l]!==i[l]){s=l;break}var c=[];for(l=s;l<n.length;l++)c.push("..");return c=c.concat(i.slice(s)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,a=-1,n=!0,i=e.length-1;i>=1;--i)if(t=e.charCodeAt(i),47===t){if(!n){a=i;break}}else n=!1;return-1===a?r?"/":".":r&&1===a?"/":e.slice(0,a)},t.basename=function(e,t){var r=a(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,r=0,a=-1,n=!0,i=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===a&&(n=!1,a=o+1),46===s?-1===t?t=o:1!==i&&(i=1):-1!==t&&(i=-1);else if(!n){r=o+1;break}}return-1===t||-1===a||0===i||1===i&&t===a-1&&t===r+1?"":e.slice(t,a)};var i="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r("4362"))},e163:function(e,t,r){var a=r("5135"),n=r("7b0b"),i=r("f772"),o=r("e177"),s=i("IE_PROTO"),l=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=n(e),a(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},e177:function(e,t,r){var a=r("d039");e.exports=!a((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e3db:function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},e50d:function(e,t,r){var a=r("7037")["default"];function n(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},e893:function(e,t,r){var a=r("5135"),n=r("56ef"),i=r("06cf"),o=r("9bf2");e.exports=function(e,t){for(var r=n(t),s=o.f,l=i.f,c=0;c<r.length;c++){var u=r[c];a(e,u)||s(e,u,l(t,u))}}},ebb5:function(e,t,r){"use strict";var a,n=r("a981"),i=r("83ab"),o=r("da84"),s=r("861d"),l=r("5135"),c=r("f5df"),u=r("9112"),h=r("6eeb"),d=r("9bf2").f,f=r("e163"),p=r("d2bb"),v=r("b622"),g=r("90e3"),m=o.Int8Array,y=m&&m.prototype,b=o.Uint8ClampedArray,k=b&&b.prototype,w=m&&f(m),_=y&&f(y),S=Object.prototype,x=S.isPrototypeOf,A=v("toStringTag"),C=g("TYPED_ARRAY_TAG"),F=n&&!!p&&"Opera"!==c(o.opera),P=!1,T={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},O={BigInt64Array:8,BigUint64Array:8},I=function(e){if(!s(e))return!1;var t=c(e);return"DataView"===t||l(T,t)||l(O,t)},E=function(e){if(!s(e))return!1;var t=c(e);return l(T,t)||l(O,t)},M=function(e){if(E(e))return e;throw TypeError("Target is not a typed array")},R=function(e){if(p){if(x.call(w,e))return e}else for(var t in T)if(l(T,a)){var r=o[t];if(r&&(e===r||x.call(r,e)))return e}throw TypeError("Target is not a typed array constructor")},D=function(e,t,r){if(i){if(r)for(var a in T){var n=o[a];n&&l(n.prototype,e)&&delete n.prototype[e]}_[e]&&!r||h(_,e,r?t:F&&y[e]||t)}},N=function(e,t,r){var a,n;if(i){if(p){if(r)for(a in T)n=o[a],n&&l(n,e)&&delete n[e];if(w[e]&&!r)return;try{return h(w,e,r?t:F&&m[e]||t)}catch(s){}}for(a in T)n=o[a],!n||n[e]&&!r||h(n,e,t)}};for(a in T)o[a]||(F=!1);if((!F||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},F))for(a in T)o[a]&&p(o[a],w);if((!F||!_||_===S)&&(_=w.prototype,F))for(a in T)o[a]&&p(o[a].prototype,_);if(F&&f(k)!==_&&p(k,_),i&&!l(_,A))for(a in P=!0,d(_,A,{get:function(){return s(this)?this[C]:void 0}}),T)o[a]&&u(o[a],C,a);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:F,TYPED_ARRAY_TAG:P&&C,aTypedArray:M,aTypedArrayConstructor:R,exportTypedArrayMethod:D,exportTypedArrayStaticMethod:N,isView:I,isTypedArray:E,TypedArray:w,TypedArrayPrototype:_}},ed6d:function(e,t,r){var a=r("4a4b");function n(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},f2f2:function(e,t,r){"use strict";r("39d2")},f5df:function(e,t,r){var a=r("00ee"),n=r("c6b6"),i=r("b622"),o=i("toStringTag"),s="Arguments"==n(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(r){}};e.exports=a?n:function(e){var t,r,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=l(t=Object(e),o))?r:s?n(t):"Object"==(a=n(t))&&"function"==typeof t.callee?"Arguments":a}},f763:function(e,t,r){var a=r("31b3"),n=r("866f");function i(e,t,r){var i=n(e,t,"set");return a(e,i,r),r}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},f772:function(e,t,r){var a=r("5692"),n=r("90e3"),i=a("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},f8c9:function(e,t,r){var a=r("23e7"),n=r("da84"),i=r("d44e");a({global:!0},{Reflect:{}}),i(n.Reflect,"Reflect",!0)},f8cd:function(e,t,r){var a=r("a691");e.exports=function(e){var t=a(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},fb15:function(e,t,r){"use strict";if(r.r(t),"undefined"!==typeof window){var a=window.document.currentScript,n=r("8875");a=n(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:n});var i=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"pdf-view"},[e.showPages?r("div",{staticClass:"pdf-view-control"},[r("switch-page",{ref:"switchPage",attrs:{numPages:e.page_count},on:{page:e.onChangePage}})],1):e._e(),r("div",{staticClass:"pdf-view-area-wapper"},[r("div",{style:e.style},[e.pdfurl?r("div",{staticClass:"center pdf-view-area",style:{border:e.border?"1px solid #666":""},on:{drop:e.onDrop,dragover:e.onDragOver}},[e.fileLoading?r("div",{staticClass:"pdf-view-loading"},[e._v("文件加载中...")]):e._e(),r("canvas",{ref:"canvas",staticClass:"canvasstyle"}),r("div",{staticClass:"label-area"},[e._t("default")],2)]):r("div",{staticClass:"pdf-view-empty"},[e._v("未找到资源,请联系管理员!")])])])])},s=[];function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(){
|
|
56
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
57
|
+
c=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(O){u=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),s=new F(n||[]);return a(o,"_invoke",{value:S(e,r,s)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=h;var f={};function p(){}function v(){}function g(){}var m={};u(m,i,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(P([])));b&&b!==t&&r.call(b,i)&&(m=b);var k=g.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(a,i,o,s){var c=d(e[a],e,i);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==l(h)&&r.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(h).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return i=i?i.then(a,a):a()}})}function S(e,t,r){var a="suspendedStart";return function(n,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===n)throw i;return T()}for(r.method=n,r.arg=i;;){var o=r.delegate;if(o){var s=x(o,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var l=d(e,t,r);if("normal"===l.type){if(a=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a="completed",r.method="throw",r.arg=l.arg)}}}function x(e,t){var r=t.method,a=e.iterator[r];if(void 0===a)return t.delegate=null,"throw"===r&&e.iterator["return"]&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var n=d(a,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function P(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,n=function t(){for(;++a<e.length;)if(r.call(e,a))return t.value=e[a],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:T}}function T(){return{value:void 0,done:!0}}return v.prototype=g,a(k,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:v,configurable:!0}),v.displayName=u(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},w(_.prototype),u(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,a,n,i){void 0===i&&(i=Promise);var o=new _(h(t,r,a,n),i);return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},w(k),u(k,s,"Generator"),u(k,i,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var a in t)r.push(a);return r.reverse(),function e(){for(;r.length;){var a=r.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},e.values=P,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function a(r,a){return o.type="throw",o.arg=e,t.next=r,a&&(t.method="next",t.arg=void 0),!!a}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;C(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function u(e,t,r,a,n,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(a,n)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(a,n){var i=e.apply(t,r);function o(e){u(i,a,n,o,s,"next",e)}function s(e){u(i,a,n,o,s,"throw",e)}o(void 0)}))}}var d=r("9511"),f=1;d.GlobalWorkerOptions.workerSrc=r("8658");var p={props:{pdfurl:{default:""},scale:{type:Number,default:f},showPages:{type:[String,Number,Boolean],default:!0},border:{type:[String,Number,Boolean],default:!0},marginAuto:{type:[String,Number,Boolean],default:!1},page:{type:[String,Number],default:1},showWidth:{type:[String,Number],default:0}},data:function(){return{pdfDoc:null,pageNum:1,pageRendering:!1,fileLoading:!0,pageNumPending:null,compuscale:f,page_count:0,maxscale:1.5,minscale:.8,isready:!1,initPage:!0,style:{width:"860px",margin:""===this.marginAuto||this.marginAuto?"0 auto":"0"}}},methods:{renderPage:function(e){var t=this;return h(c().mark((function r(){var a,n,i,o,s,l,u,h,d;return c().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return a=t,t.pageRendering=!0,r.prev=2,r.next=5,t.pdfDoc.getPage(e);case 5:return n=r.sent,i=a.compuscale,o="",s=t.showWidth,t.initPage&&s&&(l=parseInt(s,10)-2,o=n.getViewport({scale:1}),i=l/o.width,t.initPage=!1,t.compuscale=i,t.maxscale=i),o=n.getViewport({scale:i}),t.$emit("size",o,e),a.isready=!0,u=a.$refs.canvas,t.style.width="".concat(o.width+2,"px"),u.height=o.height,u.width=o.width,h={canvasContext:u.getContext("2d"),viewport:o},d=n.render(h),r.next=21,d.promise;case 21:a.pageRendering=!1,null!==a.pageNumPending&&(a.renderPage(a.pageNumPending),a.pageNumPending=null),t.$emit("renderSuccess"),r.next=29;break;case 26:r.prev=26,r.t0=r["catch"](2),console.error(r.t0);case 29:return r.prev=29,t.pageRendering=!1,r.finish(29);case 32:case"end":return r.stop()}}),r,null,[[2,26,29,32]])})))()},prev:function(){this.pageNum<=1||(this.pageNum--,this.queueRenderPage(this.pageNum))},next:function(){this.pageNum>=this.page_count||(this.pageNum++,this.queueRenderPage(this.pageNum))},onChangePage:function(e){this.emitPage(e),this.queueRenderPage(e)},emitPage:function(e){this.$emit("pageChange",e,this.page_count,e===this.page_count)},closepdf:function(){this.pdfDoc&&this.pdfDoc.destroy(),this.pdfDoc=null,this.isready=!1,this.compuscale=this.scale,this.$emit("closepdf")},queueRenderPage:function(e){this.pageRendering?this.pageNumPending=e:this.renderPage(e)},loadUrl:function(e){var t=this;return h(c().mark((function r(){var a,n,i;return c().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(d){r.next=2;break}return r.abrupt("return",!1);case 2:return t.fileLoading=!0,console.log("----PdfView---",e),r.prev=4,console.log("888--"),r.next=8,d.getDocument({url:encodeURI(e),cMapUrl:"https://unpkg.com/pdfjs-dist@2.16.105/cmaps/",cMapPacked:!0}).promise;case 8:a=r.sent,r.next=24;break;case 11:return r.prev=11,r.t0=r["catch"](4),console.log("999999--"),console.error(r.t0),r.next=17,fetch(new URL(e,window.location).href);case 17:return n=r.sent,r.next=20,n.arrayBuffer();case 20:return i=r.sent,r.next=23,d.getDocument({data:i}).promise;case 23:a=r.sent;case 24:return r.prev=24,t.fileLoading=!1,r.finish(24);case 27:if(!t.pdfDoc){r.next=33;break}return console.log("pdfDocument is ready destroy,,"),r.next=31,t.pdfDoc.destroy();case 31:t.pdfDoc=null,console.log("pdfDocument is destroy");case 33:t.pdfDoc=a,t.page_count=a.numPages,console.log("this.page_count",t.page_count),t.$emit("numPages",a.numPages),t.renderPage(t.pageNum),t.emitPage(t.pageNum);case 39:case"end":return r.stop()}}),r,null,[[4,11,24,27]])})))()},onDrop:function(e){this.$emit("drop",e)},onDragOver:function(e){e.preventDefault()}},mounted:function(){this.compuscale=this.scale},beforeDestroy:function(){this.pdfDoc&&this.pdfDoc.destroy()},watch:{scale:function(e){e&&(this.compuscale=e)},pdfurl:{handler:function(e){var t=this;this.$nextTick((function(){e&&(t.pageNum=1,t.initPage=!0,t.loadUrl(e),t.pdfDoc&&t.pdfDoc.destroy()),t.showPages&&t.$refs.switchPage.setPage(1)}))},immediate:!0},page:function(e,t){this.queueRenderPage(e)}}},v=p;r("f2f2");function g(e,t,r,a,n,i,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=r,c._compiled=!0),a&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):n&&(l=s?function(){n.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}var m=g(v,o,s,!1,null,"f234d864",null),y=m.exports,b={PdfView216:y};t["default"]=b},fbab:function(e,t,r){
|
|
58
|
+
/*!
|
|
59
|
+
* DOMMatrix v1.0.3 (https://thednp.github.io/dommatrix/)
|
|
60
|
+
* Copyright 2022 © thednp
|
|
61
|
+
* Licensed under MIT (https://github.com/thednp/DOMMatrix/blob/master/LICENSE)
|
|
62
|
+
*/
|
|
63
|
+
(function(t,r){e.exports=r()})(0,(function(){"use strict";function e(e){var t=new d,r=Array.from(e);if(!r.every((function(e){return!Number.isNaN(e)})))throw TypeError('CSSMatrix: "'+e+'" must only have numbers.');if(16===r.length){var a=r[0],n=r[1],i=r[2],o=r[3],s=r[4],l=r[5],c=r[6],u=r[7],h=r[8],f=r[9],p=r[10],v=r[11],g=r[12],m=r[13],y=r[14],b=r[15];t.m11=a,t.a=a,t.m21=s,t.c=s,t.m31=h,t.m41=g,t.e=g,t.m12=n,t.b=n,t.m22=l,t.d=l,t.m32=f,t.m42=m,t.f=m,t.m13=i,t.m23=c,t.m33=p,t.m43=y,t.m14=o,t.m24=u,t.m34=v,t.m44=b}else{if(6!==r.length)throw new TypeError("CSSMatrix: expecting an Array of 6/16 values.");var k=r[0],w=r[1],_=r[2],S=r[3],x=r[4],A=r[5];t.m11=k,t.a=k,t.m12=w,t.b=w,t.m21=_,t.c=_,t.m22=S,t.d=S,t.m41=x,t.e=x,t.m42=A,t.f=A}return t}function t(t){var r=Object.keys(new d);if("object"===typeof t&&r.every((function(e){return e in t})))return e([t.m11,t.m12,t.m13,t.m14,t.m21,t.m22,t.m23,t.m24,t.m31,t.m32,t.m33,t.m34,t.m41,t.m42,t.m43,t.m44]);throw TypeError('CSSMatrix: "'+JSON.stringify(t)+'" is not a DOMMatrix / CSSMatrix / JSON compatible object.')}function r(t){if("string"!==typeof t)throw TypeError('CSSMatrix: "'+t+'" is not a string.');var r=String(t).replace(/\s/g,""),a=new d,n='CSSMatrix: invalid transform string "'+t+'"';return r.split(")").filter((function(e){return e})).forEach((function(t){var r=t.split("("),i=r[0],o=r[1];if(!o)throw TypeError(n);var s=o.split(",").map((function(e){return e.includes("rad")?parseFloat(e)*(180/Math.PI):parseFloat(e)})),l=s[0],c=s[1],u=s[2],h=s[3],d=[l,c,u],f=[l,c,u,h];if("perspective"===i&&l&&[c,u].every((function(e){return void 0===e})))a.m34=-1/l;else if(i.includes("matrix")&&[6,16].includes(s.length)&&s.every((function(e){return!Number.isNaN(+e)}))){var p=s.map((function(e){return Math.abs(e)<1e-6?0:e}));a=a.multiply(e(p))}else if("translate3d"===i&&d.every((function(e){return!Number.isNaN(+e)})))a=a.translate(l,c,u);else if("translate"===i&&l&&void 0===u)a=a.translate(l,c||0,0);else if("rotate3d"===i&&f.every((function(e){return!Number.isNaN(+e)}))&&h)a=a.rotateAxisAngle(l,c,u,h);else if("rotate"===i&&l&&[c,u].every((function(e){return void 0===e})))a=a.rotate(0,0,l);else if("scale3d"===i&&d.every((function(e){return!Number.isNaN(+e)}))&&d.some((function(e){return 1!==e})))a=a.scale(l,c,u);else if("scale"!==i||Number.isNaN(l)||1===l||void 0!==u)if("skew"===i&&(l||!Number.isNaN(l)&&c)&&void 0===u)a=a.skew(l,c||0);else{if(!(/[XYZ]/.test(i)&&l&&[c,u].every((function(e){return void 0===e}))&&["translate","rotate","scale","skew"].some((function(e){return i.includes(e)}))))throw TypeError(n);if(["skewX","skewY"].includes(i))a=a[i](l);else{var v=i.replace(/[XYZ]/,""),g=i.replace(v,""),m=["X","Y","Z"].indexOf(g),y="scale"===v?1:0,b=[0===m?l:y,1===m?l:y,2===m?l:y];a=a[v].apply(a,b)}}else{var k=Number.isNaN(+c),w=k?l:c;a=a.scale(l,w,1)}})),a}function a(e,t){return t?[e.a,e.b,e.c,e.d,e.e,e.f]:[e.m11,e.m12,e.m13,e.m14,e.m21,e.m22,e.m23,e.m24,e.m31,e.m32,e.m33,e.m34,e.m41,e.m42,e.m43,e.m44]}function n(e,t,r){var a=new d;return a.m41=e,a.e=e,a.m42=t,a.f=t,a.m43=r,a}function i(e,t,r){var a=new d,n=Math.PI/180,i=e*n,o=t*n,s=r*n,l=Math.cos(i),c=-Math.sin(i),u=Math.cos(o),h=-Math.sin(o),f=Math.cos(s),p=-Math.sin(s),v=u*f,g=-u*p;a.m11=v,a.a=v,a.m12=g,a.b=g,a.m13=h;var m=c*h*f+l*p;a.m21=m,a.c=m;var y=l*f-c*h*p;return a.m22=y,a.d=y,a.m23=-c*u,a.m31=c*p-l*h*f,a.m32=c*f+l*h*p,a.m33=l*u,a}function o(e,t,r,a){var n=new d,i=Math.sqrt(e*e+t*t+r*r);if(0===i)return n;var o=e/i,s=t/i,l=r/i,c=a*(Math.PI/360),u=Math.sin(c),h=Math.cos(c),f=u*u,p=o*o,v=s*s,g=l*l,m=1-2*(v+g)*f;n.m11=m,n.a=m;var y=2*(o*s*f+l*u*h);n.m12=y,n.b=y,n.m13=2*(o*l*f-s*u*h);var b=2*(s*o*f-l*u*h);n.m21=b,n.c=b;var k=1-2*(g+p)*f;return n.m22=k,n.d=k,n.m23=2*(s*l*f+o*u*h),n.m31=2*(l*o*f+s*u*h),n.m32=2*(l*s*f-o*u*h),n.m33=1-2*(p+v)*f,n}function s(e,t,r){var a=new d;return a.m11=e,a.a=e,a.m22=t,a.d=t,a.m33=r,a}function l(e,t){var r=new d;if(e){var a=e*Math.PI/180,n=Math.tan(a);r.m21=n,r.c=n}if(t){var i=t*Math.PI/180,o=Math.tan(i);r.m12=o,r.b=o}return r}function c(e){return l(e,0)}function u(e){return l(0,e)}function h(t,r){var a=r.m11*t.m11+r.m12*t.m21+r.m13*t.m31+r.m14*t.m41,n=r.m11*t.m12+r.m12*t.m22+r.m13*t.m32+r.m14*t.m42,i=r.m11*t.m13+r.m12*t.m23+r.m13*t.m33+r.m14*t.m43,o=r.m11*t.m14+r.m12*t.m24+r.m13*t.m34+r.m14*t.m44,s=r.m21*t.m11+r.m22*t.m21+r.m23*t.m31+r.m24*t.m41,l=r.m21*t.m12+r.m22*t.m22+r.m23*t.m32+r.m24*t.m42,c=r.m21*t.m13+r.m22*t.m23+r.m23*t.m33+r.m24*t.m43,u=r.m21*t.m14+r.m22*t.m24+r.m23*t.m34+r.m24*t.m44,h=r.m31*t.m11+r.m32*t.m21+r.m33*t.m31+r.m34*t.m41,d=r.m31*t.m12+r.m32*t.m22+r.m33*t.m32+r.m34*t.m42,f=r.m31*t.m13+r.m32*t.m23+r.m33*t.m33+r.m34*t.m43,p=r.m31*t.m14+r.m32*t.m24+r.m33*t.m34+r.m34*t.m44,v=r.m41*t.m11+r.m42*t.m21+r.m43*t.m31+r.m44*t.m41,g=r.m41*t.m12+r.m42*t.m22+r.m43*t.m32+r.m44*t.m42,m=r.m41*t.m13+r.m42*t.m23+r.m43*t.m33+r.m44*t.m43,y=r.m41*t.m14+r.m42*t.m24+r.m43*t.m34+r.m44*t.m44;return e([a,n,i,o,s,l,c,u,h,d,f,p,v,g,m,y])}var d=function(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var r=this;if(r.a=1,r.b=0,r.c=0,r.d=1,r.e=0,r.f=0,r.m11=1,r.m12=0,r.m13=0,r.m14=0,r.m21=0,r.m22=1,r.m23=0,r.m24=0,r.m31=0,r.m32=0,r.m33=1,r.m34=0,r.m41=0,r.m42=0,r.m43=0,r.m44=1,e.length){var a=[16,6].some((function(t){return t===e.length}))?e:e[0];return r.setMatrixValue(a)}return r},f={isIdentity:{configurable:!0},is2D:{configurable:!0}};f.isIdentity.get=function(){var e=this;return 1===e.m11&&0===e.m12&&0===e.m13&&0===e.m14&&0===e.m21&&1===e.m22&&0===e.m23&&0===e.m24&&0===e.m31&&0===e.m32&&1===e.m33&&0===e.m34&&0===e.m41&&0===e.m42&&0===e.m43&&1===e.m44},f.is2D.get=function(){var e=this;return 0===e.m31&&0===e.m32&&1===e.m33&&0===e.m34&&0===e.m43&&1===e.m44},d.prototype.setMatrixValue=function(a){var n=this;return"string"===typeof a&&a.length&&"none"!==a?r(a):[Array,Float64Array,Float32Array].some((function(e){return a instanceof e}))?e(a):[d,DOMMatrix,Object].some((function(e){return a instanceof e}))?t(a):n},d.prototype.toFloat32Array=function(e){return Float32Array.from(a(this,e))},d.prototype.toFloat64Array=function(e){return Float64Array.from(a(this,e))},d.prototype.toString=function(){var e=this,t=e.is2D,r=e.toFloat64Array(t).join(", "),a=t?"matrix":"matrix3d";return a+"("+r+")"},d.prototype.toJSON=function(){var e=this,t=e.is2D,r=e.isIdentity;return Object.assign({},e,{is2D:t,isIdentity:r})},d.prototype.multiply=function(e){return h(this,e)},d.prototype.translate=function(e,t,r){var a=e,i=t,o=r;return void 0===i&&(i=0),void 0===o&&(o=0),h(this,n(a,i,o))},d.prototype.scale=function(e,t,r){var a=e,n=t,i=r;return void 0===n&&(n=e),void 0===i&&(i=1),h(this,s(a,n,i))},d.prototype.rotate=function(e,t,r){var a=e,n=t||0,o=r||0;return"number"===typeof e&&void 0===t&&void 0===r&&(o=a,a=0,n=0),h(this,i(a,n,o))},d.prototype.rotateAxisAngle=function(e,t,r,a){if([e,t,r,a].some((function(e){return Number.isNaN(+e)})))throw new TypeError("CSSMatrix: expecting 4 values");return h(this,o(e,t,r,a))},d.prototype.skewX=function(e){return h(this,c(e))},d.prototype.skewY=function(e){return h(this,u(e))},d.prototype.skew=function(e,t){return h(this,l(e,t))},d.prototype.transformPoint=function(e){var t=this,r=t.m11*e.x+t.m21*e.y+t.m31*e.z+t.m41*e.w,a=t.m12*e.x+t.m22*e.y+t.m32*e.z+t.m42*e.w,n=t.m13*e.x+t.m23*e.y+t.m33*e.z+t.m43*e.w,i=t.m14*e.x+t.m24*e.y+t.m34*e.z+t.m44*e.w;return e instanceof DOMPoint?new DOMPoint(r,a,n,i):{x:r,y:a,z:n,w:i}},Object.defineProperties(d.prototype,f),Object.assign(d,{Translate:n,Rotate:i,RotateAxisAngle:o,Scale:s,SkewX:c,SkewY:u,Skew:l,Multiply:h,fromArray:e,fromMatrix:t,fromString:r,toArray:a});var p="1.0.3",v=p;return Object.assign(d,{Version:v}),d}))},fc6a:function(e,t,r){var a=r("44ad"),n=r("1d80");e.exports=function(e){return a(n(e))}},fdbf:function(e,t,r){var a=r("4930");e.exports=a&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})}));
|