"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[771],{5531:function(t,e,r){r.d(e,{Z:function(){return l}});var n=r(2265);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=(...t)=>t.filter((t,e,r)=>!!t&&r.indexOf(t)===e).join(" ");/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,n.forwardRef)(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:s="",children:l,iconNode:c,...u},d)=>(0,n.createElement)("svg",{ref:d,...a,width:e,height:e,stroke:t,strokeWidth:o?24*Number(r)/Number(e):r,className:i("lucide",s),...u},[...c.map(([t,e])=>(0,n.createElement)(t,e)),...Array.isArray(l)?l:[l]])),l=(t,e)=>{let r=(0,n.forwardRef)(({className:r,...a},l)=>(0,n.createElement)(s,{ref:l,iconNode:e,className:i(`lucide-${o(t)}`,r),...a}));return r.displayName=`${t}`,r}},2442:function(t,e,r){r.d(e,{Z:function(){return o}});var n=r(5531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},5817:function(t,e,r){r.d(e,{Z:function(){return o}});var n=r(5531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},6637:function(t,e,r){r.d(e,{Z:function(){return o}});var n=r(5531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},8438:function(t,e,r){r.d(e,{Z:function(){return o}});var n=r(5531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},3715:function(t,e,r){r.d(e,{Z:function(){return o}});var n=r(5531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},9883:function(t,e,r){r.d(e,{Z:function(){return o}});var n=r(5531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},4280:function(t,e,r){r.d(e,{Z:function(){return o}});var n=r(5531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},1541:function(t,e,r){r.d(e,{Z:function(){return o}});var n=r(5531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},2549:function(t,e,r){r.d(e,{Z:function(){return o}});var n=r(5531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},622:function(t,e,r){/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n=r(2265),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,r){var n,i={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(u=e.ref),e)a.call(e,n)&&!l.hasOwnProperty(n)&&(i[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps)void 0===i[n]&&(i[n]=e[n]);return{$$typeof:o,type:t,key:c,ref:u,props:i,_owner:s.current}}e.Fragment=i,e.jsx=c,e.jsxs=c},7437:function(t,e,r){t.exports=r(622)},5723:function(t,e,r){var n=r(8963).assign,o=r(2106),i=r(5061),a=r(8023),s={};n(s,o,i,a),t.exports=s},2106:function(t,e,r){var n=r(1016),o=r(8963),i=r(4270),a=r(3646),s=r(1069),l=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=o.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e,r=this.options;r.raw&&r.windowBits>0?r.windowBits=-r.windowBits:r.gzip&&r.windowBits>0&&r.windowBits<16&&(r.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var u=n.deflateInit2(this.strm,r.level,r.method,r.windowBits,r.memLevel,r.strategy);if(0!==u)throw Error(a[u]);if(r.header&&n.deflateSetHeader(this.strm,r.header),r.dictionary){if(e="string"==typeof r.dictionary?i.string2buf(r.dictionary):"[object ArrayBuffer]"===l.call(r.dictionary)?new Uint8Array(r.dictionary):r.dictionary,0!==(u=n.deflateSetDictionary(this.strm,e)))throw Error(a[u]);this._dict_set=!0}}function u(t,e){var r=new c(e);if(r.push(t,!0),r.err)throw r.msg||a[r.err];return r.result}c.prototype.push=function(t,e){var r,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=i.string2buf(t):"[object ArrayBuffer]"===l.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new o.Buf8(c),s.next_out=0,s.avail_out=c),1!==(r=n.deflate(s,a))&&0!==r)return this.onEnd(r),this.ended=!0,!1;(0===s.avail_out||0===s.avail_in&&(4===a||2===a))&&("string"===this.options.to?this.onData(i.buf2binstring(o.shrinkBuf(s.output,s.next_out))):this.onData(o.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):(2===a&&(this.onEnd(0),s.avail_out=0),!0)},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=c,e.deflate=u,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,u(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,u(t,e)}},5061:function(t,e,r){var n=r(9683),o=r(8963),i=r(4270),a=r(8023),s=r(3646),l=r(1069),c=r(1650),u=Object.prototype.toString;function d(t){if(!(this instanceof d))return new d(t);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits)==0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,e.windowBits);if(r!==a.Z_OK||(this.header=new c,n.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=i.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=n.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK)))throw Error(s[r])}function h(t,e){var r=new d(e);if(r.push(t,!0),r.err)throw r.msg||s[r.err];return r.result}d.prototype.push=function(t,e){var r,s,l,c,d,h=this.strm,f=this.options.chunkSize,p=this.options.dictionary,g=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?h.input=i.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new o.Buf8(f),h.next_out=0,h.avail_out=f),(r=n.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===a.Z_BUF_ERROR&&!0===g&&(r=a.Z_OK,g=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),this.ended=!0,!1;h.next_out&&(0===h.avail_out||r===a.Z_STREAM_END||0===h.avail_in&&(s===a.Z_FINISH||s===a.Z_SYNC_FLUSH))&&("string"===this.options.to?(l=i.utf8border(h.output,h.next_out),c=h.next_out-l,d=i.buf2string(h.output,l),h.next_out=c,h.avail_out=f-c,c&&o.arraySet(h.output,h.output,l,c,0),this.onData(d)):this.onData(o.shrinkBuf(h.output,h.next_out))),0===h.avail_in&&0===h.avail_out&&(g=!0)}while((h.avail_in>0||0===h.avail_out)&&r!==a.Z_STREAM_END);return(r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH)?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):(s===a.Z_SYNC_FLUSH&&(this.onEnd(a.Z_OK),h.avail_out=0),!0)},d.prototype.onData=function(t){this.chunks.push(t)},d.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=d,e.inflate=h,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},e.ungzip=h},8963:function(t,e){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw TypeError(r+"must be non-object");for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var n={arraySet:function(t,e,r,n,o){if(e.subarray&&t.subarray){t.set(e.subarray(r,r+n),o);return}for(var i=0;i<n;i++)t[o+i]=e[r+i]},flattenChunks:function(t){var e,r,n,o,i,a;for(e=0,n=0,r=t.length;e<r;e++)n+=t[e].length;for(e=0,a=new Uint8Array(n),o=0,r=t.length;e<r;e++)i=t[e],a.set(i,o),o+=i.length;return a}},o={arraySet:function(t,e,r,n,o){for(var i=0;i<n;i++)t[o+i]=e[r+i]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,n)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(r)},4270:function(t,e,r){var n=r(8963),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(t){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){i=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function l(t,e){if(e<65534&&(t.subarray&&i||!t.subarray&&o))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var r="",a=0;a<e;a++)r+=String.fromCharCode(t[a]);return r}a[254]=a[254]=1,e.string2buf=function(t){var e,r,o,i,a,s=t.length,l=0;for(i=0;i<s;i++)(64512&(r=t.charCodeAt(i)))==55296&&i+1<s&&(64512&(o=t.charCodeAt(i+1)))==56320&&(r=65536+(r-55296<<10)+(o-56320),i++),l+=r<128?1:r<2048?2:r<65536?3:4;for(a=0,e=new n.Buf8(l),i=0;a<l;i++)(64512&(r=t.charCodeAt(i)))==55296&&i+1<s&&(64512&(o=t.charCodeAt(i+1)))==56320&&(r=65536+(r-55296<<10)+(o-56320),i++),r<128?e[a++]=r:(r<2048?e[a++]=192|r>>>6:(r<65536?e[a++]=224|r>>>12:(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63),e[a++]=128|r>>>6&63),e[a++]=128|63&r);return e},e.buf2binstring=function(t){return l(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,o=e.length;r<o;r++)e[r]=t.charCodeAt(r);return e},e.buf2string=function(t,e){var r,n,o,i,s=e||t.length,c=Array(2*s);for(n=0,r=0;r<s;){if((o=t[r++])<128){c[n++]=o;continue}if((i=a[o])>4){c[n++]=65533,r+=i-1;continue}for(o&=2===i?31:3===i?15:7;i>1&&r<s;)o=o<<6|63&t[r++],i--;if(i>1){c[n++]=65533;continue}o<65536?c[n++]=o:(o-=65536,c[n++]=55296|o>>10&1023,c[n++]=56320|1023&o)}return l(c,n)},e.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&(192&t[r])==128;)r--;return r<0||0===r?e:r+a[t[r]]>e?r:e}},3217:function(t){t.exports=function(t,e,r,n){for(var o=65535&t|0,i=t>>>16&65535|0,a=0;0!==r;){a=r>2e3?2e3:r,r-=a;do i=i+(o=o+e[n++]|0)|0;while(--a);o%=65521,i%=65521}return o|i<<16|0}},8023:function(t){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},4104:function(t){var e=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();t.exports=function(t,r,n,o){var i=o+n;t^=-1;for(var a=o;a<i;a++)t=t>>>8^e[(t^r[a])&255];return -1^t}},1016:function(t,e,r){var n,o=r(8963),i=r(4096),a=r(3217),s=r(4104),l=r(3646);function c(t,e){return t.msg=l[e],e}function u(t){return(t<<1)-(t>4?9:0)}function d(t){for(var e=t.length;--e>=0;)t[e]=0}function h(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(o.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function f(t,e){i._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,h(t.strm)}function p(t,e){t.pending_buf[t.pending++]=e}function g(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function v(t,e){var r,n,o=t.max_chain_length,i=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,c=t.window,u=t.w_mask,d=t.prev,h=t.strstart+258,f=c[i+a-1],p=c[i+a];t.prev_length>=t.good_match&&(o>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+a]!==p||c[r+a-1]!==f||c[r]!==c[i]||c[++r]!==c[i+1])continue;i+=2,r++;do;while(c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&i<h);if(n=258-(h-i),i=h-258,n>a){if(t.match_start=e,a=n,n>=s)break;f=c[i+a-1],p=c[i+a]}}while((e=d[e&u])>l&&0!=--o);return a<=t.lookahead?a:t.lookahead}function y(t){var e,r,n,i,l,c=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=c+(c-262)){o.arraySet(t.window,t.window,c,c,0),t.match_start-=c,t.strstart-=c,t.block_start-=c,e=r=t.hash_size;do n=t.head[--e],t.head[e]=n>=c?n-c:0;while(--r);e=r=c;do n=t.prev[--e],t.prev[e]=n>=c?n-c:0;while(--r);i+=c}if(0===t.strm.avail_in)break;if(r=function(t,e,r,n){var i=t.avail_in;return(i>n&&(i=n),0===i)?0:(t.avail_in-=i,o.arraySet(e,t.input,t.next_in,i,r),1===t.state.wrap?t.adler=a(t.adler,e,i,r):2===t.state.wrap&&(t.adler=s(t.adler,e,i,r)),t.next_in+=i,t.total_in+=i,i)}(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=r,t.lookahead+t.insert>=3)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+3-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function m(t,e){for(var r,n;;){if(t.lookahead<262){if(y(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-262&&(t.match_length=v(t,r)),t.match_length>=3){if(n=i._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask}else n=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(f(t,!1),0===t.strm.avail_out))return 1}return(t.insert=t.strstart<2?t.strstart:2,4===e)?(f(t,!0),0===t.strm.avail_out)?3:4:t.last_lit&&(f(t,!1),0===t.strm.avail_out)?1:2}function b(t,e){for(var r,n,o;;){if(t.lookahead<262){if(y(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-262&&(t.match_length=v(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){o=t.strstart+t.lookahead-3,n=i._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=o&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(f(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=i._tr_tally(t,0,t.window[t.strstart-1]))&&f(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return(t.match_available&&(n=i._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e)?(f(t,!0),0===t.strm.avail_out)?3:4:t.last_lit&&(f(t,!1),0===t.strm.avail_out)?1:2}function w(t,e,r,n,o){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=o}function x(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(1146),this.dyn_dtree=new o.Buf16(122),this.bl_tree=new o.Buf16(78),d(this.dyn_ltree),d(this.dyn_dtree),d(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(16),this.heap=new o.Buf16(573),d(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(573),d(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function F(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,i._tr_init(e),0):c(t,-2)}function k(t){var e,r=F(t);return 0===r&&((e=t.state).window_size=2*e.w_size,d(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),r}function S(t,e,r,n,i,a){if(!t)return -2;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),i<1||i>9||8!==r||n<8||n>15||e<0||e>9||a<0||a>4)return c(t,-2);8===n&&(n=9);var l=new x;return t.state=l,l.strm=t,l.wrap=s,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new o.Buf8(2*l.w_size),l.head=new o.Buf16(l.hash_size),l.prev=new o.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new o.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=a,l.method=r,k(t)}n=[new w(0,0,0,0,function(t,e){var r=65535;for(65535>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(y(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,f(t,!1),0===t.strm.avail_out)||t.strstart-t.block_start>=t.w_size-262&&(f(t,!1),0===t.strm.avail_out))return 1}return(t.insert=0,4===e)?(f(t,!0),0===t.strm.avail_out)?3:4:(t.strstart>t.block_start&&(f(t,!1),t.strm.avail_out),1)}),new w(4,4,8,4,m),new w(4,5,16,8,m),new w(4,6,32,32,m),new w(4,4,16,16,b),new w(8,16,32,32,b),new w(8,16,128,128,b),new w(8,32,128,256,b),new w(32,128,258,1024,b),new w(32,258,258,4096,b)],e.deflateInit=function(t,e){return S(t,e,8,15,8,0)},e.deflateInit2=S,e.deflateReset=k,e.deflateResetKeep=F,e.deflateSetHeader=function(t,e){return t&&t.state&&2===t.state.wrap?(t.state.gzhead=e,0):-2},e.deflate=function(t,e){if(!t||!t.state||e>5||e<0)return t?c(t,-2):-2;if(o=t.state,!t.output||!t.input&&0!==t.avail_in||666===o.status&&4!==e)return c(t,0===t.avail_out?-5:-2);if(o.strm=t,r=o.last_flush,o.last_flush=e,42===o.status){if(2===o.wrap)t.adler=0,p(o,31),p(o,139),p(o,8),o.gzhead?(p(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),p(o,255&o.gzhead.time),p(o,o.gzhead.time>>8&255),p(o,o.gzhead.time>>16&255),p(o,o.gzhead.time>>24&255),p(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),p(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(p(o,255&o.gzhead.extra.length),p(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(t.adler=s(t.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(p(o,0),p(o,0),p(o,0),p(o,0),p(o,0),p(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),p(o,3),o.status=113);else{var r,o,a,l,v=8+(o.w_bits-8<<4)<<8;v|=(o.strategy>=2||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(v|=32),v+=31-v%31,o.status=113,g(o,v),0!==o.strstart&&(g(o,t.adler>>>16),g(o,65535&t.adler)),t.adler=1}}if(69===o.status){if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),h(t),a=o.pending,o.pending!==o.pending_buf_size));)p(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73}if(73===o.status){if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),h(t),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,p(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.gzindex=0,o.status=91)}else o.status=91}if(91===o.status){if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),h(t),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,p(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.status=103)}else o.status=103}if(103===o.status&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&h(t),o.pending+2<=o.pending_buf_size&&(p(o,255&t.adler),p(o,t.adler>>8&255),t.adler=0,o.status=113)):o.status=113),0!==o.pending){if(h(t),0===t.avail_out)return o.last_flush=-1,0}else if(0===t.avail_in&&u(e)<=u(r)&&4!==e)return c(t,-5);if(666===o.status&&0!==t.avail_in)return c(t,-5);if(0!==t.avail_in||0!==o.lookahead||0!==e&&666!==o.status){var m=2===o.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(y(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(f(t,!1),0===t.strm.avail_out))return 1}return(t.insert=0,4===e)?(f(t,!0),0===t.strm.avail_out)?3:4:t.last_lit&&(f(t,!1),0===t.strm.avail_out)?1:2}(o,e):3===o.strategy?function(t,e){for(var r,n,o,a,s=t.window;;){if(t.lookahead<=258){if(y(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[o=t.strstart-1])===s[++o]&&n===s[++o]&&n===s[++o]){a=t.strstart+258;do;while(n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&n===s[++o]&&o<a);t.match_length=258-(a-o),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=i._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(f(t,!1),0===t.strm.avail_out))return 1}return(t.insert=0,4===e)?(f(t,!0),0===t.strm.avail_out)?3:4:t.last_lit&&(f(t,!1),0===t.strm.avail_out)?1:2}(o,e):n[o.level].func(o,e);if((3===m||4===m)&&(o.status=666),1===m||3===m)return 0===t.avail_out&&(o.last_flush=-1),0;if(2===m&&(1===e?i._tr_align(o):5!==e&&(i._tr_stored_block(o,0,0,!1),3===e&&(d(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),h(t),0===t.avail_out))return o.last_flush=-1,0}return 4!==e?0:o.wrap<=0?1:(2===o.wrap?(p(o,255&t.adler),p(o,t.adler>>8&255),p(o,t.adler>>16&255),p(o,t.adler>>24&255),p(o,255&t.total_in),p(o,t.total_in>>8&255),p(o,t.total_in>>16&255),p(o,t.total_in>>24&255)):(g(o,t.adler>>>16),g(o,65535&t.adler)),h(t),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?c(t,-2):(t.state=null,113===e?c(t,-3):0):-2},e.deflateSetDictionary=function(t,e){var r,n,i,s,l,c,u,h,f=e.length;if(!t||!t.state||2===(s=(r=t.state).wrap)||1===s&&42!==r.status||r.lookahead)return -2;for(1===s&&(t.adler=a(t.adler,e,f,0)),r.wrap=0,f>=r.w_size&&(0===s&&(d(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new o.Buf8(r.w_size),o.arraySet(h,e,f-r.w_size,r.w_size,0),e=h,f=r.w_size),l=t.avail_in,c=t.next_in,u=t.input,t.avail_in=f,t.next_in=0,t.input=e,y(r);r.lookahead>=3;){n=r.strstart,i=r.lookahead-2;do r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++;while(--i);r.strstart=n,r.lookahead=2,y(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=c,t.input=u,t.avail_in=l,r.wrap=s,0},e.deflateInfo="pako deflate (from Nodeca project)"},1650:function(t){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},2180:function(t){t.exports=function(t,e){var r,n,o,i,a,s,l,c,u,d,h,f,p,g,v,y,m,b,w,x,F,k,S,C,T;r=t.state,n=t.next_in,C=t.input,o=n+(t.avail_in-5),i=t.next_out,T=t.output,a=i-(e-t.avail_out),s=i+(t.avail_out-257),l=r.dmax,c=r.wsize,u=r.whave,d=r.wnext,h=r.window,f=r.hold,p=r.bits,g=r.lencode,v=r.distcode,y=(1<<r.lenbits)-1,m=(1<<r.distbits)-1;t:do for(p<15&&(f+=C[n++]<<p,p+=8,f+=C[n++]<<p,p+=8),b=g[f&y];;){if(f>>>=w=b>>>24,p-=w,0==(w=b>>>16&255))T[i++]=65535&b;else if(16&w)for(x=65535&b,(w&=15)&&(p<w&&(f+=C[n++]<<p,p+=8),x+=f&(1<<w)-1,f>>>=w,p-=w),p<15&&(f+=C[n++]<<p,p+=8,f+=C[n++]<<p,p+=8),b=v[f&m];;){if(f>>>=w=b>>>24,p-=w,16&(w=b>>>16&255)){if(F=65535&b,p<(w&=15)&&(f+=C[n++]<<p,(p+=8)<w&&(f+=C[n++]<<p,p+=8)),(F+=f&(1<<w)-1)>l){t.msg="invalid distance too far back",r.mode=30;break t}if(f>>>=w,p-=w,F>(w=i-a)){if((w=F-w)>u&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(k=0,S=h,0===d){if(k+=c-w,w<x){x-=w;do T[i++]=h[k++];while(--w);k=i-F,S=T}}else if(d<w){if(k+=c+d-w,(w-=d)<x){x-=w;do T[i++]=h[k++];while(--w);if(k=0,d<x){x-=w=d;do T[i++]=h[k++];while(--w);k=i-F,S=T}}}else if(k+=d-w,w<x){x-=w;do T[i++]=h[k++];while(--w);k=i-F,S=T}for(;x>2;)T[i++]=S[k++],T[i++]=S[k++],T[i++]=S[k++],x-=3;x&&(T[i++]=S[k++],x>1&&(T[i++]=S[k++]))}else{k=i-F;do T[i++]=T[k++],T[i++]=T[k++],T[i++]=T[k++],x-=3;while(x>2);x&&(T[i++]=T[k++],x>1&&(T[i++]=T[k++]))}}else if((64&w)==0){b=v[(65535&b)+(f&(1<<w)-1)];continue}else{t.msg="invalid distance code",r.mode=30;break t}break}else if((64&w)==0){b=g[(65535&b)+(f&(1<<w)-1)];continue}else if(32&w){r.mode=12;break t}else{t.msg="invalid literal/length code",r.mode=30;break t}break}while(n<o&&i<s);n-=x=p>>3,p-=x<<3,f&=(1<<p)-1,t.next_in=n,t.next_out=i,t.avail_in=n<o?5+(o-n):5-(n-o),t.avail_out=i<s?257+(s-i):257-(i-s),r.hold=f,r.bits=p}},9683:function(t,e,r){var n,o,i=r(8963),a=r(3217),s=r(4104),l=r(2180),c=r(8937);function u(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function d(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function h(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new i.Buf32(852),e.distcode=e.distdyn=new i.Buf32(592),e.sane=1,e.back=-1,0):-2}function f(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,h(t)):-2}function p(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=(e>>4)+1,e<48&&(e&=15)),e&&(e<8||e>15))?-2:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,f(t)):-2}function g(t,e){var r,n;return t?(n=new d,t.state=n,n.window=null,0!==(r=p(t,e))&&(t.state=null),r):-2}var v=!0;function y(t,e,r,n){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new i.Buf8(a.wsize)),n>=a.wsize?(i.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>n&&(o=n),i.arraySet(a.window,e,r-n,o,a.wnext),(n-=o)?(i.arraySet(a.window,e,r-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=f,e.inflateReset2=p,e.inflateResetKeep=h,e.inflateInit=function(t){return g(t,15)},e.inflateInit2=g,e.inflate=function(t,e){var r,d,h,f,p,g,m,b,w,x,F,k,S,C,T,O,A,P,N,R,j,D,z,B,M=0,E=new i.Buf8(4),I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return -2;12===(r=t.state).mode&&(r.mode=13),p=t.next_out,h=t.output,m=t.avail_out,f=t.next_in,d=t.input,g=t.avail_in,b=r.hold,w=r.bits,x=g,F=m,D=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;w<16;){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}if(2&r.wrap&&35615===b){r.check=0,E[0]=255&b,E[1]=b>>>8&255,r.check=s(r.check,E,2,0),b=0,w=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&b)<<8)+(b>>8))%31){t.msg="incorrect header check",r.mode=30;break}if((15&b)!=8){t.msg="unknown compression method",r.mode=30;break}if(b>>>=4,w-=4,j=(15&b)+8,0===r.wbits)r.wbits=j;else if(j>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<j,t.adler=r.check=1,r.mode=512&b?10:12,b=0,w=0;break;case 2:for(;w<16;){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}if(r.flags=b,(255&r.flags)!=8){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=b>>8&1),512&r.flags&&(E[0]=255&b,E[1]=b>>>8&255,r.check=s(r.check,E,2,0)),b=0,w=0,r.mode=3;case 3:for(;w<32;){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}r.head&&(r.head.time=b),512&r.flags&&(E[0]=255&b,E[1]=b>>>8&255,E[2]=b>>>16&255,E[3]=b>>>24&255,r.check=s(r.check,E,4,0)),b=0,w=0,r.mode=4;case 4:for(;w<16;){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}r.head&&(r.head.xflags=255&b,r.head.os=b>>8),512&r.flags&&(E[0]=255&b,E[1]=b>>>8&255,r.check=s(r.check,E,2,0)),b=0,w=0,r.mode=5;case 5:if(1024&r.flags){for(;w<16;){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}r.length=b,r.head&&(r.head.extra_len=b),512&r.flags&&(E[0]=255&b,E[1]=b>>>8&255,r.check=s(r.check,E,2,0)),b=0,w=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((k=r.length)>g&&(k=g),k&&(r.head&&(j=r.head.extra_len-r.length,r.head.extra||(r.head.extra=Array(r.head.extra_len)),i.arraySet(r.head.extra,d,f,k,j)),512&r.flags&&(r.check=s(r.check,d,k,f)),g-=k,f+=k,r.length-=k),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===g)break e;k=0;do j=d[f+k++],r.head&&j&&r.length<65536&&(r.head.name+=String.fromCharCode(j));while(j&&k<g);if(512&r.flags&&(r.check=s(r.check,d,k,f)),g-=k,f+=k,j)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===g)break e;k=0;do j=d[f+k++],r.head&&j&&r.length<65536&&(r.head.comment+=String.fromCharCode(j));while(j&&k<g);if(512&r.flags&&(r.check=s(r.check,d,k,f)),g-=k,f+=k,j)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;w<16;){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}if(b!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}b=0,w=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;w<32;){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}t.adler=r.check=u(b),b=0,w=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=p,t.avail_out=m,t.next_in=f,t.avail_in=g,r.hold=b,r.bits=w,2;t.adler=r.check=1,r.mode=12;case 12:if(5===e||6===e)break e;case 13:if(r.last){b>>>=7&w,w-=7&w,r.mode=27;break}for(;w<3;){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}switch(r.last=1&b,w-=1,3&(b>>>=1)){case 0:r.mode=14;break;case 1:if(function(t){if(v){var e;for(n=new i.Buf32(512),o=new i.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(c(1,t.lens,0,288,n,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;c(2,t.lens,0,32,o,0,t.work,{bits:5}),v=!1}t.lencode=n,t.lenbits=9,t.distcode=o,t.distbits=5}(r),r.mode=20,6===e){b>>>=2,w-=2;break e}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}b>>>=2,w-=2;break;case 14:for(b>>>=7&w,w-=7&w;w<32;){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}if((65535&b)!=(b>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&b,b=0,w=0,r.mode=15,6===e)break e;case 15:r.mode=16;case 16:if(k=r.length){if(k>g&&(k=g),k>m&&(k=m),0===k)break e;i.arraySet(h,d,f,k,p),g-=k,f+=k,m-=k,p+=k,r.length-=k;break}r.mode=12;break;case 17:for(;w<14;){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}if(r.nlen=(31&b)+257,b>>>=5,w-=5,r.ndist=(31&b)+1,b>>>=5,w-=5,r.ncode=(15&b)+4,b>>>=4,w-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;w<3;){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}r.lens[I[r.have++]]=7&b,b>>>=3,w-=3}for(;r.have<19;)r.lens[I[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,z={bits:r.lenbits},D=c(0,r.lens,0,19,r.lencode,0,r.work,z),r.lenbits=z.bits,D){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;T=(M=r.lencode[b&(1<<r.lenbits)-1])>>>24,O=M>>>16&255,A=65535&M,!(T<=w);){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}if(A<16)b>>>=T,w-=T,r.lens[r.have++]=A;else{if(16===A){for(B=T+2;w<B;){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}if(b>>>=T,w-=T,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}j=r.lens[r.have-1],k=3+(3&b),b>>>=2,w-=2}else if(17===A){for(B=T+3;w<B;){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}b>>>=T,w-=T,j=0,k=3+(7&b),b>>>=3,w-=3}else{for(B=T+7;w<B;){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}b>>>=T,w-=T,j=0,k=11+(127&b),b>>>=7,w-=7}if(r.have+k>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;k--;)r.lens[r.have++]=j}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,z={bits:r.lenbits},D=c(1,r.lens,0,r.nlen,r.lencode,0,r.work,z),r.lenbits=z.bits,D){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,z={bits:r.distbits},D=c(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,z),r.distbits=z.bits,D){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break e;case 20:r.mode=21;case 21:if(g>=6&&m>=258){t.next_out=p,t.avail_out=m,t.next_in=f,t.avail_in=g,r.hold=b,r.bits=w,l(t,F),p=t.next_out,h=t.output,m=t.avail_out,f=t.next_in,d=t.input,g=t.avail_in,b=r.hold,w=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;T=(M=r.lencode[b&(1<<r.lenbits)-1])>>>24,O=M>>>16&255,A=65535&M,!(T<=w);){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}if(O&&(240&O)==0){for(P=T,N=O,R=A;T=(M=r.lencode[R+((b&(1<<P+N)-1)>>P)])>>>24,O=M>>>16&255,A=65535&M,!(P+T<=w);){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}b>>>=P,w-=P,r.back+=P}if(b>>>=T,w-=T,r.back+=T,r.length=A,0===O){r.mode=26;break}if(32&O){r.back=-1,r.mode=12;break}if(64&O){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&O,r.mode=22;case 22:if(r.extra){for(B=r.extra;w<B;){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}r.length+=b&(1<<r.extra)-1,b>>>=r.extra,w-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;T=(M=r.distcode[b&(1<<r.distbits)-1])>>>24,O=M>>>16&255,A=65535&M,!(T<=w);){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}if((240&O)==0){for(P=T,N=O,R=A;T=(M=r.distcode[R+((b&(1<<P+N)-1)>>P)])>>>24,O=M>>>16&255,A=65535&M,!(P+T<=w);){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}b>>>=P,w-=P,r.back+=P}if(b>>>=T,w-=T,r.back+=T,64&O){t.msg="invalid distance code",r.mode=30;break}r.offset=A,r.extra=15&O,r.mode=24;case 24:if(r.extra){for(B=r.extra;w<B;){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}r.offset+=b&(1<<r.extra)-1,b>>>=r.extra,w-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===m)break e;if(k=F-m,r.offset>k){if((k=r.offset-k)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}k>r.wnext?(k-=r.wnext,S=r.wsize-k):S=r.wnext-k,k>r.length&&(k=r.length),C=r.window}else C=h,S=p-r.offset,k=r.length;k>m&&(k=m),m-=k,r.length-=k;do h[p++]=C[S++];while(--k);0===r.length&&(r.mode=21);break;case 26:if(0===m)break e;h[p++]=r.length,m--,r.mode=21;break;case 27:if(r.wrap){for(;w<32;){if(0===g)break e;g--,b|=d[f++]<<w,w+=8}if(F-=m,t.total_out+=F,r.total+=F,F&&(t.adler=r.check=r.flags?s(r.check,h,F,p-F):a(r.check,h,F,p-F)),F=m,(r.flags?b:u(b))!==r.check){t.msg="incorrect data check",r.mode=30;break}b=0,w=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;w<32;){if(0===g)break e;g--,b+=d[f++]<<w,w+=8}if(b!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}b=0,w=0}r.mode=29;case 29:D=1;break e;case 30:D=-3;break e;case 31:return -4;default:return -2}return(t.next_out=p,t.avail_out=m,t.next_in=f,t.avail_in=g,r.hold=b,r.bits=w,(r.wsize||F!==t.avail_out&&r.mode<30&&(r.mode<27||4!==e))&&y(t,t.output,t.next_out,F-t.avail_out))?(r.mode=31,-4):(x-=t.avail_in,F-=t.avail_out,t.total_in+=x,t.total_out+=F,r.total+=F,r.wrap&&F&&(t.adler=r.check=r.flags?s(r.check,h,F,t.next_out-F):a(r.check,h,F,t.next_out-F)),t.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===x&&0===F||4===e)&&0===D&&(D=-5),D)},e.inflateEnd=function(t){if(!t||!t.state)return -2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var r;return t&&t.state&&(2&(r=t.state).wrap)!=0?(r.head=e,e.done=!1,0):-2},e.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state&&(0===(r=t.state).wrap||11===r.mode)?11===r.mode&&a(1,e,n,0)!==r.check?-3:y(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,0):-2},e.inflateInfo="pako inflate (from Nodeca project)"},8937:function(t,e,r){var n=r(8963),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,r,l,c,u,d,h){var f,p,g,v,y,m,b,w,x,F=h.bits,k=0,S=0,C=0,T=0,O=0,A=0,P=0,N=0,R=0,j=0,D=null,z=0,B=new n.Buf16(16),M=new n.Buf16(16),E=null,I=0;for(k=0;k<=15;k++)B[k]=0;for(S=0;S<l;S++)B[e[r+S]]++;for(T=15,O=F;T>=1&&0===B[T];T--);if(O>T&&(O=T),0===T)return c[u++]=20971520,c[u++]=20971520,h.bits=1,0;for(C=1;C<T&&0===B[C];C++);for(O<C&&(O=C),N=1,k=1;k<=15;k++)if(N<<=1,(N-=B[k])<0)return -1;if(N>0&&(0===t||1!==T))return -1;for(k=1,M[1]=0;k<15;k++)M[k+1]=M[k]+B[k];for(S=0;S<l;S++)0!==e[r+S]&&(d[M[e[r+S]]++]=S);if(0===t?(D=E=d,m=19):1===t?(D=o,z-=257,E=i,I-=257,m=256):(D=a,E=s,m=-1),j=0,S=0,k=C,y=u,A=O,P=0,g=-1,v=(R=1<<O)-1,1===t&&R>852||2===t&&R>592)return 1;for(;;){b=k-P,d[S]<m?(w=0,x=d[S]):d[S]>m?(w=E[I+d[S]],x=D[z+d[S]]):(w=96,x=0),f=1<<k-P,C=p=1<<A;do c[y+(j>>P)+(p-=f)]=b<<24|w<<16|x|0;while(0!==p);for(f=1<<k-1;j&f;)f>>=1;if(0!==f?(j&=f-1,j+=f):j=0,S++,0==--B[k]){if(k===T)break;k=e[r+d[S]]}if(k>O&&(j&v)!==g){for(0===P&&(P=O),y+=C,N=1<<(A=k-P);A+P<T&&!((N-=B[A+P])<=0);)A++,N<<=1;if(R+=1<<A,1===t&&R>852||2===t&&R>592)return 1;c[g=j&v]=O<<24|A<<16|y-u|0}}return 0!==j&&(c[y+j]=k-P<<24|4194304),h.bits=O,0}},3646:function(t){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},4096:function(t,e,r){var n,o,i,a=r(8963);function s(t){for(var e=t.length;--e>=0;)t[e]=0}var l=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],c=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],d=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],h=Array(576);s(h);var f=Array(60);s(f);var p=Array(512);s(p);var g=Array(256);s(g);var v=Array(29);s(v);var y=Array(30);function m(t,e,r,n,o){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=o,this.has_stree=t&&t.length}function b(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function w(t){return t<256?p[t]:p[256+(t>>>7)]}function x(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function F(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,x(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function k(t,e,r){F(t,r[2*e],r[2*e+1])}function S(t,e){var r=0;do r|=1&t,t>>>=1,r<<=1;while(--e>0);return r>>>1}function C(t,e,r){var n,o,i=Array(16),a=0;for(n=1;n<=15;n++)i[n]=a=a+r[n-1]<<1;for(o=0;o<=e;o++){var s=t[2*o+1];0!==s&&(t[2*o]=S(i[s]++,s))}}function T(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function O(t){t.bi_valid>8?x(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function A(t,e,r,n){var o=2*e,i=2*r;return t[o]<t[i]||t[o]===t[i]&&n[e]<=n[r]}function P(t,e,r){for(var n=t.heap[r],o=r<<1;o<=t.heap_len&&(o<t.heap_len&&A(e,t.heap[o+1],t.heap[o],t.depth)&&o++,!A(e,n,t.heap[o],t.depth));)t.heap[r]=t.heap[o],r=o,o<<=1;t.heap[r]=n}function N(t,e,r){var n,o,i,a,s=0;if(0!==t.last_lit)do n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],o=t.pending_buf[t.l_buf+s],s++,0===n?k(t,o,e):(k(t,(i=g[o])+256+1,e),0!==(a=l[i])&&F(t,o-=v[i],a),k(t,i=w(--n),r),0!==(a=c[i])&&F(t,n-=y[i],a));while(s<t.last_lit);k(t,256,e)}function R(t,e){var r,n,o,i=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,l=e.stat_desc.elems,c=-1;for(r=0,t.heap_len=0,t.heap_max=573;r<l;r++)0!==i[2*r]?(t.heap[++t.heap_len]=c=r,t.depth[r]=0):i[2*r+1]=0;for(;t.heap_len<2;)i[2*(o=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[o]=0,t.opt_len--,s&&(t.static_len-=a[2*o+1]);for(e.max_code=c,r=t.heap_len>>1;r>=1;r--)P(t,i,r);o=l;do r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],P(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,i[2*o]=i[2*r]+i[2*n],t.depth[o]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,i[2*r+1]=i[2*n+1]=o,t.heap[1]=o++,P(t,i,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,o,i,a,s,l=e.dyn_tree,c=e.max_code,u=e.stat_desc.static_tree,d=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(i=l[2*l[2*(n=t.heap[r])+1]+1]+1)>p&&(i=p,g++),l[2*n+1]=i,!(n>c)&&(t.bl_count[i]++,a=0,n>=f&&(a=h[n-f]),s=l[2*n],t.opt_len+=s*(i+a),d&&(t.static_len+=s*(u[2*n+1]+a)));if(0!==g){do{for(i=p-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(i=p;0!==i;i--)for(n=t.bl_count[i];0!==n;)!((o=t.heap[--r])>c)&&(l[2*o+1]!==i&&(t.opt_len+=(i-l[2*o+1])*l[2*o],l[2*o+1]=i),n--)}}(t,e),C(i,c,t.bl_count)}function j(t,e,r){var n,o,i=-1,a=e[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),e[(r+1)*2+1]=65535,n=0;n<=r;n++)o=a,a=e[(n+1)*2+1],++s<l&&o===a||(s<c?t.bl_tree[2*o]+=s:0!==o?(o!==i&&t.bl_tree[2*o]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,i=o,0===a?(l=138,c=3):o===a?(l=6,c=3):(l=7,c=4))}function D(t,e,r){var n,o,i=-1,a=e[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),n=0;n<=r;n++)if(o=a,a=e[(n+1)*2+1],!(++s<l)||o!==a){if(s<c)do k(t,o,t.bl_tree);while(0!=--s);else 0!==o?(o!==i&&(k(t,o,t.bl_tree),s--),k(t,16,t.bl_tree),F(t,s-3,2)):s<=10?(k(t,17,t.bl_tree),F(t,s-3,3)):(k(t,18,t.bl_tree),F(t,s-11,7));s=0,i=o,0===a?(l=138,c=3):o===a?(l=6,c=3):(l=7,c=4)}}s(y);var z=!1;function B(t,e,r,n){F(t,0+(n?1:0),3),O(t),x(t,r),x(t,~r),a.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}e._tr_init=function(t){z||(function(){var t,e,r,a,s,d=Array(16);for(a=0,r=0;a<28;a++)for(t=0,v[a]=r;t<1<<l[a];t++)g[r++]=a;for(g[r-1]=a,s=0,a=0;a<16;a++)for(t=0,y[a]=s;t<1<<c[a];t++)p[s++]=a;for(s>>=7;a<30;a++)for(t=0,y[a]=s<<7;t<1<<c[a]-7;t++)p[256+s++]=a;for(e=0;e<=15;e++)d[e]=0;for(t=0;t<=143;)h[2*t+1]=8,t++,d[8]++;for(;t<=255;)h[2*t+1]=9,t++,d[9]++;for(;t<=279;)h[2*t+1]=7,t++,d[7]++;for(;t<=287;)h[2*t+1]=8,t++,d[8]++;for(C(h,287,d),t=0;t<30;t++)f[2*t+1]=5,f[2*t]=S(t,5);n=new m(h,l,257,286,15),o=new m(f,c,0,30,15),i=new m([],u,0,19,7)}(),z=!0),t.l_desc=new b(t.dyn_ltree,n),t.d_desc=new b(t.dyn_dtree,o),t.bl_desc=new b(t.bl_tree,i),t.bi_buf=0,t.bi_valid=0,T(t)},e._tr_stored_block=B,e._tr_flush_block=function(t,e,r,n){var o,i,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),R(t,t.l_desc),R(t,t.d_desc),a=function(t){var e;for(j(t,t.dyn_ltree,t.l_desc.max_code),j(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*d[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),o=t.opt_len+3+7>>>3,(i=t.static_len+3+7>>>3)<=o&&(o=i)):o=i=r+5,r+4<=o&&-1!==e?B(t,e,r,n):4===t.strategy||i===o?(F(t,2+(n?1:0),3),N(t,h,f)):(F(t,4+(n?1:0),3),function(t,e,r,n){var o;for(F(t,e-257,5),F(t,r-1,5),F(t,n-4,4),o=0;o<n;o++)F(t,t.bl_tree[2*d[o]+1],3);D(t,t.dyn_ltree,e-1),D(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),N(t,t.dyn_ltree,t.dyn_dtree)),T(t),n&&O(t)},e._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[(g[r]+256+1)*2]++,t.dyn_dtree[2*w(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){F(t,2,3),k(t,256,h),16===t.bi_valid?(x(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},1069:function(t){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},8561:function(t,e,r){r.d(e,{PDFDocument:function(){return ag}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var n,o,i,a,s,l,c,u,d,h,f,p,g,v,y,m,b,w,x,F,k,S,C,T,O,A,P,N,R,j,D,z,B,M,E,I,V,U,W,q,G,K,L,X,H,Z,Y,J,Q,_,$,tt,te,tr,tn,to,ti,ta,ts,tl,tc=function(t,e){return(tc=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function tu(t,e){function r(){this.constructor=t}tc(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var td=function(){return(td=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function th(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{l(n.next(t))}catch(t){i(t)}}function s(t){try{l(n.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,s)}l((n=n.apply(t,e||[])).next())})}function tf(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function tp(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<r;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}for(var tg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tv=new Uint8Array(256),ty=0;ty<tg.length;ty++)tv[tg.charCodeAt(ty)]=ty;var tm=function(t){for(var e="",r=t.length,n=0;n<r;n+=3)e+=tg[t[n]>>2]+tg[(3&t[n])<<4|t[n+1]>>4]+tg[(15&t[n+1])<<2|t[n+2]>>6]+tg[63&t[n+2]];return r%3==2?e=e.substring(0,e.length-1)+"=":r%3==1&&(e=e.substring(0,e.length-2)+"=="),e},tb=function(t){var e,r,n,o,i,a=.75*t.length,s=t.length,l=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var c=new Uint8Array(a);for(e=0;e<s;e+=4)r=tv[t.charCodeAt(e)],n=tv[t.charCodeAt(e+1)],o=tv[t.charCodeAt(e+2)],i=tv[t.charCodeAt(e+3)],c[l++]=r<<2|n>>4,c[l++]=(15&n)<<4|o>>2,c[l++]=(3&o)<<6|63&i;return c},tw=/^(data)?:?([\w\/\+]+)?;?(charset=[\w-]+|base64)?.*,/i,tx=function(t){var e=t.trim(),r=e.substring(0,100).match(tw);if(!r)return tb(e);var n=r[0];return tb(e.substring(n.length))},tF=function(t){return t.charCodeAt(0)},tk=function(t,e){return tT(t.toString(16),e,"0").toUpperCase()},tS=function(t){return tk(t,2)},tC=function(t){return String.fromCharCode(t)},tT=function(t,e,r){for(var n="",o=0,i=e-t.length;o<i;o++)n+=r;return n+t},tO=function(t,e,r){for(var n=t.length,o=0;o<n;o++)e[r++]=t.charCodeAt(o);return n},tA=function(t){return t.replace(/\t|\u0085|\u2028|\u2029/g,"    ").replace(/[\b\v]/g,"")},tP=["\\n","\\f","\\r","\\u000B"],tN=function(t){return/^[\n\f\r\u000B]$/.test(t)},tR=function(t){return t.split(/[\n\f\r\u000B]/)},tj=function(t){return t.replace(/[\n\f\r\u000B]/g," ")},tD=function(t,e){var r,n=t.charCodeAt(e),o=e+1,i=1;return n>=55296&&n<=56319&&t.length>o&&(r=t.charCodeAt(o))>=56320&&r<=57343&&(i=2),[t.slice(e,e+i),i]},tz=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=tD(t,r),i=o[0],a=o[1];e.push(i),r+=a}return e},tB=function(t){for(var e=tP.join("|"),r=["$"],n=0,o=t.length;n<o;n++){var i=t[n];if(tN(i))throw TypeError("`wordBreak` must not include "+e);r.push(""===i?".":i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))}return RegExp("("+e+")|((.*?)("+r.join("|")+"))","gm")},tM=function(t,e,r,n){for(var o=tB(e),i=tA(t).match(o),a="",s=0,l=[],c=function(){""!==a&&l.push(a),a="",s=0},u=0,d=i.length;u<d;u++){var h=i[u];if(tN(h))c();else{var f=n(h);s+f>r&&c(),a+=h,s+=f}}return c(),l},tE=/^D:(\d\d\d\d)(\d\d)?(\d\d)?(\d\d)?(\d\d)?(\d\d)?([+\-Z])?(\d\d)?'?(\d\d)?'?$/,tI=function(t){var e=t.match(tE);if(e){var r=e[1],n=e[2],o=e[3],i=e[4],a=e[5],s=e[6],l=e[7],c=void 0===l?"Z":l,u=e[8],d=e[9];return new Date(r+"-"+(void 0===n?"01":n)+"-"+(void 0===o?"01":o)+"T"+(void 0===i?"00":i)+":"+(void 0===a?"00":a)+":"+(void 0===s?"00":s)+("Z"===c?"Z":""+c+(void 0===u?"00":u)+":"+(void 0===d?"00":d)))}},tV=function(t,e){for(var r,n,o=0;o<t.length;){var i=t.substring(o).match(e);if(!i)break;n=i,o+=(null!==(r=i.index)&&void 0!==r?r:0)+i[0].length}return{match:n,pos:o}},tU=function(t){return t[t.length-1]},tW=function(t){if(t instanceof Uint8Array)return t;for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++)r[n]=t.charCodeAt(n);return r},tq=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=t.length,n=[],o=0;o<r;o++){var i=t[o];n[o]=i instanceof Uint8Array?i:tW(i)}for(var a=0,o=0;o<r;o++)a+=t[o].length;for(var s=new Uint8Array(a),l=0,c=0;c<r;c++)for(var u=n[c],d=0,h=u.length;d<h;d++)s[l++]=u[d];return s},tG=function(t){for(var e=0,r=0,n=t.length;r<n;r++)e+=t[r].length;for(var o=new Uint8Array(e),i=0,r=0,n=t.length;r<n;r++){var a=t[r];o.set(a,i),i+=a.length}return o},tK=function(t){for(var e="",r=0,n=t.length;r<n;r++)e+=tC(t[r]);return e},tL=function(t,e){return t.id-e.id},tX=function(t,e){for(var r=[],n=0,o=t.length;n<o;n++){var i=t[n],a=t[n-1];(0===n||e(i)!==e(a))&&r.push(i)}return r},tH=function(t){for(var e=t.length,r=0,n=Math.floor(e/2);r<n;r++){var o=r,i=e-r-1,a=t[r];t[o]=t[i],t[i]=a}return t},tZ=function(t){for(var e=0,r=0,n=t.length;r<n;r++)e+=t[r];return e},tY=function(t,e){for(var r=Array(e-t),n=0,o=r.length;n<o;n++)r[n]=t+n;return r},tJ=function(t,e){for(var r=Array(e.length),n=0,o=e.length;n<o;n++)r[n]=t[e[n]];return r},tQ=function(t){if("string"==typeof t)return tx(t);if(t instanceof ArrayBuffer)return new Uint8Array(t);if(t instanceof Uint8Array)return t;throw TypeError("`input` must be one of `string | ArrayBuffer | Uint8Array`")},t_=function(){return new Promise(function(t){setTimeout(function(){return t()},0)})},t$=function(t,e){void 0===e&&(e=!0);var r=[];e&&r.push(65279);for(var n=0,o=t.length;n<o;){var i=t.codePointAt(n);if(i<65536)r.push(i),n+=1;else if(i<1114112)r.push(t0(i),t1(i)),n+=2;else throw Error("Invalid code point: 0x"+tS(i))}return new Uint16Array(r)},t0=function(t){return Math.floor((t-65536)/1024)+55296},t1=function(t){return(t-65536)%1024+56320};(n=M||(M={})).BigEndian="BigEndian",n.LittleEndian="LittleEndian";for(var t2="�".codePointAt(0),t5=function(t,e){if(void 0===e&&(e=!0),t.length<=1)return String.fromCodePoint(t2);for(var r=e?t8(t):M.BigEndian,n=e?2:0,o=[];t.length-n>=2;){var i=t6(t[n++],t[n++],r);if(t3(i)){if(t.length-n<2)o.push(t2);else{var a=t6(t[n++],t[n++],r);t4(a)?o.push(i,a):o.push(t2)}}else t4(i)?(n+=2,o.push(t2)):o.push(i)}return n<t.length&&o.push(t2),String.fromCodePoint.apply(String,o)},t3=function(t){return t>=55296&&t<=56319},t4=function(t){return t>=56320&&t<=57343},t6=function(t,e,r){if(r===M.LittleEndian)return e<<8|t;if(r===M.BigEndian)return t<<8|e;throw Error("Invalid byteOrder: "+r)},t8=function(t){return t9(t)?M.BigEndian:t7(t)?M.LittleEndian:M.BigEndian},t9=function(t){return 254===t[0]&&255===t[1]},t7=function(t){return 255===t[0]&&254===t[1]},et=function(t){return t9(t)||t7(t)},ee=function(t){var e=String(t);if(1>Math.abs(t)){var r=parseInt(t.toString().split("e-")[1]);if(r){var n=t<0;n&&(t*=-1),t*=Math.pow(10,r-1),e="0."+Array(r).join("0")+t.toString().substring(2),n&&(e="-"+e)}}else{var r=parseInt(t.toString().split("+")[1]);r>20&&(r-=20,t/=Math.pow(10,r),e=t.toString()+Array(r+1).join("0"))}return e},er=function(t){return Math.ceil(t.toString(2).length/8)},en=function(t){for(var e=new Uint8Array(er(t)),r=1;r<=e.length;r++)e[r-1]=t>>(e.length-r)*8;return e},eo=function(t){throw Error(t)},ei=r(5723),ea=r.n(ei),es="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",el=new Uint8Array(256),ec=0;ec<es.length;ec++)el[es.charCodeAt(ec)]=ec;var eu=function(t){var e,r,n,o,i,a=.75*t.length,s=t.length,l=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var c=new Uint8Array(a);for(e=0;e<s;e+=4)r=el[t.charCodeAt(e)],n=el[t.charCodeAt(e+1)],o=el[t.charCodeAt(e+2)],i=el[t.charCodeAt(e+3)],c[l++]=r<<2|n>>4,c[l++]=(15&n)<<4|o>>2,c[l++]=(3&o)<<6|63&i;return c},ed=function(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},eh=function(t){return ed(ea().inflate(eu(t)))},ef=function(t,e,r){for(var n="",o=0,i=e-t.length;o<i;o++)n+=r;return n+t},ep={Courier:"eJyFWdtSGzkQ/RXXPO1WmZSBEAJvjnESb8AmGENCKg+ypj3Wohk5ugAmlX9fzUCyW6s+ysuUfVqXvh61Zr4XI1PX1PjiuLg6C05U1Ns/Ojx42TsYHB4eFf3irWn8VNQUB4xMsIpsCwatU1DUSm8T+JpUtW7XP6NShToiEy+0ksOm0nHkIP53b9UDlefKy3Vx7G2gfjFaCyukJzundu74wVNTUnlhatE8a/XmjXkojr/s7O33d/YOBv3D3YP+68HB136xiEOtVg2dG6e8Mk1xvLM7GPxHcLlW8rYh54rjOLO4Iuu6YcVgsP9iMBjELabGK/lkymZrWxt6f8g/e7tHr4/68Xk06J673XOve+53z8PesDRL6s23zlPtepNGGrsxVngqX/R6Q617F+1qrndBjuxdRONu4ziqVE01l2vqHNgtMveiKYUtf0rjwJHYvH/26MGrvX7x6ee/l3uv+sXQydZPtjh+tXfUL07o1/+d3YPDfjH35fvrOHO3+3n1/LN19hl5q2T0x5fvxfWnOL/11zQq4jYiuuFH/38wPUgt6hT/Fkw0dKlTSRPqZevnqkllpdFa2BTfkJVtdiYCUUeRi94BGnQBY9YTlhpNKyQC04RrV3S3zCwdXIrKWFQihdfbzZoY66MpyjCWOC3cOoUfyZoUNQ0TJX/PjPRrS8zYVSxZBlV3zFinHhiQ7jjriPdpoziFpdGGWcNRrYBIt1WcbvotCCYHK0uxDhkzvwVyHVOksWd0H6bQmxQapdBJCo1T6G0KvUuh9yk0SaG/UuhDCp2m0FkKTVNolkLnKfQxhS5SaJ5Clym0SKGrFLpOoU8p9DmFblJoGU+iW/I8bSyjDNTp8zzIKVIpqawMDIuGlrRdPDiYEun4jVeG4ZwlU2MM/zIVxHABU1AMy6WQSqG/U4ihV6aEGW8xVcvQ3oZxZQox3MDQC+P7kEJ3KXSfQgyTbhnS5/MLJMKSO0y78bls9EqX8KgvzT3jZ/50bo9L3fYraQq1XR3Ls1vu7FhpYxV7HoBVZLDxGJeMA7uycarrOmHXwnuzCipKagMooBV3C/9GDFy/YqpjxSR+bORYmilFVXFH2hPOtmJPDUcbO7LE1H7shURlxYYjtdj6E2PFv+5dCpfxcF4KXPQrAEBOWquNU0yhRkv92gTUKT4d+nxqRwdwrY+QwXONS8fkK01MOYO6qoW0XA4vLXEbl8YLyddbGa9axNpv2SqU8SoWG26Gu0NTCRtqLQKzjalik8mwtBSsHVTzCTtkWh5jy1Xs8fim8BQcsDOE8xvUkeSCZncQvL/b3pKpTg32NQhnVo+lGa+yMeWZoE1wPAmknwBJE/IRJRC6z1iDUt0pLps/A82GucoQYNIiN2kLJrnu2oVqhHJLLvg6WWA3CFQMC6BdQBPGeJOTSBDc/SNrqPz5voLZClGOBHkgeL9MswpolKOAUS+zq43QaoBVxxmedMBMBwlRgd21eaSmYgQXYIt3WSNDtkhywiEKqQWKSGjrTcZzl2tjmcVmaPcL4Lc5wEug7QJtEPjM7N5tuNA1OExPNAMpOEQ4oNU6aK82mmkzAzDwEhgYWy2vhC7VirldbTE1TME+Kpcs42yaZU4dLJJAjwbRIAroFDhoAhZq37zFhoF7/ba05pYa9g5kqVIOdL3vQLAnOUYJsar5q8gY5JQFBhnkmRsw4QZ47PklF3gFNvZMhzKCpKCzvOVR6wdPRyQYovYhk5XAwY+oNNDeMxQRdPSgSDm0MzZilm1LgIUnpD0TK8+TtL83GUbEqtXMKw0FNDL5PnOMXF+CDqfj8ZjANiYyo9o8k698Rn7I5vEpCJy3oqRaWEZzyrDCBHhpghLnFGgdnbYWmjkZ2psJKHCTy6gGdE2L38QP+IeQQRXg0mjQc1S5oPJOmGdDN8trXkaW4L52GBCiEVAiQDYvleTCcAIWsllrpiA+BuAX+bTOSodgzSHkaL7nmoF1HjMVMkanPdr7NmsKaAQm2VIAKvj85cZUbbwbw70fwVwasCguhb5W5S+03EH+CIxqsktFl+MTQqEaH4f2O+TXfvGBbHMulG2/Hn/98Q/b2xEO","Courier-Bold":"eJyFWdtyGjkQ/RVqnnar8Bb4lpg3jEnCxgEvGDtxKg9iphm01oyILrZxKv++mrGd3az6KC8UnNa0+nrUGr5lI11VVLtskF198FaU1Dns9w9OOkf7/ePDrJu90bWbiorCgpH2RpLZO9WqaCReqZ8lnReJqKTa/SwL8DXJctPs9Lxs4oSS+bAuVVjXC7/tG/lAxYV0+SYbOOOpm402wojckVlQ8+T4wVFdUDHXlaifrTs91Q/Z4PNeMLu7t3/U6746POm+7vW/dLNlWGuUrOlCW+mkrrPBXr/X+4/gciPz25qszQbhyeyKjG2XZb3ewR+9Xi/sMdVO5k+ebHemcaHzW/57p3/y+qQbPk967We//TxoP191hoVeUWexs44q25nUuTZbbYSj4o9OZ6hUZ97osZ05WTJ3AQ37jMOqQtblIt9QG7lWycKJuhCmeJGGhSOxffccyqPj/W728eXX4cFJNxvavAmRyQbH++HnGf34vdc/etXNFq54d50NXh+2X6/C137v+CnQH8gZmYdQfP6WXX8MCppQTYMlditCBL53/wfTQ65EFeNfvQ6erlQsqX21akJc1rGs0EoJE+NbMnlToZFAVEFkQ3iABW2uGH3CUK1ojUTgMWEbjfaWeUp5G6N5aCwRw5vddkOM98EVqRlPrBJ2E8OPZHSM6prJkrtnVrqNIWbtOjQrg8o7Zq2VDwxId5x3xMe0lpzBuVaa0WGpkkCkmgaON/3qBVODpaHQiIybXz3ZliTi3DO2D2PoNIZGMXQWQ+MYehNDb2PoXQxNYujPGHofQ+cx9CGGpjE0i6GLGPorhuYxtIihyxhaxtBVDF3H0McY+hRDNzG0CqfQLTmeNlZBBvr0+TnIKbmUuTS5Z1jUN6xtw8nBtEjLb7wxDOesmB5j+JfpIIYLmIZiWC6GZAz9HUMMvTItzESL6VqG9rZMKGOI4QaGXpjY+xi6i6H7GGKYdMeQPl9foBBW3GHark9Vo5OqgEd9oe+ZOPOnc3NcqmZgiUuomehYnt1xZ8daaSPZ8wBoyb0Jx3jOBLBtGyvbiRNOLXw0Sy+DpNKAAhpxq/gXYhD6NdMda6bwwyTH0kwhypI70p5wdhR7Gjia3JEhpvfDLCRKI7YcqYXJnxgv/g3vSthEhNNSEKIfCQByUkpurWQaNXjqNtqjSfHp0OdLOwSAG31E7h03uLRMvlbEtDPoq0rkhqvhlSFu40I7kfP9VoRLFrH+G7YLcypCQLkJ1delML5SwjPb6DIMmQxL54L1gyq+YIfMyKNNsQ4zHj8UnoMDdoZwfoMqkJxX7A6Cj3czWzLdqcC+GuGM9tCa4RobSp5J2gTnk0D5CVA0Pp1RAqn7hC0o5J3kqvkTsGyY6gwBHlqmHtqBh2x77UI9QimVS75PljgMAjXDEljn0QNjvMlZIAju/pF0NH95VcFshSgnB3Ug+LhMkwYoVKOAUS+T2kZIG2DVcYInLXDTQkKUYHelH6kuGcEcbPE26aRPNklKOEQpNcCQHPp6k4jc5UYbRtkM7T4HcVsAvADWLtEGnq/M9t2G9e2Aw8xEM1CCQ4QDWq28cnKrmDHTAwcvgYNh1HJSqEKumdvVDlPDFOwjU8UyTpZZ4tTBohzYUSMaRAmdggBNgKLmzVsYGLjXbyujb6lm70CGSmnB1PsWJHuSYhQfupq/ioxBTRngkEaRuQEP3ICIPb/kAq/Axo6ZUEaQFFSStxwa/eDpiARDND4kqhIE+BG1Btp7hjKCjh6UKYt2xk7MkmMJ8PCMlGNy5XiSdvc6wYjYtIp5pSGBRTo9Z45R6Asw4bQ8HgrYhEJmTFsk6pWvyPfJOj4HiXNGFFQJw1hOCVaYgChNUOGcA6tD0DZCMSdDczMBDa5TFVWDqWn5i/yB+BByqARcGhx6ziqXVD4Ii2TqZmnLi8AS3L8dGqRoBIzwkM0LmXNpOAOKTNKbKciPBvg8XdZJ6RDoHEKO5meuGdDzmOiQMTrt0d63SVfAIDBJtgIwwaUvN7ps8l1r7v0I5lKPRUEV+rcqfaHlDvJH4FSdVBVCjk8IiXp87Jv/Ib90s/dk6gshTfPv8Zfv/wDUfBK2","Courier-Oblique":"eJyFWVtT2zgU/isZP+3OhE5Iy/UtDaHNFhI2IdDS4UGxFUeLbKW6AKHT/77Hhnbb1fnUFw98x9K5fzpyvmZDU1Wy9tlxdnUenChlZ3e//+awc7B32D/Kutmpqf1EVJJeGJpglbQ706VWX4JshEHrX4Wdn4SiUnr7q5jga6nKdaPvXBYqVISMvdAqH9Slpjd3dvuEuFP1KIsL5fN1duxtkN1suBZW5F7auWxWjx69rAtZzEwl6hc73741j9nx553+QXenv9frHr456h729m672YJetVrV8sI45ZWpG0W93k+Cy7XK72rpXHZMK7MraV37WtbrvX7V6/VIxcR4lT87s9naxovOH/mfnd2jw6MuPY967XO3ffbb5+v2edAZFGYpO/Ot87JynXGdG7sxVnhZvOp0Blp3Zs1urjOTTtp7QknbiN4qVF3O87VsQ9huMveiLoQtvkvpxaHYvH+J6d4+Be/j9//e9Pe72cDlTZxsdrzfP+pmJ/LH/zu7ewfdbO6L99e0crf98+rlzybY59JblVM8Pn/Nrj/S+iZeEzLEbQSF4Vv3f7B8zLWoYvxLMOToUseSOlTLJs5lHcsKo7WwMb6RNm/qNRKIikSOogMsaBPG7CesrLVcIRFYJlyzo7tjVungYjSnNhMxvN5u1pLxnlxRhvHEaeHWMfwkrYlRUzNZ8g/Mm35tJfPuipqWQdU9865Tjwwo7znvJB/TWnEG50YbZg8nKwVEuuniWOmXIJgaLK2kPmTcJBJzLVPEuWdsH8TQ2xgaxtBJDI1i6DSG3sXQ+xgax9BfMfQhhs5i6DyGJjE0jaGLGPo7hmYxNI+hyxhaxNBVDF3H0McY+hRDNzG0pJPoTnqeNpYkA336sg5ySq5UrmweGBYNDWk7OjiYFmn5jTeG4Zwl02MM/zIdxHAB01AMy8WQiqF/YoihV6aFmWgxXcvQ3oYJZQwx3MDQCxP7EEP3MfQQQwyTbhnS5+sLFMKSO0zb91PV6JUu4FFfmAcmzvzp3ByXuplX4hJqpjqWZ7fc2bHSxir2PAC75MHSMZ4zAWzbxql27oRTCx/NMiiSVAZQQCNuN/6NGIR+xXTHiil8GuRYmilEWXJH2jPOjmLPA0eTO2kl0/s0C4nSig1HanQJkIwX/4V3KVwiwmkpCNGPBAC51FptnGIalTz1axPQpPh86POlTQHgRh+RB88NLi2Tr7Rk2hn0VSVyy9Xw0kpOcWG8yPl+K+iyJVn/LduFOV3GaOBmuDvUpbCh0iIwakxJQybD0rlg/ZAVX7ADZuQxtljRjMcPhWfggJ0inFdQEckFzWoQfLyb2ZLpTg30GoQzu1Nr0lWWSp5J2hjnU4LyE6BoQjqjEqTuE7agUPeKq+ZPwLJBqjMEWLRILdqCRa69dqEekaktF3yfLHAYBGqGBbAuoAUjrOSECIK7fyQdzb9/r2BUIcrJQR0IPi6TpAEa1Shg1MvkbkO0G2DVUYInHXDTQUJUQLs2T7IuGcEMqHiXdDIkmyQlHKCUWmBIDn29SUTucm0ss9kUaZ+BuM0BXgBrF0hB4Cuz/bbhQjvgMDPRFJTgAOGAVqugvdpoZswMwMFL4CCNWl4JXagVc7vaYmqYAD0qVSyjZJklTh0syoEdNaJBlNAJCNAYbNR8eaOBgfv8trTmTtbsHcjKUjkw9b4DyR6nGCVQV/NXkRGoKQscMigyN2DBDYjYy0cu8Als5JkJZQhJQSd5y6PRD56OSDBA40OiKkGAn1BrIN1TlBF09KBMOaQZOzFNjiXAwxOpPZMrz5O0fzAJRsSmVcwnDQUsMuk5c4RCX4AJp+VxKmBLhcyYNk/UK1+RH5J1fAYS560oZCUsY7lMsMIYRGmMCucMWE1BWwvNnAzNzQQ0uElVVA2mpsVv8gfiI5FDJeBScuglq1xS+SDMk6mbpi0viCW4XzsMSNEQGBEgmxcq59JwAjaySW8mID8G4LN0WSelA7DnAHI0P3NNwT5PiQ4ZodMe6b5LugIGgXGyFYAJPn25MWWT79pw30cwlwYsoq3Qr1XpCy13kD8Bp+rkVhRyfEIo1OOj0PwOedvNPkhbXwhlm1+Pb7/9C/NFF2U=","Courier-BoldOblique":"eJyFWdtyGjkQ/RVqnnarcAo7vuE3jEnCxgEvGDtxKg9iRgxaa0ZEF9s4lX/fnrGdTVZ9lBcKTmvU96PW8C0bmqqStc9OsqsPwYlSdnaPDvb6naP+3v5+1s3emNpPRCVpwdAEq6TdOTW6mC61+hpksyBo/euCTrOg89MKUSm9/XUNwddSletGcbOcfo+90Cof1KWmdTu7e4S4N+pBFhfK5+vsxNsgu9lwLazIvbRz2Tw7evCyLmQxM5Won809PTUP2cnnnYOj7s7eQa97fNjvHvd2v3SzBS21WtXywjjllakbRb3eT4LLtcpva+lcdkJPZlfSunZZ1uu9ftXr9UjFxHiVP7my2drGh84f+Z+d3f5xv0uf/V77udt+vm4/jzqDwixlZ751XlauM65zYzfGCi+LV53OQOvOrNnHdWbSSXtHKOkZ0apC1eU8X8s2dO0mcy/qQtjiRUoLh2Lz7jmWB4cUto8vv/Zf97vZwOVNhGx2crhHP8/kj987uxShbO6Ld9fZyfF++/WKvu72Dp/i/EF6q3IKxedv2fVH2qAJ1YQscRtBEfje/R8sH3Itqhj/Ggx5utSxpA7VsglxWceywmgtbIxvpM2bio0EoiKRo/AAC9pcMfsJK2stV0gEHhOu2dHdMk/p4GI0p0YTMbzebtaS8Z5cUYbxxGnh1jH8KK2JUVMzWfL3zEq/tpJZu6JuZVB1x6x16oEB5R3nneRjWivO4Nxow+zhZKWASDcNHCv9GgRTg6WV1IiMm8ReriWJOPeM7YMYOo2hYQydxdAoht7E0NsYehdD4xj6K4bex9B5DH2IoUkMTWPoIob+jqFZDM1j6DKGFjF0FUPXMfQxhj7F0E0MLekQupWep40lyUCfPj8HOSVXKlc2DwyLhoa1HZ0cTIu0/MYbw3DOkukxhn+ZDmK4gGkohuViSMXQPzHE0CvTwky0mK5laG/DhDKGGG5g6IWJfYihuxi6jyGGSbcM6fP1BQphyR2m7fpUNXqlC3jUF+aeiTN/OjfHpW4GlriEmoGO5dktd3astLGKPQ/ALnmwdIznTADbtnGqHTnh1MJHswyKJJUBFNCI241/IwahXzHdsWIKnyY5lmYKUZbckfaEs6PY08DR5E5ayfQ+zUKitGLDkRpdASTjxX/hXQqXiHBaCkL0IwFALrVWG6eYRiVP/doENCk+Hfp8aVMAuNFH5MFzg0vL5CstmXYGfVWJ3HI1vLSSU1wYL3K+3wq6ZUnWf8t2YS4LCig3oYa6FDZUWgRGjSlpyGRYOhesH7LiC3bAjDzGFiua8fih8BwcsFOE8woqIrmgWQ2Cj3czWzLdqYFeg3Bmd2pNusVSyTNJG+N8SlB+AhRNSGdUgtR9whYU6k5x1fwJWDZIdYYADy1SD23BQ669dqEekaktF3yfLHAYBGqGBbAuoAdGWMkZEQR3/0g6mr+8qmBUIcrJQR0IPi6TpAEa1Shg1MvkbkO0G2DVUYInHXDTQUJUQLs2j7IuGcEMqHibdDIkmyQlHKCUWmBIDn29SUTucm0ss9kUaZ+BuM0BXgBrF0hB4CuzfbfhQjvgMDPRFJTgAOGAVqugvdpoZswMwMFL4CCNWl4JXagVc7vaYmqYAD0qVSyjZJklTh0syoEdNaJBlNAJCNAYbNS8eaOBgXv9trTmVtbsHcjKUjkw9b4FyR6nGCVQV/NXkRGoKQscMigyN+CBGxCx55dc4BXYyDMTyhCSgk7ylkejHzwdkWCAxodEVYIAP6LWQLqnKCPo6EGZckgzdmKaHEuAh2dSeyZXnidpf28SjIhNq5hXGgpYZNJz5giFvgATTsvjVMCWCpkxbZ6oV74i3yfr+BwkzltRyEpYxnKZYIUxiNIYFc45sJqCthaaORmamwlocJOqqBpMTYvf5A/ERyKHSsCl5NBzVrmk8kGYJ1M3TVteEEtw/3YYkKIhMCJANi9UzqXhDGxkk95MQH4MwGfpsk5KB2DPAeRofuaagn0eEx0yQqc90n2bdAUMAuNkKwATfPpyY8om37Xh3o9gLg1YRFuhf6vSF1ruIH8ETtXJrSjk+IRQqMdHofkf8ks3ey9tfSGUbf49/vL9XxrnGMA=",Helvetica:" ","Helvetica-Bold":" ","Helvetica-Oblique":" ","Helvetica-BoldOblique":" ","Times-Roman":" ","Times-Bold":" ","Times-Italic":" ","Times-BoldItalic":" ",Symbol:"eJx9WFlv2zgQ/iuGnnYBt5DkS85bmk13g27SoEkPbNEHWqIlIhSpklSuov99R7JIkSLtFyGZjxzN8c0h/4oueF1jpqKz6Mt1K1GJZ4s4S+PZYrvdbqJ59J4zdYNqDAfuXuodp52spdSToZrQl6n0KyZl1Sm/xgVpa5BcKURJfs5KCgdj+F++J8+4uCUqr6IzJVo8jy4qJFCusLjD3d27BucE0cGYd+/4c3T2/U2SxfM36XYxT+JtDI8k/jGPPrMCC0oYvuWSKMJZdPYmiWMLuK9I/sCwlNHZCuRfsJD9sSiOk7dxnMFbbrgieefGBW9eROfA7I/8z1myzVbz7rnpn9vuCW/unpvZecF3eHb3IhWu5eyK5Vw0XCCFi7ezc0pnvRo5E1hi8QhCeM0lHCoIK+/yCvdR67zrfd2THPA7VfzzNTrbpv2fX+BPeH8fm2usBMnBg++/oq/forO08+QGNMgGgeG/5wfxYrE4iPFzTlFt5JtkkLeMPIL/EFoNreJBE2vrXReako3YcqvVEXCTKWJdzPS7Gizyjk/mZZvsAKC66d7FCgMtF4NC2eaVqpDyLW+QwIzi/TGoD6tvPQL7BJEPNVKVb39DW2mkJnY5FALyD9eEhU6DL4SPrqTaS0mRrHyDXrHgvpQz7AvVU+CkqgQOnN3zVgSkkFVfKslzQIgfMfPFOBxWRiyDjcs5p5wFIoFr4kImprQrP59WP1ubiVpcCgxlNLq5XC4PwM8Wy77EvSs5ZyU0EpuFaXqAzmlTjVlerzcH8TuskH/4oiLj0WQQ/oWpdXadJAfxZSOJ7exmPfD01lYSD8K/kU0288JLS7Mh+hW337dINCPA5MRX8QE1jXU8Wx/E/6J6V4zyLBtCdd36Km4Cso+QTOG4N6T5dvRusxxsu6/scK5Wgw2fKovZ20HxHSnrQDjv0WjEejvw7/MkxmMD6ZQkvnEfa1xayperg/ibZfN2kN1K4lvxHw4lZAfD6QErpy1lOt2QF4H3XATa8HDP7VnrVWY6SoNZQfKWokBRt90Ak7mt2GACwTVE8bNPE+Tw3VTIzkmQqRuLqsvtUGaFw3cTcjzJxSod3tjYSnQgS4fvpgyc8KaDZuLwXR8FtYlv8YPD9rHBuGxfbQYG1q1vL2v9+3zC9nF0EF+BqoLBFBbbjRfSYbsJprLYboxtpx1Fj23esXoMhqlx7rB9uR2OPxP/aCMDmX61/Vhm8cha7HA91bzbWUR1z0/m8tLUKSyJ1qWNHqeXrTUf16lb76Or6XIzTmWFA4mHyeLOkUS3+H23UpJQPAnbE0bUS2CSUi6IdWM13Mhpu/OlBUE1t/YbA1QYCeWLYVsrRh+SeDm0RCQEf9pxa3Xpds4RcpJhqNVDbXPkzqTpOJcK/mT1VO17gUtn57C3J3cpMlUucW77Px3hRwZ83VJFGvriJ6YRHJboLmnWPUNXWAC7FbQg+/0IrjUL4RMFBxhYkEdSBLxiXB0xD8TkEZorywPXoP0I/jxhXGzWKEoJUFgeiTvs3srq2eO9Hq2Aeq92S9eDIgeYwIeawKoVY+KyVOumuBmpY0r+CgrgQVn7ohl9n6aIoc4TJjB0lEDWvmaGa05ETrGfPRd3lm1jI64b9SKtBJlbhAFTgEhuqWoUvlhCFdwRBW613cNWqnGYyDAdj+OQfdnugpBWHUa14jAKbbN2tlDrfR6mXUT9p7F3peyGvHNBb0UCl933GHgmyN6Hc/0R6+KZxiG7Ba6ReJjg6RiAos0DpTRsHWNz1s284Mr58DI+UF52N8B7vyIGzP4+nGJcWLXiNMtiR0/0S0BPtExAj3ZNwE42zh11e6duTZS/YlZaK6DebfrkOsb4aURMnsqiA+viHpPowDrwsoX1y6moRTZ20cMXtmpOgFYf8sGd8kFrRw4ptuCQagu2lJvwmpXEUu2DNSlOoEf12vY4aXOZkG6WY8OC4hzrwHRcjVhWepjd4KdYKK7jrx5H89WjRxPWoycydlS3jZ/I2VS/G9yp9gB6PG1T1aY4YAp3LfPHPPqABbtFRHS/jf34/T82FAfb",ZapfDingbats:"eJxtmNtu20YQhl+F4FULyMGeD7pz3AY1ChtG7NpFA18w1NomIlECSRcxgrx7SVk7+wOdG8H5OJydf2Z2d5gf9cV+t0v9VK/r+6vXsXlOlbHe28paq229qj/t++m62aXZ4J/m8PRb1z9/baZxefK63Z6eXN5dVMvTCh83u277xr/6kLrnl2XNq7TpXnczuZyabdee98/b2VzM/x4/dd/T5qab2pd6PQ2vaVVfvDRD005puE3Lu7eH1HbN9hTjx4/77/X6y5lcnUmjVzHIVVDicVX/1W/SsO36dLMfu6nb9/X6TAoBD+5euvZbn8axXtuZ36dhPJrVQqgPQoh5hev91LWLkIv94W1Ygq9+aX+tZAx2tfz64284/sblN/rqfLP/mqrbt3FKu7G67Nv9cNgPzZQ2H6rz7bb6vLgZq89pTMO/M/xfEqturJpqSM/d7GJIm2oamk3aNcO3av80O5xh3yyKmm1193ZIT02bqovTKjP+MAf++7zsZvZ3276kYyWWXB0z99S18/PbafPHQ71W4fjn/fxnFO+ZvkrT0LVzTr78qB/+nk38bHM9exgP8zr1z9U7jt6840YW5uSJKcZOCaBBnKgm5mU8MVNYyMwWFvO7Ukagkmgg6sDWQ5yFFqjzUrLEaQ3BEmiwNsMSaZS0vgWfOkPHWQowNeTUc0kumnxZvsgPxlGai6VTGUqAVCTQ6QkWnc77DKEiLktSUBJKqHIQZ86d8gCpHYoiEzMsb1ubYy8vW50DChB5ZhGqrijD0EqUIeiaEHIfCg5Kpuu0ApiToaGPSY0uaQsyr65L2oKi1yFt1PLaQ3lzfXTgXodGoJYzglndSLDMPg1sTPJpQJHJigw0QrGERqD9YhyTOgONQDUyuF1zaxuokc/BW2ztXCMrGZ9WMW1oQZHIXWNBkSCfRZEL5BMUiZw6CzVSFCfUSGZFNjIldoKDkonTKQiJIGzWmFd3BizJJ9SINoLDriOfUCOZS+zg+KGD1qGiLNMLxtJD1/ns00ON6EzyUCM6vbxhoBKaqbG3DFQCNiL1iHccBPV0DHhQH/JW8EW90dkyFKGywCJU0WkVSvSGeiSUODWFFD0HYdPQVoiRgfPMA+/nnRgiAyNYSjpWNQcNSMrtFCUH4ZIRpSCWocFCSuhCEY6hoUClc0WC52BJlCYYLQdhN+hygRRRlo5BKRRLS6oihSqh+ZzzRGG1Mo4Iz1LoP0qsxDGFzk0JE42ji0jCPejomJKCuwil4m5CiRMEUMVSzVLDUstSx1Juc0oVWMpqY295qVltmtWmWW2a1aZZbZrVplltmtWmWW2G1WZYbYbVZlhthtVmWG2G1WZYbYbVZlhtltVmWW2W1WZZbZbVZlltltVmWW2W1QYjQCh7E2aAQHeGhCFgPoNoy8KNb2wxBhmGKBxoUZXlLGsLI6AsftEDHV0wIURVbANLcTKlGGBIKPOAxCmhePCKUwFzAmpDFRQvjA9R06Hq8TONvshgKDCuRAZTXigUxjxNFfKRo3CLhnIJBMFRvMZpqpNBMlQJzGT5WFQMVQI/AikPMIhEU1aDjqJvQwmjSHB05cC9jbYwc5UtAHNLhDw41ha+lEqF4JaH3gmB61SYcqInxTDmQK8v08vjqv4zDf1N0w3Lf4A8/vwPpfK11w=="};(o=E||(E={})).Courier="Courier",o.CourierBold="Courier-Bold",o.CourierOblique="Courier-Oblique",o.CourierBoldOblique="Courier-BoldOblique",o.Helvetica="Helvetica",o.HelveticaBold="Helvetica-Bold",o.HelveticaOblique="Helvetica-Oblique",o.HelveticaBoldOblique="Helvetica-BoldOblique",o.TimesRoman="Times-Roman",o.TimesRomanBold="Times-Bold",o.TimesRomanItalic="Times-Italic",o.TimesRomanBoldItalic="Times-BoldItalic",o.Symbol="Symbol",o.ZapfDingbats="ZapfDingbats";for(var eg={},ev=function(){function t(){var t=this;this.getWidthOfGlyph=function(e){return t.CharWidths[e]},this.getXAxisKerningForPair=function(e,r){return(t.KernPairXAmounts[e]||{})[r]}}return t.load=function(e){var r=eg[e];if(r)return r;var n=eh(ep[e]),o=Object.assign(new t,JSON.parse(n));return o.CharWidths=o.CharMetrics.reduce(function(t,e){return t[e.N]=e.WX,t},{}),o.KernPairXAmounts=o.KernPairs.reduce(function(t,e){var r=e[0],n=e[1],o=e[2];return t[r]||(t[r]={}),t[r][n]=o,t},{}),eg[e]=o,o},t}(),ey=JSON.parse(eh(" ")),em=function(t,e){var r=this;this.canEncodeUnicodeCodePoint=function(t){return(t in r.unicodeMappings)},this.encodeUnicodeCodePoint=function(t){var e=r.unicodeMappings[t];if(!e){var n=String.fromCharCode(t),o="0x"+ef(t.toString(16),4,"0");throw Error(r.name+' cannot encode "'+n+'" ('+o+")")}return{code:e[0],name:e[1]}},this.name=t,this.supportedCodePoints=Object.keys(e).map(Number).sort(function(t,e){return t-e}),this.unicodeMappings=e},eb={Symbol:new em("Symbol",ey.symbol),ZapfDingbats:new em("ZapfDingbats",ey.zapfdingbats),WinAnsi:new em("WinAnsi",ey.win1252)},ew=function(t){return Object.keys(t).map(function(e){return t[e]})},ex=ew(E),eF=function(t){return ex.includes(t)},ek=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height},eS=function(t){return"`"+t+"`"},eC=function(t){var e=typeof t;return"string"===e?"'"+t+"'":"undefined"===e?eS(t):t},eT=function(t,e,r){for(var n=Array(r.length),o=0,i=r.length;o<i;o++){var a=r[o];n[o]=eC(a)}var s=n.join(" or ");return eS(e)+" must be one of "+s+", but was actually "+eC(t)},eO=function(t,e,r){Array.isArray(r)||(r=ew(r));for(var n=0,o=r.length;n<o;n++)if(t===r[n])return;throw TypeError(eT(t,e,r))},eA=function(t,e,r){Array.isArray(r)||(r=ew(r)),eO(t,e,r.concat(void 0))},eP=function(t,e,r){Array.isArray(r)||(r=ew(r));for(var n=0,o=t.length;n<o;n++)eO(t[n],e,r)},eN=function(t,e,r){for(var n=Array(r.length),o=0,i=r.length;o<i;o++){var a=r[o];"null"===a&&(n[o]=eS("null")),"undefined"===a&&(n[o]=eS("undefined")),"string"===a?n[o]=eS("string"):"number"===a?n[o]=eS("number"):"boolean"===a?n[o]=eS("boolean"):"symbol"===a?n[o]=eS("symbol"):"bigint"===a?n[o]=eS("bigint"):a===Array?n[o]=eS("Array"):a===Uint8Array?n[o]=eS("Uint8Array"):a===ArrayBuffer?n[o]=eS("ArrayBuffer"):n[o]=eS(a[1])}var s=n.join(" or ");return eS(e)+" must be of type "+s+", but was actually of type "+eS(null===t?"null":void 0===t?"undefined":"string"==typeof t?"string":isNaN(t)?"NaN":"number"==typeof t?"number":"boolean"==typeof t?"boolean":"symbol"==typeof t?"symbol":"bigint"==typeof t?"bigint":t.constructor&&t.constructor.name?t.constructor.name:t.name?t.name:t.constructor?String(t.constructor):String(t))},eR=function(t,e,r){for(var n,o=0,i=r.length;o<i;o++)if("null"===(n=r[o])?null===t:"undefined"===n?void 0===t:"string"===n?"string"==typeof t:"number"===n?"number"==typeof t&&!isNaN(t):"boolean"===n?"boolean"==typeof t:"symbol"===n?"symbol"==typeof t:"bigint"===n?"bigint"==typeof t:n===Date?t instanceof Date:n===Array?t instanceof Array:n===Uint8Array?t instanceof Uint8Array:n===ArrayBuffer?t instanceof ArrayBuffer:n===Function?t instanceof Function:t instanceof n[0])return;throw TypeError(eN(t,e,r))},ej=function(t,e,r){eR(t,e,r.concat("undefined"))},eD=function(t,e,r){for(var n=0,o=t.length;n<o;n++)eR(t[n],e,r)},ez=function(t,e,r,n){if(eR(t,e,["number"]),eR(r,"min",["number"]),eR(n,"max",["number"]),n=Math.max(r,n),t<r||t>n)throw Error(eS(e)+" must be at least "+r+" and at most "+n+", but was actually "+t)},eB=function(t,e,r,n){eR(t,e,["number","undefined"]),"number"==typeof t&&ez(t,e,r,n)},eM=function(t,e,r){if(eR(t,e,["number"]),t%r!=0)throw Error(eS(e)+" must be a multiple of "+r+", but was actually "+t)},eE=function(t,e){if(!Number.isInteger(t))throw Error(eS(e)+" must be an integer, but was actually "+t)},eI=function(t,e){if(![1,0].includes(Math.sign(t)))throw Error(eS(e)+" must be a positive number or 0, but was actually "+t)},eV=new Uint16Array(256),eU=0;eU<256;eU++)eV[eU]=eU;eV[22]=tF("\x17"),eV[24]=tF("˘"),eV[25]=tF("ˇ"),eV[26]=tF("ˆ"),eV[27]=tF("˙"),eV[28]=tF("˝"),eV[29]=tF("˛"),eV[30]=tF("˚"),eV[31]=tF("˜"),eV[127]=tF("�"),eV[128]=tF("•"),eV[129]=tF("†"),eV[130]=tF("‡"),eV[131]=tF("…"),eV[132]=tF("—"),eV[133]=tF("–"),eV[134]=tF("ƒ"),eV[135]=tF("⁄"),eV[136]=tF("‹"),eV[137]=tF("›"),eV[138]=tF("−"),eV[139]=tF("‰"),eV[140]=tF("„"),eV[141]=tF("“"),eV[142]=tF("”"),eV[143]=tF("‘"),eV[144]=tF("’"),eV[145]=tF("‚"),eV[146]=tF("™"),eV[147]=tF("ﬁ"),eV[148]=tF("ﬂ"),eV[149]=tF("Ł"),eV[150]=tF("Œ"),eV[151]=tF("Š"),eV[152]=tF("Ÿ"),eV[153]=tF("Ž"),eV[154]=tF("ı"),eV[155]=tF("ł"),eV[156]=tF("œ"),eV[157]=tF("š"),eV[158]=tF("ž"),eV[159]=tF("�"),eV[160]=tF("€"),eV[173]=tF("�");var eW=function(t){for(var e=Array(t.length),r=0,n=t.length;r<n;r++)e[r]=eV[t[r]];return String.fromCodePoint.apply(String,e)},eq=function(){function t(t){this.populate=t,this.value=void 0}return t.prototype.getValue=function(){return this.value},t.prototype.access=function(){return this.value||(this.value=this.populate()),this.value},t.prototype.invalidate=function(){this.value=void 0},t.populatedBy=function(e){return new t(e)},t}(),eG=function(t){function e(e,r){return t.call(this,"Method "+e+"."+r+"() not implemented")||this}return tu(e,t),e}(Error),eK=function(t){function e(e){return t.call(this,"Cannot construct "+e+" - it has a private constructor")||this}return tu(e,t),e}(Error),eL=function(t){function e(e,r){var n=function(t){var e,r;return null!==(e=null==t?void 0:t.name)&&void 0!==e?e:null===(r=null==t?void 0:t.constructor)||void 0===r?void 0:r.name},o="Expected instance of "+(Array.isArray(e)?e.map(n):[n(e)]).join(" or ")+", but got instance of "+(r?n(r):r);return t.call(this,o)||this}return tu(e,t),e}(Error),eX=function(t){function e(e){return t.call(this,e+" stream encoding not supported")||this}return tu(e,t),e}(Error),eH=function(t){function e(e,r){return t.call(this,"Cannot call "+e+"."+r+"() more than once")||this}return tu(e,t),e}(Error);tu(function(t){return i.call(this,"Missing catalog (ref="+t+")")||this},i=Error);var eZ=function(t){function e(){return t.call(this,"Can't embed page with missing Contents")||this}return tu(e,t),e}(Error),eY=function(t){function e(e){var r,n,o,i=null!==(o=null!==(n=null===(r=null==e?void 0:e.contructor)||void 0===r?void 0:r.name)&&void 0!==n?n:null==e?void 0:e.name)&&void 0!==o?o:e;return t.call(this,"Unrecognized stream type: "+i)||this}return tu(e,t),e}(Error),eJ=function(t){function e(){return t.call(this,"Found mismatched contexts while embedding pages. All pages in the array passed to `PDFDocument.embedPages()` must be from the same document.")||this}return tu(e,t),e}(Error),eQ=function(t){function e(e){return t.call(this,"Attempted to convert PDFArray with "+e+" elements to rectangle, but must have exactly 4 elements.")||this}return tu(e,t),e}(Error),e_=function(t){function e(e){return t.call(this,'Attempted to convert "'+e+'" to a date, but it does not match the PDF date string format.')||this}return tu(e,t),e}(Error),e$=function(t){function e(e,r){return t.call(this,"Invalid targetIndex specified: targetIndex="+e+" must be less than Count="+r)||this}return tu(e,t),e}(Error),e0=function(t){function e(e,r){return t.call(this,"Failed to "+r+" at targetIndex="+e+" due to corrupt page tree: It is likely that one or more 'Count' entries are invalid")||this}return tu(e,t),e}(Error),e1=function(t){function e(e,r,n){return t.call(this,"index should be at least "+r+" and at most "+n+", but was actually "+e)||this}return tu(e,t),e}(Error),e2=function(t){function e(){return t.call(this,"Attempted to set invalid field value")||this}return tu(e,t),e}(Error),e5=function(t){function e(){return t.call(this,"Attempted to select multiple values for single-select field")||this}return tu(e,t),e}(Error),e3=function(t){function e(e){return t.call(this,"No /DA (default appearance) entry found for field: "+e)||this}return tu(e,t),e}(Error),e4=function(t){function e(e){return t.call(this,"No Tf operator found for DA of field: "+e)||this}return tu(e,t),e}(Error),e6=function(t){function e(e,r){var n="Failed to parse number "+("(line:"+e.line+" col:"+e.column+" offset="+e.offset)+'): "'+r+'"';return t.call(this,n)||this}return tu(e,t),e}(Error),e8=function(t){function e(e,r){var n="Failed to parse PDF document "+("(line:"+e.line+" col:"+e.column+" offset=")+e.offset+"): "+r;return t.call(this,n)||this}return tu(e,t),e}(Error),e9=function(t){function e(e,r,n){return t.call(this,e,"Expected next byte to be "+r+" but it was actually "+n)||this}return tu(e,t),e}(e8),e7=function(t){function e(e,r){return t.call(this,e,"Failed to parse PDF object starting with the following byte: "+r)||this}return tu(e,t),e}(e8),rt=function(t){function e(e){return t.call(this,e,"Failed to parse invalid PDF object")||this}return tu(e,t),e}(e8),re=function(t){function e(e){return t.call(this,e,"Failed to parse PDF stream")||this}return tu(e,t),e}(e8),rr=function(t){function e(e){return t.call(this,e,"Failed to parse PDF literal string due to unbalanced parenthesis")||this}return tu(e,t),e}(e8),rn=function(t){function e(e){return t.call(this,e,"Parser stalled")||this}return tu(e,t),e}(e8),ro=function(t){function e(e){return t.call(this,e,"No PDF header found")||this}return tu(e,t),e}(e8),ri=function(t){function e(e,r){var n="Did not find expected keyword '"+tK(r)+"'";return t.call(this,e,n)||this}return tu(e,t),e}(e8);(a=I||(I={}))[a.Null=0]="Null",a[a.Backspace=8]="Backspace",a[a.Tab=9]="Tab",a[a.Newline=10]="Newline",a[a.FormFeed=12]="FormFeed",a[a.CarriageReturn=13]="CarriageReturn",a[a.Space=32]="Space",a[a.ExclamationPoint=33]="ExclamationPoint",a[a.Hash=35]="Hash",a[a.Percent=37]="Percent",a[a.LeftParen=40]="LeftParen",a[a.RightParen=41]="RightParen",a[a.Plus=43]="Plus",a[a.Minus=45]="Minus",a[a.Dash=45]="Dash",a[a.Period=46]="Period",a[a.ForwardSlash=47]="ForwardSlash",a[a.Zero=48]="Zero",a[a.One=49]="One",a[a.Two=50]="Two",a[a.Three=51]="Three",a[a.Four=52]="Four",a[a.Five=53]="Five",a[a.Six=54]="Six",a[a.Seven=55]="Seven",a[a.Eight=56]="Eight",a[a.Nine=57]="Nine",a[a.LessThan=60]="LessThan",a[a.GreaterThan=62]="GreaterThan",a[a.A=65]="A",a[a.D=68]="D",a[a.E=69]="E",a[a.F=70]="F",a[a.O=79]="O",a[a.P=80]="P",a[a.R=82]="R",a[a.LeftSquareBracket=91]="LeftSquareBracket",a[a.BackSlash=92]="BackSlash",a[a.RightSquareBracket=93]="RightSquareBracket",a[a.a=97]="a",a[a.b=98]="b",a[a.d=100]="d",a[a.e=101]="e",a[a.f=102]="f",a[a.i=105]="i",a[a.j=106]="j",a[a.l=108]="l",a[a.m=109]="m",a[a.n=110]="n",a[a.o=111]="o",a[a.r=114]="r",a[a.s=115]="s",a[a.t=116]="t",a[a.u=117]="u",a[a.x=120]="x",a[a.LeftCurly=123]="LeftCurly",a[a.RightCurly=125]="RightCurly",a[a.Tilde=126]="Tilde";var ra=I,rs=function(){function t(t,e){this.major=String(t),this.minor=String(e)}return t.prototype.toString=function(){var t=tC(129);return"%PDF-"+this.major+"."+this.minor+"\n%"+t+t+t+t},t.prototype.sizeInBytes=function(){return 12+this.major.length+this.minor.length},t.prototype.copyBytesInto=function(t,e){var r=e;return t[e++]=ra.Percent,t[e++]=ra.P,t[e++]=ra.D,t[e++]=ra.F,t[e++]=ra.Dash,e+=tO(this.major,t,e),t[e++]=ra.Period,e+=tO(this.minor,t,e),t[e++]=ra.Newline,t[e++]=ra.Percent,t[e++]=129,t[e++]=129,t[e++]=129,t[e++]=129,e-r},t.forVersion=function(e,r){return new t(e,r)},t}(),rl=function(){function t(){}return t.prototype.clone=function(t){throw new eG(this.constructor.name,"clone")},t.prototype.toString=function(){throw new eG(this.constructor.name,"toString")},t.prototype.sizeInBytes=function(){throw new eG(this.constructor.name,"sizeInBytes")},t.prototype.copyBytesInto=function(t,e){throw new eG(this.constructor.name,"copyBytesInto")},t}(),rc=function(t){function e(e){var r=t.call(this)||this;return r.numberValue=e,r.stringValue=ee(e),r}return tu(e,t),e.prototype.asNumber=function(){return this.numberValue},e.prototype.value=function(){return this.numberValue},e.prototype.clone=function(){return e.of(this.numberValue)},e.prototype.toString=function(){return this.stringValue},e.prototype.sizeInBytes=function(){return this.stringValue.length},e.prototype.copyBytesInto=function(t,e){return e+=tO(this.stringValue,t,e),this.stringValue.length},e.of=function(t){return new e(t)},e}(rl),ru=function(t){function e(e){var r=t.call(this)||this;return r.array=[],r.context=e,r}return tu(e,t),e.prototype.size=function(){return this.array.length},e.prototype.push=function(t){this.array.push(t)},e.prototype.insert=function(t,e){this.array.splice(t,0,e)},e.prototype.indexOf=function(t){var e=this.array.indexOf(t);return -1===e?void 0:e},e.prototype.remove=function(t){this.array.splice(t,1)},e.prototype.set=function(t,e){this.array[t]=e},e.prototype.get=function(t){return this.array[t]},e.prototype.lookupMaybe=function(t){for(var e,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(e=this.context).lookupMaybe.apply(e,tp([this.get(t)],r))},e.prototype.lookup=function(t){for(var e,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(e=this.context).lookup.apply(e,tp([this.get(t)],r))},e.prototype.asRectangle=function(){if(4!==this.size())throw new eQ(this.size());var t=this.lookup(0,rc).asNumber(),e=this.lookup(1,rc).asNumber();return{x:t,y:e,width:this.lookup(2,rc).asNumber()-t,height:this.lookup(3,rc).asNumber()-e}},e.prototype.asArray=function(){return this.array.slice()},e.prototype.clone=function(t){for(var r=e.withContext(t||this.context),n=0,o=this.size();n<o;n++)r.push(this.array[n]);return r},e.prototype.toString=function(){for(var t="[ ",e=0,r=this.size();e<r;e++)t+=this.get(e).toString()+" ";return t+"]"},e.prototype.sizeInBytes=function(){for(var t=3,e=0,r=this.size();e<r;e++)t+=this.get(e).sizeInBytes()+1;return t},e.prototype.copyBytesInto=function(t,e){var r=e;t[e++]=ra.LeftSquareBracket,t[e++]=ra.Space;for(var n=0,o=this.size();n<o;n++)e+=this.get(n).copyBytesInto(t,e),t[e++]=ra.Space;return t[e++]=ra.RightSquareBracket,e-r},e.prototype.scalePDFNumbers=function(t,e){for(var r=0,n=this.size();r<n;r++){var o=this.lookup(r);if(o instanceof rc){var i=r%2==0?t:e;this.set(r,rc.of(o.asNumber()*i))}}},e.withContext=function(t){return new e(t)},e}(rl),rd={},rh=function(t){function e(e,r){var n=this;if(e!==rd)throw new eK("PDFBool");return(n=t.call(this)||this).value=r,n}return tu(e,t),e.prototype.asBoolean=function(){return this.value},e.prototype.clone=function(){return this},e.prototype.toString=function(){return String(this.value)},e.prototype.sizeInBytes=function(){return this.value?4:5},e.prototype.copyBytesInto=function(t,e){return this.value?(t[e++]=ra.t,t[e++]=ra.r,t[e++]=ra.u,t[e++]=ra.e,4):(t[e++]=ra.f,t[e++]=ra.a,t[e++]=ra.l,t[e++]=ra.s,t[e++]=ra.e,5)},e.True=new e(rd,!0),e.False=new e(rd,!1),e}(rl),rf=new Uint8Array(256);rf[ra.LeftParen]=1,rf[ra.RightParen]=1,rf[ra.LessThan]=1,rf[ra.GreaterThan]=1,rf[ra.LeftSquareBracket]=1,rf[ra.RightSquareBracket]=1,rf[ra.LeftCurly]=1,rf[ra.RightCurly]=1,rf[ra.ForwardSlash]=1,rf[ra.Percent]=1;var rp=new Uint8Array(256);rp[ra.Null]=1,rp[ra.Tab]=1,rp[ra.Newline]=1,rp[ra.FormFeed]=1,rp[ra.CarriageReturn]=1,rp[ra.Space]=1;for(var rg=new Uint8Array(256),rv=0;rv<256;rv++)rg[rv]=rp[rv]||rf[rv]?1:0;rg[ra.Hash]=1;var ry={},rm=new Map,rb=function(t){function e(e,r){var n=this;if(e!==ry)throw new eK("PDFName");n=t.call(this)||this;for(var o="/",i=0,a=r.length;i<a;i++){var s=r[i],l=tF(s);o+=l>=ra.ExclamationPoint&&l<=ra.Tilde&&!rg[l]?s:"#"+tS(l)}return n.encodedName=o,n}return tu(e,t),e.prototype.asBytes=function(){for(var t=[],e="",r=!1,n=function(e){void 0!==e&&t.push(e),r=!1},o=1,i=this.encodedName.length;o<i;o++){var a=this.encodedName[o],s=tF(a),l=this.encodedName[o+1];r?s>=ra.Zero&&s<=ra.Nine||s>=ra.a&&s<=ra.f||s>=ra.A&&s<=ra.F?2!==(e+=a).length&&(l>="0"&&l<="9"||l>="a"&&l<="f"||l>="A"&&l<="F")||(n(parseInt(e,16)),e=""):n(s):s===ra.Hash?r=!0:n(s)}return new Uint8Array(t)},e.prototype.decodeText=function(){var t=this.asBytes();return String.fromCharCode.apply(String,Array.from(t))},e.prototype.asString=function(){return this.encodedName},e.prototype.value=function(){return this.encodedName},e.prototype.clone=function(){return this},e.prototype.toString=function(){return this.encodedName},e.prototype.sizeInBytes=function(){return this.encodedName.length},e.prototype.copyBytesInto=function(t,e){return e+=tO(this.encodedName,t,e),this.encodedName.length},e.of=function(t){var r=t.replace(/#([\dABCDEF]{2})/g,function(t,e){return tC(parseInt(e,16))}),n=rm.get(r);return n||(n=new e(ry,r),rm.set(r,n)),n},e.Length=e.of("Length"),e.FlateDecode=e.of("FlateDecode"),e.Resources=e.of("Resources"),e.Font=e.of("Font"),e.XObject=e.of("XObject"),e.ExtGState=e.of("ExtGState"),e.Contents=e.of("Contents"),e.Type=e.of("Type"),e.Parent=e.of("Parent"),e.MediaBox=e.of("MediaBox"),e.Page=e.of("Page"),e.Annots=e.of("Annots"),e.TrimBox=e.of("TrimBox"),e.ArtBox=e.of("ArtBox"),e.BleedBox=e.of("BleedBox"),e.CropBox=e.of("CropBox"),e.Rotate=e.of("Rotate"),e.Title=e.of("Title"),e.Author=e.of("Author"),e.Subject=e.of("Subject"),e.Creator=e.of("Creator"),e.Keywords=e.of("Keywords"),e.Producer=e.of("Producer"),e.CreationDate=e.of("CreationDate"),e.ModDate=e.of("ModDate"),e}(rl),rw=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tu(e,t),e.prototype.asNull=function(){return null},e.prototype.clone=function(){return this},e.prototype.toString=function(){return"null"},e.prototype.sizeInBytes=function(){return 4},e.prototype.copyBytesInto=function(t,e){return t[e++]=ra.n,t[e++]=ra.u,t[e++]=ra.l,t[e++]=ra.l,4},e}(rl)),rx=function(t){function e(e,r){var n=t.call(this)||this;return n.dict=e,n.context=r,n}return tu(e,t),e.prototype.keys=function(){return Array.from(this.dict.keys())},e.prototype.values=function(){return Array.from(this.dict.values())},e.prototype.entries=function(){return Array.from(this.dict.entries())},e.prototype.set=function(t,e){this.dict.set(t,e)},e.prototype.get=function(t,e){void 0===e&&(e=!1);var r=this.dict.get(t);if(r!==rw||e)return r},e.prototype.has=function(t){var e=this.dict.get(t);return void 0!==e&&e!==rw},e.prototype.lookupMaybe=function(t){for(var e,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=r.includes(rw),i=(e=this.context).lookupMaybe.apply(e,tp([this.get(t,o)],r));if(i!==rw||o)return i},e.prototype.lookup=function(t){for(var e,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=r.includes(rw),i=(e=this.context).lookup.apply(e,tp([this.get(t,o)],r));if(i!==rw||o)return i},e.prototype.delete=function(t){return this.dict.delete(t)},e.prototype.asMap=function(){return new Map(this.dict)},e.prototype.uniqueKey=function(t){void 0===t&&(t="");for(var e=this.keys(),r=rb.of(this.context.addRandomSuffix(t,10));e.includes(r);)r=rb.of(this.context.addRandomSuffix(t,10));return r},e.prototype.clone=function(t){for(var r=e.withContext(t||this.context),n=this.entries(),o=0,i=n.length;o<i;o++){var a=n[o],s=a[0],l=a[1];r.set(s,l)}return r},e.prototype.toString=function(){for(var t="<<\n",e=this.entries(),r=0,n=e.length;r<n;r++){var o=e[r],i=o[0],a=o[1];t+=i.toString()+" "+a.toString()+"\n"}return t+">>"},e.prototype.sizeInBytes=function(){for(var t=5,e=this.entries(),r=0,n=e.length;r<n;r++){var o=e[r],i=o[0],a=o[1];t+=i.sizeInBytes()+a.sizeInBytes()+2}return t},e.prototype.copyBytesInto=function(t,e){var r=e;t[e++]=ra.LessThan,t[e++]=ra.LessThan,t[e++]=ra.Newline;for(var n=this.entries(),o=0,i=n.length;o<i;o++){var a=n[o],s=a[0],l=a[1];e+=s.copyBytesInto(t,e),t[e++]=ra.Space,e+=l.copyBytesInto(t,e),t[e++]=ra.Newline}return t[e++]=ra.GreaterThan,t[e++]=ra.GreaterThan,e-r},e.withContext=function(t){return new e(new Map,t)},e.fromMapWithContext=function(t,r){return new e(t,r)},e}(rl),rF=function(t){function e(e){var r=t.call(this)||this;return r.dict=e,r}return tu(e,t),e.prototype.clone=function(t){throw new eG(this.constructor.name,"clone")},e.prototype.getContentsString=function(){throw new eG(this.constructor.name,"getContentsString")},e.prototype.getContents=function(){throw new eG(this.constructor.name,"getContents")},e.prototype.getContentsSize=function(){throw new eG(this.constructor.name,"getContentsSize")},e.prototype.updateDict=function(){var t=this.getContentsSize();this.dict.set(rb.Length,rc.of(t))},e.prototype.sizeInBytes=function(){return this.updateDict(),this.dict.sizeInBytes()+this.getContentsSize()+18},e.prototype.toString=function(){return this.updateDict(),this.dict.toString()+("\nstream\n"+this.getContentsString())+"\nendstream"},e.prototype.copyBytesInto=function(t,e){this.updateDict();var r=e;e+=this.dict.copyBytesInto(t,e),t[e++]=ra.Newline,t[e++]=ra.s,t[e++]=ra.t,t[e++]=ra.r,t[e++]=ra.e,t[e++]=ra.a,t[e++]=ra.m,t[e++]=ra.Newline;for(var n=this.getContents(),o=0,i=n.length;o<i;o++)t[e++]=n[o];return t[e++]=ra.Newline,t[e++]=ra.e,t[e++]=ra.n,t[e++]=ra.d,t[e++]=ra.s,t[e++]=ra.t,t[e++]=ra.r,t[e++]=ra.e,t[e++]=ra.a,t[e++]=ra.m,e-r},e}(rl),rk=function(t){function e(e,r){var n=t.call(this,e)||this;return n.contents=r,n}return tu(e,t),e.prototype.asUint8Array=function(){return this.contents.slice()},e.prototype.clone=function(t){return e.of(this.dict.clone(t),this.contents.slice())},e.prototype.getContentsString=function(){return tK(this.contents)},e.prototype.getContents=function(){return this.contents},e.prototype.getContentsSize=function(){return this.contents.length},e.of=function(t,r){return new e(t,r)},e}(rF),rS={},rC=new Map,rT=function(t){function e(e,r,n){var o=this;if(e!==rS)throw new eK("PDFRef");return(o=t.call(this)||this).objectNumber=r,o.generationNumber=n,o.tag=r+" "+n+" R",o}return tu(e,t),e.prototype.clone=function(){return this},e.prototype.toString=function(){return this.tag},e.prototype.sizeInBytes=function(){return this.tag.length},e.prototype.copyBytesInto=function(t,e){return e+=tO(this.tag,t,e),this.tag.length},e.of=function(t,r){void 0===r&&(r=0);var n=t+" "+r+" R",o=rC.get(n);return o||(o=new e(rS,t,r),rC.set(n,o)),o},e}(rl),rO=function(){function t(t,e){this.name=t,this.args=e||[]}return t.prototype.clone=function(e){for(var r=Array(this.args.length),n=0,o=r.length;n<o;n++){var i=this.args[n];r[n]=i instanceof rl?i.clone(e):i}return t.of(this.name,r)},t.prototype.toString=function(){for(var t="",e=0,r=this.args.length;e<r;e++)t+=String(this.args[e])+" ";return t+this.name},t.prototype.sizeInBytes=function(){for(var t=0,e=0,r=this.args.length;e<r;e++){var n=this.args[e];t+=(n instanceof rl?n.sizeInBytes():n.length)+1}return t+this.name.length},t.prototype.copyBytesInto=function(t,e){for(var r=e,n=0,o=this.args.length;n<o;n++){var i=this.args[n];i instanceof rl?e+=i.copyBytesInto(t,e):e+=tO(i,t,e),t[e++]=ra.Space}return(e+=tO(this.name,t,e))-r},t.of=function(e,r){return new t(e,r)},t}();(s=V||(V={})).NonStrokingColor="sc",s.NonStrokingColorN="scn",s.NonStrokingColorRgb="rg",s.NonStrokingColorGray="g",s.NonStrokingColorCmyk="k",s.NonStrokingColorspace="cs",s.StrokingColor="SC",s.StrokingColorN="SCN",s.StrokingColorRgb="RG",s.StrokingColorGray="G",s.StrokingColorCmyk="K",s.StrokingColorspace="CS",s.BeginMarkedContentSequence="BDC",s.BeginMarkedContent="BMC",s.EndMarkedContent="EMC",s.MarkedContentPointWithProps="DP",s.MarkedContentPoint="MP",s.DrawObject="Do",s.ConcatTransformationMatrix="cm",s.PopGraphicsState="Q",s.PushGraphicsState="q",s.SetFlatness="i",s.SetGraphicsStateParams="gs",s.SetLineCapStyle="J",s.SetLineDashPattern="d",s.SetLineJoinStyle="j",s.SetLineMiterLimit="M",s.SetLineWidth="w",s.SetTextMatrix="Tm",s.SetRenderingIntent="ri",s.AppendRectangle="re",s.BeginInlineImage="BI",s.BeginInlineImageData="ID",s.EndInlineImage="EI",s.ClipEvenOdd="W*",s.ClipNonZero="W",s.CloseAndStroke="s",s.CloseFillEvenOddAndStroke="b*",s.CloseFillNonZeroAndStroke="b",s.ClosePath="h",s.AppendBezierCurve="c",s.CurveToReplicateFinalPoint="y",s.CurveToReplicateInitialPoint="v",s.EndPath="n",s.FillEvenOddAndStroke="B*",s.FillEvenOdd="f*",s.FillNonZeroAndStroke="B",s.FillNonZero="f",s.LegacyFillNonZero="F",s.LineTo="l",s.MoveTo="m",s.ShadingFill="sh",s.StrokePath="S",s.BeginText="BT",s.EndText="ET",s.MoveText="Td",s.MoveTextSetLeading="TD",s.NextLine="T*",s.SetCharacterSpacing="Tc",s.SetFontAndSize="Tf",s.SetTextHorizontalScaling="Tz",s.SetTextLineHeight="TL",s.SetTextRenderingMode="Tr",s.SetTextRise="Ts",s.SetWordSpacing="Tw",s.ShowText="Tj",s.ShowTextAdjusted="TJ",s.ShowTextLine="'",s.ShowTextLineAndSpace='"',s.Type3D0="d0",s.Type3D1="d1",s.BeginCompatibilitySection="BX",s.EndCompatibilitySection="EX";var rA=V,rP=function(t){function e(e,r){var n=t.call(this,e)||this;return n.computeContents=function(){var t=n.getUnencodedContents();return n.encode?ea().deflate(t):t},n.encode=r,r&&e.set(rb.of("Filter"),rb.of("FlateDecode")),n.contentsCache=eq.populatedBy(n.computeContents),n}return tu(e,t),e.prototype.getContents=function(){return this.contentsCache.access()},e.prototype.getContentsSize=function(){return this.contentsCache.access().length},e.prototype.getUnencodedContents=function(){throw new eG(this.constructor.name,"getUnencodedContents")},e}(rF),rN=function(t){function e(e,r,n){void 0===n&&(n=!0);var o=t.call(this,e,n)||this;return o.operators=r,o}return tu(e,t),e.prototype.push=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];(t=this.operators).push.apply(t,e)},e.prototype.clone=function(t){for(var r=Array(this.operators.length),n=0,o=this.operators.length;n<o;n++)r[n]=this.operators[n].clone(t);var i=this.dict,a=this.encode;return e.of(i.clone(t),r,a)},e.prototype.getContentsString=function(){for(var t="",e=0,r=this.operators.length;e<r;e++)t+=this.operators[e]+"\n";return t},e.prototype.getUnencodedContents=function(){for(var t=new Uint8Array(this.getUnencodedContentsSize()),e=0,r=0,n=this.operators.length;r<n;r++)e+=this.operators[r].copyBytesInto(t,e),t[e++]=ra.Newline;return t},e.prototype.getUnencodedContentsSize=function(){for(var t=0,e=0,r=this.operators.length;e<r;e++)t+=this.operators[e].sizeInBytes()+1;return t},e.of=function(t,r,n){return void 0===n&&(n=!0),new e(t,r,n)},e}(rP),rR=function(){function t(t){this.seed=t}return t.prototype.nextInt=function(){var t=1e4*Math.sin(this.seed++);return t-Math.floor(t)},t.withSeed=function(e){return new t(e)},t}(),rj=function(t,e){var r=t[0],n=e[0];return r.objectNumber-n.objectNumber},rD=function(){function t(){this.largestObjectNumber=0,this.header=rs.forVersion(1,7),this.trailerInfo={},this.indirectObjects=new Map,this.rng=rR.withSeed(1)}return t.prototype.assign=function(t,e){this.indirectObjects.set(t,e),t.objectNumber>this.largestObjectNumber&&(this.largestObjectNumber=t.objectNumber)},t.prototype.nextRef=function(){return this.largestObjectNumber+=1,rT.of(this.largestObjectNumber)},t.prototype.register=function(t){var e=this.nextRef();return this.assign(e,t),e},t.prototype.delete=function(t){return this.indirectObjects.delete(t)},t.prototype.lookupMaybe=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=e.includes(rw),o=t instanceof rT?this.indirectObjects.get(t):t;if(o&&(o!==rw||n)){for(var i=0,a=e.length;i<a;i++){var s=e[i];if(s===rw){if(o===rw)return o}else if(o instanceof s)return o}throw new eL(e,o)}},t.prototype.lookup=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=t instanceof rT?this.indirectObjects.get(t):t;if(0===e.length)return n;for(var o=0,i=e.length;o<i;o++){var a=e[o];if(a===rw){if(n===rw)return n}else if(n instanceof a)return n}throw new eL(e,n)},t.prototype.getObjectRef=function(t){for(var e=Array.from(this.indirectObjects.entries()),r=0,n=e.length;r<n;r++){var o=e[r],i=o[0];if(o[1]===t)return i}},t.prototype.enumerateIndirectObjects=function(){return Array.from(this.indirectObjects.entries()).sort(rj)},t.prototype.obj=function(t){if(t instanceof rl)return t;if(null==t)return rw;if("string"==typeof t)return rb.of(t);if("number"==typeof t)return rc.of(t);if("boolean"==typeof t)return t?rh.True:rh.False;if(Array.isArray(t)){for(var e=ru.withContext(this),r=0,n=t.length;r<n;r++)e.push(this.obj(t[r]));return e}for(var o=rx.withContext(this),i=Object.keys(t),r=0,n=i.length;r<n;r++){var a=i[r],s=t[a];void 0!==s&&o.set(rb.of(a),this.obj(s))}return o},t.prototype.stream=function(t,e){return void 0===e&&(e={}),rk.of(this.obj(e),tW(t))},t.prototype.flateStream=function(t,e){return void 0===e&&(e={}),this.stream(ea().deflate(tW(t)),td(td({},e),{Filter:"FlateDecode"}))},t.prototype.contentStream=function(t,e){return void 0===e&&(e={}),rN.of(this.obj(e),t)},t.prototype.formXObject=function(t,e){return void 0===e&&(e={}),this.contentStream(t,td(td({BBox:this.obj([0,0,0,0]),Matrix:this.obj([1,0,0,1,0,0])},e),{Type:"XObject",Subtype:"Form"}))},t.prototype.getPushGraphicsStateContentStream=function(){if(this.pushGraphicsStateContentStreamRef)return this.pushGraphicsStateContentStreamRef;var t=this.obj({}),e=rO.of(rA.PushGraphicsState),r=rN.of(t,[e]);return this.pushGraphicsStateContentStreamRef=this.register(r),this.pushGraphicsStateContentStreamRef},t.prototype.getPopGraphicsStateContentStream=function(){if(this.popGraphicsStateContentStreamRef)return this.popGraphicsStateContentStreamRef;var t=this.obj({}),e=rO.of(rA.PopGraphicsState),r=rN.of(t,[e]);return this.popGraphicsStateContentStreamRef=this.register(r),this.popGraphicsStateContentStreamRef},t.prototype.addRandomSuffix=function(t,e){return void 0===e&&(e=4),t+"-"+Math.floor(this.rng.nextInt()*Math.pow(10,e))},t.create=function(){return new t},t}(),rz=function(t){function e(e,r,n){void 0===n&&(n=!0);var o=t.call(this,e,r)||this;return o.normalized=!1,o.autoNormalizeCTM=n,o}return tu(e,t),e.prototype.clone=function(t){for(var r=e.fromMapWithContext(new Map,t||this.context,this.autoNormalizeCTM),n=this.entries(),o=0,i=n.length;o<i;o++){var a=n[o],s=a[0],l=a[1];r.set(s,l)}return r},e.prototype.Parent=function(){return this.lookupMaybe(rb.Parent,rx)},e.prototype.Contents=function(){return this.lookup(rb.of("Contents"))},e.prototype.Annots=function(){return this.lookupMaybe(rb.Annots,ru)},e.prototype.BleedBox=function(){return this.lookupMaybe(rb.BleedBox,ru)},e.prototype.TrimBox=function(){return this.lookupMaybe(rb.TrimBox,ru)},e.prototype.ArtBox=function(){return this.lookupMaybe(rb.ArtBox,ru)},e.prototype.Resources=function(){var t=this.getInheritableAttribute(rb.Resources);return this.context.lookupMaybe(t,rx)},e.prototype.MediaBox=function(){var t=this.getInheritableAttribute(rb.MediaBox);return this.context.lookup(t,ru)},e.prototype.CropBox=function(){var t=this.getInheritableAttribute(rb.CropBox);return this.context.lookupMaybe(t,ru)},e.prototype.Rotate=function(){var t=this.getInheritableAttribute(rb.Rotate);return this.context.lookupMaybe(t,rc)},e.prototype.getInheritableAttribute=function(t){var e;return this.ascend(function(r){e||(e=r.get(t))}),e},e.prototype.setParent=function(t){this.set(rb.Parent,t)},e.prototype.addContentStream=function(t){var e=this.normalizedEntries().Contents||this.context.obj([]);this.set(rb.Contents,e),e.push(t)},e.prototype.wrapContentStreams=function(t,e){var r=this.Contents();return r instanceof ru&&(r.insert(0,t),r.push(e),!0)},e.prototype.addAnnot=function(t){this.normalizedEntries().Annots.push(t)},e.prototype.removeAnnot=function(t){var e=this.normalizedEntries().Annots,r=e.indexOf(t);void 0!==r&&e.remove(r)},e.prototype.setFontDictionary=function(t,e){this.normalizedEntries().Font.set(t,e)},e.prototype.newFontDictionaryKey=function(t){return this.normalizedEntries().Font.uniqueKey(t)},e.prototype.newFontDictionary=function(t,e){var r=this.newFontDictionaryKey(t);return this.setFontDictionary(r,e),r},e.prototype.setXObject=function(t,e){this.normalizedEntries().XObject.set(t,e)},e.prototype.newXObjectKey=function(t){return this.normalizedEntries().XObject.uniqueKey(t)},e.prototype.newXObject=function(t,e){var r=this.newXObjectKey(t);return this.setXObject(r,e),r},e.prototype.setExtGState=function(t,e){this.normalizedEntries().ExtGState.set(t,e)},e.prototype.newExtGStateKey=function(t){return this.normalizedEntries().ExtGState.uniqueKey(t)},e.prototype.newExtGState=function(t,e){var r=this.newExtGStateKey(t);return this.setExtGState(r,e),r},e.prototype.ascend=function(t){t(this);var e=this.Parent();e&&e.ascend(t)},e.prototype.normalize=function(){if(!this.normalized){var t=this.context,e=this.get(rb.Contents);this.context.lookup(e) instanceof rF&&this.set(rb.Contents,t.obj([e])),this.autoNormalizeCTM&&this.wrapContentStreams(this.context.getPushGraphicsStateContentStream(),this.context.getPopGraphicsStateContentStream());var r=this.getInheritableAttribute(rb.Resources),n=t.lookupMaybe(r,rx)||t.obj({});this.set(rb.Resources,n);var o=n.lookupMaybe(rb.Font,rx)||t.obj({});n.set(rb.Font,o);var i=n.lookupMaybe(rb.XObject,rx)||t.obj({});n.set(rb.XObject,i);var a=n.lookupMaybe(rb.ExtGState,rx)||t.obj({});n.set(rb.ExtGState,a);var s=this.Annots()||t.obj([]);this.set(rb.Annots,s),this.normalized=!0}},e.prototype.normalizedEntries=function(){this.normalize();var t=this.Annots(),e=this.Resources();return{Annots:t,Resources:e,Contents:this.Contents(),Font:e.lookup(rb.Font,rx),XObject:e.lookup(rb.XObject,rx),ExtGState:e.lookup(rb.ExtGState,rx)}},e.InheritableEntries=["Resources","MediaBox","CropBox","Rotate"],e.withContextAndParent=function(t,r){var n=new Map;return n.set(rb.Type,rb.Page),n.set(rb.Parent,r),n.set(rb.Resources,t.obj({})),n.set(rb.MediaBox,t.obj([0,0,612,792])),new e(n,t,!1)},e.fromMapWithContext=function(t,r,n){return void 0===n&&(n=!0),new e(t,r,n)},e}(rx),rB=function(){function t(t,e){var r=this;this.traversedObjects=new Map,this.copy=function(t){return t instanceof rz?r.copyPDFPage(t):t instanceof rx?r.copyPDFDict(t):t instanceof ru?r.copyPDFArray(t):t instanceof rF?r.copyPDFStream(t):t instanceof rT?r.copyPDFIndirectObject(t):t.clone()},this.copyPDFPage=function(t){for(var e=t.clone(),n=rz.InheritableEntries,o=0,i=n.length;o<i;o++){var a=rb.of(n[o]),s=e.getInheritableAttribute(a);!e.get(a)&&s&&e.set(a,s)}return e.delete(rb.of("Parent")),r.copyPDFDict(e)},this.copyPDFDict=function(t){if(r.traversedObjects.has(t))return r.traversedObjects.get(t);var e=t.clone(r.dest);r.traversedObjects.set(t,e);for(var n=t.entries(),o=0,i=n.length;o<i;o++){var a=n[o],s=a[0],l=a[1];e.set(s,r.copy(l))}return e},this.copyPDFArray=function(t){if(r.traversedObjects.has(t))return r.traversedObjects.get(t);var e=t.clone(r.dest);r.traversedObjects.set(t,e);for(var n=0,o=t.size();n<o;n++){var i=t.get(n);e.set(n,r.copy(i))}return e},this.copyPDFStream=function(t){if(r.traversedObjects.has(t))return r.traversedObjects.get(t);var e=t.clone(r.dest);r.traversedObjects.set(t,e);for(var n=t.dict.entries(),o=0,i=n.length;o<i;o++){var a=n[o],s=a[0],l=a[1];e.dict.set(s,r.copy(l))}return e},this.copyPDFIndirectObject=function(t){if(!r.traversedObjects.has(t)){var e=r.dest.nextRef();r.traversedObjects.set(t,e);var n=r.src.lookup(t);if(n){var o=r.copy(n);r.dest.assign(e,o)}}return r.traversedObjects.get(t)},this.src=t,this.dest=e}return t.for=function(e,r){return new t(e,r)},t}(),rM=function(){function t(t){this.subsections=t?[[t]]:[],this.chunkIdx=0,this.chunkLength=t?1:0}return t.prototype.addEntry=function(t,e){this.append({ref:t,offset:e,deleted:!1})},t.prototype.addDeletedEntry=function(t,e){this.append({ref:t,offset:e,deleted:!0})},t.prototype.toString=function(){for(var t="xref\n",e=0,r=this.subsections.length;e<r;e++){var n=this.subsections[e];t+=n[0].ref.objectNumber+" "+n.length+"\n";for(var o=0,i=n.length;o<i;o++){var a=n[o];t+=tT(String(a.offset),10,"0")+" "+tT(String(a.ref.generationNumber),5,"0")+" "+(a.deleted?"f":"n")+" \n"}}return t},t.prototype.sizeInBytes=function(){for(var t=5,e=0,r=this.subsections.length;e<r;e++){var n=this.subsections[e],o=n.length;t+=2+String(n[0].ref.objectNumber).length+String(o).length+20*o}return t},t.prototype.copyBytesInto=function(t,e){var r=e;return t[e++]=ra.x,t[e++]=ra.r,t[e++]=ra.e,t[e++]=ra.f,t[e++]=ra.Newline,(e+=this.copySubsectionsIntoBuffer(this.subsections,t,e))-r},t.prototype.copySubsectionsIntoBuffer=function(t,e,r){for(var n=r,o=t.length,i=0;i<o;i++){var a=this.subsections[i],s=String(a[0].ref.objectNumber);r+=tO(s,e,r),e[r++]=ra.Space;var l=String(a.length);r+=tO(l,e,r),e[r++]=ra.Newline,r+=this.copyEntriesIntoBuffer(a,e,r)}return r-n},t.prototype.copyEntriesIntoBuffer=function(t,e,r){for(var n=t.length,o=0;o<n;o++){var i=t[o],a=tT(String(i.offset),10,"0");r+=tO(a,e,r),e[r++]=ra.Space;var s=tT(String(i.ref.generationNumber),5,"0");r+=tO(s,e,r),e[r++]=ra.Space,e[r++]=i.deleted?ra.f:ra.n,e[r++]=ra.Space,e[r++]=ra.Newline}return 20*n},t.prototype.append=function(t){if(0===this.chunkLength){this.subsections.push([t]),this.chunkIdx=0,this.chunkLength=1;return}var e=this.subsections[this.chunkIdx],r=e[this.chunkLength-1];t.ref.objectNumber-r.ref.objectNumber>1?(this.subsections.push([t]),this.chunkIdx+=1,this.chunkLength=1):(e.push(t),this.chunkLength+=1)},t.create=function(){return new t({ref:rT.of(0,65535),offset:0,deleted:!0})},t.createEmpty=function(){return new t},t}(),rE=function(){function t(t){this.lastXRefOffset=String(t)}return t.prototype.toString=function(){return"startxref\n"+this.lastXRefOffset+"\n%%EOF"},t.prototype.sizeInBytes=function(){return 16+this.lastXRefOffset.length},t.prototype.copyBytesInto=function(t,e){var r=e;return t[e++]=ra.s,t[e++]=ra.t,t[e++]=ra.a,t[e++]=ra.r,t[e++]=ra.t,t[e++]=ra.x,t[e++]=ra.r,t[e++]=ra.e,t[e++]=ra.f,t[e++]=ra.Newline,e+=tO(this.lastXRefOffset,t,e),t[e++]=ra.Newline,t[e++]=ra.Percent,t[e++]=ra.Percent,t[e++]=ra.E,t[e++]=ra.O,t[e++]=ra.F,e-r},t.forLastCrossRefSectionOffset=function(e){return new t(e)},t}(),rI=function(){function t(t){this.dict=t}return t.prototype.toString=function(){return"trailer\n"+this.dict.toString()},t.prototype.sizeInBytes=function(){return 8+this.dict.sizeInBytes()},t.prototype.copyBytesInto=function(t,e){var r=e;return t[e++]=ra.t,t[e++]=ra.r,t[e++]=ra.a,t[e++]=ra.i,t[e++]=ra.l,t[e++]=ra.e,t[e++]=ra.r,t[e++]=ra.Newline,(e+=this.dict.copyBytesInto(t,e))-r},t.of=function(e){return new t(e)},t}(),rV=function(t){function e(e,r,n){void 0===n&&(n=!0);var o=t.call(this,e.obj({}),n)||this;return o.objects=r,o.offsets=o.computeObjectOffsets(),o.offsetsString=o.computeOffsetsString(),o.dict.set(rb.of("Type"),rb.of("ObjStm")),o.dict.set(rb.of("N"),rc.of(o.objects.length)),o.dict.set(rb.of("First"),rc.of(o.offsetsString.length)),o}return tu(e,t),e.prototype.getObjectsCount=function(){return this.objects.length},e.prototype.clone=function(t){return e.withContextAndObjects(t||this.dict.context,this.objects.slice(),this.encode)},e.prototype.getContentsString=function(){for(var t=this.offsetsString,e=0,r=this.objects.length;e<r;e++)t+=this.objects[e][1]+"\n";return t},e.prototype.getUnencodedContents=function(){for(var t=new Uint8Array(this.getUnencodedContentsSize()),e=tO(this.offsetsString,t,0),r=0,n=this.objects.length;r<n;r++){var o=this.objects[r][1];e+=o.copyBytesInto(t,e),t[e++]=ra.Newline}return t},e.prototype.getUnencodedContentsSize=function(){return this.offsetsString.length+tU(this.offsets)[1]+tU(this.objects)[1].sizeInBytes()+1},e.prototype.computeOffsetsString=function(){for(var t="",e=0,r=this.offsets.length;e<r;e++){var n=this.offsets[e];t+=n[0]+" "+n[1]+" "}return t},e.prototype.computeObjectOffsets=function(){for(var t=0,e=Array(this.objects.length),r=0,n=this.objects.length;r<n;r++){var o=this.objects[r],i=o[0],a=o[1];e[r]=[i.objectNumber,t],t+=a.sizeInBytes()+1}return e},e.withContextAndObjects=function(t,r,n){return void 0===n&&(n=!0),new e(t,r,n)},e}(rP),rU=function(){function t(t,e){var r=this;this.parsedObjects=0,this.shouldWaitForTick=function(t){return r.parsedObjects+=t,r.parsedObjects%r.objectsPerTick==0},this.context=t,this.objectsPerTick=e}return t.prototype.serializeToBuffer=function(){return th(this,void 0,void 0,function(){var t,e,r,n,o,i,a,s,l,c,u,d,h,f,p,g,v;return tf(this,function(y){switch(y.label){case 0:return[4,this.computeBufferSize()];case 1:e=(t=y.sent()).size,r=t.header,n=t.indirectObjects,o=t.xref,i=t.trailerDict,a=t.trailer,s=0,l=new Uint8Array(e),s+=r.copyBytesInto(l,s),l[s++]=ra.Newline,l[s++]=ra.Newline,c=0,u=n.length,y.label=2;case 2:if(!(c<u))return[3,5];if(h=(d=n[c])[0],f=d[1],p=String(h.objectNumber),s+=tO(p,l,s),l[s++]=ra.Space,g=String(h.generationNumber),s+=tO(g,l,s),l[s++]=ra.Space,l[s++]=ra.o,l[s++]=ra.b,l[s++]=ra.j,l[s++]=ra.Newline,s+=f.copyBytesInto(l,s),l[s++]=ra.Newline,l[s++]=ra.e,l[s++]=ra.n,l[s++]=ra.d,l[s++]=ra.o,l[s++]=ra.b,l[s++]=ra.j,l[s++]=ra.Newline,l[s++]=ra.Newline,v=f instanceof rV?f.getObjectsCount():1,!this.shouldWaitForTick(v))return[3,4];return[4,t_()];case 3:y.sent(),y.label=4;case 4:return c++,[3,2];case 5:return o&&(s+=o.copyBytesInto(l,s),l[s++]=ra.Newline),i&&(s+=i.copyBytesInto(l,s),l[s++]=ra.Newline,l[s++]=ra.Newline),s+=a.copyBytesInto(l,s),[2,l]}})})},t.prototype.computeIndirectObjectSize=function(t){var e=t[0],r=t[1];return e.sizeInBytes()+3+(r.sizeInBytes()+9)},t.prototype.createTrailerDict=function(){return this.context.obj({Size:this.context.largestObjectNumber+1,Root:this.context.trailerInfo.Root,Encrypt:this.context.trailerInfo.Encrypt,Info:this.context.trailerInfo.Info,ID:this.context.trailerInfo.ID})},t.prototype.computeBufferSize=function(){return th(this,void 0,void 0,function(){var t,e,r,n,o,i,a,s,l,c,u;return tf(this,function(d){switch(d.label){case 0:e=(t=rs.forVersion(1,7)).sizeInBytes()+2,r=rM.create(),n=this.context.enumerateIndirectObjects(),o=0,i=n.length,d.label=1;case 1:if(!(o<i))return[3,4];if(s=(a=n[o])[0],r.addEntry(s,e),e+=this.computeIndirectObjectSize(a),!this.shouldWaitForTick(1))return[3,3];return[4,t_()];case 2:d.sent(),d.label=3;case 3:return o++,[3,1];case 4:return l=e,e+=r.sizeInBytes()+1,c=rI.of(this.createTrailerDict()),e+=c.sizeInBytes()+2,u=rE.forLastCrossRefSectionOffset(l),[2,{size:e+=u.sizeInBytes(),header:t,indirectObjects:n,xref:r,trailerDict:c,trailer:u}]}})})},t.forContext=function(e,r){return new t(e,r)},t}(),rW=function(t){function e(e){var r=t.call(this)||this;return r.data=e,r}return tu(e,t),e.prototype.clone=function(){return e.of(this.data.slice())},e.prototype.toString=function(){return"PDFInvalidObject("+this.data.length+" bytes)"},e.prototype.sizeInBytes=function(){return this.data.length},e.prototype.copyBytesInto=function(t,e){for(var r=this.data.length,n=0;n<r;n++)t[e++]=this.data[n];return r},e.of=function(t){return new e(t)},e}(rl);(l=U||(U={}))[l.Deleted=0]="Deleted",l[l.Uncompressed=1]="Uncompressed",l[l.Compressed=2]="Compressed";var rq=function(t){function e(e,r,n){void 0===n&&(n=!0);var o=t.call(this,e,n)||this;return o.computeIndex=function(){for(var t=[],e=0,r=0,n=o.entries.length;r<n;r++){var i=o.entries[r],a=o.entries[r-1];0===r?t.push(i.ref.objectNumber):i.ref.objectNumber-a.ref.objectNumber>1&&(t.push(e),t.push(i.ref.objectNumber),e=0),e+=1}return t.push(e),t},o.computeEntryTuples=function(){for(var t=Array(o.entries.length),e=0,r=o.entries.length;e<r;e++){var n=o.entries[e];if(n.type===U.Deleted){var i=n.type,a=n.nextFreeObjectNumber,s=n.ref;t[e]=[i,a,s.generationNumber]}if(n.type===U.Uncompressed){var i=n.type,l=n.offset,s=n.ref;t[e]=[i,l,s.generationNumber]}if(n.type===U.Compressed){var i=n.type,c=n.objectStreamRef,u=n.index;t[e]=[i,c.objectNumber,u]}}return t},o.computeMaxEntryByteWidths=function(){for(var t=o.entryTuplesCache.access(),e=[0,0,0],r=0,n=t.length;r<n;r++){var i=t[r],a=i[0],s=i[1],l=i[2],c=er(a),u=er(s),d=er(l);c>e[0]&&(e[0]=c),u>e[1]&&(e[1]=u),d>e[2]&&(e[2]=d)}return e},o.entries=r||[],o.entryTuplesCache=eq.populatedBy(o.computeEntryTuples),o.maxByteWidthsCache=eq.populatedBy(o.computeMaxEntryByteWidths),o.indexCache=eq.populatedBy(o.computeIndex),e.set(rb.of("Type"),rb.of("XRef")),o}return tu(e,t),e.prototype.addDeletedEntry=function(t,e){var r=U.Deleted;this.entries.push({type:r,ref:t,nextFreeObjectNumber:e}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.addUncompressedEntry=function(t,e){var r=U.Uncompressed;this.entries.push({type:r,ref:t,offset:e}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.addCompressedEntry=function(t,e,r){var n=U.Compressed;this.entries.push({type:n,ref:t,objectStreamRef:e,index:r}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.clone=function(t){var r=this.dict,n=this.entries,o=this.encode;return e.of(r.clone(t),n.slice(),o)},e.prototype.getContentsString=function(){for(var t=this.entryTuplesCache.access(),e=this.maxByteWidthsCache.access(),r="",n=0,o=t.length;n<o;n++){for(var i=t[n],a=i[0],s=i[1],l=i[2],c=tH(en(a)),u=tH(en(s)),d=tH(en(l)),h=e[0]-1;h>=0;h--)r+=(c[h]||0).toString(2);for(var h=e[1]-1;h>=0;h--)r+=(u[h]||0).toString(2);for(var h=e[2]-1;h>=0;h--)r+=(d[h]||0).toString(2)}return r},e.prototype.getUnencodedContents=function(){for(var t=this.entryTuplesCache.access(),e=this.maxByteWidthsCache.access(),r=new Uint8Array(this.getUnencodedContentsSize()),n=0,o=0,i=t.length;o<i;o++){for(var a=t[o],s=a[0],l=a[1],c=a[2],u=tH(en(s)),d=tH(en(l)),h=tH(en(c)),f=e[0]-1;f>=0;f--)r[n++]=u[f]||0;for(var f=e[1]-1;f>=0;f--)r[n++]=d[f]||0;for(var f=e[2]-1;f>=0;f--)r[n++]=h[f]||0}return r},e.prototype.getUnencodedContentsSize=function(){return tZ(this.maxByteWidthsCache.access())*this.entries.length},e.prototype.updateDict=function(){t.prototype.updateDict.call(this);var e=this.maxByteWidthsCache.access(),r=this.indexCache.access(),n=this.dict.context;this.dict.set(rb.of("W"),n.obj(e)),this.dict.set(rb.of("Index"),n.obj(r))},e.create=function(t,r){void 0===r&&(r=!0);var n=new e(t,[],r);return n.addDeletedEntry(rT.of(0,65535),0),n},e.of=function(t,r,n){return void 0===n&&(n=!0),new e(t,r,n)},e}(rP),rG=function(t){function e(e,r,n,o){var i=t.call(this,e,r)||this;return i.encodeStreams=n,i.objectsPerStream=o,i}return tu(e,t),e.prototype.computeBufferSize=function(){return th(this,void 0,void 0,function(){var t,e,r,n,o,i,a,s,l,c,u,d,h,f,p,g,v,y,m;return tf(this,function(b){switch(b.label){case 0:t=this.context.largestObjectNumber+1,r=(e=rs.forVersion(1,7)).sizeInBytes()+2,n=rq.create(this.createTrailerDict(),this.encodeStreams),o=[],i=[],a=[],s=this.context.enumerateIndirectObjects(),l=0,c=s.length,b.label=1;case 1:if(!(l<c))return[3,6];if(d=(u=s[l])[0],h=u[1],!(d===this.context.trailerInfo.Encrypt||h instanceof rF||h instanceof rW||0!==d.generationNumber))return[3,4];if(o.push(u),n.addUncompressedEntry(d,r),r+=this.computeIndirectObjectSize(u),!this.shouldWaitForTick(1))return[3,3];return[4,t_()];case 2:b.sent(),b.label=3;case 3:return[3,5];case 4:f=tU(i),p=tU(a),f&&f.length%this.objectsPerStream!=0||(f=[],i.push(f),p=rT.of(t++),a.push(p)),n.addCompressedEntry(d,p,f.length),f.push(u),b.label=5;case 5:return l++,[3,1];case 6:l=0,c=i.length,b.label=7;case 7:if(!(l<c))return[3,10];if(f=i[l],d=a[l],g=rV.withContextAndObjects(this.context,f,this.encodeStreams),n.addUncompressedEntry(d,r),r+=this.computeIndirectObjectSize([d,g]),o.push([d,g]),!this.shouldWaitForTick(f.length))return[3,9];return[4,t_()];case 8:b.sent(),b.label=9;case 9:return l++,[3,7];case 10:return v=rT.of(t++),n.dict.set(rb.of("Size"),rc.of(t)),n.addUncompressedEntry(v,r),y=r,r+=this.computeIndirectObjectSize([v,n]),o.push([v,n]),m=rE.forLastCrossRefSectionOffset(y),[2,{size:r+=m.sizeInBytes(),header:e,indirectObjects:o,trailer:m}]}})})},e.forContext=function(t,r,n,o){return void 0===n&&(n=!0),void 0===o&&(o=50),new e(t,r,n,o)},e}(rU),rK=function(t){function e(e){var r=t.call(this)||this;return r.value=e,r}return tu(e,t),e.prototype.asBytes=function(){for(var t=this.value+(this.value.length%2==1?"0":""),e=t.length,r=new Uint8Array(t.length/2),n=0,o=0;n<e;){var i=parseInt(t.substring(n,n+2),16);r[o]=i,n+=2,o+=1}return r},e.prototype.decodeText=function(){var t=this.asBytes();return et(t)?t5(t):eW(t)},e.prototype.decodeDate=function(){var t=this.decodeText(),e=tI(t);if(!e)throw new e_(t);return e},e.prototype.asString=function(){return this.value},e.prototype.clone=function(){return e.of(this.value)},e.prototype.toString=function(){return"<"+this.value+">"},e.prototype.sizeInBytes=function(){return this.value.length+2},e.prototype.copyBytesInto=function(t,e){return t[e++]=ra.LessThan,e+=tO(this.value,t,e),t[e++]=ra.GreaterThan,this.value.length+2},e.of=function(t){return new e(t)},e.fromText=function(t){for(var r=t$(t),n="",o=0,i=r.length;o<i;o++)n+=tk(r[o],4);return new e(n)},e}(rl),rL=function(){function t(t,e){this.encoding=t===E.ZapfDingbats?eb.ZapfDingbats:t===E.Symbol?eb.Symbol:eb.WinAnsi,this.font=ev.load(t),this.fontName=this.font.FontName,this.customName=e}return t.prototype.encodeText=function(t){for(var e=this.encodeTextAsGlyphs(t),r=Array(e.length),n=0,o=e.length;n<o;n++)r[n]=tS(e[n].code);return rK.of(r.join(""))},t.prototype.widthOfTextAtSize=function(t,e){for(var r=this.encodeTextAsGlyphs(t),n=0,o=0,i=r.length;o<i;o++){var a=r[o].name,s=(r[o+1]||{}).name,l=this.font.getXAxisKerningForPair(a,s)||0;n+=this.widthOfGlyph(a)+l}return n*(e/1e3)},t.prototype.heightOfFontAtSize=function(t,e){void 0===e&&(e={});var r=e.descender,n=this.font,o=n.Ascender,i=n.Descender,a=n.FontBBox,s=(o||a[3])-(i||a[1]);return void 0===r||r||(s+=i||0),s/1e3*t},t.prototype.sizeOfFontAtHeight=function(t){var e=this.font,r=e.Ascender,n=e.Descender,o=e.FontBBox;return 1e3*t/((r||o[3])-(n||o[1]))},t.prototype.embedIntoContext=function(t,e){var r=t.obj({Type:"Font",Subtype:"Type1",BaseFont:this.customName||this.fontName,Encoding:this.encoding===eb.WinAnsi?"WinAnsiEncoding":void 0});return e?(t.assign(e,r),e):t.register(r)},t.prototype.widthOfGlyph=function(t){return this.font.getWidthOfGlyph(t)||250},t.prototype.encodeTextAsGlyphs=function(t){for(var e=Array.from(t),r=Array(e.length),n=0,o=e.length;n<o;n++){var i=e[n].codePointAt(0);r[n]=this.encoding.encodeUnicodeCodePoint(i)}return r},t.for=function(e,r){return new t(e,r)},t}(),rX=function(t,e){for(var r=Array(t.length),n=0,o=t.length;n<o;n++){var i=t[n],a=rZ(rY(e(i))),s=rZ.apply(void 0,i.codePoints.map(rJ));r[n]=[a,s]}return rH(r)},rH=function(t){return"/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange\n"+t.length+" beginbfchar\n"+t.map(function(t){return t[0]+" "+t[1]}).join("\n")+"\nendbfchar\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"},rZ=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"<"+t.join("")+">"},rY=function(t){return tk(t,4)},rJ=function(t){if(t>=0&&t<=65535)return rY(t);if(t>=65536&&t<=1114111){var e=t0(t),r=t1(t);return""+rY(e)+rY(r)}throw Error("0x"+tS(t)+" is not a valid UTF-8 or UTF-16 codepoint.")},rQ=function(t){var e=0,r=function(t){e|=1<<t-1};return t.fixedPitch&&r(1),t.serif&&r(2),t.symbolic&&r(3),t.script&&r(4),t.nonsymbolic&&r(6),t.italic&&r(7),t.allCap&&r(17),t.smallCap&&r(18),t.forceBold&&r(19),e},r_=function(t){var e=t["OS/2"]?t["OS/2"].sFamilyClass:0;return rQ({fixedPitch:t.post.isFixedPitch,serif:1<=e&&e<=7,symbolic:!0,script:10===e,italic:t.head.macStyle.italic})},r$=function(t){function e(e){var r=t.call(this)||this;return r.value=e,r}return tu(e,t),e.prototype.asBytes=function(){for(var t=[],e="",r=!1,n=function(e){void 0!==e&&t.push(e),r=!1},o=0,i=this.value.length;o<i;o++){var a=this.value[o],s=tF(a),l=this.value[o+1];r?s===ra.Newline?n():s===ra.CarriageReturn?n():s===ra.n?n(ra.Newline):s===ra.r?n(ra.CarriageReturn):s===ra.t?n(ra.Tab):s===ra.b?n(ra.Backspace):s===ra.f?n(ra.FormFeed):s===ra.LeftParen?n(ra.LeftParen):s===ra.RightParen?n(ra.RightParen):s===ra.Backspace?n(ra.BackSlash):s>=ra.Zero&&s<=ra.Seven?3!==(e+=a).length&&l>="0"&&l<="7"||(n(parseInt(e,8)),e=""):n(s):s===ra.BackSlash?r=!0:n(s)}return new Uint8Array(t)},e.prototype.decodeText=function(){var t=this.asBytes();return et(t)?t5(t):eW(t)},e.prototype.decodeDate=function(){var t=this.decodeText(),e=tI(t);if(!e)throw new e_(t);return e},e.prototype.asString=function(){return this.value},e.prototype.clone=function(){return e.of(this.value)},e.prototype.toString=function(){return"("+this.value+")"},e.prototype.sizeInBytes=function(){return this.value.length+2},e.prototype.copyBytesInto=function(t,e){return t[e++]=ra.LeftParen,e+=tO(this.value,t,e),t[e++]=ra.RightParen,this.value.length+2},e.of=function(t){return new e(t)},e.fromDate=function(t){var r=tT(String(t.getUTCFullYear()),4,"0"),n=tT(String(t.getUTCMonth()+1),2,"0"),o=tT(String(t.getUTCDate()),2,"0"),i=tT(String(t.getUTCHours()),2,"0"),a=tT(String(t.getUTCMinutes()),2,"0"),s=tT(String(t.getUTCSeconds()),2,"0");return new e("D:"+r+n+o+i+a+s+"Z")},e}(rl),r0=function(){function t(t,e,r,n){var o=this;this.allGlyphsInFontSortedById=function(){for(var t=Array(o.font.characterSet.length),e=0,r=t.length;e<r;e++){var n=o.font.characterSet[e];t[e]=o.font.glyphForCodePoint(n)}return tX(t.sort(tL),function(t){return t.id})},this.font=t,this.scale=1e3/this.font.unitsPerEm,this.fontData=e,this.fontName=this.font.postscriptName||"Font",this.customName=r,this.fontFeatures=n,this.baseFontName="",this.glyphCache=eq.populatedBy(this.allGlyphsInFontSortedById)}return t.for=function(e,r,n,o){return th(this,void 0,void 0,function(){var i;return tf(this,function(a){switch(a.label){case 0:return[4,e.create(r)];case 1:return i=a.sent(),[2,new t(i,r,n,o)]}})})},t.prototype.encodeText=function(t){for(var e=this.font.layout(t,this.fontFeatures).glyphs,r=Array(e.length),n=0,o=e.length;n<o;n++)r[n]=tk(e[n].id,4);return rK.of(r.join(""))},t.prototype.widthOfTextAtSize=function(t,e){for(var r=this.font.layout(t,this.fontFeatures).glyphs,n=0,o=0,i=r.length;o<i;o++)n+=r[o].advanceWidth*this.scale;return n*(e/1e3)},t.prototype.heightOfFontAtSize=function(t,e){void 0===e&&(e={});var r=e.descender,n=this.font,o=n.ascent,i=n.descent,a=n.bbox,s=(o||a.maxY)*this.scale-(i||a.minY)*this.scale;return void 0===r||r||(s-=Math.abs(i)||0),s/1e3*t},t.prototype.sizeOfFontAtHeight=function(t){var e=this.font,r=e.ascent,n=e.descent,o=e.bbox;return 1e3*t/((r||o.maxY)*this.scale-(n||o.minY)*this.scale)},t.prototype.embedIntoContext=function(t,e){return this.baseFontName=this.customName||t.addRandomSuffix(this.fontName),this.embedFontDict(t,e)},t.prototype.embedFontDict=function(t,e){return th(this,void 0,void 0,function(){var r,n,o;return tf(this,function(i){switch(i.label){case 0:return[4,this.embedCIDFontDict(t)];case 1:if(r=i.sent(),n=this.embedUnicodeCmap(t),o=t.obj({Type:"Font",Subtype:"Type0",BaseFont:this.baseFontName,Encoding:"Identity-H",DescendantFonts:[r],ToUnicode:n}),e)return t.assign(e,o),[2,e];return[2,t.register(o)]}})})},t.prototype.isCFF=function(){return this.font.cff},t.prototype.embedCIDFontDict=function(t){return th(this,void 0,void 0,function(){var e,r;return tf(this,function(n){switch(n.label){case 0:return[4,this.embedFontDescriptor(t)];case 1:return e=n.sent(),r=t.obj({Type:"Font",Subtype:this.isCFF()?"CIDFontType0":"CIDFontType2",CIDToGIDMap:"Identity",BaseFont:this.baseFontName,CIDSystemInfo:{Registry:r$.of("Adobe"),Ordering:r$.of("Identity"),Supplement:0},FontDescriptor:e,W:this.computeWidths()}),[2,t.register(r)]}})})},t.prototype.embedFontDescriptor=function(t){return th(this,void 0,void 0,function(){var e,r,n,o,i,a,s,l,c,u,d,h,f,p,g;return tf(this,function(v){switch(v.label){case 0:return[4,this.embedFontStream(t)];case 1:return e=v.sent(),r=this.scale,o=(n=this.font).italicAngle,i=n.ascent,a=n.descent,s=n.capHeight,l=n.xHeight,u=(c=this.font.bbox).minX,d=c.minY,h=c.maxX,f=c.maxY,p=t.obj(((g={Type:"FontDescriptor",FontName:this.baseFontName,Flags:r_(this.font),FontBBox:[u*r,d*r,h*r,f*r],ItalicAngle:o,Ascent:i*r,Descent:a*r,CapHeight:(s||i)*r,XHeight:(l||0)*r,StemV:0})[this.isCFF()?"FontFile3":"FontFile2"]=e,g)),[2,t.register(p)]}})})},t.prototype.serializeFont=function(){return th(this,void 0,void 0,function(){return tf(this,function(t){return[2,this.fontData]})})},t.prototype.embedFontStream=function(t){return th(this,void 0,void 0,function(){var e,r,n;return tf(this,function(o){switch(o.label){case 0:return n=(r=t).flateStream,[4,this.serializeFont()];case 1:return e=n.apply(r,[o.sent(),{Subtype:this.isCFF()?"CIDFontType0C":void 0}]),[2,t.register(e)]}})})},t.prototype.embedUnicodeCmap=function(t){var e=rX(this.glyphCache.access(),this.glyphId.bind(this)),r=t.flateStream(e);return t.register(r)},t.prototype.glyphId=function(t){return t?t.id:-1},t.prototype.computeWidths=function(){for(var t=this.glyphCache.access(),e=[],r=[],n=0,o=t.length;n<o;n++){var i=t[n],a=t[n-1],s=this.glyphId(i),l=this.glyphId(a);0===n?e.push(s):s-l!=1&&(e.push(r),e.push(s),r=[]),r.push(i.advanceWidth*this.scale)}return e.push(r),e},t}(),r1=function(t){function e(e,r,n,o){var i=t.call(this,e,r,n,o)||this;return i.subset=i.font.createSubset(),i.glyphs=[],i.glyphCache=eq.populatedBy(function(){return i.glyphs}),i.glyphIdMap=new Map,i}return tu(e,t),e.for=function(t,r,n,o){return th(this,void 0,void 0,function(){var i;return tf(this,function(a){switch(a.label){case 0:return[4,t.create(r)];case 1:return i=a.sent(),[2,new e(i,r,n,o)]}})})},e.prototype.encodeText=function(t){for(var e=this.font.layout(t,this.fontFeatures).glyphs,r=Array(e.length),n=0,o=e.length;n<o;n++){var i=e[n],a=this.subset.includeGlyph(i);this.glyphs[a-1]=i,this.glyphIdMap.set(i.id,a),r[n]=tk(a,4)}return this.glyphCache.invalidate(),rK.of(r.join(""))},e.prototype.isCFF=function(){return this.subset.cff},e.prototype.glyphId=function(t){return t?this.glyphIdMap.get(t.id):-1},e.prototype.serializeFont=function(){var t=this;return new Promise(function(e,r){var n=[];t.subset.encodeStream().on("data",function(t){return n.push(t)}).on("end",function(){return e(tG(n))}).on("error",function(t){return r(t)})})},e}(r0);(c=W||(W={})).Source="Source",c.Data="Data",c.Alternative="Alternative",c.Supplement="Supplement",c.EncryptedPayload="EncryptedPayload",c.FormData="EncryptedPayload",c.Schema="Schema",c.Unspecified="Unspecified";var r2=function(){function t(t,e,r){void 0===r&&(r={}),this.fileData=t,this.fileName=e,this.options=r}return t.for=function(e,r,n){return void 0===n&&(n={}),new t(e,r,n)},t.prototype.embedIntoContext=function(t,e){return th(this,void 0,void 0,function(){var r,n,o,i,a,s,l,c,u;return tf(this,function(d){return(n=(r=this.options).mimeType,o=r.description,i=r.creationDate,a=r.modificationDate,s=r.afRelationship,l=t.flateStream(this.fileData,{Type:"EmbeddedFile",Subtype:null!=n?n:void 0,Params:{Size:this.fileData.length,CreationDate:i?r$.fromDate(i):void 0,ModDate:a?r$.fromDate(a):void 0}}),c=t.register(l),u=t.obj({Type:"Filespec",F:r$.of(this.fileName),UF:rK.fromText(this.fileName),EF:{F:c},Desc:o?rK.fromText(o):void 0,AFRelationship:null!=s?s:void 0}),e)?(t.assign(e,u),[2,e]):[2,t.register(u)]})})},t}(),r5=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487];(u=q||(q={})).DeviceGray="DeviceGray",u.DeviceRGB="DeviceRGB",u.DeviceCMYK="DeviceCMYK";var r3={1:q.DeviceGray,3:q.DeviceRGB,4:q.DeviceCMYK},r4=function(){function t(t,e,r,n,o){this.imageData=t,this.bitsPerComponent=e,this.width=r,this.height=n,this.colorSpace=o}return t.for=function(e){return th(this,void 0,void 0,function(){var r,n,o,i,a,s,l,c;return tf(this,function(u){if(65496!==(r=new DataView(e.buffer)).getUint16(0))throw Error("SOI not found in JPEG");for(n=2;n<r.byteLength&&(o=r.getUint16(n),n+=2,!r5.includes(o));)n+=r.getUint16(n);if(!r5.includes(o))throw Error("Invalid JPEG");if(n+=2,i=r.getUint8(n++),a=r.getUint16(n),n+=2,s=r.getUint16(n),n+=2,!(l=r3[r.getUint8(n++)]))throw Error("Unknown JPEG channel.");return c=l,[2,new t(e,i,s,a,c)]})})},t.prototype.embedIntoContext=function(t,e){return th(this,void 0,void 0,function(){var r;return tf(this,function(n){return(r=t.stream(this.imageData,{Type:"XObject",Subtype:"Image",BitsPerComponent:this.bitsPerComponent,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:"DCTDecode",Decode:this.colorSpace===q.DeviceCMYK?[1,0,1,0,1,0,1,0]:void 0}),e)?(t.assign(e,r),[2,e]):[2,t.register(r)]})})},t}(),r6={};r6.toRGBA8=function(t){var e=t.width,r=t.height;if(null==t.tabs.acTL)return[r6.toRGBA8.decodeImage(t.data,e,r,t).buffer];var n=[];null==t.frames[0].data&&(t.frames[0].data=t.data);for(var o=e*r*4,i=new Uint8Array(o),a=new Uint8Array(o),s=new Uint8Array(o),l=0;l<t.frames.length;l++){var c=t.frames[l],u=c.rect.x,d=c.rect.y,h=c.rect.width,f=c.rect.height,p=r6.toRGBA8.decodeImage(c.data,h,f,t);if(0!=l)for(var g=0;g<o;g++)s[g]=i[g];if(0==c.blend?r6._copyTile(p,h,f,i,e,r,u,d,0):1==c.blend&&r6._copyTile(p,h,f,i,e,r,u,d,1),n.push(i.buffer.slice(0)),0==c.dispose);else if(1==c.dispose)r6._copyTile(a,h,f,i,e,r,u,d,0);else if(2==c.dispose)for(var g=0;g<o;g++)i[g]=s[g]}return n},r6.toRGBA8.decodeImage=function(t,e,r,n){var o=e*r,i=Math.ceil(e*r6.decode._getBPP(n)/8),a=new Uint8Array(4*o),s=new Uint32Array(a.buffer),l=n.ctype,c=n.depth,u=r6._bin.readUshort;if(Date.now(),6==l){var d=o<<2;if(8==c)for(var h=0;h<d;h+=4)a[h]=t[h],a[h+1]=t[h+1],a[h+2]=t[h+2],a[h+3]=t[h+3];if(16==c)for(var h=0;h<d;h++)a[h]=t[h<<1]}else if(2==l){var f=n.tabs.tRNS;if(null==f){if(8==c)for(var h=0;h<o;h++){var p=3*h;s[h]=-16777216|t[p+2]<<16|t[p+1]<<8|t[p]}if(16==c)for(var h=0;h<o;h++){var p=6*h;s[h]=-16777216|t[p+4]<<16|t[p+2]<<8|t[p]}}else{var g=f[0],v=f[1],y=f[2];if(8==c)for(var h=0;h<o;h++){var m=h<<2,p=3*h;s[h]=-16777216|t[p+2]<<16|t[p+1]<<8|t[p],t[p]==g&&t[p+1]==v&&t[p+2]==y&&(a[m+3]=0)}if(16==c)for(var h=0;h<o;h++){var m=h<<2,p=6*h;s[h]=-16777216|t[p+4]<<16|t[p+2]<<8|t[p],u(t,p)==g&&u(t,p+2)==v&&u(t,p+4)==y&&(a[m+3]=0)}}}else if(3==l){var b=n.tabs.PLTE,w=n.tabs.tRNS,x=w?w.length:0;if(1==c)for(var F=0;F<r;F++)for(var k=F*i,S=F*e,h=0;h<e;h++){var m=S+h<<2,C=t[k+(h>>3)]>>7-((7&h)<<0)&1,T=3*C;a[m]=b[T],a[m+1]=b[T+1],a[m+2]=b[T+2],a[m+3]=C<x?w[C]:255}if(2==c)for(var F=0;F<r;F++)for(var k=F*i,S=F*e,h=0;h<e;h++){var m=S+h<<2,C=t[k+(h>>2)]>>6-((3&h)<<1)&3,T=3*C;a[m]=b[T],a[m+1]=b[T+1],a[m+2]=b[T+2],a[m+3]=C<x?w[C]:255}if(4==c)for(var F=0;F<r;F++)for(var k=F*i,S=F*e,h=0;h<e;h++){var m=S+h<<2,C=t[k+(h>>1)]>>4-((1&h)<<2)&15,T=3*C;a[m]=b[T],a[m+1]=b[T+1],a[m+2]=b[T+2],a[m+3]=C<x?w[C]:255}if(8==c)for(var h=0;h<o;h++){var m=h<<2,C=t[h],T=3*C;a[m]=b[T],a[m+1]=b[T+1],a[m+2]=b[T+2],a[m+3]=C<x?w[C]:255}}else if(4==l){if(8==c)for(var h=0;h<o;h++){var m=h<<2,O=h<<1,A=t[O];a[m]=A,a[m+1]=A,a[m+2]=A,a[m+3]=t[O+1]}if(16==c)for(var h=0;h<o;h++){var m=h<<2,O=h<<2,A=t[O];a[m]=A,a[m+1]=A,a[m+2]=A,a[m+3]=t[O+2]}}else if(0==l)for(var g=n.tabs.tRNS?n.tabs.tRNS:-1,F=0;F<r;F++){var P=F*i,N=F*e;if(1==c)for(var R=0;R<e;R++){var A=255*(t[P+(R>>>3)]>>>7-(7&R)&1),j=A==255*g?0:255;s[N+R]=j<<24|A<<16|A<<8|A}else if(2==c)for(var R=0;R<e;R++){var A=85*(t[P+(R>>>2)]>>>6-((3&R)<<1)&3),j=A==85*g?0:255;s[N+R]=j<<24|A<<16|A<<8|A}else if(4==c)for(var R=0;R<e;R++){var A=17*(t[P+(R>>>1)]>>>4-((1&R)<<2)&15),j=A==17*g?0:255;s[N+R]=j<<24|A<<16|A<<8|A}else if(8==c)for(var R=0;R<e;R++){var A=t[P+R],j=A==g?0:255;s[N+R]=j<<24|A<<16|A<<8|A}else if(16==c)for(var R=0;R<e;R++){var A=t[P+(R<<1)],j=u(t,P+(R<<h))==g?0:255;s[N+R]=j<<24|A<<16|A<<8|A}}return a},r6.decode=function(t){for(var e,r=new Uint8Array(t),n=8,o=r6._bin,i=o.readUshort,a=o.readUint,s={tabs:{},frames:[]},l=new Uint8Array(r.length),c=0,u=0,d=[137,80,78,71,13,10,26,10],h=0;h<8;h++)if(r[h]!=d[h])throw"The input is not a PNG file!";for(;n<r.length;){var f=o.readUint(r,n);n+=4;var p=o.readASCII(r,n,4);if(n+=4,"IHDR"==p)r6.decode._IHDR(r,n,s);else if("IDAT"==p){for(var h=0;h<f;h++)l[c+h]=r[n+h];c+=f}else if("acTL"==p)s.tabs[p]={num_frames:a(r,n),num_plays:a(r,n+4)},e=new Uint8Array(r.length);else if("fcTL"==p){if(0!=u){var g=s.frames[s.frames.length-1];g.data=r6.decode._decompress(s,e.slice(0,u),g.rect.width,g.rect.height),u=0}var v={x:a(r,n+12),y:a(r,n+16),width:a(r,n+4),height:a(r,n+8)},y=i(r,n+22),m={rect:v,delay:Math.round(1e3*(y=i(r,n+20)/(0==y?100:y))),dispose:r[n+24],blend:r[n+25]};s.frames.push(m)}else if("fdAT"==p){for(var h=0;h<f-4;h++)e[u+h]=r[n+h+4];u+=f-4}else if("pHYs"==p)s.tabs[p]=[o.readUint(r,n),o.readUint(r,n+4),r[n+8]];else if("cHRM"==p){s.tabs[p]=[];for(var h=0;h<8;h++)s.tabs[p].push(o.readUint(r,n+4*h))}else if("tEXt"==p){null==s.tabs[p]&&(s.tabs[p]={});var b=o.nextZero(r,n),w=o.readASCII(r,n,b-n),x=o.readASCII(r,b+1,n+f-b-1);s.tabs[p][w]=x}else if("iTXt"==p){null==s.tabs[p]&&(s.tabs[p]={});var b=0,F=n;b=o.nextZero(r,F);var w=o.readASCII(r,F,b-F);r[F=b+1],r[F+1],F+=2,b=o.nextZero(r,F),o.readASCII(r,F,b-F),F=b+1,b=o.nextZero(r,F),o.readUTF8(r,F,b-F),F=b+1;var x=o.readUTF8(r,F,f-(F-n));s.tabs[p][w]=x}else if("PLTE"==p)s.tabs[p]=o.readBytes(r,n,f);else if("hIST"==p){var k=s.tabs.PLTE.length/3;s.tabs[p]=[];for(var h=0;h<k;h++)s.tabs[p].push(i(r,n+2*h))}else if("tRNS"==p)3==s.ctype?s.tabs[p]=o.readBytes(r,n,f):0==s.ctype?s.tabs[p]=i(r,n):2==s.ctype&&(s.tabs[p]=[i(r,n),i(r,n+2),i(r,n+4)]);else if("gAMA"==p)s.tabs[p]=o.readUint(r,n)/1e5;else if("sRGB"==p)s.tabs[p]=r[n];else if("bKGD"==p)0==s.ctype||4==s.ctype?s.tabs[p]=[i(r,n)]:2==s.ctype||6==s.ctype?s.tabs[p]=[i(r,n),i(r,n+2),i(r,n+4)]:3==s.ctype&&(s.tabs[p]=r[n]);else if("IEND"==p)break;n+=f,o.readUint(r,n),n+=4}if(0!=u){var g=s.frames[s.frames.length-1];g.data=r6.decode._decompress(s,e.slice(0,u),g.rect.width,g.rect.height),u=0}return s.data=r6.decode._decompress(s,l,s.width,s.height),delete s.compress,delete s.interlace,delete s.filter,s},r6.decode._decompress=function(t,e,r,n){Date.now();var o=Math.ceil(r*r6.decode._getBPP(t)/8),i=new Uint8Array((o+1+t.interlace)*n);return e=r6.decode._inflate(e,i),Date.now(),0==t.interlace?e=r6.decode._filterZero(e,t,0,r,n):1==t.interlace&&(e=r6.decode._readInterlace(e,t)),e},r6.decode._inflate=function(t,e){return r6.inflateRaw(new Uint8Array(t.buffer,2,t.length-6),e)},r6.inflateRaw=((d={}).H={},d.H.N=function(t,e){var r,n,o=Uint8Array,i=0,a=0,s=0,l=0,c=0,u=0,h=0,f=0,p=0;if(3==t[0]&&0==t[1])return e||new o(0);var g=d.H,v=g.b,y=g.e,m=g.R,b=g.n,w=g.A,x=g.Z,F=g.m,k=null==e;for(k&&(e=new o(t.length>>>2<<3));0==i;){if(i=v(t,p,1),a=v(t,p+1,2),p+=3,0==a){(7&p)!=0&&(p+=8-(7&p));var S=(p>>>3)+4,C=t[S-4]|t[S-3]<<8;k&&(e=d.H.W(e,f+C)),e.set(new o(t.buffer,t.byteOffset+S,C),f),p=S+C<<3,f+=C;continue}if(k&&(e=d.H.W(e,f+131072)),1==a&&(r=F.J,n=F.h,u=511,h=31),2==a){s=y(t,p,5)+257,l=y(t,p+5,5)+1,c=y(t,p+10,4)+4,p+=14;for(var T=1,O=0;O<38;O+=2)F.Q[O]=0,F.Q[O+1]=0;for(var O=0;O<c;O++){var A=y(t,p+3*O,3);F.Q[(F.X[O]<<1)+1]=A,A>T&&(T=A)}p+=3*c,b(F.Q,T),w(F.Q,T,F.u),r=F.w,n=F.d,p=m(F.u,(1<<T)-1,s+l,t,p,F.v);var P=g.V(F.v,0,s,F.C);u=(1<<P)-1;var N=g.V(F.v,s,l,F.D);h=(1<<N)-1,b(F.C,P),w(F.C,P,r),b(F.D,N),w(F.D,N,n)}for(;;){var R=r[x(t,p)&u];p+=15&R;var j=R>>>4;if(j>>>8==0)e[f++]=j;else if(256==j)break;else{var D=f+j-254;if(j>264){var z=F.q[j-257];D=f+(z>>>3)+y(t,p,7&z),p+=7&z}var B=n[x(t,p)&h];p+=15&B;var M=B>>>4,E=F.c[M],I=(E>>>4)+v(t,p,15&E);for(p+=15&E;f<D;)e[f]=e[f++-I],e[f]=e[f++-I],e[f]=e[f++-I],e[f]=e[f++-I];f=D}}}return e.length==f?e:e.slice(0,f)},d.H.W=function(t,e){var r=t.length;if(e<=r)return t;var n=new Uint8Array(r<<1);return n.set(t,0),n},d.H.R=function(t,e,r,n,o,i){for(var a=d.H.e,s=d.H.Z,l=0;l<r;){var c=t[s(n,o)&e];o+=15&c;var u=c>>>4;if(u<=15)i[l]=u,l++;else{var h=0,f=0;16==u?(f=3+a(n,o,2),o+=2,h=i[l-1]):17==u?(f=3+a(n,o,3),o+=3):18==u&&(f=11+a(n,o,7),o+=7);for(var p=l+f;l<p;)i[l]=h,l++}}return o},d.H.V=function(t,e,r,n){for(var o=0,i=0,a=n.length>>>1;i<r;){var s=t[i+e];n[i<<1]=0,n[(i<<1)+1]=s,s>o&&(o=s),i++}for(;i<a;)n[i<<1]=0,n[(i<<1)+1]=0,i++;return o},d.H.n=function(t,e){for(var r,n,o,i,a,s=d.H.m,l=t.length,c=s.j,i=0;i<=e;i++)c[i]=0;for(i=1;i<l;i+=2)c[t[i]]++;var u=s.K;for(n=1,r=0,c[0]=0;n<=e;n++)r=r+c[n-1]<<1,u[n]=r;for(o=0;o<l;o+=2)0!=(a=t[o+1])&&(t[o]=u[a],u[a]++)},d.H.A=function(t,e,r){for(var n=t.length,o=d.H.m.r,i=0;i<n;i+=2)if(0!=t[i+1])for(var a=i>>1,s=t[i+1],l=a<<4|s,c=e-s,u=t[i]<<c,h=u+(1<<c);u!=h;)r[o[u]>>>15-e]=l,u++},d.H.l=function(t,e){for(var r=d.H.m.r,n=15-e,o=0;o<t.length;o+=2){var i=t[o]<<e-t[o+1];t[o]=r[i]>>>n}},d.H.M=function(t,e,r){r<<=7&e;var n=e>>>3;t[n]|=r,t[n+1]|=r>>>8},d.H.I=function(t,e,r){r<<=7&e;var n=e>>>3;t[n]|=r,t[n+1]|=r>>>8,t[n+2]|=r>>>16},d.H.e=function(t,e,r){return(t[e>>>3]|t[(e>>>3)+1]<<8)>>>(7&e)&(1<<r)-1},d.H.b=function(t,e,r){return(t[e>>>3]|t[(e>>>3)+1]<<8|t[(e>>>3)+2]<<16)>>>(7&e)&(1<<r)-1},d.H.Z=function(t,e){return(t[e>>>3]|t[(e>>>3)+1]<<8|t[(e>>>3)+2]<<16)>>>(7&e)},d.H.i=function(t,e){return(t[e>>>3]|t[(e>>>3)+1]<<8|t[(e>>>3)+2]<<16|t[(e>>>3)+3]<<24)>>>(7&e)},d.H.m=(h=Uint16Array,f=Uint32Array,{K:new h(16),j:new h(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new h(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new f(32),J:new h(512),_:[],h:new h(32),$:[],w:new h(32768),C:[],v:[],d:new h(32768),D:[],u:new h(512),Q:[],r:new h(32768),s:new f(286),Y:new f(30),a:new f(19),t:new f(15e3),k:new h(65536),g:new h(32768)}),function(){for(var t=d.H.m,e=0;e<32768;e++){var r=e;r=(4278255360&(r=(4042322160&(r=(3435973836&(r=(2863311530&r)>>>1|(1431655765&r)<<1))>>>2|(858993459&r)<<2))>>>4|(252645135&r)<<4))>>>8|(16711935&r)<<8,t.r[e]=(r>>>16|r<<16)>>>17}function n(t,e,r){for(;0!=e--;)t.push(0,r)}for(var e=0;e<32;e++)t.q[e]=t.S[e]<<3|t.T[e],t.c[e]=t.p[e]<<4|t.z[e];n(t._,144,8),n(t._,112,9),n(t._,24,7),n(t._,8,8),d.H.n(t._,9),d.H.A(t._,9,t.J),d.H.l(t._,9),n(t.$,32,5),d.H.n(t.$,5),d.H.A(t.$,5,t.h),d.H.l(t.$,5),n(t.Q,19,0),n(t.C,286,0),n(t.D,30,0),n(t.v,320,0)}(),d.H.N),r6.decode._readInterlace=function(t,e){for(var r=e.width,n=e.height,o=r6.decode._getBPP(e),i=o>>3,a=Math.ceil(r*o/8),s=new Uint8Array(n*a),l=0,c=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],d=[8,8,8,4,4,2,2],h=[8,8,4,4,2,2,1],f=0;f<7;){for(var p=d[f],g=h[f],v=0,y=0,m=c[f];m<n;)m+=p,y++;for(var b=u[f];b<r;)b+=g,v++;var w=Math.ceil(v*o/8);r6.decode._filterZero(t,e,l,v,y);for(var x=0,F=c[f];F<n;){for(var k=u[f],S=l+x*w<<3;k<r;){if(1==o){var C=t[S>>3];C=C>>7-(7&S)&1,s[F*a+(k>>3)]|=C<<7-((7&k)<<0)}if(2==o){var C=t[S>>3];C=C>>6-(7&S)&3,s[F*a+(k>>2)]|=C<<6-((3&k)<<1)}if(4==o){var C=t[S>>3];C=C>>4-(7&S)&15,s[F*a+(k>>1)]|=C<<4-((1&k)<<2)}if(o>=8)for(var T=F*a+k*i,O=0;O<i;O++)s[T+O]=t[(S>>3)+O];S+=o,k+=g}x++,F+=p}v*y!=0&&(l+=y*(1+w)),f+=1}return s},r6.decode._getBPP=function(t){return[1,null,3,1,2,null,4][t.ctype]*t.depth},r6.decode._filterZero=function(t,e,r,n,o){var i=r6.decode._getBPP(e),a=Math.ceil(n*i/8),s=r6.decode._paeth;i=Math.ceil(i/8);var l=0,c=1,u=t[r],d=0;if(u>1&&(t[r]=[0,0,1][u-2]),3==u)for(d=i;d<a;d++)t[d+1]=t[d+1]+(t[d+1-i]>>>1)&255;for(var h=0;h<o;h++)if(u=t[(c=(l=r+h*a)+h+1)-1],d=0,0==u)for(;d<a;d++)t[l+d]=t[c+d];else if(1==u){for(;d<i;d++)t[l+d]=t[c+d];for(;d<a;d++)t[l+d]=t[c+d]+t[l+d-i]}else if(2==u)for(;d<a;d++)t[l+d]=t[c+d]+t[l+d-a];else if(3==u){for(;d<i;d++)t[l+d]=t[c+d]+(t[l+d-a]>>>1);for(;d<a;d++)t[l+d]=t[c+d]+(t[l+d-a]+t[l+d-i]>>>1)}else{for(;d<i;d++)t[l+d]=t[c+d]+s(0,t[l+d-a],0);for(;d<a;d++)t[l+d]=t[c+d]+s(t[l+d-i],t[l+d-a],t[l+d-i-a])}return t},r6.decode._paeth=function(t,e,r){var n=t+e-r,o=n-t,i=n-e,a=n-r;return o*o<=i*i&&o*o<=a*a?t:i*i<=a*a?e:r},r6.decode._IHDR=function(t,e,r){var n=r6._bin;r.width=n.readUint(t,e),e+=4,r.height=n.readUint(t,e),e+=4,r.depth=t[e],e++,r.ctype=t[e],e++,r.compress=t[e],e++,r.filter=t[e],e++,r.interlace=t[e],e++},r6._bin={nextZero:function(t,e){for(;0!=t[e];)e++;return e},readUshort:function(t,e){return t[e]<<8|t[e+1]},writeUshort:function(t,e,r){t[e]=r>>8&255,t[e+1]=255&r},readUint:function(t,e){return 16777216*t[e]+(t[e+1]<<16|t[e+2]<<8|t[e+3])},writeUint:function(t,e,r){t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r},readASCII:function(t,e,r){for(var n="",o=0;o<r;o++)n+=String.fromCharCode(t[e+o]);return n},writeASCII:function(t,e,r){for(var n=0;n<r.length;n++)t[e+n]=r.charCodeAt(n)},readBytes:function(t,e,r){for(var n=[],o=0;o<r;o++)n.push(t[e+o]);return n},pad:function(t){return t.length<2?"0"+t:t},readUTF8:function(t,e,r){for(var n,o="",i=0;i<r;i++)o+="%"+r6._bin.pad(t[e+i].toString(16));try{n=decodeURIComponent(o)}catch(n){return r6._bin.readASCII(t,e,r)}return n}},r6._copyTile=function(t,e,r,n,o,i,a,s,l){for(var c=Math.min(e,o),u=Math.min(r,i),d=0,h=0,f=0;f<u;f++)for(var p=0;p<c;p++)if(a>=0&&s>=0?(d=f*e+p<<2,h=(s+f)*o+a+p<<2):(d=(-s+f)*e-a+p<<2,h=f*o+p<<2),0==l)n[h]=t[d],n[h+1]=t[d+1],n[h+2]=t[d+2],n[h+3]=t[d+3];else if(1==l){var g=t[d+3]*(1/255),v=t[d]*g,y=t[d+1]*g,m=t[d+2]*g,b=n[h+3]*(1/255),w=n[h]*b,x=n[h+1]*b,F=n[h+2]*b,k=1-g,S=g+b*k,C=0==S?0:1/S;n[h+3]=255*S,n[h+0]=(v+w*k)*C,n[h+1]=(y+x*k)*C,n[h+2]=(m+F*k)*C}else if(2==l){var g=t[d+3],v=t[d],y=t[d+1],m=t[d+2],b=n[h+3],w=n[h],x=n[h+1],F=n[h+2];g==b&&v==w&&y==x&&m==F?(n[h]=0,n[h+1]=0,n[h+2]=0,n[h+3]=0):(n[h]=v,n[h+1]=y,n[h+2]=m,n[h+3]=g)}else if(3==l){var g=t[d+3],v=t[d],y=t[d+1],m=t[d+2],b=n[h+3],w=n[h],x=n[h+1],F=n[h+2];if(g==b&&v==w&&y==x&&m==F)continue;if(g<220&&b>20)return!1}return!0},r6.encode=function(t,e,r,n,o,i,a){null==n&&(n=0),null==a&&(a=!1);var s=r6.encode.compress(t,e,r,n,[!1,!1,!1,0,a]);return r6.encode.compressPNG(s,-1),r6.encode._main(s,e,r,o,i)},r6.encodeLL=function(t,e,r,n,o,i,a,s){var l={ctype:0+(1==n?0:2)+(0==o?0:4),depth:i,frames:[]};Date.now();for(var c=(n+o)*i,u=c*e,d=0;d<t.length;d++)l.frames.push({rect:{x:0,y:0,width:e,height:r},img:new Uint8Array(t[d]),blend:0,dispose:1,bpp:Math.ceil(c/8),bpl:Math.ceil(u/8)});return r6.encode.compressPNG(l,0,!0),r6.encode._main(l,e,r,a,s)},r6.encode._main=function(t,e,r,n,o){null==o&&(o={});var i=r6.crc.crc,a=r6._bin.writeUint,s=r6._bin.writeUshort,l=r6._bin.writeASCII,c=8,u=t.frames.length>1,d=!1,h=33+(u?20:0);if(null!=o.sRGB&&(h+=13),null!=o.pHYs&&(h+=21),3==t.ctype){for(var f=t.plte.length,p=0;p<f;p++)t.plte[p]>>>24!=255&&(d=!0);h+=8+3*f+4+(d?8+1*f+4:0)}for(var g=0;g<t.frames.length;g++){var v=t.frames[g];u&&(h+=38),h+=v.cimg.length+12,0!=g&&(h+=4)}h+=12;for(var y=new Uint8Array(h),m=[137,80,78,71,13,10,26,10],p=0;p<8;p++)y[p]=m[p];if(a(y,c,13),l(y,c+=4,"IHDR"),a(y,c+=4,e),a(y,c+=4,r),y[c+=4]=t.depth,y[++c]=t.ctype,y[++c]=0,y[++c]=0,y[++c]=0,a(y,++c,i(y,c-17,17)),c+=4,null!=o.sRGB&&(a(y,c,1),l(y,c+=4,"sRGB"),y[c+=4]=o.sRGB,a(y,++c,i(y,c-5,5)),c+=4),null!=o.pHYs&&(a(y,c,9),l(y,c+=4,"pHYs"),a(y,c+=4,o.pHYs[0]),a(y,c+=4,o.pHYs[1]),y[c+=4]=o.pHYs[2],a(y,++c,i(y,c-13,13)),c+=4),u&&(a(y,c,8),l(y,c+=4,"acTL"),a(y,c+=4,t.frames.length),a(y,c+=4,null!=o.loop?o.loop:0),a(y,c+=4,i(y,c-12,12)),c+=4),3==t.ctype){var f=t.plte.length;a(y,c,3*f),l(y,c+=4,"PLTE"),c+=4;for(var p=0;p<f;p++){var b=3*p,w=t.plte[p],x=255&w,F=w>>>8&255,k=w>>>16&255;y[c+b+0]=x,y[c+b+1]=F,y[c+b+2]=k}if(a(y,c+=3*f,i(y,c-3*f-4,3*f+4)),c+=4,d){a(y,c,f),l(y,c+=4,"tRNS"),c+=4;for(var p=0;p<f;p++)y[c+p]=t.plte[p]>>>24&255;a(y,c+=f,i(y,c-f-4,f+4)),c+=4}}for(var S=0,g=0;g<t.frames.length;g++){var v=t.frames[g];u&&(a(y,c,26),l(y,c+=4,"fcTL"),a(y,c+=4,S++),a(y,c+=4,v.rect.width),a(y,c+=4,v.rect.height),a(y,c+=4,v.rect.x),a(y,c+=4,v.rect.y),s(y,c+=4,n[g]),s(y,c+=2,1e3),y[c+=2]=v.dispose,y[++c]=v.blend,a(y,++c,i(y,c-30,30)),c+=4);var C=v.cimg,f=C.length;a(y,c,f+(0==g?0:4));var T=c+=4;l(y,c,0==g?"IDAT":"fdAT"),c+=4,0!=g&&(a(y,c,S++),c+=4),y.set(C,c),a(y,c+=f,i(y,T,c-T)),c+=4}return a(y,c,0),l(y,c+=4,"IEND"),a(y,c+=4,i(y,c-4,4)),c+=4,y.buffer},r6.encode.compressPNG=function(t,e,r){for(var n=0;n<t.frames.length;n++){var o=t.frames[n],i=(o.rect.width,o.rect.height),a=new Uint8Array(i*o.bpl+i);o.cimg=r6.encode._filterZero(o.img,i,o.bpp,o.bpl,a,e,r)}},r6.encode.compress=function(t,e,r,n,o){for(var i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=6,d=8,h=255,f=0;f<t.length;f++)for(var p=new Uint8Array(t[f]),g=p.length,v=0;v<g;v+=4)h&=p[v+3];var y=255!=h,m=r6.encode.framize(t,e,r,i,a,s),b={},w=[],x=[];if(0!=n){for(var F=[],v=0;v<m.length;v++)F.push(m[v].img.buffer);for(var k=r6.encode.concatRGBA(F),S=r6.quantize(k,n),C=0,T=new Uint8Array(S.abuf),v=0;v<m.length;v++){var O=m[v].img,A=O.length;x.push(new Uint8Array(S.inds.buffer,C>>2,A>>2));for(var f=0;f<A;f+=4)O[f]=T[C+f],O[f+1]=T[C+f+1],O[f+2]=T[C+f+2],O[f+3]=T[C+f+3];C+=A}for(var v=0;v<S.plte.length;v++)w.push(S.plte[v].est.rgba)}else for(var f=0;f<m.length;f++){var P=m[f],N=new Uint32Array(P.img.buffer),R=P.rect.width,g=N.length,j=new Uint8Array(g);x.push(j);for(var v=0;v<g;v++){var D=N[v];if(0!=v&&D==N[v-1])j[v]=j[v-1];else if(v>R&&D==N[v-R])j[v]=j[v-R];else{var z=b[D];if(null==z&&(b[D]=z=w.length,w.push(D),w.length>=300))break;j[v]=z}}}var B=w.length;B<=256&&!1==c&&(d=Math.max(d=B<=2?1:B<=4?2:B<=16?4:8,l));for(var f=0;f<m.length;f++){var P=m[f],R=(P.rect.x,P.rect.y,P.rect.width),M=P.rect.height,E=P.img;new Uint32Array(E.buffer);var I=4*R,V=4;if(B<=256&&!1==c){I=Math.ceil(d*R/8);for(var U=new Uint8Array(I*M),W=x[f],q=0;q<M;q++){var v=q*I,G=q*R;if(8==d)for(var K=0;K<R;K++)U[v+K]=W[G+K];else if(4==d)for(var K=0;K<R;K++)U[v+(K>>1)]|=W[G+K]<<4-(1&K)*4;else if(2==d)for(var K=0;K<R;K++)U[v+(K>>2)]|=W[G+K]<<6-(3&K)*2;else if(1==d)for(var K=0;K<R;K++)U[v+(K>>3)]|=W[G+K]<<7-(7&K)*1}E=U,u=3,V=1}else if(!1==y&&1==m.length){for(var U=new Uint8Array(R*M*3),L=R*M,v=0;v<L;v++){var O=3*v,X=4*v;U[O]=E[X],U[O+1]=E[X+1],U[O+2]=E[X+2]}E=U,u=2,V=3,I=3*R}P.img=E,P.bpl=I,P.bpp=V}return{ctype:u,depth:d,plte:w,frames:m}},r6.encode.framize=function(t,e,r,n,o,i){for(var a=[],s=0;s<t.length;s++){var l,c=new Uint8Array(t[s]),u=new Uint32Array(c.buffer),d=0,h=0,f=e,p=r,g=n?1:0;if(0!=s){for(var v=i||n||1==s||0!=a[s-2].dispose?1:2,y=0,m=1e9,b=0;b<v;b++){for(var w=new Uint8Array(t[s-1-b]),x=new Uint32Array(t[s-1-b]),F=e,k=r,S=-1,C=-1,T=0;T<r;T++)for(var O=0;O<e;O++){var A=T*e+O;u[A]!=x[A]&&(O<F&&(F=O),O>S&&(S=O),T<k&&(k=T),T>C&&(C=T))}-1==S&&(F=k=S=C=0),o&&((1&F)==1&&F--,(1&k)==1&&k--);var P=(S-F+1)*(C-k+1);P<m&&(m=P,y=b,d=F,h=k,f=S-F+1,p=C-k+1)}var w=new Uint8Array(t[s-1-y]);1==y&&(a[s-1].dispose=2),l=new Uint8Array(f*p*4),r6._copyTile(w,e,r,l,f,p,-d,-h,0),1==(g=r6._copyTile(c,e,r,l,f,p,-d,-h,3)?1:0)?r6.encode._prepareDiff(c,e,r,l,{x:d,y:h,width:f,height:p}):r6._copyTile(c,e,r,l,f,p,-d,-h,0)}else l=c.slice(0);a.push({rect:{x:d,y:h,width:f,height:p},img:l,blend:g,dispose:0})}if(n)for(var s=0;s<a.length;s++){var N=a[s];if(1!=N.blend){var R=N.rect,j=a[s-1].rect,D=Math.min(R.x,j.x),z=Math.min(R.y,j.y),B={x:D,y:z,width:Math.max(R.x+R.width,j.x+j.width)-D,height:Math.max(R.y+R.height,j.y+j.height)-z};a[s-1].dispose=1,s-1!=0&&r6.encode._updateFrame(t,e,r,a,s-1,B,o),r6.encode._updateFrame(t,e,r,a,s,B,o)}}if(1!=t.length)for(var A=0;A<a.length;A++){var N=a[A];N.rect.width,N.rect.height}return a},r6.encode._updateFrame=function(t,e,r,n,o,i,a){for(var s=Uint8Array,l=Uint32Array,c=new s(t[o-1]),u=new l(t[o-1]),d=o+1<t.length?new s(t[o+1]):null,h=new s(t[o]),f=new l(h.buffer),p=e,g=r,v=-1,y=-1,m=0;m<i.height;m++)for(var b=0;b<i.width;b++){var w=i.x+b,x=i.y+m,F=x*e+w,k=f[F];0==k||0==n[o-1].dispose&&u[F]==k&&(null==d||0!=d[4*F+3])||(w<p&&(p=w),w>v&&(v=w),x<g&&(g=x),x>y&&(y=x))}-1==v&&(p=g=v=y=0),a&&((1&p)==1&&p--,(1&g)==1&&g--),i={x:p,y:g,width:v-p+1,height:y-g+1};var S=n[o];S.rect=i,S.blend=1,S.img=new Uint8Array(i.width*i.height*4),0==n[o-1].dispose?(r6._copyTile(c,e,r,S.img,i.width,i.height,-i.x,-i.y,0),r6.encode._prepareDiff(h,e,r,S.img,i)):r6._copyTile(h,e,r,S.img,i.width,i.height,-i.x,-i.y,0)},r6.encode._prepareDiff=function(t,e,r,n,o){r6._copyTile(t,e,r,n,o.width,o.height,-o.x,-o.y,2)},r6.encode._filterZero=function(t,e,r,n,o,i,a){var s=[],l=[0,1,2,3,4];-1!=i?l=[i]:(e*n>5e5||1==r)&&(l=[0]),a&&(h={level:0});for(var c=a&&null!=UZIP?UZIP:ea(),u=0;u<l.length;u++){for(var d=0;d<e;d++)r6.encode._filterLine(o,t,d,n,r,l[u]);s.push(c.deflate(o,h))}for(var h,f,p=1e9,u=0;u<s.length;u++)s[u].length<p&&(f=u,p=s[u].length);return s[f]},r6.encode._filterLine=function(t,e,r,n,o,i){var a=r*n,s=a+r,l=r6.decode._paeth;if(t[s]=i,s++,0==i){if(n<500)for(var c=0;c<n;c++)t[s+c]=e[a+c];else t.set(new Uint8Array(e.buffer,a,n),s)}else if(1==i){for(var c=0;c<o;c++)t[s+c]=e[a+c];for(var c=o;c<n;c++)t[s+c]=e[a+c]-e[a+c-o]+256&255}else if(0==r){for(var c=0;c<o;c++)t[s+c]=e[a+c];if(2==i)for(var c=o;c<n;c++)t[s+c]=e[a+c];if(3==i)for(var c=o;c<n;c++)t[s+c]=e[a+c]-(e[a+c-o]>>1)+256&255;if(4==i)for(var c=o;c<n;c++)t[s+c]=e[a+c]-l(e[a+c-o],0,0)+256&255}else{if(2==i)for(var c=0;c<n;c++)t[s+c]=e[a+c]+256-e[a+c-n]&255;if(3==i){for(var c=0;c<o;c++)t[s+c]=e[a+c]+256-(e[a+c-n]>>1)&255;for(var c=o;c<n;c++)t[s+c]=e[a+c]+256-(e[a+c-n]+e[a+c-o]>>1)&255}if(4==i){for(var c=0;c<o;c++)t[s+c]=e[a+c]+256-l(0,e[a+c-n],0)&255;for(var c=o;c<n;c++)t[s+c]=e[a+c]+256-l(e[a+c-o],e[a+c-n],e[a+c-o-n])&255}}},r6.crc={table:function(){for(var t=new Uint32Array(256),e=0;e<256;e++){for(var r=e,n=0;n<8;n++)1&r?r=3988292384^r>>>1:r>>>=1;t[e]=r}return t}(),update:function(t,e,r,n){for(var o=0;o<n;o++)t=r6.crc.table[(t^e[r+o])&255]^t>>>8;return t},crc:function(t,e,r){return 4294967295^r6.crc.update(4294967295,t,e,r)}},r6.quantize=function(t,e){var r=new Uint8Array(t),n=r.slice(0),o=new Uint32Array(n.buffer),i=r6.quantize.getKDtree(n,e),a=i[0],s=i[1];r6.quantize.planeDst;for(var l=r.length,c=new Uint8Array(r.length>>2),u=0;u<l;u+=4){var d=r[u]*(1/255),h=r[u+1]*(1/255),f=r[u+2]*(1/255),p=r[u+3]*(1/255),g=r6.quantize.getNearest(a,d,h,f,p);c[u>>2]=g.ind,o[u>>2]=g.est.rgba}return{abuf:n.buffer,inds:c,plte:s}},r6.quantize.getKDtree=function(t,e,r){null==r&&(r=1e-4);var n=new Uint32Array(t.buffer),o={i0:0,i1:t.length,bst:null,est:null,tdst:0,left:null,right:null};o.bst=r6.quantize.stats(t,o.i0,o.i1),o.est=r6.quantize.estats(o.bst);for(var i=[o];i.length<e;){for(var a=0,s=0,l=0;l<i.length;l++)i[l].est.L>a&&(a=i[l].est.L,s=l);if(a<r)break;var c=i[s],u=r6.quantize.splitPixels(t,n,c.i0,c.i1,c.est.e,c.est.eMq255);if(c.i0>=u||c.i1<=u){c.est.L=0;continue}var d={i0:c.i0,i1:u,bst:null,est:null,tdst:0,left:null,right:null};d.bst=r6.quantize.stats(t,d.i0,d.i1),d.est=r6.quantize.estats(d.bst);var h={i0:u,i1:c.i1,bst:null,est:null,tdst:0,left:null,right:null};h.bst={R:[],m:[],N:c.bst.N-d.bst.N};for(var l=0;l<16;l++)h.bst.R[l]=c.bst.R[l]-d.bst.R[l];for(var l=0;l<4;l++)h.bst.m[l]=c.bst.m[l]-d.bst.m[l];h.est=r6.quantize.estats(h.bst),c.left=d,c.right=h,i[s]=d,i.push(h)}i.sort(function(t,e){return e.bst.N-t.bst.N});for(var l=0;l<i.length;l++)i[l].ind=l;return[o,i]},r6.quantize.getNearest=function(t,e,r,n,o){if(null==t.left)return t.tdst=r6.quantize.dist(t.est.q,e,r,n,o),t;var i=r6.quantize.planeDst(t.est,e,r,n,o),a=t.left,s=t.right;i>0&&(a=t.right,s=t.left);var l=r6.quantize.getNearest(a,e,r,n,o);if(l.tdst<=i*i)return l;var c=r6.quantize.getNearest(s,e,r,n,o);return c.tdst<l.tdst?c:l},r6.quantize.planeDst=function(t,e,r,n,o){var i=t.e;return i[0]*e+i[1]*r+i[2]*n+i[3]*o-t.eMq},r6.quantize.dist=function(t,e,r,n,o){var i=e-t[0],a=r-t[1],s=n-t[2],l=o-t[3];return i*i+a*a+s*s+l*l},r6.quantize.splitPixels=function(t,e,r,n,o,i){var a=r6.quantize.vecDot;for(n-=4;r<n;){for(;a(t,r,o)<=i;)r+=4;for(;a(t,n,o)>i;)n-=4;if(r>=n)break;var s=e[r>>2];e[r>>2]=e[n>>2],e[n>>2]=s,r+=4,n-=4}for(;a(t,r,o)>i;)r-=4;return r+4},r6.quantize.vecDot=function(t,e,r){return t[e]*r[0]+t[e+1]*r[1]+t[e+2]*r[2]+t[e+3]*r[3]},r6.quantize.stats=function(t,e,r){for(var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],o=[0,0,0,0],i=e;i<r;i+=4){var a=t[i]*(1/255),s=t[i+1]*(1/255),l=t[i+2]*(1/255),c=t[i+3]*(1/255);o[0]+=a,o[1]+=s,o[2]+=l,o[3]+=c,n[0]+=a*a,n[1]+=a*s,n[2]+=a*l,n[3]+=a*c,n[5]+=s*s,n[6]+=s*l,n[7]+=s*c,n[10]+=l*l,n[11]+=l*c,n[15]+=c*c}return n[4]=n[1],n[8]=n[2],n[9]=n[6],n[12]=n[3],n[13]=n[7],n[14]=n[11],{R:n,m:o,N:r-e>>2}},r6.quantize.estats=function(t){var e=t.R,r=t.m,n=t.N,o=r[0],i=r[1],a=r[2],s=r[3],l=0==n?0:1/n,c=[e[0]-o*o*l,e[1]-o*i*l,e[2]-o*a*l,e[3]-o*s*l,e[4]-i*o*l,e[5]-i*i*l,e[6]-i*a*l,e[7]-i*s*l,e[8]-a*o*l,e[9]-a*i*l,e[10]-a*a*l,e[11]-a*s*l,e[12]-s*o*l,e[13]-s*i*l,e[14]-s*a*l,e[15]-s*s*l],u=r6.M4,d=[.5,.5,.5,.5],h=0,f=0;if(0!=n)for(var p=0;p<10&&(d=u.multVec(c,d),f=Math.sqrt(u.dot(d,d)),d=u.sml(1/f,d),!(1e-9>Math.abs(f-h)));p++)h=f;var g=[o*l,i*l,a*l,s*l],v=u.dot(u.sml(255,g),d);return{Cov:c,q:g,e:d,L:h,eMq255:v,eMq:u.dot(d,g),rgba:(Math.round(255*g[3])<<24|Math.round(255*g[2])<<16|Math.round(255*g[1])<<8|Math.round(255*g[0])<<0)>>>0}},r6.M4={multVec:function(t,e){return[t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3],t[4]*e[0]+t[5]*e[1]+t[6]*e[2]+t[7]*e[3],t[8]*e[0]+t[9]*e[1]+t[10]*e[2]+t[11]*e[3],t[12]*e[0]+t[13]*e[1]+t[14]*e[2]+t[15]*e[3]]},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},sml:function(t,e){return[t*e[0],t*e[1],t*e[2],t*e[3]]}},r6.encode.concatRGBA=function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r].byteLength;for(var n=new Uint8Array(e),o=0,r=0;r<t.length;r++){for(var i=new Uint8Array(t[r]),a=i.length,s=0;s<a;s+=4){var l=i[s],c=i[s+1],u=i[s+2],d=i[s+3];0==d&&(l=c=u=0),n[o+s]=l,n[o+s+1]=c,n[o+s+2]=u,n[o+s+3]=d}o+=a}return n.buffer};var r8=function(t){if(0===t)return G.Greyscale;if(2===t)return G.Truecolour;if(3===t)return G.IndexedColour;if(4===t)return G.GreyscaleWithAlpha;if(6===t)return G.TruecolourWithAlpha;throw Error("Unknown color type: "+t)},r9=function(t){for(var e=Math.floor(t.length/4),r=new Uint8Array(3*e),n=new Uint8Array(1*e),o=0,i=0,a=0;o<t.length;)r[i++]=t[o++],r[i++]=t[o++],r[i++]=t[o++],n[a++]=t[o++];return{rgbChannel:r,alphaChannel:n}};(p=G||(G={})).Greyscale="Greyscale",p.Truecolour="Truecolour",p.IndexedColour="IndexedColour",p.GreyscaleWithAlpha="GreyscaleWithAlpha",p.TruecolourWithAlpha="TruecolourWithAlpha";var r7=function(){function t(t){var e=r6.decode(t),r=r6.toRGBA8(e);if(r.length>1)throw Error("Animated PNGs are not supported");var n=r9(new Uint8Array(r[0])),o=n.rgbChannel,i=n.alphaChannel;this.rgbChannel=o,i.some(function(t){return t<255})&&(this.alphaChannel=i),this.type=r8(e.ctype),this.width=e.width,this.height=e.height,this.bitsPerComponent=8}return t.load=function(e){return new t(e)},t}(),nt=function(){function t(t){this.image=t,this.bitsPerComponent=t.bitsPerComponent,this.width=t.width,this.height=t.height,this.colorSpace="DeviceRGB"}return t.for=function(e){return th(this,void 0,void 0,function(){var r;return tf(this,function(n){return r=r7.load(e),[2,new t(r)]})})},t.prototype.embedIntoContext=function(t,e){return th(this,void 0,void 0,function(){var r,n;return tf(this,function(o){return(r=this.embedAlphaChannel(t),n=t.flateStream(this.image.rgbChannel,{Type:"XObject",Subtype:"Image",BitsPerComponent:this.image.bitsPerComponent,Width:this.image.width,Height:this.image.height,ColorSpace:this.colorSpace,SMask:r}),e)?(t.assign(e,n),[2,e]):[2,t.register(n)]})})},t.prototype.embedAlphaChannel=function(t){if(this.image.alphaChannel){var e=t.flateStream(this.image.alphaChannel,{Type:"XObject",Subtype:"Image",Height:this.image.height,Width:this.image.width,BitsPerComponent:this.image.bitsPerComponent,ColorSpace:"DeviceGray",Decode:[0,1]});return t.register(e)}},t}(),ne=function(){function t(t,e,r){this.bytes=t,this.start=e||0,this.pos=this.start,this.end=e&&r?e+r:this.bytes.length}return Object.defineProperty(t.prototype,"length",{get:function(){return this.end-this.start},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),t.prototype.getByte=function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},t.prototype.getUint16=function(){var t=this.getByte(),e=this.getByte();return -1===t||-1===e?-1:(t<<8)+e},t.prototype.getInt32=function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},t.prototype.getBytes=function(t,e){void 0===e&&(e=!1);var r=this.bytes,n=this.pos,o=this.end;if(t){var i=n+t;i>o&&(i=o),this.pos=i;var a=r.subarray(n,i);return e?new Uint8ClampedArray(a):a}var a=r.subarray(n,o);return e?new Uint8ClampedArray(a):a},t.prototype.peekByte=function(){var t=this.getByte();return this.pos--,t},t.prototype.peekBytes=function(t,e){void 0===e&&(e=!1);var r=this.getBytes(t,e);return this.pos-=r.length,r},t.prototype.skip=function(t){t||(t=1),this.pos+=t},t.prototype.reset=function(){this.pos=this.start},t.prototype.moveStart=function(){this.start=this.pos},t.prototype.makeSubStream=function(e,r){return new t(this.bytes,e,r)},t.prototype.decode=function(){return this.bytes},t}(),nr=new Uint8Array(0),nn=function(){function t(t){if(this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=nr,this.minBufferLength=512,t)for(;this.minBufferLength<t;)this.minBufferLength*=2}return Object.defineProperty(t.prototype,"isEmpty",{get:function(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength},enumerable:!1,configurable:!0}),t.prototype.getByte=function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return -1;this.readBlock()}return this.buffer[this.pos++]},t.prototype.getUint16=function(){var t=this.getByte(),e=this.getByte();return -1===t||-1===e?-1:(t<<8)+e},t.prototype.getInt32=function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},t.prototype.getBytes=function(t,e){void 0===e&&(e=!1);var r,n=this.pos;if(t){for(this.ensureBuffer(n+t),r=n+t;!this.eof&&this.bufferLength<r;)this.readBlock();var o=this.bufferLength;r>o&&(r=o)}else{for(;!this.eof;)this.readBlock();r=this.bufferLength}this.pos=r;var i=this.buffer.subarray(n,r);return!e||i instanceof Uint8ClampedArray?i:new Uint8ClampedArray(i)},t.prototype.peekByte=function(){var t=this.getByte();return this.pos--,t},t.prototype.peekBytes=function(t,e){void 0===e&&(e=!1);var r=this.getBytes(t,e);return this.pos-=r.length,r},t.prototype.skip=function(t){t||(t=1),this.pos+=t},t.prototype.reset=function(){this.pos=0},t.prototype.makeSubStream=function(t,e){for(var r=t+e;this.bufferLength<=r&&!this.eof;)this.readBlock();return new ne(this.buffer,t,e)},t.prototype.decode=function(){for(;!this.eof;)this.readBlock();return this.buffer.subarray(0,this.bufferLength)},t.prototype.readBlock=function(){throw new eG(this.constructor.name,"readBlock")},t.prototype.ensureBuffer=function(t){var e=this.buffer;if(t<=e.byteLength)return e;for(var r=this.minBufferLength;r<t;)r*=2;var n=new Uint8Array(r);return n.set(e),this.buffer=n},t}(),no=function(t){return 32===t||9===t||13===t||10===t},ni=function(t){function e(e,r){var n=t.call(this,r)||this;return n.stream=e,n.input=new Uint8Array(5),r&&(r*=.8),n}return tu(e,t),e.prototype.readBlock=function(){for(var t,e,r=this.stream,n=r.getByte();no(n);)n=r.getByte();if(-1===n||126===n){this.eof=!0;return}var o=this.bufferLength;if(122===n){for(e=0,t=this.ensureBuffer(o+4);e<4;++e)t[o+e]=0;this.bufferLength+=4}else{var i=this.input;for(e=1,i[0]=n;e<5;++e){for(n=r.getByte();no(n);)n=r.getByte();if(i[e]=n,-1===n||126===n)break}if(t=this.ensureBuffer(o+e-1),this.bufferLength+=e-1,e<5){for(;e<5;++e)i[e]=117;this.eof=!0}var a=0;for(e=0;e<5;++e)a=85*a+(i[e]-33);for(e=3;e>=0;--e)t[o+e]=255&a,a>>=8}},e}(nn),na=function(t){function e(e,r){var n=t.call(this,r)||this;return n.stream=e,n.firstDigit=-1,r&&(r*=.5),n}return tu(e,t),e.prototype.readBlock=function(){var t=this.stream.getBytes(8e3);if(!t.length){this.eof=!0;return}for(var e=t.length+1>>1,r=this.ensureBuffer(this.bufferLength+e),n=this.bufferLength,o=this.firstDigit,i=0,a=t.length;i<a;i++){var s=t[i],l=void 0;if(s>=48&&s<=57)l=15&s;else if(s>=65&&s<=70||s>=97&&s<=102)l=(15&s)+9;else{if(62!==s)continue;this.eof=!0;break}o<0?o=l:(r[n++]=o<<4|l,o=-1)}o>=0&&this.eof&&(r[n++]=o<<4,o=-1),this.firstDigit=o,this.bufferLength=n},e}(nn),ns=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),nl=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]),nc=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]),nu=[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],nd=[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],nh=function(t){function e(e,r){var n=t.call(this,r)||this;n.stream=e;var o=e.getByte(),i=e.getByte();if(-1===o||-1===i)throw Error("Invalid header in flate stream: "+o+", "+i);if((15&o)!=8)throw Error("Unknown compression method in flate stream: "+o+", "+i);if(((o<<8)+i)%31!=0)throw Error("Bad FCHECK in flate stream: "+o+", "+i);if(32&i)throw Error("FDICT bit set in flate stream: "+o+", "+i);return n.codeSize=0,n.codeBuf=0,n}return tu(e,t),e.prototype.readBlock=function(){var t,e,r,n,o=this.stream,i=this.getBits(3);if(1&i&&(this.eof=!0),0==(i>>=1)){var a=void 0;if(-1===(a=o.getByte()))throw Error("Bad block header in flate stream");var s=a;if(-1===(a=o.getByte())||(s|=a<<8,-1===(a=o.getByte())))throw Error("Bad block header in flate stream");var l=a;if(-1===(a=o.getByte()))throw Error("Bad block header in flate stream");if((l|=a<<8)!=(65535&~s)&&(0!==s||0!==l))throw Error("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;var c=this.bufferLength;t=this.ensureBuffer(c+s);var u=c+s;if(this.bufferLength=u,0===s)-1===o.peekByte()&&(this.eof=!0);else for(var d=c;d<u;++d){if(-1===(a=o.getByte())){this.eof=!0;break}t[d]=a}return}if(1===i)r=nu,n=nd;else if(2===i){var h=this.getBits(5)+257,f=this.getBits(5)+1,p=this.getBits(4)+4,g=new Uint8Array(ns.length),v=void 0;for(v=0;v<p;++v)g[ns[v]]=this.getBits(3);var y=this.generateHuffmanTable(g);e=0,v=0;for(var m=h+f,b=new Uint8Array(m),w=void 0,x=void 0,F=void 0;v<m;){var k=this.getCode(y);if(16===k)w=2,x=3,F=e;else if(17===k)w=3,x=3,F=e=0;else if(18===k)w=7,x=11,F=e=0;else{b[v++]=e=k;continue}for(var S=this.getBits(w)+x;S-- >0;)b[v++]=F}r=this.generateHuffmanTable(b.subarray(0,h)),n=this.generateHuffmanTable(b.subarray(h,m))}else throw Error("Unknown block type in flate stream");for(var C=(t=this.buffer)?t.length:0,T=this.bufferLength;;){var O=this.getCode(r);if(O<256){T+1>=C&&(C=(t=this.ensureBuffer(T+1)).length),t[T++]=O;continue}if(256===O){this.bufferLength=T;return}O-=257;var A=(O=nl[O])>>16;A>0&&(A=this.getBits(A)),e=(65535&O)+A,(A=(O=nc[O=this.getCode(n)])>>16)>0&&(A=this.getBits(A));var P=(65535&O)+A;T+e>=C&&(C=(t=this.ensureBuffer(T+e)).length);for(var N=0;N<e;++N,++T)t[T]=t[T-P]}},e.prototype.getBits=function(t){for(var e,r=this.stream,n=this.codeSize,o=this.codeBuf;n<t;){if(-1===(e=r.getByte()))throw Error("Bad encoding in flate stream");o|=e<<n,n+=8}return e=o&(1<<t)-1,this.codeBuf=o>>t,this.codeSize=n-=t,e},e.prototype.getCode=function(t){for(var e,r=this.stream,n=t[0],o=t[1],i=this.codeSize,a=this.codeBuf;i<o&&-1!==(e=r.getByte());)a|=e<<i,i+=8;var s=n[a&(1<<o)-1];"number"==typeof n&&console.log("FLATE:",s);var l=s>>16;if(l<1||i<l)throw Error("Bad encoding in flate stream");return this.codeBuf=a>>l,this.codeSize=i-l,65535&s},e.prototype.generateHuffmanTable=function(t){var e,r=t.length,n=0;for(e=0;e<r;++e)t[e]>n&&(n=t[e]);for(var o=1<<n,i=new Int32Array(o),a=1,s=0,l=2;a<=n;++a,s<<=1,l<<=1)for(var c=0;c<r;++c)if(t[c]===a){var u=0,d=s;for(e=0;e<a;++e)u=u<<1|1&d,d>>=1;for(e=u;e<o;e+=l)i[e]=a<<16|c;++s}return[i,n]},e}(nn),nf=function(t){function e(e,r,n){var o=t.call(this,r)||this;o.stream=e,o.cachedData=0,o.bitsCached=0;for(var i={earlyChange:n,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(4096),dictionaryLengths:new Uint16Array(4096),dictionaryPrevCodes:new Uint16Array(4096),currentSequence:new Uint8Array(4096),currentSequenceLength:0},a=0;a<256;++a)i.dictionaryValues[a]=a,i.dictionaryLengths[a]=1;return o.lzwState=i,o}return tu(e,t),e.prototype.readBlock=function(){var t,e,r,n=1024,o=this.lzwState;if(o){var i=o.earlyChange,a=o.nextCode,s=o.dictionaryValues,l=o.dictionaryLengths,c=o.dictionaryPrevCodes,u=o.codeLength,d=o.prevCode,h=o.currentSequence,f=o.currentSequenceLength,p=0,g=this.bufferLength,v=this.ensureBuffer(this.bufferLength+n);for(t=0;t<512;t++){var y=this.readBits(u),m=f>0;if(!y||y<256)h[0]=y,f=1;else if(y>=258){if(y<a)for(e=(f=l[y])-1,r=y;e>=0;e--)h[e]=s[r],r=c[r];else h[f++]=h[0]}else if(256===y){u=9,a=258,f=0;continue}else{this.eof=!0,delete this.lzwState;break}if(m&&(c[a]=d,l[a]=l[d]+1,s[a]=h[0],u=++a+i&a+i-1?u:0|Math.min(Math.log(a+i)/.6931471805599453+1,12)),d=y,n<(p+=f)){do n+=512;while(n<p);v=this.ensureBuffer(this.bufferLength+n)}for(e=0;e<f;e++)v[g++]=h[e]}o.nextCode=a,o.codeLength=u,o.prevCode=d,o.currentSequenceLength=f,this.bufferLength=g}},e.prototype.readBits=function(t){for(var e=this.bitsCached,r=this.cachedData;e<t;){var n=this.stream.getByte();if(-1===n)return this.eof=!0,null;r=r<<8|n,e+=8}return this.bitsCached=e-=t,this.cachedData=r,r>>>e&(1<<t)-1},e}(nn),np=function(t){function e(e,r){var n=t.call(this,r)||this;return n.stream=e,n}return tu(e,t),e.prototype.readBlock=function(){var t,e=this.stream.getBytes(2);if(!e||e.length<2||128===e[0]){this.eof=!0;return}var r=this.bufferLength,n=e[0];if(n<128){if((t=this.ensureBuffer(r+n+1))[r++]=e[1],n>0){var o=this.stream.getBytes(n);t.set(o,r),r+=n}}else{n=257-n;var i=e[1];t=this.ensureBuffer(r+n+1);for(var a=0;a<n;a++)t[r++]=i}this.bufferLength=r},e}(nn),ng=function(t,e,r){if(e===rb.of("FlateDecode"))return new nh(t);if(e===rb.of("LZWDecode")){var n=1;if(r instanceof rx){var o=r.lookup(rb.of("EarlyChange"));o instanceof rc&&(n=o.asNumber())}return new nf(t,void 0,n)}if(e===rb.of("ASCII85Decode"))return new ni(t);if(e===rb.of("ASCIIHexDecode"))return new na(t);if(e===rb.of("RunLengthDecode"))return new np(t);throw new eX(e.asString())},nv=function(t){var e=t.dict,r=t.contents,n=new ne(r),o=e.lookup(rb.of("Filter")),i=e.lookup(rb.of("DecodeParms"));if(o instanceof rb)n=ng(n,o,i);else if(o instanceof ru)for(var a=0,s=o.size();a<s;a++)n=ng(n,o.lookup(a,rb),i&&i.lookupMaybe(a,rx));else if(o)throw new eL([rb,ru],o);return n},ny=function(t){var e=t.MediaBox();return{left:0,bottom:0,right:e.lookup(2,rc).asNumber()-e.lookup(0,rc).asNumber(),top:e.lookup(3,rc).asNumber()-e.lookup(1,rc).asNumber()}},nm=function(){function t(t,e,r){this.page=t;var n=null!=e?e:ny(t);this.width=n.right-n.left,this.height=n.top-n.bottom,this.boundingBox=n,this.transformationMatrix=null!=r?r:[1,0,0,1,-n.left,-n.bottom]}return t.for=function(e,r,n){return th(this,void 0,void 0,function(){return tf(this,function(o){return[2,new t(e,r,n)]})})},t.prototype.embedIntoContext=function(t,e){return th(this,void 0,void 0,function(){var r,n,o,i,a,s,l,c,u,d;return tf(this,function(h){if(n=(r=this.page.normalizedEntries()).Contents,o=r.Resources,!n)throw new eZ;return(i=this.decodeContents(n),s=(a=this.boundingBox).left,l=a.bottom,c=a.right,u=a.top,d=t.flateStream(i,{Type:"XObject",Subtype:"Form",FormType:1,BBox:[s,l,c,u],Matrix:this.transformationMatrix,Resources:o}),e)?(t.assign(e,d),[2,e]):[2,t.register(d)]})})},t.prototype.decodeContents=function(t){for(var e=Uint8Array.of(ra.Newline),r=[],n=0,o=t.size();n<o;n++){var i=t.lookup(n,rF),a=void 0;if(i instanceof rk)a=nv(i).decode();else if(i instanceof rN)a=i.getUnencodedContents();else throw new eY(i);r.push(a,e)}return tq.apply(void 0,r)},t}(),nb=function(t,e){if(void 0!==t)return e[t]};(g=K||(K={})).UseNone="UseNone",g.UseOutlines="UseOutlines",g.UseThumbs="UseThumbs",g.UseOC="UseOC",(v=L||(L={})).L2R="L2R",v.R2L="R2L",(y=X||(X={})).None="None",y.AppDefault="AppDefault",(m=H||(H={})).Simplex="Simplex",m.DuplexFlipShortEdge="DuplexFlipShortEdge",m.DuplexFlipLongEdge="DuplexFlipLongEdge";var nw=function(){function t(t){this.dict=t}return t.prototype.lookupBool=function(t){var e=this.dict.lookup(rb.of(t));if(e instanceof rh)return e},t.prototype.lookupName=function(t){var e=this.dict.lookup(rb.of(t));if(e instanceof rb)return e},t.prototype.HideToolbar=function(){return this.lookupBool("HideToolbar")},t.prototype.HideMenubar=function(){return this.lookupBool("HideMenubar")},t.prototype.HideWindowUI=function(){return this.lookupBool("HideWindowUI")},t.prototype.FitWindow=function(){return this.lookupBool("FitWindow")},t.prototype.CenterWindow=function(){return this.lookupBool("CenterWindow")},t.prototype.DisplayDocTitle=function(){return this.lookupBool("DisplayDocTitle")},t.prototype.NonFullScreenPageMode=function(){return this.lookupName("NonFullScreenPageMode")},t.prototype.Direction=function(){return this.lookupName("Direction")},t.prototype.PrintScaling=function(){return this.lookupName("PrintScaling")},t.prototype.Duplex=function(){return this.lookupName("Duplex")},t.prototype.PickTrayByPDFSize=function(){return this.lookupBool("PickTrayByPDFSize")},t.prototype.PrintPageRange=function(){var t=this.dict.lookup(rb.of("PrintPageRange"));if(t instanceof ru)return t},t.prototype.NumCopies=function(){var t=this.dict.lookup(rb.of("NumCopies"));if(t instanceof rc)return t},t.prototype.getHideToolbar=function(){var t,e;return null!==(e=null===(t=this.HideToolbar())||void 0===t?void 0:t.asBoolean())&&void 0!==e&&e},t.prototype.getHideMenubar=function(){var t,e;return null!==(e=null===(t=this.HideMenubar())||void 0===t?void 0:t.asBoolean())&&void 0!==e&&e},t.prototype.getHideWindowUI=function(){var t,e;return null!==(e=null===(t=this.HideWindowUI())||void 0===t?void 0:t.asBoolean())&&void 0!==e&&e},t.prototype.getFitWindow=function(){var t,e;return null!==(e=null===(t=this.FitWindow())||void 0===t?void 0:t.asBoolean())&&void 0!==e&&e},t.prototype.getCenterWindow=function(){var t,e;return null!==(e=null===(t=this.CenterWindow())||void 0===t?void 0:t.asBoolean())&&void 0!==e&&e},t.prototype.getDisplayDocTitle=function(){var t,e;return null!==(e=null===(t=this.DisplayDocTitle())||void 0===t?void 0:t.asBoolean())&&void 0!==e&&e},t.prototype.getNonFullScreenPageMode=function(){var t,e;return null!==(e=nb(null===(t=this.NonFullScreenPageMode())||void 0===t?void 0:t.decodeText(),K))&&void 0!==e?e:K.UseNone},t.prototype.getReadingDirection=function(){var t,e;return null!==(e=nb(null===(t=this.Direction())||void 0===t?void 0:t.decodeText(),L))&&void 0!==e?e:L.L2R},t.prototype.getPrintScaling=function(){var t,e;return null!==(e=nb(null===(t=this.PrintScaling())||void 0===t?void 0:t.decodeText(),X))&&void 0!==e?e:X.AppDefault},t.prototype.getDuplex=function(){var t;return nb(null===(t=this.Duplex())||void 0===t?void 0:t.decodeText(),H)},t.prototype.getPickTrayByPDFSize=function(){var t;return null===(t=this.PickTrayByPDFSize())||void 0===t?void 0:t.asBoolean()},t.prototype.getPrintPageRange=function(){var t=this.PrintPageRange();if(!t)return[];for(var e=[],r=0;r<t.size();r+=2){var n=t.lookup(r,rc).asNumber(),o=t.lookup(r+1,rc).asNumber();e.push({start:n,end:o})}return e},t.prototype.getNumCopies=function(){var t,e;return null!==(e=null===(t=this.NumCopies())||void 0===t?void 0:t.asNumber())&&void 0!==e?e:1},t.prototype.setHideToolbar=function(t){var e=this.dict.context.obj(t);this.dict.set(rb.of("HideToolbar"),e)},t.prototype.setHideMenubar=function(t){var e=this.dict.context.obj(t);this.dict.set(rb.of("HideMenubar"),e)},t.prototype.setHideWindowUI=function(t){var e=this.dict.context.obj(t);this.dict.set(rb.of("HideWindowUI"),e)},t.prototype.setFitWindow=function(t){var e=this.dict.context.obj(t);this.dict.set(rb.of("FitWindow"),e)},t.prototype.setCenterWindow=function(t){var e=this.dict.context.obj(t);this.dict.set(rb.of("CenterWindow"),e)},t.prototype.setDisplayDocTitle=function(t){var e=this.dict.context.obj(t);this.dict.set(rb.of("DisplayDocTitle"),e)},t.prototype.setNonFullScreenPageMode=function(t){eO(t,"nonFullScreenPageMode",K);var e=rb.of(t);this.dict.set(rb.of("NonFullScreenPageMode"),e)},t.prototype.setReadingDirection=function(t){eO(t,"readingDirection",L);var e=rb.of(t);this.dict.set(rb.of("Direction"),e)},t.prototype.setPrintScaling=function(t){eO(t,"printScaling",X);var e=rb.of(t);this.dict.set(rb.of("PrintScaling"),e)},t.prototype.setDuplex=function(t){eO(t,"duplex",H);var e=rb.of(t);this.dict.set(rb.of("Duplex"),e)},t.prototype.setPickTrayByPDFSize=function(t){var e=this.dict.context.obj(t);this.dict.set(rb.of("PickTrayByPDFSize"),e)},t.prototype.setPrintPageRange=function(t){Array.isArray(t)||(t=[t]);for(var e=[],r=0,n=t.length;r<n;r++)e.push(t[r].start),e.push(t[r].end);eD(e,"printPageRange",["number"]);var o=this.dict.context.obj(e);this.dict.set(rb.of("PrintPageRange"),o)},t.prototype.setNumCopies=function(t){ez(t,"numCopies",1,Number.MAX_VALUE),eE(t,"numCopies");var e=this.dict.context.obj(t);this.dict.set(rb.of("NumCopies"),e)},t.fromDict=function(e){return new t(e)},t.create=function(e){var r=e.obj({});return new t(r)},t}(),nx=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+Tf/,nF=function(){function t(t,e){this.dict=t,this.ref=e}return t.prototype.T=function(){return this.dict.lookupMaybe(rb.of("T"),r$,rK)},t.prototype.Ff=function(){var t=this.getInheritableAttribute(rb.of("Ff"));return this.dict.context.lookupMaybe(t,rc)},t.prototype.V=function(){var t=this.getInheritableAttribute(rb.of("V"));return this.dict.context.lookup(t)},t.prototype.Kids=function(){return this.dict.lookupMaybe(rb.of("Kids"),ru)},t.prototype.DA=function(){var t=this.dict.lookup(rb.of("DA"));if(t instanceof r$||t instanceof rK)return t},t.prototype.setKids=function(t){this.dict.set(rb.of("Kids"),this.dict.context.obj(t))},t.prototype.getParent=function(){var e=this.dict.get(rb.of("Parent"));if(e instanceof rT){var r=this.dict.lookup(rb.of("Parent"),rx);return new t(r,e)}},t.prototype.setParent=function(t){t?this.dict.set(rb.of("Parent"),t):this.dict.delete(rb.of("Parent"))},t.prototype.getFullyQualifiedName=function(){var t=this.getParent();return t?t.getFullyQualifiedName()+"."+this.getPartialName():this.getPartialName()},t.prototype.getPartialName=function(){var t;return null===(t=this.T())||void 0===t?void 0:t.decodeText()},t.prototype.setPartialName=function(t){t?this.dict.set(rb.of("T"),rK.fromText(t)):this.dict.delete(rb.of("T"))},t.prototype.setDefaultAppearance=function(t){this.dict.set(rb.of("DA"),r$.of(t))},t.prototype.getDefaultAppearance=function(){var t=this.DA();return t instanceof rK?t.decodeText():null==t?void 0:t.asString()},t.prototype.setFontSize=function(t){var e,r=null!==(e=this.getFullyQualifiedName())&&void 0!==e?e:"",n=this.getDefaultAppearance();if(!n)throw new e3(r);var o=tV(n,nx);if(!o.match)throw new e4(r);var i=n.slice(0,o.pos-o.match[0].length),a=o.pos<=n.length?n.slice(o.pos):"",s=o.match[1];this.setDefaultAppearance(i+" /"+s+" "+t+" Tf "+a)},t.prototype.getFlags=function(){var t,e;return null!==(e=null===(t=this.Ff())||void 0===t?void 0:t.asNumber())&&void 0!==e?e:0},t.prototype.setFlags=function(t){this.dict.set(rb.of("Ff"),rc.of(t))},t.prototype.hasFlag=function(t){return(this.getFlags()&t)!=0},t.prototype.setFlag=function(t){var e=this.getFlags();this.setFlags(e|t)},t.prototype.clearFlag=function(t){var e=this.getFlags();this.setFlags(e&~t)},t.prototype.setFlagTo=function(t,e){e?this.setFlag(t):this.clearFlag(t)},t.prototype.getInheritableAttribute=function(t){var e;return this.ascend(function(r){e||(e=r.dict.get(t))}),e},t.prototype.ascend=function(t){t(this);var e=this.getParent();e&&e.ascend(t)},t}(),nk=function(){function t(t){this.dict=t}return t.prototype.W=function(){var t=this.dict.lookup(rb.of("W"));if(t instanceof rc)return t},t.prototype.getWidth=function(){var t,e;return null!==(e=null===(t=this.W())||void 0===t?void 0:t.asNumber())&&void 0!==e?e:1},t.prototype.setWidth=function(t){var e=this.dict.context.obj(t);this.dict.set(rb.of("W"),e)},t.fromDict=function(e){return new t(e)},t}(),nS=function(){function t(t){this.dict=t}return t.prototype.Rect=function(){return this.dict.lookup(rb.of("Rect"),ru)},t.prototype.AP=function(){return this.dict.lookupMaybe(rb.of("AP"),rx)},t.prototype.F=function(){var t=this.dict.lookup(rb.of("F"));return this.dict.context.lookupMaybe(t,rc)},t.prototype.getRectangle=function(){var t,e=this.Rect();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:{x:0,y:0,width:0,height:0}},t.prototype.setRectangle=function(t){var e=t.x,r=t.y,n=t.width,o=t.height,i=this.dict.context.obj([e,r,e+n,r+o]);this.dict.set(rb.of("Rect"),i)},t.prototype.getAppearanceState=function(){var t=this.dict.lookup(rb.of("AS"));if(t instanceof rb)return t},t.prototype.setAppearanceState=function(t){this.dict.set(rb.of("AS"),t)},t.prototype.setAppearances=function(t){this.dict.set(rb.of("AP"),t)},t.prototype.ensureAP=function(){var t=this.AP();return t||(t=this.dict.context.obj({}),this.dict.set(rb.of("AP"),t)),t},t.prototype.getNormalAppearance=function(){var t=this.ensureAP().get(rb.of("N"));if(t instanceof rT||t instanceof rx)return t;throw Error("Unexpected N type: "+(null==t?void 0:t.constructor.name))},t.prototype.setNormalAppearance=function(t){this.ensureAP().set(rb.of("N"),t)},t.prototype.setRolloverAppearance=function(t){this.ensureAP().set(rb.of("R"),t)},t.prototype.setDownAppearance=function(t){this.ensureAP().set(rb.of("D"),t)},t.prototype.removeRolloverAppearance=function(){var t=this.AP();null==t||t.delete(rb.of("R"))},t.prototype.removeDownAppearance=function(){var t=this.AP();null==t||t.delete(rb.of("D"))},t.prototype.getAppearances=function(){var t=this.AP();if(t)return{normal:t.lookup(rb.of("N"),rx,rF),rollover:t.lookupMaybe(rb.of("R"),rx,rF),down:t.lookupMaybe(rb.of("D"),rx,rF)}},t.prototype.getFlags=function(){var t,e;return null!==(e=null===(t=this.F())||void 0===t?void 0:t.asNumber())&&void 0!==e?e:0},t.prototype.setFlags=function(t){this.dict.set(rb.of("F"),rc.of(t))},t.prototype.hasFlag=function(t){return(this.getFlags()&t)!=0},t.prototype.setFlag=function(t){var e=this.getFlags();this.setFlags(e|t)},t.prototype.clearFlag=function(t){var e=this.getFlags();this.setFlags(e&~t)},t.prototype.setFlagTo=function(t,e){e?this.setFlag(t):this.clearFlag(t)},t.fromDict=function(e){return new t(e)},t}(),nC=function(){function t(t){this.dict=t}return t.prototype.R=function(){var t=this.dict.lookup(rb.of("R"));if(t instanceof rc)return t},t.prototype.BC=function(){var t=this.dict.lookup(rb.of("BC"));if(t instanceof ru)return t},t.prototype.BG=function(){var t=this.dict.lookup(rb.of("BG"));if(t instanceof ru)return t},t.prototype.CA=function(){var t=this.dict.lookup(rb.of("CA"));if(t instanceof rK||t instanceof r$)return t},t.prototype.RC=function(){var t=this.dict.lookup(rb.of("RC"));if(t instanceof rK||t instanceof r$)return t},t.prototype.AC=function(){var t=this.dict.lookup(rb.of("AC"));if(t instanceof rK||t instanceof r$)return t},t.prototype.getRotation=function(){var t;return null===(t=this.R())||void 0===t?void 0:t.asNumber()},t.prototype.getBorderColor=function(){var t=this.BC();if(t){for(var e=[],r=0,n=null==t?void 0:t.size();r<n;r++){var o=t.get(r);o instanceof rc&&e.push(o.asNumber())}return e}},t.prototype.getBackgroundColor=function(){var t=this.BG();if(t){for(var e=[],r=0,n=null==t?void 0:t.size();r<n;r++){var o=t.get(r);o instanceof rc&&e.push(o.asNumber())}return e}},t.prototype.getCaptions=function(){var t=this.CA(),e=this.RC(),r=this.AC();return{normal:null==t?void 0:t.decodeText(),rollover:null==e?void 0:e.decodeText(),down:null==r?void 0:r.decodeText()}},t.prototype.setRotation=function(t){var e=this.dict.context.obj(t);this.dict.set(rb.of("R"),e)},t.prototype.setBorderColor=function(t){var e=this.dict.context.obj(t);this.dict.set(rb.of("BC"),e)},t.prototype.setBackgroundColor=function(t){var e=this.dict.context.obj(t);this.dict.set(rb.of("BG"),e)},t.prototype.setCaptions=function(t){var e=rK.fromText(t.normal);if(this.dict.set(rb.of("CA"),e),t.rollover){var r=rK.fromText(t.rollover);this.dict.set(rb.of("RC"),r)}else this.dict.delete(rb.of("RC"));if(t.down){var n=rK.fromText(t.down);this.dict.set(rb.of("AC"),n)}else this.dict.delete(rb.of("AC"))},t.fromDict=function(e){return new t(e)},t}(),nT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tu(e,t),e.prototype.MK=function(){var t=this.dict.lookup(rb.of("MK"));if(t instanceof rx)return t},e.prototype.BS=function(){var t=this.dict.lookup(rb.of("BS"));if(t instanceof rx)return t},e.prototype.DA=function(){var t=this.dict.lookup(rb.of("DA"));if(t instanceof r$||t instanceof rK)return t},e.prototype.P=function(){var t=this.dict.get(rb.of("P"));if(t instanceof rT)return t},e.prototype.setP=function(t){this.dict.set(rb.of("P"),t)},e.prototype.setDefaultAppearance=function(t){this.dict.set(rb.of("DA"),r$.of(t))},e.prototype.getDefaultAppearance=function(){var t=this.DA();return t instanceof rK?t.decodeText():null==t?void 0:t.asString()},e.prototype.getAppearanceCharacteristics=function(){var t=this.MK();if(t)return nC.fromDict(t)},e.prototype.getOrCreateAppearanceCharacteristics=function(){var t=this.MK();if(t)return nC.fromDict(t);var e=nC.fromDict(this.dict.context.obj({}));return this.dict.set(rb.of("MK"),e.dict),e},e.prototype.getBorderStyle=function(){var t=this.BS();if(t)return nk.fromDict(t)},e.prototype.getOrCreateBorderStyle=function(){var t=this.BS();if(t)return nk.fromDict(t);var e=nk.fromDict(this.dict.context.obj({}));return this.dict.set(rb.of("BS"),e.dict),e},e.prototype.getOnValue=function(){var t,e=null===(t=this.getAppearances())||void 0===t?void 0:t.normal;if(e instanceof rx)for(var r=e.keys(),n=0,o=r.length;n<o;n++){var i=r[n];if(i!==rb.of("Off"))return i}},e.fromDict=function(t){return new e(t)},e.create=function(t,r){var n=t.obj({Type:"Annot",Subtype:"Widget",Rect:[0,0,0,0],Parent:r});return new e(n)},e}(nS),nO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tu(e,t),e.prototype.FT=function(){var t=this.getInheritableAttribute(rb.of("FT"));return this.dict.context.lookup(t,rb)},e.prototype.getWidgets=function(){var t=this.Kids();if(!t)return[nT.fromDict(this.dict)];for(var e=Array(t.size()),r=0,n=t.size();r<n;r++){var o=t.lookup(r,rx);e[r]=nT.fromDict(o)}return e},e.prototype.addWidget=function(t){this.normalizedEntries().Kids.push(t)},e.prototype.removeWidget=function(t){var e=this.Kids();if(e){if(t<0||t>e.size())throw new e1(t,0,e.size());e.remove(t)}else{if(0!==t)throw new e1(t,0,0);this.setKids([])}},e.prototype.normalizedEntries=function(){var t=this.Kids();return t||(t=this.dict.context.obj([this.ref]),this.dict.set(rb.of("Kids"),t)),{Kids:t}},e.fromDict=function(t,r){return new e(t,r)},e}(nF),nA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tu(e,t),e.prototype.Opt=function(){return this.dict.lookupMaybe(rb.of("Opt"),r$,rK,ru)},e.prototype.setOpt=function(t){this.dict.set(rb.of("Opt"),this.dict.context.obj(t))},e.prototype.getExportValues=function(){var t=this.Opt();if(t){if(t instanceof r$||t instanceof rK)return[t];for(var e=[],r=0,n=t.size();r<n;r++){var o=t.lookup(r);(o instanceof r$||o instanceof rK)&&e.push(o)}return e}},e.prototype.removeExportValue=function(t){var e=this.Opt();if(e){if(e instanceof r$||e instanceof rK){if(0!==t)throw new e1(t,0,0);this.setOpt([])}else{if(t<0||t>e.size())throw new e1(t,0,e.size());e.remove(t)}}},e.prototype.normalizeExportValues=function(){for(var t,e,r,n,o=null!==(t=this.getExportValues())&&void 0!==t?t:[],i=[],a=this.getWidgets(),s=0,l=a.length;s<l;s++){var c=a[s],u=null!==(e=o[s])&&void 0!==e?e:rK.fromText(null!==(n=null===(r=c.getOnValue())||void 0===r?void 0:r.decodeText())&&void 0!==n?n:"");i.push(u)}this.setOpt(i)},e.prototype.addOpt=function(t,e){this.normalizeExportValues();var r,n,o=t.decodeText();if(e)for(var i=null!==(r=this.getExportValues())&&void 0!==r?r:[],a=0,s=i.length;a<s;a++)i[a].decodeText()===o&&(n=a);var l=this.Opt();return l.push(t),null!=n?n:l.size()-1},e.prototype.addWidgetWithOpt=function(t,e,r){var n=this.addOpt(e,r),o=rb.of(String(n));return this.addWidget(t),o},e}(nO),nP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tu(e,t),e.prototype.setValue=function(t){if(t!==(null!==(e=this.getOnValue())&&void 0!==e?e:rb.of("Yes"))&&t!==rb.of("Off"))throw new e2;this.dict.set(rb.of("V"),t);for(var e,r=this.getWidgets(),n=0,o=r.length;n<o;n++){var i=r[n],a=i.getOnValue()===t?t:rb.of("Off");i.setAppearanceState(a)}},e.prototype.getValue=function(){var t=this.V();return t instanceof rb?t:rb.of("Off")},e.prototype.getOnValue=function(){var t=this.getWidgets()[0];return null==t?void 0:t.getOnValue()},e.fromDict=function(t,r){return new e(t,r)},e.create=function(t){var r=t.obj({FT:"Btn",Kids:[]}),n=t.register(r);return new e(r,n)},e}(nA),nN=function(t){return 1<<t};(b=Z||(Z={}))[b.ReadOnly=nN(0)]="ReadOnly",b[b.Required=nN(1)]="Required",b[b.NoExport=nN(2)]="NoExport",(w=Y||(Y={}))[w.NoToggleToOff=nN(14)]="NoToggleToOff",w[w.Radio=nN(15)]="Radio",w[w.PushButton=nN(16)]="PushButton",w[w.RadiosInUnison=nN(25)]="RadiosInUnison",(x=J||(J={}))[x.Multiline=nN(12)]="Multiline",x[x.Password=nN(13)]="Password",x[x.FileSelect=nN(20)]="FileSelect",x[x.DoNotSpellCheck=nN(22)]="DoNotSpellCheck",x[x.DoNotScroll=nN(23)]="DoNotScroll",x[x.Comb=nN(24)]="Comb",x[x.RichText=nN(25)]="RichText",(F=Q||(Q={}))[F.Combo=nN(17)]="Combo",F[F.Edit=nN(18)]="Edit",F[F.Sort=nN(19)]="Sort",F[F.MultiSelect=nN(21)]="MultiSelect",F[F.DoNotSpellCheck=nN(22)]="DoNotSpellCheck",F[F.CommitOnSelChange=nN(26)]="CommitOnSelChange";var nR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tu(e,t),e.prototype.setValues=function(t){if(this.hasFlag(Q.Combo)&&!this.hasFlag(Q.Edit)&&!this.valuesAreValid(t))throw new e2;if(0===t.length&&this.dict.delete(rb.of("V")),1===t.length&&this.dict.set(rb.of("V"),t[0]),t.length>1){if(!this.hasFlag(Q.MultiSelect))throw new e5;this.dict.set(rb.of("V"),this.dict.context.obj(t))}this.updateSelectedIndices(t)},e.prototype.valuesAreValid=function(t){for(var e=this.getOptions(),r=0,n=t.length;r<n;r++){var o=function(r,n){var o=t[r].decodeText();if(!e.find(function(t){return o===(t.display||t.value).decodeText()}))return{value:!1}}(r,0);if("object"==typeof o)return o.value}return!0},e.prototype.updateSelectedIndices=function(t){if(t.length>1){for(var e=Array(t.length),r=this.getOptions(),n=0,o=t.length;n<o;n++)!function(n,o){var i=t[n].decodeText();e[n]=r.findIndex(function(t){return i===(t.display||t.value).decodeText()})}(n,0);this.dict.set(rb.of("I"),this.dict.context.obj(e.sort()))}else this.dict.delete(rb.of("I"))},e.prototype.getValues=function(){var t=this.V();if(t instanceof r$||t instanceof rK)return[t];if(t instanceof ru){for(var e=[],r=0,n=t.size();r<n;r++){var o=t.lookup(r);(o instanceof r$||o instanceof rK)&&e.push(o)}return e}return[]},e.prototype.Opt=function(){return this.dict.lookupMaybe(rb.of("Opt"),r$,rK,ru)},e.prototype.setOptions=function(t){for(var e=Array(t.length),r=0,n=t.length;r<n;r++){var o=t[r],i=o.value,a=o.display;e[r]=this.dict.context.obj([i,a||i])}this.dict.set(rb.of("Opt"),this.dict.context.obj(e))},e.prototype.getOptions=function(){var t=this.Opt();if(t instanceof r$||t instanceof rK)return[{value:t,display:t}];if(t instanceof ru){for(var e=[],r=0,n=t.size();r<n;r++){var o=t.lookup(r);if((o instanceof r$||o instanceof rK)&&e.push({value:o,display:o}),o instanceof ru&&o.size()>0){var i=o.lookup(0,r$,rK),a=o.lookupMaybe(1,r$,rK);e.push({value:i,display:a||i})}}return e}return[]},e}(nO),nj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tu(e,t),e.fromDict=function(t,r){return new e(t,r)},e.create=function(t){var r=t.obj({FT:"Ch",Ff:Q.Combo,Kids:[]}),n=t.register(r);return new e(r,n)},e}(nR),nD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tu(e,t),e.prototype.addField=function(t){var e=this.normalizedEntries().Kids;null==e||e.push(t)},e.prototype.normalizedEntries=function(){var t=this.Kids();return t||(t=this.dict.context.obj([]),this.dict.set(rb.of("Kids"),t)),{Kids:t}},e.fromDict=function(t,r){return new e(t,r)},e.create=function(t){var r=t.obj({}),n=t.register(r);return new e(r,n)},e}(nF),nz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tu(e,t),e.fromDict=function(t,r){return new e(t,r)},e}(nO),nB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tu(e,t),e.prototype.MaxLen=function(){var t=this.dict.lookup(rb.of("MaxLen"));if(t instanceof rc)return t},e.prototype.Q=function(){var t=this.dict.lookup(rb.of("Q"));if(t instanceof rc)return t},e.prototype.setMaxLength=function(t){this.dict.set(rb.of("MaxLen"),rc.of(t))},e.prototype.removeMaxLength=function(){this.dict.delete(rb.of("MaxLen"))},e.prototype.getMaxLength=function(){var t;return null===(t=this.MaxLen())||void 0===t?void 0:t.asNumber()},e.prototype.setQuadding=function(t){this.dict.set(rb.of("Q"),rc.of(t))},e.prototype.getQuadding=function(){var t;return null===(t=this.Q())||void 0===t?void 0:t.asNumber()},e.prototype.setValue=function(t){this.dict.set(rb.of("V"),t)},e.prototype.removeValue=function(){this.dict.delete(rb.of("V"))},e.prototype.getValue=function(){var t=this.V();if(t instanceof r$||t instanceof rK)return t},e.fromDict=function(t,r){return new e(t,r)},e.create=function(t){var r=t.obj({FT:"Tx",Kids:[]}),n=t.register(r);return new e(r,n)},e}(nO),nM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tu(e,t),e.fromDict=function(t,r){return new e(t,r)},e.create=function(t){var r=t.obj({FT:"Btn",Ff:Y.PushButton,Kids:[]}),n=t.register(r);return new e(r,n)},e}(nA),nE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tu(e,t),e.prototype.setValue=function(t){if(!this.getOnValues().includes(t)&&t!==rb.of("Off"))throw new e2;this.dict.set(rb.of("V"),t);for(var e=this.getWidgets(),r=0,n=e.length;r<n;r++){var o=e[r],i=o.getOnValue()===t?t:rb.of("Off");o.setAppearanceState(i)}},e.prototype.getValue=function(){var t=this.V();return t instanceof rb?t:rb.of("Off")},e.prototype.getOnValues=function(){for(var t=this.getWidgets(),e=[],r=0,n=t.length;r<n;r++){var o=t[r].getOnValue();o&&e.push(o)}return e},e.fromDict=function(t,r){return new e(t,r)},e.create=function(t){var r=t.obj({FT:"Btn",Ff:Y.Radio,Kids:[]}),n=t.register(r);return new e(r,n)},e}(nA),nI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tu(e,t),e.fromDict=function(t,r){return new e(t,r)},e.create=function(t){var r=t.obj({FT:"Ch",Kids:[]}),n=t.register(r);return new e(r,n)},e}(nR),nV=function(t){if(!t)return[];for(var e=[],r=0,n=t.size();r<n;r++){var o=t.get(r),i=t.lookup(r);o instanceof rT&&i instanceof rx&&e.push([nU(i,o),o])}return e},nU=function(t,e){return nW(t)?nD.fromDict(t,e):nq(t,e)},nW=function(t){var e=t.lookup(rb.of("Kids"));if(e instanceof ru)for(var r=0,n=e.size();r<n;r++){var o=e.lookup(r);if(o instanceof rx&&o.has(rb.of("T")))return!0}return!1},nq=function(t,e){var r=nX(t,rb.of("FT")),n=t.context.lookup(r,rb);return n===rb.of("Btn")?nG(t,e):n===rb.of("Ch")?nK(t,e):n===rb.of("Tx")?nB.fromDict(t,e):n===rb.of("Sig")?nz.fromDict(t,e):nO.fromDict(t,e)},nG=function(t,e){var r,n=nX(t,rb.of("Ff")),o=t.context.lookupMaybe(n,rc),i=null!==(r=null==o?void 0:o.asNumber())&&void 0!==r?r:0;return nL(i,Y.PushButton)?nM.fromDict(t,e):nL(i,Y.Radio)?nE.fromDict(t,e):nP.fromDict(t,e)},nK=function(t,e){var r,n=nX(t,rb.of("Ff")),o=t.context.lookupMaybe(n,rc);return nL(null!==(r=null==o?void 0:o.asNumber())&&void 0!==r?r:0,Q.Combo)?nj.fromDict(t,e):nI.fromDict(t,e)},nL=function(t,e){return(t&e)!=0},nX=function(t,e){var r;return nH(t,function(t){r||(r=t.get(e))}),r},nH=function(t,e){e(t);var r=t.lookupMaybe(rb.of("Parent"),rx);r&&nH(r,e)},nZ=function(){function t(t){this.dict=t}return t.prototype.Fields=function(){var t=this.dict.lookup(rb.of("Fields"));if(t instanceof ru)return t},t.prototype.getFields=function(){for(var t=this.normalizedEntries().Fields,e=Array(t.size()),r=0,n=t.size();r<n;r++){var o=t.get(r),i=t.lookup(r,rx);e[r]=[nU(i,o),o]}return e},t.prototype.getAllFields=function(){var t=[],e=function(r){if(r)for(var n=0,o=r.length;n<o;n++){var i=r[n];t.push(i);var a=i[0];a instanceof nD&&e(nV(a.Kids()))}};return e(this.getFields()),t},t.prototype.addField=function(t){var e=this.normalizedEntries().Fields;null==e||e.push(t)},t.prototype.removeField=function(t){var e=t.getParent(),r=void 0===e?this.normalizedEntries().Fields:e.Kids(),n=null==r?void 0:r.indexOf(t.ref);if(void 0===r||void 0===n)throw Error("Tried to remove inexistent field "+t.getFullyQualifiedName());r.remove(n),void 0!==e&&0===r.size()&&this.removeField(e)},t.prototype.normalizedEntries=function(){var t=this.Fields();return t||(t=this.dict.context.obj([]),this.dict.set(rb.of("Fields"),t)),{Fields:t}},t.fromDict=function(e){return new t(e)},t.create=function(e){var r=e.obj({Fields:[]});return new t(r)},t}(),nY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tu(e,t),e.prototype.Pages=function(){return this.lookup(rb.of("Pages"),rx)},e.prototype.AcroForm=function(){return this.lookupMaybe(rb.of("AcroForm"),rx)},e.prototype.getAcroForm=function(){var t=this.AcroForm();if(t)return nZ.fromDict(t)},e.prototype.getOrCreateAcroForm=function(){var t=this.getAcroForm();if(!t){t=nZ.create(this.context);var e=this.context.register(t.dict);this.set(rb.of("AcroForm"),e)}return t},e.prototype.ViewerPreferences=function(){return this.lookupMaybe(rb.of("ViewerPreferences"),rx)},e.prototype.getViewerPreferences=function(){var t=this.ViewerPreferences();if(t)return nw.fromDict(t)},e.prototype.getOrCreateViewerPreferences=function(){var t=this.getViewerPreferences();if(!t){t=nw.create(this.context);var e=this.context.register(t.dict);this.set(rb.of("ViewerPreferences"),e)}return t},e.prototype.insertLeafNode=function(t,e){var r=this.get(rb.of("Pages"));return this.Pages().insertLeafNode(t,e)||r},e.prototype.removeLeafNode=function(t){this.Pages().removeLeafNode(t)},e.withContextAndPages=function(t,r){var n=new Map;return n.set(rb.of("Type"),rb.of("Catalog")),n.set(rb.of("Pages"),r),new e(n,t)},e.fromMapWithContext=function(t,r){return new e(t,r)},e}(rx),nJ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tu(e,t),e.prototype.Parent=function(){return this.lookup(rb.of("Parent"))},e.prototype.Kids=function(){return this.lookup(rb.of("Kids"),ru)},e.prototype.Count=function(){return this.lookup(rb.of("Count"),rc)},e.prototype.pushTreeNode=function(t){this.Kids().push(t)},e.prototype.pushLeafNode=function(t){var e=this.Kids();this.insertLeafKid(e.size(),t)},e.prototype.insertLeafNode=function(t,r){var n=this.Kids(),o=this.Count().asNumber();if(r>o)throw new e$(r,o);for(var i=r,a=0,s=n.size();a<s;a++){if(0===i){this.insertLeafKid(a,t);return}var l=n.get(a),c=this.context.lookup(l);if(c instanceof e){if(c.Count().asNumber()>i)return c.insertLeafNode(t,i)||l;i-=c.Count().asNumber()}c instanceof rz&&(i-=1)}if(0===i){this.insertLeafKid(n.size(),t);return}throw new e0(r,"insertLeafNode")},e.prototype.removeLeafNode=function(t,r){void 0===r&&(r=!0);var n=this.Kids(),o=this.Count().asNumber();if(t>=o)throw new e$(t,o);for(var i=t,a=0,s=n.size();a<s;a++){var l=n.get(a),c=this.context.lookup(l);if(c instanceof e){if(c.Count().asNumber()>i){c.removeLeafNode(i,r),r&&0===c.Kids().size()&&n.remove(a);return}i-=c.Count().asNumber()}if(c instanceof rz){if(0===i){this.removeKid(a);return}i-=1}}throw new e0(t,"removeLeafNode")},e.prototype.ascend=function(t){t(this);var e=this.Parent();e&&e.ascend(t)},e.prototype.traverse=function(t){for(var r=this.Kids(),n=0,o=r.size();n<o;n++){var i=r.get(n),a=this.context.lookup(i);a instanceof e&&a.traverse(t),t(a,i)}},e.prototype.insertLeafKid=function(t,e){var r=this.Kids();this.ascend(function(t){var e=t.Count().asNumber()+1;t.set(rb.of("Count"),rc.of(e))}),r.insert(t,e)},e.prototype.removeKid=function(t){var e=this.Kids();e.lookup(t) instanceof rz&&this.ascend(function(t){var e=t.Count().asNumber()-1;t.set(rb.of("Count"),rc.of(e))}),e.remove(t)},e.withContext=function(t,r){var n=new Map;return n.set(rb.of("Type"),rb.of("Pages")),n.set(rb.of("Kids"),t.obj([])),n.set(rb.of("Count"),t.obj(0)),r&&n.set(rb.of("Parent"),r),new e(n,t)},e.fromMapWithContext=function(t,r){return new e(t,r)},e}(rx),nQ=new Uint8Array(256);nQ[ra.Zero]=1,nQ[ra.One]=1,nQ[ra.Two]=1,nQ[ra.Three]=1,nQ[ra.Four]=1,nQ[ra.Five]=1,nQ[ra.Six]=1,nQ[ra.Seven]=1,nQ[ra.Eight]=1,nQ[ra.Nine]=1;var n_=new Uint8Array(256);n_[ra.Period]=1,n_[ra.Plus]=1,n_[ra.Minus]=1;for(var n$=new Uint8Array(256),n0=0;n0<256;n0++)n$[n0]=nQ[n0]||n_[n0]?1:0;var n1=ra.Newline,n2=ra.CarriageReturn,n5=function(){function t(t,e){void 0===e&&(e=!1),this.bytes=t,this.capNumbers=e}return t.prototype.parseRawInt=function(){for(var t="";!this.bytes.done()&&nQ[this.bytes.peek()];)t+=tC(this.bytes.next());var e=Number(t);if(!t||!isFinite(e))throw new e6(this.bytes.position(),t);return e},t.prototype.parseRawNumber=function(){for(var t="";!this.bytes.done();){var e=this.bytes.peek();if(!n$[e]||(t+=tC(this.bytes.next()),e===ra.Period))break}for(;!this.bytes.done();){var e=this.bytes.peek();if(!nQ[e])break;t+=tC(this.bytes.next())}var r=Number(t);if(!t||!isFinite(r))throw new e6(this.bytes.position(),t);if(r>Number.MAX_SAFE_INTEGER){if(this.capNumbers){var n="Parsed number that is too large for some PDF readers: "+t+", using Number.MAX_SAFE_INTEGER instead.";return console.warn(n),Number.MAX_SAFE_INTEGER}var n="Parsed number that is too large for some PDF readers: "+t+", not capping.";console.warn(n)}return r},t.prototype.skipWhitespace=function(){for(;!this.bytes.done()&&rp[this.bytes.peek()];)this.bytes.next()},t.prototype.skipLine=function(){for(;!this.bytes.done();){var t=this.bytes.peek();if(t===n1||t===n2)return;this.bytes.next()}},t.prototype.skipComment=function(){if(this.bytes.peek()!==ra.Percent)return!1;for(;!this.bytes.done();){var t=this.bytes.peek();if(t===n1||t===n2)break;this.bytes.next()}return!0},t.prototype.skipWhitespaceAndComments=function(){for(this.skipWhitespace();this.skipComment();)this.skipWhitespace()},t.prototype.matchKeyword=function(t){for(var e=this.bytes.offset(),r=0,n=t.length;r<n;r++)if(this.bytes.done()||this.bytes.next()!==t[r])return this.bytes.moveTo(e),!1;return!0},t}(),n3=function(){function t(t){this.idx=0,this.line=0,this.column=0,this.bytes=t,this.length=this.bytes.length}return t.prototype.moveTo=function(t){this.idx=t},t.prototype.next=function(){var t=this.bytes[this.idx++];return t===ra.Newline?(this.line+=1,this.column=0):this.column+=1,t},t.prototype.assertNext=function(t){if(this.peek()!==t)throw new e9(this.position(),t,this.peek());return this.next()},t.prototype.peek=function(){return this.bytes[this.idx]},t.prototype.peekAhead=function(t){return this.bytes[this.idx+t]},t.prototype.peekAt=function(t){return this.bytes[t]},t.prototype.done=function(){return this.idx>=this.length},t.prototype.offset=function(){return this.idx},t.prototype.slice=function(t,e){return this.bytes.slice(t,e)},t.prototype.position=function(){return{line:this.line,column:this.column,offset:this.idx}},t.of=function(e){return new t(e)},t.fromPDFRawStream=function(e){return t.of(nv(e).decode())},t}(),n4=ra.Space,n6=ra.CarriageReturn,n8=ra.Newline,n9=[ra.s,ra.t,ra.r,ra.e,ra.a,ra.m],n7=[ra.e,ra.n,ra.d,ra.s,ra.t,ra.r,ra.e,ra.a,ra.m],ot={header:[ra.Percent,ra.P,ra.D,ra.F,ra.Dash],eof:[ra.Percent,ra.Percent,ra.E,ra.O,ra.F],obj:[ra.o,ra.b,ra.j],endobj:[ra.e,ra.n,ra.d,ra.o,ra.b,ra.j],xref:[ra.x,ra.r,ra.e,ra.f],trailer:[ra.t,ra.r,ra.a,ra.i,ra.l,ra.e,ra.r],startxref:[ra.s,ra.t,ra.a,ra.r,ra.t,ra.x,ra.r,ra.e,ra.f],true:[ra.t,ra.r,ra.u,ra.e],false:[ra.f,ra.a,ra.l,ra.s,ra.e],null:[ra.n,ra.u,ra.l,ra.l],stream:n9,streamEOF1:tp(n9,[n4,n6,n8]),streamEOF2:tp(n9,[n6,n8]),streamEOF3:tp(n9,[n6]),streamEOF4:tp(n9,[n8]),endstream:n7,EOF1endstream:tp([n6,n8],n7),EOF2endstream:tp([n6],n7),EOF3endstream:tp([n8],n7)},oe=function(t){function e(e,r,n){void 0===n&&(n=!1);var o=t.call(this,e,n)||this;return o.context=r,o}return tu(e,t),e.prototype.parseObject=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(ot.true))return rh.True;if(this.matchKeyword(ot.false))return rh.False;if(this.matchKeyword(ot.null))return rw;var t=this.bytes.peek();if(t===ra.LessThan&&this.bytes.peekAhead(1)===ra.LessThan)return this.parseDictOrStream();if(t===ra.LessThan)return this.parseHexString();if(t===ra.LeftParen)return this.parseString();if(t===ra.ForwardSlash)return this.parseName();if(t===ra.LeftSquareBracket)return this.parseArray();if(n$[t])return this.parseNumberOrRef();throw new e7(this.bytes.position(),t)},e.prototype.parseNumberOrRef=function(){var t=this.parseRawNumber();this.skipWhitespaceAndComments();var e=this.bytes.offset();if(nQ[this.bytes.peek()]){var r=this.parseRawNumber();if(this.skipWhitespaceAndComments(),this.bytes.peek()===ra.R)return this.bytes.assertNext(ra.R),rT.of(t,r)}return this.bytes.moveTo(e),rc.of(t)},e.prototype.parseHexString=function(){var t="";for(this.bytes.assertNext(ra.LessThan);!this.bytes.done()&&this.bytes.peek()!==ra.GreaterThan;)t+=tC(this.bytes.next());return this.bytes.assertNext(ra.GreaterThan),rK.of(t)},e.prototype.parseString=function(){for(var t=0,e=!1,r="";!this.bytes.done();){var n=this.bytes.next();if(r+=tC(n),e||(n===ra.LeftParen&&(t+=1),n!==ra.RightParen||(t-=1)),n===ra.BackSlash?e=!e:e&&(e=!1),0===t)return r$.of(r.substring(1,r.length-1))}throw new rr(this.bytes.position())},e.prototype.parseName=function(){this.bytes.assertNext(ra.ForwardSlash);for(var t="";!this.bytes.done();){var e=this.bytes.peek();if(rp[e]||rf[e])break;t+=tC(e),this.bytes.next()}return rb.of(t)},e.prototype.parseArray=function(){this.bytes.assertNext(ra.LeftSquareBracket),this.skipWhitespaceAndComments();for(var t=ru.withContext(this.context);this.bytes.peek()!==ra.RightSquareBracket;){var e=this.parseObject();t.push(e),this.skipWhitespaceAndComments()}return this.bytes.assertNext(ra.RightSquareBracket),t},e.prototype.parseDict=function(){this.bytes.assertNext(ra.LessThan),this.bytes.assertNext(ra.LessThan),this.skipWhitespaceAndComments();for(var t=new Map;!this.bytes.done()&&this.bytes.peek()!==ra.GreaterThan&&this.bytes.peekAhead(1)!==ra.GreaterThan;){var e=this.parseName(),r=this.parseObject();t.set(e,r),this.skipWhitespaceAndComments()}this.skipWhitespaceAndComments(),this.bytes.assertNext(ra.GreaterThan),this.bytes.assertNext(ra.GreaterThan);var n=t.get(rb.of("Type"));return n===rb.of("Catalog")?nY.fromMapWithContext(t,this.context):n===rb.of("Pages")?nJ.fromMapWithContext(t,this.context):n===rb.of("Page")?rz.fromMapWithContext(t,this.context):rx.fromMapWithContext(t,this.context)},e.prototype.parseDictOrStream=function(){var t,e=this.bytes.position(),r=this.parseDict();if(this.skipWhitespaceAndComments(),!this.matchKeyword(ot.streamEOF1)&&!this.matchKeyword(ot.streamEOF2)&&!this.matchKeyword(ot.streamEOF3)&&!this.matchKeyword(ot.streamEOF4)&&!this.matchKeyword(ot.stream))return r;var n=this.bytes.offset(),o=r.get(rb.of("Length"));o instanceof rc?(t=n+o.asNumber(),this.bytes.moveTo(t),this.skipWhitespaceAndComments(),this.matchKeyword(ot.endstream)||(this.bytes.moveTo(n),t=this.findEndOfStreamFallback(e))):t=this.findEndOfStreamFallback(e);var i=this.bytes.slice(n,t);return rk.of(r,i)},e.prototype.findEndOfStreamFallback=function(t){for(var e=1,r=this.bytes.offset();!this.bytes.done()&&(r=this.bytes.offset(),this.matchKeyword(ot.stream)?e+=1:this.matchKeyword(ot.EOF1endstream)||this.matchKeyword(ot.EOF2endstream)||this.matchKeyword(ot.EOF3endstream)||this.matchKeyword(ot.endstream)?e-=1:this.bytes.next(),0!==e););if(0!==e)throw new re(t);return r},e.forBytes=function(t,r,n){return new e(n3.of(t),r,n)},e.forByteStream=function(t,r,n){return void 0===n&&(n=!1),new e(t,r,n)},e}(n5),or=function(t){function e(e,r){var n=t.call(this,n3.fromPDFRawStream(e),e.dict.context)||this,o=e.dict;return n.alreadyParsed=!1,n.shouldWaitForTick=r||function(){return!1},n.firstOffset=o.lookup(rb.of("First"),rc).asNumber(),n.objectCount=o.lookup(rb.of("N"),rc).asNumber(),n}return tu(e,t),e.prototype.parseIntoContext=function(){return th(this,void 0,void 0,function(){var t,e,r,n,o,i,a,s;return tf(this,function(l){switch(l.label){case 0:if(this.alreadyParsed)throw new eH("PDFObjectStreamParser","parseIntoContext");this.alreadyParsed=!0,t=this.parseOffsetsAndObjectNumbers(),e=0,r=t.length,l.label=1;case 1:if(!(e<r))return[3,4];if(o=(n=t[e]).objectNumber,i=n.offset,this.bytes.moveTo(this.firstOffset+i),a=this.parseObject(),s=rT.of(o,0),this.context.assign(s,a),!this.shouldWaitForTick())return[3,3];return[4,t_()];case 2:l.sent(),l.label=3;case 3:return e++,[3,1];case 4:return[2]}})})},e.prototype.parseOffsetsAndObjectNumbers=function(){for(var t=[],e=0,r=this.objectCount;e<r;e++){this.skipWhitespaceAndComments();var n=this.parseRawInt();this.skipWhitespaceAndComments();var o=this.parseRawInt();t.push({objectNumber:n,offset:o})}return t},e.forStream=function(t,r){return new e(t,r)},e}(oe),on=function(){function t(t){this.alreadyParsed=!1,this.dict=t.dict,this.bytes=n3.fromPDFRawStream(t),this.context=this.dict.context;var e=this.dict.lookup(rb.of("Size"),rc),r=this.dict.lookup(rb.of("Index"));if(r instanceof ru){this.subsections=[];for(var n=0,o=r.size();n<o;n+=2){var i=r.lookup(n+0,rc).asNumber(),a=r.lookup(n+1,rc).asNumber();this.subsections.push({firstObjectNumber:i,length:a})}}else this.subsections=[{firstObjectNumber:0,length:e.asNumber()}];var s=this.dict.lookup(rb.of("W"),ru);this.byteWidths=[-1,-1,-1];for(var n=0,o=s.size();n<o;n++)this.byteWidths[n]=s.lookup(n,rc).asNumber()}return t.prototype.parseIntoContext=function(){if(this.alreadyParsed)throw new eH("PDFXRefStreamParser","parseIntoContext");return this.alreadyParsed=!0,this.context.trailerInfo={Root:this.dict.get(rb.of("Root")),Encrypt:this.dict.get(rb.of("Encrypt")),Info:this.dict.get(rb.of("Info")),ID:this.dict.get(rb.of("ID"))},this.parseEntries()},t.prototype.parseEntries=function(){for(var t=[],e=this.byteWidths,r=e[0],n=e[1],o=e[2],i=0,a=this.subsections.length;i<a;i++)for(var s=this.subsections[i],l=s.firstObjectNumber,c=s.length,u=0;u<c;u++){for(var d=0,h=0,f=r;h<f;h++)d=d<<8|this.bytes.next();for(var p=0,h=0,f=n;h<f;h++)p=p<<8|this.bytes.next();for(var g=0,h=0,f=o;h<f;h++)g=g<<8|this.bytes.next();0===r&&(d=1);var v=l+u,y={ref:rT.of(v,g),offset:p,deleted:0===d,inObjectStream:2===d};t.push(y)}return t},t.forStream=function(e){return new t(e)},t}(),oo=function(t){function e(e,r,n,o){void 0===r&&(r=1/0),void 0===n&&(n=!1),void 0===o&&(o=!1);var i=t.call(this,n3.of(e),rD.create(),o)||this;return i.alreadyParsed=!1,i.parsedObjects=0,i.shouldWaitForTick=function(){return i.parsedObjects+=1,i.parsedObjects%i.objectsPerTick==0},i.objectsPerTick=r,i.throwOnInvalidObject=n,i}return tu(e,t),e.prototype.parseDocument=function(){return th(this,void 0,void 0,function(){var t,e;return tf(this,function(r){switch(r.label){case 0:if(this.alreadyParsed)throw new eH("PDFParser","parseDocument");this.alreadyParsed=!0,this.context.header=this.parseHeader(),r.label=1;case 1:if(this.bytes.done())return[3,3];return[4,this.parseDocumentSection()];case 2:if(r.sent(),(e=this.bytes.offset())===t)throw new rn(this.bytes.position());return t=e,[3,1];case 3:return this.maybeRecoverRoot(),this.context.lookup(rT.of(0))&&(console.warn("Removing parsed object: 0 0 R"),this.context.delete(rT.of(0))),[2,this.context]}})})},e.prototype.maybeRecoverRoot=function(){var t=function(t){return t instanceof rx&&t.lookup(rb.of("Type"))===rb.of("Catalog")};if(!t(this.context.lookup(this.context.trailerInfo.Root)))for(var e=this.context.enumerateIndirectObjects(),r=0,n=e.length;r<n;r++){var o=e[r],i=o[0];t(o[1])&&(this.context.trailerInfo.Root=i)}},e.prototype.parseHeader=function(){for(;!this.bytes.done();){if(this.matchKeyword(ot.header)){var t=this.parseRawInt();this.bytes.assertNext(ra.Period);var e=this.parseRawInt(),r=rs.forVersion(t,e);return this.skipBinaryHeaderComment(),r}this.bytes.next()}throw new ro(this.bytes.position())},e.prototype.parseIndirectObjectHeader=function(){this.skipWhitespaceAndComments();var t=this.parseRawInt();this.skipWhitespaceAndComments();var e=this.parseRawInt();if(this.skipWhitespaceAndComments(),!this.matchKeyword(ot.obj))throw new ri(this.bytes.position(),ot.obj);return rT.of(t,e)},e.prototype.matchIndirectObjectHeader=function(){var t=this.bytes.offset();try{return this.parseIndirectObjectHeader(),!0}catch(e){return this.bytes.moveTo(t),!1}},e.prototype.parseIndirectObject=function(){return th(this,void 0,void 0,function(){var t,e;return tf(this,function(r){switch(r.label){case 0:if(t=this.parseIndirectObjectHeader(),this.skipWhitespaceAndComments(),e=this.parseObject(),this.skipWhitespaceAndComments(),this.matchKeyword(ot.endobj),!(e instanceof rk&&e.dict.lookup(rb.of("Type"))===rb.of("ObjStm")))return[3,2];return[4,or.forStream(e,this.shouldWaitForTick).parseIntoContext()];case 1:return r.sent(),[3,3];case 2:e instanceof rk&&e.dict.lookup(rb.of("Type"))===rb.of("XRef")?on.forStream(e).parseIntoContext():this.context.assign(t,e),r.label=3;case 3:return[2,t]}})})},e.prototype.tryToParseInvalidIndirectObject=function(){var t=this.bytes.position(),e="Trying to parse invalid object: "+JSON.stringify(t)+")";if(this.throwOnInvalidObject)throw Error(e);console.warn(e);var r=this.parseIndirectObjectHeader();console.warn("Invalid object ref: "+r),this.skipWhitespaceAndComments();for(var n=this.bytes.offset(),o=!0;!this.bytes.done()&&(this.matchKeyword(ot.endobj)&&(o=!1),o);)this.bytes.next();if(o)throw new rt(t);var i=this.bytes.offset()-ot.endobj.length,a=rW.of(this.bytes.slice(n,i));return this.context.assign(r,a),r},e.prototype.parseIndirectObjects=function(){return th(this,void 0,void 0,function(){var t;return tf(this,function(e){switch(e.label){case 0:this.skipWhitespaceAndComments(),e.label=1;case 1:if(!(!this.bytes.done()&&nQ[this.bytes.peek()]))return[3,8];t=this.bytes.offset(),e.label=2;case 2:return e.trys.push([2,4,,5]),[4,this.parseIndirectObject()];case 3:return e.sent(),[3,5];case 4:return e.sent(),this.bytes.moveTo(t),this.tryToParseInvalidIndirectObject(),[3,5];case 5:if(this.skipWhitespaceAndComments(),this.skipJibberish(),!this.shouldWaitForTick())return[3,7];return[4,t_()];case 6:e.sent(),e.label=7;case 7:return[3,1];case 8:return[2]}})})},e.prototype.maybeParseCrossRefSection=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(ot.xref)){this.skipWhitespaceAndComments();for(var t=-1,e=rM.createEmpty();!this.bytes.done()&&nQ[this.bytes.peek()];){var r=this.parseRawInt();this.skipWhitespaceAndComments();var n=this.parseRawInt();this.skipWhitespaceAndComments();var o=this.bytes.peek();if(o===ra.n||o===ra.f){var i=rT.of(t,n);this.bytes.next()===ra.n?e.addEntry(i,r):e.addDeletedEntry(i,r),t+=1}else t=r;this.skipWhitespaceAndComments()}return e}},e.prototype.maybeParseTrailerDict=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(ot.trailer)){this.skipWhitespaceAndComments();var t=this.parseDict(),e=this.context;e.trailerInfo={Root:t.get(rb.of("Root"))||e.trailerInfo.Root,Encrypt:t.get(rb.of("Encrypt"))||e.trailerInfo.Encrypt,Info:t.get(rb.of("Info"))||e.trailerInfo.Info,ID:t.get(rb.of("ID"))||e.trailerInfo.ID}}},e.prototype.maybeParseTrailer=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(ot.startxref)){this.skipWhitespaceAndComments();var t=this.parseRawInt();return this.skipWhitespace(),this.matchKeyword(ot.eof),this.skipWhitespaceAndComments(),this.matchKeyword(ot.eof),this.skipWhitespaceAndComments(),rE.forLastCrossRefSectionOffset(t)}},e.prototype.parseDocumentSection=function(){return th(this,void 0,void 0,function(){return tf(this,function(t){switch(t.label){case 0:return[4,this.parseIndirectObjects()];case 1:return t.sent(),this.maybeParseCrossRefSection(),this.maybeParseTrailerDict(),this.maybeParseTrailer(),this.skipJibberish(),[2]}})})},e.prototype.skipJibberish=function(){for(this.skipWhitespaceAndComments();!this.bytes.done();){var t=this.bytes.offset(),e=this.bytes.peek();if(e>=ra.Space&&e<=ra.Tilde&&(this.matchKeyword(ot.xref)||this.matchKeyword(ot.trailer)||this.matchKeyword(ot.startxref)||this.matchIndirectObjectHeader())){this.bytes.moveTo(t);break}this.bytes.next()}},e.prototype.skipBinaryHeaderComment=function(){this.skipWhitespaceAndComments();try{var t=this.bytes.offset();this.parseIndirectObjectHeader(),this.bytes.moveTo(t)}catch(t){this.bytes.next(),this.skipWhitespaceAndComments()}},e.forBytesWithOptions=function(t,r,n,o){return new e(t,r,n,o)},e}(oe),oi=function(t){return 1<<t};(k=_||(_={}))[k.Invisible=oi(0)]="Invisible",k[k.Hidden=oi(1)]="Hidden",k[k.Print=oi(2)]="Print",k[k.NoZoom=oi(3)]="NoZoom",k[k.NoRotate=oi(4)]="NoRotate",k[k.NoView=oi(5)]="NoView",k[k.ReadOnly=oi(6)]="ReadOnly",k[k.Locked=oi(7)]="Locked",k[k.ToggleNoView=oi(8)]="ToggleNoView",k[k.LockedContents=oi(9)]="LockedContents";var oa=function(t){return t instanceof rb?t:rb.of(t)},os=function(t){return t instanceof rc?t:rc.of(t)},ol=function(t){return t instanceof rc?t.asNumber():t};(S=$||($={})).Degrees="degrees",S.Radians="radians";var oc=function(t){return eR(t,"degreeAngle",["number"]),{type:$.Degrees,angle:t}},ou=$.Radians,od=$.Degrees,oh=function(t){return t*Math.PI/180},of=function(t){return t.type===ou?t.angle:t.type===od?oh(t.angle):eo("Invalid rotation: "+JSON.stringify(t))},op=function(t){return t.type===ou?180*t.angle/Math.PI:t.type===od?t.angle:eo("Invalid rotation: "+JSON.stringify(t))},og=function(t){void 0===t&&(t=0);var e=t/90%4;return 0===e?0:1===e?90:2===e?180:3===e?270:0},ov=function(t,e){void 0===e&&(e=0);var r=og(e);return 90===r||270===r?{width:t.height,height:t.width}:{width:t.width,height:t.height}},oy=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0);var n=t.x,o=t.y,i=t.width,a=t.height,s=og(r),l=e/2;return 0===s?{x:n-l,y:o-l,width:i,height:a}:90===s?{x:n-a+l,y:o-l,width:a,height:i}:180===s?{x:n-i+l,y:o-a+l,width:i,height:a}:270===s?{x:n-l,y:o-i+l,width:a,height:i}:{x:n-l,y:o-l,width:i,height:a}},om=function(){return rO.of(rA.ClipNonZero)},ob=Math.cos,ow=Math.sin,ox=Math.tan,oF=function(t,e,r,n,o,i){return rO.of(rA.ConcatTransformationMatrix,[os(t),os(e),os(r),os(n),os(o),os(i)])},ok=function(t,e){return oF(1,0,0,1,t,e)},oS=function(t,e){return oF(t,0,0,e,0,0)},oC=function(t){return oF(ob(ol(t)),ow(ol(t)),-ow(ol(t)),ob(ol(t)),0,0)},oT=function(t){return oC(oh(ol(t)))},oO=function(t,e){return oF(1,ox(ol(t)),ox(ol(e)),1,0,0)},oA=function(t,e){return rO.of(rA.SetLineDashPattern,["["+t.map(os).join(" ")+"]",os(e)])};(C=tt||(tt={}))[C.Butt=0]="Butt",C[C.Round=1]="Round",C[C.Projecting=2]="Projecting";var oP=function(t){return rO.of(rA.SetLineCapStyle,[os(t)])};(T=te||(te={}))[T.Miter=0]="Miter",T[T.Round=1]="Round",T[T.Bevel=2]="Bevel";var oN=function(t){return rO.of(rA.SetGraphicsStateParams,[oa(t)])},oR=function(){return rO.of(rA.PushGraphicsState)},oj=function(){return rO.of(rA.PopGraphicsState)},oD=function(t){return rO.of(rA.SetLineWidth,[os(t)])},oz=function(t,e,r,n,o,i){return rO.of(rA.AppendBezierCurve,[os(t),os(e),os(r),os(n),os(o),os(i)])},oB=function(t,e,r,n){return rO.of(rA.CurveToReplicateInitialPoint,[os(t),os(e),os(r),os(n)])},oM=function(){return rO.of(rA.ClosePath)},oE=function(t,e){return rO.of(rA.MoveTo,[os(t),os(e)])},oI=function(t,e){return rO.of(rA.LineTo,[os(t),os(e)])},oV=function(){return rO.of(rA.StrokePath)},oU=function(){return rO.of(rA.FillNonZero)},oW=function(){return rO.of(rA.FillNonZeroAndStroke)},oq=function(){return rO.of(rA.EndPath)},oG=function(t){return rO.of(rA.ShowText,[t])},oK=function(){return rO.of(rA.BeginText)},oL=function(){return rO.of(rA.EndText)},oX=function(t,e){return rO.of(rA.SetFontAndSize,[oa(t),os(e)])};(O=tr||(tr={}))[O.Fill=0]="Fill",O[O.Outline=1]="Outline",O[O.FillAndOutline=2]="FillAndOutline",O[O.Invisible=3]="Invisible",O[O.FillAndClip=4]="FillAndClip",O[O.OutlineAndClip=5]="OutlineAndClip",O[O.FillAndOutlineAndClip=6]="FillAndOutlineAndClip",O[O.Clip=7]="Clip";var oH=function(t,e,r,n,o){var i,a,s,l;return i=ob(ol(t)),a=ow(ol(t))+ox(ol(e)),s=-ow(ol(t))+ox(ol(r)),l=ob(ol(t)),rO.of(rA.SetTextMatrix,[os(i),os(a),os(s),os(l),os(n),os(o)])},oZ=function(t){return rO.of(rA.DrawObject,[oa(t)])},oY=function(t){return rO.of(rA.BeginMarkedContent,[oa(t)])},oJ=function(){return rO.of(rA.EndMarkedContent)};(A=tn||(tn={})).Grayscale="Grayscale",A.RGB="RGB",A.CMYK="CMYK";var oQ=function(t){return ez(t,"gray",0,1),{type:tn.Grayscale,gray:t}},o_=function(t,e,r){return ez(t,"red",0,1),ez(e,"green",0,1),ez(r,"blue",0,1),{type:tn.RGB,red:t,green:e,blue:r}},o$=function(t,e,r,n){return ez(t,"cyan",0,1),ez(e,"magenta",0,1),ez(r,"yellow",0,1),ez(n,"key",0,1),{type:tn.CMYK,cyan:t,magenta:e,yellow:r,key:n}},o0=tn.Grayscale,o1=tn.RGB,o2=tn.CMYK,o5=function(t){var e,r,n,o,i,a,s,l;return t.type===o0?(e=t.gray,rO.of(rA.NonStrokingColorGray,[os(e)])):t.type===o1?(r=t.red,n=t.green,o=t.blue,rO.of(rA.NonStrokingColorRgb,[os(r),os(n),os(o)])):t.type===o2?(i=t.cyan,a=t.magenta,s=t.yellow,l=t.key,rO.of(rA.NonStrokingColorCmyk,[os(i),os(a),os(s),os(l)])):eo("Invalid color: "+JSON.stringify(t))},o3=function(t){var e,r,n,o,i,a,s,l;return t.type===o0?(e=t.gray,rO.of(rA.StrokingColorGray,[os(e)])):t.type===o1?(r=t.red,n=t.green,o=t.blue,rO.of(rA.StrokingColorRgb,[os(r),os(n),os(o)])):t.type===o2?(i=t.cyan,a=t.magenta,s=t.yellow,l=t.key,rO.of(rA.StrokingColorCmyk,[os(i),os(a),os(s),os(l)])):eo("Invalid color: "+JSON.stringify(t))},o4=function(t,e){return void 0===e&&(e=1),(null==t?void 0:t.length)===1?oQ(t[0]*e):(null==t?void 0:t.length)===3?o_(t[0]*e,t[1]*e,t[2]*e):(null==t?void 0:t.length)===4?o$(t[0]*e,t[1]*e,t[2]*e,t[3]*e):void 0},o6=function(t){return t.type===o0?[t.gray]:t.type===o1?[t.red,t.green,t.blue]:t.type===o2?[t.cyan,t.magenta,t.yellow,t.key]:eo("Invalid color: "+JSON.stringify(t))},o8=0,o9=0,o7=0,it=0,ie=0,ir=0,io=new Map([["A",7],["a",7],["C",6],["c",6],["H",1],["h",1],["L",2],["l",2],["M",2],["m",2],["Q",4],["q",4],["S",4],["s",4],["T",2],["t",2],["V",1],["v",1],["Z",0],["z",0]]),ii=function(t){for(var e,r=[],n=[],o="",i=!1,a=0,s=0;s<t.length;s++){var l=t[s];if(io.has(l))a=io.get(l),e&&(o.length>0&&(n[n.length]=+o),r[r.length]={cmd:e,args:n},n=[],o="",i=!1),e=l;else if([" ",","].includes(l)||"-"===l&&o.length>0&&"e"!==o[o.length-1]||"."===l&&i){if(0===o.length)continue;n.length===a?(r[r.length]={cmd:e,args:n},n=[+o],"M"===e&&(e="L"),"m"===e&&(e="l")):n[n.length]=+o,i="."===l,o=["-","."].includes(l)?l:""}else o+=l,"."===l&&(i=!0)}return o.length>0&&(n.length===a?(r[r.length]={cmd:e,args:n},n=[+o],"M"===e&&(e="L"),"m"===e&&(e="l")):n[n.length]=+o),r[r.length]={cmd:e,args:n},r},ia=function(t){o8=o9=o7=it=ie=ir=0;for(var e=[],r=0;r<t.length;r++){var n=t[r];if(n.cmd&&"function"==typeof is[n.cmd]){var o=is[n.cmd](n.args);Array.isArray(o)?e=e.concat(o):e.push(o)}}return e},is={M:function(t){return o8=t[0],o9=t[1],o7=it=null,ie=o8,ir=o9,oE(o8,o9)},m:function(t){return o8+=t[0],o9+=t[1],o7=it=null,ie=o8,ir=o9,oE(o8,o9)},C:function(t){return o8=t[4],o9=t[5],o7=t[2],it=t[3],oz(t[0],t[1],t[2],t[3],t[4],t[5])},c:function(t){var e=oz(t[0]+o8,t[1]+o9,t[2]+o8,t[3]+o9,t[4]+o8,t[5]+o9);return o7=o8+t[2],it=o9+t[3],o8+=t[4],o9+=t[5],e},S:function(t){(null===o7||null===it)&&(o7=o8,it=o9);var e=oz(o8-(o7-o8),o9-(it-o9),t[0],t[1],t[2],t[3]);return o7=t[0],it=t[1],o8=t[2],o9=t[3],e},s:function(t){(null===o7||null===it)&&(o7=o8,it=o9);var e=oz(o8-(o7-o8),o9-(it-o9),o8+t[0],o9+t[1],o8+t[2],o9+t[3]);return o7=o8+t[0],it=o9+t[1],o8+=t[2],o9+=t[3],e},Q:function(t){return o7=t[0],it=t[1],o8=t[2],o9=t[3],oB(t[0],t[1],o8,o9)},q:function(t){var e=oB(t[0]+o8,t[1]+o9,t[2]+o8,t[3]+o9);return o7=o8+t[0],it=o9+t[1],o8+=t[2],o9+=t[3],e},T:function(t){null===o7||null===it?(o7=o8,it=o9):(o7=o8-(o7-o8),it=o9-(it-o9));var e=oB(o7,it,t[0],t[1]);return o7=o8-(o7-o8),it=o9-(it-o9),o8=t[0],o9=t[1],e},t:function(t){null===o7||null===it?(o7=o8,it=o9):(o7=o8-(o7-o8),it=o9-(it-o9));var e=oB(o7,it,o8+t[0],o9+t[1]);return o8+=t[0],o9+=t[1],e},A:function(t){var e=il(o8,o9,t);return o8=t[5],o9=t[6],e},a:function(t){t[5]+=o8,t[6]+=o9;var e=il(o8,o9,t);return o8=t[5],o9=t[6],e},L:function(t){return o8=t[0],o9=t[1],o7=it=null,oI(o8,o9)},l:function(t){return o8+=t[0],o9+=t[1],o7=it=null,oI(o8,o9)},H:function(t){return o8=t[0],o7=it=null,oI(o8,o9)},h:function(t){return o8+=t[0],o7=it=null,oI(o8,o9)},V:function(t){return o9=t[0],o7=it=null,oI(o8,o9)},v:function(t){return o9+=t[0],o7=it=null,oI(o8,o9)},Z:function(){var t=oM();return o8=ie,o9=ir,t},z:function(){var t=oM();return o8=ie,o9=ir,t}},il=function(t,e,r){for(var n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],l=ic(r[5],r[6],n,o,a,s,i,t,e),c=[],u=0;u<l.length;u++){var d=iu.apply(void 0,l[u]);c.push(oz.apply(void 0,d))}return c},ic=function(t,e,r,n,o,i,a,s,l){var c=a*(Math.PI/180),u=Math.sin(c),d=Math.cos(c);r=Math.abs(r),n=Math.abs(n);var h=(o7=d*(s-t)*.5+u*(l-e)*.5)*o7/(r*r)+(it=d*(l-e)*.5-u*(s-t)*.5)*it/(n*n);h>1&&(r*=h=Math.sqrt(h),n*=h);var f=d/r,p=u/r,g=-u/n,v=d/n,y=f*s+p*l,m=g*s+v*l,b=f*t+p*e,w=g*t+v*e,x=1/((b-y)*(b-y)+(w-m)*(w-m))-.25;x<0&&(x=0);var F=Math.sqrt(x);i===o&&(F=-F);var k=.5*(y+b)-F*(w-m),S=.5*(m+w)+F*(b-y),C=Math.atan2(m-S,y-k),T=Math.atan2(w-S,b-k)-C;T<0&&1===i?T+=2*Math.PI:T>0&&0===i&&(T-=2*Math.PI);for(var O=Math.ceil(Math.abs(T/(.5*Math.PI+.001))),A=[],P=0;P<O;P++){var N=C+P*T/O,R=C+(P+1)*T/O;A[P]=[k,S,N,R,r,n,u,d]}return A},iu=function(t,e,r,n,o,i,a,s){var l=s*o,c=-a*i,u=a*o,d=s*i,h=.5*(n-r),f=8/3*Math.sin(.5*h)*Math.sin(.5*h)/Math.sin(h),p=t+Math.cos(r)-f*Math.sin(r),g=e+Math.sin(r)+f*Math.cos(r),v=t+Math.cos(n),y=e+Math.sin(n),m=v+f*Math.sin(n),b=y-f*Math.cos(n);return[l*p+c*g,u*p+d*g,l*m+c*b,u*m+d*b,l*v+c*y,u*v+d*y]},id=function(t,e){for(var r,n=[oR(),e.graphicsState&&oN(e.graphicsState),oK(),o5(e.color),oX(e.font,e.size),(r=e.lineHeight,rO.of(rA.SetTextLineHeight,[os(r)])),oH(of(e.rotate),of(e.xSkew),of(e.ySkew),e.x,e.y)].filter(Boolean),o=0,i=t.length;o<i;o++)n.push(oG(t[o]),rO.of(rA.NextLine));return n.push(oL(),oj()),n},ih=function(t,e){return[oR(),e.graphicsState&&oN(e.graphicsState),ok(e.x,e.y),oC(of(e.rotate)),oS(e.width,e.height),oO(of(e.xSkew),of(e.ySkew)),oZ(t),oj()].filter(Boolean)},ip=function(t){var e,r;return[oR(),t.graphicsState&&oN(t.graphicsState),t.color&&o3(t.color),oD(t.thickness),oA(null!==(e=t.dashArray)&&void 0!==e?e:[],null!==(r=t.dashPhase)&&void 0!==r?r:0),oE(t.start.x,t.start.y),t.lineCap&&oP(t.lineCap),oE(t.start.x,t.start.y),oI(t.end.x,t.end.y),oV(),oj()].filter(Boolean)},ig=function(t){var e,r;return[oR(),t.graphicsState&&oN(t.graphicsState),t.color&&o5(t.color),t.borderColor&&o3(t.borderColor),oD(t.borderWidth),t.borderLineCap&&oP(t.borderLineCap),oA(null!==(e=t.borderDashArray)&&void 0!==e?e:[],null!==(r=t.borderDashPhase)&&void 0!==r?r:0),ok(t.x,t.y),oC(of(t.rotate)),oO(of(t.xSkew),of(t.ySkew)),oE(0,0),oI(0,t.height),oI(t.width,t.height),oI(t.width,0),oM(),t.color&&t.borderWidth?oW():t.color?oU():t.borderColor?oV():oM(),oj()].filter(Boolean)},iv=4*((Math.sqrt(2)-1)/3),iy=function(t){var e=ol(t.x),r=ol(t.y),n=ol(t.xScale),o=ol(t.yScale);e-=n,r-=o;var i=n*iv,a=o*iv,s=e+2*n,l=r+2*o,c=e+n,u=r+o;return[oR(),oE(e,u),oz(e,u-a,c-i,r,c,r),oz(c+i,r,s,u-a,s,u),oz(s,u+a,c+i,l,c,l),oz(c-i,l,e,u+a,e,u),oj()]},im=function(t){var e=ol(t.x),r=ol(t.y),n=ol(t.xScale),o=ol(t.yScale),i=-n,a=-o,s=n*iv,l=o*iv,c=i+2*n,u=a+2*o,d=i+n,h=a+o;return[ok(e,r),oC(of(t.rotate)),oE(i,h),oz(i,h-l,d-s,a,d,a),oz(d+s,a,c,h-l,c,h),oz(c,h+l,d+s,u,d,u),oz(d-s,u,i,h+l,i,h)]},ib=function(t){var e,r,n;return tp([oR(),t.graphicsState&&oN(t.graphicsState),t.color&&o5(t.color),t.borderColor&&o3(t.borderColor),oD(t.borderWidth),t.borderLineCap&&oP(t.borderLineCap),oA(null!==(e=t.borderDashArray)&&void 0!==e?e:[],null!==(r=t.borderDashPhase)&&void 0!==r?r:0)],void 0===t.rotate?iy({x:t.x,y:t.y,xScale:t.xScale,yScale:t.yScale}):im({x:t.x,y:t.y,xScale:t.xScale,yScale:t.yScale,rotate:null!==(n=t.rotate)&&void 0!==n?n:oc(0)}),[t.color&&t.borderWidth?oW():t.color?oU():t.borderColor?oV():oM(),oj()]).filter(Boolean)},iw=function(t,e){var r,n,o;return tp([oR(),e.graphicsState&&oN(e.graphicsState),ok(e.x,e.y),oC(of(null!==(r=e.rotate)&&void 0!==r?r:oc(0))),e.scale?oS(e.scale,-e.scale):oS(1,-1),e.color&&o5(e.color),e.borderColor&&o3(e.borderColor),e.borderWidth&&oD(e.borderWidth),e.borderLineCap&&oP(e.borderLineCap),oA(null!==(n=e.borderDashArray)&&void 0!==n?n:[],null!==(o=e.borderDashPhase)&&void 0!==o?o:0)],ia(ii(t)),[e.color&&e.borderWidth?oW():e.color?oU():e.borderColor?oV():oM(),oj()]).filter(Boolean)},ix=function(t){var e=ol(t.size);return[oR(),t.color&&o3(t.color),oD(t.thickness),ok(t.x,t.y),oE(-.675*e,-.07601036269430045*e),oI(-.25*e,-.49*e),oI(.69*e,.475*e),oV(),oj()].filter(Boolean)},iF=function(t){return 0===t.rotation?[ok(0,0),oT(0)]:90===t.rotation?[ok(t.width,0),oT(90)]:180===t.rotation?[ok(t.width,t.height),oT(180)]:270===t.rotation?[ok(0,t.height),oT(270)]:[]},ik=function(t){var e=ig({x:t.x,y:t.y,width:t.width,height:t.height,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:oc(0),xSkew:oc(0),ySkew:oc(0)});if(!t.filled)return e;var r=ol(t.width),n=ol(t.height),o=ix({x:r/2,y:n/2,size:Math.min(r,n)/2,thickness:t.thickness,color:t.markColor});return tp([oR()],e,o,[oj()])},iS=function(t){var e=Math.min(ol(t.width),ol(t.height))/2,r=ib({x:t.x,y:t.y,xScale:e,yScale:e,color:t.color,borderColor:t.borderColor,borderWidth:t.borderWidth});if(!t.filled)return r;var n=ib({x:t.x,y:t.y,xScale:.45*e,yScale:.45*e,color:t.dotColor,borderColor:void 0,borderWidth:0});return tp([oR()],r,n,[oj()])},iC=function(t){var e=ig({x:ol(t.x),y:ol(t.y),width:ol(t.width),height:ol(t.height),borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:oc(0),xSkew:oc(0),ySkew:oc(0)}),r=iT(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:oc(0),xSkew:oc(0),ySkew:oc(0)});return tp([oR()],e,r,[oj()])},iT=function(t,e){for(var r=[oK(),o5(e.color),oX(e.font,e.size)],n=0,o=t.length;n<o;n++){var i=t[n],a=i.encoded,s=i.x,l=i.y;r.push(oH(of(e.rotate),of(e.xSkew),of(e.ySkew),s,l),oG(a))}return r.push(oL()),r},iO=function(t){var e=ol(t.x),r=ol(t.y),n=ol(t.width),o=ol(t.height),i=ol(t.borderWidth),a=ol(t.padding),s=e+i/2+a,l=r+i/2+a,c=n-(i/2+a)*2,u=o-(i/2+a)*2,d=[oE(s,l),oI(s,l+u),oI(s+c,l+u),oI(s+c,l),oM(),om(),oq()],h=ig({x:e,y:r,width:n,height:o,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:oc(0),xSkew:oc(0),ySkew:oc(0)}),f=iT(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:oc(0),xSkew:oc(0),ySkew:oc(0)}),p=tp([oY("Tx"),oR()],f,[oj(),oJ()]);return tp([oR()],h,d,p,[oj()])},iA=function(t){for(var e=ol(t.x),r=ol(t.y),n=ol(t.width),o=ol(t.height),i=ol(t.lineHeight),a=ol(t.borderWidth),s=ol(t.padding),l=e+a/2+s,c=r+a/2+s,u=n-(a/2+s)*2,d=o-(a/2+s)*2,h=[oE(l,c),oI(l,c+d),oI(l+u,c+d),oI(l+u,c),oM(),om(),oq()],f=ig({x:e,y:r,width:n,height:o,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:oc(0),xSkew:oc(0),ySkew:oc(0)}),p=[],g=0,v=t.selectedLines.length;g<v;g++){var y=t.textLines[t.selectedLines[g]];p.push.apply(p,ig({x:y.x-s,y:y.y-(i-y.height)/2,width:n-a,height:y.height+(i-y.height)/2,borderWidth:0,color:t.selectedColor,borderColor:void 0,rotate:oc(0),xSkew:oc(0),ySkew:oc(0)}))}var m=iT(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:oc(0),xSkew:oc(0),ySkew:oc(0)}),b=tp([oY("Tx"),oR()],m,[oj(),oJ()]);return tp([oR()],f,p,h,b,[oj()])},iP=function(t){function e(){return t.call(this,"Input document to `PDFDocument.load` is encrypted. You can use `PDFDocument.load(..., { ignoreEncryption: true })` if you wish to load the document anyways.")||this}return tu(e,t),e}(Error),iN=function(t){function e(){return t.call(this,"Input to `PDFDocument.embedFont` was a custom font, but no `fontkit` instance was found. You must register a `fontkit` instance with `PDFDocument.registerFontkit(...)` before embedding custom fonts.")||this}return tu(e,t),e}(Error),iR=function(t){function e(){return t.call(this,"A `page` passed to `PDFDocument.addPage` or `PDFDocument.insertPage` was from a different (foreign) PDF document. If you want to copy pages from one PDFDocument to another, you must use `PDFDocument.copyPages(...)` to copy the pages before adding or inserting them.")||this}return tu(e,t),e}(Error),ij=function(t){function e(){return t.call(this,"PDFDocument has no pages so `PDFDocument.removePage` cannot be called")||this}return tu(e,t),e}(Error),iD=function(t){function e(e){return t.call(this,'PDFDocument has no form field with the name "'+e+'"')||this}return tu(e,t),e}(Error),iz=function(t){function e(e,r,n){var o,i,a=null==r?void 0:r.name,s=null!==(i=null===(o=null==n?void 0:n.constructor)||void 0===o?void 0:o.name)&&void 0!==i?i:n;return t.call(this,'Expected field "'+e+'" to be of type '+a+", but it is actually of type "+s)||this}return tu(e,t),e}(Error);tu(function(t){return P.call(this,'Failed to select check box due to missing onValue: "'+t+'"')||this},P=Error);var iB=function(t){function e(e){return t.call(this,'A field already exists with the specified name: "'+e+'"')||this}return tu(e,t),e}(Error),iM=function(t){function e(e){return t.call(this,'Field name contains invalid component: "'+e+'"')||this}return tu(e,t),e}(Error);tu(function(t){return N.call(this,'A non-terminal field already exists with the specified name: "'+t+'"')||this},N=Error);var iE=function(t){function e(e){return t.call(this,"Reading rich text fields is not supported: Attempted to read rich text field: "+e)||this}return tu(e,t),e}(Error),iI=function(t){function e(e,r){return t.call(this,"Failed to layout combed text as lineLength="+e+" is greater than cellCount="+r)||this}return tu(e,t),e}(Error),iV=function(t){function e(e,r,n){return t.call(this,"Attempted to set text with length="+e+" for TextField with maxLength="+r+" and name="+n)||this}return tu(e,t),e}(Error),iU=function(t){function e(e,r,n){return t.call(this,"Attempted to set maxLength="+r+", which is less than "+e+", the length of this field's current value (name="+n+")")||this}return tu(e,t),e}(Error);(R=to||(to={}))[R.Left=0]="Left",R[R.Center=1]="Center",R[R.Right=2]="Right";var iW=function(t,e,r,n){void 0===n&&(n=!1);for(var o=4;o<500;){for(var i=0,a=0,s=t.length;a<s;a++){i+=1;for(var l=t[a].split(" "),c=r.width,u=0,d=l.length;u<d;u++){var h=u===d-1?l[u]:l[u]+" ",f=e.widthOfTextAtSize(h,o);(c-=f)<=0&&(i+=1,c=r.width-f)}}if(!n&&i>t.length)return o-1;var p=e.heightAtSize(o);if((p+.2*p)*i>Math.abs(r.height))return o-1;o+=1}return o},iq=function(t,e,r,n){for(var o=r.width/n,i=r.height,a=4,s=tz(t);a<500;){for(var l=0,c=s.length;l<c;l++){var u=s[l];if(e.widthOfTextAtSize(u,a)>.75*o)return a-1}if(e.heightAtSize(a,{descender:!1})>i)return a-1;a+=1}return a},iG=function(t){for(var e=t.length;e>0;e--)if(/\s/.test(t[e]))return e},iK=function(t,e,r,n){for(var o,i=t.length;i>0;){var a=t.substring(0,i),s=r.encodeText(a),l=r.widthOfTextAtSize(a,n);if(l<e)return{line:a,encoded:s,width:l,remainder:t.substring(i)||void 0};i=null!==(o=iG(a))&&void 0!==o?o:0}return{line:t,encoded:r.encodeText(t),width:r.widthOfTextAtSize(t,n),remainder:void 0}},iL=function(t,e){var r=e.alignment,n=e.fontSize,o=e.font,i=e.bounds,a=tR(tA(t));(void 0===n||0===n)&&(n=iW(a,o,i,!0));for(var s=o.heightAtSize(n),l=s+.2*s,c=[],u=i.x,d=i.y,h=i.x+i.width,f=i.y+i.height,p=i.y+i.height,g=0,v=a.length;g<v;g++)for(var y=a[g];void 0!==y;){var m=iK(y,i.width,o,n),b=m.line,w=m.encoded,x=m.width,F=m.remainder,k=r===to.Left?i.x:r===to.Center?i.x+i.width/2-x/2:r===to.Right?i.x+i.width-x:i.x;p-=l,k<u&&(u=k),p<d&&(d=p),k+x>h&&(h=k+x),p+s>f&&(f=p+s),c.push({text:b,encoded:w,width:x,height:s,x:k,y:p}),y=null==F?void 0:F.trim()}return{fontSize:n,lineHeight:l,lines:c,bounds:{x:u,y:d,width:h-u,height:f-d}}},iX=function(t,e){var r=e.fontSize,n=e.font,o=e.bounds,i=e.cellCount,a=tj(tA(t));if(a.length>i)throw new iI(a.length,i);(void 0===r||0===r)&&(r=iq(a,n,o,i));for(var s=o.width/i,l=n.heightAtSize(r,{descender:!1}),c=o.y+(o.height/2-l/2),u=[],d=o.x,h=o.y,f=o.x+o.width,p=o.y+o.height,g=0,v=0;g<i;){var y=tD(a,v),m=y[0],b=y[1],w=n.encodeText(m),x=n.widthOfTextAtSize(m,r),F=o.x+(s*g+s/2)-x/2;F<d&&(d=F),c<h&&(h=c),F+x>f&&(f=F+x),c+l>p&&(p=c+l),u.push({text:a,encoded:w,width:x,height:l,x:F,y:c}),g+=1,v+=b}return{fontSize:r,cells:u,bounds:{x:d,y:h,width:f-d,height:p-h}}},iH=function(t,e){var r=e.alignment,n=e.fontSize,o=e.font,i=e.bounds,a=tj(tA(t));(void 0===n||0===n)&&(n=iW([a],o,i));var s=o.encodeText(a),l=o.widthOfTextAtSize(a,n),c=o.heightAtSize(n,{descender:!1}),u=r===to.Left?i.x:r===to.Center?i.x+i.width/2-l/2:r===to.Right?i.x+i.width-l:i.x,d=i.y+(i.height/2-c/2);return{fontSize:n,line:{text:a,encoded:s,width:l,height:c,x:u,y:d},bounds:{x:u,y:d,width:l,height:c}}},iZ=function(t){return"normal"in t?t:{normal:t}},iY=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]+(\d*\.\d+|\d+)[\0\t\n\f\r\ ]+Tf/,iJ=function(t){var e,r,n=Number((null!==(r=tV(null!==(e=t.getDefaultAppearance())&&void 0!==e?e:"",iY).match)&&void 0!==r?r:[])[2]);return isFinite(n)?n:void 0},iQ=/(\d*\.\d+|\d+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+(g|rg|k)/,i_=function(t){var e,r=tV(null!==(e=t.getDefaultAppearance())&&void 0!==e?e:"",iQ).match,n=null!=r?r:[],o=n[1],i=n[2],a=n[3],s=n[4],l=n[5];return"g"===l&&o?oQ(Number(o)):"rg"===l&&o&&i&&a?o_(Number(o),Number(i),Number(a)):"k"===l&&o&&i&&a&&s?o$(Number(o),Number(i),Number(a),Number(s)):void 0},i$=function(t,e,r,n){void 0===n&&(n=0);var o,i=[o5(e).toString(),oX(null!==(o=null==r?void 0:r.name)&&void 0!==o?o:"dummy__noop",n).toString()].join("\n");t.setDefaultAppearance(i)},i0=function(t,e){var r,n,o,i=i_(e),a=i_(t.acroField),s=e.getRectangle(),l=e.getAppearanceCharacteristics(),c=e.getBorderStyle(),u=null!==(r=null==c?void 0:c.getWidth())&&void 0!==r?r:0,d=og(null==l?void 0:l.getRotation()),h=ov(s,d),f=h.width,p=h.height,g=iF(td(td({},s),{rotation:d})),v=o_(0,0,0),y=null!==(n=o4(null==l?void 0:l.getBorderColor()))&&void 0!==n?n:v,m=o4(null==l?void 0:l.getBackgroundColor()),b=o4(null==l?void 0:l.getBackgroundColor(),.8),w=null!==(o=null!=i?i:a)&&void 0!==o?o:v;i?i$(e,w):i$(t.acroField,w);var x={x:0+u/2,y:0+u/2,width:f-u,height:p-u,thickness:1.5,borderWidth:u,borderColor:y,markColor:w};return{normal:{on:tp(g,ik(td(td({},x),{color:m,filled:!0}))),off:tp(g,ik(td(td({},x),{color:m,filled:!1})))},down:{on:tp(g,ik(td(td({},x),{color:b,filled:!0}))),off:tp(g,ik(td(td({},x),{color:b,filled:!1})))}}},i1=function(t,e){var r,n,o,i=i_(e),a=i_(t.acroField),s=e.getRectangle(),l=e.getAppearanceCharacteristics(),c=e.getBorderStyle(),u=null!==(r=null==c?void 0:c.getWidth())&&void 0!==r?r:0,d=og(null==l?void 0:l.getRotation()),h=ov(s,d),f=h.width,p=h.height,g=iF(td(td({},s),{rotation:d})),v=o_(0,0,0),y=null!==(n=o4(null==l?void 0:l.getBorderColor()))&&void 0!==n?n:v,m=o4(null==l?void 0:l.getBackgroundColor()),b=o4(null==l?void 0:l.getBackgroundColor(),.8),w=null!==(o=null!=i?i:a)&&void 0!==o?o:v;i?i$(e,w):i$(t.acroField,w);var x={x:f/2,y:p/2,width:f-u,height:p-u,borderWidth:u,borderColor:y,dotColor:w};return{normal:{on:tp(g,iS(td(td({},x),{color:m,filled:!0}))),off:tp(g,iS(td(td({},x),{color:m,filled:!1})))},down:{on:tp(g,iS(td(td({},x),{color:b,filled:!0}))),off:tp(g,iS(td(td({},x),{color:b,filled:!1})))}}},i2=function(t,e,r){var n,o,i,a,s,l=i_(e),c=i_(t.acroField),u=iJ(e),d=iJ(t.acroField),h=e.getRectangle(),f=e.getAppearanceCharacteristics(),p=e.getBorderStyle(),g=null==f?void 0:f.getCaptions(),v=null!==(n=null==g?void 0:g.normal)&&void 0!==n?n:"",y=null!==(i=null!==(o=null==g?void 0:g.down)&&void 0!==o?o:v)&&void 0!==i?i:"",m=null!==(a=null==p?void 0:p.getWidth())&&void 0!==a?a:0,b=og(null==f?void 0:f.getRotation()),w=ov(h,b),x=w.width,F=w.height,k=iF(td(td({},h),{rotation:b})),S=o_(0,0,0),C=o4(null==f?void 0:f.getBorderColor()),T=o4(null==f?void 0:f.getBackgroundColor()),O=o4(null==f?void 0:f.getBackgroundColor(),.8),A={x:m,y:m,width:x-2*m,height:F-2*m},P=iH(v,{alignment:to.Center,fontSize:null!=u?u:d,font:r,bounds:A}),N=iH(y,{alignment:to.Center,fontSize:null!=u?u:d,font:r,bounds:A}),R=Math.min(P.fontSize,N.fontSize),j=null!==(s=null!=l?l:c)&&void 0!==s?s:S;l||void 0!==u?i$(e,j,r,R):i$(t.acroField,j,r,R);var D={x:0+m/2,y:0+m/2,width:x-m,height:F-m,borderWidth:m,borderColor:C,textColor:j,font:r.name,fontSize:R};return{normal:tp(k,iC(td(td({},D),{color:T,textLines:[P.line]}))),down:tp(k,iC(td(td({},D),{color:O,textLines:[N.line]})))}},i5=function(t,e,r){var n,o,i,a,s,l,c=i_(e),u=i_(t.acroField),d=iJ(e),h=iJ(t.acroField),f=e.getRectangle(),p=e.getAppearanceCharacteristics(),g=e.getBorderStyle(),v=null!==(n=t.getText())&&void 0!==n?n:"",y=null!==(o=null==g?void 0:g.getWidth())&&void 0!==o?o:0,m=og(null==p?void 0:p.getRotation()),b=ov(f,m),w=b.width,x=b.height,F=iF(td(td({},f),{rotation:m})),k=o_(0,0,0),S=o4(null==p?void 0:p.getBorderColor()),C=o4(null==p?void 0:p.getBackgroundColor()),T=t.isCombed()?0:1,O={x:y+T,y:y+T,width:w-(y+T)*2,height:x-(y+T)*2};if(t.isMultiline()){var A=iL(v,{alignment:t.getAlignment(),fontSize:null!=d?d:h,font:r,bounds:O});s=A.lines,l=A.fontSize}else if(t.isCombed()){var A=iX(v,{fontSize:null!=d?d:h,font:r,bounds:O,cellCount:null!==(i=t.getMaxLength())&&void 0!==i?i:0});s=A.cells,l=A.fontSize}else{var A=iH(v,{alignment:t.getAlignment(),fontSize:null!=d?d:h,font:r,bounds:O});s=[A.line],l=A.fontSize}var P=null!==(a=null!=c?c:u)&&void 0!==a?a:k;return c||void 0!==d?i$(e,P,r,l):i$(t.acroField,P,r,l),tp(F,iO({x:0+y/2,y:0+y/2,width:w-y,height:x-y,borderWidth:null!=y?y:0,borderColor:S,textColor:P,font:r.name,fontSize:l,color:C,textLines:s,padding:T}))},i3=function(t,e,r){var n,o,i,a=i_(e),s=i_(t.acroField),l=iJ(e),c=iJ(t.acroField),u=e.getRectangle(),d=e.getAppearanceCharacteristics(),h=e.getBorderStyle(),f=null!==(n=t.getSelected()[0])&&void 0!==n?n:"",p=null!==(o=null==h?void 0:h.getWidth())&&void 0!==o?o:0,g=og(null==d?void 0:d.getRotation()),v=ov(u,g),y=v.width,m=v.height,b=iF(td(td({},u),{rotation:g})),w=o_(0,0,0),x=o4(null==d?void 0:d.getBorderColor()),F=o4(null==d?void 0:d.getBackgroundColor()),k=iH(f,{alignment:to.Left,fontSize:null!=l?l:c,font:r,bounds:{x:p+1,y:p+1,width:y-(p+1)*2,height:m-(p+1)*2}}),S=k.line,C=k.fontSize,T=null!==(i=null!=a?a:s)&&void 0!==i?i:w;return a||void 0!==l?i$(e,T,r,C):i$(t.acroField,T,r,C),tp(b,iO({x:0+p/2,y:0+p/2,width:y-p,height:m-p,borderWidth:null!=p?p:0,borderColor:x,textColor:T,font:r.name,fontSize:C,color:F,textLines:[S],padding:1}))},i4=function(t,e,r){var n,o,i=i_(e),a=i_(t.acroField),s=iJ(e),l=iJ(t.acroField),c=e.getRectangle(),u=e.getAppearanceCharacteristics(),d=e.getBorderStyle(),h=null!==(n=null==d?void 0:d.getWidth())&&void 0!==n?n:0,f=og(null==u?void 0:u.getRotation()),p=ov(c,f),g=p.width,v=p.height,y=iF(td(td({},c),{rotation:f})),m=o_(0,0,0),b=o4(null==u?void 0:u.getBorderColor()),w=o4(null==u?void 0:u.getBackgroundColor()),x=t.getOptions(),F=t.getSelected();t.isSorted()&&x.sort();for(var k="",S=0,C=x.length;S<C;S++)k+=x[S],S<C-1&&(k+="\n");for(var T=iL(k,{alignment:to.Left,fontSize:null!=s?s:l,font:r,bounds:{x:h+1,y:h+1,width:g-(h+1)*2,height:v-(h+1)*2}}),O=T.lines,A=T.fontSize,P=T.lineHeight,N=[],S=0,C=O.length;S<C;S++){var R=O[S];F.includes(R.text)&&N.push(S)}var j=o_(.6,193/255,218/255),D=null!==(o=null!=i?i:a)&&void 0!==o?o:m;return i||void 0!==s?i$(e,D,r,A):i$(t.acroField,D,r,A),tp(y,iA({x:0+h/2,y:0+h/2,width:g-h,height:v-h,borderWidth:null!=h?h:0,borderColor:b,textColor:D,font:r.name,fontSize:A,color:w,textLines:O,lineHeight:P,selectedColor:j,selectedLines:N,padding:1}))},i6=function(){function t(t,e,r){this.alreadyEmbedded=!1,eR(t,"ref",[[rT,"PDFRef"]]),eR(e,"doc",[[ag,"PDFDocument"]]),eR(r,"embedder",[[nm,"PDFPageEmbedder"]]),this.ref=t,this.doc=e,this.width=r.width,this.height=r.height,this.embedder=r}return t.prototype.scale=function(t){return eR(t,"factor",["number"]),{width:this.width*t,height:this.height*t}},t.prototype.size=function(){return this.scale(1)},t.prototype.embed=function(){return th(this,void 0,void 0,function(){return tf(this,function(t){switch(t.label){case 0:if(this.alreadyEmbedded)return[3,2];return[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:t.sent(),this.alreadyEmbedded=!0,t.label=2;case 2:return[2]}})})},t.of=function(e,r,n){return new t(e,r,n)},t}(),i8=function(){function t(t,e,r){this.modified=!0,eR(t,"ref",[[rT,"PDFRef"]]),eR(e,"doc",[[ag,"PDFDocument"]]),eR(r,"embedder",[[r0,"CustomFontEmbedder"],[rL,"StandardFontEmbedder"]]),this.ref=t,this.doc=e,this.name=r.fontName,this.embedder=r}return t.prototype.encodeText=function(t){return eR(t,"text",["string"]),this.modified=!0,this.embedder.encodeText(t)},t.prototype.widthOfTextAtSize=function(t,e){return eR(t,"text",["string"]),eR(e,"size",["number"]),this.embedder.widthOfTextAtSize(t,e)},t.prototype.heightAtSize=function(t,e){var r;return eR(t,"size",["number"]),ej(null==e?void 0:e.descender,"options.descender",["boolean"]),this.embedder.heightOfFontAtSize(t,{descender:null===(r=null==e?void 0:e.descender)||void 0===r||r})},t.prototype.sizeAtHeight=function(t){return eR(t,"height",["number"]),this.embedder.sizeOfFontAtHeight(t)},t.prototype.getCharacterSet=function(){return this.embedder instanceof rL?this.embedder.encoding.supportedCodePoints:this.embedder.font.characterSet},t.prototype.embed=function(){return th(this,void 0,void 0,function(){return tf(this,function(t){switch(t.label){case 0:if(!this.modified)return[3,2];return[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:t.sent(),this.modified=!1,t.label=2;case 2:return[2]}})})},t.of=function(e,r,n){return new t(e,r,n)},t}(),i9=function(){function t(t,e,r){eR(t,"ref",[[rT,"PDFRef"]]),eR(e,"doc",[[ag,"PDFDocument"]]),eR(r,"embedder",[[r4,"JpegEmbedder"],[nt,"PngEmbedder"]]),this.ref=t,this.doc=e,this.width=r.width,this.height=r.height,this.embedder=r}return t.prototype.scale=function(t){return eR(t,"factor",["number"]),{width:this.width*t,height:this.height*t}},t.prototype.scaleToFit=function(t,e){eR(t,"width",["number"]),eR(e,"height",["number"]);var r=Math.min(t/this.width,e/this.height);return this.scale(r)},t.prototype.size=function(){return this.scale(1)},t.prototype.embed=function(){return th(this,void 0,void 0,function(){var t,e,r;return tf(this,function(n){switch(n.label){case 0:if(!this.embedder)return[2];return this.embedTask||(t=this,e=t.doc,r=t.ref,this.embedTask=this.embedder.embedIntoContext(e.context,r)),[4,this.embedTask];case 1:return n.sent(),this.embedder=void 0,[2]}})})},t.of=function(e,r,n){return new t(e,r,n)},t}();(j=ti||(ti={}))[j.Left=0]="Left",j[j.Center=1]="Center",j[j.Right=2]="Right";var i7=function(t){ej(null==t?void 0:t.x,"options.x",["number"]),ej(null==t?void 0:t.y,"options.y",["number"]),ej(null==t?void 0:t.width,"options.width",["number"]),ej(null==t?void 0:t.height,"options.height",["number"]),ej(null==t?void 0:t.textColor,"options.textColor",[[Object,"Color"]]),ej(null==t?void 0:t.backgroundColor,"options.backgroundColor",[[Object,"Color"]]),ej(null==t?void 0:t.borderColor,"options.borderColor",[[Object,"Color"]]),ej(null==t?void 0:t.borderWidth,"options.borderWidth",["number"]),ej(null==t?void 0:t.rotate,"options.rotate",[[Object,"Rotation"]])},at=function(){function t(t,e,r){eR(t,"acroField",[[nO,"PDFAcroTerminal"]]),eR(e,"ref",[[rT,"PDFRef"]]),eR(r,"doc",[[ag,"PDFDocument"]]),this.acroField=t,this.ref=e,this.doc=r}return t.prototype.getName=function(){var t;return null!==(t=this.acroField.getFullyQualifiedName())&&void 0!==t?t:""},t.prototype.isReadOnly=function(){return this.acroField.hasFlag(Z.ReadOnly)},t.prototype.enableReadOnly=function(){this.acroField.setFlagTo(Z.ReadOnly,!0)},t.prototype.disableReadOnly=function(){this.acroField.setFlagTo(Z.ReadOnly,!1)},t.prototype.isRequired=function(){return this.acroField.hasFlag(Z.Required)},t.prototype.enableRequired=function(){this.acroField.setFlagTo(Z.Required,!0)},t.prototype.disableRequired=function(){this.acroField.setFlagTo(Z.Required,!1)},t.prototype.isExported=function(){return!this.acroField.hasFlag(Z.NoExport)},t.prototype.enableExporting=function(){this.acroField.setFlagTo(Z.NoExport,!1)},t.prototype.disableExporting=function(){this.acroField.setFlagTo(Z.NoExport,!0)},t.prototype.needsAppearancesUpdate=function(){throw new eG(this.constructor.name,"needsAppearancesUpdate")},t.prototype.defaultUpdateAppearances=function(t){throw new eG(this.constructor.name,"defaultUpdateAppearances")},t.prototype.markAsDirty=function(){this.doc.getForm().markFieldAsDirty(this.ref)},t.prototype.markAsClean=function(){this.doc.getForm().markFieldAsClean(this.ref)},t.prototype.isDirty=function(){return this.doc.getForm().fieldIsDirty(this.ref)},t.prototype.createWidget=function(t){var e,r=t.textColor,n=t.backgroundColor,o=t.borderColor,i=t.borderWidth,a=op(t.rotate),s=t.caption,l=t.x,c=t.y,u=t.width+i,d=t.height+i,h=!!t.hidden,f=t.page;eM(a,"degreesAngle",90);var p=nT.create(this.doc.context,this.ref),g=oy({x:l,y:c,width:u,height:d},i,a);p.setRectangle(g),f&&p.setP(f);var v=p.getOrCreateAppearanceCharacteristics();n&&v.setBackgroundColor(o6(n)),v.setRotation(a),s&&v.setCaptions({normal:s}),o&&v.setBorderColor(o6(o));var y=p.getOrCreateBorderStyle();if(void 0!==i&&y.setWidth(i),p.setFlagTo(_.Print,!0),p.setFlagTo(_.Hidden,h),p.setFlagTo(_.Invisible,!1),r){var m=(null!==(e=this.acroField.getDefaultAppearance())&&void 0!==e?e:"")+"\n"+o5(r).toString();this.acroField.setDefaultAppearance(m)}return p},t.prototype.updateWidgetAppearanceWithFont=function(t,e,r){var n=r.normal,o=r.rollover,i=r.down;this.updateWidgetAppearances(t,{normal:this.createAppearanceStream(t,n,e),rollover:o&&this.createAppearanceStream(t,o,e),down:i&&this.createAppearanceStream(t,i,e)})},t.prototype.updateOnOffWidgetAppearance=function(t,e,r){var n=r.normal,o=r.rollover,i=r.down;this.updateWidgetAppearances(t,{normal:this.createAppearanceDict(t,n,e),rollover:o&&this.createAppearanceDict(t,o,e),down:i&&this.createAppearanceDict(t,i,e)})},t.prototype.updateWidgetAppearances=function(t,e){var r=e.normal,n=e.rollover,o=e.down;t.setNormalAppearance(r),n?t.setRolloverAppearance(n):t.removeRolloverAppearance(),o?t.setDownAppearance(o):t.removeDownAppearance()},t.prototype.createAppearanceStream=function(t,e,r){var n,o=this.acroField.dict.context,i=t.getRectangle(),a=i.width,s=i.height,l=r&&{Font:((n={})[r.name]=r.ref,n)},c=o.formXObject(e,{Resources:l,BBox:o.obj([0,0,a,s]),Matrix:o.obj([1,0,0,1,0,0])});return o.register(c)},t.prototype.createImageAppearanceStream=function(t,e,r){var n,o,i=this.acroField.dict.context,a=t.getRectangle(),s=t.getAppearanceCharacteristics(),l=t.getBorderStyle(),c=null!==(o=null==l?void 0:l.getWidth())&&void 0!==o?o:0,u=og(null==s?void 0:s.getRotation()),d=iF(td(td({},a),{rotation:u})),h=ov(a,u),f=e.scaleToFit(h.width-2*c,h.height-2*c),p={x:c,y:c,width:f.width,height:f.height,rotate:oc(0),xSkew:oc(0),ySkew:oc(0)};r===ti.Center?(p.x+=(h.width-2*c)/2-f.width/2,p.y+=(h.height-2*c)/2-f.height/2):r===ti.Right&&(p.x=h.width-c-f.width,p.y=h.height-c-f.height);var g=this.doc.context.addRandomSuffix("Image",10),v=tp(d,ih(g,p)),y={XObject:((n={})[g]=e.ref,n)},m=i.formXObject(v,{Resources:y,BBox:i.obj([0,0,a.width,a.height]),Matrix:i.obj([1,0,0,1,0,0])});return i.register(m)},t.prototype.createAppearanceDict=function(t,e,r){var n=this.acroField.dict.context,o=this.createAppearanceStream(t,e.on),i=this.createAppearanceStream(t,e.off),a=n.obj({});return a.set(r,o),a.set(rb.of("Off"),i),a},t}(),ae=function(t){function e(e,r,n){var o=t.call(this,e,r,n)||this;return eR(e,"acroCheckBox",[[nP,"PDFAcroCheckBox"]]),o.acroField=e,o}return tu(e,t),e.prototype.check=function(){var t,e=null!==(t=this.acroField.getOnValue())&&void 0!==t?t:rb.of("Yes");this.markAsDirty(),this.acroField.setValue(e)},e.prototype.uncheck=function(){this.markAsDirty(),this.acroField.setValue(rb.of("Off"))},e.prototype.isChecked=function(){var t=this.acroField.getOnValue();return!!t&&t===this.acroField.getValue()},e.prototype.addToPage=function(t,e){eR(t,"page",[[ay,"PDFPage"]]),i7(e),e||(e={}),"textColor"in e||(e.textColor=o_(0,0,0)),"backgroundColor"in e||(e.backgroundColor=o_(1,1,1)),"borderColor"in e||(e.borderColor=o_(0,0,0)),"borderWidth"in e||(e.borderWidth=1);var r,n,o,i,a,s,l=this.createWidget({x:null!==(r=e.x)&&void 0!==r?r:0,y:null!==(n=e.y)&&void 0!==n?n:0,width:null!==(o=e.width)&&void 0!==o?o:50,height:null!==(i=e.height)&&void 0!==i?i:50,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(a=e.borderWidth)&&void 0!==a?a:0,rotate:null!==(s=e.rotate)&&void 0!==s?s:oc(0),hidden:e.hidden,page:t.ref}),c=this.doc.context.register(l.dict);this.acroField.addWidget(c),l.setAppearanceState(rb.of("Off")),this.updateWidgetAppearance(l,rb.of("Yes")),t.node.addAnnot(c)},e.prototype.needsAppearancesUpdate=function(){for(var t,e=this.acroField.getWidgets(),r=0,n=e.length;r<n;r++){var o=e[r],i=o.getAppearanceState(),a=null===(t=o.getAppearances())||void 0===t?void 0:t.normal;if(!(a instanceof rx)||i&&!a.has(i))return!0}return!1},e.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},e.prototype.updateAppearances=function(t){ej(t,"provider",[Function]);for(var e,r=this.acroField.getWidgets(),n=0,o=r.length;n<o;n++){var i=r[n],a=null!==(e=i.getOnValue())&&void 0!==e?e:rb.of("Yes");a&&this.updateWidgetAppearance(i,a,t)}this.markAsClean()},e.prototype.updateWidgetAppearance=function(t,e,r){var n=iZ((null!=r?r:i0)(this,t));this.updateOnOffWidgetAppearance(t,e,n)},e.of=function(t,r,n){return new e(t,r,n)},e}(at),ar=function(t){function e(e,r,n){var o=t.call(this,e,r,n)||this;return eR(e,"acroComboBox",[[nj,"PDFAcroComboBox"]]),o.acroField=e,o}return tu(e,t),e.prototype.getOptions=function(){for(var t=this.acroField.getOptions(),e=Array(t.length),r=0,n=e.length;r<n;r++){var o=t[r],i=o.display,a=o.value;e[r]=(null!=i?i:a).decodeText()}return e},e.prototype.getSelected=function(){for(var t=this.acroField.getValues(),e=Array(t.length),r=0,n=t.length;r<n;r++)e[r]=t[r].decodeText();return e},e.prototype.setOptions=function(t){eR(t,"options",[Array]);for(var e=Array(t.length),r=0,n=t.length;r<n;r++)e[r]={value:rK.fromText(t[r])};this.acroField.setOptions(e)},e.prototype.addOptions=function(t){eR(t,"options",["string",Array]);for(var e=Array.isArray(t)?t:[t],r=this.acroField.getOptions(),n=Array(e.length),o=0,i=e.length;o<i;o++)n[o]={value:rK.fromText(e[o])};this.acroField.setOptions(r.concat(n))},e.prototype.select=function(t,e){void 0===e&&(e=!1),eR(t,"options",["string",Array]),eR(e,"merge",["boolean"]);var r=Array.isArray(t)?t:[t],n=this.getOptions();r.find(function(t){return!n.includes(t)})&&this.enableEditing(),this.markAsDirty(),(r.length>1||1===r.length&&e)&&this.enableMultiselect();for(var o=Array(r.length),i=0,a=r.length;i<a;i++)o[i]=rK.fromText(r[i]);if(e){var s=this.acroField.getValues();this.acroField.setValues(s.concat(o))}else this.acroField.setValues(o)},e.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},e.prototype.setFontSize=function(t){eI(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()},e.prototype.isEditable=function(){return this.acroField.hasFlag(Q.Edit)},e.prototype.enableEditing=function(){this.acroField.setFlagTo(Q.Edit,!0)},e.prototype.disableEditing=function(){this.acroField.setFlagTo(Q.Edit,!1)},e.prototype.isSorted=function(){return this.acroField.hasFlag(Q.Sort)},e.prototype.enableSorting=function(){this.acroField.setFlagTo(Q.Sort,!0)},e.prototype.disableSorting=function(){this.acroField.setFlagTo(Q.Sort,!1)},e.prototype.isMultiselect=function(){return this.acroField.hasFlag(Q.MultiSelect)},e.prototype.enableMultiselect=function(){this.acroField.setFlagTo(Q.MultiSelect,!0)},e.prototype.disableMultiselect=function(){this.acroField.setFlagTo(Q.MultiSelect,!1)},e.prototype.isSpellChecked=function(){return!this.acroField.hasFlag(Q.DoNotSpellCheck)},e.prototype.enableSpellChecking=function(){this.acroField.setFlagTo(Q.DoNotSpellCheck,!1)},e.prototype.disableSpellChecking=function(){this.acroField.setFlagTo(Q.DoNotSpellCheck,!0)},e.prototype.isSelectOnClick=function(){return this.acroField.hasFlag(Q.CommitOnSelChange)},e.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo(Q.CommitOnSelChange,!0)},e.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo(Q.CommitOnSelChange,!1)},e.prototype.addToPage=function(t,e){eR(t,"page",[[ay,"PDFPage"]]),i7(e),e||(e={}),"textColor"in e||(e.textColor=o_(0,0,0)),"backgroundColor"in e||(e.backgroundColor=o_(1,1,1)),"borderColor"in e||(e.borderColor=o_(0,0,0)),"borderWidth"in e||(e.borderWidth=1);var r,n,o,i,a,s,l,c=this.createWidget({x:null!==(r=e.x)&&void 0!==r?r:0,y:null!==(n=e.y)&&void 0!==n?n:0,width:null!==(o=e.width)&&void 0!==o?o:200,height:null!==(i=e.height)&&void 0!==i?i:50,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(a=e.borderWidth)&&void 0!==a?a:0,rotate:null!==(s=e.rotate)&&void 0!==s?s:oc(0),hidden:e.hidden,page:t.ref}),u=this.doc.context.register(c.dict);this.acroField.addWidget(u);var d=null!==(l=e.font)&&void 0!==l?l:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(c,d),t.node.addAnnot(u)},e.prototype.needsAppearancesUpdate=function(){if(this.isDirty())return!0;for(var t,e=this.acroField.getWidgets(),r=0,n=e.length;r<n;r++)if(!((null===(t=e[r].getAppearances())||void 0===t?void 0:t.normal)instanceof rF))return!0;return!1},e.prototype.defaultUpdateAppearances=function(t){eR(t,"font",[[i8,"PDFFont"]]),this.updateAppearances(t)},e.prototype.updateAppearances=function(t,e){eR(t,"font",[[i8,"PDFFont"]]),ej(e,"provider",[Function]);for(var r=this.acroField.getWidgets(),n=0,o=r.length;n<o;n++){var i=r[n];this.updateWidgetAppearance(i,t,e)}this.markAsClean()},e.prototype.updateWidgetAppearance=function(t,e,r){var n=iZ((null!=r?r:i3)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,n)},e.of=function(t,r,n){return new e(t,r,n)},e}(at),an=function(t){function e(e,r,n){var o=t.call(this,e,r,n)||this;return eR(e,"acroListBox",[[nI,"PDFAcroListBox"]]),o.acroField=e,o}return tu(e,t),e.prototype.getOptions=function(){for(var t=this.acroField.getOptions(),e=Array(t.length),r=0,n=e.length;r<n;r++){var o=t[r],i=o.display,a=o.value;e[r]=(null!=i?i:a).decodeText()}return e},e.prototype.getSelected=function(){for(var t=this.acroField.getValues(),e=Array(t.length),r=0,n=t.length;r<n;r++)e[r]=t[r].decodeText();return e},e.prototype.setOptions=function(t){eR(t,"options",[Array]),this.markAsDirty();for(var e=Array(t.length),r=0,n=t.length;r<n;r++)e[r]={value:rK.fromText(t[r])};this.acroField.setOptions(e)},e.prototype.addOptions=function(t){eR(t,"options",["string",Array]),this.markAsDirty();for(var e=Array.isArray(t)?t:[t],r=this.acroField.getOptions(),n=Array(e.length),o=0,i=e.length;o<i;o++)n[o]={value:rK.fromText(e[o])};this.acroField.setOptions(r.concat(n))},e.prototype.select=function(t,e){void 0===e&&(e=!1),eR(t,"options",["string",Array]),eR(e,"merge",["boolean"]);var r=Array.isArray(t)?t:[t];eP(r,"option",this.getOptions()),this.markAsDirty(),(r.length>1||1===r.length&&e)&&this.enableMultiselect();for(var n=Array(r.length),o=0,i=r.length;o<i;o++)n[o]=rK.fromText(r[o]);if(e){var a=this.acroField.getValues();this.acroField.setValues(a.concat(n))}else this.acroField.setValues(n)},e.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},e.prototype.setFontSize=function(t){eI(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()},e.prototype.isSorted=function(){return this.acroField.hasFlag(Q.Sort)},e.prototype.enableSorting=function(){this.acroField.setFlagTo(Q.Sort,!0)},e.prototype.disableSorting=function(){this.acroField.setFlagTo(Q.Sort,!1)},e.prototype.isMultiselect=function(){return this.acroField.hasFlag(Q.MultiSelect)},e.prototype.enableMultiselect=function(){this.acroField.setFlagTo(Q.MultiSelect,!0)},e.prototype.disableMultiselect=function(){this.acroField.setFlagTo(Q.MultiSelect,!1)},e.prototype.isSelectOnClick=function(){return this.acroField.hasFlag(Q.CommitOnSelChange)},e.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo(Q.CommitOnSelChange,!0)},e.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo(Q.CommitOnSelChange,!1)},e.prototype.addToPage=function(t,e){eR(t,"page",[[ay,"PDFPage"]]),i7(e),e||(e={}),"textColor"in e||(e.textColor=o_(0,0,0)),"backgroundColor"in e||(e.backgroundColor=o_(1,1,1)),"borderColor"in e||(e.borderColor=o_(0,0,0)),"borderWidth"in e||(e.borderWidth=1);var r,n,o,i,a,s,l,c=this.createWidget({x:null!==(r=e.x)&&void 0!==r?r:0,y:null!==(n=e.y)&&void 0!==n?n:0,width:null!==(o=e.width)&&void 0!==o?o:200,height:null!==(i=e.height)&&void 0!==i?i:100,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(a=e.borderWidth)&&void 0!==a?a:0,rotate:null!==(s=e.rotate)&&void 0!==s?s:oc(0),hidden:e.hidden,page:t.ref}),u=this.doc.context.register(c.dict);this.acroField.addWidget(u);var d=null!==(l=e.font)&&void 0!==l?l:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(c,d),t.node.addAnnot(u)},e.prototype.needsAppearancesUpdate=function(){if(this.isDirty())return!0;for(var t,e=this.acroField.getWidgets(),r=0,n=e.length;r<n;r++)if(!((null===(t=e[r].getAppearances())||void 0===t?void 0:t.normal)instanceof rF))return!0;return!1},e.prototype.defaultUpdateAppearances=function(t){eR(t,"font",[[i8,"PDFFont"]]),this.updateAppearances(t)},e.prototype.updateAppearances=function(t,e){eR(t,"font",[[i8,"PDFFont"]]),ej(e,"provider",[Function]);for(var r=this.acroField.getWidgets(),n=0,o=r.length;n<o;n++){var i=r[n];this.updateWidgetAppearance(i,t,e)}this.markAsClean()},e.prototype.updateWidgetAppearance=function(t,e,r){var n=iZ((null!=r?r:i4)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,n)},e.of=function(t,r,n){return new e(t,r,n)},e}(at),ao=function(t){function e(e,r,n){var o=t.call(this,e,r,n)||this;return eR(e,"acroRadioButton",[[nE,"PDFAcroRadioButton"]]),o.acroField=e,o}return tu(e,t),e.prototype.getOptions=function(){var t=this.acroField.getExportValues();if(t){for(var e=Array(t.length),r=0,n=t.length;r<n;r++)e[r]=t[r].decodeText();return e}for(var o=this.acroField.getOnValues(),i=Array(o.length),r=0,n=i.length;r<n;r++)i[r]=o[r].decodeText();return i},e.prototype.getSelected=function(){var t=this.acroField.getValue();if(t!==rb.of("Off")){var e=this.acroField.getExportValues();if(e){for(var r=this.acroField.getOnValues(),n=0,o=r.length;n<o;n++)if(r[n]===t)return e[n].decodeText()}return t.decodeText()}},e.prototype.select=function(t){eR(t,"option",["string"]),eO(t,"option",this.getOptions()),this.markAsDirty();var e=this.acroField.getOnValues(),r=this.acroField.getExportValues();if(r)for(var n=0,o=r.length;n<o;n++)r[n].decodeText()===t&&this.acroField.setValue(e[n]);else for(var n=0,o=e.length;n<o;n++){var i=e[n];i.decodeText()===t&&this.acroField.setValue(i)}},e.prototype.clear=function(){this.markAsDirty(),this.acroField.setValue(rb.of("Off"))},e.prototype.isOffToggleable=function(){return!this.acroField.hasFlag(Y.NoToggleToOff)},e.prototype.enableOffToggling=function(){this.acroField.setFlagTo(Y.NoToggleToOff,!1)},e.prototype.disableOffToggling=function(){this.acroField.setFlagTo(Y.NoToggleToOff,!0)},e.prototype.isMutuallyExclusive=function(){return!this.acroField.hasFlag(Y.RadiosInUnison)},e.prototype.enableMutualExclusion=function(){this.acroField.setFlagTo(Y.RadiosInUnison,!1)},e.prototype.disableMutualExclusion=function(){this.acroField.setFlagTo(Y.RadiosInUnison,!0)},e.prototype.addOptionToPage=function(t,e,r){eR(t,"option",["string"]),eR(e,"page",[[ay,"PDFPage"]]),i7(r);var n,o,i,a,s,l,c,u,d,h=this.createWidget({x:null!==(n=null==r?void 0:r.x)&&void 0!==n?n:0,y:null!==(o=null==r?void 0:r.y)&&void 0!==o?o:0,width:null!==(i=null==r?void 0:r.width)&&void 0!==i?i:50,height:null!==(a=null==r?void 0:r.height)&&void 0!==a?a:50,textColor:null!==(s=null==r?void 0:r.textColor)&&void 0!==s?s:o_(0,0,0),backgroundColor:null!==(l=null==r?void 0:r.backgroundColor)&&void 0!==l?l:o_(1,1,1),borderColor:null!==(c=null==r?void 0:r.borderColor)&&void 0!==c?c:o_(0,0,0),borderWidth:null!==(u=null==r?void 0:r.borderWidth)&&void 0!==u?u:1,rotate:null!==(d=null==r?void 0:r.rotate)&&void 0!==d?d:oc(0),hidden:null==r?void 0:r.hidden,page:e.ref}),f=this.doc.context.register(h.dict),p=this.acroField.addWidgetWithOpt(f,rK.fromText(t),!this.isMutuallyExclusive());h.setAppearanceState(rb.of("Off")),this.updateWidgetAppearance(h,p),e.node.addAnnot(f)},e.prototype.needsAppearancesUpdate=function(){for(var t,e=this.acroField.getWidgets(),r=0,n=e.length;r<n;r++){var o=e[r],i=o.getAppearanceState(),a=null===(t=o.getAppearances())||void 0===t?void 0:t.normal;if(!(a instanceof rx)||i&&!a.has(i))return!0}return!1},e.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},e.prototype.updateAppearances=function(t){ej(t,"provider",[Function]);for(var e=this.acroField.getWidgets(),r=0,n=e.length;r<n;r++){var o=e[r],i=o.getOnValue();i&&this.updateWidgetAppearance(o,i,t)}},e.prototype.updateWidgetAppearance=function(t,e,r){var n=iZ((null!=r?r:i1)(this,t));this.updateOnOffWidgetAppearance(t,e,n)},e.of=function(t,r,n){return new e(t,r,n)},e}(at),ai=function(t){function e(e,r,n){var o=t.call(this,e,r,n)||this;return eR(e,"acroSignature",[[nz,"PDFAcroSignature"]]),o.acroField=e,o}return tu(e,t),e.prototype.needsAppearancesUpdate=function(){return!1},e.of=function(t,r,n){return new e(t,r,n)},e}(at),aa=function(t){function e(e,r,n){var o=t.call(this,e,r,n)||this;return eR(e,"acroText",[[nB,"PDFAcroText"]]),o.acroField=e,o}return tu(e,t),e.prototype.getText=function(){var t=this.acroField.getValue();if(!t&&this.isRichFormatted())throw new iE(this.getName());return null==t?void 0:t.decodeText()},e.prototype.setText=function(t){ej(t,"text",["string"]);var e=this.getMaxLength();if(void 0!==e&&t&&t.length>e)throw new iV(t.length,e,this.getName());this.markAsDirty(),this.disableRichFormatting(),t?this.acroField.setValue(rK.fromText(t)):this.acroField.removeValue()},e.prototype.getAlignment=function(){var t=this.acroField.getQuadding();return 0===t?to.Left:1===t?to.Center:2===t?to.Right:to.Left},e.prototype.setAlignment=function(t){eO(t,"alignment",to),this.markAsDirty(),this.acroField.setQuadding(t)},e.prototype.getMaxLength=function(){return this.acroField.getMaxLength()},e.prototype.setMaxLength=function(t){if(eB(t,"maxLength",0,Number.MAX_SAFE_INTEGER),this.markAsDirty(),void 0===t)this.acroField.removeMaxLength();else{var e=this.getText();if(e&&e.length>t)throw new iU(e.length,t,this.getName());this.acroField.setMaxLength(t)}},e.prototype.removeMaxLength=function(){this.markAsDirty(),this.acroField.removeMaxLength()},e.prototype.setImage=function(t){for(var e=this.getAlignment(),r=e===to.Center?ti.Center:e===to.Right?ti.Right:ti.Left,n=this.acroField.getWidgets(),o=0,i=n.length;o<i;o++){var a=n[o],s=this.createImageAppearanceStream(a,t,r);this.updateWidgetAppearances(a,{normal:s})}this.markAsClean()},e.prototype.setFontSize=function(t){eI(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()},e.prototype.isMultiline=function(){return this.acroField.hasFlag(J.Multiline)},e.prototype.enableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(J.Multiline,!0)},e.prototype.disableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(J.Multiline,!1)},e.prototype.isPassword=function(){return this.acroField.hasFlag(J.Password)},e.prototype.enablePassword=function(){this.acroField.setFlagTo(J.Password,!0)},e.prototype.disablePassword=function(){this.acroField.setFlagTo(J.Password,!1)},e.prototype.isFileSelector=function(){return this.acroField.hasFlag(J.FileSelect)},e.prototype.enableFileSelection=function(){this.acroField.setFlagTo(J.FileSelect,!0)},e.prototype.disableFileSelection=function(){this.acroField.setFlagTo(J.FileSelect,!1)},e.prototype.isSpellChecked=function(){return!this.acroField.hasFlag(J.DoNotSpellCheck)},e.prototype.enableSpellChecking=function(){this.acroField.setFlagTo(J.DoNotSpellCheck,!1)},e.prototype.disableSpellChecking=function(){this.acroField.setFlagTo(J.DoNotSpellCheck,!0)},e.prototype.isScrollable=function(){return!this.acroField.hasFlag(J.DoNotScroll)},e.prototype.enableScrolling=function(){this.acroField.setFlagTo(J.DoNotScroll,!1)},e.prototype.disableScrolling=function(){this.acroField.setFlagTo(J.DoNotScroll,!0)},e.prototype.isCombed=function(){return this.acroField.hasFlag(J.Comb)&&!this.isMultiline()&&!this.isPassword()&&!this.isFileSelector()&&void 0!==this.getMaxLength()},e.prototype.enableCombing=function(){void 0===this.getMaxLength()&&console.warn("PDFTextFields must have a max length in order to be combed"),this.markAsDirty(),this.disableMultiline(),this.disablePassword(),this.disableFileSelection(),this.acroField.setFlagTo(J.Comb,!0)},e.prototype.disableCombing=function(){this.markAsDirty(),this.acroField.setFlagTo(J.Comb,!1)},e.prototype.isRichFormatted=function(){return this.acroField.hasFlag(J.RichText)},e.prototype.enableRichFormatting=function(){this.acroField.setFlagTo(J.RichText,!0)},e.prototype.disableRichFormatting=function(){this.acroField.setFlagTo(J.RichText,!1)},e.prototype.addToPage=function(t,e){eR(t,"page",[[ay,"PDFPage"]]),i7(e),e||(e={}),"textColor"in e||(e.textColor=o_(0,0,0)),"backgroundColor"in e||(e.backgroundColor=o_(1,1,1)),"borderColor"in e||(e.borderColor=o_(0,0,0)),"borderWidth"in e||(e.borderWidth=1);var r,n,o,i,a,s,l,c=this.createWidget({x:null!==(r=e.x)&&void 0!==r?r:0,y:null!==(n=e.y)&&void 0!==n?n:0,width:null!==(o=e.width)&&void 0!==o?o:200,height:null!==(i=e.height)&&void 0!==i?i:50,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(a=e.borderWidth)&&void 0!==a?a:0,rotate:null!==(s=e.rotate)&&void 0!==s?s:oc(0),hidden:e.hidden,page:t.ref}),u=this.doc.context.register(c.dict);this.acroField.addWidget(u);var d=null!==(l=e.font)&&void 0!==l?l:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(c,d),t.node.addAnnot(u)},e.prototype.needsAppearancesUpdate=function(){if(this.isDirty())return!0;for(var t,e=this.acroField.getWidgets(),r=0,n=e.length;r<n;r++)if(!((null===(t=e[r].getAppearances())||void 0===t?void 0:t.normal)instanceof rF))return!0;return!1},e.prototype.defaultUpdateAppearances=function(t){eR(t,"font",[[i8,"PDFFont"]]),this.updateAppearances(t)},e.prototype.updateAppearances=function(t,e){eR(t,"font",[[i8,"PDFFont"]]),ej(e,"provider",[Function]);for(var r=this.acroField.getWidgets(),n=0,o=r.length;n<o;n++){var i=r[n];this.updateWidgetAppearance(i,t,e)}this.markAsClean()},e.prototype.updateWidgetAppearance=function(t,e,r){var n=iZ((null!=r?r:i5)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,n)},e.of=function(t,r,n){return new e(t,r,n)},e}(at);(D=ta||(ta={})).Courier="Courier",D.CourierBold="Courier-Bold",D.CourierOblique="Courier-Oblique",D.CourierBoldOblique="Courier-BoldOblique",D.Helvetica="Helvetica",D.HelveticaBold="Helvetica-Bold",D.HelveticaOblique="Helvetica-Oblique",D.HelveticaBoldOblique="Helvetica-BoldOblique",D.TimesRoman="Times-Roman",D.TimesRomanBold="Times-Bold",D.TimesRomanItalic="Times-Italic",D.TimesRomanBoldItalic="Times-BoldItalic",D.Symbol="Symbol",D.ZapfDingbats="ZapfDingbats";var as=function(){function t(t,e){var r=this;this.embedDefaultFont=function(){return r.doc.embedStandardFont(ta.Helvetica)},eR(t,"acroForm",[[nZ,"PDFAcroForm"]]),eR(e,"doc",[[ag,"PDFDocument"]]),this.acroForm=t,this.doc=e,this.dirtyFields=new Set,this.defaultFontCache=eq.populatedBy(this.embedDefaultFont)}return t.prototype.hasXFA=function(){return this.acroForm.dict.has(rb.of("XFA"))},t.prototype.deleteXFA=function(){this.acroForm.dict.delete(rb.of("XFA"))},t.prototype.getFields=function(){for(var t=this.acroForm.getAllFields(),e=[],r=0,n=t.length;r<n;r++){var o=t[r],i=al(o[0],o[1],this.doc);i&&e.push(i)}return e},t.prototype.getFieldMaybe=function(t){eR(t,"name",["string"]);for(var e=this.getFields(),r=0,n=e.length;r<n;r++){var o=e[r];if(o.getName()===t)return o}},t.prototype.getField=function(t){eR(t,"name",["string"]);var e=this.getFieldMaybe(t);if(e)return e;throw new iD(t)},t.prototype.getButton=function(t){eR(t,"name",["string"]);var e=this.getField(t);if(e instanceof am)return e;throw new iz(t,am,e)},t.prototype.getCheckBox=function(t){eR(t,"name",["string"]);var e=this.getField(t);if(e instanceof ae)return e;throw new iz(t,ae,e)},t.prototype.getDropdown=function(t){eR(t,"name",["string"]);var e=this.getField(t);if(e instanceof ar)return e;throw new iz(t,ar,e)},t.prototype.getOptionList=function(t){eR(t,"name",["string"]);var e=this.getField(t);if(e instanceof an)return e;throw new iz(t,an,e)},t.prototype.getRadioGroup=function(t){eR(t,"name",["string"]);var e=this.getField(t);if(e instanceof ao)return e;throw new iz(t,ao,e)},t.prototype.getSignature=function(t){eR(t,"name",["string"]);var e=this.getField(t);if(e instanceof ai)return e;throw new iz(t,ai,e)},t.prototype.getTextField=function(t){eR(t,"name",["string"]);var e=this.getField(t);if(e instanceof aa)return e;throw new iz(t,aa,e)},t.prototype.createButton=function(t){eR(t,"name",["string"]);var e=ac(t),r=this.findOrCreateNonTerminals(e.nonTerminal),n=nM.create(this.doc.context);return n.setPartialName(e.terminal),au(r,[n,n.ref],e.terminal),am.of(n,n.ref,this.doc)},t.prototype.createCheckBox=function(t){eR(t,"name",["string"]);var e=ac(t),r=this.findOrCreateNonTerminals(e.nonTerminal),n=nP.create(this.doc.context);return n.setPartialName(e.terminal),au(r,[n,n.ref],e.terminal),ae.of(n,n.ref,this.doc)},t.prototype.createDropdown=function(t){eR(t,"name",["string"]);var e=ac(t),r=this.findOrCreateNonTerminals(e.nonTerminal),n=nj.create(this.doc.context);return n.setPartialName(e.terminal),au(r,[n,n.ref],e.terminal),ar.of(n,n.ref,this.doc)},t.prototype.createOptionList=function(t){eR(t,"name",["string"]);var e=ac(t),r=this.findOrCreateNonTerminals(e.nonTerminal),n=nI.create(this.doc.context);return n.setPartialName(e.terminal),au(r,[n,n.ref],e.terminal),an.of(n,n.ref,this.doc)},t.prototype.createRadioGroup=function(t){eR(t,"name",["string"]);var e=ac(t),r=this.findOrCreateNonTerminals(e.nonTerminal),n=nE.create(this.doc.context);return n.setPartialName(e.terminal),au(r,[n,n.ref],e.terminal),ao.of(n,n.ref,this.doc)},t.prototype.createTextField=function(t){eR(t,"name",["string"]);var e=ac(t),r=this.findOrCreateNonTerminals(e.nonTerminal),n=nB.create(this.doc.context);return n.setPartialName(e.terminal),au(r,[n,n.ref],e.terminal),aa.of(n,n.ref,this.doc)},t.prototype.flatten=function(t){void 0===t&&(t={updateFieldAppearances:!0}),t.updateFieldAppearances&&this.updateFieldAppearances();for(var e=this.getFields(),r=0,n=e.length;r<n;r++){for(var o=e[r],i=o.acroField.getWidgets(),a=0,s=i.length;a<s;a++){var l=i[a],c=this.findWidgetPage(l),u=this.findWidgetAppearanceRef(o,l),d=c.node.newXObject("FlatWidget",u),h=l.getRectangle(),f=tp([oR(),ok(h.x,h.y)],iF(td(td({},h),{rotation:0})),[oZ(d),oj()]).filter(Boolean);c.pushOperators.apply(c,f)}this.removeField(o)}},t.prototype.removeField=function(t){for(var e=t.acroField.getWidgets(),r=new Set,n=0,o=e.length;n<o;n++){var i=e[n],a=this.findWidgetAppearanceRef(t,i),s=this.findWidgetPage(i);r.add(s),s.node.removeAnnot(a)}r.forEach(function(e){return e.node.removeAnnot(t.ref)}),this.acroForm.removeField(t.acroField);for(var l=t.acroField.normalizedEntries().Kids,c=l.size(),u=0;u<c;u++){var d=l.get(u);d instanceof rT&&this.doc.context.delete(d)}this.doc.context.delete(t.ref)},t.prototype.updateFieldAppearances=function(t){ej(t,"font",[[i8,"PDFFont"]]),t=null!=t?t:this.getDefaultFont();for(var e=this.getFields(),r=0,n=e.length;r<n;r++){var o=e[r];o.needsAppearancesUpdate()&&o.defaultUpdateAppearances(t)}},t.prototype.markFieldAsDirty=function(t){ej(t,"fieldRef",[[rT,"PDFRef"]]),this.dirtyFields.add(t)},t.prototype.markFieldAsClean=function(t){ej(t,"fieldRef",[[rT,"PDFRef"]]),this.dirtyFields.delete(t)},t.prototype.fieldIsDirty=function(t){return ej(t,"fieldRef",[[rT,"PDFRef"]]),this.dirtyFields.has(t)},t.prototype.getDefaultFont=function(){return this.defaultFontCache.access()},t.prototype.findWidgetPage=function(t){var e=t.P(),r=this.doc.getPages().find(function(t){return t.ref===e});if(void 0===r){var n=this.doc.context.getObjectRef(t.dict);if(void 0===n)throw Error("Could not find PDFRef for PDFObject");if(void 0===(r=this.doc.findPageForAnnotationRef(n)))throw Error("Could not find page for PDFRef "+n)}return r},t.prototype.findWidgetAppearanceRef=function(t,e){var r,n=e.getNormalAppearance();if(n instanceof rx&&(t instanceof ae||t instanceof ao)){var o=t.acroField.getValue(),i=null!==(r=n.get(o))&&void 0!==r?r:n.get(rb.of("Off"));i instanceof rT&&(n=i)}if(!(n instanceof rT))throw Error("Failed to extract appearance ref for: "+t.getName());return n},t.prototype.findOrCreateNonTerminals=function(t){for(var e=[this.acroForm],r=0,n=t.length;r<n;r++){var o=t[r];if(!o)throw new iM(o);var i=e[0],a=e[1],s=this.findNonTerminal(o,i);if(s)e=s;else{var l=nD.create(this.doc.context);l.setPartialName(o),l.setParent(a);var c=this.doc.context.register(l.dict);i.addField(c),e=[l,c]}}return e},t.prototype.findNonTerminal=function(t,e){for(var r=e instanceof nZ?this.acroForm.getFields():nV(e.Kids()),n=0,o=r.length;n<o;n++){var i=r[n],a=i[0],s=i[1];if(a.getPartialName()===t){if(a instanceof nD)return[a,s];throw new iB(t)}}},t.of=function(e,r){return new t(e,r)},t}(),al=function(t,e,r){return t instanceof nM?am.of(t,e,r):t instanceof nP?ae.of(t,e,r):t instanceof nj?ar.of(t,e,r):t instanceof nI?an.of(t,e,r):t instanceof nB?aa.of(t,e,r):t instanceof nE?ao.of(t,e,r):t instanceof nz?ai.of(t,e,r):void 0},ac=function(t){if(0===t.length)throw Error("PDF field names must not be empty strings");for(var e=t.split("."),r=0,n=e.length;r<n;r++)if(""===e[r])throw Error('Periods in PDF field names must be separated by at least one character: "'+t+'"');return 1===e.length?{nonTerminal:[],terminal:e[0]}:{nonTerminal:e.slice(0,e.length-1),terminal:e[e.length-1]}},au=function(t,e,r){for(var n=t[0],o=t[1],i=e[0],a=e[1],s=n.normalizedEntries(),l=nV(("Kids"in s)?s.Kids:s.Fields),c=0,u=l.length;c<u;c++)if(l[c][0].getPartialName()===r)throw new iB(r);n.addField(a),i.setParent(o)},ad={A4:[595.28,841.89]};(z=ts||(ts={}))[z.Fastest=1/0]="Fastest",z[z.Fast=1500]="Fast",z[z.Medium=500]="Medium",z[z.Slow=100]="Slow";var ah=function(){function t(t,e,r){this.alreadyEmbedded=!1,this.ref=t,this.doc=e,this.embedder=r}return t.prototype.embed=function(){return th(this,void 0,void 0,function(){var t,e,r,n;return tf(this,function(o){switch(o.label){case 0:if(this.alreadyEmbedded)return[3,2];return[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:t=o.sent(),this.doc.catalog.has(rb.of("Names"))||this.doc.catalog.set(rb.of("Names"),this.doc.context.obj({})),(e=this.doc.catalog.lookup(rb.of("Names"),rx)).has(rb.of("EmbeddedFiles"))||e.set(rb.of("EmbeddedFiles"),this.doc.context.obj({})),(r=e.lookup(rb.of("EmbeddedFiles"),rx)).has(rb.of("Names"))||r.set(rb.of("Names"),this.doc.context.obj([])),(n=r.lookup(rb.of("Names"),ru)).push(rK.fromText(this.embedder.fileName)),n.push(t),this.doc.catalog.has(rb.of("AF"))||this.doc.catalog.set(rb.of("AF"),this.doc.context.obj([])),this.doc.catalog.lookup(rb.of("AF"),ru).push(t),this.alreadyEmbedded=!0,o.label=2;case 2:return[2]}})})},t.of=function(e,r,n){return new t(e,r,n)},t}(),af=function(){function t(t,e,r){this.alreadyEmbedded=!1,this.ref=t,this.doc=e,this.embedder=r}return t.prototype.embed=function(){return th(this,void 0,void 0,function(){var t,e,r,n,o,i,a;return tf(this,function(s){switch(s.label){case 0:if(this.alreadyEmbedded)return[3,2];return e=(t=this.doc).catalog,r=t.context,[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:n=s.sent(),e.has(rb.of("Names"))||e.set(rb.of("Names"),r.obj({})),(o=e.lookup(rb.of("Names"),rx)).has(rb.of("JavaScript"))||o.set(rb.of("JavaScript"),r.obj({})),(i=o.lookup(rb.of("JavaScript"),rx)).has(rb.of("Names"))||i.set(rb.of("Names"),r.obj([])),(a=i.lookup(rb.of("Names"),ru)).push(rK.fromText(this.embedder.scriptName)),a.push(n),this.alreadyEmbedded=!0,s.label=2;case 2:return[2]}})})},t.of=function(e,r,n){return new t(e,r,n)},t}(),ap=function(){function t(t,e){this.script=t,this.scriptName=e}return t.for=function(e,r){return new t(e,r)},t.prototype.embedIntoContext=function(t,e){return th(this,void 0,void 0,function(){var r;return tf(this,function(n){return(r=t.obj({Type:"Action",S:"JavaScript",JS:rK.fromText(this.script)}),e)?(t.assign(e,r),[2,e]):[2,t.register(r)]})})},t}(),ag=function(){function t(t,e,r){var n=this;if(this.defaultWordBreaks=[" "],this.computePages=function(){var t=[];return n.catalog.Pages().traverse(function(e,r){if(e instanceof rz){var o=n.pageMap.get(e);o||(o=ay.of(e,r,n),n.pageMap.set(e,o)),t.push(o)}}),t},this.getOrCreateForm=function(){var t=n.catalog.getOrCreateAcroForm();return as.of(t,n)},eR(t,"context",[[rD,"PDFContext"]]),eR(e,"ignoreEncryption",["boolean"]),this.context=t,this.catalog=t.lookup(t.trailerInfo.Root),this.isEncrypted=!!t.lookup(t.trailerInfo.Encrypt),this.pageCache=eq.populatedBy(this.computePages),this.pageMap=new Map,this.formCache=eq.populatedBy(this.getOrCreateForm),this.fonts=[],this.images=[],this.embeddedPages=[],this.embeddedFiles=[],this.javaScripts=[],!e&&this.isEncrypted)throw new iP;r&&this.updateInfoDict()}return t.load=function(e,r){return void 0===r&&(r={}),th(this,void 0,void 0,function(){var n,o,i,a,s,l,c,u,d,h,f,p;return tf(this,function(g){switch(g.label){case 0:return o=void 0!==(n=r.ignoreEncryption)&&n,a=void 0===(i=r.parseSpeed)?ts.Slow:i,l=void 0!==(s=r.throwOnInvalidObject)&&s,u=void 0===(c=r.updateMetadata)||c,h=void 0!==(d=r.capNumbers)&&d,eR(e,"pdf",["string",Uint8Array,ArrayBuffer]),eR(o,"ignoreEncryption",["boolean"]),eR(a,"parseSpeed",["number"]),eR(l,"throwOnInvalidObject",["boolean"]),f=tQ(e),[4,oo.forBytesWithOptions(f,a,l,h).parseDocument()];case 1:return p=g.sent(),[2,new t(p,o,u)]}})})},t.create=function(e){return void 0===e&&(e={}),th(this,void 0,void 0,function(){var r,n,o,i,a,s;return tf(this,function(l){return n=void 0===(r=e.updateMetadata)||r,o=rD.create(),i=nJ.withContext(o),a=o.register(i),s=nY.withContextAndPages(o,a),o.trailerInfo.Root=o.register(s),[2,new t(o,!1,n)]})})},t.prototype.registerFontkit=function(t){this.fontkit=t},t.prototype.getForm=function(){var t=this.formCache.access();return t.hasXFA()&&(console.warn("Removing XFA form data as pdf-lib does not support reading or writing XFA"),t.deleteXFA()),t},t.prototype.getTitle=function(){var t=this.getInfoDict().lookup(rb.Title);if(t)return av(t),t.decodeText()},t.prototype.getAuthor=function(){var t=this.getInfoDict().lookup(rb.Author);if(t)return av(t),t.decodeText()},t.prototype.getSubject=function(){var t=this.getInfoDict().lookup(rb.Subject);if(t)return av(t),t.decodeText()},t.prototype.getKeywords=function(){var t=this.getInfoDict().lookup(rb.Keywords);if(t)return av(t),t.decodeText()},t.prototype.getCreator=function(){var t=this.getInfoDict().lookup(rb.Creator);if(t)return av(t),t.decodeText()},t.prototype.getProducer=function(){var t=this.getInfoDict().lookup(rb.Producer);if(t)return av(t),t.decodeText()},t.prototype.getCreationDate=function(){var t=this.getInfoDict().lookup(rb.CreationDate);if(t)return av(t),t.decodeDate()},t.prototype.getModificationDate=function(){var t=this.getInfoDict().lookup(rb.ModDate);if(t)return av(t),t.decodeDate()},t.prototype.setTitle=function(t,e){eR(t,"title",["string"]);var r=rb.of("Title");this.getInfoDict().set(r,rK.fromText(t)),(null==e?void 0:e.showInWindowTitleBar)&&this.catalog.getOrCreateViewerPreferences().setDisplayDocTitle(!0)},t.prototype.setAuthor=function(t){eR(t,"author",["string"]);var e=rb.of("Author");this.getInfoDict().set(e,rK.fromText(t))},t.prototype.setSubject=function(t){eR(t,"author",["string"]);var e=rb.of("Subject");this.getInfoDict().set(e,rK.fromText(t))},t.prototype.setKeywords=function(t){eR(t,"keywords",[Array]);var e=rb.of("Keywords");this.getInfoDict().set(e,rK.fromText(t.join(" ")))},t.prototype.setCreator=function(t){eR(t,"creator",["string"]);var e=rb.of("Creator");this.getInfoDict().set(e,rK.fromText(t))},t.prototype.setProducer=function(t){eR(t,"creator",["string"]);var e=rb.of("Producer");this.getInfoDict().set(e,rK.fromText(t))},t.prototype.setLanguage=function(t){eR(t,"language",["string"]);var e=rb.of("Lang");this.catalog.set(e,r$.of(t))},t.prototype.setCreationDate=function(t){eR(t,"creationDate",[[Date,"Date"]]);var e=rb.of("CreationDate");this.getInfoDict().set(e,r$.fromDate(t))},t.prototype.setModificationDate=function(t){eR(t,"modificationDate",[[Date,"Date"]]);var e=rb.of("ModDate");this.getInfoDict().set(e,r$.fromDate(t))},t.prototype.getPageCount=function(){return void 0===this.pageCount&&(this.pageCount=this.getPages().length),this.pageCount},t.prototype.getPages=function(){return this.pageCache.access()},t.prototype.getPage=function(t){var e=this.getPages();return ez(t,"index",0,e.length-1),e[t]},t.prototype.getPageIndices=function(){return tY(0,this.getPageCount())},t.prototype.removePage=function(t){var e=this.getPageCount();if(0===this.pageCount)throw new ij;ez(t,"index",0,e-1),this.catalog.removeLeafNode(t),this.pageCount=e-1},t.prototype.addPage=function(t){return eR(t,"page",["undefined",[ay,"PDFPage"],Array]),this.insertPage(this.getPageCount(),t)},t.prototype.insertPage=function(t,e){var r=this.getPageCount();if(ez(t,"index",0,r),eR(e,"page",["undefined",[ay,"PDFPage"],Array]),!e||Array.isArray(e)){var n=Array.isArray(e)?e:ad.A4;(e=ay.create(this)).setSize.apply(e,n)}else if(e.doc!==this)throw new iR;var o=this.catalog.insertLeafNode(e.ref,t);return e.node.setParent(o),this.pageMap.set(e.node,e),this.pageCache.invalidate(),this.pageCount=r+1,e},t.prototype.copyPages=function(e,r){return th(this,void 0,void 0,function(){var n,o,i,a,s,l,c,u;return tf(this,function(d){switch(d.label){case 0:return eR(e,"srcDoc",[[t,"PDFDocument"]]),eR(r,"indices",[Array]),[4,e.flush()];case 1:for(d.sent(),n=rB.for(e.context,this.context),o=e.getPages(),i=Array(r.length),a=0,s=r.length;a<s;a++)l=o[r[a]],c=n.copy(l.node),u=this.context.register(c),i[a]=ay.of(c,u,this);return[2,i]}})})},t.prototype.copy=function(){return th(this,void 0,void 0,function(){var e,r,n,o;return tf(this,function(i){switch(i.label){case 0:return[4,t.create()];case 1:return[4,(e=i.sent()).copyPages(this,this.getPageIndices())];case 2:for(n=0,o=(r=i.sent()).length;n<o;n++)e.addPage(r[n]);return void 0!==this.getAuthor()&&e.setAuthor(this.getAuthor()),void 0!==this.getCreationDate()&&e.setCreationDate(this.getCreationDate()),void 0!==this.getCreator()&&e.setCreator(this.getCreator()),void 0!==this.getModificationDate()&&e.setModificationDate(this.getModificationDate()),void 0!==this.getProducer()&&e.setProducer(this.getProducer()),void 0!==this.getSubject()&&e.setSubject(this.getSubject()),void 0!==this.getTitle()&&e.setTitle(this.getTitle()),e.defaultWordBreaks=this.defaultWordBreaks,[2,e]}})})},t.prototype.addJavaScript=function(t,e){eR(t,"name",["string"]),eR(e,"script",["string"]);var r=ap.for(e,t),n=this.context.nextRef(),o=af.of(n,this,r);this.javaScripts.push(o)},t.prototype.attach=function(t,e,r){return void 0===r&&(r={}),th(this,void 0,void 0,function(){var n,o,i,a;return tf(this,function(s){return eR(t,"attachment",["string",Uint8Array,ArrayBuffer]),eR(e,"name",["string"]),ej(r.mimeType,"mimeType",["string"]),ej(r.description,"description",["string"]),ej(r.creationDate,"options.creationDate",[Date]),ej(r.modificationDate,"options.modificationDate",[Date]),eA(r.afRelationship,"options.afRelationship",W),n=tQ(t),o=r2.for(n,e,r),i=this.context.nextRef(),a=ah.of(i,this,o),this.embeddedFiles.push(a),[2]})})},t.prototype.embedFont=function(t,e){return void 0===e&&(e={}),th(this,void 0,void 0,function(){var r,n,o,i,a,s,l,c,u,d;return tf(this,function(h){switch(h.label){case 0:if(n=void 0!==(r=e.subset)&&r,o=e.customName,i=e.features,eR(t,"font",["string",Uint8Array,ArrayBuffer]),eR(n,"subset",["boolean"]),!eF(t))return[3,1];return a=rL.for(t,o),[3,7];case 1:if(!(t instanceof Uint8Array||t instanceof ArrayBuffer||"string"==typeof t))return[3,6];if(s=tQ(t),l=this.assertFontkit(),!n)return[3,3];return[4,r1.for(l,s,o,i)];case 2:return c=h.sent(),[3,5];case 3:return[4,r0.for(l,s,o,i)];case 4:c=h.sent(),h.label=5;case 5:return a=c,[3,7];case 6:throw TypeError("`font` must be one of `StandardFonts | string | Uint8Array | ArrayBuffer`");case 7:return u=this.context.nextRef(),d=i8.of(u,this,a),this.fonts.push(d),[2,d]}})})},t.prototype.embedStandardFont=function(t,e){if(eR(t,"font",["string"]),!eF(t))throw TypeError("`font` must be one of type `StandardFonts`");var r=rL.for(t,e),n=this.context.nextRef(),o=i8.of(n,this,r);return this.fonts.push(o),o},t.prototype.embedJpg=function(t){return th(this,void 0,void 0,function(){var e,r,n,o;return tf(this,function(i){switch(i.label){case 0:return eR(t,"jpg",["string",Uint8Array,ArrayBuffer]),e=tQ(t),[4,r4.for(e)];case 1:return r=i.sent(),n=this.context.nextRef(),o=i9.of(n,this,r),this.images.push(o),[2,o]}})})},t.prototype.embedPng=function(t){return th(this,void 0,void 0,function(){var e,r,n,o;return tf(this,function(i){switch(i.label){case 0:return eR(t,"png",["string",Uint8Array,ArrayBuffer]),e=tQ(t),[4,nt.for(e)];case 1:return r=i.sent(),n=this.context.nextRef(),o=i9.of(n,this,r),this.images.push(o),[2,o]}})})},t.prototype.embedPdf=function(e,r){return void 0===r&&(r=[0]),th(this,void 0,void 0,function(){var n,o;return tf(this,function(i){switch(i.label){case 0:if(eR(e,"pdf",["string",Uint8Array,ArrayBuffer,[t,"PDFDocument"]]),eR(r,"indices",[Array]),!(e instanceof t))return[3,1];return n=e,[3,3];case 1:return[4,t.load(e)];case 2:n=i.sent(),i.label=3;case 3:return o=tJ(n.getPages(),r),[2,this.embedPages(o)]}})})},t.prototype.embedPage=function(t,e,r){return th(this,void 0,void 0,function(){return tf(this,function(n){switch(n.label){case 0:return eR(t,"page",[[ay,"PDFPage"]]),[4,this.embedPages([t],[e],[r])];case 1:return[2,n.sent()[0]]}})})},t.prototype.embedPages=function(t,e,r){return void 0===e&&(e=[]),void 0===r&&(r=[]),th(this,void 0,void 0,function(){var n,o,i,a,s,l,c,u,d,h,f,p,g;return tf(this,function(v){switch(v.label){case 0:if(0===t.length)return[2,[]];for(n=0,o=t.length-1;n<o;n++)if(i=t[n],a=t[n+1],i.node.context!==a.node.context)throw new eJ;l=(s=t[0].node.context)===this.context?function(t){return t}:rB.for(s,this.context).copy,c=Array(t.length),n=0,o=t.length,v.label=1;case 1:if(!(n<o))return[3,4];return u=l(t[n].node),d=e[n],h=r[n],[4,nm.for(u,d,h)];case 2:f=v.sent(),p=this.context.nextRef(),c[n]=i6.of(p,this,f),v.label=3;case 3:return n++,[3,1];case 4:return(g=this.embeddedPages).push.apply(g,c),[2,c]}})})},t.prototype.flush=function(){return th(this,void 0,void 0,function(){return tf(this,function(t){switch(t.label){case 0:return[4,this.embedAll(this.fonts)];case 1:return t.sent(),[4,this.embedAll(this.images)];case 2:return t.sent(),[4,this.embedAll(this.embeddedPages)];case 3:return t.sent(),[4,this.embedAll(this.embeddedFiles)];case 4:return t.sent(),[4,this.embedAll(this.javaScripts)];case 5:return t.sent(),[2]}})})},t.prototype.save=function(t){return void 0===t&&(t={}),th(this,void 0,void 0,function(){var e,r,n,o,i,a,s,l,c;return tf(this,function(u){switch(u.label){case 0:return r=void 0===(e=t.useObjectStreams)||e,o=void 0===(n=t.addDefaultPage)||n,a=void 0===(i=t.objectsPerTick)?50:i,l=void 0===(s=t.updateFieldAppearances)||s,eR(r,"useObjectStreams",["boolean"]),eR(o,"addDefaultPage",["boolean"]),eR(a,"objectsPerTick",["number"]),eR(l,"updateFieldAppearances",["boolean"]),o&&0===this.getPageCount()&&this.addPage(),l&&(c=this.formCache.getValue())&&c.updateFieldAppearances(),[4,this.flush()];case 1:return u.sent(),[2,(r?rG:rU).forContext(this.context,a).serializeToBuffer()]}})})},t.prototype.saveAsBase64=function(t){return void 0===t&&(t={}),th(this,void 0,void 0,function(){var e,r,n,o;return tf(this,function(i){switch(i.label){case 0:return r=void 0!==(e=t.dataUri)&&e,n=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)0>e.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}(t,["dataUri"]),eR(r,"dataUri",["boolean"]),[4,this.save(n)];case 1:return o=tm(i.sent()),[2,r?"data:application/pdf;base64,"+o:o]}})})},t.prototype.findPageForAnnotationRef=function(t){for(var e=this.getPages(),r=0,n=e.length;r<n;r++){var o=e[r],i=o.node.Annots();if((null==i?void 0:i.indexOf(t))!==void 0)return o}},t.prototype.embedAll=function(t){return th(this,void 0,void 0,function(){var e,r;return tf(this,function(n){switch(n.label){case 0:e=0,r=t.length,n.label=1;case 1:if(!(e<r))return[3,4];return[4,t[e].embed()];case 2:n.sent(),n.label=3;case 3:return e++,[3,1];case 4:return[2]}})})},t.prototype.updateInfoDict=function(){var t="pdf-lib (https://github.com/Hopding/pdf-lib)",e=new Date,r=this.getInfoDict();this.setProducer(t),this.setModificationDate(e),r.get(rb.of("Creator"))||this.setCreator(t),r.get(rb.of("CreationDate"))||this.setCreationDate(e)},t.prototype.getInfoDict=function(){var t=this.context.lookup(this.context.trailerInfo.Info);if(t instanceof rx)return t;var e=this.context.obj({});return this.context.trailerInfo.Info=this.context.register(e),e},t.prototype.assertFontkit=function(){if(!this.fontkit)throw new iN;return this.fontkit},t}();function av(t){if(!(t instanceof rK)&&!(t instanceof r$))throw new eL([rK,r$],t)}(B=tl||(tl={})).Normal="Normal",B.Multiply="Multiply",B.Screen="Screen",B.Overlay="Overlay",B.Darken="Darken",B.Lighten="Lighten",B.ColorDodge="ColorDodge",B.ColorBurn="ColorBurn",B.HardLight="HardLight",B.SoftLight="SoftLight",B.Difference="Difference",B.Exclusion="Exclusion";var ay=function(){function t(t,e,r){this.fontSize=24,this.fontColor=o_(0,0,0),this.lineHeight=24,this.x=0,this.y=0,eR(t,"leafNode",[[rz,"PDFPageLeaf"]]),eR(e,"ref",[[rT,"PDFRef"]]),eR(r,"doc",[[ag,"PDFDocument"]]),this.node=t,this.ref=e,this.doc=r}return t.prototype.setRotation=function(t){var e=op(t);eM(e,"degreesAngle",90),this.node.set(rb.of("Rotate"),this.doc.context.obj(e))},t.prototype.getRotation=function(){var t=this.node.Rotate();return oc(t?t.asNumber():0)},t.prototype.setSize=function(t,e){eR(t,"width",["number"]),eR(e,"height",["number"]);var r=this.getMediaBox();this.setMediaBox(r.x,r.y,t,e);var n=this.getCropBox(),o=this.getBleedBox(),i=this.getTrimBox(),a=this.getArtBox(),s=this.node.CropBox(),l=this.node.BleedBox(),c=this.node.TrimBox(),u=this.node.ArtBox();s&&ek(n,r)&&this.setCropBox(r.x,r.y,t,e),l&&ek(o,r)&&this.setBleedBox(r.x,r.y,t,e),c&&ek(i,r)&&this.setTrimBox(r.x,r.y,t,e),u&&ek(a,r)&&this.setArtBox(r.x,r.y,t,e)},t.prototype.setWidth=function(t){eR(t,"width",["number"]),this.setSize(t,this.getSize().height)},t.prototype.setHeight=function(t){eR(t,"height",["number"]),this.setSize(this.getSize().width,t)},t.prototype.setMediaBox=function(t,e,r,n){eR(t,"x",["number"]),eR(e,"y",["number"]),eR(r,"width",["number"]),eR(n,"height",["number"]);var o=this.doc.context.obj([t,e,t+r,e+n]);this.node.set(rb.MediaBox,o)},t.prototype.setCropBox=function(t,e,r,n){eR(t,"x",["number"]),eR(e,"y",["number"]),eR(r,"width",["number"]),eR(n,"height",["number"]);var o=this.doc.context.obj([t,e,t+r,e+n]);this.node.set(rb.CropBox,o)},t.prototype.setBleedBox=function(t,e,r,n){eR(t,"x",["number"]),eR(e,"y",["number"]),eR(r,"width",["number"]),eR(n,"height",["number"]);var o=this.doc.context.obj([t,e,t+r,e+n]);this.node.set(rb.BleedBox,o)},t.prototype.setTrimBox=function(t,e,r,n){eR(t,"x",["number"]),eR(e,"y",["number"]),eR(r,"width",["number"]),eR(n,"height",["number"]);var o=this.doc.context.obj([t,e,t+r,e+n]);this.node.set(rb.TrimBox,o)},t.prototype.setArtBox=function(t,e,r,n){eR(t,"x",["number"]),eR(e,"y",["number"]),eR(r,"width",["number"]),eR(n,"height",["number"]);var o=this.doc.context.obj([t,e,t+r,e+n]);this.node.set(rb.ArtBox,o)},t.prototype.getSize=function(){var t=this.getMediaBox();return{width:t.width,height:t.height}},t.prototype.getWidth=function(){return this.getSize().width},t.prototype.getHeight=function(){return this.getSize().height},t.prototype.getMediaBox=function(){return this.node.MediaBox().asRectangle()},t.prototype.getCropBox=function(){var t,e=this.node.CropBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getMediaBox()},t.prototype.getBleedBox=function(){var t,e=this.node.BleedBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getCropBox()},t.prototype.getTrimBox=function(){var t,e=this.node.TrimBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getCropBox()},t.prototype.getArtBox=function(){var t,e=this.node.ArtBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getCropBox()},t.prototype.translateContent=function(t,e){eR(t,"x",["number"]),eR(e,"y",["number"]),this.node.normalize(),this.getContentStream();var r=this.createContentStream(oR(),ok(t,e)),n=this.doc.context.register(r),o=this.createContentStream(oj()),i=this.doc.context.register(o);this.node.wrapContentStreams(n,i)},t.prototype.scale=function(t,e){eR(t,"x",["number"]),eR(e,"y",["number"]),this.setSize(this.getWidth()*t,this.getHeight()*e),this.scaleContent(t,e),this.scaleAnnotations(t,e)},t.prototype.scaleContent=function(t,e){eR(t,"x",["number"]),eR(e,"y",["number"]),this.node.normalize(),this.getContentStream();var r=this.createContentStream(oR(),oS(t,e)),n=this.doc.context.register(r),o=this.createContentStream(oj()),i=this.doc.context.register(o);this.node.wrapContentStreams(n,i)},t.prototype.scaleAnnotations=function(t,e){eR(t,"x",["number"]),eR(e,"y",["number"]);var r=this.node.Annots();if(r)for(var n=0;n<r.size();n++){var o=r.lookup(n);o instanceof rx&&this.scaleAnnot(o,t,e)}},t.prototype.resetPosition=function(){this.getContentStream(!1),this.x=0,this.y=0},t.prototype.setFont=function(t){eR(t,"font",[[i8,"PDFFont"]]),this.font=t,this.fontKey=this.node.newFontDictionary(this.font.name,this.font.ref)},t.prototype.setFontSize=function(t){eR(t,"fontSize",["number"]),this.fontSize=t},t.prototype.setFontColor=function(t){eR(t,"fontColor",[[Object,"Color"]]),this.fontColor=t},t.prototype.setLineHeight=function(t){eR(t,"lineHeight",["number"]),this.lineHeight=t},t.prototype.getPosition=function(){return{x:this.x,y:this.y}},t.prototype.getX=function(){return this.x},t.prototype.getY=function(){return this.y},t.prototype.moveTo=function(t,e){eR(t,"x",["number"]),eR(e,"y",["number"]),this.x=t,this.y=e},t.prototype.moveDown=function(t){eR(t,"yDecrease",["number"]),this.y-=t},t.prototype.moveUp=function(t){eR(t,"yIncrease",["number"]),this.y+=t},t.prototype.moveLeft=function(t){eR(t,"xDecrease",["number"]),this.x-=t},t.prototype.moveRight=function(t){eR(t,"xIncrease",["number"]),this.x+=t},t.prototype.pushOperators=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];eD(t,"operator",[[rO,"PDFOperator"]]);var r=this.getContentStream();r.push.apply(r,t)},t.prototype.drawText=function(t,e){void 0===e&&(e={}),eR(t,"text",["string"]),ej(e.color,"options.color",[[Object,"Color"]]),eB(e.opacity,"opacity.opacity",0,1),ej(e.font,"options.font",[[i8,"PDFFont"]]),ej(e.size,"options.size",["number"]),ej(e.rotate,"options.rotate",[[Object,"Rotation"]]),ej(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),ej(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),ej(e.x,"options.x",["number"]),ej(e.y,"options.y",["number"]),ej(e.lineHeight,"options.lineHeight",["number"]),ej(e.maxWidth,"options.maxWidth",["number"]),ej(e.wordBreaks,"options.wordBreaks",[Array]),eA(e.blendMode,"options.blendMode",tl);for(var r,n,o,i,a,s,l,c=this.setOrEmbedFont(e.font),u=c.oldFont,d=c.newFont,h=c.newFontKey,f=e.size||this.fontSize,p=e.wordBreaks||this.doc.defaultWordBreaks,g=void 0===e.maxWidth?tR(tA(t)):tM(t,p,e.maxWidth,function(t){return d.widthOfTextAtSize(t,f)}),v=Array(g.length),y=0,m=g.length;y<m;y++)v[y]=d.encodeText(g[y]);var b=this.maybeEmbedGraphicsState({opacity:e.opacity,blendMode:e.blendMode}),w=this.getContentStream();w.push.apply(w,id(v,{color:null!==(r=e.color)&&void 0!==r?r:this.fontColor,font:h,size:f,rotate:null!==(n=e.rotate)&&void 0!==n?n:oc(0),xSkew:null!==(o=e.xSkew)&&void 0!==o?o:oc(0),ySkew:null!==(i=e.ySkew)&&void 0!==i?i:oc(0),x:null!==(a=e.x)&&void 0!==a?a:this.x,y:null!==(s=e.y)&&void 0!==s?s:this.y,lineHeight:null!==(l=e.lineHeight)&&void 0!==l?l:this.lineHeight,graphicsState:b})),e.font&&(u?this.setFont(u):this.resetFont())},t.prototype.drawImage=function(t,e){void 0===e&&(e={}),eR(t,"image",[[i9,"PDFImage"]]),ej(e.x,"options.x",["number"]),ej(e.y,"options.y",["number"]),ej(e.width,"options.width",["number"]),ej(e.height,"options.height",["number"]),ej(e.rotate,"options.rotate",[[Object,"Rotation"]]),ej(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),ej(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),eB(e.opacity,"opacity.opacity",0,1),eA(e.blendMode,"options.blendMode",tl);var r,n,o,i,a,s,l,c=this.node.newXObject("Image",t.ref),u=this.maybeEmbedGraphicsState({opacity:e.opacity,blendMode:e.blendMode}),d=this.getContentStream();d.push.apply(d,ih(c,{x:null!==(r=e.x)&&void 0!==r?r:this.x,y:null!==(n=e.y)&&void 0!==n?n:this.y,width:null!==(o=e.width)&&void 0!==o?o:t.size().width,height:null!==(i=e.height)&&void 0!==i?i:t.size().height,rotate:null!==(a=e.rotate)&&void 0!==a?a:oc(0),xSkew:null!==(s=e.xSkew)&&void 0!==s?s:oc(0),ySkew:null!==(l=e.ySkew)&&void 0!==l?l:oc(0),graphicsState:u}))},t.prototype.drawPage=function(t,e){void 0===e&&(e={}),eR(t,"embeddedPage",[[i6,"PDFEmbeddedPage"]]),ej(e.x,"options.x",["number"]),ej(e.y,"options.y",["number"]),ej(e.xScale,"options.xScale",["number"]),ej(e.yScale,"options.yScale",["number"]),ej(e.width,"options.width",["number"]),ej(e.height,"options.height",["number"]),ej(e.rotate,"options.rotate",[[Object,"Rotation"]]),ej(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),ej(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),eB(e.opacity,"opacity.opacity",0,1),eA(e.blendMode,"options.blendMode",tl);var r,n,o,i,a,s,l=this.node.newXObject("EmbeddedPdfPage",t.ref),c=this.maybeEmbedGraphicsState({opacity:e.opacity,blendMode:e.blendMode}),u=void 0!==e.width?e.width/t.width:void 0!==e.xScale?e.xScale:1,d=void 0!==e.height?e.height/t.height:void 0!==e.yScale?e.yScale:1,h=this.getContentStream();h.push.apply(h,(r={x:null!==(n=e.x)&&void 0!==n?n:this.x,y:null!==(o=e.y)&&void 0!==o?o:this.y,xScale:u,yScale:d,rotate:null!==(i=e.rotate)&&void 0!==i?i:oc(0),xSkew:null!==(a=e.xSkew)&&void 0!==a?a:oc(0),ySkew:null!==(s=e.ySkew)&&void 0!==s?s:oc(0),graphicsState:c},[oR(),r.graphicsState&&oN(r.graphicsState),ok(r.x,r.y),oC(of(r.rotate)),oS(r.xScale,r.yScale),oO(of(r.xSkew),of(r.ySkew)),oZ(l),oj()].filter(Boolean)))},t.prototype.drawSvgPath=function(t,e){void 0===e&&(e={}),eR(t,"path",["string"]),ej(e.x,"options.x",["number"]),ej(e.y,"options.y",["number"]),ej(e.scale,"options.scale",["number"]),ej(e.rotate,"options.rotate",[[Object,"Rotation"]]),ej(e.borderWidth,"options.borderWidth",["number"]),ej(e.color,"options.color",[[Object,"Color"]]),eB(e.opacity,"opacity.opacity",0,1),ej(e.borderColor,"options.borderColor",[[Object,"Color"]]),ej(e.borderDashArray,"options.borderDashArray",[Array]),ej(e.borderDashPhase,"options.borderDashPhase",["number"]),eA(e.borderLineCap,"options.borderLineCap",tt),eB(e.borderOpacity,"options.borderOpacity",0,1),eA(e.blendMode,"options.blendMode",tl);var r,n,o,i,a,s,l,c,u,d=this.maybeEmbedGraphicsState({opacity:e.opacity,borderOpacity:e.borderOpacity,blendMode:e.blendMode});"color"in e||"borderColor"in e||(e.borderColor=o_(0,0,0));var h=this.getContentStream();h.push.apply(h,iw(t,{x:null!==(r=e.x)&&void 0!==r?r:this.x,y:null!==(n=e.y)&&void 0!==n?n:this.y,scale:e.scale,rotate:null!==(o=e.rotate)&&void 0!==o?o:oc(0),color:null!==(i=e.color)&&void 0!==i?i:void 0,borderColor:null!==(a=e.borderColor)&&void 0!==a?a:void 0,borderWidth:null!==(s=e.borderWidth)&&void 0!==s?s:0,borderDashArray:null!==(l=e.borderDashArray)&&void 0!==l?l:void 0,borderDashPhase:null!==(c=e.borderDashPhase)&&void 0!==c?c:void 0,borderLineCap:null!==(u=e.borderLineCap)&&void 0!==u?u:void 0,graphicsState:d}))},t.prototype.drawLine=function(t){eR(t.start,"options.start",[[Object,"{ x: number, y: number }"]]),eR(t.end,"options.end",[[Object,"{ x: number, y: number }"]]),eR(t.start.x,"options.start.x",["number"]),eR(t.start.y,"options.start.y",["number"]),eR(t.end.x,"options.end.x",["number"]),eR(t.end.y,"options.end.y",["number"]),ej(t.thickness,"options.thickness",["number"]),ej(t.color,"options.color",[[Object,"Color"]]),ej(t.dashArray,"options.dashArray",[Array]),ej(t.dashPhase,"options.dashPhase",["number"]),eA(t.lineCap,"options.lineCap",tt),eB(t.opacity,"opacity.opacity",0,1),eA(t.blendMode,"options.blendMode",tl);var e,r,n,o,i,a=this.maybeEmbedGraphicsState({borderOpacity:t.opacity,blendMode:t.blendMode});"color"in t||(t.color=o_(0,0,0));var s=this.getContentStream();s.push.apply(s,ip({start:t.start,end:t.end,thickness:null!==(e=t.thickness)&&void 0!==e?e:1,color:null!==(r=t.color)&&void 0!==r?r:void 0,dashArray:null!==(n=t.dashArray)&&void 0!==n?n:void 0,dashPhase:null!==(o=t.dashPhase)&&void 0!==o?o:void 0,lineCap:null!==(i=t.lineCap)&&void 0!==i?i:void 0,graphicsState:a}))},t.prototype.drawRectangle=function(t){void 0===t&&(t={}),ej(t.x,"options.x",["number"]),ej(t.y,"options.y",["number"]),ej(t.width,"options.width",["number"]),ej(t.height,"options.height",["number"]),ej(t.rotate,"options.rotate",[[Object,"Rotation"]]),ej(t.xSkew,"options.xSkew",[[Object,"Rotation"]]),ej(t.ySkew,"options.ySkew",[[Object,"Rotation"]]),ej(t.borderWidth,"options.borderWidth",["number"]),ej(t.color,"options.color",[[Object,"Color"]]),eB(t.opacity,"opacity.opacity",0,1),ej(t.borderColor,"options.borderColor",[[Object,"Color"]]),ej(t.borderDashArray,"options.borderDashArray",[Array]),ej(t.borderDashPhase,"options.borderDashPhase",["number"]),eA(t.borderLineCap,"options.borderLineCap",tt),eB(t.borderOpacity,"options.borderOpacity",0,1),eA(t.blendMode,"options.blendMode",tl);var e,r,n,o,i,a,s,l,c,u,d,h,f,p=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});"color"in t||"borderColor"in t||(t.color=o_(0,0,0));var g=this.getContentStream();g.push.apply(g,ig({x:null!==(e=t.x)&&void 0!==e?e:this.x,y:null!==(r=t.y)&&void 0!==r?r:this.y,width:null!==(n=t.width)&&void 0!==n?n:150,height:null!==(o=t.height)&&void 0!==o?o:100,rotate:null!==(i=t.rotate)&&void 0!==i?i:oc(0),xSkew:null!==(a=t.xSkew)&&void 0!==a?a:oc(0),ySkew:null!==(s=t.ySkew)&&void 0!==s?s:oc(0),borderWidth:null!==(l=t.borderWidth)&&void 0!==l?l:0,color:null!==(c=t.color)&&void 0!==c?c:void 0,borderColor:null!==(u=t.borderColor)&&void 0!==u?u:void 0,borderDashArray:null!==(d=t.borderDashArray)&&void 0!==d?d:void 0,borderDashPhase:null!==(h=t.borderDashPhase)&&void 0!==h?h:void 0,graphicsState:p,borderLineCap:null!==(f=t.borderLineCap)&&void 0!==f?f:void 0}))},t.prototype.drawSquare=function(t){void 0===t&&(t={});var e=t.size;ej(e,"size",["number"]),this.drawRectangle(td(td({},t),{width:e,height:e}))},t.prototype.drawEllipse=function(t){void 0===t&&(t={}),ej(t.x,"options.x",["number"]),ej(t.y,"options.y",["number"]),ej(t.xScale,"options.xScale",["number"]),ej(t.yScale,"options.yScale",["number"]),ej(t.rotate,"options.rotate",[[Object,"Rotation"]]),ej(t.color,"options.color",[[Object,"Color"]]),eB(t.opacity,"opacity.opacity",0,1),ej(t.borderColor,"options.borderColor",[[Object,"Color"]]),eB(t.borderOpacity,"options.borderOpacity",0,1),ej(t.borderWidth,"options.borderWidth",["number"]),ej(t.borderDashArray,"options.borderDashArray",[Array]),ej(t.borderDashPhase,"options.borderDashPhase",["number"]),eA(t.borderLineCap,"options.borderLineCap",tt),eA(t.blendMode,"options.blendMode",tl);var e,r,n,o,i,a,s,l,c,u,d,h=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});"color"in t||"borderColor"in t||(t.color=o_(0,0,0));var f=this.getContentStream();f.push.apply(f,ib({x:null!==(e=t.x)&&void 0!==e?e:this.x,y:null!==(r=t.y)&&void 0!==r?r:this.y,xScale:null!==(n=t.xScale)&&void 0!==n?n:100,yScale:null!==(o=t.yScale)&&void 0!==o?o:100,rotate:null!==(i=t.rotate)&&void 0!==i?i:void 0,color:null!==(a=t.color)&&void 0!==a?a:void 0,borderColor:null!==(s=t.borderColor)&&void 0!==s?s:void 0,borderWidth:null!==(l=t.borderWidth)&&void 0!==l?l:0,borderDashArray:null!==(c=t.borderDashArray)&&void 0!==c?c:void 0,borderDashPhase:null!==(u=t.borderDashPhase)&&void 0!==u?u:void 0,borderLineCap:null!==(d=t.borderLineCap)&&void 0!==d?d:void 0,graphicsState:h}))},t.prototype.drawCircle=function(t){void 0===t&&(t={});var e=t.size,r=void 0===e?100:e;ej(r,"size",["number"]),this.drawEllipse(td(td({},t),{xScale:r,yScale:r}))},t.prototype.setOrEmbedFont=function(t){var e=this.font,r=this.fontKey;return t?this.setFont(t):this.getFont(),{oldFont:e,oldFontKey:r,newFont:this.font,newFontKey:this.fontKey}},t.prototype.getFont=function(){if(!this.font||!this.fontKey){var t=this.doc.embedStandardFont(ta.Helvetica);this.setFont(t)}return[this.font,this.fontKey]},t.prototype.resetFont=function(){this.font=void 0,this.fontKey=void 0},t.prototype.getContentStream=function(t){return void 0===t&&(t=!0),t&&this.contentStream||(this.contentStream=this.createContentStream(),this.contentStreamRef=this.doc.context.register(this.contentStream),this.node.addContentStream(this.contentStreamRef)),this.contentStream},t.prototype.createContentStream=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=this.doc.context.obj({});return rN.of(r,t)},t.prototype.maybeEmbedGraphicsState=function(t){var e=t.opacity,r=t.borderOpacity,n=t.blendMode;if(void 0!==e||void 0!==r||void 0!==n){var o=this.doc.context.obj({Type:"ExtGState",ca:e,CA:r,BM:n});return this.node.newExtGState("GS",o)}},t.prototype.scaleAnnot=function(t,e,r){for(var n=["RD","CL","Vertices","QuadPoints","L","Rect"],o=0,i=n.length;o<i;o++){var a=t.lookup(rb.of(n[o]));a instanceof ru&&a.scalePDFNumbers(e,r)}var s=t.lookup(rb.of("InkList"));if(s instanceof ru)for(var o=0,i=s.size();o<i;o++){var l=s.lookup(o);l instanceof ru&&l.scalePDFNumbers(e,r)}},t.of=function(e,r,n){return new t(e,r,n)},t.create=function(e){eR(e,"doc",[[ag,"PDFDocument"]]);var r=rT.of(-1),n=rz.withContextAndParent(e.context,r),o=e.context.register(n);return new t(n,o,e)},t}(),am=function(t){function e(e,r,n){var o=t.call(this,e,r,n)||this;return eR(e,"acroButton",[[nM,"PDFAcroPushButton"]]),o.acroField=e,o}return tu(e,t),e.prototype.setImage=function(t,e){void 0===e&&(e=ti.Center);for(var r=this.acroField.getWidgets(),n=0,o=r.length;n<o;n++){var i=r[n],a=this.createImageAppearanceStream(i,t,e);this.updateWidgetAppearances(i,{normal:a})}this.markAsClean()},e.prototype.setFontSize=function(t){eI(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()},e.prototype.addToPage=function(t,e,r){ej(t,"text",["string"]),ej(e,"page",[[ay,"PDFPage"]]),i7(r);var n,o,i,a,s,l,c,u,d,h,f,p=this.createWidget({x:(null!==(n=null==r?void 0:r.x)&&void 0!==n?n:0)-(null!==(o=null==r?void 0:r.borderWidth)&&void 0!==o?o:0)/2,y:(null!==(i=null==r?void 0:r.y)&&void 0!==i?i:0)-(null!==(a=null==r?void 0:r.borderWidth)&&void 0!==a?a:0)/2,width:null!==(s=null==r?void 0:r.width)&&void 0!==s?s:100,height:null!==(l=null==r?void 0:r.height)&&void 0!==l?l:50,textColor:null!==(c=null==r?void 0:r.textColor)&&void 0!==c?c:o_(0,0,0),backgroundColor:null!==(u=null==r?void 0:r.backgroundColor)&&void 0!==u?u:o_(.75,.75,.75),borderColor:null==r?void 0:r.borderColor,borderWidth:null!==(d=null==r?void 0:r.borderWidth)&&void 0!==d?d:0,rotate:null!==(h=null==r?void 0:r.rotate)&&void 0!==h?h:oc(0),caption:t,hidden:null==r?void 0:r.hidden,page:e.ref}),g=this.doc.context.register(p.dict);this.acroField.addWidget(g);var v=null!==(f=null==r?void 0:r.font)&&void 0!==f?f:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(p,v),e.node.addAnnot(g)},e.prototype.needsAppearancesUpdate=function(){if(this.isDirty())return!0;for(var t,e=this.acroField.getWidgets(),r=0,n=e.length;r<n;r++)if(!((null===(t=e[r].getAppearances())||void 0===t?void 0:t.normal)instanceof rF))return!0;return!1},e.prototype.defaultUpdateAppearances=function(t){eR(t,"font",[[i8,"PDFFont"]]),this.updateAppearances(t)},e.prototype.updateAppearances=function(t,e){eR(t,"font",[[i8,"PDFFont"]]),ej(e,"provider",[Function]);for(var r=this.acroField.getWidgets(),n=0,o=r.length;n<o;n++){var i=r[n];this.updateWidgetAppearance(i,t,e)}},e.prototype.updateWidgetAppearance=function(t,e,r){var n=iZ((null!=r?r:i2)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,n)},e.of=function(t,r,n){return new e(t,r,n)},e}(at)},4949:function(t,e,r){r.d(e,{g7:function(){return i}});var n=r(2265),o=r(7437),i=n.forwardRef((t,e)=>{let{children:r,...i}=t,s=n.Children.toArray(r),c=s.find(l);if(c){let t=c.props.children,r=s.map(e=>e!==c?e:n.Children.count(t)>1?n.Children.only(null):n.isValidElement(t)?t.props.children:null);return(0,o.jsx)(a,{...i,ref:e,children:n.isValidElement(t)?n.cloneElement(t,void 0,r):null})}return(0,o.jsx)(a,{...i,ref:e,children:r})});i.displayName="Slot";var a=n.forwardRef((t,e)=>{let{children:r,...o}=t;if(n.isValidElement(r)){let t,i;let a=(t=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?r.ref:(t=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?r.props.ref:r.props.ref||r.ref;return n.cloneElement(r,{...function(t,e){let r={...e};for(let n in e){let o=t[n],i=e[n],a=/^on[A-Z]/.test(n);a?o&&i?r[n]=(...t)=>{i(...t),o(...t)}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...t,...r}}(o,r.props),ref:e?function(...t){return e=>t.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})}(e,a):a})}return n.Children.count(r)>1?n.Children.only(null):null});a.displayName="SlotClone";var s=({children:t})=>(0,o.jsx)(o.Fragment,{children:t});function l(t){return n.isValidElement(t)&&t.type===s}},9213:function(t,e,r){r.d(e,{j:function(){return i}});let n=t=>"boolean"==typeof t?"".concat(t):0===t?"0":t,o=function(){for(var t,e,r=0,n="";r<arguments.length;)(t=arguments[r++])&&(e=function t(e){var r,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e){if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(n=t(e[r]))&&(o&&(o+=" "),o+=n);else for(r in e)e[r]&&(o&&(o+=" "),o+=r)}return o}(t))&&(n&&(n+=" "),n+=e);return n},i=(t,e)=>r=>{var i;if((null==e?void 0:e.variants)==null)return o(t,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:s}=e,l=Object.keys(a).map(t=>{let e=null==r?void 0:r[t],o=null==s?void 0:s[t];if(null===e)return null;let i=n(e)||n(o);return a[t][i]}),c=r&&Object.entries(r).reduce((t,e)=>{let[r,n]=e;return void 0===n||(t[r]=n),t},{}),u=null==e?void 0:null===(i=e.compoundVariants)||void 0===i?void 0:i.reduce((t,e)=>{let{class:r,className:n,...o}=e;return Object.entries(o).every(t=>{let[e,r]=t;return Array.isArray(r)?r.includes({...s,...c}[e]):({...s,...c})[e]===r})?[...t,r,n]:t},[]);return o(t,l,u,null==r?void 0:r.class,null==r?void 0:r.className)}},7042:function(t,e,r){r.d(e,{W:function(){return n}});function n(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=function t(e){var r,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e){if(Array.isArray(e)){var i=e.length;for(r=0;r<i;r++)e[r]&&(n=t(e[r]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n)}return o}(t))&&(n&&(n+=" "),n+=e);return n}},1350:function(t,e,r){r.d(e,{F:function(){return s}});var n=r(2265),o=["light","dark"],i=n.createContext(void 0),a={setTheme:t=>{},themes:[]},s=()=>{var t;return null!=(t=n.useContext(i))?t:a};n.memo(({forcedTheme:t,storageKey:e,attribute:r,enableSystem:i,enableColorScheme:a,defaultTheme:s,value:l,attrs:c,nonce:u})=>{let d="system"===s,h="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${c.map(t=>`'${t}'`).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,f=a?(o.includes(s)?s:null)?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(t,e=!1,n=!0)=>{let i=l?l[t]:t,s=e?t+"|| ''":`'${i}'`,c="";return a&&n&&!e&&o.includes(t)&&(c+=`d.style.colorScheme = '${t}';`),"class"===r?e||i?c+=`c.add(${s})`:c+="null":i&&(c+=`d[s](n,${s})`),c},g=t?`!function(){${h}${p(t)}}()`:i?`!function(){try{${h}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${d})){var t='(prefers-color-scheme: dark)',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${l?`var x=${JSON.stringify(l)};`:""}${p(l?"x[e]":"e",!0)}}${d?"":"else{"+p(s,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${e}');if(e){${l?`var x=${JSON.stringify(l)};`:""}${p(l?"x[e]":"e",!0)}}else{${p(s,!1,!1)};}${f}}catch(t){}}();`;return n.createElement("script",{nonce:u,dangerouslySetInnerHTML:{__html:g}})})},1424:function(t,e,r){r.d(e,{Am:function(){return v},x7:function(){return x}});var n=r(2265),o=r(4887),i=t=>{switch(t){case"success":return l;case"info":return u;case"warning":return c;case"error":return d;default:return null}},a=Array(12).fill(0),s=({visible:t})=>n.createElement("div",{className:"sonner-loading-wrapper","data-visible":t},n.createElement("div",{className:"sonner-spinner"},a.map((t,e)=>n.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${e}`})))),l=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),c=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),u=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),d=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),h=()=>{let[t,e]=n.useState(document.hidden);return n.useEffect(()=>{let t=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",t),()=>window.removeEventListener("visibilitychange",t)},[]),t},f=1,p=new class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:r,...n}=t,o="number"==typeof(null==t?void 0:t.id)||(null==(e=t.id)?void 0:e.length)>0?t.id:f++,i=this.toasts.find(t=>t.id===o),a=void 0===t.dismissible||t.dismissible;return i?this.toasts=this.toasts.map(e=>e.id===o?(this.publish({...e,...t,id:o,title:r}),{...e,...t,id:o,dismissible:a,title:r}):e):this.addToast({title:r,...n,dismissible:a,id:o}),o},this.dismiss=t=>(t||this.toasts.forEach(t=>{this.subscribers.forEach(e=>e({id:t.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{let r;if(!e)return;void 0!==e.loading&&(r=this.create({...e,promise:t,type:"loading",message:e.loading,description:"function"!=typeof e.description?e.description:void 0}));let n=t instanceof Promise?t:t(),o=void 0!==r;return n.then(async t=>{if(g(t)&&!t.ok){o=!1;let n="function"==typeof e.error?await e.error(`HTTP error! status: ${t.status}`):e.error,i="function"==typeof e.description?await e.description(`HTTP error! status: ${t.status}`):e.description;this.create({id:r,type:"error",message:n,description:i})}else if(void 0!==e.success){o=!1;let n="function"==typeof e.success?await e.success(t):e.success,i="function"==typeof e.description?await e.description(t):e.description;this.create({id:r,type:"success",message:n,description:i})}}).catch(async t=>{if(void 0!==e.error){o=!1;let n="function"==typeof e.error?await e.error(t):e.error,i="function"==typeof e.description?await e.description(t):e.description;this.create({id:r,type:"error",message:n,description:i})}}).finally(()=>{var t;o&&(this.dismiss(r),r=void 0),null==(t=e.finally)||t.call(e)}),r},this.custom=(t,e)=>{let r=(null==e?void 0:e.id)||f++;return this.create({jsx:t(r),id:r,...e}),r},this.subscribers=[],this.toasts=[]}},g=t=>t&&"object"==typeof t&&"ok"in t&&"boolean"==typeof t.ok&&"status"in t&&"number"==typeof t.status,v=Object.assign((t,e)=>{let r=(null==e?void 0:e.id)||f++;return p.addToast({title:t,...e,id:r}),r},{success:p.success,info:p.info,warning:p.warning,error:p.error,custom:p.custom,message:p.message,promise:p.promise,dismiss:p.dismiss,loading:p.loading},{getHistory:()=>p.toasts});function y(t){return void 0!==t.label}function m(...t){return t.filter(Boolean).join(" ")}!function(t,{insertAt:e}={}){if(!t||"undefined"==typeof document)return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===e&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
`);var b=t=>{var e,r,o,a,l,c,u,d,f,p;let{invert:g,toast:v,unstyled:m,interacting:b,setHeights:w,visibleToasts:x,heights:F,index:k,toasts:S,expanded:C,removeToast:T,defaultRichColors:O,closeButton:A,style:P,cancelButtonStyle:N,actionButtonStyle:R,className:j="",descriptionClassName:D="",duration:z,position:B,gap:M,loadingIcon:E,expandByDefault:I,classNames:V,icons:U,closeButtonAriaLabel:W="Close toast",pauseWhenPageIsHidden:q,cn:G}=t,[K,L]=n.useState(!1),[X,H]=n.useState(!1),[Z,Y]=n.useState(!1),[J,Q]=n.useState(!1),[_,$]=n.useState(0),[tt,te]=n.useState(0),tr=n.useRef(null),tn=n.useRef(null),to=v.type,ti=!1!==v.dismissible,ta=v.className||"",ts=v.descriptionClassName||"",tl=n.useMemo(()=>F.findIndex(t=>t.toastId===v.id)||0,[F,v.id]),tc=n.useMemo(()=>{var t;return null!=(t=v.closeButton)?t:A},[v.closeButton,A]),tu=n.useMemo(()=>v.duration||z||4e3,[v.duration,z]),td=n.useRef(0),th=n.useRef(0),tf=n.useRef(0),tp=n.useRef(null),[tg,tv]=B.split("-"),ty=n.useMemo(()=>F.reduce((t,e,r)=>r>=tl?t:t+e.height,0),[F,tl]),tm=h(),tb=v.invert||g,tw="loading"===to;th.current=n.useMemo(()=>tl*M+ty,[tl,ty]),n.useEffect(()=>{L(!0)},[]),n.useLayoutEffect(()=>{if(!K)return;let t=tn.current,e=t.style.height;t.style.height="auto";let r=t.getBoundingClientRect().height;t.style.height=e,te(r),w(t=>t.find(t=>t.toastId===v.id)?t.map(t=>t.toastId===v.id?{...t,height:r}:t):[{toastId:v.id,height:r,position:v.position},...t])},[K,v.title,v.description,w,v.id]);let tx=n.useCallback(()=>{H(!0),$(th.current),w(t=>t.filter(t=>t.toastId!==v.id)),setTimeout(()=>{T(v)},200)},[v,T,w,th]);return n.useEffect(()=>{if(v.promise&&"loading"===to||v.duration===1/0||"loading"===v.type)return;let t,e=tu;return C||b||q&&tm?(()=>{if(tf.current<td.current){let t=new Date().getTime()-td.current;e-=t}tf.current=new Date().getTime()})():e!==1/0&&(td.current=new Date().getTime(),t=setTimeout(()=>{var t;null==(t=v.onAutoClose)||t.call(v,v),tx()},e)),()=>clearTimeout(t)},[C,b,I,v,tu,tx,v.promise,to,q,tm]),n.useEffect(()=>{let t=tn.current;if(t){let e=t.getBoundingClientRect().height;return te(e),w(t=>[{toastId:v.id,height:e,position:v.position},...t]),()=>w(t=>t.filter(t=>t.toastId!==v.id))}},[w,v.id]),n.useEffect(()=>{v.delete&&tx()},[tx,v.delete]),n.createElement("li",{"aria-live":v.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:tn,className:G(j,ta,null==V?void 0:V.toast,null==(e=null==v?void 0:v.classNames)?void 0:e.toast,null==V?void 0:V.default,null==V?void 0:V[to],null==(r=null==v?void 0:v.classNames)?void 0:r[to]),"data-sonner-toast":"","data-rich-colors":null!=(o=v.richColors)?o:O,"data-styled":!(v.jsx||v.unstyled||m),"data-mounted":K,"data-promise":!!v.promise,"data-removed":X,"data-visible":k+1<=x,"data-y-position":tg,"data-x-position":tv,"data-index":k,"data-front":0===k,"data-swiping":Z,"data-dismissible":ti,"data-type":to,"data-invert":tb,"data-swipe-out":J,"data-expanded":!!(C||I&&K),style:{"--index":k,"--toasts-before":k,"--z-index":S.length-k,"--offset":`${X?_:th.current}px`,"--initial-height":I?"auto":`${tt}px`,...P,...v.style},onPointerDown:t=>{tw||!ti||(tr.current=new Date,$(th.current),t.target.setPointerCapture(t.pointerId),"BUTTON"!==t.target.tagName&&(Y(!0),tp.current={x:t.clientX,y:t.clientY}))},onPointerUp:()=>{var t,e,r,n;if(J||!ti)return;tp.current=null;let o=Number((null==(t=tn.current)?void 0:t.style.getPropertyValue("--swipe-amount").replace("px",""))||0),i=new Date().getTime()-(null==(e=tr.current)?void 0:e.getTime());if(Math.abs(o)>=20||Math.abs(o)/i>.11){$(th.current),null==(r=v.onDismiss)||r.call(v,v),tx(),Q(!0);return}null==(n=tn.current)||n.style.setProperty("--swipe-amount","0px"),Y(!1)},onPointerMove:t=>{var e;if(!tp.current||!ti)return;let r=t.clientY-tp.current.y,n=t.clientX-tp.current.x,o=("top"===tg?Math.min:Math.max)(0,r),i="touch"===t.pointerType?10:2;Math.abs(o)>i?null==(e=tn.current)||e.style.setProperty("--swipe-amount",`${r}px`):Math.abs(n)>i&&(tp.current=null)}},tc&&!v.jsx?n.createElement("button",{"aria-label":W,"data-disabled":tw,"data-close-button":!0,onClick:tw||!ti?()=>{}:()=>{var t;tx(),null==(t=v.onDismiss)||t.call(v,v)},className:G(null==V?void 0:V.closeButton,null==(a=null==v?void 0:v.classNames)?void 0:a.closeButton)},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},n.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),n.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,v.jsx||n.isValidElement(v.title)?v.jsx||v.title:n.createElement(n.Fragment,null,to||v.icon||v.promise?n.createElement("div",{"data-icon":"",className:G(null==V?void 0:V.icon,null==(l=null==v?void 0:v.classNames)?void 0:l.icon)},v.promise||"loading"===v.type&&!v.icon?v.icon||(null!=U&&U.loading?n.createElement("div",{className:"sonner-loader","data-visible":"loading"===to},U.loading):E?n.createElement("div",{className:"sonner-loader","data-visible":"loading"===to},E):n.createElement(s,{visible:"loading"===to})):null,"loading"!==v.type?v.icon||(null==U?void 0:U[to])||i(to):null):null,n.createElement("div",{"data-content":"",className:G(null==V?void 0:V.content,null==(c=null==v?void 0:v.classNames)?void 0:c.content)},n.createElement("div",{"data-title":"",className:G(null==V?void 0:V.title,null==(u=null==v?void 0:v.classNames)?void 0:u.title)},v.title),v.description?n.createElement("div",{"data-description":"",className:G(D,ts,null==V?void 0:V.description,null==(d=null==v?void 0:v.classNames)?void 0:d.description)},v.description):null),n.isValidElement(v.cancel)?v.cancel:v.cancel&&y(v.cancel)?n.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||N,onClick:t=>{var e,r;y(v.cancel)&&ti&&(null==(r=(e=v.cancel).onClick)||r.call(e,t),tx())},className:G(null==V?void 0:V.cancelButton,null==(f=null==v?void 0:v.classNames)?void 0:f.cancelButton)},v.cancel.label):null,n.isValidElement(v.action)?v.action:v.action&&y(v.action)?n.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||R,onClick:t=>{var e,r;y(v.action)&&(t.defaultPrevented||(null==(r=(e=v.action).onClick)||r.call(e,t),tx()))},className:G(null==V?void 0:V.actionButton,null==(p=null==v?void 0:v.classNames)?void 0:p.actionButton)},v.action.label):null))};function w(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let t=document.documentElement.getAttribute("dir");return"auto"!==t&&t?t:window.getComputedStyle(document.documentElement).direction}var x=t=>{let{invert:e,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:s,className:l,offset:c,theme:u="light",richColors:d,duration:h,style:f,visibleToasts:g=3,toastOptions:v,dir:y=w(),gap:x=14,loadingIcon:F,icons:k,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:C,cn:T=m}=t,[O,A]=n.useState([]),P=n.useMemo(()=>Array.from(new Set([r].concat(O.filter(t=>t.position).map(t=>t.position)))),[O,r]),[N,R]=n.useState([]),[j,D]=n.useState(!1),[z,B]=n.useState(!1),[M,E]=n.useState("system"!==u?u:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),I=n.useRef(null),V=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=n.useRef(null),W=n.useRef(!1),q=n.useCallback(t=>{var e;null!=(e=O.find(e=>e.id===t.id))&&e.delete||p.dismiss(t.id),A(e=>e.filter(({id:e})=>e!==t.id))},[O]);return n.useEffect(()=>p.subscribe(t=>{if(t.dismiss){A(e=>e.map(e=>e.id===t.id?{...e,delete:!0}:e));return}setTimeout(()=>{o.flushSync(()=>{A(e=>{let r=e.findIndex(e=>e.id===t.id);return -1!==r?[...e.slice(0,r),{...e[r],...t},...e.slice(r+1)]:[t,...e]})})})}),[]),n.useEffect(()=>{if("system"!==u){E(u);return}"system"===u&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?E("dark"):E("light")),"undefined"!=typeof window&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:t})=>{E(t?"dark":"light")})},[u]),n.useEffect(()=>{O.length<=1&&D(!1)},[O]),n.useEffect(()=>{let t=t=>{var e,r;i.every(e=>t[e]||t.code===e)&&(D(!0),null==(e=I.current)||e.focus()),"Escape"===t.code&&(document.activeElement===I.current||null!=(r=I.current)&&r.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[i]),n.useEffect(()=>{if(I.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,W.current=!1)}},[I.current]),O.length?n.createElement("section",{"aria-label":`${S} ${V}`,tabIndex:-1},P.map((t,r)=>{var o;let[i,u]=t.split("-");return n.createElement("ol",{key:t,dir:"auto"===y?w():y,tabIndex:-1,ref:I,className:l,"data-sonner-toaster":!0,"data-theme":M,"data-y-position":i,"data-x-position":u,style:{"--front-toast-height":`${(null==(o=N[0])?void 0:o.height)||0}px`,"--offset":"number"==typeof c?`${c}px`:c||"32px","--width":"356px","--gap":`${x}px`,...f},onBlur:t=>{W.current&&!t.currentTarget.contains(t.relatedTarget)&&(W.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:t=>{t.target instanceof HTMLElement&&"false"===t.target.dataset.dismissible||W.current||(W.current=!0,U.current=t.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{z||D(!1)},onPointerDown:t=>{t.target instanceof HTMLElement&&"false"===t.target.dataset.dismissible||B(!0)},onPointerUp:()=>B(!1)},O.filter(e=>!e.position&&0===r||e.position===t).map((r,o)=>{var i,l;return n.createElement(b,{key:r.id,icons:k,index:o,toast:r,defaultRichColors:d,duration:null!=(i=null==v?void 0:v.duration)?i:h,className:null==v?void 0:v.className,descriptionClassName:null==v?void 0:v.descriptionClassName,invert:e,visibleToasts:g,closeButton:null!=(l=null==v?void 0:v.closeButton)?l:s,interacting:z,position:t,style:null==v?void 0:v.style,unstyled:null==v?void 0:v.unstyled,classNames:null==v?void 0:v.classNames,cancelButtonStyle:null==v?void 0:v.cancelButtonStyle,actionButtonStyle:null==v?void 0:v.actionButtonStyle,removeToast:q,toasts:O.filter(t=>t.position==r.position),heights:N.filter(t=>t.position==r.position),setHeights:R,expandByDefault:a,gap:x,loadingIcon:F,expanded:j,pauseWhenPageIsHidden:C,cn:T})}))})):null}},4769:function(t,e,r){r.d(e,{m6:function(){return Y}});let n=t=>{let e=s(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:t=>{let r=t.split("-");return""===r[0]&&1!==r.length&&r.shift(),o(r,e)||a(t)},getConflictingClassGroupIds:(t,e)=>{let o=r[t]||[];return e&&n[t]?[...o,...n[t]]:o}}},o=(t,e)=>{if(0===t.length)return e.classGroupId;let r=t[0],n=e.nextPart.get(r),i=n?o(t.slice(1),n):void 0;if(i)return i;if(0===e.validators.length)return;let a=t.join("-");return e.validators.find(({validator:t})=>t(a))?.classGroupId},i=/^\[(.+)\]$/,a=t=>{if(i.test(t)){let e=i.exec(t)[1],r=e?.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},s=t=>{let{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]},o=d(Object.entries(t.classGroups),r);return o.forEach(([t,r])=>{l(r,n,t,e)}),n},l=(t,e,r,n)=>{t.forEach(t=>{if("string"==typeof t){let n=""===t?e:c(e,t);n.classGroupId=r;return}if("function"==typeof t){if(u(t)){l(t(n),e,r,n);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([t,o])=>{l(o,c(e,t),r,n)})})},c=(t,e)=>{let r=t;return e.split("-").forEach(t=>{r.nextPart.has(t)||r.nextPart.set(t,{nextPart:new Map,validators:[]}),r=r.nextPart.get(t)}),r},u=t=>t.isThemeGetter,d=(t,e)=>e?t.map(([t,r])=>{let n=r.map(t=>"string"==typeof t?e+t:"object"==typeof t?Object.fromEntries(Object.entries(t).map(([t,r])=>[e+t,r])):t);return[t,n]}):t,h=t=>{if(t<1)return{get:()=>void 0,set:()=>{}};let e=0,r=new Map,n=new Map,o=(o,i)=>{r.set(o,i),++e>t&&(e=0,n=r,r=new Map)};return{get(t){let e=r.get(t);return void 0!==e?e:void 0!==(e=n.get(t))?(o(t,e),e):void 0},set(t,e){r.has(t)?r.set(t,e):o(t,e)}}},f=t=>{let{separator:e,experimentalParseClassName:r}=t,n=1===e.length,o=e[0],i=e.length,a=t=>{let r;let a=[],s=0,l=0;for(let c=0;c<t.length;c++){let u=t[c];if(0===s){if(u===o&&(n||t.slice(c,c+i)===e)){a.push(t.slice(l,c)),l=c+i;continue}if("/"===u){r=c;continue}}"["===u?s++:"]"===u&&s--}let c=0===a.length?t:t.substring(l),u=c.startsWith("!"),d=u?c.substring(1):c,h=r&&r>l?r-l:void 0;return{modifiers:a,hasImportantModifier:u,baseClassName:d,maybePostfixModifierPosition:h}};return r?t=>r({className:t,parseClassName:a}):a},p=t=>{if(t.length<=1)return t;let e=[],r=[];return t.forEach(t=>{let n="["===t[0];n?(e.push(...r.sort(),t),r=[]):r.push(t)}),e.push(...r.sort()),e},g=t=>({cache:h(t.cacheSize),parseClassName:f(t),...n(t)}),v=/\s+/,y=(t,e)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=e,i=[],a=t.trim().split(v),s="";for(let t=a.length-1;t>=0;t-=1){let e=a[t],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=r(e),h=!!d,f=n(h?u.substring(0,d):u);if(!f){if(!h||!(f=n(u))){s=e+(s.length>0?" "+s:s);continue}h=!1}let g=p(l).join(":"),v=c?g+"!":g,y=v+f;if(i.includes(y))continue;i.push(y);let m=o(f,h);for(let t=0;t<m.length;++t){let e=m[t];i.push(v+e)}s=e+(s.length>0?" "+s:s)}return s};function m(){let t,e,r=0,n="";for(;r<arguments.length;)(t=arguments[r++])&&(e=b(t))&&(n&&(n+=" "),n+=e);return n}let b=t=>{let e;if("string"==typeof t)return t;let r="";for(let n=0;n<t.length;n++)t[n]&&(e=b(t[n]))&&(r&&(r+=" "),r+=e);return r},w=t=>{let e=e=>e[t]||[];return e.isThemeGetter=!0,e},x=/^\[(?:([a-z-]+):)?(.+)\]$/i,F=/^\d+\/\d+$/,k=new Set(["px","full","screen"]),S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,C=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,T=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,O=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,A=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,P=t=>R(t)||k.has(t)||F.test(t),N=t=>K(t,"length",L),R=t=>!!t&&!Number.isNaN(Number(t)),j=t=>K(t,"number",R),D=t=>!!t&&Number.isInteger(Number(t)),z=t=>t.endsWith("%")&&R(t.slice(0,-1)),B=t=>x.test(t),M=t=>S.test(t),E=new Set(["length","size","percentage"]),I=t=>K(t,E,X),V=t=>K(t,"position",X),U=new Set(["image","url"]),W=t=>K(t,U,Z),q=t=>K(t,"",H),G=()=>!0,K=(t,e,r)=>{let n=x.exec(t);return!!n&&(n[1]?"string"==typeof e?n[1]===e:e.has(n[1]):r(n[2]))},L=t=>C.test(t)&&!T.test(t),X=()=>!1,H=t=>O.test(t),Z=t=>A.test(t),Y=function(t){let e,r,n;let o=function(a){let s=[].reduce((t,e)=>e(t),t());return r=(e=g(s)).cache.get,n=e.cache.set,o=i,i(a)};function i(t){let o=r(t);if(o)return o;let i=y(t,e);return n(t,i),i}return function(){return o(m.apply(null,arguments))}}(()=>{let t=w("colors"),e=w("spacing"),r=w("blur"),n=w("brightness"),o=w("borderColor"),i=w("borderRadius"),a=w("borderSpacing"),s=w("borderWidth"),l=w("contrast"),c=w("grayscale"),u=w("hueRotate"),d=w("invert"),h=w("gap"),f=w("gradientColorStops"),p=w("gradientColorStopPositions"),g=w("inset"),v=w("margin"),y=w("opacity"),m=w("padding"),b=w("saturate"),x=w("scale"),F=w("sepia"),k=w("skew"),S=w("space"),C=w("translate"),T=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto",B,e],E=()=>[B,e],U=()=>["",P,N],K=()=>["auto",R,B],L=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>["start","end","center","between","around","evenly","stretch"],Y=()=>["","0",B],J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[R,B];return{cacheSize:500,separator:":",theme:{colors:[G],spacing:[P,N],blur:["none","",M,B],brightness:Q(),borderColor:[t],borderRadius:["none","","full",M,B],borderSpacing:E(),borderWidth:U(),contrast:Q(),grayscale:Y(),hueRotate:Q(),invert:Y(),gap:E(),gradientColorStops:[t],gradientColorStopPositions:[z,N],inset:A(),margin:A(),opacity:Q(),padding:E(),saturate:Q(),scale:Q(),sepia:Y(),skew:Q(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",B]}],container:["container"],columns:[{columns:[M]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...L(),B]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",D,B]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",B]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",D,B]}],"grid-cols":[{"grid-cols":[G]}],"col-start-end":[{col:["auto",{span:["full",D,B]},B]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[G]}],"row-start-end":[{row:["auto",{span:[D,B]},B]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",B]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",B]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...Z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",B,e]}],"min-w":[{"min-w":[B,e,"min","max","fit"]}],"max-w":[{"max-w":[B,e,"none","full","min","max","fit","prose",{screen:[M]},M]}],h:[{h:[B,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[B,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[B,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[B,e,"auto","min","max","fit"]}],"font-size":[{text:["base",M,N]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",j]}],"font-family":[{font:[G]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",B]}],"line-clamp":[{"line-clamp":["none",R,j]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",P,B]}],"list-image":[{"list-image":["none",B]}],"list-style-type":[{list:["none","disc","decimal",B]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",P,N]}],"underline-offset":[{"underline-offset":["auto",P,B]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...L(),V]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",I]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},W]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...X(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:X()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...X()]}],"outline-offset":[{"outline-offset":[P,B]}],"outline-w":[{outline:[P,N]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[P,N]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",M,q]}],"shadow-color":[{shadow:[G]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",M,B]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[F]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",B]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",B]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",B]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[D,B]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",B]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",B]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",B]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[P,N,j]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})}}]);