try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="da3d489c-0a5c-4e52-b07c-910395d754af",e._sentryDebugIdIdentifier="sentry-dbid-da3d489c-0a5c-4e52-b07c-910395d754af")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4057],{498:(e,t)=>{t.read=function(e,t,r,n,o){var i,a,u=8*o-n-1,s=(1<>1,c=-7,l=r?o-1:0,h=r?-1:1,p=e[t+l];for(l+=h,i=p&(1<<-c)-1,p>>=-c,c+=u;c>0;i=256*i+e[t+l],l+=h,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+e[t+l],l+=h,c-=8);if(0===i)i=1-f;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=f}return(p?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,u,s,f=8*i-o-1,c=(1<>1,h=5960464477539062e-23*(23===o),p=n?0:i-1,d=n?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(u=+!!isNaN(t),a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),a+l>=1?t+=h/s:t+=h*Math.pow(2,1-l),t*s>=2&&(a++,s/=2),a+l>=c?(u=0,a=c):a+l>=1?(u=(t*s-1)*Math.pow(2,o),a+=l):(u=t*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;e[r+p]=255&u,p+=d,u/=256,o-=8);for(a=a<0;e[r+p]=255&a,p+=d,a/=256,f-=8);e[r+p-d]|=128*g}},1611:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(23692).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},8567:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=s(e),a=i[0],u=i[1],f=new o((a+u)*3/4-u),c=0,l=u>0?a-4:a;for(r=0;r>16&255,f[c++]=t>>8&255,f[c++]=255&t;return 2===u&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,f[c++]=255&t),1===u&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,f[c++]=t>>8&255,f[c++]=255&t),f},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,u=n-o;a>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(e,a,a+16383>u?u:a+16383));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=i.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},13189:(e,t,r)=>{"use strict";function n(e){var t=!1;return{promise:new Promise(function(r,n){e.then(function(e){return!t&&r(e)}).catch(function(e){return!t&&n(e)})}),cancel:function(){t=!0}}}r.d(t,{A:()=>n})},22037:(e,t,r)=>{"use strict";var n=r(8567),o=r(498),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!u.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|d(e,t),n=a(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(O(e,Uint8Array)){var t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return l(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return u.from(n,t,r);var o=function(e){if(u.isBuffer(e)){var t=0|p(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?a(0):l(e):"Buffer"===e.type&&Array.isArray(e.data)?l(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return f(e),a(e<0?0:0|p(e))}function l(e){for(var t=e.length<0?0:0|p(e.length),r=a(t),n=0;n=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return T(e).length;default:if(o)return n?-1:L(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,r){var o,i,a,u=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(i=r*=1)!=i&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return -1;r=e.length-1}else if(r<0){if(!o)return -1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,o);throw TypeError("val must be string, number or Buffer")}function m(e,t,r,n,o){var i,a=1,u=e.length,s=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,u/=2,s/=2,r/=2}function f(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=r;iu&&(r=u-s),i=r;i>=0;i--){for(var l=!0,h=0;h239?4:f>223?3:f>191?2:1;if(o+l<=r)switch(l){case 1:f<128&&(c=f);break;case 2:(192&(i=e[o+1]))==128&&(s=(31&f)<<6|63&i)>127&&(c=s);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(s=(15&f)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:i=e[o+1],a=e[o+2],u=e[o+3],(192&i)==128&&(192&a)==128&&(192&u)==128&&(s=(15&f)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&s<1114112&&(c=s)}null===c?(c=65533,l=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=l}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,o,i){if(!u.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw RangeError("Index out of range")}function A(e,t,r,n,o,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function S(e,t,r,n,i){return t*=1,r>>>=0,i||A(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function x(e,t,r,n,i){return t*=1,r>>>=0,i||A(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}t.hp=u,t.IS=50,u.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,r){return s(e,t,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,r){return(f(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},u.allocUnsafe=function(e){return c(e)},u.allocUnsafeSlow=function(e){return c(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(O(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),O(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);on.length?u.from(i).copy(n,o):Uint8Array.prototype.set.call(n,i,o);else if(u.isBuffer(i))i.copy(n,o);else throw TypeError('"list" argument must be an Array of Buffers');o+=i.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tr&&(e+=" ... "),""},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(e,t,r,n,o){if(O(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var i=o-n,a=r-t,s=Math.min(i,a),f=this.slice(n,o),c=e.slice(t,r),l=0;l>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,a,u,s,f,c,l,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var a=0;a>8,o.push(r%256),o.push(n);return o}(e,this.length-c),this,c,l);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||E(e,t,this.length);for(var n=this[e],o=1,i=0;++i>>=0,t>>>=0,r||E(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var n=this[e],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return(e>>>=0,t||E(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||E(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},u.prototype.readInt16BE=function(e,t){e>>>=0,t||E(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||E(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||E(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||E(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||E(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;w(this,e,t,r,o,0)}var i=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;w(this,e,t,r,o,0)}var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var o=Math.pow(2,8*r-1);w(this,e,t,r,o-1,-o)}var i=0,a=1,u=0;for(this[t]=255&e;++i>0)-u&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var o=Math.pow(2,8*r-1);w(this,e,t,r,o-1,-o)}var i=r-1,a=1,u=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===u&&0!==this[t+i+1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeFloatLE=function(e,t,r){return S(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return S(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return x(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return x(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(!u.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!o){if(r>56319||a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function T(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function P(e,t,r,n){for(var o=0;o=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function O(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var C=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()},26939:e=>{"use strict";e.exports=function(){}},27656:(e,t,r)=>{"use strict";r.d(t,{A:()=>C});var n=r(71669),o=r(65297),i=r(13189),a=r(69372),u=r(72754);function s(){for(var e=[],t=0;tt?Object.assign(Object.assign({},function(e){let t={};if(y(e)){let{role:r}=e,n=r.match(g);if(n)t.role="heading",t["aria-level"]=Number(n[1]);else if(r in d){let e=d[r];e&&(t.role=e)}}return t}(t)),function e(t){let r={};if(y(t)){if(void 0!==t.alt&&(r["aria-label"]=t.alt),void 0!==t.lang&&(r.lang=t.lang),v(t)){let[n]=t.children;if(n){let t=e(n);return Object.assign(Object.assign({},r),t)}}}else"id"in t&&(r["aria-owns"]=t.id);return r}(t)):null,[t]),i=(0,o.useMemo)(()=>!y(t)||v(t)?null:t.children.map((e,t)=>(0,n.jsx)(m,{node:e},t)),[t]);return(0,n.jsx)("span",Object.assign({className:e},r,{children:i}))}function b(){return(0,o.useContext)(l)}var E=r(48487),w=r(86692);function A(){let e=b();(0,f.A)(e,"Unable to find Page context.");let{onGetStructTreeError:t,onGetStructTreeSuccess:r}=e,[a,u]=(0,E.A)(),{value:s,error:l}=a,{customTextRenderer:h,page:p}=e;return((0,o.useEffect)(function(){u({type:"RESET"})},[u,p]),(0,o.useEffect)(function(){if(h||!p)return;let e=(0,i.A)(p.getStructTree());return e.promise.then(e=>{u({type:"RESOLVE",value:e})}).catch(e=>{u({type:"REJECT",error:e})}),()=>(0,w.xL)(e)},[h,p,u]),(0,o.useEffect)(()=>{if(void 0!==s){if(!1===s){l&&(c(!1,l.toString()),t&&t(l));return}s&&r&&r(s)}},[s]),s)?(0,n.jsx)(m,{className:"react-pdf__Page__structTree structTree",node:s}):null}let S=p.ng;function x(e){let t=b();(0,f.A)(t,"Unable to find Page context.");let{_className:r,canvasBackground:i,devicePixelRatio:a=(0,w.mZ)(),onRenderError:u,onRenderSuccess:l,page:h,renderForms:p,renderTextLayer:d,rotate:g,scale:y}=Object.assign(Object.assign({},t),e),{canvasRef:v}=e;(0,f.A)(h,"Attempted to render page canvas, but no page was specified.");let m=(0,o.useRef)(null);function E(e){!(0,w.UT)(e)&&(c(!1,e.toString()),u&&u(e))}let x=(0,o.useMemo)(()=>h.getViewport({scale:y*a,rotation:g}),[a,h,g,y]),R=(0,o.useMemo)(()=>h.getViewport({scale:y,rotation:g}),[h,g,y]);(0,o.useEffect)(function(){if(!h)return;h.cleanup();let{current:e}=m;if(!e)return;e.width=x.width,e.height=x.height,e.style.width="".concat(Math.floor(R.width),"px"),e.style.height="".concat(Math.floor(R.height),"px"),e.style.visibility="hidden";let t={annotationMode:p?S.ENABLE_FORMS:S.ENABLE,canvasContext:e.getContext("2d",{alpha:!1}),viewport:x};i&&(t.background=i);let r=h.render(t);return r.promise.then(()=>{e.style.visibility="",h&&l&&l((0,w.vS)(h,y))}).catch(E),()=>(0,w.xL)(r)},[i,h,p,x,R]);let L=(0,o.useCallback)(()=>{let{current:e}=m;e&&(e.width=0,e.height=0)},[]);return(0,o.useEffect)(()=>L,[L]),(0,n.jsx)("canvas",{className:"".concat(r,"__canvas"),dir:"ltr",ref:s(v,m),style:{display:"block",userSelect:"none"},children:d?(0,n.jsx)(A,{}):null})}function R(){let e=b();(0,f.A)(e,"Unable to find Page context.");let{customTextRenderer:t,onGetTextError:r,onGetTextSuccess:a,onRenderTextLayerError:s,onRenderTextLayerSuccess:l,page:h,pageIndex:d,pageNumber:g,rotate:y,scale:v}=e;(0,f.A)(h,"Attempted to load page text content, but no page was specified.");let[m,A]=(0,E.A)(),{value:S,error:x}=m,R=(0,o.useRef)(null);c(1===Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10),"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer"),(0,o.useEffect)(function(){A({type:"RESET"})},[h,A]),(0,o.useEffect)(function(){if(!h)return;let e=(0,i.A)(h.getTextContent());return e.promise.then(e=>{A({type:"RESOLVE",value:e})}).catch(e=>{A({type:"REJECT",error:e})}),()=>(0,w.xL)(e)},[h,A]),(0,o.useEffect)(()=>{if(void 0!==S){if(!1===S){x&&(c(!1,x.toString()),r&&r(x));return}S&&a&&a(S)}},[S]);let L=(0,o.useCallback)(()=>{l&&l()},[l]),T=(0,o.useCallback)(e=>{c(!1,e.toString()),s&&s(e)},[s]),P=(0,o.useMemo)(()=>h.getViewport({scale:v,rotation:y}),[h,y,v]);return(0,o.useLayoutEffect)(function(){if(!h||!S)return;let{current:e}=R;if(!e)return;e.innerHTML="";let r=h.streamTextContent({includeMarkedContent:!0}),n=new p.D6({container:e,textContentSource:r,viewport:P});return n.render().then(()=>{let r=document.createElement("div");r.className="endOfContent",e.append(r);let n=e.querySelectorAll('[role="presentation"]');if(t){let e=0;S.items.forEach((r,o)=>{if(!("str"in r))return;let i=n[e];i&&(i.innerHTML=t(Object.assign({pageIndex:d,pageNumber:g,itemIndex:o},r)),e+=r.str&&r.hasEOL?2:1)})}L()}).catch(T),()=>(0,w.xL)(n)},[t,T,L,h,d,g,S,P]),(0,n.jsx)("div",{className:(0,u.A)("react-pdf__Page__textContent","textLayer"),onMouseUp:function(){let e=R.current;e&&e.classList.remove("selecting")},onMouseDown:function(){let e=R.current;e&&e.classList.add("selecting")},ref:R})}var L=r(62781);function T(){return(0,o.useContext)(L.A)}function P(){let e=T(),t=b();(0,f.A)(t,"Unable to find Page context.");let{imageResourcesPath:r,linkService:a,onGetAnnotationsError:s,onGetAnnotationsSuccess:l,onRenderAnnotationLayerError:h,onRenderAnnotationLayerSuccess:d,page:g,pdf:y,renderForms:v,rotate:m,scale:A=1}=Object.assign(Object.assign({},e),t);(0,f.A)(y,"Attempted to load page annotations, but no document was specified. Wrap in a or pass explicit `pdf` prop."),(0,f.A)(g,"Attempted to load page annotations, but no page was specified."),(0,f.A)(a,"Attempted to load page annotations, but no linkService was specified.");let[S,x]=(0,E.A)(),{value:R,error:L}=S,P=(0,o.useRef)(null);c(1===Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10),"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations"),(0,o.useEffect)(function(){x({type:"RESET"})},[x,g]),(0,o.useEffect)(function(){if(!g)return;let e=(0,i.A)(g.getAnnotations());return e.promise.then(e=>{x({type:"RESOLVE",value:e})}).catch(e=>{x({type:"REJECT",error:e})}),()=>{(0,w.xL)(e)}},[x,g]),(0,o.useEffect)(()=>{if(void 0!==R){if(!1===R){L&&(c(!1,L.toString()),s&&s(L));return}R&&l&&l(R)}},[R]);let O=(0,o.useMemo)(()=>g.getViewport({scale:A,rotation:m}),[g,m,A]);return(0,o.useEffect)(function(){if(!y||!g||!a||!R)return;let{current:e}=P;if(!e)return;let t=O.clone({dontFlip:!0}),n={annotations:R,annotationStorage:y.annotationStorage,div:e,imageResourcesPath:r,linkService:a,page:g,renderForms:v,viewport:t};e.innerHTML="";try{new p.dU({accessibilityManager:null,annotationCanvasMap:null,annotationEditorUIManager:null,div:e,l10n:null,page:g,structTreeLayer:null,viewport:t}).render(n),d&&d()}catch(e){c(!1,"".concat(e)),h&&h(e)}return()=>{}},[R,r,a,g,y,v,O]),(0,n.jsx)("div",{className:(0,u.A)("react-pdf__Page__annotations","annotationLayer"),ref:P})}var O=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function C(e){let t=Object.assign(Object.assign({},T()),e),{_className:r="react-pdf__Page",_enableRegisterUnregisterPage:p=!0,canvasBackground:d,canvasRef:g,children:y,className:v,customRenderer:m,customTextRenderer:b,devicePixelRatio:A,error:S="Failed to load the page.",height:L,inputRef:C,loading:B="Loading page…",noData:U="No page specified.",onGetAnnotationsError:j,onGetAnnotationsSuccess:I,onGetStructTreeError:D,onGetStructTreeSuccess:k,onGetTextError:M,onGetTextSuccess:_,onLoadError:N,onLoadSuccess:V,onRenderAnnotationLayerError:F,onRenderAnnotationLayerSuccess:G,onRenderError:z,onRenderSuccess:H,onRenderTextLayerError:W,onRenderTextLayerSuccess:q,pageIndex:J,pageNumber:$,pdf:Y,registerPage:K,renderAnnotationLayer:Z=!0,renderForms:Q=!1,renderMode:X="canvas",renderTextLayer:ee=!0,rotate:et,scale:er=1,unregisterPage:en,width:eo}=t,ei=O(t,["_className","_enableRegisterUnregisterPage","canvasBackground","canvasRef","children","className","customRenderer","customTextRenderer","devicePixelRatio","error","height","inputRef","loading","noData","onGetAnnotationsError","onGetAnnotationsSuccess","onGetStructTreeError","onGetStructTreeSuccess","onGetTextError","onGetTextSuccess","onLoadError","onLoadSuccess","onRenderAnnotationLayerError","onRenderAnnotationLayerSuccess","onRenderError","onRenderSuccess","onRenderTextLayerError","onRenderTextLayerSuccess","pageIndex","pageNumber","pdf","registerPage","renderAnnotationLayer","renderForms","renderMode","renderTextLayer","rotate","scale","unregisterPage","width"]),[ea,eu]=(0,E.A)(),{value:es,error:ef}=ea,ec=(0,o.useRef)(null);(0,f.A)(Y,"Attempted to load a page, but no document was specified. Wrap in a or pass explicit `pdf` prop.");let el=(0,w.ci)($)?$-1:null!=J?J:null,eh=null!=$?$:(0,w.ci)(J)?J+1:null,ep=null!=et?et:es?es.rotate:null,ed=(0,o.useMemo)(()=>{if(!es)return null;let e=1,t=null!=er?er:1;if(eo||L){let t=es.getViewport({scale:1,rotation:ep});eo?e=eo/t.width:L&&(e=L/t.height)}return t*e},[L,es,ep,er,eo]);(0,o.useEffect)(function(){return()=>{(0,w.ci)(el)&&p&&en&&en(el)}},[p,Y,el,en]),(0,o.useEffect)(function(){eu({type:"RESET"})},[eu,Y,el]),(0,o.useEffect)(function(){if(!Y||!eh)return;let e=(0,i.A)(Y.getPage(eh));return e.promise.then(e=>{eu({type:"RESOLVE",value:e})}).catch(e=>{eu({type:"REJECT",error:e})}),()=>(0,w.xL)(e)},[eu,Y,eh]),(0,o.useEffect)(()=>{if(void 0!==es){if(!1===es){ef&&(c(!1,ef.toString()),N&&N(ef));return}!function(){if(V){if(!es||!ed)return;V((0,w.vS)(es,ed))}if(p&&K){if(!(0,w.ci)(el)||!ec.current)return;K(el,ec.current)}}()}},[es,ed]);let eg=(0,o.useMemo)(()=>es&&(0,w.ci)(el)&&eh&&(0,w.ci)(ep)&&(0,w.ci)(ed)?{_className:r,canvasBackground:d,customTextRenderer:b,devicePixelRatio:A,onGetAnnotationsError:j,onGetAnnotationsSuccess:I,onGetStructTreeError:D,onGetStructTreeSuccess:k,onGetTextError:M,onGetTextSuccess:_,onRenderAnnotationLayerError:F,onRenderAnnotationLayerSuccess:G,onRenderError:z,onRenderSuccess:H,onRenderTextLayerError:W,onRenderTextLayerSuccess:q,page:es,pageIndex:el,pageNumber:eh,renderForms:Q,renderTextLayer:ee,rotate:ep,scale:ed}:null,[r,d,b,A,j,I,D,k,M,_,F,G,z,H,W,q,es,el,eh,Q,ee,ep,ed]),ey=(0,o.useMemo)(()=>(0,a.Ay)(ei,()=>es?ed?(0,w.vS)(es,ed):void 0:es),[ei,es,ed]),ev="".concat(el,"@").concat(ed,"/").concat(ep);return(0,n.jsx)("div",Object.assign({className:(0,u.A)(r,v),"data-page-number":eh,ref:s(C,ec),style:{"--scale-factor":"".concat(ed),backgroundColor:d||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"}},ey,{children:eh?null===Y||null==es?(0,n.jsx)(h.A,{type:"loading",children:"function"==typeof B?B():B}):!1===Y||!1===es?(0,n.jsx)(h.A,{type:"error",children:"function"==typeof S?S():S}):(0,n.jsxs)(l.Provider,{value:eg,children:[function(){switch(X){case"custom":return(0,f.A)(m,'renderMode was set to "custom", but no customRenderer was passed.'),(0,n.jsx)(m,{},"".concat(ev,"_custom"));case"none":return null;default:return(0,n.jsx)(x,{canvasRef:g},"".concat(ev,"_canvas"))}}(),ee?(0,n.jsx)(R,{},"".concat(ev,"_text")):null,Z?(0,n.jsx)(P,{},"".concat(ev,"_annotations")):null,y]}):(0,n.jsx)(h.A,{type:"no-data",children:"function"==typeof U?U():U})}))}},29908:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(23692).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},43218:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(71669);function o({children:e,type:t}){return(0,n.jsx)("div",{className:`react-pdf__message react-pdf__message--${t}`,children:e})}},48487:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(65297);function o(e,t){switch(t.type){case"RESOLVE":return{value:t.value,error:void 0};case"REJECT":return{value:!1,error:t.error};case"RESET":return{value:void 0,error:void 0};default:return e}}function i(){return(0,n.useReducer)(o,{value:void 0,error:void 0})}},62781:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(65297).createContext)(null)},69372:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>i});var n=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o{"use strict";r.d(t,{Bd:()=>i,UT:()=>y,ci:()=>u,h1:()=>v,jA:()=>l,mZ:()=>h,mw:()=>s,qC:()=>p,qf:()=>f,vS:()=>g,xL:()=>d,zL:()=>c});var n=r(92631),o=r(26939);let i="undefined"!=typeof window,a=i&&"file:"===window.location.protocol;function u(e){return null!=e}function s(e){return e instanceof ArrayBuffer}function f(e){return(0,n.A)(i,"isBlob can only be used in a browser environment"),e instanceof Blob}function c(e){return"string"==typeof e&&/^data:/.test(e)}function l(e){(0,n.A)(c(e),"Invalid data URI.");let[t="",r=""]=e.split(",");return -1!==t.split(";").indexOf("base64")?atob(r):unescape(r)}function h(){return i&&window.devicePixelRatio||1}function p(){o(!a,"Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.")}function d(e){(null==e?void 0:e.cancel)&&e.cancel()}function g(e,t){return Object.defineProperty(e,"width",{get(){return this.view[2]*t},configurable:!0}),Object.defineProperty(e,"height",{get(){return this.view[3]*t},configurable:!0}),Object.defineProperty(e,"originalWidth",{get(){return this.view[2]},configurable:!0}),Object.defineProperty(e,"originalHeight",{get(){return this.view[3]},configurable:!0}),e}function y(e){return"RenderingCancelledException"===e.name}function v(e){return new Promise((t,r)=>{let n=new FileReader;n.onload=()=>{if(!n.result)return r(Error("Error while reading a file."));t(n.result)},n.onerror=e=>{if(!e.target)return r(Error("Error while reading a file."));let{error:t}=e.target;if(!t)return r(Error("Error while reading a file."));switch(t.code){case t.NOT_FOUND_ERR:return r(Error("Error while reading a file: File not found."));case t.SECURITY_ERR:return r(Error("Error while reading a file: Security error."));case t.ABORT_ERR:return r(Error("Error while reading a file: Aborted."));default:return r(Error("Error while reading a file."))}},n.readAsArrayBuffer(e)})}},92631:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});function n(e,t){if(!e)throw Error("Invariant failed")}},96436:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(23692).A)("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"}]])},99086:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(71669),o=r(65297),i=r(69372),a=r(13189),u=r(72754),s=r(92631),f=r(26939),c=Object.prototype.hasOwnProperty;function l(e,t,r){for(r of e.keys())if(h(r,t))return r}function h(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&h(e[n],t[n]););return -1===n}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if((o=n)&&"object"==typeof o&&!(o=l(t,o))||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if((o=n[0])&&"object"==typeof o&&!(o=l(t,o))||!h(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return -1===n}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return -1===n}if(!r||"object"==typeof e){for(r in n=0,e)if(c.call(e,r)&&++n&&!c.call(t,r)||!(r in t)||!h(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!=e&&t!=t}var p=r(72037),d=r(62781),g=r(43218);class y{constructor(){this.externalLinkEnabled=!0,this.externalLinkRel=void 0,this.externalLinkTarget=void 0,this.isInPresentationMode=!1,this.pdfDocument=void 0,this.pdfViewer=void 0}setDocument(e){this.pdfDocument=e}setViewer(e){this.pdfViewer=e}setExternalLinkRel(e){this.externalLinkRel=e}setExternalLinkTarget(e){this.externalLinkTarget=e}setHistory(){}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return(0,s.A)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber||0}set page(e){(0,s.A)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber=e}get rotation(){return 0}set rotation(e){}goToDestination(e){return new Promise(t=>{(0,s.A)(this.pdfDocument,"PDF document not loaded."),(0,s.A)(e,"Destination is not specified."),"string"==typeof e?this.pdfDocument.getDestination(e).then(t):Array.isArray(e)?t(e):e.then(t)}).then(e=>{(0,s.A)(Array.isArray(e),`"${e}" is not a valid destination array.`);let t=e[0];new Promise(e=>{(0,s.A)(this.pdfDocument,"PDF document not loaded."),t instanceof Object?this.pdfDocument.getPageIndex(t).then(t=>{e(t)}).catch(()=>{(0,s.A)(!1,`"${t}" is not a valid page reference.`)}):"number"==typeof t?e(t):(0,s.A)(!1,`"${t}" is not a valid destination reference.`)}).then(t=>{let r=t+1;(0,s.A)(this.pdfViewer,"PDF viewer is not initialized."),(0,s.A)(r>=1&&r<=this.pagesCount,`"${r}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({dest:e,pageIndex:t,pageNumber:r})})})}navigateTo(e){this.goToDestination(e)}goToPage(e){(0,s.A)(this.pdfViewer,"PDF viewer is not initialized."),(0,s.A)(e>=1&&e<=this.pagesCount,`"${e}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({pageIndex:e-1,pageNumber:e})}addLinkAttributes(e,t,r){e.href=t,e.rel=this.externalLinkRel||"noopener noreferrer nofollow",e.target=r?"_blank":this.externalLinkTarget||""}getDestinationHash(){return"#"}getAnchorUrl(){return"#"}setHash(){}executeNamedAction(){}cachePageRef(){}isPageVisible(){return!0}isPageCached(){return!0}executeSetOCGState(){}}let v={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var m=r(86692),b=r(48487),E=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let{Tm:w}=p,A=(e,t)=>{switch(t){case v.NEED_PASSWORD:e(prompt("Enter the password to open this PDF file."));break;case v.INCORRECT_PASSWORD:e(prompt("Invalid password. Please try again."))}};function S(e){return"object"==typeof e&&null!==e&&("data"in e||"range"in e||"url"in e)}let x=(0,o.forwardRef)(function(e,t){var{children:r,className:c,error:l="Failed to load PDF file.",externalLinkRel:v,externalLinkTarget:x,file:R,inputRef:L,imageResourcesPath:T,loading:P="Loading PDF…",noData:O="No PDF file specified.",onItemClick:C,onLoadError:B,onLoadProgress:U,onLoadSuccess:j,onPassword:I=A,onSourceError:D,onSourceSuccess:k,options:M,renderMode:_,rotate:N}=e,V=E(e,["children","className","error","externalLinkRel","externalLinkTarget","file","inputRef","imageResourcesPath","loading","noData","onItemClick","onLoadError","onLoadProgress","onLoadSuccess","onPassword","onSourceError","onSourceSuccess","options","renderMode","rotate"]);let[F,G]=(0,b.A)(),{value:z,error:H}=F,[W,q]=(0,b.A)(),{value:J,error:$}=W,Y=(0,o.useRef)(new y),K=(0,o.useRef)([]),Z=(0,o.useRef)(void 0),Q=(0,o.useRef)(void 0);R&&R!==Z.current&&S(R)&&(f(!h(R,Z.current),'File prop passed to changed, but it\'s equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.'),Z.current=R),M&&M!==Q.current&&(f(!h(M,Q.current),'Options prop passed to changed, but it\'s equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.'),Q.current=M);let X=(0,o.useRef)({scrollPageIntoView:e=>{let{dest:t,pageNumber:r,pageIndex:n=r-1}=e;if(C){C({dest:t,pageIndex:n,pageNumber:r});return}let o=K.current[n];if(o){o.scrollIntoView();return}f(!1,"An internal link leading to page ".concat(r," was clicked, but neither was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to and handle navigating by yourself or ensure that all pages are rendered within ."))}});(0,o.useImperativeHandle)(t,()=>({linkService:Y,pages:K,viewer:X}),[]),(0,o.useEffect)(function(){G({type:"RESET"})},[R,G]);let ee=(0,o.useCallback)(()=>{var e,t,r,n;return e=this,t=void 0,r=void 0,n=function*(){if(!R)return null;if("string"==typeof R)return(0,m.zL)(R)?{data:(0,m.jA)(R)}:((0,m.qC)(),{url:R});if(R instanceof w)return{range:R};if((0,m.mw)(R))return{data:R};if(m.Bd&&(0,m.qf)(R))return{data:yield(0,m.h1)(R)};if((0,s.A)("object"==typeof R,"Invalid parameter in file, need either Uint8Array, string or a parameter object"),(0,s.A)(S(R),"Invalid parameter object: need either .data, .range or .url"),"url"in R&&"string"==typeof R.url){if((0,m.zL)(R.url)){let{url:e}=R,t=E(R,["url"]);return Object.assign({data:(0,m.jA)(e)},t)}(0,m.qC)()}return R},new(r||(r=Promise))(function(o,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function u(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}s((n=n.apply(e,t||[])).next())})},[R]);(0,o.useEffect)(()=>{let e=(0,a.A)(ee());return e.promise.then(e=>{G({type:"RESOLVE",value:e})}).catch(e=>{G({type:"REJECT",error:e})}),()=>{(0,m.xL)(e)}},[ee,G]),(0,o.useEffect)(()=>{if(void 0!==z){if(!1===z){H&&(f(!1,H.toString()),D&&D(H));return}k&&k()}},[z]),(0,o.useEffect)(function(){q({type:"RESET"})},[q,z]),(0,o.useEffect)(function(){if(!z)return;let e=M?Object.assign(Object.assign({},z),M):z,t=p.YE(e);U&&(t.onProgress=U),I&&(t.onPassword=I);let r=t.promise.then(e=>{q({type:"RESOLVE",value:e})}).catch(e=>{!t.destroyed&&q({type:"REJECT",error:e})});return()=>{r.finally(()=>t.destroy())}},[M,q,z]),(0,o.useEffect)(()=>{if(void 0!==J){if(!1===J){$&&(f(!1,$.toString()),B&&B($));return}!J||(j&&j(J),K.current=Array(J.numPages),Y.current.setDocument(J))}},[J]),(0,o.useEffect)(function(){Y.current.setViewer(X.current),Y.current.setExternalLinkRel(v),Y.current.setExternalLinkTarget(x)},[v,x]);let et=(0,o.useCallback)((e,t)=>{K.current[e]=t},[]),er=(0,o.useCallback)(e=>{delete K.current[e]},[]),en=(0,o.useMemo)(()=>({imageResourcesPath:T,linkService:Y.current,onItemClick:C,pdf:J,registerPage:et,renderMode:_,rotate:N,unregisterPage:er}),[T,C,J,et,_,N,er]),eo=(0,o.useMemo)(()=>(0,i.Ay)(V,()=>J),[V,J]);return(0,n.jsx)("div",Object.assign({className:(0,u.A)("react-pdf__Document",c),ref:L,style:{"--scale-factor":"1"}},eo,{children:R?null==J?(0,n.jsx)(g.A,{type:"loading",children:"function"==typeof P?P():P}):!1===J?(0,n.jsx)(g.A,{type:"error",children:"function"==typeof l?l():l}):(0,n.jsx)(d.A.Provider,{value:en,children:r}):(0,n.jsx)(g.A,{type:"no-data",children:"function"==typeof O?O():O})}))})}}]);