vue2-pdf
Version:
基于Vue2 + webpack + PDF.js版的PDF预览插件
23 lines • 1.07 MB
JavaScript
(function(){var e={9662:function(e,t,a){var n=a(614),r=a(6330),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(r(e)+" is not a function")}},6077:function(e,t,a){var n=a(614),r=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw i("Can't set "+r(e)+" as a prototype")}},1223:function(e,t,a){var n=a(5112),r=a(30),i=a(3070).f,s=n("unscopables"),o=Array.prototype;void 0==o[s]&&i(o,s,{configurable:!0,value:r(null)}),e.exports=function(e){o[s][e]=!0}},5787:function(e,t,a){var n=a(7976),r=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw r("Incorrect invocation")}},9670:function(e,t,a){var n=a(111),r=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(r(e)+" is not an object")}},3013:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},260:function(e,t,a){"use strict";var n,r,i,s=a(3013),o=a(9781),c=a(7854),l=a(614),h=a(111),u=a(2597),d=a(648),f=a(6330),g=a(8880),p=a(8052),m=a(3070).f,b=a(7976),y=a(9518),w=a(7674),x=a(5112),S=a(9711),k=a(9909),A=k.enforce,v=k.get,C=c.Int8Array,O=C&&C.prototype,F=c.Uint8ClampedArray,I=F&&F.prototype,T=C&&y(C),M=O&&y(O),E=Object.prototype,P=c.TypeError,N=x("toStringTag"),D=S("TYPED_ARRAY_TAG"),R="TypedArrayConstructor",B=s&&!!w&&"Opera"!==d(c.opera),L=!1,$={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},_={BigInt64Array:8,BigUint64Array:8},j=function(e){if(!h(e))return!1;var t=d(e);return"DataView"===t||u($,t)||u(_,t)},U=function(e){var t=y(e);if(h(t)){var a=v(t);return a&&u(a,R)?a[R]:U(t)}},X=function(e){if(!h(e))return!1;var t=d(e);return u($,t)||u(_,t)},H=function(e){if(X(e))return e;throw P("Target is not a typed array")},q=function(e){if(l(e)&&(!w||b(T,e)))return e;throw P(f(e)+" is not a typed array constructor")},z=function(e,t,a,n){if(o){if(a)for(var r in $){var i=c[r];if(i&&u(i.prototype,e))try{delete i.prototype[e]}catch(s){try{i.prototype[e]=t}catch(l){}}}M[e]&&!a||p(M,e,a?t:B&&O[e]||t,n)}},G=function(e,t,a){var n,r;if(o){if(w){if(a)for(n in $)if(r=c[n],r&&u(r,e))try{delete r[e]}catch(i){}if(T[e]&&!a)return;try{return p(T,e,a?t:B&&T[e]||t)}catch(i){}}for(n in $)r=c[n],!r||r[e]&&!a||p(r,e,t)}};for(n in $)r=c[n],i=r&&r.prototype,i?A(i)[R]=r:B=!1;for(n in _)r=c[n],i=r&&r.prototype,i&&(A(i)[R]=r);if((!B||!l(T)||T===Function.prototype)&&(T=function(){throw P("Incorrect invocation")},B))for(n in $)c[n]&&w(c[n],T);if((!B||!M||M===E)&&(M=T.prototype,B))for(n in $)c[n]&&w(c[n].prototype,M);if(B&&y(I)!==M&&w(I,M),o&&!u(M,N))for(n in L=!0,m(M,N,{get:function(){return h(this)?this[D]:void 0}}),$)c[n]&&g(c[n],D,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:B,TYPED_ARRAY_TAG:L&&D,aTypedArray:H,aTypedArrayConstructor:q,exportTypedArrayMethod:z,exportTypedArrayStaticMethod:G,getTypedArrayConstructor:U,isView:j,isTypedArray:X,TypedArray:T,TypedArrayPrototype:M}},1318:function(e,t,a){var n=a(5656),r=a(1400),i=a(6244),s=function(e){return function(t,a,s){var o,c=n(t),l=i(c),h=r(s,l);if(e&&a!=a){while(l>h)if(o=c[h++],o!=o)return!0}else for(;l>h;h++)if((e||h in c)&&c[h]===a)return e||h||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},9671:function(e,t,a){var n=a(9974),r=a(8361),i=a(7908),s=a(6244),o=function(e){var t=1==e;return function(a,o,c){var l,h,u=i(a),d=r(u),f=n(o,c),g=s(d);while(g-- >0)if(l=d[g],h=f(l,g,u),h)switch(e){case 0:return l;case 1:return g}return t?-1:void 0}};e.exports={findLast:o(0),findLastIndex:o(1)}},3658:function(e,t,a){"use strict";var n=a(9781),r=a(3157),i=TypeError,s=Object.getOwnPropertyDescriptor,o=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=o?function(e,t){if(r(e)&&!s(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4326:function(e,t,a){var n=a(1702),r=n({}.toString),i=n("".slice);e.exports=function(e){return i(r(e),8,-1)}},648:function(e,t,a){var n=a(1694),r=a(614),i=a(4326),s=a(5112),o=s("toStringTag"),c=Object,l="Arguments"==i(function(){return arguments}()),h=function(e,t){try{return e[t]}catch(a){}};e.exports=n?i:function(e){var t,a,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=h(t=c(e),o))?a:l?i(t):"Object"==(n=i(t))&&r(t.callee)?"Arguments":n}},9920:function(e,t,a){var n=a(2597),r=a(3887),i=a(1236),s=a(3070);e.exports=function(e,t,a){for(var o=r(t),c=s.f,l=i.f,h=0;h<o.length;h++){var u=o[h];n(e,u)||a&&n(a,u)||c(e,u,l(t,u))}}},8544:function(e,t,a){var n=a(7293);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},8880:function(e,t,a){var n=a(9781),r=a(3070),i=a(9114);e.exports=n?function(e,t,a){return r.f(e,t,i(1,a))}:function(e,t,a){return e[t]=a,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7045:function(e,t,a){var n=a(6339),r=a(3070);e.exports=function(e,t,a){return a.get&&n(a.get,t,{getter:!0}),a.set&&n(a.set,t,{setter:!0}),r.f(e,t,a)}},8052:function(e,t,a){var n=a(614),r=a(3070),i=a(6339),s=a(3072);e.exports=function(e,t,a,o){o||(o={});var c=o.enumerable,l=void 0!==o.name?o.name:t;if(n(a)&&i(a,l,o),o.global)c?e[t]=a:s(t,a);else{try{o.unsafe?e[t]&&(c=!0):delete e[t]}catch(h){}c?e[t]=a:r.f(e,t,{value:a,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},3072:function(e,t,a){var n=a(7854),r=Object.defineProperty;e.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch(a){n[e]=t}return t}},5117:function(e,t,a){"use strict";var n=a(6330),r=TypeError;e.exports=function(e,t){if(!delete e[t])throw r("Cannot delete property "+n(t)+" of "+n(e))}},9781:function(e,t,a){var n=a(7293);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(e){var t="object"==typeof document&&document.all,a="undefined"==typeof t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:a}},317:function(e,t,a){var n=a(7854),r=a(111),i=n.document,s=r(i)&&r(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},7207:function(e){var t=TypeError,a=9007199254740991;e.exports=function(e){if(e>a)throw t("Maximum allowed index exceeded");return e}},3678:function(e){e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},8113:function(e,t,a){var n=a(5005);e.exports=n("navigator","userAgent")||""},7392:function(e,t,a){var n,r,i=a(7854),s=a(8113),o=i.process,c=i.Deno,l=o&&o.versions||c&&c.version,h=l&&l.v8;h&&(n=h.split("."),r=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(r=+n[1]))),e.exports=r},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1060:function(e,t,a){var n=a(1702),r=Error,i=n("".replace),s=function(e){return String(r(e).stack)}("zxcasd"),o=/\n\s*at [^:]*:[^\n]*/,c=o.test(s);e.exports=function(e,t){if(c&&"string"==typeof e&&!r.prepareStackTrace)while(t--)e=i(e,o,"");return e}},2914:function(e,t,a){var n=a(7293),r=a(9114);e.exports=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},2109:function(e,t,a){var n=a(7854),r=a(1236).f,i=a(8880),s=a(8052),o=a(3072),c=a(9920),l=a(4705);e.exports=function(e,t){var a,h,u,d,f,g,p=e.target,m=e.global,b=e.stat;if(h=m?n:b?n[p]||o(p,{}):(n[p]||{}).prototype,h)for(u in t){if(f=t[u],e.dontCallGetSet?(g=r(h,u),d=g&&g.value):d=h[u],a=l(m?u:p+(b?".":"#")+u,e.forced),!a&&void 0!==d){if(typeof f==typeof d)continue;c(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),s(h,u,f,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},2104:function(e,t,a){var n=a(4374),r=Function.prototype,i=r.apply,s=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(i):function(){return s.apply(i,arguments)})},9974:function(e,t,a){var n=a(1702),r=a(9662),i=a(4374),s=n(n.bind);e.exports=function(e,t){return r(e),void 0===t?e:i?s(e,t):function(){return e.apply(t,arguments)}}},4374:function(e,t,a){var n=a(7293);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,a){var n=a(4374),r=Function.prototype.call;e.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},6530:function(e,t,a){var n=a(9781),r=a(2597),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,o=r(i,"name"),c=o&&"something"===function(){}.name,l=o&&(!n||n&&s(i,"name").configurable);e.exports={EXISTS:o,PROPER:c,CONFIGURABLE:l}},1702:function(e,t,a){var n=a(4374),r=Function.prototype,i=r.bind,s=r.call,o=n&&i.bind(s,s);e.exports=n?function(e){return e&&o(e)}:function(e){return e&&function(){return s.apply(e,arguments)}}},5005:function(e,t,a){var n=a(7854),r=a(614),i=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},8173:function(e,t,a){var n=a(9662),r=a(8554);e.exports=function(e,t){var a=e[t];return r(a)?void 0:n(a)}},7854:function(e,t,a){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof a.g&&a.g)||function(){return this}()||Function("return this")()},2597:function(e,t,a){var n=a(1702),r=a(7908),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(r(e),t)}},3501:function(e){e.exports={}},490:function(e,t,a){var n=a(5005);e.exports=n("document","documentElement")},4664:function(e,t,a){var n=a(9781),r=a(7293),i=a(317);e.exports=!n&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,a){var n=a(1702),r=a(7293),i=a(4326),s=Object,o=n("".split);e.exports=r((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o(e,""):s(e)}:s},9587:function(e,t,a){var n=a(614),r=a(111),i=a(7674);e.exports=function(e,t,a){var s,o;return i&&n(s=t.constructor)&&s!==a&&r(o=s.prototype)&&o!==a.prototype&&i(e,o),e}},2788:function(e,t,a){var n=a(1702),r=a(614),i=a(5465),s=n(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),e.exports=i.inspectSource},8340:function(e,t,a){var n=a(111),r=a(8880);e.exports=function(e,t){n(t)&&"cause"in t&&r(e,"cause",t.cause)}},9909:function(e,t,a){var n,r,i,s=a(4811),o=a(7854),c=a(1702),l=a(111),h=a(8880),u=a(2597),d=a(5465),f=a(6200),g=a(3501),p="Object already initialized",m=o.TypeError,b=o.WeakMap,y=function(e){return i(e)?r(e):n(e,{})},w=function(e){return function(t){var a;if(!l(t)||(a=r(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return a}};if(s||d.state){var x=d.state||(d.state=new b),S=c(x.get),k=c(x.has),A=c(x.set);n=function(e,t){if(k(x,e))throw m(p);return t.facade=e,A(x,e,t),t},r=function(e){return S(x,e)||{}},i=function(e){return k(x,e)}}else{var v=f("state");g[v]=!0,n=function(e,t){if(u(e,v))throw m(p);return t.facade=e,h(e,v,t),t},r=function(e){return u(e,v)?e[v]:{}},i=function(e){return u(e,v)}}e.exports={set:n,get:r,has:i,enforce:y,getterFor:w}},3157:function(e,t,a){var n=a(4326);e.exports=Array.isArray||function(e){return"Array"==n(e)}},614:function(e,t,a){var n=a(4154),r=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},4705:function(e,t,a){var n=a(7293),r=a(614),i=/#|\.prototype\./,s=function(e,t){var a=c[o(e)];return a==h||a!=l&&(r(t)?n(t):!!t)},o=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=s.data={},l=s.NATIVE="N",h=s.POLYFILL="P";e.exports=s},8554:function(e){e.exports=function(e){return null===e||void 0===e}},111:function(e,t,a){var n=a(614),r=a(4154),i=r.all;e.exports=r.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},1913:function(e){e.exports=!1},2190:function(e,t,a){var n=a(5005),r=a(614),i=a(7976),s=a(3307),o=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return r(t)&&i(t.prototype,o(e))}},6244:function(e,t,a){var n=a(7466);e.exports=function(e){return n(e.length)}},6339:function(e,t,a){var n=a(7293),r=a(614),i=a(2597),s=a(9781),o=a(6530).CONFIGURABLE,c=a(2788),l=a(9909),h=l.enforce,u=l.get,d=Object.defineProperty,f=s&&!n((function(){return 8!==d((function(){}),"length",{value:8}).length})),g=String(String).split("String"),p=e.exports=function(e,t,a){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(t="get "+t),a&&a.setter&&(t="set "+t),(!i(e,"name")||o&&e.name!==t)&&(s?d(e,"name",{value:t,configurable:!0}):e.name=t),f&&a&&i(a,"arity")&&e.length!==a.arity&&d(e,"length",{value:a.arity});try{a&&i(a,"constructor")&&a.constructor?s&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(r){}var n=h(e);return i(n,"source")||(n.source=g.join("string"==typeof t?t:"")),e};Function.prototype.toString=p((function(){return r(this)&&u(this).source||c(this)}),"toString")},4758:function(e){var t=Math.ceil,a=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?a:t)(n)}},6277:function(e,t,a){var n=a(1340);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},30:function(e,t,a){var n,r=a(9670),i=a(6048),s=a(748),o=a(3501),c=a(490),l=a(317),h=a(6200),u=">",d="<",f="prototype",g="script",p=h("IE_PROTO"),m=function(){},b=function(e){return d+g+u+e+d+"/"+g+u},y=function(e){e.write(b("")),e.close();var t=e.parentWindow.Object;return e=null,t},w=function(){var e,t=l("iframe"),a="java"+g+":";return t.style.display="none",c.appendChild(t),t.src=String(a),e=t.contentWindow.document,e.open(),e.write(b("document.F=Object")),e.close(),e.F},x=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}x="undefined"!=typeof document?document.domain&&n?y(n):w():y(n);var e=s.length;while(e--)delete x[f][s[e]];return x()};o[p]=!0,e.exports=Object.create||function(e,t){var a;return null!==e?(m[f]=r(e),a=new m,m[f]=null,a[p]=e):a=x(),void 0===t?a:i.f(a,t)}},6048:function(e,t,a){var n=a(9781),r=a(3353),i=a(3070),s=a(9670),o=a(5656),c=a(1956);t.f=n&&!r?Object.defineProperties:function(e,t){s(e);var a,n=o(t),r=c(t),l=r.length,h=0;while(l>h)i.f(e,a=r[h++],n[a]);return e}},3070:function(e,t,a){var n=a(9781),r=a(4664),i=a(3353),s=a(9670),o=a(4948),c=TypeError,l=Object.defineProperty,h=Object.getOwnPropertyDescriptor,u="enumerable",d="configurable",f="writable";t.f=n?i?function(e,t,a){if(s(e),t=o(t),s(a),"function"===typeof e&&"prototype"===t&&"value"in a&&f in a&&!a[f]){var n=h(e,t);n&&n[f]&&(e[t]=a.value,a={configurable:d in a?a[d]:n[d],enumerable:u in a?a[u]:n[u],writable:!1})}return l(e,t,a)}:l:function(e,t,a){if(s(e),t=o(t),s(a),r)try{return l(e,t,a)}catch(n){}if("get"in a||"set"in a)throw c("Accessors not supported");return"value"in a&&(e[t]=a.value),e}},1236:function(e,t,a){var n=a(9781),r=a(6916),i=a(5296),s=a(9114),o=a(5656),c=a(4948),l=a(2597),h=a(4664),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=o(e),t=c(t),h)try{return u(e,t)}catch(a){}if(l(e,t))return s(!r(i.f,e,t),e[t])}},8006:function(e,t,a){var n=a(6324),r=a(748),i=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},9518:function(e,t,a){var n=a(2597),r=a(614),i=a(7908),s=a(6200),o=a(8544),c=s("IE_PROTO"),l=Object,h=l.prototype;e.exports=o?l.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var a=t.constructor;return r(a)&&t instanceof a?a.prototype:t instanceof l?h:null}},7976:function(e,t,a){var n=a(1702);e.exports=n({}.isPrototypeOf)},6324:function(e,t,a){var n=a(1702),r=a(2597),i=a(5656),s=a(1318).indexOf,o=a(3501),c=n([].push);e.exports=function(e,t){var a,n=i(e),l=0,h=[];for(a in n)!r(o,a)&&r(n,a)&&c(h,a);while(t.length>l)r(n,a=t[l++])&&(~s(h,a)||c(h,a));return h}},1956:function(e,t,a){var n=a(6324),r=a(748);e.exports=Object.keys||function(e){return n(e,r)}},5296:function(e,t){"use strict";var a={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!a.call({1:2},1);t.f=r?function(e){var t=n(this,e);return!!t&&t.enumerable}:a},7674:function(e,t,a){var n=a(1702),r=a(9670),i=a(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,a={};try{e=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(a,[]),t=a instanceof Array}catch(s){}return function(a,n){return r(a),i(n),t?e(a,n):a.__proto__=n,a}}():void 0)},2140:function(e,t,a){var n=a(6916),r=a(614),i=a(111),s=TypeError;e.exports=function(e,t){var a,o;if("string"===t&&r(a=e.toString)&&!i(o=n(a,e)))return o;if(r(a=e.valueOf)&&!i(o=n(a,e)))return o;if("string"!==t&&r(a=e.toString)&&!i(o=n(a,e)))return o;throw s("Can't convert object to primitive value")}},3887:function(e,t,a){var n=a(5005),r=a(1702),i=a(8006),s=a(5181),o=a(9670),c=r([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(o(e)),a=s.f;return a?c(t,a(e)):t}},2626:function(e,t,a){var n=a(3070).f;e.exports=function(e,t,a){a in e||n(e,a,{configurable:!0,get:function(){return t[a]},set:function(e){t[a]=e}})}},7066:function(e,t,a){"use strict";var n=a(9670);e.exports=function(){var e=n(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}},4488:function(e,t,a){var n=a(8554),r=TypeError;e.exports=function(e){if(n(e))throw r("Can't call method on "+e);return e}},6200:function(e,t,a){var n=a(2309),r=a(9711),i=n("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}},5465:function(e,t,a){var n=a(7854),r=a(3072),i="__core-js_shared__",s=n[i]||r(i,{});e.exports=s},2309:function(e,t,a){var n=a(1913),r=a(5465);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.3",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.3/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(e,t,a){var n=a(7392),r=a(7293);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},1400:function(e,t,a){var n=a(9303),r=Math.max,i=Math.min;e.exports=function(e,t){var a=n(e);return a<0?r(a+t,0):i(a,t)}},5656:function(e,t,a){var n=a(8361),r=a(4488);e.exports=function(e){return n(r(e))}},9303:function(e,t,a){var n=a(4758);e.exports=function(e){var t=+e;return t!==t||0===t?0:n(t)}},7466:function(e,t,a){var n=a(9303),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},7908:function(e,t,a){var n=a(4488),r=Object;e.exports=function(e){return r(n(e))}},7593:function(e,t,a){var n=a(6916),r=a(111),i=a(2190),s=a(8173),o=a(2140),c=a(5112),l=TypeError,h=c("toPrimitive");e.exports=function(e,t){if(!r(e)||i(e))return e;var a,c=s(e,h);if(c){if(void 0===t&&(t="default"),a=n(c,e,t),!r(a)||i(a))return a;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},4948:function(e,t,a){var n=a(7593),r=a(2190);e.exports=function(e){var t=n(e,"string");return r(t)?t:t+""}},1694:function(e,t,a){var n=a(5112),r=n("toStringTag"),i={};i[r]="z",e.exports="[object z]"===String(i)},1340:function(e,t,a){var n=a(648),r=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return r(e)}},6330:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(a){return"Object"}}},9711:function(e,t,a){var n=a(1702),r=0,i=Math.random(),s=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++r+i,36)}},3307:function(e,t,a){var n=a(6293);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,a){var n=a(9781),r=a(7293);e.exports=n&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(e,t,a){var n=a(7854),r=a(614),i=n.WeakMap;e.exports=r(i)&&/native code/.test(String(i))},5112:function(e,t,a){var n=a(7854),r=a(2309),i=a(2597),s=a(9711),o=a(6293),c=a(3307),l=r("wks"),h=n.Symbol,u=h&&h["for"],d=c?h:h&&h.withoutSetter||s;e.exports=function(e){if(!i(l,e)||!o&&"string"!=typeof l[e]){var t="Symbol."+e;o&&i(h,e)?l[e]=h[e]:l[e]=c&&u?u(t):d(t)}return l[e]}},9191:function(e,t,a){"use strict";var n=a(5005),r=a(2597),i=a(8880),s=a(7976),o=a(7674),c=a(9920),l=a(2626),h=a(9587),u=a(6277),d=a(8340),f=a(1060),g=a(2914),p=a(9781),m=a(1913);e.exports=function(e,t,a,b){var y="stackTraceLimit",w=b?2:1,x=e.split("."),S=x[x.length-1],k=n.apply(null,x);if(k){var A=k.prototype;if(!m&&r(A,"cause")&&delete A.cause,!a)return k;var v=n("Error"),C=t((function(e,t){var a=u(b?t:e,void 0),n=b?new k(e):new k;return void 0!==a&&i(n,"message",a),g&&i(n,"stack",f(n.stack,2)),this&&s(A,this)&&h(n,this,C),arguments.length>w&&d(n,arguments[w]),n}));if(C.prototype=A,"Error"!==S?o?o(C,v):c(C,v,{name:!0}):p&&y in k&&(l(C,k,y),l(C,k,"prepareStackTrace")),c(C,k),!m)try{A.name!==S&&i(A,"name",S),A.constructor=C}catch(O){}return C}}},2262:function(e,t,a){"use strict";var n=a(2109),r=a(7908),i=a(6244),s=a(9303),o=a(1223);n({target:"Array",proto:!0},{at:function(e){var t=r(this),a=i(t),n=s(e),o=n>=0?n:a+n;return o<0||o>=a?void 0:t[o]}}),o("at")},7658:function(e,t,a){"use strict";var n=a(2109),r=a(7908),i=a(6244),s=a(3658),o=a(7207),c=a(7293),l=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),h=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}();n({target:"Array",proto:!0,arity:1,forced:l||h},{push:function(e){var t=r(this),a=i(t),n=arguments.length;o(a+n);for(var c=0;c<n;c++)t[a]=arguments[c],a++;return s(t,a),a}})},541:function(e,t,a){"use strict";var n=a(2109),r=a(7908),i=a(6244),s=a(3658),o=a(5117),c=a(7207),l=1!==[].unshift(0),h=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}();n({target:"Array",proto:!0,arity:1,forced:l||h},{unshift:function(e){var t=r(this),a=i(t),n=arguments.length;if(n){c(a+n);var l=a;while(l--){var h=l+n;l in t?t[h]=t[l]:o(t,h)}for(var u=0;u<n;u++)t[u]=arguments[u]}return s(t,a+n)}})},1703:function(e,t,a){var n=a(2109),r=a(7854),i=a(2104),s=a(9191),o="WebAssembly",c=r[o],l=7!==Error("e",{cause:7}).cause,h=function(e,t){var a={};a[e]=s(e,t,l),n({global:!0,constructor:!0,arity:1,forced:l},a)},u=function(e,t){if(c&&c[e]){var a={};a[e]=s(o+"."+e,t,l),n({target:o,stat:!0,constructor:!0,arity:1,forced:l},a)}};h("Error",(function(e){return function(t){return i(e,this,arguments)}})),h("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),h("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),h("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),h("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),h("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),h("URIError",(function(e){return function(t){return i(e,this,arguments)}})),u("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),u("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),u("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},2087:function(e,t,a){var n=a(7854),r=a(9781),i=a(7045),s=a(7066),o=a(7293),c=n.RegExp,l=c.prototype,h=r&&o((function(){var e=!0;try{c(".","d")}catch(h){e=!1}var t={},a="",n=e?"dgimsy":"gimsy",r=function(e,n){Object.defineProperty(t,e,{get:function(){return a+=n,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(i.hasIndices="d"),i)r(s,i[s]);var o=Object.getOwnPropertyDescriptor(l,"flags").get.call(t);return o!==n||a!==n}));h&&i(l,"flags",{configurable:!0,get:s})},4506:function(e,t,a){"use strict";var n=a(2109),r=a(1702),i=a(4488),s=a(9303),o=a(1340),c=a(7293),l=r("".charAt),h=c((function(){return"\ud842"!=="𠮷".at(-2)}));n({target:"String",proto:!0,forced:h},{at:function(e){var t=o(i(this)),a=t.length,n=s(e),r=n>=0?n:a+n;return r<0||r>=a?void 0:l(t,r)}})},8675:function(e,t,a){"use strict";var n=a(260),r=a(6244),i=a(9303),s=n.aTypedArray,o=n.exportTypedArrayMethod;o("at",(function(e){var t=s(this),a=r(t),n=i(e),o=n>=0?n:a+n;return o<0||o>=a?void 0:t[o]}))},4590:function(e,t,a){"use strict";var n=a(260),r=a(9671).findLastIndex,i=n.aTypedArray,s=n.exportTypedArrayMethod;s("findLastIndex",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)}))},3408:function(e,t,a){"use strict";var n=a(260),r=a(9671).findLast,i=n.aTypedArray,s=n.exportTypedArrayMethod;s("findLast",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)}))},2801:function(e,t,a){"use strict";var n=a(2109),r=a(7854),i=a(5005),s=a(9114),o=a(3070).f,c=a(2597),l=a(5787),h=a(9587),u=a(6277),d=a(3678),f=a(1060),g=a(9781),p=a(1913),m="DOMException",b=i("Error"),y=i(m),w=function(){l(this,x);var e=arguments.length,t=u(e<1?void 0:arguments[0]),a=u(e<2?void 0:arguments[1],"Error"),n=new y(t,a),r=b(t);return r.name=m,o(n,"stack",s(1,f(r.stack,1))),h(n,this,w),n},x=w.prototype=y.prototype,S="stack"in b(m),k="stack"in new y(1,2),A=y&&g&&Object.getOwnPropertyDescriptor(r,m),v=!!A&&!(A.writable&&A.configurable),C=S&&!v&&!k;n({global:!0,constructor:!0,forced:p||C},{DOMException:C?w:y});var O=i(m),F=O.prototype;if(F.constructor!==O)for(var I in p||o(F,"constructor",s(1,O)),d)if(c(d,I)){var T=d[I],M=T.s;c(O,M)||o(O,M,s(6,T.c))}},1044:function(e,t,a){a(1703),a(8675),a(3408),a(4590),a(7658),a(2262),a(2087),a(541),a(4506),a(2801),
/**
* @licstart The following is the entire license notice for the
* JavaScript code in this page
*
* Copyright 2022 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @licend The above is the entire license notice for the
* JavaScript code in this page
*/
function(t,a){e.exports=a()}(globalThis,(()=>(()=>{"use strict";var e=[,(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerTask=t.WorkerMessageHandler=void 0;var n=a(2),r=a(5),i=a(6),s=a(8),o=a(71),c=a(65),l=a(4),h=a(102),u=a(103);class d{constructor(e){this.name=e,this.terminated=!1,this._capability=(0,n.createPromiseCapability)()}get finished(){return this._capability.promise}finish(){this._capability.resolve()}terminate(){this.terminated=!0}ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}}t.WorkerTask=d;class f{static setup(e,t){let a=!1;e.on("test",(function(t){a||(a=!0,e.send("test",t instanceof Uint8Array))})),e.on("configure",(function(e){(0,n.setVerbosityLevel)(e.verbosity)})),e.on("GetDocRequest",(function(e){return f.createDocumentHandler(e,t)}))}static createDocumentHandler(e,t){let a,f=!1,g=null;const p=[],m=(0,n.getVerbosityLevel)(),b=e.apiVersion,y="2.16.105";if(b!==y)throw new Error(`The API version "${b}" does not match the Worker version "${y}".`);const w=[];for(const n in[])w.push(n);if(w.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+w.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");if("undefined"===typeof ReadableStream){const e="The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. `ReadableStream`); ";if(l.isNodeJS)throw new Error(e+"please use a `legacy`-build instead.");throw new Error(e+"please update to a supported browser.")}const x=e.docId,S=e.docBaseUrl,k=e.docId+"_worker";let A=new h.MessageHandler(k,x,t);function v(){if(f)throw new Error("Worker was terminated")}function C(e){p.push(e)}function O(e){e.finish();const t=p.indexOf(e);p.splice(t,1)}async function F(e){await a.ensureDoc("checkHeader"),await a.ensureDoc("parseStartXRef"),await a.ensureDoc("parse",[e]),await a.ensureDoc("checkFirstPage",[e]),await a.ensureDoc("checkLastPage",[e]);const t=await a.ensureDoc("isPureXfa");if(t){const e=new d("loadXfaFonts");C(e),await Promise.all([a.loadXfaFonts(A,e).catch((e=>{})).then((()=>O(e))),a.loadXfaImages()])}const[n,r]=await Promise.all([a.ensureDoc("numPages"),a.ensureDoc("fingerprints")]),i=t?await a.ensureDoc("htmlForXfa"):null;return{numPages:n,fingerprints:r,htmlForXfa:i}}function I(e,t,a){const r=(0,n.createPromiseCapability)();let i;const o=e.source;if(o.data){try{i=new s.LocalPdfManager(x,o.data,o.password,A,t,a,S),r.resolve(i)}catch(m){r.reject(m)}return r.promise}let c,l=[];try{c=new u.PDFWorkerStream(A)}catch(m){return r.reject(m),r.promise}const h=c.getFullReader();h.headersReady.then((function(){if(!h.isRangeSupported)return;const e=o.disableAutoFetch||h.isStreamingSupported;i=new s.NetworkPdfManager(x,c,{msgHandler:A,password:o.password,length:h.contentLength,disableAutoFetch:e,rangeChunkSize:o.rangeChunkSize},t,a,S);for(const t of l)i.sendProgressiveData(t);l=[],r.resolve(i),g=null})).catch((function(e){r.reject(e),g=null}));let d=0;const f=function(){const e=(0,n.arraysToBytes)(l);o.length&&e.length!==o.length&&(0,n.warn)("reported HTTP length is different from actual");try{i=new s.LocalPdfManager(x,e,o.password,A,t,a,S),r.resolve(i)}catch(m){r.reject(m)}l=[]},p=new Promise((function(e,t){const a=function({value:e,done:r}){try{if(v(),r)return i||f(),void(g=null);d+=(0,n.arrayByteLength)(e),h.isStreamingSupported||A.send("DocProgress",{loaded:d,total:Math.max(d,h.contentLength||0)}),i?i.sendProgressiveData(e):l.push(e),h.read().then(a,t)}catch(s){t(s)}};h.read().then(a,t)}));return p.catch((function(e){r.reject(e),g=null})),g=function(e){c.cancelAllRequests(e)},r.promise}function T(e){function t(e){v(),A.send("GetDoc",{pdfInfo:e})}function r(e){if(v(),e instanceof n.PasswordException){const t=new d(`PasswordException: response ${e.code}`);C(t),A.sendWithPromise("PasswordRequest",e).then((function({password:e}){O(t),a.updatePassword(e),s()})).catch((function(){O(t),A.send("DocException",e)}))}else e instanceof n.InvalidPDFException||e instanceof n.MissingPDFException||e instanceof n.UnexpectedResponseException||e instanceof n.UnknownErrorException?A.send("DocException",e):A.send("DocException",new n.UnknownErrorException(e.message,e.toString()))}function s(){v(),F(!1).then(t,(function(e){v(),e instanceof i.XRefParseException?(a.requestLoadedStream(),a.onLoadedStream().then((function(){v(),F(!0).then(t,r)}))):r(e)}))}v();const o={maxImageSize:e.maxImageSize,disableFontFace:e.disableFontFace,ignoreErrors:e.ignoreErrors,isEvalSupported:e.isEvalSupported,fontExtraProperties:e.fontExtraProperties,useSystemFonts:e.useSystemFonts,cMapUrl:e.cMapUrl,standardFontDataUrl:e.standardFontDataUrl};I(e,o,e.enableXfa).then((function(e){if(f)throw e.terminate(new n.AbortException("Worker was terminated.")),new Error("Worker was terminated");a=e,a.onLoadedStream().then((function(e){A.send("DataLoaded",{length:e.bytes.byteLength})}))})).then(s,r)}return A.on("GetPage",(function(e){return a.getPage(e.pageIndex).then((function(e){return Promise.all([a.ensure(e,"rotate"),a.ensure(e,"ref"),a.ensure(e,"userUnit"),a.ensure(e,"view")]).then((function([e,t,a,n]){return{rotate:e,ref:t,userUnit:a,view:n}}))}))})),A.on("GetPageIndex",(function(e){const t=r.Ref.get(e.num,e.gen);return a.ensureCatalog("getPageIndex",[t])})),A.on("GetDestinations",(function(e){return a.ensureCatalog("destinations")})),A.on("GetDestination",(function(e){return a.ensureCatalog("getDestination",[e.id])})),A.on("GetPageLabels",(function(e){return a.ensureCatalog("pageLabels")})),A.on("GetPageLayout",(function(e){return a.ensureCatalog("pageLayout")})),A.on("GetPageMode",(function(e){return a.ensureCatalog("pageMode")})),A.on("GetViewerPreferences",(function(e){return a.ensureCatalog("viewerPreferences")})),A.on("GetOpenAction",(function(e){return a.ensureCatalog("openAction")})),A.on("GetAttachments",(function(e){return a.ensureCatalog("attachments")})),A.on("GetJavaScript",(function(e){return a.ensureCatalog("javaScript")})),A.on("GetDocJSActions",(function(e){return a.ensureCatalog("jsActions")})),A.on("GetPageJSActions",(function({pageIndex:e}){return a.getPage(e).then((function(e){return a.ensure(e,"jsActions")}))})),A.on("GetOutline",(function(e){return a.ensureCatalog("documentOutline")})),A.on("GetOptionalContentConfig",(function(e){return a.ensureCatalog("optionalContentConfig")})),A.on("GetPermissions",(function(e){return a.ensureCatalog("permissions")})),A.on("GetMetadata",(function(e){return Promise.all([a.ensureDoc("documentInfo"),a.ensureCatalog("metadata")])})),A.on("GetMarkInfo",(function(e){return a.ensureCatalog("markInfo")})),A.on("GetData",(function(e){return a.requestLoadedStream(),a.onLoadedStream().then((function(e){return e.bytes}))})),A.on("GetAnnotations",(function({pageIndex:e,intent:t}){return a.getPage(e).then((function(a){const n=new d(`GetAnnotations: page ${e}`);return C(n),a.getAnnotationsData(A,n,t).then((e=>(O(n),e)),(e=>{O(n)}))}))})),A.on("GetFieldObjects",(function(e){return a.ensureDoc("fieldObjects")})),A.on("HasJSActions",(function(e){return a.ensureDoc("hasJSActions")})),A.on("GetCalculationOrderIds",(function(e){return a.ensureDoc("calculationOrderIds")})),A.on("SaveDocument",(function({isPureXfa:e,numPages:t,annotationStorage:s,filename:o}){a.requestLoadedStream();const l=e?null:(0,i.getNewAnnotationsMap)(s),h=[a.onLoadedStream(),a.ensureCatalog("acroForm"),a.ensureCatalog("acroFormRef"),a.ensureDoc("xref"),a.ensureDoc("startXRef")];if(l)for(const[n,r]of l)h.push(a.getPage(n).then((e=>{const t=new d(`Save (editor): page ${n}`);return e.saveNewAnnotations(A,t,r).finally((function(){O(t)}))})));if(e)h.push(a.serializeXfaData(s));else for(let n=0;n<t;n++)h.push(a.getPage(n).then((function(e){const t=new d(`Save: page ${n}`);return e.save(A,t,s).finally((function(){O(t)}))})));return Promise.all(h).then((function([t,a,i,s,l,...h]){let u=[],d=null;if(e){if(d=h[0],!d)return t.bytes}else if(u=h.flat(2),0===u.length)return t.bytes;const f=a instanceof r.Dict&&a.get("XFA")||null;let g=null,p=!1;if(Array.isArray(f)){for(let e=0,t=f.length;e<t;e+=2)"datasets"===f[e]&&(g=f[e+1],i=null,p=!0);null===g&&(g=s.getNewRef())}else f&&(i=null,(0,n.warn)("Unsupported XFA type."));let m=Object.create(null);if(s.trailer){const e=Object.create(null),t=s.trailer.get("Info")||null;t instanceof r.Dict&&t.forEach(((t,a)=>{"string"===typeof a&&(e[t]=(0,n.stringToPDFString)(a))})),m={rootRef:s.trailer.getRaw("Root")||null,encryptRef:s.trailer.getRaw("Encrypt")||null,newRef:s.getNewRef(),infoRef:s.trailer.getRaw("Info")||null,info:e,fileIds:s.trailer.get("ID")||null,startXRef:l,filename:o}}return s.resetNewRef(),(0,c.incrementalUpdate)({originalData:t.bytes,xrefInfo:m,newRefs:u,xref:s,hasXfa:!!f,xfaDatasetsRef:g,hasXfaDatasetsEntry:p,acroFormRef:i,acroForm:a,xfaData:d})}))})),A.on("GetOperatorList",(function(e,t){const r=e.pageIndex;a.getPage(r).then((function(a){const i=new d(`GetOperatorList: page ${r}`);C(i);const s=m>=n.VerbosityLevel.INFOS?Date.now():0;a.getOperatorList({handler:A,sink:t,task:i,intent:e.intent,cacheKey:e.cacheKey,annotationStorage:e.annotationStorage}).then((function(e){O(i),s&&(0,n.info)(`page=${r+1} - getOperatorList: time=${Date.now()-s}ms, len=${e.length}`),t.close()}),(function(e){O(i),i.terminated||(A.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorOperatorList}),t.error(e))}))}))})),A.on("GetTextContent",(function(e,t){const r=e.pageIndex;a.getPage(r).then((function(a){const i=new d("GetTextContent: page "+r);C(i);const s=m>=n.VerbosityLevel.INFOS?Date.now():0;a.extractTextContent({handler:A,task:i,sink:t,includeMarkedContent:e.includeMarkedContent,combineTextItems:e.combineTextItems}).then((function(){O(i),s&&(0,n.info)(`page=${r+1} - getTextContent: time=`+(Date.now()-s)+"ms"),t.close()}),(function(e){O(i),i.terminated||t.error(e)}))}))})),A.on("GetStructTree",(function(e){return a.getPage(e.pageIndex).then((function(e){return a.ensure(e,"getStructTree")}))})),A.on("FontFallback",(function(e){return a.fontFallback(e.id,A)})),A.on("Cleanup",(function(e){return a.cleanup(!0)})),A.on("Terminate",(function(e){f=!0;const t=[];if(a){a.terminate(new n.AbortException("Worker was terminated."));const e=a.cleanup();t.push(e),a=null}else(0,o.clearGlobalCaches)();g&&g(new n.AbortException("Worker was terminated."));for(const a of p)t.push(a.finished),a.terminate();return Promise.all(t).then((function(){A.destroy(),A=null}))})),A.on("Ready",(function(t){T(e),e=null})),k}static initializeFromPort(e){const t=new h.MessageHandler("worker","main",e);f.setup(t,e),t.send("ready",null)}}function g(e){return"function"===typeof e.postMessage&&"onmessage"in e}t.WorkerMessageHandler=f,"undefined"===typeof window&&!l.isNodeJS&&"undefined"!==typeof self&&g(self)&&f.initializeFromPort(self)},(e,t,a)=>{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=_,t.bytesToString=J,t.createPromiseCapability=we,t.createValidAbsoluteUrl=U,t.escapeString=ue,t.getModificationDate=ye,t.getVerbosityLevel=R,t.info=B,t.isArrayBuffer=me,t.isArrayEqual=be,t.isAscii=de,t.objectFromMap=ne,t.objectSize=ae,t.setVerbosityLevel=D,t.shadow=X,t.string32=te,t.stringToBytes=Z,t.stringToPDFString=he,t.stringToUTF16BEString=fe,t.stringToUTF8String=ge,t.unreachable=$,t.utf8StringToString=pe,t.warn=L,a(3);const n=[1,0,0,1,0,0];t.IDENTITY_MATRIX=n;const r=[.001,0,0,.001,0,0];t.FONT_IDENTITY_MATRIX=r;const i=1.35;t.LINE_FACTOR=i;const s=.35;t.LINE_DESCENT_FACTOR=s;const o={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};t.RenderingIntentFlag=o;const c={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};t.AnnotationMode=c;const l="pdfjs_internal_editor_";t.AnnotationEditorPrefix=l;const h={DISABLE:-1,NONE:0,FREETEXT:3,INK:15};t.AnnotationEditorType=h;const u={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13};t.AnnotationEditorParamsType=u;const 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;const 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;const g={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.ImageKind=g;const p={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=p;const m={MARKED:"Marked",REVIEW:"Review"};t.AnnotationStateModelType=m;const b={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationMarkedState=b;const y={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReviewState=y;const w={GROUP:"Group",REPLY:"R"};t.AnnotationReplyType=w;const x={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFlag=x;const S={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=S;const k={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.AnnotationBorderStyleType=k;const A={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=A;const v={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};t.DocumentActionEventType=v;const C={O:"PageOpen",C:"PageClose"};t.PageActionEventType=C;const O={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.StreamType=O;const 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;const I={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=I;const T={NONE:0,BINARY:1,STREAM:2};t.CMapCompressionType=T;const M={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=M;const E={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=E;const P={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};t.PasswordResponses=P;let N=I.WARNINGS;function D(e){Number.isInteger(e)&&(N=e)}function R(){return N}function B(e){N>=I.INFOS&&console.log(`Info: ${e}`)}function L(e){N>=I.WARNINGS&&console.log(`Warning: ${e}`)}function $(e){throw new Error(e)}function _(e,t){e||$(t)}function j(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function U(e,t=null,a=null){if(!e)return null;try{if(a&&"string"===typeof e){if(a.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);t&&t.length>=2&&(e=`http://${e}`)}if(a.tryConvertEncoding)try{e=ge(e)}catch(n){}}const r=t?new URL(e,t):new URL(e);if(j(r))return r}catch(n){}return null}function X(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!1}),a}const H=function(){function e(t,a){this.constructor===e&&$("Cannot initialize BaseException."),this.message=t,this.name=a}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=H;class q extends H{constructor(e,t){super(e,"PasswordException"),this.code=t}}t.PasswordException=q;class z extends H{constructor(e,t){super(e,"UnknownErrorException"),this.details=t}}t.UnknownErrorException=z;class G extends H{constructor(e){super(e,"InvalidPDFException")}}t.InvalidPDFException=G;class W extends H{constructor(e){super(e,"MissingPDFException")}}t.MissingPDFException=W;class V extends H{constructor(e,t){super(e,"UnexpectedResponseException"),this.status=t}}t.UnexpectedResponseException=V;class K extends H{constructor(e){super(e,"FormatError")}}t.FormatError=K;class Y extends H{constructor(e){super(e,"AbortException")}}function J(e){"object"===typeof e&&null!==e&&void 0!==e.length||$("Invalid argument for bytesToString");const t=e.length,a=8192;if(t<a)return String.fromCharCode.apply(null,e);const n=[];for(let r=0;r<t;r+=a){const i=Math.min(r+a,t),s=e.subarray(r,i);n.push(String.fromCharCode.apply(null,s))}return n.join("")}function Z(e){"string"!==typeof e&&$("Invalid argument for stringToBytes");const t=e.length,a=new Uint8Array(t);for(let n=0;n<t;++n)a[n]=255&e.charCodeAt(n);return a}function Q(e){return void 0!==e.length?e.length:void 0!==e.byteLength?e.byteLength:void $("Invalid argument for arrayByteLength")}function ee(e){const t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];let a=0;for(let i=0;i<t;i++)a+=Q(e[i]);let n=0;const r=new Uint8Array(a);for(let i=0;i<t;i++){let t=e[i];t instanceof Uint8Array||(t="string"===typeof t?Z(t):new Uint8Array(t));const a=t.byteLength;r.set(t,n),n+=a}return r}function te(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function ae(e){return Object.keys(e).length}function ne(e){const t=Object.create(null);for(const[a,n]of e)t[a]=n;return t}function re(){const e=new Uint8Array(4);e[0]=1;const t=new Uint32Array(e.buffer,0,1);return 1===t[0]}function ie(){try{return new Function(""),!0}catch(e){return!1}}t.AbortException=Y;class se{static get isLittleEndian(){return X(this,"isLittleEndian",re())}static get isEvalSupported(){return X(this,"isEvalSupported",ie())}static get isOffscreenCanvasSupported(){return X(this,"isOffscreenCanvasSupported","undefined"!==typeof OffscreenCanvas)}}t.FeatureTest=se;const oe=[...Array(256).keys()].map((e=>e.toString(16).padStart(2,"0")));class ce{static makeHexColor(e,t,a){return`#${oe[e]}${oe[t]}${oe[a]}`}static scaleMinMax(e,t){let a;e[0]?(e[0]<0&&(a=t[0],t[0]=t[1],t[1]=a),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(a=t[2],t[2]=t[3],t[3]=a),t[2]*=e[3],t[3]*=e[3]):(a=t[0],t[0]=t[2],t[2]=a,a=t[1],t[1]=t[3],t[3]=a,e[1]<0&&(a=t[2],t[2]=t[3],t[3]=a),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(a=t[0],t[0]=t[1],t[1]=a),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(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]]}static applyTransform(e,t){const a=e[0]*t[0]+e[1]*t[2]+t[4],n=e[0]*t[1]+e[1]*t[3]+t[5];return[a,n]}static applyInverseTransform(e,t){const a=t[0]*t[3]-t[1]*t[2],n=(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/a,r=(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/a;return[n,r]}static getAxialAlignedBoundingBox(e,t){const a=ce.applyTransform(e,t),n=ce.applyTransform(e.slice(2,4),t),r=ce.applyTransform([e[0],e[3]],t),i=ce.applyTransform([e[2],e[1]],t);return[Math.min(a[0],n[0],r[0],i[0]),Math.min(a[1],n[1],r[1],i[1]),Math.max(a[0],n[0],r[0],i[0]),Math.max(a[1],n[1],r[1],i[1])]}static inverseTransform(e){const 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]}static apply3dTransform(e,t){re