(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1056],{43328:function(){},23123:function(){},2983:function(e,t,n){!function(){var t={452:function(e){"use strict";e.exports=n(46169)}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}},a=!0;try{t[e](i,i.exports,o),a=!1}finally{a&&delete r[e]}return i.exports}o.ab="//";var i={};!function(){var e,t=(e=o(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function r(e){"string"==typeof e&&(e=m(e));var r,o,i,a,s,u,c,l,f,d=(o=(r=e).auth,i=r.hostname,a=r.protocol||"",s=r.pathname||"",u=r.hash||"",c=r.query||"",l=!1,o=o?encodeURIComponent(o).replace(/%3A/i,":")+"@":"",r.host?l=o+r.host:i&&(l=o+(~i.indexOf(":")?"["+i+"]":i),r.port&&(l+=":"+r.port)),c&&"object"==typeof c&&(c=t.encode(c)),f=r.search||c&&"?"+c||"",a&&":"!==a.substr(-1)&&(a+=":"),r.slashes||(!a||n.test(a))&&!1!==l?(l="//"+(l||""),s&&"/"!==s[0]&&(s="/"+s)):l||(l=""),u&&"#"!==u[0]&&(u="#"+u),f&&"?"!==f[0]&&(f="?"+f),{protocol:a,host:l,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:f=f.replace("#","%23"),hash:u});return""+d.protocol+d.host+d.pathname+d.search+d.hash}var a="http://",s=a+"w.w",u=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,c=/https?|ftp|gopher|file/;function l(e,t){var n="string"==typeof e?m(e):e;e="object"==typeof e?r(e):e;var o=m(t),i="";n.protocol&&!n.slashes&&(i=n.protocol,e=e.replace(n.protocol,""),i+="/"===t[0]||"/"===e[0]?"/":""),i&&o.protocol&&(i="",o.slashes||(i=o.protocol,t=t.replace(o.protocol,"")));var l=e.match(u);l&&!o.protocol&&(e=e.substr((i=l[1]+(l[2]||"")).length),/^\/\/[^/]/.test(t)&&(i=i.slice(0,-1)));var f=new URL(e,s+"/"),d=new URL(t,f).toString().replace(s,""),p=o.protocol||n.protocol;return p+=n.slashes||o.slashes?"//":"",!i&&p?d=d.replace(a,p):i&&(d=d.replace(a,"")),c.test(d)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==d.slice(-1)||(d=d.slice(0,-1)),i&&(d=i+("/"===d[0]?d.substr(1):d)),d}function f(){}f.prototype.parse=m,f.prototype.format=r,f.prototype.resolve=l,f.prototype.resolveObject=l;var d=/^https?|ftp|gopher|file/,p=/^(.*?)([#?].*)/,h=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,g=/^([a-z0-9.+-]*:)?\/\/\/*/i,y=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function m(e,n,o){if(void 0===n&&(n=!1),void 0===o&&(o=!1),e&&"object"==typeof e&&e instanceof f)return e;var i=(e=e.trim()).match(p);e=i?i[1].replace(/\\/g,"/")+i[2]:e.replace(/\\/g,"/"),y.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(h),u=g.test(e),c="";a&&(d.test(a[1])||(c=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(u=!1,d.test(a[1])?(c=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(c=a[1],e="/"+a[3]));var l,m=(i?i[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),v=m&&m[1],E=new f,b="",w="";try{l=new URL(e)}catch(t){b=t,c||o||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(w="/",e=e.substr(1));try{l=new URL(e,s)}catch(e){return E.protocol=c,E.href=c,E}}E.slashes=u&&!w,E.host="w.w"===l.host?"":l.host,E.hostname="w.w"===l.hostname?"":l.hostname.replace(/(\[|\])/g,""),E.protocol=b?c||null:l.protocol,E.search=l.search.replace(/\\/g,"%5C"),E.hash=l.hash.replace(/\\/g,"%5C");var R=e.split("#");!E.search&&~R[0].indexOf("?")&&(E.search="?"),E.hash||""!==R[1]||(E.hash="#"),E.query=n?t.decode(l.search.substr(1)):E.search.substr(1),E.pathname=w+(a?l.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):l.pathname),"about:"===E.protocol&&"blank"===E.pathname&&(E.protocol="",E.pathname=""),b&&"/"!==e[0]&&(E.pathname=E.pathname.substr(1)),c&&!d.test(c)&&"/"!==e.slice(-1)&&"/"===E.pathname&&(E.pathname=""),E.path=E.pathname+E.search,E.auth=[l.username,l.password].map(decodeURIComponent).filter(Boolean).join(":"),E.port=l.port,v&&!E.host.endsWith(v)&&(E.host+=v,E.port=v.slice(1)),E.href=w?""+E.pathname+E.search+E.hash:r(E);var S=/^(file)/.test(E.href)?["host","hostname"]:[];return Object.keys(E).forEach(function(e){~S.indexOf(e)||(E[e]=E[e]||null)}),E}i.parse=m,i.format=r,i.resolve=l,i.resolveObject=function(e,t){return m(l(e,t))},i.Url=f}(),e.exports=i}()},46169:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,n,r,o){n=n||"&",r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(n);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var u=e.length;s>0&&u>s&&(u=s);for(var c=0;c<u;++c){var l,f,d,p,h=e[c].replace(a,"%20"),g=h.indexOf(r);(g>=0?(l=h.substr(0,g),f=h.substr(g+1)):(l=h,f=""),d=decodeURIComponent(l),p=decodeURIComponent(f),Object.prototype.hasOwnProperty.call(i,d))?t(i[d])?i[d].push(p):i[d]=[i[d],p]:i[d]=p}return i};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,i,a,s){return(i=i||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?r(o(e),function(o){var s=encodeURIComponent(t(o))+a;return n(e[o])?r(e[o],function(e){return s+encodeURIComponent(t(e))}).join(i):s+encodeURIComponent(t(e[o]))}).join(i):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var o=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},a=!0;try{t[e](i,i.exports,r),a=!1}finally{a&&delete n[e]}return i.exports}r.ab="//";var o={};o.decode=o.parse=r(815),o.encode=o.stringify=r(577),e.exports=o}()},91190:function(e){"use strict";e.exports=function(){}},4814:function(e,t,n){"use strict";t.Z=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r)}return o}(e))&&(r&&(r+=" "),r+=t);return r}},24770:function(e,t,n){"use strict";function r(e){var t=!1;return{promise:new Promise(function(n,r){e.then(function(e){return!t&&n(e)}).catch(function(e){return!t&&r(e)})}),cancel:function(){t=!0}}}n.d(t,{Z:function(){return r}})},21672:function(e,t,n){"use strict";n.d(t,{ZP:function(){return i}});var r=function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},o=r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r([],["onCopy","onCut","onPaste"],!0),["onCompositionEnd","onCompositionStart","onCompositionUpdate"],!0),["onFocus","onBlur"],!0),["onInput","onInvalid","onReset","onSubmit"],!0),["onLoad","onError"],!0),["onKeyDown","onKeyPress","onKeyUp"],!0),["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],!0),["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],!0),["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],!0),["onSelect"],!0),["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],!0),["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],!0),["onScroll"],!0),["onWheel"],!0),["onAnimationStart","onAnimationEnd","onAnimationIteration"],!0),["onTransitionEnd"],!0),["onChange"],!0),["onToggle"],!0);function i(e,t){var n={};return o.forEach(function(r){var o=e[r];o&&(t?n[r]=function(e){return o(e,t(r))}:n[r]=o)}),n}},55272:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(11527),o=n(50959),i=n(21672),a=n(24770),s=n(4814),u=n(97227),c=n(91190),l=Object.prototype.hasOwnProperty;function f(e,t,n){for(n of e.keys())if(d(n,t))return n}function d(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&d(e[r],t[r]););return -1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if((o=r)&&"object"==typeof o&&!(o=f(t,o))||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if((o=r[0])&&"object"==typeof o&&!(o=f(t,o))||!d(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return -1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return -1===r}if(!n||"object"==typeof e){for(n in r=0,e)if(l.call(e,n)&&++r&&!l.call(t,n)||!(n in t)||!d(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!=e&&t!=t}var p=n(44800),h=n(27625),g=n(51087);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,u.Z)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber||0}set page(e){(0,u.Z)(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,u.Z)(this.pdfDocument,"PDF document not loaded."),(0,u.Z)(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,u.Z)(Array.isArray(e),`"${e}" is not a valid destination array.`);let t=e[0];new Promise(e=>{(0,u.Z)(this.pdfDocument,"PDF document not loaded."),t instanceof Object?this.pdfDocument.getPageIndex(t).then(t=>{e(t)}).catch(()=>{(0,u.Z)(!1,`"${t}" is not a valid page reference.`)}):"number"==typeof t?e(t):(0,u.Z)(!1,`"${t}" is not a valid destination reference.`)}).then(t=>{let n=t+1;(0,u.Z)(this.pdfViewer,"PDF viewer is not initialized."),(0,u.Z)(n>=1&&n<=this.pagesCount,`"${n}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({dest:e,pageIndex:t,pageNumber:n})})})}navigateTo(e){this.goToDestination(e)}goToPage(e){(0,u.Z)(this.pdfViewer,"PDF viewer is not initialized."),(0,u.Z)(e>=1&&e<=this.pagesCount,`"${e}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({pageIndex:e-1,pageNumber:e})}addLinkAttributes(e,t,n){e.href=t,e.rel=this.externalLinkRel||"noopener noreferrer nofollow",e.target=n?"_blank":this.externalLinkTarget||""}getDestinationHash(){return"#"}getAnchorUrl(){return"#"}setHash(){}executeNamedAction(){}cachePageRef(){}isPageVisible(){return!0}isPageCached(){return!0}executeSetOCGState(){}}var m={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},v=n(34767),E=n(48125),b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let{PDFDataRangeTransport:w}=p.default,R=(e,t)=>{switch(t){case m.NEED_PASSWORD:e(prompt("Enter the password to open this PDF file."));break;case m.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)}var x=(0,o.forwardRef)(function(e,t){var{children:n,className:l,error:f="Failed to load PDF file.",externalLinkRel:m,externalLinkTarget:x,file:L,inputRef:P,imageResourcesPath:T,loading:j="Loading PDF…",noData:O="No PDF file specified.",onItemClick:C,onLoadError:A,onLoadProgress:Z,onLoadSuccess:D,onPassword:k=R,onSourceError:_,onSourceSuccess:I,options:M,renderMode:V,rotate:U}=e,N=b(e,["children","className","error","externalLinkRel","externalLinkTarget","file","inputRef","imageResourcesPath","loading","noData","onItemClick","onLoadError","onLoadProgress","onLoadSuccess","onPassword","onSourceError","onSourceSuccess","options","renderMode","rotate"]);let[G,F]=(0,E.Z)(),{value:$,error:J}=G,[z,B]=(0,E.Z)(),{value:H,error:W}=z,q=(0,o.useRef)(new y),K=(0,o.useRef)([]),X=(0,o.useRef)(void 0),Y=(0,o.useRef)(void 0);L&&L!==X.current&&S(L)&&(c(!d(L,X.current),'File prop passed to <Document /> changed, but it\'s equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.'),X.current=L),M&&M!==Y.current&&(c(!d(M,Y.current),'Options prop passed to <Document /> changed, but it\'s equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.'),Y.current=M);let Q=(0,o.useRef)({scrollPageIntoView:e=>{let{dest:t,pageNumber:n,pageIndex:r=n-1}=e;if(C){C({dest:t,pageIndex:r,pageNumber:n});return}let o=K.current[r];if(o){o.scrollIntoView();return}c(!1,`An internal link leading to page ${n} was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>.`)}});(0,o.useImperativeHandle)(t,()=>({linkService:q,pages:K,viewer:Q}),[]),(0,o.useEffect)(function(){F({type:"RESET"})},[L,F]);let ee=(0,o.useCallback)(()=>{var e,t,n,r;return e=this,t=void 0,n=void 0,r=function*(){if(!L)return null;if("string"==typeof L)return(0,v.gJ)(L)?{data:(0,v.us)(L)}:((0,v.tN)(),{url:L});if(L instanceof w)return{range:L};if((0,v.eP)(L))return{data:L};if(v.jU&&(0,v.Lj)(L))return{data:yield(0,v.eR)(L)};if((0,u.Z)("object"==typeof L,"Invalid parameter in file, need either Uint8Array, string or a parameter object"),(0,u.Z)(S(L),"Invalid parameter object: need either .data, .range or .url"),"url"in L&&"string"==typeof L.url){if((0,v.gJ)(L.url)){let{url:e}=L,t=b(L,["url"]);return Object.assign({data:(0,v.us)(e)},t)}(0,v.tN)()}return L},new(n||(n=Promise))(function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},[L]);function et(e,t){K.current[e]=t}function en(e){delete K.current[e]}(0,o.useEffect)(()=>{let e=(0,a.Z)(ee());return e.promise.then(e=>{F({type:"RESOLVE",value:e})}).catch(e=>{F({type:"REJECT",error:e})}),()=>{(0,v.LJ)(e)}},[ee,F]),(0,o.useEffect)(()=>{if(void 0!==$){if(!1===$){J&&(c(!1,J.toString()),_&&_(J));return}I&&I()}},[$]),(0,o.useEffect)(function(){B({type:"RESET"})},[B,$]),(0,o.useEffect)(function(){if(!$)return;let e=Object.assign(Object.assign({},M),{isEvalSupported:!1}),t=Object.assign(Object.assign({},$),e),n=p.default.getDocument(t);return Z&&(n.onProgress=Z),k&&(n.onPassword=k),n.promise.then(e=>{B({type:"RESOLVE",value:e})}).catch(e=>{n.destroyed||B({type:"REJECT",error:e})}),()=>{n.destroy()}},[M,B,$]),(0,o.useEffect)(()=>{if(void 0!==H){if(!1===H){W&&(c(!1,W.toString()),A&&A(W));return}H&&(D&&D(H),K.current=Array(H.numPages),q.current.setDocument(H))}},[H]),(0,o.useEffect)(function(){q.current.setViewer(Q.current),q.current.setExternalLinkRel(m),q.current.setExternalLinkTarget(x)},[m,x]);let er=(0,o.useMemo)(()=>({imageResourcesPath:T,linkService:q.current,onItemClick:C,pdf:H,registerPage:et,renderMode:V,rotate:U,unregisterPage:en}),[T,C,H,V,U]),eo=(0,o.useMemo)(()=>(0,i.ZP)(N,()=>H),[N,H]);return(0,r.jsx)("div",Object.assign({className:(0,s.Z)("react-pdf__Document",l),ref:P,style:{"--scale-factor":"1"}},eo,{children:L?null==H?(0,r.jsx)(g.Z,{type:"loading",children:"function"==typeof j?j():j}):!1===H?(0,r.jsx)(g.Z,{type:"error",children:"function"==typeof f?f():f}):(0,r.jsx)(h.Z.Provider,{value:er,children:n}):(0,r.jsx)(g.Z,{type:"no-data",children:"function"==typeof O?O():O})}))})},27625:function(e,t,n){"use strict";var r=n(50959);t.Z=(0,r.createContext)(null)},51087:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(11527);function o({children:e,type:t}){return(0,r.jsx)("div",{className:`react-pdf__message react-pdf__message--${t}`,children:e})}},3378:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(11527),o=n(50959),i=n(24770),a=n(21672),s=n(4814);function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(Boolean);return n.length<=1?n[0]||null:function(e){n.forEach(function(t){"function"==typeof t?t(e):t&&(t.current=e)})}}var c=n(97227),l=n(91190),f=(0,o.createContext)(null),d=n(51087),p=n(44800);let h={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},g=/^H(\d+)$/;function y(e){return"children"in e}function m(e){return!!y(e)&&1===e.children.length&&0 in e.children&&"id"in e.children[0]}function v({className:e,node:t}){let n=(0,o.useMemo)(()=>t?Object.assign(Object.assign({},function(e){let t={};if(y(e)){let{role:n}=e,r=n.match(g);if(r)t.role="heading",t["aria-level"]=Number(r[1]);else if(n in h){let e=h[n];e&&(t.role=e)}}return t}(t)),function e(t){let n={};if(y(t)){if(void 0!==t.alt&&(n["aria-label"]=t.alt),void 0!==t.lang&&(n.lang=t.lang),m(t)){let[r]=t.children;if(r){let t=e(r);return Object.assign(Object.assign({},n),t)}}}else"id"in t&&(n["aria-owns"]=t.id);return n}(t)):null,[t]),i=(0,o.useMemo)(()=>!y(t)||m(t)?null:t.children.map((e,t)=>(0,r.jsx)(v,{node:e},t)),[t]);return(0,r.jsx)("span",Object.assign({className:e},n,{children:i}))}function E(){return(0,o.useContext)(f)}var b=n(48125),w=n(34767);function R(){let e=E();(0,c.Z)(e,"Unable to find Page context.");let{onGetStructTreeError:t,onGetStructTreeSuccess:n}=e,[a,s]=(0,b.Z)(),{value:u,error:f}=a,{customTextRenderer:d,page:p}=e;return((0,o.useEffect)(function(){s({type:"RESET"})},[s,p]),(0,o.useEffect)(function(){if(d||!p)return;let e=(0,i.Z)(p.getStructTree());return e.promise.then(e=>{s({type:"RESOLVE",value:e})}).catch(e=>{s({type:"REJECT",error:e})}),()=>(0,w.LJ)(e)},[d,p,s]),(0,o.useEffect)(()=>{if(void 0!==u){if(!1===u){f&&(l(!1,f.toString()),t&&t(f));return}u&&n&&n(u)}},[u]),u)?(0,r.jsx)(v,{className:"react-pdf__Page__structTree structTree",node:u}):null}let S=p.default.AnnotationMode;function x(e){let t=E();(0,c.Z)(t,"Unable to find Page context.");let{_className:n,canvasBackground:i,devicePixelRatio:a=(0,w.x_)(),onRenderError:s,onRenderSuccess:f,page:d,renderForms:p,renderTextLayer:h,rotate:g,scale:y}=Object.assign(Object.assign({},t),e),{canvasRef:m}=e;(0,c.Z)(d,"Attempted to render page canvas, but no page was specified.");let v=(0,o.useRef)(null);function b(e){!(0,w.DE)(e)&&(l(!1,e.toString()),s&&s(e))}let x=(0,o.useMemo)(()=>d.getViewport({scale:y*a,rotation:g}),[a,d,g,y]),L=(0,o.useMemo)(()=>d.getViewport({scale:y,rotation:g}),[d,g,y]);(0,o.useEffect)(function(){if(!d)return;d.cleanup();let{current:e}=v;if(!e)return;e.width=x.width,e.height=x.height,e.style.width=`${Math.floor(L.width)}px`,e.style.height=`${Math.floor(L.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 n=d.render(t);return n.promise.then(()=>{e.style.visibility="",d&&f&&f((0,w.XZ)(d,y))}).catch(b),()=>(0,w.LJ)(n)},[i,v,a,d,p,x,L]);let P=(0,o.useCallback)(()=>{let{current:e}=v;e&&(e.width=0,e.height=0)},[v]);return(0,o.useEffect)(()=>P,[P]),(0,r.jsx)("canvas",{className:`${n}__canvas`,dir:"ltr",ref:u(m,v),style:{display:"block",userSelect:"none"},children:h?(0,r.jsx)(R,{}):null})}function L(){let e=E();(0,c.Z)(e,"Unable to find Page context.");let{_className:t,onRenderSuccess:n,onRenderError:a,page:s,rotate:u,scale:f}=e;(0,c.Z)(s,"Attempted to render page SVG, but no page was specified.");let[d,h]=(0,b.Z)(),{value:g,error:y}=d,m=(0,o.useMemo)(()=>s.getViewport({scale:f,rotation:u}),[s,u,f]);(0,o.useEffect)(function(){h({type:"RESET"})},[s,h,m]),(0,o.useEffect)(function(){if(!s)return;let e=(0,i.Z)(s.getOperatorList());return e.promise.then(e=>{new p.default.SVGGraphics(s.commonObjs,s.objs).getSVG(e,m).then(e=>{if(!(e instanceof SVGElement))throw Error("getSVG returned unexpected result.");h({type:"RESOLVE",value:e})}).catch(e=>{h({type:"REJECT",error:e})})}).catch(e=>{h({type:"REJECT",error:e})}),()=>(0,w.LJ)(e)},[s,h,m]),(0,o.useEffect)(()=>{if(void 0!==g){if(!1===g){!(!y||(0,w.DE)(y))&&(l(!1,y.toString()),a&&a(y));return}s&&n&&n((0,w.XZ)(s,f))}},[g]);let{width:v,height:R}=m;return(0,r.jsx)("div",{className:`${t}__svg`,ref:e=>(function(e){if(!e||!g)return;e.firstElementChild||e.appendChild(g);let{width:t,height:n}=m;g.setAttribute("width",`${t}`),g.setAttribute("height",`${n}`)})(e),style:{display:"block",backgroundColor:"white",overflow:"hidden",width:v,height:R,userSelect:"none"}})}function P(){let e=E();(0,c.Z)(e,"Unable to find Page context.");let{customTextRenderer:t,onGetTextError:n,onGetTextSuccess:a,onRenderTextLayerError:u,onRenderTextLayerSuccess:f,page:d,pageIndex:h,pageNumber:g,rotate:y,scale:m}=e;(0,c.Z)(d,"Attempted to load page text content, but no page was specified.");let[v,R]=(0,b.Z)(),{value:S,error:x}=v,L=(0,o.useRef)(null),P=(0,o.useRef)(void 0);l(1===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(){R({type:"RESET"})},[d,R]),(0,o.useEffect)(function(){if(!d)return;let e=(0,i.Z)(d.getTextContent());return e.promise.then(e=>{R({type:"RESOLVE",value:e})}).catch(e=>{R({type:"REJECT",error:e})}),()=>(0,w.LJ)(e)},[d,R]),(0,o.useEffect)(()=>{if(void 0!==S){if(!1===S){x&&(l(!1,x.toString()),n&&n(x));return}S&&a&&a(S)}},[S]);let T=(0,o.useCallback)(()=>{f&&f()},[f]),j=(0,o.useCallback)(e=>{l(!1,e.toString()),u&&u(e)},[u]),O=(0,o.useMemo)(()=>d.getViewport({scale:m,rotation:y}),[d,y,m]);return(0,o.useLayoutEffect)(function(){if(!d||!S)return;let{current:e}=L;if(!e)return;e.innerHTML="";let n=d.streamTextContent({includeMarkedContent:!0}),r=p.default.renderTextLayer({container:e,textContentSource:n,viewport:O});return r.promise.then(()=>{let n=document.createElement("div");n.className="endOfContent",e.append(n),P.current=n;let r=e.querySelectorAll('[role="presentation"]');if(t){let e=0;S.items.forEach((n,o)=>{if(!("str"in n))return;let i=r[e];if(!i)return;let a=t(Object.assign({pageIndex:h,pageNumber:g,itemIndex:o},n));i.innerHTML=a,e+=n.str&&n.hasEOL?2:1})}T()}).catch(j),()=>(0,w.LJ)(r)},[t,j,T,d,h,g,S,O]),(0,r.jsx)("div",{className:(0,s.Z)("react-pdf__Page__textContent","textLayer"),onMouseUp:function(){let e=P.current;e&&e.classList.remove("active")},onMouseDown:function(){let e=P.current;e&&e.classList.add("active")},ref:L})}var T=n(27625);function j(){return(0,o.useContext)(T.Z)}function O(){let e=j(),t=E();(0,c.Z)(t,"Unable to find Page context.");let{imageResourcesPath:n,linkService:a,onGetAnnotationsError:u,onGetAnnotationsSuccess:f,onRenderAnnotationLayerError:d,onRenderAnnotationLayerSuccess:h,page:g,pdf:y,renderForms:m,rotate:v,scale:R=1}=Object.assign(Object.assign({},e),t);(0,c.Z)(y,"Attempted to load page annotations, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop."),(0,c.Z)(g,"Attempted to load page annotations, but no page was specified."),(0,c.Z)(a,"Attempted to load page annotations, but no linkService was specified.");let[S,x]=(0,b.Z)(),{value:L,error:P}=S,T=(0,o.useRef)(null);l(1===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.Z)(g.getAnnotations());return e.promise.then(e=>{x({type:"RESOLVE",value:e})}).catch(e=>{x({type:"REJECT",error:e})}),()=>{(0,w.LJ)(e)}},[x,g,m]),(0,o.useEffect)(()=>{if(void 0!==L){if(!1===L){P&&(l(!1,P.toString()),u&&u(P));return}L&&f&&f(L)}},[L]);let O=(0,o.useMemo)(()=>g.getViewport({scale:R,rotation:v}),[g,v,R]);return(0,o.useEffect)(function(){if(!y||!g||!a||!L)return;let{current:e}=T;if(!e)return;let t=O.clone({dontFlip:!0}),r={annotations:L,annotationStorage:y.annotationStorage,div:e,downloadManager:null,imageResourcesPath:n,linkService:a,page:g,renderForms:m,viewport:t};e.innerHTML="";try{new p.default.AnnotationLayer({accessibilityManager:null,annotationCanvasMap:null,div:e,l10n:null,page:g,viewport:t}).render(r),h&&h()}catch(e){l(!1,`${e}`),d&&d(e)}return()=>{}},[L,n,a,g,m,O]),(0,r.jsx)("div",{className:(0,s.Z)("react-pdf__Page__annotations","annotationLayer"),ref:T})}var C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function A(e){let t=Object.assign(Object.assign({},j()),e),{_className:n="react-pdf__Page",_enableRegisterUnregisterPage:p=!0,canvasBackground:h,canvasRef:g,children:y,className:m,customRenderer:v,customTextRenderer:E,devicePixelRatio:R,error:S="Failed to load the page.",height:T,inputRef:A,loading:Z="Loading page…",noData:D="No page specified.",onGetAnnotationsError:k,onGetAnnotationsSuccess:_,onGetStructTreeError:I,onGetStructTreeSuccess:M,onGetTextError:V,onGetTextSuccess:U,onLoadError:N,onLoadSuccess:G,onRenderAnnotationLayerError:F,onRenderAnnotationLayerSuccess:$,onRenderError:J,onRenderSuccess:z,onRenderTextLayerError:B,onRenderTextLayerSuccess:H,pageIndex:W,pageNumber:q,pdf:K,registerPage:X,renderAnnotationLayer:Y=!0,renderForms:Q=!1,renderMode:ee="canvas",renderTextLayer:et=!0,rotate:en,scale:er=1,unregisterPage:eo,width:ei}=t,ea=C(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"]),[es,eu]=(0,b.Z)(),{value:ec,error:el}=es,ef=(0,o.useRef)(null);(0,c.Z)(K,"Attempted to load a page, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop.");let ed=(0,w.T8)(q)?q-1:null!=W?W:null,ep=null!=q?q:(0,w.T8)(W)?W+1:null,eh=null!=en?en:ec?ec.rotate:null,eg=(0,o.useMemo)(()=>{if(!ec)return null;let e=1,t=null!=er?er:1;if(ei||T){let t=ec.getViewport({scale:1,rotation:eh});ei?e=ei/t.width:T&&(e=T/t.height)}return t*e},[T,ec,eh,er,ei]);(0,o.useEffect)(function(){return()=>{(0,w.T8)(ed)&&p&&eo&&eo(ed)}},[p,K,ed,eo]),(0,o.useEffect)(function(){eu({type:"RESET"})},[eu,K,ed]),(0,o.useEffect)(function(){if(!K||!ep)return;let e=(0,i.Z)(K.getPage(ep));return e.promise.then(e=>{eu({type:"RESOLVE",value:e})}).catch(e=>{eu({type:"REJECT",error:e})}),()=>(0,w.LJ)(e)},[eu,K,ed,ep,X]),(0,o.useEffect)(()=>{if(void 0!==ec){if(!1===ec){el&&(l(!1,el.toString()),N&&N(el));return}!function(){if(G){if(!ec||!eg)return;G((0,w.XZ)(ec,eg))}if(p&&X){if(!(0,w.T8)(ed)||!ef.current)return;X(ed,ef.current)}}()}},[ec,eg]);let ey=(0,o.useMemo)(()=>ec&&(0,w.T8)(ed)&&ep&&(0,w.T8)(eh)&&(0,w.T8)(eg)?{_className:n,canvasBackground:h,customTextRenderer:E,devicePixelRatio:R,onGetAnnotationsError:k,onGetAnnotationsSuccess:_,onGetStructTreeError:I,onGetStructTreeSuccess:M,onGetTextError:V,onGetTextSuccess:U,onRenderAnnotationLayerError:F,onRenderAnnotationLayerSuccess:$,onRenderError:J,onRenderSuccess:z,onRenderTextLayerError:B,onRenderTextLayerSuccess:H,page:ec,pageIndex:ed,pageNumber:ep,renderForms:Q,renderTextLayer:et,rotate:eh,scale:eg}:null,[n,h,E,R,k,_,I,M,V,U,F,$,J,z,B,H,ec,ed,ep,Q,et,eh,eg]),em=(0,o.useMemo)(()=>(0,a.ZP)(ea,()=>ec?eg?(0,w.XZ)(ec,eg):void 0:ec),[ea,ec,eg]),ev=`${ed}@${eg}/${eh}`,eE=`${ed}/${eh}`;return(0,r.jsx)("div",Object.assign({className:(0,s.Z)(n,m),"data-page-number":ep,ref:u(A,ef),style:{"--scale-factor":`${eg}`,backgroundColor:h||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"}},em,{children:ep?null===K||null==ec?(0,r.jsx)(d.Z,{type:"loading",children:"function"==typeof Z?Z():Z}):!1===K||!1===ec?(0,r.jsx)(d.Z,{type:"error",children:"function"==typeof S?S():S}):(0,r.jsxs)(f.Provider,{value:ey,children:[function(){switch(ee){case"custom":return(0,c.Z)(v,'renderMode was set to "custom", but no customRenderer was passed.'),(0,r.jsx)(v,{},`${ev}_custom`);case"none":return null;case"svg":return(0,r.jsx)(L,{},`${eE}_svg`);default:return(0,r.jsx)(x,{canvasRef:g},`${ev}_canvas`)}}(),et?(0,r.jsx)(P,{},`${ev}_text`):null,Y?(0,r.jsx)(O,{},`${ev}_annotations`):null,y]}):(0,r.jsx)(d.Z,{type:"no-data",children:"function"==typeof D?D():D})}))}},44800:function(e,t,n){"use strict";var r=n(35284);t.default=r},48125:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(50959);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,r.useReducer)(o,{value:void 0,error:void 0})}},34767:function(e,t,n){"use strict";n.d(t,{DE:function(){return y},LJ:function(){return h},Lj:function(){return c},T8:function(){return s},XZ:function(){return g},eP:function(){return u},eR:function(){return m},gJ:function(){return l},jU:function(){return i},tN:function(){return p},us:function(){return f},x_:function(){return d}});var r=n(97227),o=n(91190);let i="undefined"!=typeof document,a=i&&"file:"===window.location.protocol;function s(e){return null!=e}function u(e){return e instanceof ArrayBuffer}function c(e){return(0,r.Z)(i,"isBlob can only be used in a browser environment"),e instanceof Blob}function l(e){return"string"==typeof e&&/^data:/.test(e)}function f(e){(0,r.Z)(l(e),"Invalid data URI.");let[t="",n=""]=e.split(",");return -1!==t.split(";").indexOf("base64")?atob(n):unescape(n)}function d(){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 h(e){e&&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 m(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{if(!r.result)return n(Error("Error while reading a file."));t(r.result)},r.onerror=e=>{if(!e.target)return n(Error("Error while reading a file."));let{error:t}=e.target;if(!t)return n(Error("Error while reading a file."));switch(t.code){case t.NOT_FOUND_ERR:return n(Error("Error while reading a file: File not found."));case t.SECURITY_ERR:return n(Error("Error while reading a file: Security error."));case t.ABORT_ERR:return n(Error("Error while reading a file: Aborted."));default:return n(Error("Error while reading a file."))}},r.readAsArrayBuffer(e)})}},97227:function(e,t,n){"use strict";function r(e,t){if(!e)throw Error("Invariant failed")}n.d(t,{Z:function(){return r}})}}]);